/* CULTMEDIA — общие стили: шапка, футер, внутренние страницы услуг */

:root {
  --bg: #2a3826;
  --fg: #f1f4e8;
  --soft: #e8eee0;
  --muted: rgba(232, 238, 224, 0.62);
  --dim: rgba(232, 238, 224, 0.38);
  --line: rgba(232, 238, 224, 0.16);
  --accent: #d4c89a;
  --nav-h: 64px;
}

/* ───── БАЗА (для внутренних страниц; на главной дублирует inline-стили без конфликтов) ───── */
.page *, .page *::before, .page *::after { margin: 0; padding: 0; box-sizing: border-box; }
.page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 75% 22%, rgba(170, 200, 140, 0.32), transparent 55%),
    radial-gradient(circle at 18% 82%, rgba(35, 50, 30, 0.7), transparent 50%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.9  0 0 0 0 1  0 0 0 0 0.85  0 0 0 0.25 0'/></filter><rect width='240' height='240' filter='url(%23n)' opacity='0.15'/></svg>");
  background-attachment: fixed, fixed, fixed;
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: auto, auto, 240px 240px;
}
.page a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--dim); transition: border-color .2s ease; }
.page a:hover { border-color: var(--fg); }

#grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.25;
}

/* ───── ШАПКА ───── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
  padding: 0 clamp(20px, 4vw, 40px);
  background: rgba(42, 56, 38, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
  border-bottom: none;
  white-space: nowrap;
}
.site-nav .brand:hover { border-bottom: none; }
.site-nav .brand .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  animation: nav-pulse 2.4s ease-in-out infinite;
}
@keyframes nav-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links > li { position: relative; }
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: none;
  border-radius: 8px;
  transition: color .2s ease, background-color .2s ease;
}
.nav-links a:hover { color: var(--soft); background: rgba(232, 238, 224, 0.06); border-bottom: none; }
.nav-links a[aria-current="page"] { color: var(--soft); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px !important;
  background: var(--accent);
  color: var(--bg) !important;
  font-weight: 500;
  border-radius: 999px !important;
  white-space: nowrap;
}
.nav-cta:hover { background: #e0d5a8 !important; color: var(--bg) !important; }

/* выпадающее меню услуг */
.nav-drop > a::after {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  margin-left: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}
.nav-drop:hover > a::after, .nav-drop:focus-within > a::after { transform: rotate(225deg) translateY(-1px); }
.drop-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 300px;
  padding: 10px;
  list-style: none;
  background: #223020;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(10, 16, 8, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav-drop:hover .drop-panel,
.nav-drop:focus-within .drop-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.drop-panel a {
  display: block;
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--soft);
  border-radius: 9px;
}
.drop-panel a .d {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--dim);
}
.drop-panel a:hover { background: rgba(232, 238, 224, 0.07); }
.drop-panel .all {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-size: 12.5px;
}

/* бургер */
.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--soft);
}
.burger svg { display: block; }
.burger .x { display: none; }
.nav-open .burger .bars { display: none; }
.nav-open .burger .x { display: block; }

/* мобильное меню */
.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  overflow-y: auto;
  padding: 28px clamp(20px, 4vw, 40px) 48px;
  background: rgba(34, 48, 32, 0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.nav-open .mobile-menu { display: block; }
.nav-open { overflow: hidden; }
.nav-open body { overflow: hidden; }
.nav-open .site-nav { position: fixed; top: 0; left: 0; right: 0; }
.nav-open .page { padding-top: var(--nav-h); }
.mobile-menu .group-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 26px 0 6px;
}
.mobile-menu a {
  display: block;
  padding: 13px 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--soft);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:hover { border-color: var(--line); color: var(--fg); }
.mobile-menu .mm-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 15px 28px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 500;
  font-size: 15px;
  border-radius: 999px;
  border-bottom: none;
}

/* ───── ОБЩИЕ БЛОКИ ВНУТРЕННИХ СТРАНИЦ ───── */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 28px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}
.crumbs a { color: var(--dim); border-bottom: 1px solid transparent; }
.crumbs a:hover { color: var(--muted); border-color: var(--dim); }
.crumbs .sep { color: var(--line); }

