/*
 * Вместо яркой бирюзы #1a9b8a — приглушённый «мокрый камень / хвоя»:
 * тот же зелёно-синий ряд, но темнее и серее — спокойно для ритуальной темы.
 */
:root {
  --teal: #3f5c54;
  --teal-dark: #324840;
  --teal-soft: #e8f0ee;
  --text: #2d3436;
  --text-muted: #636e72;
  --bg-top: #eceff1;
  --white: #fff;
  --accent-promo: #c45c26;
  --icon-fg: #1a1a1a;
  --icon-bg: #ffffff;
  --icon-border: #bdbdbd;
  --nav-offset: 128px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* Якоря ведёт js/nav.js — ровно под высоту шапки */
  scroll-padding-top: 0;
}

body {
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--text);
  background: #fafafa;
  line-height: 1.5;
}

a {
  color: inherit;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.anchor-target {
  scroll-margin-top: 0;
}

.top-bar {
  background: var(--bg-top);
  font-size: 12px;
  color: #90a4ae;
  padding: 6px 0;
  text-align: right;
}

.header-main {
  background: var(--white);
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

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

.header-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .header-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .header-brand {
    align-items: center;
    width: 100%;
  }

  .brand-slogan {
    text-align: center;
    max-width: none;
  }

  .header-right {
    justify-self: center;
  }
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-slogan {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.35;
  max-width: 320px;
}

.header-right {
  text-align: right;
}

.phone-big {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: block;
  color: var(--text);
}

.phone-big:hover {
  color: var(--teal);
}

.callback-link {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  display: inline-block;
  text-decoration: underline;
}

.nav-bar {
  background: var(--teal);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.nav-mobile-bar {
  display: none;
}

.nav-panel .nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  padding: 14px 12px;
}

.nav-bar a {
  color: var(--white);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 4px;
  white-space: nowrap;
}

.nav-bar a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.nav-bar a.promo-nav::after {
  content: ' 🔥';
  font-size: 10px;
}

.nav-backdrop {
  display: none;
}

/* ——— Мобильная версия: только полоска меню, выпадающий список ——— */
@media (max-width: 768px) {
  html {
    --nav-mobile-h: 88px;
    --nav-offset: var(--nav-mobile-h);
  }

  .top-bar,
  .header-main {
    display: none !important;
  }

  .nav-mobile-bar {
    display: block;
    position: relative;
    z-index: 102;
    background: var(--teal);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  }

  .nav-mobile-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 14px;
    padding-bottom: 16px;
    padding-left: max(24px, env(safe-area-inset-left, 0px));
    padding-right: max(24px, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
    max-width: 100%;
  }

  .nav-mobile-text {
    flex: 1;
    min-width: 0;
    padding-right: 6px;
  }

  .nav-mobile-brand {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1.2;
  }

  .nav-mobile-slogan {
    margin: 6px 0 0;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.92);
    max-width: 100%;
  }

  .nav-burger {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
  }

  .nav-burger:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  .nav-burger-lines,
  .nav-burger-lines::before,
  .nav-burger-lines::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--white);
    border-radius: 1px;
    transition:
      transform 0.25s,
      opacity 0.2s;
  }

  .nav-burger-lines {
    position: relative;
  }

  .nav-burger-lines::before,
  .nav-burger-lines::after {
    content: '';
    position: absolute;
    left: 0;
  }

  .nav-burger-lines::before {
    top: -6px;
  }

  .nav-burger-lines::after {
    top: 6px;
  }

  .nav-bar.is-open .nav-burger-lines {
    background: transparent;
  }

  .nav-bar.is-open .nav-burger-lines::before {
    top: 0;
    transform: rotate(45deg);
  }

  .nav-bar.is-open .nav-burger-lines::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    top: var(--nav-mobile-h, 88px);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.25s,
      visibility 0.25s;
  }

  .nav-bar.is-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
  }

  /* Меню под зелёной плашкой, не поверх неё */
  .nav-panel {
    position: fixed;
    top: var(--nav-mobile-h, 88px);
    left: 0;
    right: 0;
    z-index: 101;
    background: var(--teal-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  }

  .nav-bar.is-open .nav-panel {
    max-height: min(70vh, 400px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-panel .wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .nav-panel .nav-inner {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    padding: 10px 0 20px;
    gap: 0;
  }

  .nav-panel .nav-inner a {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    white-space: normal;
    font-size: 13px;
  }

  .nav-panel .nav-inner a:last-child {
    border-bottom: none;
  }

  .nav-bar {
    background: transparent;
    box-shadow: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--teal);
  color: var(--white) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

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

.btn-lg {
  padding: 18px 36px;
  font-size: 17px;
}

.btn-outline {
  background: transparent;
  color: var(--teal) !important;
  border: 2px solid var(--teal);
}

.btn-outline:hover {
  background: var(--teal-soft);
}

.hero {
  background: linear-gradient(180deg, #f5f6f7 0%, #fafafa 100%);
  padding: 56px 0 64px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    order: 1;
    max-width: 280px;
  }
}

.hero-kicker {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #90a4ae;
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-title span {
  color: #546e7a;
  font-weight: 300;
  display: block;
  font-size: 0.35em;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.hero-lead {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 12px;
  max-width: 440px;
}

@media (max-width: 900px) {
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 28px;
}

@media (max-width: 900px) {
  .hero-badges {
    justify-content: center;
  }
}

.badge {
  background: var(--white);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #eee;
}

.badge-promo {
  border-color: var(--accent-promo);
  color: #c0392b;
  background: #fff8f0;
}

/* Фон — сам блок, без ::before */
.hero-visual {
  aspect-ratio: 4 / 5;
  max-width: min(100%, 340px);
  margin-left: auto;
  margin-right: auto;
  display: grid;
  place-items: center;
  background: #e8ecef;
  border-radius: 20px;
  padding: 16px 0 0;
  box-sizing: border-box;
}

.hero-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

.materials {
  padding: 48px 0;
  background: var(--white);
  text-align: center;
  border-top: 1px solid #eee;
}

.materials h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
}

.materials-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
}

.material-item {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 800;
  color: var(--text);
  padding: 16px 28px;
  background: var(--teal-soft);
  border-radius: 12px;
  min-width: 200px;
}

.section {
  padding: 64px 0;
}

.section-head {
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
}

.section-head p {
  font-size: 17px;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 400;
}

#examples {
  background: #fafafa;
}

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

@media (max-width: 1000px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.gallery-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  display: block;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.gallery-card .img-wrap {
  aspect-ratio: 4 / 5;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card .cap {
  padding: 16px;
}

.gallery-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.gallery-card p {
  font-size: 13px;
  color: var(--text-muted);
}

#services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

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

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 28px 16px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  border: 1px solid #eee;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.service-card:hover {
  border-color: var(--teal);
  background: var(--teal-soft);
}

@media (max-width: 768px) {
  .service-card {
    padding: 15px 10px;
  }
}

.service-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--icon-bg);
  border: 1px solid var(--icon-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--icon-fg);
}

.service-card .icon svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.service-card:hover .icon {
  border-color: var(--icon-fg);
  background: #f5f5f5;
}

.service-card h3 {
  font-size: 15px;
  font-weight: 700;
  width: 100%;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  line-height: 1.3;
}

#steps {
  background: linear-gradient(135deg, #e8ecee 0%, #f0f2f4 50%, #e9ecee 100%);
}

.steps-layout {
  max-width: 720px;
  margin: 0 auto;
}

.step-list {
  list-style: none;
}

.step-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  margin-bottom: 28px;
  align-items: start;
}

