/* Арт Курьер — основа: шрифты, токены, типографика, кнопки, шапка, подвал, форма, окна.
   Числа — из макета Figma (Typography, Colors, Desktop/Mobile components). Десктоп 1440, мобильный 375. */

@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 300 400; font-display: swap; src: url("../fonts/oswald-cyrillic.woff2") format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 300 400; font-display: swap; src: url("../fonts/oswald-latin.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: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/inter-cyrillic.woff2") format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/inter-latin.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 {
  /* Colors (лист Colors макета) */
  --c-text: #373535;          /* Black */
  --c-accent: #a83449;        /* Crimson */
  --c-line: #d9d9d9;          /* Gray-85 */
  --c-dark: #373535;          /* подвал, затемнение */
  --c-gray: #5f5d5d;
  --c-soft: #f2f2f2;
  --c-green: #42b36b;         /* ссылка Greencow */
  --c-text-50: rgba(55, 53, 53, .5);
  --c-text-20: rgba(55, 53, 53, .2);
  --c-white-80: rgba(255, 255, 255, .8);
  --c-white-50: rgba(255, 255, 255, .5);
  --c-white-20: rgba(255, 255, 255, .2);

  --f-head: 'Oswald', 'Arial Narrow', sans-serif;
  --f-text: 'Inter', Arial, sans-serif;

  --gutter: 40px;             /* поля страницы на десктопе */
  --head-h: 72px;
  --radius: 6px;              /* кнопки Button 48px */
}
@media (max-width: 1023px) {
  :root { --gutter: 24px; --head-h: 64px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: #fff; color: var(--c-text);
  font: 400 14px/22px var(--f-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1 0 auto; width: 100%; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.i { width: 24px; height: 24px; flex: none; fill: none; }
.i-16 { width: 16px; height: 16px; }

.wrap { width: 100%; padding-inline: var(--gutter); margin-inline: auto; }

/* ---------- Типографика: роли шкалы дизайнера ---------- */
.t-h1, .t-h2, .t-h3, .t-h4, .t-h5, .t-h6, .t-num, .t-numtext { font-family: var(--f-head); font-weight: 300; text-transform: uppercase; }
.t-h1 { font-size: 84px; line-height: 108px; }   /* Heading 84-108 → моб. 40/48 */
.t-h2 { font-size: 56px; line-height: 72px; }    /* Heading 56-72 → моб. 28/38 */
.t-h3 { font-size: 48px; line-height: 58px; }    /* Heading 48-58 → моб. 24/34 */
.t-h4 { font-size: 36px; line-height: 46px; }    /* Heading 36-46 */
.t-h5 { font-size: 28px; line-height: 38px; }    /* Heading 28-38 */
.t-h6 { font-size: 24px; line-height: 34px; }    /* Heading 24-34 */
.t-h72 { font-family: var(--f-head); font-weight: 300; text-transform: uppercase; font-size: 72px; line-height: 88px; }
.t-num { font-size: 92px; line-height: 92px; }   /* Number 92-92 → моб. 80/80 */
.t-numtext { font-weight: 400; font-size: 28px; line-height: 38px; }
.t-body { font: 400 14px/22px var(--f-text); }
.t-caps { font: 500 11px/20px var(--f-text); letter-spacing: .04em; text-transform: uppercase; }  /* Caps 11-20, +4% по макету */
@media (max-width: 1023px) {
  .t-h1 { font-size: 40px; line-height: 48px; }
  .t-h2 { font-size: 28px; line-height: 38px; }
  .t-h3 { font-size: 24px; line-height: 34px; }
  .t-h72 { font-size: 40px; line-height: 48px; }
  .t-num { font-size: 80px; line-height: 80px; }
}

/* Заголовок раздела: эмблема + подпись + H2 (компонент Heading H2) */
.sec-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding: 140px var(--gutter) 80px; }
.sec-head__pre { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--c-text); }
.sec-head__pre .i-emblem { width: 26px; height: 24px; color: var(--c-accent); }
.sec-head__title { max-width: 896px; }
.sec-head--left { align-items: flex-start; text-align: left; }
.sec-head--left .sec-head__pre { flex-direction: row; }
.on-dark .sec-head__pre, .on-dark .sec-head__pre .i-emblem { color: #fff; }
@media (max-width: 1023px) {
  .sec-head { padding: 80px var(--gutter) 48px; gap: 24px; }
}

/* ---------- Кнопки (Button 48px, Button Icon 24/32/48) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  min-height: 48px; padding: 13px 24px; border-radius: var(--radius);
  border: 1px solid transparent; font: 500 11px/20px var(--f-text); letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s;
}
.btn--accent { background: var(--c-accent); color: #fff; }
.btn--white { background: #fff; color: var(--c-text); }
.btn--ghost { border-color: var(--c-white-20); color: #fff; }             /* на красном/тёмном */
.btn--ghost-dark { border-color: var(--c-line); color: var(--c-text); }   /* на белом */
@media (hover: hover) {
  .btn--accent:hover { background: #fff; color: var(--c-accent); border-color: var(--c-accent); }
  .btn--white:hover { background: transparent; color: #fff; border-color: var(--c-white-20); }
  .btn--ghost:hover { background: #fff; color: var(--c-accent); border-color: #fff; }
  .btn--ghost-dark:hover { border-color: var(--c-accent); color: var(--c-accent); }
}
@media (max-width: 1023px) { .btn { white-space: normal; text-align: center; } }

.ibtn { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex: none; transition: background-color .2s, color .2s, border-color .2s; }
.ibtn .i { width: 16px; height: 16px; }
.ibtn--24 { width: 24px; height: 24px; }
.ibtn--32 { width: 32px; height: 32px; }
.ibtn--48 { width: 48px; height: 48px; }
.ibtn--accent { background: var(--c-accent); color: #fff; }
.ibtn--white { background: #fff; color: var(--c-accent); }
.ibtn--white-dark { background: #fff; color: var(--c-text); }
.ibtn--line { border: 1px solid var(--c-line); color: var(--c-accent); }
.ibtn--line-white { border: 1px solid var(--c-white-20); color: #fff; }
@media (hover: hover) {
  .ibtn--accent:hover { background: #fff; color: var(--c-accent); }
  .ibtn--white:hover, .ibtn--white-dark:hover { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px var(--c-white-50); }
  .ibtn--line:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
  .ibtn--line-white:hover { background: #fff; color: var(--c-accent); }
}

/* Строка-ссылка с наведением (меню, подвал) */
.lnk { transition: opacity .2s, color .2s; }
@media (hover: hover) { .lnk:hover { opacity: .5; } }

/* ---------- Шапка (Head) ---------- */
.header { position: relative; z-index: 50; height: var(--head-h); color: var(--c-text); }
.header::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--c-line); pointer-events: none; }
.header__in { display: flex; align-items: stretch; height: 100%; }
.header__brand { display: flex; flex: none; background: var(--c-accent); color: #fff; position: relative; z-index: 1; }
.header__logo { display: flex; align-items: center; padding: 0 48px 0 40px; width: 203px; }
.header__logo .i-logo { width: 115px; height: 40px; }
.header__lang { position: relative; width: 81px; border-left: 1px solid var(--c-white-20); }
.header__lang-btn { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 100%; }
.header__lang-btn .i { width: 12px; height: 12px; transition: transform .2s; }
.header__nav { flex: 1; display: flex; justify-content: center; align-items: center; gap: 24px; padding: 0 24px; }
.header__nav a[aria-current="page"] { color: var(--c-accent); }
.header__phone { position: relative; display: flex; align-items: center; gap: 16px; padding: 0 40px 0 41px; border-left: 1px solid var(--c-line); }
.header__phone-btn { display: flex; align-items: center; gap: 16px; height: 100%; }
.header__phone-btn > .i { width: 12px; height: 12px; transition: transform .2s; }
.header__phone .ibtn--24 .i { width: 16px; height: 16px; }
.header__burger, .header__call { display: none; }

/* Вариант над фото (главная): прозрачная, белый текст, белая плашка логотипа */
.header--over { position: absolute; top: 0; left: 0; right: 0; color: #fff; }
.header--over::after { background: var(--c-white-20); }
.header--over .header__brand { background: #fff; color: var(--c-accent); }
.header--over .header__lang { border-left-color: rgba(55, 53, 53, .2); color: var(--c-text); }
.header--over .header__phone { border-left-color: var(--c-white-20); }

/* Выпадающие списки шапки (Выпадение телефона и языка) */
.drop { position: absolute; top: 0; z-index: -1; background: #fff; color: var(--c-text); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.is-open > .drop { opacity: 1; visibility: visible; }
.header__lang.is-open .header__lang-btn .i, .header__phone.is-open .header__phone-btn > .i { transform: rotate(180deg); }
.header__lang .drop { top: 100%; left: 0; right: 0; border-top: 1px solid var(--c-line); }
.header__lang .drop a { display: flex; align-items: center; justify-content: center; height: 72px; }
.header__phone .drop { top: 0; left: 0; right: 0; padding: 72px 40px 24px 41px; }
.header__phone.is-open .header__phone-btn { position: relative; z-index: 1; color: var(--c-text); }
.drop__list { white-space: nowrap; }
.drop__list li + li { border-top: 1px solid var(--c-line); }
.drop__list a { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.drop__list .i { width: 24px; height: 24px; padding: 4px; color: var(--c-text); }

@media (max-width: 1279px) {
  .header__nav { gap: 16px; padding: 0 16px; }
  .header__phone { padding: 0 24px; }
}
@media (max-width: 1199px) {
  .header__nav { display: none; }
  .header__phone { margin-left: auto; }
  .header__burger { display: flex; align-items: center; justify-content: center; width: 72px; border-left: 1px solid var(--c-line); }
  .header--over .header__burger { border-left-color: var(--c-white-20); }
}
@media (max-width: 1023px) {
  .header__logo { width: auto; padding: 0 24px; flex: 1; }
  .header__logo .i-logo { width: 103px; height: 36px; }
  .header__brand { flex: 0 1 246px; }
  .header__lang { width: 68px; }
  .header__phone { display: none; }
  .header__call { display: flex; align-items: center; justify-content: center; width: 64px; margin-left: auto; border-left: 1px solid var(--c-line); }
  .header__call .i { width: 20px; height: 20px; }
  .header__burger { width: 65px; }
  .header--over .header__call { border-left-color: var(--c-white-20); }
  .header__lang .drop a { height: 64px; }
}

/* Мобильные слои: меню (Меню м) и телефон (Выпадение телефона м) */
.mnav { position: fixed; inset: 0; z-index: 90; background: #fff; color: var(--c-text); display: flex; flex-direction: column; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.mnav.is-open { opacity: 1; visibility: visible; }
.mlayer__top { display: flex; height: var(--head-h); flex: none; border-bottom: 1px solid var(--c-line); }
.mlayer__top .header__brand { flex: 0 1 246px; }
.mlayer__lang { width: 68px; display: flex; align-items: center; justify-content: center; border-left: 1px solid var(--c-white-20); }
.mlayer__top .header__call, .mlayer__top .header__burger { display: flex; align-items: center; justify-content: center; border-left: 1px solid var(--c-line); }
.mlayer__top .header__call { width: 64px; margin-left: auto; }
.mlayer__top .header__burger { width: 65px; }
.mlayer__top .header__call, .mlayer__top .header__burger { color: var(--c-accent); }
.mlayer__lang { gap: 4px; } .mlayer__lang .i { width: 12px; height: 12px; }
.mnav__list { padding: 24px var(--gutter) 0; font-size: 20px; line-height: 28px; }
.mnav__list a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 15px; }
.mnav__list a + a { border-top: 1px solid var(--c-line); }
.mnav__list a[aria-current="page"]::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); }
.mnav__dl { margin: auto 0 0 auto; width: calc(100% - 81px); max-width: 360px; min-height: 136px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 24px; background: var(--c-accent); color: #fff; flex: none; }
.mnav__dl > span:first-child { max-width: 170px; }
.mnav__dl .ibtn { align-self: flex-end; }
.mnav--phone { background: transparent; overflow: hidden; }
.mnav--phone .mlayer__top { background: #fff; }
.mphone__list { background: #fff; padding: 40px var(--gutter); font-size: 20px; line-height: 28px; display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }
.mphone__list li + li { border-top: 1px solid var(--c-line); padding-top: 16px; }
.mphone__list a { display: flex; align-items: center; gap: 16px; }
.mphone__list .ibtn .i { width: 16px; height: 16px; }
.mphone__bg { flex: 1; background: rgba(0, 0, 0, .5); }
@media (min-width: 1200px) { .mnav { display: none; } }

/* ---------- Подвал (Footer) ---------- */
.footer { background: var(--c-dark); color: #fff; }
.footer__top { display: flex; align-items: stretch; border-bottom: 1px solid var(--c-white-20); }
.footer__logo { display: flex; align-items: center; background: var(--c-accent); padding: 0 48px 0 40px; width: 203px; height: 96px; flex: none; }
.footer__logo .i-logo { width: 115px; height: 40px; }
.footer__nav { flex: 1; display: flex; align-items: center; gap: 24px; padding: 0 60px; }
.footer__nav a[aria-current="page"] { opacity: .5; }
.footer__up { display: flex; align-items: center; gap: 16px; padding: 0 40px 0 41px; border-left: 1px solid var(--c-white-20); }
.footer__up .ibtn .i { width: 16px; height: 16px; }
@media (hover: hover) { .footer__up:hover .ibtn { background: #fff; color: var(--c-accent); } }
.footer__mid { display: grid; grid-template-columns: 598px 1fr; border-bottom: 1px solid var(--c-white-20); }
.footer__left { border-right: 1px solid var(--c-white-20); display: flex; flex-direction: column; }
.footer__dl { margin-left: 203px; height: 96px; display: flex; align-items: center; gap: 16px; padding: 0 60px; white-space: nowrap; background: var(--c-accent); border-bottom: 1px solid var(--c-white-20); }
.footer__dl .ibtn .i { width: 16px; height: 16px; }
@media (hover: hover) { .footer__dl:hover .ibtn { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px var(--c-white-50); } }
.footer__dev { padding: 56px 40px 56px; display: flex; flex-direction: column; gap: 16px; border-top: 1px solid var(--c-white-20); margin-top: -1px; }
.footer__dev img { width: 36px; height: 36px; }
.footer__dev a { color: var(--c-green); }
.footer__contacts { display: grid; grid-template-columns: 385px 1fr; row-gap: 48px; padding: 36px 40px 56px 60px; }
.footer__label { color: var(--c-white-80); margin-bottom: 16px; }
.footer__big { display: flex; align-items: center; gap: 16px; }
.footer__big .t-h4 { white-space: nowrap; }
.footer__msg { display: flex; gap: 12px; }
.footer__msg .ibtn--white { color: var(--c-accent); }
.footer__copy { display: inline-flex; padding-top: 8px; align-self: flex-start; color: #fff; }
.footer__copy .i { width: 16px; height: 16px; }
.footer__copy.is-done .i { color: var(--c-green); }
.footer__bottom { display: grid; grid-template-columns: 598px 1fr auto; align-items: center; padding: 48px 40px 48px; color: var(--c-white-80); }
.footer__bottom > :nth-child(2) { padding-left: 60px; }
@media (hover: hover) { a.footer__phone-num:hover { opacity: .5; } }

/* телефон и почта в две колонки занимают 313 + 338 и влезают только от 1400 */
@media (max-width: 1399px) {
  .footer__contacts { grid-template-columns: 1fr; row-gap: 32px; }
}
@media (max-width: 1279px) {
  .footer__nav { padding: 0 32px; gap: 16px; }
  .footer__mid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { grid-template-columns: 1fr 1fr auto; }
  .footer__contacts { padding-left: 40px; }
  .footer__dl { margin-left: 0; padding: 0 40px; }
  .footer__bottom > :nth-child(2) { padding-left: 40px; }
}
@media (max-width: 1023px) {
  /* Подвал м: наверх → меню → телефон/почта → презентация → Greencow → ссылки → копирайт */
  .footer { padding-bottom: 40px; }
  .footer__top { justify-content: flex-end; border-bottom: 0; }
  .footer__logo, .footer__nav { display: none; }
  .footer__up { border-left: 0; height: 64px; padding: 0 var(--gutter); }
  .footer__mid { display: flex; flex-direction: column; border-bottom: 0; }
  .footer__left { border-right: 0; display: contents; }
  .footer__mnav { display: block !important; padding: 40px var(--gutter) 64px; }
  .footer__mnav a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 15px; border-top: 1px solid var(--c-white-20); }
  .footer__mnav li:last-child a { border-bottom: 1px solid var(--c-white-20); }
  .footer__mnav a[aria-current="page"]::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); }
  .footer__contacts { order: 1; display: flex; flex-direction: column; padding: 0 var(--gutter) 64px; row-gap: 16px; }
  .footer__contacts .footer__label, .footer__addr { display: none; }
  .footer__email .t-h4 { font-size: 20px; line-height: 28px; }
  .footer__big { gap: 16px; }
  .footer__email .footer__big { gap: 12px; }
  .footer__copy { padding-top: 0; align-self: center; }
  .footer__dl { order: 2; margin: 0 0 0 auto; width: calc(100% - 81px); height: 136px; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 0; padding: 24px; border: 0; }
  .footer__dl { white-space: normal; }
  .footer__dl > span:first-child { max-width: 170px; }
  .footer__dl .ibtn { align-self: flex-end; }
  .footer__dev { order: 3; flex-direction: row; align-items: flex-start; padding: 64px var(--gutter) 32px; border: 0; margin: 0; gap: 16px; }
  .footer__bottom { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 0; padding: 0; margin-inline: var(--gutter); border-top: 1px solid var(--c-white-20); }
  .footer__bottom > :nth-child(2) { padding-left: 0; }
  .footer__legal { display: flex; flex-direction: column; gap: 8px; padding: 32px 0 64px; }
  .footer__bottom > span:first-child { max-width: 220px; }
}
.footer__mnav { display: none; }

/* ---------- Форма (Contact form) ---------- */
.cform { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--c-line); background: #fff; }
.field { position: relative; display: block; border-bottom: 1px solid var(--c-line); }
.field:nth-child(odd):not(.field--wide) { border-right: 1px solid var(--c-line); }
.field--wide { grid-column: 1 / -1; }
.field input, .field textarea {
  display: block; width: 100%; border: 0; background: transparent; outline: 0;
  padding: 21px 48px 20px 32px; font: 400 14px/22px var(--f-text); color: var(--c-text);
  border-radius: 0; -webkit-appearance: none; appearance: none;
}
.field textarea { height: 128px; resize: none; padding-right: 32px; }
.field input::placeholder, .field textarea::placeholder { color: var(--c-text); opacity: 1; }
.field__req { position: absolute; right: 24px; top: 21px; color: var(--c-accent); font: 400 20px/22px var(--f-text); pointer-events: none; }
.field:focus-within { box-shadow: inset 0 0 0 1px var(--c-accent); }
.field.is-error { box-shadow: inset 0 0 0 1px var(--c-accent); }
.field.is-error input::placeholder { color: var(--c-accent); }
.cform__foot { grid-column: 1 / -1; padding: 32px 32px 48px; display: flex; flex-direction: column; align-items: flex-start; }
.check { display: flex; align-items: center; gap: 16px; cursor: pointer; color: var(--c-text-50); }
.check + .check { margin-top: 16px; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--c-line); flex: none; display: flex; align-items: center; justify-content: center; transition: background-color .2s, border-color .2s; }
.check__box .i { width: 14px; height: 14px; color: #fff; opacity: 0; }
.check input:checked + .check__box { background: var(--c-accent); border-color: var(--c-accent); }
.check input:checked + .check__box .i { opacity: 1; }
.check input:focus-visible + .check__box { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.check.is-error .check__box { border-color: var(--c-accent); }
.cform__policy { margin-top: 17px; color: var(--c-text); }
@media (hover: hover) { .cform__policy:hover { color: var(--c-accent); } }
.cform__btn { margin-top: 48px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 1023px) {
  .cform { display: flex; flex-direction: column; border-left: 0; border-right: 0; }
  .field:nth-child(odd):not(.field--wide) { border-right: 0; }
  .field input, .field textarea { padding: 20px 48px 20px var(--gutter); }
  .field textarea { height: 140px; }
  .field__req { right: var(--gutter); top: 20px; }
  .cform__foot { padding: 32px var(--gutter) 0; }
  .check { align-items: flex-start; }
  .cform__btn { width: 100%; margin-top: 48px; }
}

/* ---------- Окна: заявка, спасибо, cookies ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: flex-end; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__bg { position: absolute; inset: 0; background: rgba(55, 53, 53, .6); opacity: 0; transition: opacity .3s; }
.modal.is-open .modal__bg { opacity: 1; }
.modal__panel { position: relative; width: 776px; max-width: 100%; height: 100%; overflow-y: auto; background: #fff; padding: 54px 40px 54px; transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.modal.is-open .modal__panel { transform: none; }
.modal__close { position: absolute; top: 40px; right: 56px; }
.modal__title { max-width: 520px; margin-bottom: 48px; }
.modal--thanks .modal__panel { display: flex; flex-direction: column; justify-content: center; padding: 100px 100px 100px 100px; }
.modal--thanks .modal__title { margin-bottom: 32px; }
@media (max-width: 1023px) {
  /* шторка снизу: отступ сверху 96, ручка 64×2 и крестик 32 (Всплывающая заявка м, Спасибо м) */
  .modal { align-items: flex-end; }
  .modal__bg { background: rgba(0, 0, 0, .5); }
  .modal__panel { width: 100%; height: calc(100% - 96px); padding: 56px 0 40px; transform: translateY(100%); }
  .modal__panel::before { content: ""; position: absolute; top: 24px; left: 50%; width: 64px; height: 2px; margin-left: -32px; border-radius: 2px; background: var(--c-text-50); }
  .modal__close { top: 24px; right: var(--gutter); width: 32px; height: 32px; }
  .modal__title { padding: 32px var(--gutter) 48px; margin: 0; text-align: left; font-size: 24px; line-height: 34px; max-width: none; }
  .modal--thanks .modal__panel { padding: 56px var(--gutter) 40px; justify-content: center; }
  .modal--thanks .modal__title { padding: 32px 0 48px; }
  .modal--thanks .btn { align-self: stretch; }
}
html.is-locked { overflow: hidden; }

.cookies { position: fixed; right: 40px; bottom: 40px; z-index: 80; width: 464px; max-width: calc(100% - 2 * var(--gutter)); background: #fff; padding: 24px 24px 24px 24px; display: none; }
.cookies.is-shown { display: block; }
.cookies__text { padding-right: 56px; margin-bottom: 24px; }
.cookies__text a { color: var(--c-accent); }
.cookies__close { position: absolute; top: 24px; right: 24px; }
@media (max-width: 1023px) {
  .cookies { left: var(--gutter); right: var(--gutter); bottom: var(--gutter); width: auto; max-width: none; }
  .cookies .btn { width: 100%; }
}

/* ---------- Общие сетки и строки ---------- */
.line-top { border-top: 1px solid var(--c-line); }
.line-bottom { border-bottom: 1px solid var(--c-line); }
.dots { display: flex; justify-content: center; gap: 0; }
.dots button { width: 32px; height: 40px; display: flex; align-items: center; justify-content: center; }
.dots button::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c-text-20); transition: background-color .2s; }
.dots button[aria-current="true"]::before { background: var(--c-accent); }

/* ---------- Лента со свайпом ([data-slider] > .js-track) ---------- */
.js-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.js-track::-webkit-scrollbar { display: none; }
.js-track > * { scroll-snap-align: start; flex: none; }
.js-track.is-drag { scroll-snap-type: none; cursor: grabbing; }
.js-track img { -webkit-user-drag: none; user-select: none; }
@media (min-width: 1024px) {
  [data-slider="mobile"] .js-track { display: contents; }
  [data-slider="mobile"] [data-dots] { display: none; }
}

/* ---------- Аккордеон ---------- */
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s; }
.acc-body > * { overflow: hidden; }
.acc-item.is-open .acc-body { grid-template-rows: 1fr; }
@media (min-width: 1024px) {
  .footer__legal { display: contents; }
  .footer__legal > :last-child { text-align: right; }
}

.nobr { white-space: nowrap; }

/* Палец: мелкие кнопки по макету (иконки 24–32, чипы 24, крошки 13) получают невидимое поле нажатия, вид не меняется */
@media (pointer: coarse) {
  .ibtn, .footer__copy, .chip, .pager a, .pager button, .crumbs a { position: relative; }
  .ibtn::after, .footer__copy::after, .pager a::after, .pager button::after {
    content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%);
  }
  .chip::after, .crumbs a::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: max(100%, 32px); transform: translateY(-50%); }
}