.page-hero { padding: clamp(40px, 7vw, 84px) 0 clamp(56px, 8vw, 96px); }
.page-hero .kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 18px;
}
.page-hero h1 {
  font-size: clamp(38px, 6.4vw, 76px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--soft);
  max-width: 15ch;
  margin-bottom: 24px;
}
.page-hero .lede {
  font-size: clamp(16px, 1.9vw, 21px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 36px;
}
.page-hero .lede b { color: var(--soft); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.hero-note { font-size: 13px; color: var(--dim); }
.hero-note b { color: var(--accent); font-weight: 500; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 28px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 500;
  font-size: 15px;
  border-radius: 999px;
  border-bottom: none;
  letter-spacing: -0.01em;
  transition: transform .25s ease, background .25s ease;
}
.btn:hover { background: #e0d5a8; transform: translateY(-1px); border-bottom: none; color: var(--bg); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn .arrow { font-size: 18px; line-height: 1; transform: translateY(-1px); }
.btn.ghost {
  background: transparent;
  color: var(--soft);
  border: 1px solid var(--line);
}
.btn.ghost:hover { background: rgba(232, 238, 224, 0.06); color: var(--soft); }

.sec { padding: clamp(64px, 9vw, 110px) 0; border-top: 1px solid var(--line); }
.sec-head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 56px); }
.sec-head h2 {
  font-size: clamp(28px, 4.4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--soft);
  margin-bottom: 14px;
}
.sec-head p { font-size: clamp(15px, 1.6vw, 17px); line-height: 1.6; color: var(--muted); }

/* сетка карточек «что входит» */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.grid-cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cards .cell {
  padding: 32px 30px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color .35s ease;
}
.grid-cards .cell:hover { background: rgba(232, 238, 224, 0.04); }
.grid-cards .cell .num {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--dim);
  margin-bottom: 22px;
  font-variant-numeric: tabular-nums;
}
.grid-cards .cell h3 {
  font-size: 17.5px;
  font-weight: 500;
  color: var(--soft);
  margin-bottom: 12px;
  line-height: 1.3;
}
.grid-cards .cell p { font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.grid-cards a.cell { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.grid-cards a.cell .go {
  margin-top: auto;
  padding-top: 22px;
  font-size: 13px;
  color: var(--accent);
  opacity: 0.75;
  transition: opacity .3s ease, transform .3s ease;
}
.grid-cards a.cell:hover .go { opacity: 1; transform: translateX(3px); }

/* строки с крупным номером (стиль манифеста главной) */
.rows { border-top: 1px solid var(--line); }
.row-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.row-item .num {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.055em;
  color: var(--accent);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.row-item h3 {
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--soft);
  margin-bottom: 10px;
  line-height: 1.2;
}
.row-item p { font-size: clamp(14px, 1.5vw, 16px); line-height: 1.6; color: var(--muted); max-width: 560px; }

/* шаги (как степпер главной) */
.steps-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; text-align: left; }
.steps-line.cols-3 { grid-template-columns: repeat(3, 1fr); }
.stp { position: relative; }
.stp-marker { display: flex; align-items: center; margin-bottom: 22px; position: relative; }
.stp-marker .dot-num {
  position: relative;
  z-index: 1;
  background: var(--bg);
  width: 44px; height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stp-marker::after {
  content: '';
  position: absolute;
  left: 44px;
  right: -28px;
  top: 22px;
  height: 1px;
  background: var(--line);
}
.stp:last-child .stp-marker::after { display: none; }
.stp h3 { font-size: 17px; font-weight: 500; color: var(--soft); margin-bottom: 10px; line-height: 1.3; }
.stp p { font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* сплит: текст + перечень */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.split h2 {
  font-size: clamp(26px, 3.8vw, 42px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--soft);
  margin-bottom: 16px;
}
.split .side p { font-size: 15px; line-height: 1.65; color: var(--muted); margin-bottom: 14px; }
.check-list { list-style: none; }
.check-list li {
  position: relative;
  padding: 14px 0 14px 34px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--soft);
}
.check-list li:first-child { border-top: 1px solid var(--line); }
.check-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 21px;
  width: 10px; height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.check-list li span { color: var(--muted); }

/* цена по запросу */
.price-band {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  background: rgba(232, 238, 224, 0.03);
}
.price-band h2 {
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--soft);
  margin-bottom: 14px;
}
.price-band p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.price-band .tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(212, 200, 154, 0.4);
  border-radius: 999px;
}
.price-band .action { text-align: center; }
.price-band .action .small { display: block; margin-top: 14px; font-size: 12.5px; color: var(--dim); }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 4px;
  font-size: clamp(15.5px, 1.7vw, 17.5px);
  font-weight: 500;
  color: var(--soft);
  transition: color .2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--fg); }
