/* Правила вёрстки макета А. Перенесены из prototype_astra_a_huligan/styles.css
   без изменений: палитра вынесена в theme-graphite.css, всё остальное как
   сдала Astra. Цвета только переменными, hex вне :root нет ни одного. */
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--text); font: 1rem/1.5 Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select, summary { cursor: pointer; }
button, input, select, textarea { color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 0; }
button, input, select, textarea { min-height: 48px; padding: 8px 16px; }
input, select, textarea { width: 100%; }
textarea { resize: vertical; }
button:hover, a.button:hover { filter: brightness(1.15); }
a:hover { text-decoration: underline; text-underline-offset: 8px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
img { display: block; width: 100%; object-fit: cover; background: var(--panel-raised); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.04; }
h1, h2, .display { font-family: "Arial Black", Arial, sans-serif; font-weight: 900; letter-spacing: -.055em; }
h1 { font-size: clamp(2.5rem, 5.5vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: 1.5rem; letter-spacing: -.035em; }
p + p { margin-top: 16px; }
ul, ol { margin: 0; padding-left: 24px; }
[hidden] { display: none !important; }
.container { width: min(1440px, 100%); margin-inline: auto; padding-inline: 40px; }
.section { padding-block: 80px; border-top: 1px solid var(--line); }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; color: var(--muted); }
.eyebrow::before { content: ""; width: 8px; height: 8px; flex-shrink: 0; background: var(--accent); }
.muted { color: var(--muted); }
.accent { background: var(--accent); color: var(--accent-ink); }
.text-link { display: inline-flex; align-items: center; min-height: 48px; gap: 16px; text-decoration: underline; text-underline-offset: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 56px; padding: 16px 24px; border: 1px solid var(--line); font-weight: 700; text-align: center; }
.button.primary { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.button.secondary { background: var(--clear); color: var(--text); }
.button.wide { width: 100%; }
.header { border-bottom: 1px solid var(--line); }
.header-main { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px; }
.brand { display: flex; align-items: center; gap: 16px; min-height: 48px; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; background: var(--accent); color: var(--accent-ink); font-size: 2rem; font-weight: 900; line-height: 1; }
.brand-name { font-size: 1.5rem; font-weight: 900; letter-spacing: -.05em; }
.header-city { border-left: 1px solid var(--line); padding-left: 24px; }
.contact-head { margin-left: auto; text-align: right; }
.phone { display: inline-flex; min-height: 48px; align-items: center; font-size: 1.25rem; font-weight: 700; }
.messenger-links { display: flex; flex-wrap: wrap; gap: 8px; }
.messenger-links a { display: inline-flex; min-height: 48px; min-width: 48px; align-items: center; justify-content: center; padding-inline: 8px; }
.header-nav { display: flex; gap: 32px; border-top: 1px solid var(--line); }
.header-nav a { display: inline-flex; align-items: center; min-height: 56px; border-bottom: 3px solid var(--clear); }
.header-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.header-nav .nav-end { margin-left: auto; }
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; padding-block: 64px; }
.hero-title span { display: block; }
.hero-title { font-size: clamp(2.5rem, 4.2vw, 4.5rem); }
.hero-title .highlight { margin-top: 8px; padding: 8px 16px 16px; width: fit-content; background: var(--accent); color: var(--accent-ink); transform: rotate(-1deg); }
.hero-copy { max-width: 640px; margin-block: 32px; font-size: 1.125rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.photo-placeholder { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 480px; border: 1px solid var(--line); padding: 32px; background: repeating-linear-gradient(135deg,var(--clear),var(--clear) 31px,var(--line) 32px,var(--clear) 33px),var(--panel); }
.photo-placeholder::before { content: ""; position: absolute; inset: 16px; border: 1px solid var(--line); pointer-events: none; }
.photo-label { width: fit-content; padding: 8px 16px; background: var(--page); }
.photo-placeholder h2 { position: relative; max-width: 400px; font-size: clamp(2rem,3.5vw,3.5rem); background: var(--panel); padding-block: 16px; }
.photo-placeholder p { position: relative; padding: 16px; background: var(--page); color: var(--muted); }
.proof-strip { display: grid; grid-template-columns: repeat(4,1fr); border-block: 1px solid var(--line); }
.proof { padding: 32px; border-right: 1px solid var(--line); }
.proof:first-child { padding-left: 0; }
.proof:last-child { border: 0; }
.proof strong { display: block; font-size: clamp(2rem,3vw,3rem); font-weight: 900; line-height: 1.1; margin-bottom: 8px; }
.proof span { color: var(--muted); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 32px; }
.section-head p { max-width: 440px; color: var(--muted); }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.path { padding: 40px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: start; gap: 24px; }
.path .number { font-size: 1rem; padding: 8px 16px; border: 1px solid var(--line); }
.path .button { margin-top: auto; }
.path p { max-width: 480px; color: var(--muted); }
.process { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.process-item { border-top: 2px solid var(--accent); padding-top: 24px; }
.process-item h3 { margin-block: 24px 16px; }
.process-item p { color: var(--muted); }
.quote-banner { background: var(--accent); color: var(--accent-ink); padding: 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.quote-banner p { margin-top: 24px; }
.quote-banner .button { border-color: var(--accent-ink); background: var(--accent-ink); color: var(--accent); }
.stock-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.stock-item { border: 1px solid var(--line); background: var(--panel); padding: 24px; }
.stock-item h3 { margin-block: 16px; }
.stock-item .price { margin-top: 24px; }
.page-intro { padding-block: 48px 40px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; color: var(--muted); }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 48px; }
.breadcrumbs span { display: inline-flex; align-items: center; min-height: 48px; }
.page-intro p { max-width: 760px; margin-top: 24px; font-size: 1.125rem; color: var(--muted); }
.catalog-layout { display: grid; grid-template-columns: 256px minmax(0,1fr); gap: 32px; align-items: start; padding-bottom: 64px; }
.filter-panel { border: 1px solid var(--line); background: var(--panel); padding: 24px; }
.filter-panel summary { font-size: 1.25rem; font-weight: 700; min-height: 48px; }
.filter-form { display: grid; gap: 24px; margin-top: 24px; }
.field { display: grid; gap: 8px; }
.filter-form .button { padding-inline: 8px; }
.results-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 24px; }
.results-top select { width: auto; max-width: 100%; }
.car-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.car-card { background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.car-image-link { display: block; min-height: 48px; position: relative; }
.car-card img { aspect-ratio: 1.5; }
.badge { display: inline-block; font-size: .875rem; line-height: 1.4; padding: 8px; background: var(--page); color: var(--text); border: 1px solid var(--line); }
.car-card .badge { position: absolute; left: 16px; top: 16px; }
.card-body { padding: 24px; }
.card-body h3 { font-size: 1.25rem; line-height: 1.2; }
.card-body h3 a { display: flex; align-items: center; min-height: 48px; }
.car-meta { margin-block: 8px 24px; color: var(--muted); }
.price { font-size: 1.5rem; font-weight: 800; line-height: 1.15; }
.price-label { margin-top: 8px; color: var(--muted); }
.card-body .text-link { margin-top: 8px; }
.load-more { margin-top: 32px; text-align: center; }
.load-more p { margin-top: 16px; color: var(--muted); }
.empty-state { border: 1px solid var(--line); padding: 48px 32px; background: var(--panel); }
.empty-state p { margin-block: 24px; color: var(--muted); }
.example-state { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 24px; }
.example-state summary { min-height: 48px; cursor: pointer; color: var(--muted); }
.car-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; padding-bottom: 64px; }
.gallery-main { aspect-ratio: 1.45; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 8px; }
.gallery-thumbs button { padding: 0; min-height: 64px; border: 2px solid var(--line); }
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--accent); }
.gallery-thumbs img { aspect-ratio: 1.6; height: 100%; }
.gallery-caption { margin-top: 16px; color: var(--muted); }
.specs { display: grid; grid-template-columns: 1fr 1fr; margin: 32px 0; gap: 0 32px; }
.specs div { padding-block: 16px; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 8px 0 0; font-weight: 700; }
.car-note { border-left: 3px solid var(--accent); padding: 8px 24px; }
.cost-box { border: 1px solid var(--line); background: var(--panel); }
.cost-head { padding: 32px; border-bottom: 1px solid var(--line); }
.cost-head .eyebrow { margin-bottom: 16px; }
.cost-total { font-size: clamp(2rem,3.5vw,3.5rem); font-weight: 900; letter-spacing: -.04em; }
.cost-head p { margin-top: 16px; color: var(--muted); }
.cost-lines { margin: 0; padding: 8px 32px; }
.cost-lines div { display: flex; justify-content: space-between; gap: 24px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.cost-lines div:last-child { border: 0; }
.cost-lines dt { color: var(--muted); }
.cost-lines dd { margin: 0; text-align: right; white-space: nowrap; font-weight: 700; }
.cost-bottom { margin: 0; padding: 24px 32px 32px; }
.cost-bottom .promise { padding: 16px; background: var(--accent); color: var(--accent-ink); margin-bottom: 24px; }
.cost-bottom p { color: var(--muted); margin-top: 16px; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-copy h2 { margin-bottom: 24px; }
.contact-copy > p { color: var(--muted); max-width: 520px; }
.contact-copy .phone { margin-top: 24px; font-size: 1.5rem; }
.contact-form { display: grid; gap: 24px; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { color: var(--muted); }
.form-status { border-left: 3px solid var(--accent); padding-left: 16px; }
.footer { border-top: 1px solid var(--line); padding-block: 40px; }
.footer-main { display: flex; justify-content: space-between; gap: 32px; margin-bottom: 24px; }
.footer p { color: var(--muted); }
.footer a { display: inline-flex; min-height: 48px; align-items: center; }
.footer-demo { border-top: 1px solid var(--line); padding-top: 24px; }
@media (min-width: 1100px) { .filter-panel { position: sticky; top: 24px; } }
@media (max-width: 1199px) {
  .container { padding-inline: 32px; }
  .header-city { display: none; }
  .hero { gap: 32px; }
  .hero-title { font-size: clamp(2.5rem,4.4vw,4rem); }
  .photo-placeholder { min-height: 440px; }
  .car-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .card-body { padding: 16px; }
  .cost-head, .cost-lines { padding-inline: 24px; }
  .cost-bottom { padding: 24px; }
}
@media (max-width: 767px) {
  .container { padding-inline: 16px; }
  .section { padding-block: 48px; }
  .header-main { flex-wrap: wrap; gap: 8px 16px; padding-block: 16px; }
  .brand-name { font-size: 1.25rem; }
  .contact-head { margin-left: 0; text-align: left; }
  .phone { font-size: 1rem; }
  .header-main > .messenger-links { width: 100%; justify-content: space-between; border-top: 1px solid var(--line); }
  .header-nav { gap: 0; justify-content: space-between; flex-wrap: wrap; }
  .header-nav a { padding-inline: 8px; }
  .header-nav .nav-end { margin-left: 0; }
  .hero { grid-template-columns: 1fr; padding-block: 40px; }
  .hero-title { font-size: clamp(2.5rem,8.8vw,4rem); }
  .hero-copy { margin-block: 24px; font-size: 1rem; }
  .hero-actions { display: grid; }
  .photo-placeholder { min-height: 320px; padding: 24px; }
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .proof { padding: 24px 16px; border-bottom: 1px solid var(--line); }
  .proof:first-child { padding-left: 16px; }
  .proof:nth-child(2) { border-right: 0; }
  .proof:nth-child(3), .proof:nth-child(4) { border-bottom: 0; }
  .paths, .process, .quote-banner, .stock-grid, .car-layout, .contact-layout { grid-template-columns: 1fr; }
  .path, .quote-banner { padding: 24px; }
  .section-head { align-items: start; flex-direction: column; gap: 24px; }
  .catalog-layout { grid-template-columns: 1fr; gap: 24px; }
  .filter-form { grid-template-columns: 1fr 1fr; gap: 16px; }
  .filter-form .filter-actions { grid-column: 1 / -1; }
  .filter-panel { padding: 16px; }
  .page-intro { padding-block: 32px; }
  .page-intro p { font-size: 1rem; }
  .car-grid { gap: 16px; }
  .car-card .badge { left: 8px; top: 8px; }
  .car-meta { margin-bottom: 16px; }
  .car-layout { gap: 32px; }
  .contact-layout { gap: 32px; }
  .footer-main { flex-direction: column; gap: 16px; }
}
@media (max-width: 479px) {
  .car-grid, .form-pair { grid-template-columns: 1fr; }
  .header-main .contact-head { width: 100%; }
  .header-main .phone { font-size: 1.125rem; }
  .hero-title .highlight { padding-inline: 8px; }
  .cost-lines { padding-inline: 16px; }
  .cost-lines div { gap: 8px; }
  .cost-head, .cost-bottom { padding: 24px 16px; }
  .specs { gap: 0 16px; }
  .gallery-thumbs button { min-height: 48px; }
}

/* Дополнение: витрина автомобилей в наличии и согласие в форме. */
.stock-showcase { padding-bottom: 64px; }
.stock-visit { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 24px 32px; border: 1px solid var(--line); background: var(--panel); margin-top: 32px; }
.stock-visit p { max-width: 720px; }
.stock-visit .button { flex-shrink: 0; }
.stock-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 24px; align-items: end; border-bottom: 1px solid var(--line); padding-bottom: 32px; }
.stock-filters .button { min-height: 48px; padding-block: 8px; }
.stock-results { margin-block: 24px; }
.stock-photo-note { margin-top: 32px; }
.stock-empty p { max-width: 760px; }
.consent { display: flex; align-items: flex-start; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); cursor: pointer; }
.consent input { flex: 0 0 48px; width: 48px; height: 48px; margin: 0; padding: 0; accent-color: var(--accent); cursor: pointer; }
.consent span { min-width: 0; }
.consent a { display: inline-flex; align-items: center; min-width: 44px; min-height: 48px; max-width: 100%; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1199px) {
  .stock-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stock-visit { align-items: flex-start; }
}
@media (max-width: 767px) {
  .stock-showcase { padding-bottom: 48px; }
  .stock-visit { flex-direction: column; gap: 24px; padding: 24px; }
  .stock-filters { gap: 16px; }
}
@media (max-width: 479px) {
  .stock-filters { grid-template-columns: 1fr; }
  .stock-visit .button { width: 100%; }
  .stock-empty { padding: 32px 24px; }
}

/* Дополнение: сведения о машине, которая уже на площадке. */
.own-gallery .gallery-main { height: auto; }
.own-details { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.own-condition { display: grid; gap: 32px; align-content: start; }
.own-condition h3 { margin-bottom: 16px; }
.own-condition p { color: var(--muted); }
.own-equipment { border-top: 1px solid var(--line); padding-top: 32px; margin-top: 32px; }
.own-equipment ul { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; margin-block: 24px; }
@media (max-width: 767px) {
  .own-details { grid-template-columns: 1fr; gap: 32px; }
  .own-equipment ul { grid-template-columns: 1fr; }
}

/* Дополнение: посадочная марки, длинный текст и ответы на вопросы. */
.landing-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.landing-story { max-width: 72ch; }
.landing-story p, .landing-faq p { line-height: 1.75; }
.landing-story h2 + p { margin-top: 24px; }
.landing-story h3 { margin-block: 40px 16px; }
.landing-story p + h2 { margin-top: 64px; }
.landing-faq { max-width: 960px; }
.landing-faq details { border-top: 1px solid var(--line); }
.landing-faq summary { min-height: 64px; padding-block: 16px; font-size: 1.125rem; font-weight: 700; }
.landing-faq summary::marker { color: var(--accent); }
.landing-faq p { max-width: 72ch; padding-bottom: 24px; color: var(--muted); }

/* Дополнение: обычная форма расчёта и фиксированный пример сметы. */
.calculator-form { display: grid; gap: 24px; padding: 32px; border: 1px solid var(--line); background: var(--panel); }
.calculator-context { padding: 24px 32px; border-bottom: 1px solid var(--line); }
.calculator-result .cost-total { color: var(--text); }
.calculator-result .cost-bottom .button { margin-top: 24px; }
.calculator-result:target { outline: 2px solid var(--accent); outline-offset: 0; }
@media (max-width: 767px) {
  .calculator-form { padding: 24px 16px; }
  .calculator-context { padding: 24px 16px; }
}

/* Дополнение: длинный документ политики. */
.privacy-document section { padding-top: 40px; scroll-margin-top: 24px; }
.privacy-document h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 24px; }
.privacy-document ul, .privacy-document li { line-height: 1.75; margin-block: 16px; }

/* --- Дальше наше: правила, которых в макете нет ни одной строкой.
   Скип-ссылка, окно заявки, состояния отправки формы и подпись о машине.
   Написаны переменными темы, углы прямые, отступы кратны 8 — как у Astry. --- */
.skip-link { position: fixed; left: 16px; top: -64px; z-index: 200; min-height: 48px; display: inline-flex; align-items: center; padding: 8px 16px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.skip-link:focus { top: 16px; }

body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 16px; background: var(--photo-shade); }
.modal:target, .modal.is-open { display: grid; }
.modal__dialog { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 32px; background: var(--panel); border: 1px solid var(--line); overscroll-behavior: contain; }
.modal__close { position: absolute; right: 8px; top: 8px; width: 48px; min-height: 48px; display: grid; place-items: center; padding: 0; background: var(--clear); border: 0; font-size: 1.5rem; }
.modal__close:hover { background: var(--panel-raised); }

/* Состояния отправки: показывает их скрипт, добавляя is-visible.
   Без скрипта форма уходит обычной отправкой, и ни одно из них не нужно */
.form-state { display: none; padding: 16px; border-left: 3px solid var(--line); background: var(--panel-raised); }
.form-state.is-visible { display: block; }
.form-state--sending { border-left-color: var(--accent); }
.form-state--success { border-left-color: var(--success); color: var(--success); }
.form-state--error { border-left-color: var(--danger); color: var(--danger); }

/* Итог сметы читается как итог: в макете смета была придуманной, у нас это
   расчёт, и последняя строка в нём — та, ради которой человек смотрит */
.cost-lines .cost-total-row { border-top: 1px solid var(--line); border-bottom: 0; font-weight: 700; }
.cost-lines .cost-total-row dt { color: var(--text); }

/* Лента стран и соседних моделей: в макете такого блока нет, а у нас он
   на посадочных и в каталоге. Шире экрана — прокручивается вбок, и скрипт
   подводит выбранную к центру */
.country-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
.country-strip a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 48px; padding: 8px 16px; border: 1px solid var(--line); }
.country-strip a.is-current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }

/* Первый экран: у макета вторая колонка — место под фотографию с текстом,
   у нас там настоящий снимок площадки из настроек. Снимка нет — колонки нет */
.hero--single { grid-template-columns: 1fr; }
/* Снимок не загрузился и скрипт убрал блок — колонку тоже убираем,
   иначе справа от текста остаётся пустая половина экрана */
.hero:has(.hero-photo[hidden]) { grid-template-columns: 1fr; }
.hero-photo img { height: 100%; min-height: 320px; object-fit: cover; }

/* Шагов работы у нас четыре, а не три: сетка подстраивается под число карточек,
   а не задаёт его. Так же ведут себя три шага на карточке машины */
.process { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Полноэкранный просмотр фотографий: в макете его нет вовсе, там снимок
   переключается прямо в карточке. У нас окно есть, и стили ему нужны свои */
.gallery-modal .modal__dialog { width: min(1100px, 100%); padding: 16px; display: grid;
  grid-template-columns: 56px 1fr 56px; grid-template-rows: 1fr auto; align-items: center; gap: 8px; }
.gallery-full { grid-column: 2; max-height: calc(100dvh - 160px); object-fit: contain; background: var(--page); }
.gallery-arrow { min-width: 56px; min-height: 56px; font-size: 2rem; line-height: 1; background: var(--panel); }
.gallery-arrow--prev { grid-column: 1; }
.gallery-arrow--next { grid-column: 3; }
.gallery-position { grid-column: 1 / -1; text-align: center; color: var(--muted); }

/* Миниатюры галереи: у макета это кнопки, у нас ссылки на полный снимок —
   так карточка листается и без скрипта, а с ним открывается окно */
.gallery-thumbs a { display: block; min-height: 48px; border: 2px solid var(--line); }
.gallery-thumbs a.is-active { border-color: var(--accent); }
.gallery-caption button { padding: 0; border: 0; background: var(--clear); }

/* Заглушка вместо снимка: рисунок не должен растягиваться на весь кадр,
   иначе он читается как настоящая фотография */
img.is-placeholder { object-fit: contain; padding: 12%; background: var(--panel); }

/* Свёрнутая справка о персональных данных на контактах: в макете
   такого блока нет, а у нас он был и остаётся */
.privacy-note { padding-block: 24px 48px; border-top: 1px solid var(--line); }
.privacy-note summary { min-height: 48px; display: flex; align-items: center; font-weight: 700; }
.privacy-note p { max-width: 72ch; margin-top: 16px; color: var(--muted); line-height: 1.75; }

/* Цитата текста согласия в политике: в макете цитат нет вовсе,
   а этот абзац обязан читаться как приведённый дословно */
.legal-quote { margin: 24px 0; padding: 16px 24px; border-left: 3px solid var(--accent); background: var(--panel); }

/* Крошки: у макета это div со ссылками, у нас nav и ol — семантика лучше,
   и терять её при перевёрстке незачем. Правила Astry для .breadcrumbs
   рассчитаны на flex-строку, поэтому здесь только снятие списочных отступов
   и разделитель между звеньями */
ol.breadcrumbs { list-style: none; padding-left: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: var(--muted); }

.lead-context { padding: 16px; margin-bottom: 24px; background: var(--panel-raised); border-left: 3px solid var(--accent); }

@media (max-width: 767px) {
  .gallery-modal .modal__dialog { grid-template-columns: 1fr; }
  .gallery-full { grid-column: 1; }
  .gallery-arrow--prev, .gallery-arrow--next { grid-column: 1; }
  .modal { padding: 8px; }
  .modal__dialog { max-height: calc(100dvh - 16px); padding: 24px 16px; }
}
