:root {
  --bg: #f3f5f4;
  --ink: #13211d;
  --muted: #50615b;
  --brand: #0f9d70;
  --brand-deep: #0a6b4c;
  --accent: #ff7a00;
  --card: #ffffff;
  --stroke: #d7e2dd;
  --shadow: 0 16px 40px rgba(19, 33, 29, 0.12);
  --radius: 20px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, #d3efe4 0, transparent 35%),
    radial-gradient(circle at 90% 0%, #ffe4cb 0, transparent 30%),
    var(--bg);
}

a { color: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container { width: min(1120px, 92vw); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(243, 245, 244, 0.9);
  border-bottom: 1px solid var(--stroke);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand span {
  color: var(--brand);
}
.header-phone small {
  display: none;
}
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(130deg, var(--brand), var(--brand-deep));
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: none;
}

.hero {
  padding: 56px 0 30px;
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--stroke);
}
.hero--vyvoz {
  background-image:
    linear-gradient(90deg, rgba(7, 35, 27, 0.38), rgba(7, 35, 27, 0.08)),
    url("./images/hero/vyvoz-desktop.webp");
}
.hero--demontazh {
  background-image:
    linear-gradient(90deg, rgba(7, 28, 23, 0.4), rgba(7, 28, 23, 0.08)),
    url("./images/hero/demontazh-desktop.webp");
}
.hero--mebel {
  background-image:
    linear-gradient(90deg, rgba(7, 35, 27, 0.38), rgba(7, 35, 27, 0.08)),
    url("./images/hero/vyvoz-desktop.webp");
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}
.hero-panel,
.form-panel,
.section-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-panel { padding: 34px; }
.hero--vyvoz .hero-panel,
.hero--demontazh .hero-panel,
.hero--mebel .hero-panel {
  color: #fff;
  background: rgba(7, 31, 24, 0.4);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(2px);
}
.hero--vyvoz .lead,
.hero--demontazh .lead,
.hero--mebel .lead {
  color: rgba(255, 255, 255, 0.86);
}
.hero--vyvoz .badge,
.hero--demontazh .badge,
.hero--mebel .badge {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
}
.form-panel { padding: 24px; }
.mobile-call { display: none; }
.floating-call {
  display: none;
}
.kicker {
  display: inline-block;
  background: #e9f8f2;
  color: var(--brand-deep);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 0.85rem;
}
h1 {
  margin: 14px 0 14px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
}
.lead { color: var(--muted); font-size: 1.05rem; }
.badges {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.badge {
  background: #f4f8f6;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.9rem;
}

form { display: grid; gap: 10px; }
input, select, textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #c6d4cd;
  font: inherit;
}
.small { font-size: 0.78rem; color: #697871; }

section { padding: 22px 0; }
main > section:not(.hero) {
  content-visibility: auto;
  contain-intrinsic-size: 500px;
}
.section-title {
  margin: 0 0 14px;
  font-size: clamp(1.3rem, 2.8vw, 2rem);
}
.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 14px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.item {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 18px;
}
.item h3 { margin: 0 0 8px; font-size: 1.05rem; }
.item p { margin: 0; color: var(--muted); }
.cta-band {
  background: linear-gradient(120deg, #123b2d, #0f9d70);
  color: #fff;
  border-radius: 22px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.cta-band__content {
  min-width: 0;
}
.cta-band__content .section-title {
  margin: 0;
  color: #fff;
}
.cta-band__content p {
  margin: 6px 0 0;
  opacity: 0.9;
}
.cta-band__button {
  flex: 0 0 auto;
  background: #fff;
  color: #123b2d;
  border: 0;
  box-shadow: none;
}

.faq details {
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px 14px;
}
.faq details + details { margin-top: 8px; }
.faq summary { cursor: pointer; font-weight: 700; }

.footer {
  margin: 26px 0 34px;
  padding: 16px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  color: var(--muted);
}
.footer p {
  margin: 0;
}
.footer-links {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-top: 10px;
}
.footer-service-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.footer-service-link span {
  color: var(--brand-deep);
}
.footer-dev-link {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.footer-dev-link:hover {
  color: var(--brand-deep);
}

.hub {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.hub-card {
  width: min(740px, 96vw);
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 30px;
}
.hub-kicker { margin: 0; color: var(--brand-deep); font-weight: 700; }
.hub-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

@media (max-width: 980px) {
  .hero-grid, .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .cta-band {
    align-items: center;
  }
}

@media (max-width: 640px) {
  .topbar .btn-outline {
    display: none;
  }

  .topbar-inner {
    gap: 14px;
  }

  .header-phone {
    display: grid;
    gap: 2px;
    margin-left: auto;
    text-align: right;
  }

  .topbar .header-phone__link {
    display: inline;
    width: auto;
    padding: 0;
    background: none;
    color: var(--ink);
    border-radius: 0;
    box-shadow: none;
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .header-phone small {
    display: block;
    color: var(--muted);
    font-size: 0.68rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .hero {
    padding-top: 28px;
  }

  .hero--vyvoz {
    background-image:
      linear-gradient(rgba(7, 35, 27, 0.28), rgba(7, 35, 27, 0.56)),
      url("./images/hero/vyvoz-mobile.webp");
  }

  .hero--demontazh {
    background-image:
      linear-gradient(rgba(7, 28, 23, 0.3), rgba(7, 28, 23, 0.58)),
      url("./images/hero/demontazh-mobile.webp");
  }

  .hero--mebel {
    background-image:
      linear-gradient(rgba(7, 35, 27, 0.28), rgba(7, 35, 27, 0.56)),
      url("./images/hero/vyvoz-mobile.webp");
  }

  .form-panel__form-content {
    display: none;
  }

  .mobile-call {
    display: grid;
    gap: 14px;
    text-align: center;
  }

  .mobile-call .section-title {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.15;
  }

  .mobile-call p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
  }

  .mobile-call__button {
    width: 100%;
    flex-direction: column;
    gap: 2px;
    padding: 15px 18px;
    font-size: 1.05rem;
  }

  .mobile-call__button span {
    font-size: 0.9rem;
    font-weight: 600;
  }

  .mobile-call small {
    color: var(--muted);
  }

  .floating-call {
    position: fixed;
    right: 28px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 90;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    box-shadow: 0 14px 30px rgba(10, 107, 76, 0.34);
    text-decoration: none;
  }

  .floating-call:active {
    transform: scale(0.96);
    box-shadow: 0 10px 22px rgba(10, 107, 76, 0.28);
  }

  .floating-call svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
  }

  .cta-section {
    padding: 12px 0;
  }

  .cta-band {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 22px 20px;
    border-radius: 18px;
  }

  .cta-band__content {
    text-align: center;
  }

  .cta-band__content .section-title {
    font-size: 1.55rem;
    line-height: 1.15;
  }

  .cta-band__content p {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .cta-band__button {
    width: 100%;
    padding: 13px 16px;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .topbar-inner {
    gap: 10px;
  }

  .brand {
    font-size: 1.25rem;
  }

  .topbar .btn {
    padding: 10px 14px;
    font-size: 0.9rem;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: none;
  }

  .topbar .header-phone__link {
    padding: 0;
    font-size: 0.88rem;
  }

  .header-phone small {
    font-size: 0.63rem;
  }

}


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

.photo-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.photo-card {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  background: #fff;
  aspect-ratio: 4 / 5;
}

.photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 980px) {
  .photo-grid,
  .photo-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .photo-grid { grid-template-columns: 1fr; }
}


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

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

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 33, 29, 0.55);
}

.lead-modal__dialog {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  margin: clamp(24px, 8vh, 70px) auto;
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.lead-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  color: #45635a;
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}
