/* ============================================================
   7x7 Rubik's Cube Solver — styling
   ============================================================ */

:root {
  --bg: #0b0b0d;
  --bg-card: #131418;
  --bg-card-2: #1b1d22;
  --fg: #e8eaee;
  --fg-mute: #7e8590;
  --accent: #6bffe1;
  --accent-2: #6bffe1;
  --accent-ink: #0b0b0d;
  --danger: #ff6b6b;
  --ok: #6bffe1;
  --border: #24262d;

  --c-W: #f5f5f5;
  --c-Y: #ffd21f;
  --c-G: #0fa958;
  --c-B: #2160c4;
  --c-R: #d62121;
  --c-O: #ff7a1a;
  --c-empty: #2a2f4a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.topbar {
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #131418, #0b0b0d);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Brand: small Rubik-cube glyph + wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  flex-shrink: 0;
}
.brand__logo {
  display: grid;
  grid-template-columns: repeat(2, 9px);
  grid-template-rows: repeat(2, 9px);
  gap: 2px;
  padding: 2px;
  border-radius: 4px;
  background: #0a1410;
}
.brand__logo i {
  display: block;
  width: 9px; height: 9px;
  border-radius: 1.5px;
}
.brand__logo i:nth-child(1) { background: #d62121; }
.brand__logo i:nth-child(2) { background: #ffd21f; }
.brand__logo i:nth-child(3) { background: #2160c4; }
.brand__logo i:nth-child(4) { background: #0fa958; }
.brand__name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
/* Верхняя строка шапки: заголовок слева, действия (язык + back) справа. */
.topbar__main {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.topbar__sub {
  color: var(--fg-mute);
  font-size: 13px;
  font-weight: 400;
}
.topbar__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
/* Нижняя строка шапки: чипы размеров (на мобиле — горизонтальный скролл). */
.topbar__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.topbar__back {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card-2);
  white-space: nowrap;
}
.topbar__back:hover { background: #23262d; }

/* Переключатель размеров куба в шапке */
.size-chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg-mute);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
}
.size-chip:hover {
  background: var(--bg-card-2);
  color: var(--fg);
}
.size-chip--active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
  font-weight: 600;
}
.size-chip--active:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Чип-свитчер дизайна (в шапке v1 → ведёт на v2). Зеркало v2-designswitch. */
.design-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-size: 12px;
  background: var(--bg-card-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.design-switch:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Переключатель языка ENG / RUS — единый сегментный контрол. Две кнопки
   склеены в общий «pill», активная подсвечена. */
.lang-switch {
  display: inline-flex;
  flex-shrink: 0;
  gap: 4px;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card-2);
}
.lang-chip {
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--fg-mute);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: background 0.1s, color 0.1s;
}
.lang-chip:hover { color: var(--fg); }
.lang-chip--active {
  background: var(--accent);
  color: var(--accent-ink);
}
.lang-chip--active:hover { background: var(--accent); color: var(--accent-ink); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px 80px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 28px;
  margin-bottom: 18px;
  position: relative;
}
.card h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.card p {
  margin: 8px 0;
  color: var(--fg);
}
.card .hint {
  color: var(--fg-mute);
  font-size: 14px;
}
.rules {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}
.rules li { padding: 3px 0; }
.swatch {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 8px;
}

/* ---------- Рабочая область: палитра + развёртка ---------- */

.workspace {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  margin-top: 18px;
  align-items: start;
}
@media (max-width: 900px) {
  .workspace { grid-template-columns: 1fr; }
}

.palette {
  position: sticky;
  top: 12px;
}
.palette h3 {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-mute);
}
.palette__colors {
  display: grid;
  grid-template-columns: repeat(4, 44px);
  gap: 8px;
  margin-bottom: 20px;
}
.palette__btn {
  width: 44px; height: 44px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--c);
  cursor: pointer;
  transition: transform 0.08s, border-color 0.08s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4);
  font-size: 0;
}
.palette__btn:hover { transform: scale(1.06); }
.palette__btn.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(107,255,225,0.25);
}
.palette__btn--erase {
  background: var(--bg-card-2);
  color: var(--fg-mute);
  font-size: 22px !important;
  font-weight: 300;
}

.counts {
  margin-bottom: 20px;
}
#counts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
  font-size: 13px;
}
.count-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  border-radius: 5px;
  background: var(--bg-card-2);
}
.count-row__sw {
  width: 12px; height: 12px;
  border-radius: 2px;
}
.count-row__num { margin-left: auto; }
.count-row.ok { color: var(--ok); }
.count-row.bad { color: var(--danger); }

.actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn {
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.1s, transform 0.08s;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  padding: 12px 22px;
}
.btn--primary:hover:not(:disabled) { background: #9cefd6; }
.btn--primary:disabled {
  background: var(--border);
  color: var(--fg-mute);
  cursor: not-allowed;
}
.btn--ghost {
  background: var(--bg-card-2);
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn--ghost:hover { background: #23262d; }

/* ---------- Развёртка куба 7x7 ---------- */

.net {
  display: grid;
  /* 4 face widths horizontally, 3 vertically (cross layout) */
  grid-template-columns: repeat(4, auto);
  gap: 18px;
  justify-content: start;
  align-items: start;
}

.face {
  display: grid;
  /* размер сетки задаёт родитель .net через CSS-переменную --cube-n
     (по умолчанию 7 — для обратной совместимости) */
  grid-template-columns: repeat(var(--cube-n, 7), 1fr);
  grid-template-rows: repeat(var(--cube-n, 7), 1fr);
  gap: 2px;
  padding: 4px;
  border-radius: 8px;
  background: rgba(0,0,0,0.35);
  position: relative;
}
.face__label {
  position: absolute;
  top: -22px; left: 4px;
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
}

/* Размещение 6 граней в крестообразной развёртке:
        U
      L F R B
        D
*/
.face--U { grid-column: 2 / 3; grid-row: 1 / 2; }
.face--L { grid-column: 1 / 2; grid-row: 2 / 3; }
.face--F { grid-column: 2 / 3; grid-row: 2 / 3; }
.face--R { grid-column: 3 / 4; grid-row: 2 / 3; }
.face--B { grid-column: 4 / 5; grid-row: 2 / 3; }
.face--D { grid-column: 2 / 3; grid-row: 3 / 4; }

.sticker {
  --cell-size: 26px;
  width: var(--cell-size);
  height: var(--cell-size);
  background: var(--c-empty);
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.06s;
  user-select: none;
}
.sticker:hover { transform: scale(1.12); z-index: 1; }
.sticker[data-color="W"] { background: var(--c-W); }
.sticker[data-color="Y"] { background: var(--c-Y); }
.sticker[data-color="G"] { background: var(--c-G); }
.sticker[data-color="B"] { background: var(--c-B); }
.sticker[data-color="R"] { background: var(--c-R); }
.sticker[data-color="O"] { background: var(--c-O); }

.sticker.center {
  outline: 2px dashed rgba(255,255,255,0.35);
  outline-offset: -2px;
}

/* ---------- Валидация и прогресс ---------- */

.validation {
  min-height: 28px;
  margin-bottom: 14px;
  font-size: 14px;
}
.validation.ok    { color: var(--ok); }
.validation.bad   { color: var(--danger); }
.validation.info  { color: var(--fg-mute); }

.progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  color: var(--fg-mute);
  font-size: 14px;
}
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Промежуточный экран ожидания решения ---------- */

.solving-screen[hidden] { display: none; }
.solving-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: radial-gradient(ellipse at top, #14161c 0%, #0b0b0d 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  animation: solvingFadeIn 0.25s ease-out;
}
@keyframes solvingFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Отдельная страница ожидания (v1). Тот же визуал, что был у overlay,
   но в нормальном потоке внутри <main>. Использует те же styling-классы
   .solving-screen__inner / __title / .solving-stat / .solving-cube. */
.solving-page {
  background: radial-gradient(ellipse at top, #14161c 0%, #0b0b0d 60%);
  border-radius: 16px;
  padding: 48px 24px;
  margin: 16px 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  min-height: 60vh;
  animation: solvingFadeIn 0.25s ease-out;
}

/* Вертикальные боковые баннеры 300×600 — только ПК на v1 solving.
   На узких экранах прячутся, и показывается нижний слот вместо них. */
.solving-page__side-ad {
  width: 300px;
  height: 600px;
  flex-shrink: 0;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px 18px;
}
@media (max-width: 1199px) {
  .solving-page__side-ad { display: none; }
}
@media (min-width: 1200px) {
  /* На ПК нижний слот не нужен — рекламу показываем сбоку. */
  .solving-page__bottom-ad { display: none; }
}

@media (max-width: 600px) {
  .solving-page { padding: 32px 16px; min-height: 55vh; border-radius: 12px; gap: 0; }
}

.solving-screen__inner {
  width: 100%;
  max-width: 480px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.solving-screen__title {
  font-size: 24px;
  font-weight: 600;
  margin: 8px 0 0;
  color: var(--fg);
}
.solving-screen__subtitle {
  margin: 0;
  color: var(--fg-mute);
  font-size: 15px;
  line-height: 1.5;
  max-width: 380px;
}

.solving-screen__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 380px;
  margin-top: 8px;
}
.solving-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.solving-stat__label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.solving-stat__value {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}

.solving-screen__status {
  min-height: 1.4em;
  color: var(--accent);
  font-size: 14px;
}

.solving-screen__cancel {
  margin-top: 10px;
}

/* 3D-кубик-лоадер. Размер задан CSS-переменной --cube — она же используется
   в translateZ через calc(), так что мобильный override меняет только её. */
.solving-cube {
  --cube: 140px;
  width: var(--cube);
  height: var(--cube);
  perspective: 800px;
  margin: 0 auto 36px;
  flex-shrink: 0;
}
.solving-cube__scene {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: solvingCubeSpin 8s linear infinite;
}
.solving-cube__face {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 2px solid #0b0b0d;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.4);
  backface-visibility: hidden;
  /* Сетка 3×3 нарисована прямо на грани двумя градиентами с жёсткими стопами:
     одна вертикальная пара линий + одна горизонтальная. Размер линий не
     зависит от единиц — всё в %, поэтому на любой ширине сетка ровная. */
  background-image:
    linear-gradient(to right,
      transparent 32.6%, #0b0b0d 32.6%, #0b0b0d 34%,
      transparent 34%,   transparent 66%,
      #0b0b0d 66%,       #0b0b0d 67.4%, transparent 67.4%),
    linear-gradient(to bottom,
      transparent 32.6%, #0b0b0d 32.6%, #0b0b0d 34%,
      transparent 34%,   transparent 66%,
      #0b0b0d 66%,       #0b0b0d 67.4%, transparent 67.4%);
}
.solving-cube__face--front  { background-color: var(--c-G); transform: translateZ(calc(var(--cube) / 2)); }
.solving-cube__face--back   { background-color: var(--c-B); transform: rotateY(180deg) translateZ(calc(var(--cube) / 2)); }
.solving-cube__face--right  { background-color: var(--c-R); transform: rotateY(90deg)  translateZ(calc(var(--cube) / 2)); }
.solving-cube__face--left   { background-color: var(--c-O); transform: rotateY(-90deg) translateZ(calc(var(--cube) / 2)); }
.solving-cube__face--top    { background-color: var(--c-W); transform: rotateX(90deg)  translateZ(calc(var(--cube) / 2)); }
.solving-cube__face--bottom { background-color: var(--c-Y); transform: rotateX(-90deg) translateZ(calc(var(--cube) / 2)); }

@keyframes solvingCubeSpin {
  from { transform: rotateX(-22deg) rotateY(0deg); }
  to   { transform: rotateX(-22deg) rotateY(360deg); }
}

@media (max-width: 520px) {
  .solving-screen__title { font-size: 20px; }
  .solving-cube { --cube: 110px; margin-bottom: 28px; }
}

/* ---------- Страница решения ---------- */

.solution-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.solution-progress {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  margin: 10px 0 18px;
  overflow: hidden;
}
.solution-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.25s;
}
.phase-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-card-2);
  color: var(--fg-mute);
  border: 1px solid var(--border);
  margin-right: 6px;
}
.phase-chip--active {
  background: var(--accent);
  color: #0b0e1a;
  border-color: transparent;
}
.phase-chip--done {
  background: var(--bg-card);
  color: var(--accent-2);
  border-color: var(--accent-2);
  opacity: 0.7;
}

.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  margin: 16px 0;
}
@media (max-width: 800px) { .step { grid-template-columns: 1fr; } }

/* ---------- Визуализация куба на шаге решения ---------- */

.cube-visual {
  position: relative;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* ---------- Изометрический SVG-превью в углу ---------- */
/* На десктопе обёртка «прозрачна» — .cube-iso остаётся абсолютным
   в углу карточки, кнопки-стрелки скрыты. На мобиле обёртка
   превращается во flex-row со стрелками по бокам превью. */
.cube-iso-wrap { display: contents; }
.cube-iso-nav { display: none; }
.cube-iso {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 5;
  padding: 8px 10px 6px;
  background: rgba(11, 11, 13, 0.72);
  border: 1px solid var(--border);
  border-radius: 10px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.cube-iso__title {
  font-size: 10px;
  color: var(--fg-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 4px;
}
.cube-iso__svg {
  display: block;
}
.iso-cell {
  stroke: rgba(0, 0, 0, 0.55);
  stroke-width: 0.5;
  stroke-linejoin: miter;
}
.iso-cell--hot {
  stroke: #ffffff;
  stroke-width: 1.4;
  filter: drop-shadow(0 0 2.5px rgba(106, 165, 255, 0.95));
}
.iso-cell--dim {
  opacity: 0.55;
}
/* Длинные стрелки вдоль движущихся полос на iso-кубе. Линия + полигон-голова
   с явной формой треугольника. Контрастный белый stroke с тёмной тенью —
   читается на любой грани, размер головы масштабируется с размером ячейки. */
.iso-strip {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.6;
  stroke-linecap: butt;
  pointer-events: none;
  filter: drop-shadow(0 0 0.9px var(--accent)) drop-shadow(0 0 0.9px var(--accent));
}
.iso-strip-head {
  fill: #ffffff;
  stroke: #ff2a2a;
  stroke-width: 1.4;
  stroke-linejoin: round;
  pointer-events: none;
  filter: drop-shadow(0 0 0.9px var(--accent)) drop-shadow(0 0 0.9px var(--accent));
}
/* Временно скрыты: возможно вернём позже. */
.iso-strip-inner { display: none; }
/* Тонкая красная полоска ВНУТРИ белой стрелки (по линии и сквозь голову),
   добавляет контраста, не перекрывая белую обводку. */
.iso-strip-inner {
  fill: none;
  stroke: #ff2a2a;
  stroke-width: 0.9;
  stroke-linecap: butt;
  pointer-events: none;
}
.iso-strip-inner-line {
  stroke-width: 0.6;
}
/* Стрелки направления поверх стикеров iso-куба. Повёрнуты так,
   чтобы "ехать" вдоль граней куба в направлении движения полосы. */
.iso-arrow {
  pointer-events: none;
  filter: drop-shadow(0 0.6px 1.1px rgba(0,0,0,0.85));
}
.iso-arrow polygon {
  fill: #ffffff;
  stroke: #0b0e1a;
  stroke-width: 0.45;
  stroke-linejoin: round;
  stroke-linecap: round;
}
/* На телефонах изо-превью переезжает из угла (где оно перекрыло бы
   развёртку) в обычный поток — отдельным блоком над развёрткой.
   Так его всегда видно и оно не борется за место с гранями куба. */
@media (max-width: 600px) {
  .cube-iso {
    position: static;            /* выходит из absolute → встраивается в flex-колонку */
    margin: 0;
    padding: 6px 10px 4px;
  }
  .cube-iso__title { font-size: 9px; margin-bottom: 2px; }

  /* Обёртка превью становится строкой: [‹] [iso] [›]. */
  .cube-iso-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    align-self: center;
    width: 100%;
    margin-bottom: 4px;
  }
  .cube-iso-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 64px;
    padding: 0;
    font-size: 28px;
    line-height: 1;
    color: var(--accent-2);
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }
  .cube-iso-nav:active { background: #23262d; }
  .cube-iso-nav:disabled { opacity: 0.35; cursor: default; }
}
.cube-visual__caption {
  color: var(--fg-mute);
  font-size: 13px;
  text-align: center;
  max-width: 640px;
  line-height: 1.45;
}
.cube-visual__caption b {
  color: var(--fg);
}

/* Компактная развёртка для страницы решения */
.net--small {
  gap: 10px;
}
.net--small .face {
  padding: 3px;
  gap: 1px;
  background: rgba(0,0,0,0.45);
}
.net--small .face__label {
  top: -18px;
  font-size: 11px;
}
.net--small .sticker {
  --cell-size: 17px;
  border-radius: 2px;
  cursor: default;
  transition: none;
}
.net--small .sticker:hover { transform: none; }

/* Размеры стикера под N. Дефолт (.sticker) = 26px рассчитан на 7×7.
   Маленькие кубы — крупнее клетки (грань должна быть видна целиком, кликов мало);
   большие — мельче, иначе развёртка не помещается на экран.
   Селектор по классу .net--n<N> надёжнее, чем по inline-style. */
.net--n2 .sticker { --cell-size: 64px; }
.net--small.net--n2 .sticker { --cell-size: 42px; }

/* Все режимы ввода: воздух сверху, чтобы U-лейбл не прижимался к
   описанию шага из карточки выше (заметнее всего на 4×4 и больше). */
.net:not(.net--small) { padding-top: 28px; }

/* Узкие грани (2×2, 3×3): RU-лейбл («L — Лево (оранжевый, 3×3)»)
   переносится на 2 строки и залезал на грань. Даём больше row-gap и
   поднимаем лейбл выше; max-width не даёт ему вылезать вправо в
   соседнюю грань. Только в режиме ввода (в компактном решении лейблы
   уже сокращены до одной буквы). */
.net.net--n2:not(.net--small),
.net.net--n3:not(.net--small) {
  padding-top: 38px;
  row-gap: 40px;
}
.net.net--n2:not(.net--small) .face__label,
.net.net--n3:not(.net--small) .face__label {
  top: -34px;
  line-height: 1.25;
  max-width: 180px;
}
.net--n3 .sticker { --cell-size: 52px; }
.net--small.net--n3 .sticker { --cell-size: 34px; }
.net--n4 .sticker { --cell-size: 42px; }
.net--small.net--n4 .sticker { --cell-size: 28px; }
.net--n5 .sticker { --cell-size: 36px; }
.net--small.net--n5 .sticker { --cell-size: 24px; }
.net--n6 .sticker { --cell-size: 30px; }
.net--small.net--n6 .sticker { --cell-size: 20px; }
/* n=7 — берёт дефолт 26 / 17 px из .sticker и .net--small .sticker. */
.net--n8 .sticker { --cell-size: 23px; }
.net--small.net--n8 .sticker { --cell-size: 15px; }
.net--n9 .sticker { --cell-size: 21px; }
.net--small.net--n9 .sticker { --cell-size: 14px; }
.net--n10 .sticker { --cell-size: 19px; }
.net--small.net--n10 .sticker { --cell-size: 13px; }
.net--n11 .sticker { --cell-size: 17px; }
.net--small.net--n11 .sticker { --cell-size: 12px; }
.net--n12 .sticker { --cell-size: 16px; }
.net--small.net--n12 .sticker { --cell-size: 11px; }
.net--n13 .sticker { --cell-size: 15px; }
.net--small.net--n13 .sticker { --cell-size: 10px; }
.net--n14 .sticker { --cell-size: 14px; }
.net--small.net--n14 .sticker { --cell-size: 9px; }
.net--n15 .sticker { --cell-size: 13px; }
.net--small.net--n15 .sticker { --cell-size: 9px; }

/* Стикеры, которых касается текущий ход */
.sticker--hot {
  outline: 2px solid #ffffff;
  outline-offset: -1px;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.35),
              0 0 10px 2px rgba(107,255,225,0.85);
  z-index: 2;
  position: relative;
}
/* Остальные стикеры — притушены, чтобы подсветка «читалась» */
.sticker--dim {
  opacity: 0.22;
  filter: saturate(0.6);
}

/* Подсветка самой вращающейся грани */
.face--moving {
  box-shadow: 0 0 0 2px var(--accent), 0 0 14px rgba(107,255,225,0.55);
}

/* Направляющие стрелки: маленький треугольник поверх стикера внешнего слоя */
.sticker-arrow {
  position: absolute;
  inset: 1px;
  pointer-events: none;
  z-index: 3;
  overflow: visible;
  filter: drop-shadow(0 1px 1.5px rgba(0,0,0,0.85));
}
.sticker-arrow polygon {
  fill: #ffffff;
  stroke: #0b0e1a;
  stroke-width: 1.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* Большая круговая стрелка по центру вращающейся грани */
.face__spin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 82%;
  height: 82%;
  pointer-events: none;
  z-index: 4;
  opacity: 0.92;
  filter: drop-shadow(0 0 6px rgba(107,255,225,0.9))
          drop-shadow(0 0 2px rgba(0,0,0,0.95));
}
.face__spin path {
  fill: none;
  stroke: #ffffff;
  stroke-width: 8;
  stroke-linecap: round;
}
/* Стрелочная голова в SVG-marker. fill через стрелочный path внутри marker. */
.face__spin marker path {
  fill: #ffffff;
  stroke: none;
}
/* Маркеры наследуют толщину stroke от пути; чтобы тень была хорошей,
   кладём drop-shadow на сам SVG (он уже задан в .face__spin сверху). */
.face__spin polygon {
  fill: #ffffff;
  stroke: #0b0e1a;
  stroke-width: 1.5;
  stroke-linejoin: round;
}
/* Стрелочные головы — это <polygon> внутри <marker>. У marker своя
   user-system (10×10), и обводка 1.5 там получается непропорционально
   толстой. Поэтому убираем у них stroke. */
.face__spin marker polygon {
  fill: #ffffff;
  stroke: none;
}
.face__spin text {
  fill: #ffffff;
  stroke: #0b0e1a;
  stroke-width: 0.6;
  font-size: 24px;
  font-weight: 800;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  paint-order: stroke;
}

.cube-visual__done {
  color: var(--accent-2);
  font-size: 15px;
  font-weight: 500;
}

.step__move {
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 38px;
  color: var(--accent-2);
  margin: 0 0 10px;
}
.step__desc {
  font-size: 15px;
  color: var(--fg);
  margin: 4px 0 12px;
}
.step__note {
  font-size: 13px;
  color: var(--fg-mute);
}

.nav-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}
.move-counter {
  font-family: "SF Mono", ui-monospace, monospace;
  color: var(--fg-mute);
  font-size: 14px;
}

/* ============================================================
   Распознавание по фото (Phase 3 MVP, 3×3): сетка из 6 слотов.
   ============================================================ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.photo-slot {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 2px dashed var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  cursor: pointer;
  background: var(--bg-card-2);
  color: var(--fg-mute);
  transition: border-color 0.12s, background 0.12s, color 0.12s;
  text-align: center;
}
.photo-slot:hover { border-color: var(--accent); color: var(--fg); }
.photo-slot__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.25;
}
.photo-slot__placeholder {
  font-size: 12px;
  color: var(--fg-mute);
}
/* Превью загруженного фото — заливаем как фон, label поверх с тенью. */
.photo-slot--filled {
  background-image: var(--preview);
  background-size: cover;
  background-position: center;
  border-style: solid;
  border-color: var(--accent-2);
}
.photo-slot--filled .photo-slot__label {
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  text-shadow: 0 1px 1px rgba(0,0,0,0.6);
}
.photo-slot--filled .photo-slot__placeholder { display: none; }
.photo-slot--loading { opacity: 0.6; }

/* Стикер, помеченный как «спорный» после распознавания — пульсирующая
   обводка тёплого цвета привлекает внимание; пропадает при ручном клике. */
.sticker--uncertain {
  outline: 2px dashed #ffc857;
  outline-offset: -1px;
  animation: stickerUncertainPulse 1.6s ease-in-out infinite;
}
@keyframes stickerUncertainPulse {
  0%, 100% { outline-color: #ffc857; box-shadow: 0 0 0 0 rgba(255, 200, 87, 0.0); }
  50%      { outline-color: #ffe089; box-shadow: 0 0 0 4px rgba(255, 200, 87, 0.35); }
}

/* Заметный warning-баннер для блока распознавания. */
.validation.warn {
  display: block;
  background: rgba(255, 200, 87, 0.10);
  border: 1px solid rgba(255, 200, 87, 0.55);
  color: #ffc857;
  padding: 12px 14px;
  border-radius: 10px;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.45;
}
.validation.warn b { color: #ffe089; }

/* ============================================================
   Site footer: «Made by xnikitv» + защищённая контактная кнопка.
   Тон — приглушённый, чтобы не отвлекать от основного UI.
   ============================================================ */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 40px;
  padding: 18px 4px 8px;
  border-top: 1px solid var(--border);
  color: var(--fg-mute);
  font-size: 13px;
}
.site-footer__credit { white-space: nowrap; }

.site-footer__privacy {
  color: var(--fg-mute);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  font: inherit;
  transition: color 0.12s;
}
.site-footer__privacy:hover { color: var(--fg); }

/* Кнопка «Contact / Business inquiries» — outline pill в общем тоне футера. */
.site-footer__contact {
  font: inherit;
  color: var(--fg-mute);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.site-footer__contact:hover {
  color: var(--fg);
  background: var(--bg-card-2);
}

/* После раскрытия: email + копи-кнопка в одной группе. */
.site-footer__contact-revealed {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.site-footer__email {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.12s;
}
.site-footer__email:hover { border-bottom-color: var(--accent); }
.site-footer__copy {
  font: inherit;
  font-size: 12px;
  color: var(--fg-mute);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.site-footer__copy:hover { color: var(--fg); background: var(--bg-card-2); }
.site-footer__copy--done { color: var(--accent-2); border-color: var(--accent-2); }

/* Мобила: две части — друг под другом, чтобы длинный email не ломал строку. */
@media (max-width: 640px) {
  .site-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    text-align: center;
    margin-top: 28px;
    padding: 14px 4px 4px;
  }
  .site-footer__contact-revealed { justify-content: center; }
  .site-footer__credit { order: 1; }
  #contact-btn, .site-footer__contact-revealed { order: 2; }
  .site-footer__privacy { order: 3; }
}

/* ============================================================
   Mobile / Tablet (адаптив)
   ------------------------------------------------------------
   Брейкпоинты:
     ≤960px — планшет / альбомный телефон
     ≤640px — телефон
     ≤420px — узкий телефон
   ============================================================ */

/* Планшет: ужимаем поля контейнера и шапки. */
@media (max-width: 960px) {
  .container { padding: 18px 18px 60px; }
  .topbar    { padding: 14px 18px; gap: 10px; }
  .topbar h1 { font-size: 19px; }
  .card      { padding: 18px 18px; border-radius: 12px; }
}

/* Телефон. */
@media (max-width: 640px) {
  html, body { font-size: 14px; }
  .container { padding: 12px 12px 56px; }

  /* Шапка: компактные поля, тонкий низ. */
  .topbar {
    padding: 9px 12px;
    gap: 8px;
  }
  .topbar__main {
    align-items: center;
    gap: 10px;
  }
  .topbar h1 { font-size: 17px; flex-shrink: 0; }
  .topbar__sub { display: none; }              /* подзаголовок съедает строку */
  .topbar__actions {
    margin-left: auto;
    gap: 8px;
  }

  /* 14 чипов размеров не помещаются — делаем горизонтальный скролл
     с инерцией (свайп пальцем). */
  .topbar__nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .topbar__nav::-webkit-scrollbar { display: none; }
  .size-chip { flex-shrink: 0; padding: 5px 11px; font-size: 12px; }

  .topbar__back {
    /* На мобиле полная подпись «← Ввести другое состояние» длинная;
       заменяем её на стрелку через CSS и data-атрибут не нужен —
       просто font-size:0 + ::before. */
    font-size: 0;
    padding: 6px 10px;
  }
  .topbar__back::before {
    content: "←";
    font-size: 16px;
    line-height: 1;
    color: var(--accent);
  }
  .lang-chip { padding: 5px 9px; font-size: 11px; }

  /* Карточки: меньше отступы, более тесная типографика. */
  .card { padding: 14px 14px; margin-bottom: 14px; }
  .card h2 { font-size: 16px; }

  /* Палитра наверху, развёртка ниже (workspace стек уже включён @900px,
     но палитру делаем не «sticky»: на мобиле она съедала бы вьюпорт). */
  .palette { position: static; }
  .palette__colors {
    grid-template-columns: repeat(7, 1fr);     /* все 6 цветов + ластик в один ряд */
    gap: 6px;
    max-width: 360px;
  }
  .palette__btn {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 38px;
    border-radius: 7px;
  }
  #counts { grid-template-columns: 1fr 1fr 1fr; font-size: 12px; }
  .actions .btn { padding: 11px 14px; font-size: 13px; }

  /* Развёртка: даём горизонтально скроллить, иначе крупные кубы (12+)
     обрезаются. Сама сетка остаётся как была — 4 столбца граней. */
  .net {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    gap: 12px;
    /* В .cube-visual стоит align-items:center (flex column), из-за чего
       сетка шире экрана центрируется и обрезается с обоих краёв без
       возможности доскроллить. Растягиваем .net на всю ширину родителя
       и снимаем у самого .cube-visual боковые отступы, тогда работает
       внутренний горизонтальный скролл. */
    align-self: stretch;
    width: 100%;
    max-width: 100%;
  }
  .cube-visual {
    padding-left: 0;
    padding-right: 0;
    align-items: stretch;
  }
  .cube-visual > *:not(.net) { align-self: center; }
  .net--small { gap: 8px; }

  /* Лейблы граней («L — Лево (оранжевый, 7×7)») шире самой грани и
     наезжают на соседнюю — на мобиле скрываем полный текст и показываем
     одну букву из data-face. */
  .face__label {
    font-size: 0;       /* прячем оригинальный текст */
    line-height: 1;
    top: -16px;
  }
  .face__label::before {
    content: attr(data-face);
    font-size: 11px;
    font-weight: 600;
    color: var(--fg-mute);
    letter-spacing: 0.04em;
  }

  /* Поджимаем большую круговую стрелку поворота (face__spin), чтобы её
     glow не вылезал на соседние грани при маленьких N. */
  .face__spin {
    width: 78%;
    height: 78%;
    filter: drop-shadow(0 0 3px rgba(107,255,225,0.85))
            drop-shadow(0 0 1.5px rgba(0,0,0,0.95));
  }
  .face__spin path { stroke-width: 9; }
  .face__spin text { font-size: 26px; }

  /* Кнопки навигации между шагами решения — прибиваем к низу экрана,
     чтобы не приходилось скроллить за каждым шагом. На узком экране
     кладём 2×2; в landscape сами по себе перейдут в одну строку,
     потому что высота меньше. */
  .nav-buttons {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 0;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(11, 11, 13, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
  }
  .nav-buttons .btn { padding: 11px 8px; font-size: 13px; }
  /* Контент не должен прятаться под прибитой панелью. */
  .container { padding-bottom: 130px; }
  /* В landscape кнопок мало по высоте — кладём все 4 в строку, экономим
     ещё больше вертикального пространства. */
  @media (orientation: landscape) and (max-height: 500px) {
    .nav-buttons { grid-template-columns: repeat(4, 1fr); }
    .container { padding-bottom: 78px; }
  }

  .solution-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .move-counter { font-size: 13px; }

  /* Палитра кнопок-действий: компактный шрифт, убираем длинные надписи. */
  #btn-scramble-test::before { content: "🎲 "; }   /* визуальный якорь */
}

/* Узкий телефон: ещё чуть-чуть. */
@media (max-width: 420px) {
  .topbar h1 { font-size: 16px; }
  .size-chip { padding: 5px 9px; font-size: 11px; }

  /* «Большие» кубы на самом узком экране всё равно лучше уменьшить —
     иначе скролл слишком длинный. */
  .net--n9  .sticker { --cell-size: 17px; }
  .net--n10 .sticker { --cell-size: 15px; }
  .net--n11 .sticker { --cell-size: 14px; }
  .net--n12 .sticker { --cell-size: 13px; }
  .net--n13 .sticker { --cell-size: 12px; }
  .net--n14 .sticker { --cell-size: 11px; }
  .net--n15 .sticker { --cell-size: 10px; }
}

/* Уважаем «уменьшить движение» в системных настройках. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Лендинг ---------- */

.topbar--landing {
  border-bottom: 1px solid var(--border);
}

.landing {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 32px 80px;
}
.landing__hero {
  text-align: center;
  margin-bottom: 56px;
}
.landing__title {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.landing__title-accent {
  color: var(--accent);
}
.landing__subtitle {
  margin: 18px auto 0;
  max-width: 560px;
  color: var(--fg-mute);
  font-size: 16px;
  line-height: 1.55;
}

.landing__sizes-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}
.landing__sizes-hint {
  margin: 0 0 20px;
  color: var(--fg-mute);
  font-size: 14px;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.landing-size {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--fg);
  text-decoration: none;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.12s, border-color 0.12s, transform 0.08s;
}
.landing-size:hover {
  background: var(--bg-card-2);
  border-color: var(--accent);
  color: var(--accent);
}
.landing-size:active { transform: translateY(1px); }
.landing-size__label { display: inline-block; }

@media (max-width: 600px) {
  .landing { padding: 36px 18px 60px; }
  .landing__hero { margin-bottom: 36px; }
  .landing-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
  .landing-size { height: 78px; font-size: 18px; }
}

/* Карточка-свитч на классический ↔ futurist (внизу лендинга) */
.classic-switch-card {
  max-width: 1100px;
  margin: 48px auto 0;
  padding: 20px 26px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.classic-switch-card__text { font-size: 14px; color: var(--fg); }
.classic-switch-card__title { display: block; font-weight: 500; margin-bottom: 4px; }
.classic-switch-card__hint { color: var(--fg-mute); font-size: 12px; }
.classic-switch-card__cta {
  padding: 10px 16px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.classic-switch-card__cta:hover {
  background: var(--accent);
  color: var(--accent-ink);
}
@media (max-width: 600px) {
  .classic-switch-card { margin: 32px 18px 0; }
}

/* ---------- Solution-ready (промежуточный экран после solve) ---------- */

.ready-card {
  text-align: center;
  padding: 36px 28px;
}
.ready-card__title {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ready-card__sub {
  margin: 0 auto 28px;
  max-width: 520px;
  color: var(--fg);
  font-size: 15px;
  line-height: 1.5;
}
.ready-card__sub:empty { display: none; }

.ready-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 520px;
  margin: 0 auto 24px;
}
.ready-stat {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  text-align: center;
}
.ready-stat__label {
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.ready-stat__value {
  font-size: 20px;
  color: var(--fg);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* CTA «Открыть решение» с автозаливкой за 10с */
.ready-cta {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 8px;
  padding: 16px 56px 16px 22px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  overflow: hidden;
  border: none;
  cursor: pointer;
}
.ready-cta__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: rgba(0, 0, 0, 0.28);
  pointer-events: none;
  transition: width 0.12s linear;
}
.ready-cta__label,
.ready-cta__timer {
  position: relative;
  z-index: 1;
}
.ready-cta__timer {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}
.ready-autohint {
  text-align: center;
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
  margin-bottom: 0;
}

/* Слот под рекламу — пунктирная карточка с подписью SPONSORED */
.ad-slot {
  text-align: center;
  padding: 32px 24px;
  border-style: dashed;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.ad-slot__label {
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ad-slot__body {
  color: var(--fg-mute);
  font-size: 13px;
}

/* Рекламный слот внутри оверлея solving-screen */
.solving-screen__ad {
  margin-top: 24px;
  width: 100%;
  max-width: 520px;
  min-height: 110px;
  padding: 22px 18px;
}

@media (max-width: 600px) {
  .ready-card { padding: 28px 18px; }
  .ready-card__title { font-size: 26px; }
  .ready-stats { grid-template-columns: 1fr 1fr; }
  .ready-stats .ready-stat:last-child { grid-column: 1 / -1; }
  .ready-cta { padding: 14px 50px 14px 18px; font-size: 14px; }
  .ready-cta__timer { right: 14px; font-size: 12px; }
  .ad-slot { padding: 24px 16px; min-height: 110px; }
}

