/* «Аквариус» — стили сайта. Тёплый светлый фон, графит, приглушённый оливковый акцент.
   Без градиентов и декоративных эффектов. Шрифты — IBM Plex (OFL), кириллица, свои файлы. */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dy: 12px; --dx: 12px; --ms: .98; --press: .97; --hover-scale: 1.03; --st: 1; --rows-t: 1;
  --bg: #f5f1e8;
  --tint: #ece6d8;
  --card: #faf8f2;
  --text: #292826;
  --muted: #5e5a50;
  --line: #d6cfbd;
  --line-strong: #b3ab97;
  --olive: #5b6a35;
  --olive-dark: #4a5729;
  --olive-tint: #e4e8d3;
  --danger: #a3321f;
  --dark: #2a2927;
  --on-dark: #ece7da;
  --on-dark-muted: #b9b3a3;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, "Courier New", monospace;
  --radius: 6px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6; }
body.modal-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive-dark); text-underline-offset: .18em; }
a:hover { color: var(--text); }
h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem); }
h3 { font-size: 1.15rem; line-height: 1.3; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: #fff; padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(800px, 100% - 40px); }
.center { text-align: center; }
.section { padding: clamp(44px, 6.5vw, 84px) 0; }
.section--tint { background: var(--tint); }
.section--flush { padding-top: 0; }
.section__head { max-width: 780px; margin-bottom: clamp(24px, 3.5vw, 40px); }
.section__head h2 { margin-bottom: .3em; }
.section__more { margin: 32px 0 0; }
.lead { font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.eyebrow { font-family: var(--mono); font-size: .88rem; color: var(--olive-dark); margin: 0 0 .9rem; }
.h3-block { margin: 8px 0 20px; font-size: 1.25rem; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: var(--radius); border: 1px solid transparent; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer; text-align: center; transition: transform 160ms var(--ease-out), background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn--primary { background: var(--olive); color: #fff; border-color: var(--olive); }
.btn--primary:hover { background: var(--olive-dark); border-color: var(--olive-dark); color: #fff; }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--text); }
.btn--secondary:hover { background: var(--text); color: var(--bg); }
.btn--block { width: 100%; }
.btn--sm { min-height: 42px; padding: 8px 12px; font-size: .9rem; }
.btn:active { transform: scale(var(--press)); }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.actions--center { justify-content: center; }

/* шапка */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.header__row { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; flex: none; }
.logo img { height: 36px; width: auto; }
.logo__text { display: grid; line-height: 1.15; }
.logo__name { font-weight: 600; font-size: 1.15rem; letter-spacing: .01em; }
.logo__sub { font-size: .76rem; color: var(--muted); }
.nav { display: none; gap: 26px; margin-left: auto; }
.nav a, .mobile-menu nav a { color: var(--text); text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--line-strong); }
.nav a[aria-current="page"], .mobile-menu nav a[aria-current="page"] { border-bottom-color: var(--olive); color: var(--olive-dark); }
.header__phone { display: none; font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap; }
.header__cta { display: none; }
.burger { margin-left: auto; width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); transition: transform 200ms var(--ease-out), opacity 150ms var(--ease-out); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { position: absolute; left: 0; right: 0; top: 100%; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line-strong); background: var(--bg); padding: 12px 0 20px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(calc(var(--dy) * -.7));
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out), visibility 0s linear 160ms; }
.mobile-menu.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
.mobile-menu__phone { display: block; margin: 16px 0; font-weight: 600; font-size: 1.15rem; color: var(--text); text-decoration: none; }
@media (min-width: 1100px) {
  .nav, .header__phone, .header__cta { display: inline-flex; }
  .header__phone { display: inline-block; }
  .burger, .mobile-menu { display: none !important; }
}

/* хлебные крошки */
.crumbs { padding: 14px 0 0; font-size: .88rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--text); }

/* первый экран */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(36px, 5vw, 72px); }
.hero__grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero__text > :last-child { margin-bottom: 0; }
.hero__price { font-size: clamp(1.2rem, 1rem + .8vw, 1.5rem); font-weight: 600; margin: 1.4rem 0 .3rem; }
.hero__price-note { font-size: .92rem; color: var(--muted); max-width: 56ch; margin: 0; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 1.6rem 0 0; color: var(--muted); font-size: .95rem; }
.hero__facts li { position: relative; padding-left: 16px; }
.hero__facts li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; background: var(--olive); }
.hero__media { margin: 0; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); max-height: 540px; }
.hero__media figcaption { margin-top: 8px; font-size: .85rem; color: var(--muted); }
.hero--text { padding-bottom: clamp(28px, 4vw, 48px); }
.hero--inner { padding-top: clamp(20px, 3vw, 36px); }
.ph { display: grid; place-items: center; min-height: 200px; aspect-ratio: 4 / 3; padding: 20px; text-align: center; background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); font-size: .92rem; }
.ph--wide { aspect-ratio: 16 / 7; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media img, .ph { aspect-ratio: 16 / 10; max-height: 280px; }
  .hero { padding-top: 24px; }
}