.faq summary .plus {
  flex-shrink: 0;
  position: relative;
  width: 16px; height: 16px;
}
.faq summary .plus::before, .faq summary .plus::after {
  content: '';
  position: absolute;
  background: var(--accent);
  transition: transform .25s ease;
}
.faq summary .plus::before { left: 0; top: 7px; width: 16px; height: 2px; }
.faq summary .plus::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq details[open] summary .plus::after { transform: scaleY(0); }
.faq .a { padding: 0 4px 24px; font-size: 14.5px; line-height: 1.65; color: var(--muted); max-width: 640px; }

/* другие услуги */
.more-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.more-services a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  border-bottom: 1px solid var(--line);
  transition: background-color .3s ease, border-color .3s ease;
}
.more-services a:hover { background: rgba(232, 238, 224, 0.05); border-color: rgba(232, 238, 224, 0.3); }
.more-services .t { font-size: 15px; font-weight: 500; color: var(--soft); line-height: 1.35; }
.more-services .d { font-size: 12.5px; color: var(--dim); line-height: 1.5; }
.more-services .go { margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--accent); }

/* финальный CTA */
.final-cta { text-align: center; padding: clamp(80px, 11vw, 140px) 0; border-top: 1px solid var(--line); }
.final-cta h2 {
  font-size: clamp(32px, 5.6vw, 64px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--soft);
  margin-bottom: 16px;
}
.final-cta p { font-size: clamp(15px, 1.8vw, 19px); color: var(--muted); max-width: 480px; margin: 0 auto 36px; line-height: 1.55; }

/* ───── ФУТЕР ───── */
.site-footer { border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 72px) 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  margin-bottom: 48px;
}
.footer-grid .about .brand-f {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 14px;
}
.footer-grid .about .brand-f .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.footer-grid .about p { font-size: 13.5px; line-height: 1.6; color: var(--muted); max-width: 300px; }
.footer-grid .col .k {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 16px;
}
.footer-grid .col ul { list-style: none; }
.footer-grid .col li { margin-bottom: 10px; }
.footer-grid .col a { font-size: 13.5px; color: var(--muted); border-bottom: none; }
.footer-grid .col a:hover { color: var(--soft); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.footer-bottom a { color: var(--muted); border-bottom: none; }
.footer-bottom a:hover { color: var(--soft); }

/* появление при скролле */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(0.16, 1, 0.3, 1), transform .7s cubic-bezier(0.16, 1, 0.3, 1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .site-nav .brand .dot { animation: none; }
}

/* ───── ГЛАВНАЯ: карточки-ссылки ───── */
a.card { border-bottom: 1px solid var(--line); cursor: pointer; }
a.card:hover { border-bottom: 1px solid var(--line); }
a.card .go {
  margin-top: auto;
  padding-top: 22px;
  font-size: 13px;
  color: var(--accent);
  opacity: 0.75;
  transition: opacity .3s ease, transform .3s ease;
}
a.card:hover .go { opacity: 1; transform: translateX(3px); }

/* ───── АДАПТИВ ───── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .burger { display: inline-flex; }
  .grid-cards, .grid-cards.cols-2 { grid-template-columns: 1fr 1fr; }
  .steps-line, .steps-line.cols-3 { grid-template-columns: 1fr; gap: 0; }
  .stp { display: grid; grid-template-columns: 44px 1fr; gap: 0 20px; padding-bottom: 36px; }
  .stp:last-child { padding-bottom: 0; }
  .stp::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 44px;
    bottom: 0;
    width: 1px;
    background: var(--line);
  }
  .stp:last-child::before { display: none; }
  .stp-marker { margin-bottom: 0; }
  .stp-marker::after { display: none; }
  .stp-body { padding-top: 2px; }
  .split { grid-template-columns: 1fr; }
  .price-band { grid-template-columns: 1fr; text-align: left; }
  .price-band .action { text-align: left; }
  .more-services { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .grid-cards, .grid-cards.cols-2 { grid-template-columns: 1fr; }
  .row-item { grid-template-columns: 1fr; gap: 10px; padding: 26px 0 30px; }
  .row-item .num { font-size: 44px; }
  .more-services { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .crumbs { font-size: 11px; }
}
