/* SitePatio — строгий чёрно-белый стиль. Шрифт Onest. */
@import url("https://fonts.googleapis.com/css2?family=Onest:wght@100..900&display=swap");

:root {
  --black: #000;
  --white: #fff;
  --g1: #F2F2F2;
  --g2: #D4D4D4;
  --g3: #6B6B6B;
  --on-black-muted: #B5B5B5;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --rule: 2px solid var(--black);
  /* Насыщенность и трекинг заголовков. Крупный кегль: --w-display (первый экран, цена, H1, факты, номера этапов),
     H2 секций: --w-h2, подзаголовки H3: --w-h3. Тоньше шрифт — меньше отрицательный трекинг. */
  --w-display: 400; --t-display: -0.035em;
  --w-h2: 400; --t-h2: -0.03em;
  --w-h3: 600; --t-h3: -0.01em;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 90px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font: 400 18px/1.6 Onest, system-ui, -apple-system, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 16px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-weight: var(--w-h2); letter-spacing: var(--t-h2); margin: 0; }
h3 { font-weight: var(--w-h3); letter-spacing: var(--t-h3); }
h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.02; }
h3 { font-size: 24px; line-height: 1.2; }

/* Кнопки. При наведении справа от текста прорисовывается тонкая линия-стрелка,
   кнопка немного расширяется. Стрелка — маска, поэтому берёт цвет текста. */
.btn {
  --btn-bg: var(--black); --btn-fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 0;
  min-height: 56px; padding: 0 28px;
  font: 700 18px/1 Onest, sans-serif; text-decoration: none;
  border: 2px solid var(--btn-bg); background: var(--btn-bg); color: var(--btn-fg);
  cursor: pointer; white-space: nowrap;
  transition: gap .3s cubic-bezier(.2,.7,.2,1);
}
.btn::after {
  content: ""; flex: none; width: 0; height: 14px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 14'%3E%3Cpath d='M0 7h20M14 1l6 6-6 6' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") no-repeat 0 50% / 22px 14px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 14'%3E%3Cpath d='M0 7h20M14 1l6 6-6 6' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") no-repeat 0 50% / 22px 14px;
  transition: width .3s cubic-bezier(.2,.7,.2,1);
}
.btn:hover, .btn:focus-visible { gap: 12px; }
.btn:hover::after, .btn:focus-visible::after { width: 22px; }
.on-black .btn { --btn-bg: var(--white); --btn-fg: var(--black); }
.btn--ghost { background: transparent; color: var(--btn-bg); }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn::after { transition: none; }
}

/* Пиктограммы контактов (SVG из tools/build.py) */
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.topbar a, .f-col a, .messengers a, .email-link { display: inline-flex; align-items: center; gap: 8px; }
.contact .contact-email { margin-top: 16px; color: var(--black); }
.contact-email .email-link { font-weight: 600; font-size: 19px; }
.topbar .ico { width: 16px; height: 16px; }
.site-footer .footer-phone .ico { width: 20px; height: 20px; }

/* Плашка с контактами над шапкой */
.topbar { background: var(--black); color: var(--white); font-size: 15px; }
.topbar .wrap { display: flex; align-items: center; gap: 4px 20px; min-height: 40px; }
.topbar-geo { color: var(--on-black-muted); margin-right: auto; }
.topbar a { text-decoration: none; font-weight: 500; padding: 8px 0; }
.topbar a:hover { text-decoration: underline; }
.topbar .topbar-phone { font-weight: 700; }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.logo { flex: none; display: block; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-weight: 500; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--black); }
.lang { display: flex; gap: 2px; font-weight: 700; font-size: 15px; }
.lang a, .lang span { padding: 6px 8px; text-decoration: none; }
.lang span { background: var(--black); color: var(--white); }
.lang a:hover { text-decoration: underline; }
.site-header .btn { min-height: 48px; padding: 0 20px; font-size: 16px; }
.menu-btn { display: none; }