/* карточки */
.cards { display: grid; gap: 20px; }
.cards--2 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards--2 { grid-template-columns: repeat(2, 1fr); } }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.cards--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; align-items: flex-start; }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); }
.card > :last-child { margin-bottom: 0; }
.card__price { font-size: 1.5rem; font-weight: 600; color: var(--text) !important; margin: .2em 0 .5em; }
.card__note { font-size: .92rem; }
.card .btn { margin-top: auto; }
.card--choice .card__price { margin-top: auto; }
.card--choice p:not(.card__price):not(.card__note) { margin-bottom: 1.2em; }
.card--line { border-left: 3px solid var(--olive); }
.scenarios { margin-top: 28px; }
.price-overview { display: grid; gap: 28px; }
.price-overview__label { font-family: var(--mono); font-size: .85rem; color: var(--olive-dark); margin-bottom: 10px; }
.card--price .card__price { margin-top: .1em; }
@media (min-width: 1000px) { .price-overview { grid-template-columns: 3fr 1fr; align-items: start; } }

/* пакеты, таблица, калькулятор */
.pkg ul { margin-bottom: 1rem; }
.check-list { list-style: none; display: grid; gap: 8px; color: var(--text); }
.check-list li { position: relative; padding-left: 26px; }
.check-list li::before { content: ""; position: absolute; left: 3px; top: .45em; width: 11px; height: 6px; border-left: 2px solid var(--olive); border-bottom: 2px solid var(--olive); transform: rotate(-45deg); }
.pkg-table-wrap { display: none; }
.pkg-cards-mobile { display: grid; }
@media (min-width: 760px) {
  .pkg-table-wrap { display: block; }
  .pkg-cards-mobile { display: none; }
}
.pkg-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); }
.pkg-table th, .pkg-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.pkg-table thead th { text-align: center; font-weight: 600; border-bottom: 2px solid var(--text); }
.pkg-table__rate { display: block; font-family: var(--mono); font-weight: 500; font-size: .95rem; color: var(--olive-dark); margin-top: 4px; }
.pkg-table tbody th { text-align: left; font-weight: 500; }
.pkg-table .yes { color: var(--olive-dark); font-weight: 700; font-size: 1.1rem; }
.pkg-table .no { color: var(--line-strong); }
.pkg-table tfoot td { border-bottom: 0; }
.pkg-table__note { text-align: left !important; font-size: .88rem; color: var(--muted); }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); }
.calc__inputs { display: grid; gap: 20px; align-content: start; }
.calc__label { font-size: .9rem; color: var(--muted); margin-bottom: .2em; }
.calc__sum { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); font-weight: 600; line-height: 1.1; margin: 0 0 .25em; font-variant-numeric: tabular-nums; }
.calc__sum.is-empty { font-size: 1.15rem; font-weight: 500; color: var(--muted); }
.calc__formula { font-family: var(--mono); font-size: .9rem; color: var(--muted); min-height: 1.4em; }
.calc__note { font-size: .92rem; color: var(--muted); }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 500; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 2px; background: var(--olive-dark); transition: transform 200ms var(--ease-out); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 40px 22px 0; margin: 0; color: var(--muted); max-width: 70ch; }

/* шаги */
.steps-list { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.steps-list li { counter-increment: s; border-top: 2px solid var(--text); padding-top: 16px; }
.steps-list li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: .95rem; color: var(--olive-dark); display: block; margin-bottom: 10px; }
.steps-list h3 { margin-bottom: .3em; }
.steps-list p { color: var(--muted); margin: 0; }

