/* Шрифты. Оба — вариативные, поэтому один файл на весь диапазон весов,
   разбитый по подмножествам символов (как их отдаёт Google Fonts). */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/archivo-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: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/archivo-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/golos-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: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/golos-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/golos-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/golos-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Базовые стили — перенесены из прототипа без изменений. */

html, body { margin: 0; background: #F4562A; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
/* Вёрстка перенесена из прототипа с инлайн-стилями, поэтому у шторки есть
   собственный display: flex — без !important атрибут hidden его не перебьёт. */
[hidden] { display: none !important; }
a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #111111; }
h1, h2, p, div, span, button, label, li { overflow-wrap: normal; word-break: normal; hyphens: manual; }
input, select, button, textarea { font-family: inherit; font-size: 16px; }
input::placeholder { color: #BDB4AF; }
input:focus { outline: 2px solid #111111; outline-offset: -2px; }
::-webkit-scrollbar { display: none; }

@keyframes dsgnRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes dsgnSheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes dsgnFade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html, body { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Ховеры: в прототипе они жили в атрибуте style-hover, здесь — обычным CSS. */
[data-sheet-item]:hover { background: #F5F2EF; }
[data-submit]:hover:not(:disabled) { background: #111111; color: #FFFFFF; }
[data-reset]:hover { background: #FFFFFF; color: #F4562A; }
[data-submit]:disabled { opacity: 0.65; cursor: default; }

/* Расстояния между смысловыми блоками.

   Было тесно: карточки и заголовки шли почти встык, и глазу не за что
   зацепиться — где кончается одна мысль и начинается следующая. Разводим
   через один общий отступ, чтобы дальше менять его в одном месте. */
[data-left] > div + div { margin-top: 34px; }
[data-bcards] { gap: 16px !important; margin-top: 22px !important; }
[data-perks] { gap: 16px !important; margin-top: 22px !important; }
[data-bcard] { padding: 22px !important; }
[data-ftop] { padding-top: 52px !important; }

/* Планшет и десктоп — тоже из прототипа. */

@media (min-width: 700px) {
  [data-shell] { max-width: 760px !important; }
  [data-pad] { padding-left: 40px !important; padding-right: 40px !important; }
  [data-bcards] { display: grid !important; grid-template-columns: repeat(3, 1fr); overflow: visible !important; }
  [data-bcard] { width: auto !important; }
  [data-perks] { display: grid !important; grid-template-columns: 1fr 1fr; }
  /* Нижняя панель должна быть шириной с контейнер, иначе форма видна по бокам. */
  [data-bar] { max-width: 760px !important; }
}

@media (min-width: 1040px) {
  [data-shell] { max-width: 1440px !important; }
  [data-pad] { padding-left: 72px !important; padding-right: 72px !important; }
  [data-main] { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 72px; align-items: start; }
  /* top: 24px, а не 104px: шапка больше не висит над содержимым, и прежний
     отступ оставлял бы форму провалившейся вниз без причины. */
  [data-right] { position: sticky; top: 24px; }
  [data-left] > div + div { margin-top: 44px; }
  [data-bcards] { grid-template-columns: 1fr; }
  [data-perks] { grid-template-columns: 1fr; }
  [data-bar] { position: static !important; max-width: none !important; background: transparent !important; border-top: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; margin-top: 8px; }
  [data-bar] [data-progress] { display: none; }
  [data-spacer] { display: none !important; }
  [data-ftop] { padding-top: 0 !important; }
  [data-ftop] [data-rule] { display: none; }
}

/* Очень большие мониторы: на 1920 прежние 1180px оставляли по трети экрана
   пустого поля с каждой стороны. Дальше 1600 не растягиваем — строка текста
   длиннее 90 знаков читается тяжело. */
@media (min-width: 1600px) {
  [data-shell] { max-width: 1600px !important; }
  [data-pad] { padding-left: 96px !important; padding-right: 96px !important; }
}