/* Первый экран */
.hero { background: var(--black); color: var(--white); }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 64px; align-items: center;
  min-height: min(82vh, 820px); padding-top: 72px; padding-bottom: 72px;
}
.hero h1 { font-size: clamp(36px, 5vw, 72px); line-height: 1; font-weight: var(--w-display); letter-spacing: var(--t-display); }
.hero p { color: var(--on-black-muted); font-size: clamp(18px, 1.6vw, 21px); max-width: 40ch; margin: 32px 0 40px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* Чертёж дома на первом экране. Без JS и при reduced motion показан сразу целиком.
   Safari: у SVG без явной высоты в гриде ширина схлопывается — задаём её и пропорцию явно */
.plan { display: block; width: 100%; max-width: 520px; height: auto; aspect-ratio: 68 / 64; justify-self: stretch; margin-left: auto; color: var(--white); overflow: visible; }
.plan .p-line { fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linejoin: miter; stroke-linecap: square; }
.plan .p-win-frame { fill: none; stroke: currentColor; stroke-width: .6; }
.plan .p-win { fill: currentColor; }
.plan .p-guides path { fill: none; stroke: #5A5A5A; stroke-width: .3; }
.plan .p-dims path { fill: none; stroke: #9A9A9A; stroke-width: .35; }
.plan text { font-family: Onest, sans-serif; font-size: 2.3px; font-weight: 500; letter-spacing: .02em; }
.plan .p-dims text { fill: #9A9A9A; }
.plan .p-labels text { fill: #8A8A8A; font-size: 2px; }
.plan .p-pen { fill: currentColor; opacity: 0; }

/* Баннер с ценой — сразу под первым экраном */
.price { border-bottom: var(--rule); }
.price .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px 64px; align-items: center; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.price-big { margin: 0; font-weight: var(--w-display); font-size: clamp(88px, 17vw, 240px); line-height: .85; letter-spacing: calc(var(--t-display) - 0.01em); white-space: nowrap; }
.price-pre { font-size: .3em; letter-spacing: -0.02em; vertical-align: .15em; margin-right: -.1em; }
/* $100: при появлении цифры «набегают» (main.js), потом каждые 4 с — яркий блик и лёгкий «вдох» */
.price-num { display: inline-block; transform-origin: 0 85%; }
@media (prefers-reduced-motion: no-preference) {
  @supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .price-num {
      background: linear-gradient(105deg, #000 38%, #D6D6D6 47%, #F2F2F2 50%, #D6D6D6 53%, #000 62%) 100% 0 / 320% 100% no-repeat;
      -webkit-background-clip: text; background-clip: text;
      -webkit-text-fill-color: transparent; color: transparent;
      /* Safari обрезает текст с background-clip по границе блока, а плотный трекинг выносит
         последнюю цифру за неё — даём запас и компенсируем его отрицательным отступом */
      padding: .1em .14em .1em .02em; margin: -.1em -.14em -.1em -.02em;
    }
    .price-num.is-live { animation: price-shine 4s cubic-bezier(.5,0,.3,1) .4s infinite, price-pulse 4s ease-in-out .4s infinite; }
    @keyframes price-shine { 0% { background-position: 100% 0; } 32%, 100% { background-position: 0 0; } }
    @keyframes price-pulse { 0%, 34%, 100% { transform: scale(1); } 16% { transform: scale(1.045); } }
  }
}
.price-text { border-left: var(--rule); padding-left: 40px; }
.price-text h2 { font-size: clamp(30px, 3.6vw, 48px); }
.price-text p { color: var(--g3); margin: 12px 0 28px; }

/* Секции */
.section { padding: clamp(72px, 10vw, 136px) 0; border-bottom: var(--rule); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head p { margin: 0; color: var(--g3); max-width: 50ch; }
.on-black { background: var(--black); color: var(--white); }
.on-black .section-head p { color: var(--on-black-muted); }

/* Услуги */
.services { list-style: none; margin: 0; padding: 0; border-top: var(--rule); }
.services li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px;
  padding: 26px 0; border-bottom: 1px solid var(--g2);
}
.services li:last-child { border-bottom: var(--rule); }
.services p { margin: 0; color: var(--g3); max-width: 52ch; }
.services--priced li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 200px; }
.services .svc-from { color: var(--black); font-weight: 600; text-align: right; white-space: nowrap; }

/* Работы: по 3 в ряд; на главной 6, все — на works.html */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }
.works-more { margin-top: 56px; }
/* Мозаика (масонри): карточки разной формы, главные — на две колонки. Порядок слева направо;
   высоту строки считает main.js (layoutMasonry → grid-row-end: span N), без JS — обычная сетка. */
.works--masonry { grid-auto-flow: dense; column-gap: 32px; row-gap: 48px; }
.works--masonry.is-masonry { grid-auto-rows: 4px; row-gap: 0; }
.works--masonry.is-masonry .work { margin-bottom: 48px; align-self: start; }
.work--big { grid-column: span 2; }
.shot.shot--wide { aspect-ratio: 16 / 9; }
.shot.shot--tall { aspect-ratio: 3 / 4; }
.shot.shot--square { aspect-ratio: 1 / 1; }
.shot { display: block; border: var(--rule); aspect-ratio: 16 / 10; overflow: hidden; background: var(--g1); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--black); color: var(--white); font-size: 14px; }
.work .bar a { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work h3 { font-size: 20px; margin: 18px 0 6px; }
.work p { margin: 0; color: var(--g3); font-size: 16px; line-height: 1.5; }

/* Наведение на работу: карточка приподнимается с жёсткой чёрной тенью,
   а длинный скриншот медленно прокручивается — как будто листаешь сайт */
.work .shot, .work .bar { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s cubic-bezier(.2,.7,.2,1); }
.work .shot img { transition: object-position .9s cubic-bezier(.4,0,.2,1), transform .5s cubic-bezier(.2,.7,.2,1); }
.work:hover .shot, .work:hover .bar, .work:focus-within .shot, .work:focus-within .bar {
  transform: translate(-6px, -6px); box-shadow: 10px 10px 0 var(--black);
}
.work:hover .shot--scroll img, .work:focus-within .shot--scroll img {
  object-position: 50% 100%; transition: object-position 6s cubic-bezier(.45,0,.4,1);
}
.work:hover .shot:not(.shot--scroll) img, .work:focus-within .shot:not(.shot--scroll) img { transform: scale(1.05); }
.work:hover h3 { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
@media (prefers-reduced-motion: reduce) {
  .work .shot, .work .bar, .work .shot img { transition: none; }
  .work:hover .shot, .work:hover .bar, .work:focus-within .shot, .work:focus-within .bar { transform: none; }
  .work:hover .shot--scroll img, .work:focus-within .shot--scroll img { object-position: 50% 0; }
  .work:hover .shot img { transform: none; }
}

/* Страница услуг: строка на услугу — слева название и цена, справа описание и состав */
.services-page { border-bottom: var(--rule); }
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px 64px; padding: clamp(48px, 6vw, 80px) 0; border-bottom: 1px solid var(--g2); scroll-margin-top: 90px; }
.svc:last-child { border-bottom: 0; }
.svc h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; }
.svc-price { margin: 16px 0 0; font-size: 22px; font-weight: 600; }
.svc-price > span:first-child { display: block; font-size: 15px; font-weight: 400; color: var(--g3); }
.svc-body > p:first-child { margin: 0 0 24px; font-size: 20px; max-width: 52ch; }
.svc-body h3 { font-size: 17px; margin: 0 0 4px; }
.svc-body .gets { grid-template-columns: 1fr; margin-bottom: 24px; }
.svc-body .gets li { padding: 12px 0 12px 36px; }
.svc-body .gets li::before { top: 19px; width: 14px; height: 8px; }
.svc-price s, .svc-from s { color: var(--g3); font-weight: 400; margin-right: 6px; }
.sale { font-style: normal; font-size: 15px; font-weight: 700; background: var(--black); color: var(--white); padding: 2px 8px; margin-left: 6px; vertical-align: 3px; }
/* Строка со скидкой выделена рамкой; рамка выступает за край, чтобы колонки не сдвигались */
.services li.is-deal { position: relative; z-index: 1; border: 2px solid var(--black); margin: -1px -24px; padding-left: 22px; padding-right: 22px; }
.svc.is-deal { border: 2px solid var(--black); margin: -1px -32px; padding-left: 30px; padding-right: 30px; }
.services h3 .sale { margin-left: 10px; vertical-align: 4px; white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.svc-note { color: var(--g3); margin: -8px 0 24px; font-size: 16px; }

/* Этапы на странице «Як ми працюємо»: две колонки, текст длиннее */
.steps.steps--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.steps.steps--wide li, .steps.steps--wide li:nth-child(3n+2), .steps.steps--wide li:nth-child(3n+3) { padding: 32px 40px 40px 0; border-left: 0; }
.steps.steps--wide li:nth-child(even) { padding-left: 40px; border-left: 1px solid #3A3A3A; }
.steps--wide p { max-width: 46ch; }

/* Эффект печатной машинки для заголовков с data-typewriter (main.js) */
.tw .tw-char { opacity: 0; }
.tw .tw-char.tw-on { opacity: 1; }
.tw-caret { display: inline-block; width: .06em; min-width: 2px; height: .9em; margin-left: .04em; margin-right: -.1em; vertical-align: -.08em; background: currentColor; animation: tw-blink 1s steps(1) infinite; }
.tw-caret.tw-done { animation: tw-fade .4s forwards; }
@keyframes tw-blink { 50% { opacity: 0; } }
@keyframes tw-fade { to { opacity: 0; } }

/* Частые вопросы */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px 64px; }
.faq-list { border-top: var(--rule); }
.faq-item { border-bottom: 1px solid var(--g2); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-size: 20px; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-weight: 400; font-size: 28px; line-height: .9; transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 24px; color: var(--g3); max-width: 60ch; }

/* Ссылка «детальніше» под блоком на главной */
.more { margin-top: 40px; }

/* Заголовок внутренней страницы */
.page-head { border-bottom: var(--rule); padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 5vw, 64px); }
.page-head h1 { font-size: clamp(48px, 8vw, 112px); line-height: .95; font-weight: var(--w-display); letter-spacing: var(--t-display); }
.page-head p { color: var(--g3); max-width: 56ch; margin: 24px 0 0; font-size: 20px; }

/* Факты о студии */
.facts-band { border-bottom: var(--rule); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fact { padding: clamp(32px, 5vw, 56px) 32px clamp(32px, 5vw, 56px) 0; }
.fact + .fact { padding-left: 32px; border-left: var(--rule); }
.fact b { display: block; font-weight: var(--w-display); font-size: clamp(64px, 9vw, 128px); line-height: .9; letter-spacing: var(--t-display); }
.fact span { display: block; margin-top: 16px; color: var(--g3); max-width: 24ch; }

/* Страница 404 */
.page-404 { border-bottom: 0; min-height: 50vh; }
.code-404 { margin: 0 0 8px; font-size: 20px; color: var(--g3); }
.links-404 { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* Чёрная полоса с призывом */
.section.cta-band { padding: clamp(56px, 7vw, 96px) 0; }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 64px; align-items: center; }
.cta-band h2 { grid-row: 1 / 3; max-width: 16ch; }
.cta-band p { color: var(--on-black-muted); max-width: 46ch; margin: 0 0 28px; align-self: end; }
.cta-band .btn { justify-self: start; align-self: start; }

/* Как работаем */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--white); }
.steps li { counter-increment: step; padding: 28px 28px 40px 0; border-bottom: 1px solid #3A3A3A; }
.steps li:nth-child(3n+2), .steps li:nth-child(3n+3) { padding-left: 28px; border-left: 1px solid #3A3A3A; }
.steps li::before { content: counter(step); display: block; font: var(--w-display) 64px/1 Onest, sans-serif; letter-spacing: var(--t-display); margin-bottom: 24px; }
.steps p { margin: 8px 0 0; color: var(--on-black-muted); }
/* Появление по одному (класс ставит main.js; задержки — инлайном).
   Переходы только в состоянии .is-in: скрытие при подготовке должно быть мгновенным */
.steps.js-reveal li { opacity: 0; transform: translateY(32px); }
.steps.js-reveal li::before { display: inline-block; transform: scale(.6); transform-origin: 0 100%; }
.steps.js-reveal.is-in li { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.steps.js-reveal.is-in li::before { transform: none; transition: transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: inherit; }

/* Что получаете */
.gets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.gets li { padding: 20px 0 20px 40px; border-top: 1px solid var(--g2); position: relative; }
.gets li::before { content: ""; position: absolute; left: 0; top: 29px; width: 18px; height: 10px; border-left: 3px solid var(--black); border-bottom: 3px solid var(--black); transform: rotate(-45deg); }

/* Форма */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 64px; }
.contact aside p { color: var(--g3); max-width: 42ch; }
.contact .contact-phone { color: var(--black); margin-top: 32px; }
.contact-phone a { font-weight: 800; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; white-space: nowrap; }
.messengers { display: flex; flex-wrap: wrap; gap: 8px; }
.messengers a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 2px solid currentColor; font-weight: 700; font-size: 16px; text-decoration: none;
}
.contact .contact-msg { margin-top: 16px; color: var(--black); }
.next { margin-top: 48px; padding-top: 28px; border-top: var(--rule); }
.next h3 { font-size: 20px; }
.next ol { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: nx; }
.next li { counter-increment: nx; display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--g2); color: var(--g3); font-size: 17px; }
.next li::before { content: counter(nx); font-weight: 800; font-size: 22px; line-height: 1.2; color: var(--black); }
.contact .messengers a:hover { background: var(--black); color: var(--white); }
.site-footer .footer-phone { color: var(--white); font-weight: 700; font-size: 20px; white-space: nowrap; }
.form { display: grid; gap: 22px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 56px; padding: 14px 16px;
  font: inherit; color: inherit; background: var(--white);
  border: 2px solid var(--black); border-radius: 0; -webkit-appearance: none; appearance: none;
}
.field select { background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23000' stroke-width='2.5'/%3E%3C/svg%3E") no-repeat right 18px center; padding-right: 48px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--black); outline-offset: 2px; }
.trap { position: absolute; left: -9999px; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 16px; color: var(--g3); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--black); }
.btn:disabled { opacity: .6; cursor: progress; }
.form-note { margin: 0; padding: 14px 16px; background: var(--g1); border-left: 4px solid var(--black); }
.form-note[hidden] { display: none; }

/* Баннер согласия на cookies аналитики */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px 24px; padding: 20px 24px; background: var(--white); border: var(--rule); box-shadow: 8px 8px 0 var(--black); }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; font-size: 16px; }
.cookie-actions { display: flex; gap: 8px; flex: none; }
.cookie-actions .btn { min-height: 48px; padding: 0 20px; font-size: 16px; }
.cookie-link { background: none; border: 0; padding: 0; margin-left: 16px; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.cookie-link[hidden] { display: none; }
@media (max-width: 640px) { .cookie-bar { flex-direction: column; align-items: stretch; } .cookie-actions .btn { flex: 1; } }

/* Подвал: о студии | меню | услуги | контакты */
.site-footer { background: var(--black); color: var(--white); padding: 72px 0 32px; border-top: 1px solid #3A3A3A; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.2fr); gap: 40px 40px; }
.site-footer img { height: 34px; width: auto; }
.f-brand p { color: var(--on-black-muted); margin: 20px 0 0; max-width: 30ch; }
.f-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.f-col h2 { font-size: 15px; font-weight: 700; letter-spacing: 0; color: var(--on-black-muted); margin: 6px 0 6px; }
.f-col a { text-decoration: none; }
.f-col a:hover { text-decoration: underline; }
.site-footer .footer-phone { color: var(--white); font-weight: 700; font-size: 20px; white-space: nowrap; margin-bottom: 4px; }
.f-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid #3A3A3A; padding-top: 24px; margin-top: 16px; color: var(--on-black-muted); font-size: 15px; }
.f-bottom a { color: var(--white); }

/* Адаптив */
@media (max-width: 1060px) {
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; }
}
/* меню из 5 пунктов сворачивается в кнопку раньше, чем перестраивается сетка работ */
@media (max-width: 1180px) {
  .nav { display: none; }
  .site-header .wrap { gap: 16px; }
  .lang { margin-left: auto; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0;
    background: var(--white); color: var(--black); border: 2px solid var(--black); border-radius: 0; cursor: pointer;
    -webkit-appearance: none; appearance: none;
  }
  /* иконка меню: крыша + две линии; в открытом меню превращается в крестик */
  .menu-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; overflow: visible; }
  .menu-btn path { transition: transform .25s cubic-bezier(.2,.7,.2,1), opacity .2s; transform-box: view-box; transform-origin: 12px 14px; }
  .menu-btn .mb-l2 { transform-origin: 12px 19px; }
  .menu-btn[aria-expanded="true"] .mb-roof { opacity: 0; transform: translateY(-4px); }
  .menu-btn[aria-expanded="true"] .mb-l1 { transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .mb-l2 { transform: translateY(-5px) rotate(-45deg); }
  .site-header.open .nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: var(--rule); padding: 8px var(--gutter) 16px;
  }
  .site-header.open .nav a { padding: 14px 0; border-bottom: 1px solid var(--g2); font-size: 20px; }
}
@media (max-width: 860px) {
  .svc, .faq { grid-template-columns: 1fr; }
  .steps.steps--wide { grid-template-columns: 1fr; }
  .steps.steps--wide li:nth-child(even) { padding-left: 0; border-left: 0; }
  .cta-band .wrap { grid-template-columns: 1fr; }
  .cta-band h2 { grid-row: auto; margin-bottom: 20px; }
  .facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 28px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--g2); }
  .price .wrap { grid-template-columns: 1fr; }
  .price-text { border-left: 0; border-top: var(--rule); padding: 24px 0 0; }
  .topbar-geo { display: none; }
  .topbar .wrap { justify-content: space-between; gap: 4px 14px; }
  .topbar .topbar-phone { margin-right: auto; }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 48px; padding-bottom: 56px; gap: 40px; }
  .plan { max-width: 260px; margin-left: 0; order: -1; }
  .section-head, .services li, .services--priced li, .contact { grid-template-columns: 1fr; gap: 12px; }
  .services .svc-from { text-align: left; }
  .services li.is-deal { margin: -1px -12px; padding-left: 10px; padding-right: 10px; }
  .svc.is-deal { margin: -1px -12px; padding-left: 10px; padding-right: 10px; }
  .contact { gap: 40px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li:nth-child(3n+2), .steps li:nth-child(3n+3) { padding: 24px 0 28px; border-left: 0; }
  .steps li::before { font-size: 44px; margin-bottom: 12px; }
  .gets { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  /* в плашке на телефоне у мессенджеров остаются только пиктограммы */
  .topbar a:not(.topbar-phone) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .topbar a:not(.topbar-phone) .ico { width: 20px; height: 20px; }
  .topbar .wrap { gap: 4px 18px; }
}
@media (max-width: 400px) {
  .topbar { font-size: 14px; }
  .topbar .wrap { gap: 2px 10px; }
}
@media (max-width: 640px) {
  .works { grid-template-columns: 1fr; }
  .work--big { grid-column: auto; }
  .site-header .btn { display: none; }
  .logo img { height: 28px; }
  .hero .actions .btn { width: 100%; }
  .btn { white-space: normal; text-align: center; }
}