/* разделы «текст + форма» */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--top { align-items: start; }
.split h2 { margin-bottom: .5em; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.panel__title { font-size: 1.4rem; }
.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding: 22px 24px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--card); }
.callout p { margin: 0; max-width: 56ch; }
.callout--plain { margin-top: 0; justify-content: flex-start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* проекты */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { min-height: 44px; padding: 8px 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; cursor: pointer; font-weight: 500; }
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--olive); border-color: var(--olive); color: #fff; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px 24px; }
.project-card[hidden] { display: none; }
.project-card__link { display: block; color: var(--text); text-decoration: none; }
.project-card__img { overflow: hidden; border-radius: var(--radius); background: var(--tint); }
.project-card__img img, .project-card__img .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 250ms var(--ease-out); }
.project-card__link { transition: transform 160ms var(--ease-out); transform-origin: 50% 40%; }
.project-card__link:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) { .project-card__link:hover .project-card__img img { transform: scale(var(--hover-scale)); } }
.project-card__tag { font-family: var(--mono); font-size: .8rem; color: var(--olive-dark); margin: 14px 0 4px; }
.project-card h3 { margin-bottom: .2em; }
.project-card__link:hover h3 { text-decoration: underline; text-underline-offset: .18em; }
.project-card__meta { color: var(--muted); font-size: .92rem; margin: 0; }
.project-head { padding: clamp(24px, 4vw, 44px) 0 clamp(20px, 3vw, 32px); }
.project-head .project-card__tag { margin-top: 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips li { border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 14px; font-size: .92rem; color: var(--muted); }

/* галерея */
.gallery { display: grid; gap: 10px; }
.gallery--preview { grid-template-columns: repeat(3, 1fr); }
.gallery--project { grid-template-columns: repeat(3, 1fr); }
.gallery__item { position: relative; padding: 0; border: 0; background: var(--tint); cursor: zoom-in; overflow: hidden; border-radius: var(--radius); display: block; }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .gallery__item:hover img { transform: scale(var(--hover-scale)); } }
.gallery--project .gallery__item:first-child { grid-column: 1 / -1; }
.gallery--project .gallery__item:first-child img { aspect-ratio: 16 / 8; max-height: 640px; }
.gallery__label { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 3px 10px; background: rgba(42, 41, 39, .8); color: #fff; font-size: .82rem; border-radius: 3px; }
@media (max-width: 640px) {
  .gallery--preview, .gallery--project { grid-template-columns: repeat(2, 1fr); }
  .gallery--project .gallery__item:first-child img { aspect-ratio: 4 / 3; }
}
.lightbox { border: 0; padding: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(24, 23, 21, .94); color: #fff; }
.lightbox::backdrop { background: rgba(24, 23, 21, .94); }
.lightbox__inner { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; padding: 56px 16px 16px; }
.lightbox__stage { display: grid; place-items: center; min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; }
.lightbox__cap { text-align: center; font-size: .92rem; color: #d9d4c6; padding-top: 12px; }
.lightbox__btn { position: absolute; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .5); background: rgba(24, 23, 21, .6); color: #fff; border-radius: var(--radius); cursor: pointer; font-size: 1.6rem; line-height: 1; }
.lightbox__btn:hover { background: #fff; color: #181715; }
.lightbox__close { top: 10px; right: 10px; }
.lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }

/* контакты */
.contact-list { display: grid; gap: 22px; margin: 0; }
.contact-list dt { font-size: .85rem; color: var(--muted); font-family: var(--mono); }
.contact-list dd { margin: 2px 0 0; font-size: 1.1rem; }
.contact-list a { word-break: break-word; }

/* формы */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field__label, .field > legend { font-size: .92rem; font-weight: 500; padding: 0; }
.field__label em, .field > legend em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 6px; }
.field__hint { font-size: .85rem; color: var(--muted); }
.field__error { color: var(--danger); font-size: .88rem; min-height: 0; }
.field__error:empty { display: none; }
.field input[type="text"], .field input[type="tel"], .field input[type="file"], .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 4px; background: #fff; }
.field textarea { resize: vertical; min-height: 96px; }
.field input[type="file"] { padding: 9px 12px; }
.field--error input:not([type="radio"]):not([type="checkbox"]), .field--error textarea { border-color: var(--danger); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--olive); outline-offset: 1px; border-color: var(--olive); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 4px; background: #fff; cursor: pointer; }
.choice input { accent-color: var(--olive); width: 18px; height: 18px; margin: 0; }
.choice:has(input:checked) { border-color: var(--olive); background: var(--olive-tint); }
.choice:has(input:focus-visible) { outline: 2px solid var(--olive); outline-offset: 2px; }
.field--error .choice { border-color: var(--danger); }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--olive); }
.check .field__error { grid-column: 2; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form__actions .btn--primary { flex: 1 1 auto; }
.steps-indicator { font-family: var(--mono); font-size: .85rem; color: var(--olive-dark); margin: 0; }
.step[hidden], .more__body[hidden] { display: none; }
.step { display: grid; gap: 18px; }
.more__toggle { background: none; border: 0; padding: 4px 0; color: var(--olive-dark); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; font-weight: 500; }
.more__body { margin-top: 10px; }
.form__result { border: 1px solid var(--line-strong); background: var(--tint); border-radius: var(--radius); padding: 16px 18px; font-size: .95rem; }
.form__result[hidden] { display: none; }
.form__result p { margin: 0 0 .6em; }
.form__result.is-error { border-color: var(--danger); }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* окно */
.modal { padding: 0; border: 0; border-radius: var(--radius); width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); background: var(--bg); color: var(--text); overflow: auto; }
.modal::backdrop { background: rgba(42, 41, 39, .55); }
.modal__box { position: relative; padding: clamp(22px, 4vw, 34px); }
.modal__title { font-size: 1.4rem; margin-right: 44px; }
.modal__lead { color: var(--muted); }
.modal__close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 1px solid var(--line-strong); background: transparent; border-radius: var(--radius); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.modal__close:hover { background: var(--text); color: var(--bg); }

