/* Витрина Рубинет. Mobile-first: базовые правила — под телефон,
   медиазапрос внизу лишь чуть расширяет колонку на десктопе. */

@font-face { font-family:'Onest'; src:url('assets/fonts/Onest-cyrillic-ext.woff2') format('woff2');
  font-weight:100 900; font-style:normal; font-display:swap;
  unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family:'Onest'; src:url('assets/fonts/Onest-cyrillic.woff2') format('woff2');
  font-weight:100 900; font-style:normal; font-display:swap;
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:'Onest'; src:url('assets/fonts/Onest-latin.woff2') format('woff2');
  font-weight:100 900; font-style:normal; font-display:swap;
  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:'Raleway'; src:url('assets/fonts/Raleway-cyrillic-ext.woff2') format('woff2');
  font-weight:100 900; font-style:normal; font-display:swap;
  unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family:'Raleway'; src:url('assets/fonts/Raleway-cyrillic.woff2') format('woff2');
  font-weight:100 900; font-style:normal; font-display:swap;
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:'Raleway'; src:url('assets/fonts/Raleway-latin.woff2') format('woff2');
  font-weight:100 900; font-style:normal; font-display:swap;
  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 {
  /* Фирменные цвета — те же, что в tailwind.config.js основного сайта */
  --red: #C81A26;
  --navy: #00214E;
  --ink: #05112A;

  --text: #FFFFFF;
  --text-dim: rgba(255,255,255,.72);
  --text-faint: rgba(255,255,255,.55);

  --card-bg: rgba(255,255,255,.055);
  --card-bd: rgba(255,255,255,.12);
  --tile-bg: rgba(255,255,255,.07);

  --r-card: 22px;
  --r-btn: 16px;
  --gutter: 16px;
  --gap: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: 'Raleway', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background-color: var(--ink);
  /* Рассвет из макета: голубой → оранжевый → красный, дальше глубокий синий */
  background-image:
    linear-gradient(180deg,
      #A9D6EA 0,
      #F0A95C 12%,
      #D0432F 24%,
      #A2152C 33%,
      #3A1038 45%,
      #0C1E44 62%,
      var(--ink) 78%);
  background-repeat: no-repeat;
  background-size: 100% 1100px;
}

/* Пиксельная текстура в правом верхнем углу — как на макете. */
body::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: min(62%, 320px);
  height: 340px;
  background-image: radial-gradient(rgba(255,255,255,.28) 1px, transparent 1.2px);
  background-size: 7px 7px;
  -webkit-mask-image: radial-gradient(120% 90% at 100% 0, #000 20%, transparent 70%);
          mask-image: radial-gradient(120% 90% at 100% 0, #000 20%, transparent 70%);
  pointer-events: none;
}

.sprite { display: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.page {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom));
}

/* ── Шапка ─────────────────────────────────────────── */
.head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}
.head__logo { width: 190px; height: auto; display: block; }

.head__services {
  margin: 4px 0 0; padding: 0; list-style: none;
  font-size: 10px; line-height: 1.55;
  letter-spacing: .09em; text-transform: uppercase;
  text-align: right; color: rgba(255,255,255,.9);
}

/* ── Общий каркас карточек ─────────────────────────── */
.stack { display: flex; flex-direction: column; gap: var(--gap); }

.card {
  padding: 18px;
  border-radius: var(--r-card);
  background: var(--card-bg);
  border: 1px solid var(--card-bd);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.card__top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }

.card__title {
  margin: 0;
  font-family: 'Onest', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.22;
  letter-spacing: -.01em;
}
.card__title--section { font-size: 17px; margin-bottom: 14px; }

.card__sub { display: block; margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--text-dim); }
.card__note { margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.8); }

/* Иконка-плашка */
.icon {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 15px;
}
.icon svg { width: 27px; height: 27px; }
.icon--red   { background: var(--red);  color: #fff; }
.icon--navy  { background: #1B3566;     color: #fff; }
.icon--light { background: rgba(255,255,255,.16); color: #fff; }

/* Карточка целиком — ссылка */
.card--link {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: inherit;
  transition: transform .15s ease, background-color .15s ease;
}
.card--link .card__body { flex: 1 1 auto; min-width: 0; }
.card--link .card__title { display: block; }
.card__arrow { flex: 0 0 auto; width: 22px; height: 22px; color: var(--text-faint); }

/* Промо-блок розыгрыша */
.card--promo {
  background:
    linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,0) 60%),
    linear-gradient(140deg, #D4202D 0%, #9C1230 100%);
  border-color: rgba(255,255,255,.18);
}
.card--promo .card__title { font-size: 26px; line-height: 1.15; }

/* ── Кнопки ────────────────────────────────────────── */
.btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: 56px;
  padding: 12px 16px;
  border-radius: var(--r-btn);
  font-family: 'Onest', sans-serif; font-weight: 600; font-size: 15px;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.btn > span { flex: 1 1 auto; }
.btn__icon  { flex: 0 0 auto; width: 21px; height: 21px; color: var(--text-dim); }
.btn__arrow { flex: 0 0 auto; width: 19px; height: 19px; color: currentColor; opacity: .75; }

.btn--solid { justify-content: space-between; background: #F8F8F8; color: var(--navy); }
.btn--solid > span { text-align: center; }

.btn--ghost {
  background: var(--tile-bg);
  border: 1px solid var(--card-bd);
  color: var(--text);
  font-size: 13.5px; line-height: 1.25;
}

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pair .btn { padding: 12px; gap: 8px; }
.pair .btn__arrow { width: 16px; height: 16px; }

/* ── Соцсети ───────────────────────────────────────── */
.socials {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
}
.socials a {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 12px 4px;
  border-radius: 14px;
  background: var(--tile-bg);
  color: var(--text);
  text-decoration: none;
  font-size: 10.5px; line-height: 1.1; text-align: center;
  transition: transform .15s ease, background-color .15s ease;
}
.socials svg { width: 24px; height: 24px; }

/* ── Подвал ────────────────────────────────────────── */
.foot {
  display: flex; align-items: center; gap: 12px;
  margin-top: 26px;
  font-size: 12px; line-height: 1.35; color: var(--text-faint);
}
.foot__rule { flex: 1 1 auto; height: 1px; background: rgba(255,255,255,.22); }
.foot__site { color: var(--text-dim); text-decoration: none; white-space: nowrap; }

/* ── Состояния ─────────────────────────────────────── */
a:focus-visible, .btn:focus-visible {
  outline: 2px solid #8FD3FF;
  outline-offset: 3px;
}

@media (hover: hover) {
  .card--link:hover  { background: rgba(255,255,255,.1); }
  .btn--ghost:hover  { background: rgba(255,255,255,.12); }
  .btn--solid:hover  { background: #fff; }
  .socials a:hover   { background: rgba(255,255,255,.13); }
  .foot__site:hover  { color: #fff; }
}

.card--link:active, .btn:active, .socials a:active { transform: scale(.985); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .card--link:active, .btn:active, .socials a:active { transform: none; }
}

/* Чуть просторнее там, где экран это позволяет */
@media (min-width: 480px) {
  :root { --gutter: 22px; --gap: 16px; }
  .page { padding-top: 36px; }
  .head__logo { width: 210px; }
  .card { padding: 20px; }
  .card--promo .card__title { font-size: 28px; }
}
