/* Стили сайта-шаблона. Цвета, шрифты и скругление меняются в админке → «Оформление»
   (переменные из :root ниже — значения по умолчанию). */
@font-face { font-family: 'Manrope'; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/manrope-cyrillic-9ae50d.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/manrope-latin-f00ccc.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Unbounded'; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/unbounded-cyrillic-cb504d.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/unbounded-latin-37e641.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }

:root {
  --bg: #f6f5f1;
  --paper: #ecebe5;
  --card: #ffffff;
  --ink: #1c1d1b;
  --ink-2: #3f413d;
  --muted: #74766f;
  --line: #dcdbd3;
  --accent: #2f5d50;
  --accent-d: #234a3f;
  --accent-ink: #ffffff;
  --dark: #1f2522;
  --ff: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-h: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --sec: clamp(64px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--ff); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--ff-h); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); }
b, strong { font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--card); padding: 8px 14px; border-radius: var(--radius-sm); }

/* ── Типографика */
.h1 { font-size: clamp(38px, 6vw, 72px); }
.h2 { font-size: clamp(30px, 4vw, 48px); }
.h3 { font-size: clamp(22px, 2.4vw, 28px); }
.h4 { font-size: 19px; letter-spacing: -0.01em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.accent { color: var(--accent); }
.center { text-align: center; }
.prose { max-width: 760px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 1.6em; }
.prose h3 { font-size: 22px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.35em; }
.prose img { border-radius: var(--radius); margin: 1.6em 0; }

/* ── Сетка */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.sec { padding: var(--sec) 0; }
.sec--paper { background: var(--paper); }
.sec--dark { background: var(--dark); color: #e9ebe7; }
.sec--dark h1, .sec--dark h2, .sec--dark h3, .sec--dark h4 { color: #fff; }
.sec--dark .muted, .sec--dark .lead { color: #b9bdb6; }
.sec--tight { padding: calc(var(--sec) * 0.55) 0; }
.sec__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec__head > div { max-width: 720px; }
.sec__head .lead { margin-top: 16px; }
.grid2, .grid3, .grid4 { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); align-items: center; }
.cols--top { align-items: start; }
.stack > * + * { margin-top: 18px; }

/* ── Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-d); border-color: var(--accent-d); color: var(--accent-ink); }
.btn--light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--light:hover { background: #fff; color: var(--dark); }
.btn--lg { min-height: 58px; padding: 0 32px; font-size: 17px; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.link-arrow::after { content: '→'; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ── Шапка */
.hdr { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hdr.is-scrolled { border-bottom-color: var(--line); }
.hdr__in { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--ff-h); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.logo img { width: 36px; height: 36px; }
.logo small { display: block; font-family: var(--ff); font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); background: var(--paper); }
.hdr__cta { flex: none; }
.burger { display: none; width: 46px; height: 46px; margin-left: auto; border: 0; border-radius: 50%; background: var(--paper); cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--ink); transition: transform .2s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
.mnav { position: fixed; left: 0; right: 0; bottom: 0; top: 76px; z-index: 49; padding: 24px var(--gut) 40px; background: var(--bg); overflow: auto; }
.mnav a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 22px; font-weight: 700; text-decoration: none; }
.mnav .btn { margin-top: 28px; }

/* ── Первый экран */
.hero { padding: clamp(40px, 6vw, 80px) 0 var(--sec); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .lead { margin-top: 24px; max-width: 560px; }
.hero .btns { margin-top: 36px; }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.hero__badge { position: absolute; left: -24px; bottom: 32px; max-width: 240px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--card); box-shadow: 0 18px 50px rgba(0, 0, 0, .12); font-size: 14px; line-height: 1.45; }
.hero__badge b { display: block; font-family: var(--ff-h); font-size: 28px; line-height: 1.1; color: var(--accent); }
.facts { display: flex; flex-wrap: wrap; gap: 28px 44px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts b { display: block; font-family: var(--ff-h); font-size: 32px; line-height: 1.1; }
.facts span { font-size: 14px; color: var(--muted); }

/* Заголовок внутренней страницы */
.phead { padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 56px); }
.phead__h { font-size: clamp(36px, 5.4vw, 64px); max-width: 900px; }
.phead__lead { margin-top: 20px; max-width: 700px; font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); }
.crumbs { padding-top: 22px; font-size: 14px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs + .phead { padding-top: clamp(20px, 3vw, 40px); }

/* ── Карточки */
.card { background: var(--card); border-radius: var(--radius); }
.feat { padding: clamp(24px, 2.6vw, 34px); background: var(--card); border-radius: var(--radius); }
.feat__n { display: block; margin-bottom: 22px; font-family: var(--ff-h); font-size: 15px; font-weight: 700; color: var(--accent); }
.feat__ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.feat__ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { margin-bottom: 10px; }
.feat p { color: var(--ink-2); font-size: 16px; }
.sec--paper .feat { background: var(--card); }
.sec--dark .feat { background: rgba(255, 255, 255, .06); }
.sec--dark .feat p { color: #c8cbc4; }

/* Услуги со стоимостью */
.svc { display: flex; flex-direction: column; padding: clamp(24px, 2.6vw, 34px); background: var(--card); border-radius: var(--radius); }
.svc p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.svc__price { margin-top: auto; padding-top: 24px; font-family: var(--ff-h); font-size: 22px; font-weight: 700; }
.svc__price small { font-family: var(--ff); font-size: 14px; font-weight: 500; color: var(--muted); }

/* Проекты */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.pgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pcard { display: block; text-decoration: none; color: var(--ink); }
.pcard__img { overflow: hidden; border-radius: var(--radius); background: var(--paper); }
.pcard__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.pcard:hover .pcard__img img { transform: scale(1.04); }
.pcard h3 { margin-top: 16px; font-size: 20px; letter-spacing: -0.01em; }
.pcard p { margin-top: 4px; font-size: 15px; color: var(--muted); }
.pcard:hover { color: var(--ink); }

/* Галерея */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); }
.gallery figure { overflow: hidden; border-radius: var(--radius-sm); cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figure.wide { grid-column: span 2; }
.gallery figure.wide img { aspect-ratio: auto; height: 100%; }

/* Текст + фото */
.media-img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 3; }
.media-img--tall { aspect-ratio: 4 / 5; }
.checks { padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 34px; }
.checks li + li { margin-top: 12px; }
.checks li::before { content: ''; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Этапы */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); counter-reset: st; padding: 0; list-style: none; }
.step { position: relative; padding-top: 30px; border-top: 2px solid var(--line); counter-increment: st; }
.step::before { content: counter(st, decimal-leading-zero); position: absolute; top: -2px; left: 0; padding-top: 10px; border-top: 2px solid var(--accent); width: 44px; font-family: var(--ff-h); font-size: 14px; font-weight: 700; color: var(--accent); }
.step h3 { margin: 16px 0 8px; font-size: 19px; }
.step p { font-size: 15px; color: var(--ink-2); }
.sec--dark .step { border-color: rgba(255, 255, 255, .15); }
.sec--dark .step p { color: #c8cbc4; }

/* Отзывы */
.rev { display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 2.6vw, 34px); background: var(--card); border-radius: var(--radius); }
.rev blockquote { font-size: 17px; line-height: 1.6; }
.rev__who { display: flex; align-items: center; gap: 14px; margin-top: auto; font-size: 15px; }
.rev__who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.rev__who span { display: block; color: var(--muted); font-size: 14px; }

