:root {
  --bg: #f7fdf8;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #4b5563;
  --line: #d7e8da;
  --blue: #0f766e;
  --blue-dark: #115e59;
  --green: #16a34a;
  --green-dark: #15803d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#problem,
#services,
#prices,
#process,
#work,
#reviews,
#faq,
#contacts {
  scroll-margin-top: 140px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a {
  color: inherit;
}

.container {
  width: min(1180px, 94%);
  margin: 0 auto;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
}

.brand-title {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  color: #166534;
}

.brand {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.brand-title span {
  color: #84cc16;
}

.brand-title .brand-mid {
  color: #166534;
}

.brand-sub {
  margin: 3px 0 0;
  font-size: 0.88rem;
  color: #6b7280;
}

.trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
}

.trust-row p {
  margin: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
}

.header-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.header-cta-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone {
  text-decoration: none;
  font-size: 1.45rem;
  font-weight: 800;
  color: #166534;
}

.header-bottom {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.menu a {
  text-decoration: none;
  color: #1f2937;
  font-weight: 700;
}

.socials {
  display: flex;
  gap: 8px;
}

.socials-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.socials-label {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 700;
  text-transform: lowercase;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: #334155;
  text-decoration: none;
}

.social-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.social-icon.whatsapp {
  color: #25d366;
}

.social-icon.telegram {
  color: #229ed9;
}

.social-icon:hover {
  background: #eef2f7;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover {
  background: var(--green-dark);
}

.btn-small {
  padding: 10px 14px;
}

.btn-ghost {
  background: #fff;
  color: #22684f;
  border-color: #89c8b0;
}

.btn-ghost:hover {
  background: #eef9f4;
}

.full {
  width: 100%;
}

.section {
  padding: 56px 0;
}

.section-compact {
  padding-top: 18px;
  padding-bottom: 12px;
}

.section-alt {
  background: #eceff4;
}

.hero-ref {
  background: #edf7ef;
  padding: 28px 0 16px;
  border-top: 1px solid var(--line);
}

.hero-ref-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: stretch;
}

.hero-content {
  padding: 18px 0;
}

.badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #d7f3e8;
  color: #1f6e51;
  font-size: 0.85rem;
  font-weight: 700;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.lead {
  margin: 0;
  color: var(--muted);
}

.hero-subtitle {
  margin: 0 0 8px;
  color: #334155;
  font-weight: 600;
}

.lead-book-btn {
  appearance: none;
  border: 0;
  background: none;
  color: #1f6e51;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.lead-book-btn:hover {
  color: #14543d;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 16px;
}

.hero-guarantee {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: #166534;
  font-weight: 700;
}

.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
}

.consult-title {
  margin: 0 0 10px;
  font-size: 1.7rem;
}

.hero-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
}

.hero-form input {
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  background: #fff;
}

.hero-note {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 0.8rem;
}

.service-area-inline {
  margin: 8px 0 0;
  color: #4b5563;
  font-size: 0.9rem;
}

.hero-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 16px;
}

.hero-tabs a {
  text-decoration: none;
  background: var(--blue);
  color: #fff;
  border-radius: 6px;
  text-align: center;
  padding: 11px 8px;
  font-weight: 700;
  font-size: 0.92rem;
}

.hero-tabs a:hover {
  background: var(--blue-dark);
}

.hero-image {
  border-radius: 8px;
  overflow: hidden;
  min-height: 470px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.15);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-mobile {
  display: none;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-actions-slim {
  align-items: center;
  gap: 16px;
}

.hero-link {
  color: #1f6e51;
  font-weight: 700;
  text-decoration: underline;
}

h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
}

.card h3 {
  margin-top: 0;
}

.card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.equation {
  font-weight: 700;
  color: #1f6e51;
}

.price .value {
  margin: 4px 0 10px;
  font-size: 1.3rem;
  font-weight: 800;
}

.featured {
  border-color: #7dc3a8;
  box-shadow: 0 10px 24px rgba(62, 180, 137, 0.2);
}

.tag {
  margin: 0 0 8px;
  color: #1f6e51;
  font-weight: 700;
}

.author {
  color: var(--muted);
  font-weight: 700;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  font-weight: 600;
  color: #334155;
}

.step span {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #d7f3e8;
  color: #1f6e51;
  margin-right: 6px;
  font-weight: 800;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.footer {
  background: #0f172a;
  color: #d1d5db;
  padding-top: 42px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.footer a {
  color: #a5f3fc;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.whatsapp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  line-height: 0;
}

.whatsapp-icon svg {
  width: 15px;
  height: 15px;
  display: block;
}

.telegram-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.telegram-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #229ed9;
  color: #ffffff;
  line-height: 0;
}

.telegram-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.form {
  background: #111827;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 16px;
}

.form label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.form input,
.form textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #0b1221;
  color: #f9fafb;
  padding: 10px;
  font: inherit;
}

.copy {
  border-top: 1px solid #334155;
  margin-top: 22px;
  padding: 12px 0;
  font-size: 0.93rem;
  color: #94a3b8;
}

.booking-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 100;
}

