/* Gidro.kg — lightweight styles */

:root {
  --color-primary: #0a4d8c;
  --color-primary-dark: #073566;
  --color-accent: #1a8cff;
  --color-accent-light: #4db8ff;
  --color-bg: #f4f8fc;
  --color-white: #ffffff;
  --color-text: #1a2332;
  --color-text-muted: #5a6578;
  --color-border: #dde4ed;
  --color-success: #0d7a4a;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(10, 77, 140, 0.08);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--color-accent); }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-h);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.logo:hover { color: var(--color-text); }

.logo__accent { color: var(--color-accent); }

.nav__list {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  color: var(--color-text);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav__list a:hover { color: var(--color-accent); }

.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--color-primary);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-align: center;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.6);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.12);
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--full { width: 100%; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 60%, #052a4f 100%);
  color: var(--color-white);
  padding: 64px 0 80px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 800;
}

.hero__desc {
  font-size: 1.0625rem;
  opacity: 0.92;
  max-width: 560px;
  margin: 0 0 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
}

.hero__features li::before {
  content: "✓ ";
  color: var(--color-accent-light);
  font-weight: 700;
}

.hero__card {
  display: grid;
  gap: 16px;
  min-width: 220px;
}

.hero__stat {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
}

.hero__stat strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 4px;
}

.hero__stat span {
  font-size: 0.875rem;
  opacity: 0.85;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section:nth-child(even) {
  background: var(--color-white);
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 12px;
  color: var(--color-primary-dark);
}

.section__lead {
  color: var(--color-text-muted);
  max-width: 680px;
  margin: 0 0 40px;
  font-size: 1.0625rem;
}

/* Problems */
.problems__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.problem-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.section:nth-child(even) .problem-card {
  background: var(--color-bg);
}

.problem-card__icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.problem-card h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
}

.problem-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* Services */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}

.section:nth-child(even) .service-card {
  background: var(--color-white);
}

.service-card h3 {
  margin: 0 0 12px;
  color: var(--color-primary);
  font-size: 1.1875rem;
}

.service-card p {
  margin: 0 0 16px;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.service-card ul {
  margin: 0;
  padding-left: 20px;
  font-size: 0.875rem;
  color: var(--color-text);
}

.service-card li { margin-bottom: 4px; }

.service-card--featured {
  border-color: var(--color-accent);
  box-shadow: 0 4px 24px rgba(26, 140, 255, 0.12);
}

.service-card--featured h3 { color: var(--color-accent); }

/* Video diagnostics */
.video-diag {
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-bg) 100%);
}

.video-diag__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.video-diag__content p {
  color: var(--color-text-muted);
  margin: 0 0 16px;
}

.video-diag__list {
  margin: 0 0 28px;
  padding-left: 20px;
  color: var(--color-text);
}

.video-diag__list li { margin-bottom: 8px; }

.video-diag__aside {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 28px;
}

.video-diag__aside h3 {
  margin: 0 0 16px;
  font-size: 1.125rem;
}

.video-diag__aside ul {
  margin: 0 0 20px;
  padding-left: 20px;
  opacity: 0.95;
}

.video-diag__aside li { margin-bottom: 8px; }

.video-diag__note {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.85;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

/* Advantages */
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.advantages__grid li {
  padding: 24px;
  border-left: 4px solid var(--color-accent);
  background: var(--color-white);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}

.section:nth-child(even) .advantages__grid li {
  background: var(--color-bg);
}

.advantages__grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.0625rem;
}

.advantages__grid p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* Process */
.process__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
  max-width: 720px;
}

.process__steps li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.process__num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
}

.process__steps h3 {
  margin: 0 0 6px;
  font-size: 1.125rem;
}

.process__steps p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* FAQ */
.faq__list {
  max-width: 760px;
  display: grid;
  gap: 12px;
}

.faq__item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.section:nth-child(even) .faq__item {
  background: var(--color-bg);
}

.faq__item summary {
  padding: 18px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--color-accent);
  font-weight: 400;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq__item[open] summary::after { content: "−"; }

.faq__item p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* Contact */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact__list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.contact__list strong {
  display: block;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.contact__list a {
  font-size: 1.0625rem;
  font-weight: 600;
}

.contact__form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form__group {
  margin-bottom: 18px;
}

.form__group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 6px;
}

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(26, 140, 255, 0.15);
  background: var(--color-white);
}

.form__group input:invalid:not(:placeholder-shown),
.form__group textarea:invalid:not(:placeholder-shown) {
  border-color: #c0392b;
}

.form__note {
  margin: 12px 0 0;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.form__success {
  margin-top: 16px;
  padding: 12px;
  background: #e6f7ef;
  color: var(--color-success);
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
}

/* Footer */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer .logo__text { color: var(--color-white); font-size: 1.125rem; }

.footer__brand p {
  margin: 8px 0 0;
  font-size: 0.875rem;
  opacity: 0.7;
}

.footer__nav {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__nav a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9375rem;
}

.footer__nav a:hover { color: var(--color-white); }

.footer__copy {
  width: 100%;
  margin: 0;
  font-size: 0.8125rem;
  opacity: 0.6;
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer__credit {
  width: 100%;
  margin: 8px 0 0;
  font-size: 0.8125rem;
  opacity: 0.55;
  text-align: center;
}

.footer__credit a {
  color: rgba(255,255,255,0.75);
}

.footer__credit a:hover { color: var(--color-white); }

/* FAB */
.fab {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--color-success);
  color: var(--color-white);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  z-index: 90;
  transition: transform 0.2s;
}

.fab:hover {
  color: var(--color-white);
  transform: scale(1.08);
}

/* Responsive */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__card {
    grid-template-columns: repeat(3, 1fr);
    min-width: unset;
  }

  .contact__inner {
    grid-template-columns: 1fr;
  }

  .video-diag__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 20px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    gap: 16px;
  }

  .header__phone { display: none; }

  .burger { display: flex; }

  .fab { display: flex; }

  .hero { padding: 48px 0 64px; }

  .section { padding: 56px 0; }

  .hero__card {
    grid-template-columns: 1fr;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}