/* Вопросы */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-family: var(--ff-h); font-size: clamp(18px, 1.8vw, 21px); font-weight: 700; letter-spacing: -0.01em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); font-size: 22px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 26px; max-width: 760px; color: var(--ink-2); }

/* Цены */
.price { display: flex; flex-direction: column; padding: clamp(26px, 3vw, 38px); background: var(--card); border: 1.5px solid transparent; border-radius: var(--radius); }
.price--main { border-color: var(--accent); }
.price__name { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.price__sum { margin: 14px 0 6px; font-family: var(--ff-h); font-size: clamp(30px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.02em; }
.price ul { margin: 22px 0 30px; }
.price .btn { margin-top: auto; }

/* Плашка с призывом */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(32px, 5vw, 64px); border-radius: var(--radius); background: var(--dark); color: #e9ebe7; }
.cta h2 { color: #fff; max-width: 680px; }
.cta p { margin-top: 12px; color: #b9bdb6; max-width: 620px; }

/* Контакты */
.contact { padding: 26px 28px; background: var(--card); border-radius: var(--radius); }
.contact span { display: block; margin-bottom: 6px; font-size: 14px; color: var(--muted); }
.contact a, .contact b { font-family: var(--ff-h); font-size: 20px; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; }
.socials a:hover { border-color: var(--accent); }

/* Элементы */
.divider { height: 1px; margin: 0; border: 0; background: var(--line); }
.space { height: 48px; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--paper); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.meta-list span { display: block; font-size: 13px; color: var(--muted); }
.meta-list b { font-size: 17px; }

/* ── Формы */
.form { display: grid; gap: 18px; padding: clamp(24px, 3vw, 40px); background: var(--card); border-radius: var(--radius); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fld { display: grid; gap: 7px; }
.fld > span { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.fld input, .fld textarea, .fld select { width: 100%; min-height: 52px; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font-size: 16px; transition: border-color .15s, background .15s; }
.fld textarea { min-height: 110px; resize: vertical; }
.fld input:focus, .fld textarea:focus, .fld select:focus { outline: 0; border-color: var(--accent); background: var(--card); }
.fld.is-bad input, .fld.is-bad textarea { border-color: #c0392b; }
.fld__msg { font-size: 13px; color: #c0392b; }
.chk { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.chk input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.chk.is-bad { color: #c0392b; }
.form__note { font-size: 14px; color: var(--muted); text-align: center; }
.form__err { font-size: 15px; color: #c0392b; text-align: center; }
.form__err:empty { display: none; }
.form.is-sending button[type=submit] { opacity: .6; pointer-events: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.sec--dark .form { color: var(--ink); }

/* ── Подвал */
.ftr { padding: clamp(48px, 6vw, 80px) 0 32px; background: var(--dark); color: #b9bdb6; font-size: 15px; }
.ftr__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ftr .logo { color: #fff; }
.ftr .logo small { color: #8d918a; }
.ftr p { margin-top: 18px; max-width: 360px; }
.ftr h4 { margin-bottom: 14px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #8d918a; }
.ftr ul { padding: 0; list-style: none; }
.ftr li + li { margin-top: 8px; }
.ftr a { text-decoration: none; color: #e9ebe7; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 13px; color: #8d918a; }
.ftr__bottom a { color: #8d918a; }

/* ── Окно cookie и просмотр фото */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 16px; max-width: 560px; margin: 0 auto; padding: 14px 16px 14px 20px; border-radius: var(--radius-sm); background: var(--dark); color: #e9ebe7; font-size: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.cookie a { color: #fff; }
.cookie .btn { flex: none; border-color: #fff; color: #fff; }
.lb { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(10, 12, 11, .92); cursor: zoom-out; }
.lb img { max-width: 100%; max-height: 100%; border-radius: var(--radius-sm); }

/* ── Появление при прокрутке */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease var(--d, 0s), transform .7s ease var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ── Адаптив */
@media (max-width: 1020px) {
  .nav, .hdr__cta { display: none; }
  .burger { display: block; }
  .grid4, .steps, .meta-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgrid, .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr__top { grid-template-columns: 1fr 1fr; }
  .ftr__top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hdr__in { height: 64px; }
  .mnav { top: 64px; }
  .hero__grid, .cols, .grid2, .form__row { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__media img { aspect-ratio: 4 / 3; }
  .hero__badge { left: 12px; bottom: 12px; }
  .pgrid, .pgrid--2, .grid3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery figure.wide { grid-column: span 2; }
  .btns .btn { flex: 1 1 auto; }
  .cta { flex-direction: column; align-items: flex-start; }
  .cta .btn { width: 100%; }
}
@media (max-width: 480px) {
  .grid4, .steps, .meta-list, .ftr__top { grid-template-columns: 1fr; }
  .facts { gap: 20px 28px; }
}