.booking-modal.is-open {
  display: block;
}

.booking-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.booking-modal-card {
  position: relative;
  width: min(460px, 92%);
  margin: 12vh auto 0;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
}

.booking-modal-card h3 {
  margin: 0 0 8px;
}

.booking-modal-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.booking-modal-actions {
  display: grid;
  gap: 8px;
}

.booking-modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 0;
  background: #f3f4f6;
  color: #475569;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.mobile-call-btn {
  display: none;
}

.mobile-menu-toggle,
.mobile-menu-panel,
.mobile-menu-overlay {
  display: none;
}

@media (max-width: 1050px) {
  .header-top {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .trust-row {
    justify-content: flex-start;
  }

  .hero-ref-wrap {
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: 320px;
  }

  .hero-form,
  .cards,
  .steps,
  .gallery,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.mobile-menu-open {
    overflow: hidden;
    touch-action: none;
  }

  body {
    padding-bottom: 14px;
  }

  .main-header {
    position: relative;
  }

  .header-top {
    position: relative;
    gap: 6px;
    padding: 8px 0 6px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    position: absolute;
    top: 10px;
    right: 0;
    width: 40px;
    height: 40px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    z-index: 2;
    transition:
      background 180ms ease,
      border-color 180ms ease;
  }

  .mobile-menu-toggle span {
    width: 18px;
    height: 2px;
    margin: 0 auto;
    border-radius: 2px;
    background: #1f2937;
    display: block;
    transition:
      transform 180ms ease,
      opacity 180ms ease;
  }

  .mobile-menu-panel {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: min(58vw, 280px);
    height: 100dvh;
    z-index: 100;
    padding: calc(env(safe-area-inset-top, 0px) + 78px) 14px 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.56);
    backdrop-filter: blur(16px) saturate(145%);
    -webkit-backdrop-filter: blur(16px) saturate(145%);
    box-shadow: -18px 0 36px rgba(15, 23, 42, 0.16);
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
    visibility: hidden;
    transition:
      opacity 180ms ease,
      transform 220ms ease,
      visibility 180ms ease;
  }

  .main-header.mobile-menu-open .mobile-menu-panel {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
  }

  .mobile-menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.2);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition:
      opacity 180ms ease,
      visibility 180ms ease;
  }

  .main-header.mobile-menu-open .mobile-menu-overlay {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .mobile-menu-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .mobile-menu-links a {
    display: block;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-align: center;
    color: #0f172a;
    border-radius: 12px;
    padding: 10px 6px;
    line-height: 1.2;
  }

  .mobile-menu-links a:hover,
  .mobile-menu-links a:active {
    background: rgba(15, 23, 42, 0.06);
  }

  .main-header.mobile-menu-open .mobile-menu-toggle {
    background: rgba(255, 255, 255, 0.96);
    border-color: #cfd8e3;
  }

  .main-header.mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .main-header.mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .main-header.mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .brand-title {
    font-size: 1.38rem;
  }

  .brand-sub {
    font-size: 0.82rem;
  }

  .trust-row {
    display: none;
  }

  .socials-row {
    display: flex;
    justify-content: flex-start;
    gap: 6px;
  }

  .socials-label {
    display: none;
  }

  .social-icon {
    width: 34px;
    height: 34px;
  }

  .header-cta {
    align-items: stretch;
    gap: 6px;
  }

  .header-cta-top {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .menu {
    display: none;
  }

  .header-bottom {
    min-height: 0;
    display: none;
  }

  .phone {
    font-size: 1.05rem;
    white-space: nowrap;
  }

  .btn-small {
    padding: 9px 12px;
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .hero-ref {
    padding: 10px 0 4px;
  }

  .hero-content {
    padding: 8px 0;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.35;
    margin-bottom: 10px;
  }

  h1 {
    font-size: clamp(1.85rem, 8vw, 2.2rem);
    line-height: 1.1;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    margin: 10px 0;
    gap: 6px;
  }

  .hero-metrics .metric:nth-child(1),
  .hero-metrics .metric:nth-child(2) {
    display: none;
  }

  .metric {
    padding: 8px 6px;
    font-size: 0.8rem;
  }

  .consult-title {
    margin-bottom: 7px;
    font-size: 1.9rem;
  }

  .hero-form {
    gap: 6px;
  }

  .hero-form input[name="phone"] {
    order: 1;
  }

  .hero-form input[name="name"] {
    order: 2;
  }

  .hero-form button {
    order: 3;
    min-height: 50px;
  }

  .lead-book-btn {
    display: none;
  }

  .hero-content > .lead,
  .hero-guarantee {
    display: none;
  }

  .service-area-inline {
    font-size: 0.8rem;
  }

  .hero-image {
    display: none;
  }

  .hero-image-mobile {
    display: block;
    min-height: 220px;
    margin-bottom: 10px;
  }

  .section-compact {
    display: none;
  }

  .mobile-call-btn {
    display: none;
  }

  #problem,
  #services,
  #prices,
  #process,
  #work,
  #reviews,
  #faq,
  #contacts {
    scroll-margin-top: 20px;
  }
}