/* закреплённая кнопка на телефоне */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); transition: transform .2s; }
.sticky-cta.is-hidden { transform: translateY(110%); }
body.has-sticky { padding-bottom: 76px; }
@media (min-width: 900px) { .sticky-cta { display: none; } body.has-sticky { padding-bottom: 0; } }

/* подвал */
.site-footer { background: var(--dark); color: var(--on-dark); padding: 48px 0 56px; margin-top: 0; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 32px; }
.footer__grid a, .footer__grid span { display: block; color: var(--on-dark); padding: 3px 0; }
.footer__grid a:hover { color: #fff; }
.footer__brand { font-size: 1.4rem; font-weight: 600; margin-bottom: .4em; }
.footer__text { color: var(--on-dark-muted); max-width: 32ch; }
.footer__title { font-family: var(--mono); font-size: .8rem; color: var(--on-dark-muted); margin-bottom: .6em; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* «Уменьшить движение»: остаётся плавное появление (fade), уходят сдвиги, масштаб, задержки и анимация высоты */
@media (prefers-reduced-motion: reduce) {
  :root { --dy: 0px; --dx: 0px; --ms: 1; --press: 1; --hover-scale: 1; --st: 0; --rows-t: 0; }
  html { scroll-behavior: auto; }
}

/* короткие блоки и списки ссылок */
.section--compact { padding: clamp(32px, 4.5vw, 56px) 0; }
.nowrap { white-space: nowrap; }
.note { font-size: .95rem; color: var(--muted); max-width: 56ch; margin: 0; }
.link-list__label { font-family: var(--mono); font-size: .85rem; color: var(--olive-dark); margin: 0 0 10px; }
.link-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.link-list li { border-bottom: 1px solid var(--line-strong); }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 2px; color: var(--text); text-decoration: none; font-weight: 500; }
.link-list a::after { content: "→"; color: var(--olive-dark); flex: none; transition: transform 160ms var(--ease-out); }
.link-list a:hover { color: var(--olive-dark); }
@media (hover: hover) and (pointer: fine) { .link-list a:hover::after { transform: translateX(4px); } }
.pkg-note { margin: 16px 0 0; font-size: .95rem; color: var(--muted); }

/* сравнение «проект — реализация» */
.compare { display: grid; gap: clamp(28px, 4vw, 44px); }
.compare__room { font-family: var(--mono); font-size: .9rem; font-weight: 500; color: var(--olive-dark); margin: 0 0 10px; }
.compare__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare__fig { margin: 0; }
.compare__fig .gallery__item { width: 100%; }
.compare__fig .gallery__item img { aspect-ratio: 16 / 10; }
.compare__fig figcaption { margin-top: 8px; font-weight: 600; font-size: .98rem; }
@media (max-width: 640px) { .compare__row { grid-template-columns: 1fr; gap: 16px; } .compare__fig .gallery__item img { aspect-ratio: 4 / 3; } }

/* телефон: плотнее вертикальные отступы, текст и кнопки прежних размеров */
@media (max-width: 640px) {
  .section { padding: 36px 0; }
  .section--compact { padding: 28px 0; }
  .section__head { margin-bottom: 20px; }
  .section__more { margin-top: 24px; }
  .hero { padding-bottom: 32px; }
  .hero--inner { padding-top: 16px; }
  .cards { gap: 14px; }
  .card { padding: 18px; }
  .panel { padding: 18px; }
  .callout { margin-top: 22px; padding: 18px; }
  .project-grid { gap: 22px 16px; }
  .steps-list { gap: 18px; }
  .rooms { gap: 20px; }
  .faq summary { padding-block: 16px; }
  .site-footer { padding: 36px 0 44px; }
}

/* пометки и описания проектов */
.project-card__img { position: relative; }
.badge { position: absolute; left: 10px; top: 10px; padding: 3px 10px; background: rgba(42, 41, 39, .85); color: #fff; font-size: .78rem; border-radius: 3px; }
.gallery-note { font-size: .92rem; color: var(--muted); margin: 0 0 12px; }
.rooms { display: grid; gap: 26px; }
.room { border-top: 1px solid var(--line-strong); padding-top: 18px; }
.room h3 { display: flex; align-items: baseline; gap: 12px; margin-bottom: .4em; }
.room__area { font-family: var(--mono); font-size: .88rem; font-weight: 400; color: var(--olive-dark); }
.room p { color: var(--muted); max-width: 70ch; }

/* ---------- движение (одобрено 09.10.2026): только transform и opacity, до 300 мс, ease-out ---------- */
/* 1. первый экран главной: одна последовательность появления при загрузке */
@keyframes rise { from { opacity: 0; transform: translateY(var(--dy)); } }
.hero .h-item { animation: rise 420ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms * var(--st)); }
/* 4. FAQ: плавное раскрытие (высота строки сетки — единственное исключение из «только transform/opacity») */
.faq__a { display: grid; grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; min-height: 0; }
html.js .faq__a { grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows calc(180ms * var(--rows-t)) var(--ease-out), opacity 140ms var(--ease-out); }
html.js .faq details.is-open .faq__a { grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows calc(240ms * var(--rows-t)) var(--ease-out), opacity 200ms var(--ease-out) 40ms; }
/* 5. окна с формами */
dialog.modal { opacity: 0; transform: translateY(var(--dy)) scale(var(--ms)); transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out); }
dialog.modal[open] { opacity: 1; transform: none; transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
dialog.modal[open].is-closing { opacity: 0; transform: translateY(calc(var(--dy) / 2)) scale(var(--ms)); transition-duration: 150ms; }
dialog.modal::backdrop { opacity: 0; transition: opacity 150ms var(--ease-out); }
dialog.modal[open]::backdrop { opacity: 1; transition-duration: 220ms; }
dialog.modal[open].is-closing::backdrop { opacity: 0; transition-duration: 150ms; }
@starting-style {
  dialog.modal[open] { opacity: 0; transform: translateY(var(--dy)) scale(var(--ms)); }
  dialog.modal[open]::backdrop { opacity: 0; }
  dialog.lightbox[open] { opacity: 0; }
}
.modal__close { transition: background-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out); }
.modal__close:active { transform: scale(var(--press)); }
/* 7. форма в два шага */
.stepper-bar { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; margin: 4px 0 2px; }
.stepper-bar i { display: block; height: 100%; width: 100%; background: var(--olive); transform-origin: left center; transform: scaleX(.5); transition: transform 240ms var(--ease-in-out); }
.stepper-bar.is-2 i { transform: scaleX(1); }
@keyframes step-fwd { from { opacity: 0; transform: translateX(var(--dx)); } }
@keyframes step-back { from { opacity: 0; transform: translateX(calc(var(--dx) * -1)); } }
.step.in-fwd { animation: step-fwd 220ms var(--ease-out) both; }
.step.in-back { animation: step-back 220ms var(--ease-out) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(calc(var(--dy) / 3)); } }
.form__result.in { animation: fade-up 200ms var(--ease-out) both; }
/* 9. фильтр портфолио */
.project-grid.is-out { opacity: 0; transition: opacity 90ms var(--ease-out); }
.project-grid.is-in .project-card { animation: rise 200ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 30ms * var(--st)); }
/* 10. лайтбокс */
dialog.lightbox { opacity: 0; transition: opacity 150ms var(--ease-out); }
dialog.lightbox[open] { opacity: 1; transition-duration: 200ms; }
dialog.lightbox[open].is-closing { opacity: 0; transition-duration: 150ms; }
@keyframes frame-next { from { opacity: 0; transform: translateX(var(--dx)); } }
@keyframes frame-prev { from { opacity: 0; transform: translateX(calc(var(--dx) * -1)); } }
.lightbox__stage img.sw-next { animation: frame-next 160ms var(--ease-out) both; }
.lightbox__stage img.sw-prev { animation: frame-prev 160ms var(--ease-out) both; }
.lightbox__btn { transition: background-color 150ms ease, color 150ms ease; }
