/* Шрифты лежат на самом сайте (не Google Fonts): данные посетителей не уходят за рубеж, страница грузится быстрее */
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/jost-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/jost-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("fonts/jost-cyrillic-wght-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Jost"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("fonts/jost-latin-wght-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("fonts/open-sans-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("fonts/open-sans-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 300 800; font-display: swap; src: url("fonts/open-sans-cyrillic-wght-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 300 800; font-display: swap; src: url("fonts/open-sans-latin-wght-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ============ Токены ============ */
:root {
  --plaster: #E4E3DE;   /* фон: серая известковая штукатурка */
  --paper: #EDECE8;     /* светлые блоки */
  --graphite: #26282A;  /* графит: текст, кнопки, размерные линии, тёмный блок */
  --graphite-2: #3B3E41;/* графит при наведении */
  --pencil: #5A5D5F;    /* второстепенный текст */
  --on-dark: #E4E3DE;   /* текст на графите */
  --on-dark-2: #B5B7B8; /* второстепенный текст на графите */
  --rule: rgba(38, 40, 42, .16);
  /* тёплые тона разделов по образцам EGGER заказчицы */
  --sand: #E2D8C8;      /* U156 «Бежевый песок»: Цены, Вопросы */
  --almond: #CBBCA9;    /* U211 «Миндаль бежевый»: Отзывы */
  --walnut: #5C4434;    /* H1714 «Орех Линкольн»: Состав проекта, Контакты */

  /* заголовки: узкая светлая антиква; текст: геометрический гротеск */
  --display: "Open Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display-stretch: 100%;
  --display-weight: 300;        /* заголовки: тонкие, как у archirooms */
  --display-weight-strong: 400; /* логотип, названия проектов */
  --text-weight: 450;           /* основной текст */
  --text: "Jost", "Futura", "Century Gothic", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(72px, 10vw, 136px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 68px; }
body {
  margin: 0;
  background: var(--plaster);
  color: var(--graphite);
  font: var(--text-weight) 1.125rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-stretch: var(--display-stretch); font-weight: var(--display-weight); margin: 0; line-height: 1.1; letter-spacing: 0; }
h1, h2 { text-transform: uppercase; letter-spacing: .02em; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--graphite); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============ Кнопки и ссылки ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--graphite); color: var(--on-dark);
  font: 550 1rem/1 var(--text); letter-spacing: .02em;
  text-decoration: none; border: 0; border-radius: 3px; cursor: pointer;
}
.btn:hover { background: var(--graphite-2); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 1rem; }
.link { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.link:hover { text-decoration-thickness: 2px; }

@keyframes fade { from { opacity: 0; } }

/* ============ Шапка ============ */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(228, 227, 222, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-row { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { font-family: var(--display); font-weight: var(--display-weight-strong); font-size: 1.25rem; line-height: 1; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--pencil); }
.nav a:hover { color: var(--graphite); }
.site-header { transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
/* пока шапка над фото первого экрана: прозрачная, текст светлый (класс ставит main.js) */
.js .site-header.is-over { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; color: #fff; }
.js .site-header.is-over .nav a { color: rgba(255, 255, 255, .82); }
.js .site-header.is-over .nav a:hover { color: #fff; }
.js .site-header.is-over .btn { background: var(--plaster); color: var(--graphite); }
.js .site-header.is-over .btn:hover { background: #fff; }
.js .site-header.is-over :focus-visible { outline-color: #fff; }

/* ============ Первый экран: фото на весь экран, текст поверх ============ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; margin-top: -69px;               /* заезжает под прозрачную шапку */
  min-height: 100vh; min-height: 100svh;
  background: var(--graphite); color: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; display: block; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero::before {                                  /* затемнение, чтобы текст читался */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 21, 22, .5) 0, rgba(20, 21, 22, 0) 170px),
    linear-gradient(0deg, rgba(20, 21, 22, .78) 0%, rgba(20, 21, 22, .3) 40%, rgba(20, 21, 22, 0) 66%),
    linear-gradient(90deg, rgba(20, 21, 22, .5) 0%, rgba(20, 21, 22, 0) 58%);
}
.hero-inner {
  position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 140px; padding-bottom: clamp(48px, 9vh, 104px);
}
.hero-text { position: relative; max-width: 760px; }
.hero h1 { font-size: clamp(2.25rem, 4.8vw, 4.5rem); line-height: 1.08; max-width: 12em; color: #fff; }
.hero-price { margin-top: 24px; font-size: 1.125rem; color: rgba(255, 255, 255, .84); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
.hero .link { color: #fff; }
.hero :focus-visible { outline-color: #fff; }
.btn-light { background: var(--plaster); color: var(--graphite); }
.btn-light:hover { background: #fff; }

/* ============ О бюро ============ */
.about { background: var(--graphite); color: var(--on-dark); padding-block: var(--section); }
.about-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; }
.about-photo { grid-column: 1 / 5; width: 100%; aspect-ratio: 9 / 11; object-fit: cover; }
.about-quote { grid-column: 6 / 13; margin: 0; }
.about-quote p { font-family: var(--display); font-stretch: 80%; font-style: italic; font-weight: var(--display-weight); font-size: clamp(1.75rem, 3vw, 2.625rem); line-height: 1.25; max-width: 30ch; }
.about-quote footer { margin-top: 28px; color: var(--on-dark-2); max-width: 52ch; }
.about-quote .about-text { margin-top: 20px; max-width: 52ch; font: var(--text-weight) 1.125rem/1.6 var(--text); font-style: normal; font-stretch: normal; }

/* ============ Заголовки секций ============ */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 40px; margin-bottom: 48px; }
.section-head h2, .album-intro h2, .contacts-info h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); }
.section-head p { color: var(--pencil); max-width: 44ch; }

/* ============ Проекты: каждое фото почти на весь экран, одно под другим ============ */
.projects { padding-top: var(--section); }   /* снизу без отступа: последняя плашка стыкуется со следующим графитовым блоком */
.projects-grid { display: grid; gap: 0; }

.project {
  display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left;
  font: inherit; cursor: zoom-in;
}
.project-media {
  position: relative; display: block; overflow: hidden; background: var(--paper);
  height: 88vh; height: 88svh; min-height: 460px; max-height: 1080px;
}
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.project-media::after {   /* затемнение снизу, чтобы название читалось на любом фото */
  content: ""; position: absolute; inset: auto 0 0 0; height: 55%;
  background: linear-gradient(rgba(20, 21, 22, 0), rgba(20, 21, 22, .62));
}
.project-caption { position: absolute; z-index: 1; left: 0; right: 0; bottom: clamp(28px, 5vh, 56px); display: block; }
.project-caption .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.project-name {
  display: block; max-width: 18em;
  font-family: var(--display); font-weight: var(--display-weight); text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(1.75rem, 3.6vw, 3.25rem); line-height: 1.08; color: #fff;
}
.project-open { flex: none; padding-bottom: 6px; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .6); line-height: 1.3; }
.project:hover .project-media img, .project:focus-visible .project-media img { transform: scale(1.025); }
.project:hover .project-open { border-bottom-color: #fff; }

/* площадь, срок, бюджет: графитовая плашка под фото */
.project-facts { display: block; background: var(--graphite); color: var(--on-dark); transition: background .2s ease; }
.project-facts .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.project-facts .wrap > span { display: block; padding: 22px 24px 24px; }
.project-facts .wrap > span:first-child { padding-left: 0; }
.project-facts .wrap > span + span { border-left: 1px solid rgba(228, 227, 222, .14); }
.fact-label { display: block; font-size: .875rem; letter-spacing: .02em; color: var(--on-dark-2); }
.fact-value { display: block; margin-top: 4px; font-size: 1.375rem; white-space: nowrap; }
.project:hover .project-facts, .project:focus-visible .project-facts { background: var(--graphite-2); }
.project:focus-visible { outline-offset: -4px; }

/* ============ Альбом чертежей ============ */
.album { background: var(--walnut); color: var(--on-dark); --on-dark-2: #D6CCBF; padding-block: var(--section); }
.album-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
.album-intro { grid-column: 1 / 6; }
.album-intro p { margin-top: 20px; max-width: 34ch; font-size: 1.25rem; color: var(--on-dark-2); }
.album-intro p + p { color: var(--on-dark-2); }

.sheets { grid-column: 7 / 13; width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sheets th { text-align: left; font-weight: var(--text-weight); color: var(--on-dark-2); font-size: 1rem; padding: 0 0 12px; border-bottom: 1px solid var(--on-dark); }
.sheets td { padding: 13px 0; border-bottom: 1px solid rgba(228, 227, 222, .16); vertical-align: top; }
.sheets th:last-child, .sheets td:last-child { text-align: right; padding-left: 24px; white-space: nowrap; }
.sheets tfoot td { border-top: 1px solid var(--on-dark); border-bottom: 0; font-weight: 600; padding-top: 16px; }
.sheets tfoot td:last-child { font-family: var(--display); font-stretch: var(--display-stretch); font-weight: var(--display-weight); font-size: 2.5rem; line-height: 1; }

/* ============ Цены ============ */
.prices { background: var(--sand); padding-block: var(--section); }
.price-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.price-row {
  position: relative;
  display: grid; grid-template-columns: 4fr 4fr 4fr; gap: 16px 32px; align-items: start;
  padding: 36px 28px; margin-inline: -28px; border-radius: 6px;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
/* разделитель по ширине текста, а не карточки */
.price-row::before { content: ""; position: absolute; top: 0; left: 28px; right: 28px; height: 1px; background: var(--rule); transition: opacity .25s ease; }
/* при наведении строка приподнимается и отделяется, как карточка */
@media (hover: hover) {
  .price-row:hover {
    z-index: 1; background: #EEE6D9;
    transform: translateY(-6px); box-shadow: 0 18px 40px rgba(38, 40, 42, .13), 0 2px 6px rgba(38, 40, 42, .06);
  }
  .price-row:hover::before, .price-row:hover + .price-row::before { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .price-row, .price-row:hover { transform: none; transition: background-color .2s ease; } }
.price-name h3 { font-size: 2.25rem; }
.price-name p { margin-top: 8px; color: var(--pencil); max-width: 30ch; }
.price-includes { list-style: none; margin: 0; padding: 0; }
.price-includes li { padding: 2px 0 2px 22px; position: relative; }
.price-includes li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 1px; background: var(--graphite); }
.price-value { font-family: var(--display); font-stretch: var(--display-stretch); font-weight: var(--display-weight); font-size: clamp(1.875rem, 2.8vw, 2.625rem); line-height: 1; text-align: right; white-space: nowrap; }
.price-value .price-unit { display: block; margin-top: 6px; font: var(--text-weight) 1rem/1.3 var(--text); color: var(--pencil); white-space: normal; }

.price-extra {
  display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: center;
  margin-top: 40px; padding: 32px 36px; border: 1px solid var(--graphite);
}
.price-extra h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.price-extra .btn { justify-self: end; }

.price-more { margin-top: 40px; border-bottom: 1px solid var(--rule); }
.price-more summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px 0; cursor: pointer; font-family: var(--display); font-stretch: var(--display-stretch); font-weight: var(--display-weight); font-size: 1.75rem;
}
.price-more summary::-webkit-details-marker { display: none; }
.price-more summary::after { content: "+"; font-weight: 300; font-size: 2rem; line-height: 1; transition: transform .2s ease; }
.price-more[open] summary::after { transform: rotate(45deg); }
.price-more .price-table { padding-bottom: 16px; }
.price-table { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; margin: 0; }
.price-table div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.price-table dd { margin: 0; text-align: right; white-space: nowrap; color: var(--pencil); }
.price-extra p:not(.price-value) { margin-top: 8px; color: var(--pencil); max-width: 56ch; }

/* ============ Калькулятор: отдельная компактная карточка-виджет ============
   Внутри карточки один шрифт (Jost) и мелкий кегль, чтобы калькулятор читался
   как отдельный инструмент, а не как продолжение текста сайта. */
.calc { --calc-bg: #FBFAF7; --calc-result-w: 350px; background: var(--paper); padding-block: var(--section); }
.calc-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.calc-eyebrow {
  display: inline-block; padding: 5px 14px; border: 1px solid var(--rule); border-radius: 999px;
  font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pencil);
}
.calc-head h2 { margin-top: 16px; font-size: clamp(1.75rem, 3vw, 2.625rem); }
.calc-sub { margin-top: 12px; color: var(--pencil); }

.calc-card {
  display: grid; grid-template-columns: minmax(0, 1fr) var(--calc-result-w); align-items: start;
  max-width: 1240px; margin: 0 auto; font-size: 1rem; line-height: 1.45;
  border: 1px solid var(--rule); box-shadow: 0 24px 60px rgba(38, 40, 42, .10);
  /* правая колонка графитовая на всю высоту карточки, а сам итог внутри неё «едет» за прокруткой */
  background: linear-gradient(to left, var(--graphite) var(--calc-result-w), var(--calc-bg) var(--calc-result-w)) border-box no-repeat;
}
.calc-form { min-width: 0; padding: 36px 40px 40px; }
.calc-result { min-width: 0; }

.calc-step { margin: 30px 0 0; padding: 0; border: 0; min-width: 0; }
.calc-step:first-of-type { margin-top: 0; }
.calc-step legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 12px; font-weight: 500; font-size: 1.125rem; line-height: 1.3; }
.step-no {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: var(--graphite); color: var(--on-dark); font-size: .8125rem; font-weight: 500;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; font-size: .9375rem;
  border: 1px solid var(--rule); border-radius: 999px; cursor: pointer; background: #fff; transition: border-color .15s ease;
}
.chip span:hover { border-color: var(--pencil); }
.chip input:checked + span { background: var(--graphite); border-color: var(--graphite); color: var(--on-dark); }
.chip-check input:checked + span::before { content: "✓"; margin-right: 6px; }
.chip input:focus-visible + span { outline: 2px solid var(--graphite); outline-offset: 3px; }

.area-rooms { display: grid; grid-template-columns: 1fr auto; gap: 20px 48px; align-items: end; }
.calc-area-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; color: var(--pencil); }
.area-input { color: var(--graphite); font-size: 1.75rem; font-weight: 500; line-height: 1; white-space: nowrap; }
.area-input input {
  width: 3.2ch; padding: 0; border: 0; border-bottom: 1px solid var(--rule); background: transparent;
  font: inherit; color: inherit; text-align: right; -moz-appearance: textfield;
}
.area-input input::-webkit-outer-spin-button, .area-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.area-input input:focus { outline: none; border-bottom-color: var(--graphite); }

/* ползунок нарисован как размерная линия */
#area-range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 10px 0 0; background: transparent; cursor: pointer; }
#area-range::-webkit-slider-runnable-track { height: 1px; background: var(--graphite); }
#area-range::-moz-range-track { height: 1px; background: var(--graphite); }
#area-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--graphite); border: 3px solid var(--calc-bg); box-shadow: 0 0 0 1px var(--graphite); }
#area-range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--graphite); border: 3px solid var(--calc-bg); box-shadow: 0 0 0 1px var(--graphite); }
#area-range:focus-visible { outline: 2px solid var(--graphite); outline-offset: 4px; }
.range-ends { position: relative; display: flex; justify-content: space-between; font-size: .875rem; color: var(--pencil); padding-top: 2px; }
.range-ends::before, .range-ends::after {
  content: ""; position: absolute; top: -22px; width: 1px; height: 11px; background: var(--graphite); transform: rotate(45deg);
}
.range-ends::before { left: 0; }
.range-ends::after { right: 0; }

.rooms { display: grid; gap: 8px; padding-bottom: 22px; }
.rooms-label { color: var(--pencil); }
.stepper-num { display: inline-flex; align-items: center; gap: 12px; }
.stepper-num button {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--rule); background: #fff;
  color: var(--graphite); font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.stepper-num button:hover:not(:disabled) { background: var(--graphite); border-color: var(--graphite); color: var(--on-dark); }
.stepper-num button:disabled { opacity: .3; cursor: default; }
.stepper-num output { min-width: 1.5ch; text-align: center; font-size: 1.75rem; font-weight: 500; line-height: 1; }

.info-btn {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--pencil); background: transparent;
  font: 600 .8125rem/1 var(--text); color: var(--graphite); cursor: pointer; flex: none;
}
.info-btn:hover { background: var(--graphite); border-color: var(--graphite); color: var(--on-dark); }

/* карточки уровней ремонта */
.segment-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.seg-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--rule); cursor: pointer; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.seg-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-card:hover { border-color: var(--pencil); }
.seg-card:has(input:checked) { border-color: var(--graphite); box-shadow: inset 0 0 0 1px var(--graphite); }
.seg-card:has(input:focus-visible) { outline: 2px solid var(--graphite); outline-offset: 3px; }
.seg-card:has(input:checked)::after {
  content: "✓"; position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--graphite); color: var(--on-dark); font-size: .75rem;
}
.seg-body { display: flex; flex-direction: column; gap: 9px; flex: 1; padding: 16px 16px 18px; }
.seg-name { padding-right: 30px; font-weight: 600; font-size: 1.25rem; line-height: 1.2; }
.seg-about { font-size: .875rem; line-height: 1.45; color: var(--pencil); }
.seg-features { display: grid; gap: 3px; font-size: .875rem; line-height: 1.4; }
.seg-features span { padding-left: 14px; position: relative; }
.seg-features span::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 1px; background: var(--graphite); }
.seg-price { margin-top: auto; padding-top: 6px; font-size: .875rem; font-style: italic; }

/* итог */
.calc-result { position: sticky; top: 84px; padding: 32px 30px; color: var(--on-dark); }
.calc-caption { display: inline-block; padding: 5px 12px; border: 1px solid rgba(228, 227, 222, .45); border-radius: 999px; font-size: .8125rem; }
.calc-total { margin-top: 16px; font-size: 2.25rem; font-weight: 500; line-height: 1.1; }
.calc-rate { margin-top: 8px; font-size: .9375rem; color: var(--on-dark-2); }
.calc-breakdown { margin: 18px 0 0; }
.calc-breakdown div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid rgba(228, 227, 222, .16); font-size: .9375rem; }
.calc-breakdown dt { color: var(--on-dark-2); }
.calc-breakdown dd { margin: 0; white-space: nowrap; }
.calc-details { border-top: 1px solid rgba(228, 227, 222, .16); border-bottom: 1px solid rgba(228, 227, 222, .16); }
.calc-details summary { list-style: none; display: flex; justify-content: space-between; padding: 10px 0; cursor: pointer; font-size: .9375rem; }
.calc-details summary::-webkit-details-marker { display: none; }
.calc-details summary::after { content: "+"; transition: transform .2s ease; }
.calc-details[open] summary::after { transform: rotate(45deg); }
.calc-details ul { list-style: none; margin: 0; padding: 0 0 10px; display: grid; gap: 6px; font-size: .8125rem; color: var(--on-dark-2); }
.calc-details li { display: flex; justify-content: space-between; gap: 12px; }
.calc-details li span:last-child { white-space: nowrap; }
.calc-note { margin-top: 12px; font-size: .8125rem; color: var(--on-dark-2); }
.calc-cta { margin-top: 18px; }
.calc-cta p { font-size: .9375rem; color: var(--on-dark); }
.calc-cta .btn { margin-top: 12px; width: 100%; background: var(--on-dark); color: var(--graphite); }
.calc-cta .btn:hover { background: #fff; }
.calc-result :focus-visible { outline-color: var(--on-dark); }

.calc-sticky { display: none; }

/* окно «Что входит в уровни ремонта» */
.seg-dialog {
  width: min(1040px, 94vw); max-height: 90dvh; padding: 28px; border: 0;
  background: var(--plaster); color: var(--graphite);
}
.seg-dialog::backdrop { background: rgba(30, 31, 33, .6); }
.seg-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 20px; }
.seg-dialog-head h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.seg-dialog .seg-close { border: 1px solid var(--graphite); color: var(--graphite); }
.seg-table-wrap { overflow-x: auto; }
.seg-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .9375rem; }
.seg-table th, .seg-table td { text-align: left; vertical-align: top; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--rule); }
.seg-table thead th { font-family: var(--display); font-stretch: var(--display-stretch); font-weight: var(--display-weight-strong); font-size: 1.5rem; border-bottom: 1px solid var(--graphite); }
.seg-table tbody th { font-weight: 500; white-space: nowrap; }
.seg-table th:first-child { position: sticky; left: 0; z-index: 1; background: var(--plaster); }
.seg-about-row td { color: var(--pencil); }
.seg-what { display: block; }
.seg-cost { display: block; color: var(--pencil); font-size: .875rem; }
.seg-none { color: var(--pencil); opacity: .6; }
.seg-dialog-note { margin-top: 14px; font-size: .875rem; color: var(--pencil); }
@media (prefers-reduced-motion: no-preference) { .seg-dialog[open] { animation: fade .2s ease; } }

/* ============ Как работаем (тёмный блок с переключателем этапов) ============ */
.process { background: var(--graphite); color: var(--on-dark); padding-block: var(--section); }
.process .section-head p { color: var(--on-dark-2); }
.process :focus-visible { outline-color: var(--on-dark); }

/* цепочка размеров: каждый этап = отрезок с засечкой, сверху подписан, кто ведёт этап */
.stepper { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); }
.step-tab {
  position: relative; padding: 52px 16px 18px 0; text-align: left;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start;
  background: none; border: 0; color: inherit; font: inherit; cursor: pointer;
  opacity: .5; transition: opacity .2s ease;
}
.step-tab:hover { opacity: .8; }
.step-tab[aria-selected="true"] { opacity: 1; }
.step-tab::before { content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 1px; background: currentColor; transform-origin: left; }
.step-tab::after, .stepper::after {
  content: ""; position: absolute; top: 28px; width: 1px; height: 13px; background: currentColor; transform: rotate(45deg);
}
.step-tab::after { left: 0; }
.stepper::after { right: 0; color: var(--on-dark); opacity: .5; }
.step-role { position: absolute; top: 4px; left: 0; right: 0; text-align: center; font-style: italic; font-size: .875rem; white-space: nowrap; }
.step-title { display: block; font-family: var(--display); font-stretch: var(--display-stretch); font-weight: var(--display-weight); font-size: 1.5rem; line-height: 1.1; }
.step-indicator { position: absolute; top: 33px; left: 0; width: 0; height: 3px; background: var(--on-dark); z-index: 1; transition: left .35s cubic-bezier(.65, 0, .25, 1), width .35s cubic-bezier(.65, 0, .25, 1); }

.step-panel { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 28px; align-items: end; margin-top: 48px; }
.step-photo { grid-column: 1 / 6; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #1E2022; }
.step-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease; }
.step-photo img.loading { opacity: 0; }
.step-body { grid-column: 7 / 13; }
.step-count { color: var(--on-dark-2); }
.step-body h3 { margin-top: 12px; font-size: clamp(2.75rem, 5vw, 4.25rem); }
.step-text { margin-top: 20px; font-size: 1.25rem; max-width: 40ch; }
.step-lead { margin-top: 20px; color: var(--on-dark-2); }
.step-lead span { color: var(--on-dark); font-style: italic; }
.step-arrows { display: flex; gap: 12px; margin-top: 36px; }
.step-arrow {
  width: 56px; height: 56px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(228, 227, 222, .4); background: transparent; color: var(--on-dark); font-size: 1.75rem; line-height: 1;
}
.step-arrow:hover { border-color: var(--on-dark); background: rgba(228, 227, 222, .08); }

/* отрезки цепочки прочерчиваются по очереди, когда блок попадает в экран */
@media (prefers-reduced-motion: no-preference) {
  .js .stepper .step-tab::before { transform: scaleX(0); transition: transform .45s cubic-bezier(.65, 0, .25, 1) calc(var(--i) * .12s); }
  .js .stepper .step-role, .js .stepper .step-tab::after { opacity: 0; transition: opacity .3s ease calc(var(--i) * .12s + .3s); }
  .js .stepper .step-indicator { opacity: 0; transition: left .35s cubic-bezier(.65, 0, .25, 1), width .35s cubic-bezier(.65, 0, .25, 1), opacity .3s ease 1s; }
  .js .stepper.is-drawn .step-tab::before { transform: none; }
  .js .stepper.is-drawn .step-role, .js .stepper.is-drawn .step-tab::after, .js .stepper.is-drawn .step-indicator { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .step-indicator, .step-photo img { transition: none; } }

.contract { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; margin-top: 88px; padding-top: 40px; border-top: 1px solid rgba(228, 227, 222, .16); }
.contract { align-items: start; grid-template-rows: auto 1fr; }
.contract-photo { grid-column: 1 / 6; grid-row: 1 / span 2; margin: 0; }
.contract-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.contract-photo figcaption { margin-top: 12px; font-size: .875rem; color: var(--on-dark-2); }
.contract h3 { grid-column: 7 / 13; font-size: 2.25rem; }
.contract-list { grid-column: 7 / 13; list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 24px; }
.contract-list li { padding: 16px 16px 28px 0; border-top: 1px solid rgba(228, 227, 222, .16); font-family: var(--display); font-stretch: var(--display-stretch); font-weight: var(--display-weight); font-size: 1.5rem; line-height: 1.15; color: var(--on-dark); }
.contract-list { color: var(--on-dark-2); }
.contract-list strong { font-weight: 600; color: var(--on-dark); }

/* ============ Отзывы: лента со скроллом вбок ============ */
.reviews { background: var(--almond); --pencil: #45403A; --rule: rgba(38, 40, 42, .22); padding-block: var(--section); }
.reviews-meta { display: flex; align-items: center; gap: 24px; }
.reviews-meta p { color: var(--pencil); }
.reviews-meta .link { white-space: nowrap; }
.review-arrows { display: flex; gap: 8px; }
.review-arrow {
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--graphite); background: transparent; color: var(--graphite); font-size: 1.5rem; line-height: 1;
}
.review-arrow:hover:not(:disabled) { background: var(--graphite); color: var(--on-dark); }
.review-arrow:disabled { opacity: .25; cursor: default; }

.review-track {
  display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter);
}
.review-track::-webkit-scrollbar { display: none; }
.review-track:focus-visible { outline: 2px solid var(--graphite); outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) { .review-track { scroll-behavior: smooth; } }

.review { flex: 0 0 clamp(280px, 30vw, 380px); scroll-snap-align: start; margin: 0; padding-top: 24px; border-top: 1px solid var(--graphite); display: flex; flex-direction: column; }
.review blockquote { margin: 0; flex: 1; }
.review blockquote p { font-family: var(--display); font-stretch: 80%; font-style: italic; font-weight: var(--display-weight); font-size: 1.5rem; line-height: 1.25; }
.review figcaption { margin-top: 20px; color: var(--pencil); font-size: .9375rem; }
.review-name { display: block; color: var(--graphite); font-weight: 600; }

/* ============ Вопросы ============ */
.faq { background: var(--sand); padding-block: var(--section); }
.faq-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 32px; }
.faq h2 { grid-column: 1 / 5; font-size: clamp(2rem, 3.6vw, 3.25rem); }
.faq-list { grid-column: 5 / 13; border-top: 1px solid var(--graphite); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; cursor: pointer; font-size: 1.1875rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--display); font-weight: var(--display-weight); font-size: 2rem; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--pencil); max-width: 64ch; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ============ Контакты ============ */
.contacts { background: var(--walnut); color: var(--on-dark); --on-dark-2: #D6CCBF; padding-block: var(--section); }
.contacts-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 56px; }
.contacts-info { grid-column: 1 / 6; }
.contacts-info > p { margin-top: 20px; color: var(--on-dark-2); max-width: 36ch; }
.contact-list { margin: 40px 0 0; }
.contact-list div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(233, 234, 230, .14); }
.contact-list dt { color: #9DA2A4; }
.contact-list dd { margin: 0; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }

.lead-form { grid-column: 7 / 13; display: grid; gap: 20px; }
.lead-form h3 { font-size: 2.25rem; margin-bottom: 4px; }
.field { display: grid; gap: 6px; }
.field span { color: var(--on-dark-2); font-size: 1rem; }
.field em { font-style: normal; color: #8A8F91; }
.field input, .field textarea {
  width: 100%; padding: 12px 0; font: inherit; color: #fff;
  background: transparent; border: 0; border-bottom: 1px solid rgba(233, 234, 230, .35); border-radius: 0;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: #7D8284; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--on-dark); box-shadow: 0 1px 0 var(--on-dark); }
.field.invalid input { border-bottom-color: #F0A08C; }
.contacts :focus-visible { outline-color: var(--on-dark); }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; color: var(--on-dark-2); }
.consent input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--on-dark); flex: none; }
.consent.invalid span { color: #F0A08C; }
.file-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 4px; }
.file-btn {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid rgba(228, 227, 222, .45); border-radius: 3px; cursor: pointer;
}
.file-btn:hover { border-color: var(--on-dark); }
.file-btn:focus-within { outline: 2px solid var(--on-dark); outline-offset: 3px; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-name { color: var(--on-dark-2); font-size: 1rem; overflow-wrap: anywhere; }
.file-remove {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid rgba(228, 227, 222, .35);
  border-radius: 999px; background: transparent; color: var(--on-dark); font: inherit; font-size: .875rem; cursor: pointer;
}
.file-remove[hidden] { display: none; }
.file-remove:hover { border-color: var(--on-dark); }
.file-remove:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 3px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 4px; }
.form-actions .link { color: var(--on-dark-2); }
.alt-contact { color: var(--on-dark-2); }
.form-actions .link:hover { color: var(--on-dark); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.contacts .btn { background: var(--on-dark); color: var(--graphite); }
.contacts .btn:hover { background: #fff; }
.contacts .btn[disabled] { opacity: .6; cursor: progress; }
.form-status { min-height: 1.5em; font-size: 1rem; }
.form-status.ok { color: #A9D8B4; }
.form-status.error { color: #F0A08C; }

/* ============ Подвал ============ */
.site-footer { background: var(--graphite); color: #8A8F91; font-size: .9375rem; border-top: 1px solid rgba(233, 234, 230, .12); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px; }
.footer-row a { color: inherit; }

/* ============ Галерея ============ */
.gallery {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 20px var(--gutter);
  border: 0; background: rgba(30, 31, 33, .97); color: var(--on-dark);
  display: none; grid-template-rows: auto 1fr auto; gap: 16px;
}
.gallery[open] { display: grid; }
.gallery::backdrop { background: rgba(30, 33, 35, .6); }
.gallery-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.gallery-title { font-family: var(--display); font-stretch: var(--display-stretch); font-weight: var(--display-weight-strong); font-size: 2rem; line-height: 1.1; }
.gallery-meta { color: #9DA2A4; font-size: 1rem; }
.gallery-close { background: none; border: 1px solid rgba(233, 234, 230, .35); color: inherit; font: inherit; font-size: 1rem; padding: 8px 16px; border-radius: 3px; cursor: pointer; }
.gallery-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; }
.gallery-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(233, 234, 230, .12); color: #fff; font-size: 2rem; line-height: 1;
}
.gallery-nav:hover { background: rgba(233, 234, 230, .24); }
.gallery-nav.prev { left: 0; }
.gallery-nav.next { right: 0; }
.gallery-count { text-align: center; color: #9DA2A4; font-size: 1rem; font-variant-numeric: tabular-nums; }
.gallery :focus-visible { outline-color: var(--on-dark); }
@media (prefers-reduced-motion: no-preference) {
  .gallery[open] { animation: fade .25s ease; }
  .gallery-stage img { transition: opacity .2s ease; }
  .gallery-stage img.loading { opacity: 0; }
}

/* ============ Планшет и телефон ============ */
@media (max-width: 960px) {
  .nav { display: none; }
  .header-row { justify-content: space-between; }

  .hero-inner { padding-top: 120px; }

  .about-grid { grid-template-columns: 1fr; row-gap: 32px; }
  .about-photo { grid-column: 1; width: min(60%, 320px); }
  .about-quote { grid-column: 1; }

  .project-media { height: 78vh; height: 78svh; min-height: 420px; }
  .project-caption .wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
  .project-open { font-size: .9375rem; }
  .project-facts .wrap > span { padding: 14px 12px 15px; }
  .fact-value { font-size: 1.0625rem; }


  .calc-head { margin-bottom: 24px; }
  .calc-card { grid-template-columns: 1fr; background: var(--calc-bg); box-shadow: 0 12px 32px rgba(38, 40, 42, .08); }
  .calc-form { padding: 22px 18px 26px; }
  .calc-card { font-size: .9375rem; }
  .calc-step { margin-top: 28px; }
  .calc-step legend { font-size: 1rem; margin-bottom: 12px; }
  .chips { gap: 6px; }
  .chip span { min-height: 40px; padding: 0 14px; font-size: .875rem; }
  .area-input, .stepper-num output { font-size: 1.5rem; }
  .stepper-num button { width: 38px; height: 38px; }
  .seg-body { padding: 14px 14px 16px; gap: 8px; }
  .seg-name { font-size: 1.125rem; }
  .seg-about, .seg-features, .seg-price { font-size: .8125rem; }
  .calc-total { font-size: 2rem; }
  .calc-breakdown div, .calc-details summary, .calc-rate, .calc-cta p { font-size: .875rem; }
  .calc-result { position: static; padding: 26px 18px; background: var(--graphite); }
  .area-rooms { grid-template-columns: 1fr; }
  .rooms { padding-bottom: 0; grid-template-columns: auto auto; justify-content: space-between; align-items: center; }
  .segment-cards {
    grid-template-columns: repeat(3, 78%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: -18px; padding-inline: 18px; scroll-padding-inline: 18px;
  }
  .segment-cards::-webkit-scrollbar { display: none; }
  .seg-card { scroll-snap-align: start; }
  .calc-sticky {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20;
    display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px;
    background: var(--graphite); color: var(--on-dark); text-decoration: none; border-radius: 999px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
    transform: translateY(calc(100% + 24px)); transition: transform .25s ease;
  }
  .calc-sticky span { color: var(--on-dark-2); font-size: .875rem; }
  .calc-sticky strong { font-size: 1.125rem; font-weight: 500; }
  .calc-sticky.is-visible { transform: none; }
  .seg-dialog { padding: 20px; }

  .stepper {
    grid-template-columns: repeat(6, minmax(168px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none;
  }
  .stepper::-webkit-scrollbar { display: none; }
  .step-tab { scroll-snap-align: center; }
  .stepper::after { display: none; }
  /* на телефоне стрелки стоят сразу под фото, чтобы фото было видно при переключении */
  .step-panel { grid-template-columns: 1fr; row-gap: 0; margin-top: 32px; }
  .step-body { display: contents; }
  .step-photo { grid-column: 1; order: -2; aspect-ratio: 4 / 3; }
  .step-arrows { order: -1; margin: 16px 0 24px; }
  .step-text { font-size: 1.125rem; }

  .contract { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 24px; margin-top: 40px; }
  .contract h3, .contract-list, .contract-photo { grid-column: 1; grid-row: auto; }
  .contract-photo { margin-bottom: 16px; }
  .contract-list { margin-top: 0; }
  .contract-list { grid-template-columns: 1fr 1fr; }
  .contract-list li { font-size: 1.25rem; }

  .faq-grid { grid-template-columns: 1fr; }

  .price-table { grid-template-columns: 1fr; }
  .price-table div { flex-direction: column; gap: 2px; }
  .price-table dd { text-align: left; white-space: normal; }
  .price-extra .btn { justify-self: start; }
  .review-arrows { display: none; }
  .review { flex-basis: 82%; }
  .review blockquote p { font-size: 1.375rem; }

  .faq h2, .faq-list { grid-column: 1; }

  .album-grid { grid-template-columns: 1fr; row-gap: 40px; }
  .album-intro, .sheets { grid-column: 1; }

  .price-row { grid-template-columns: 1fr; padding: 28px 0; margin-inline: 0; }
  .price-row::before { left: 0; right: 0; }
  .price-value { text-align: left; }
  .price-extra { grid-template-columns: 1fr; padding: 24px; }

  .contacts-grid { grid-template-columns: 1fr; }
  .contacts-info, .lead-form { grid-column: 1; }
}

@media (max-width: 480px) {
  body { font-size: 1.0625rem; }
  .hero-actions .btn { width: 100%; }
  .contact-list div { grid-template-columns: 90px 1fr; }
  .gallery-nav { width: 44px; height: 44px; font-size: 1.6rem; }
}