.step-num {
  font-size: 36px;
  font-weight: 800;
  color: #cfd8dc;
  line-height: 1;
}

.step-list h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-list h3::before {
  content: '';
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-left-color: var(--teal);
}

.step-list p {
  font-size: 14px;
  color: var(--text-muted);
}

#cta {
  background: var(--teal);
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}

#cta h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  margin-bottom: 16px;
}

#cta p {
  font-size: 17px;
  opacity: 0.95;
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

#cta .phone-big {
  color: var(--white);
  font-size: 36px;
  margin-bottom: 24px;
}

#cta .phone-big:hover {
  opacity: 0.9;
}

#cta .btn {
  background: var(--white);
  color: var(--teal) !important;
}

#cta .btn:hover {
  background: #f0f0f0;
}

.footer-strip {
  background: #263238;
  color: #b0bec5;
  padding: 20px 0;
  font-size: 13px;
  text-align: center;
}

.footer-strip a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

.footer-strip a:hover {
  text-decoration: underline;
}

.floating-call {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 110;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}

.floating-call:hover {
  transform: scale(1.05);
}

.promo-strip {
  background: linear-gradient(90deg, #fff8f0, var(--teal-soft));
  border-top: 1px solid #ffe0b2;
  border-bottom: 1px solid #eee;
  padding: 18px 0;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #c0392b;
}

.cta-after-gallery {
  text-align: center;
  margin-top: 28px;
}

.steps-cta {
  margin-top: 32px;
  text-align: center;
}
