/* Ludefy — витрина в языке бренда «МОДЫ ALIK v2»: светлая студия, глянцевые 3D-предметы, Unbounded + Golos.
   Шрифты свои (OFL), с нашего сервера — CSP 'self', IP посетителя третьим лицам не уходит. */
@font-face { font-family: "Unbounded"; src: url("fonts/unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Golos"; src: url("fonts/golos.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --blue: #183BBF;  /* кобальт */
  --red: #F04425;   /* красно-оранжевый */
  --ink: #10163F;   /* текст */
  --muted: #4B5068; /* подстрока */
  --bg: #F3F4F8;    /* светлая студия */
  --white: #FFFFFF; /* текст на синем и красном */
  --card: #FFFFFF;  /* поверхности: карточки, поля, кнопка ghost */
  --card-2: #F7F8FB;
  --hl: #FFFFFF;    /* блик в радиальных подложках */
  --bg-edge: #ECEEF4;
  --top: rgba(243, 244, 248, .86);
  --line: #E1E3EC;
  --soft: #FFF1EC;
  --hover: #E4E7F0;
  --accent: linear-gradient(90deg, var(--red) 0%, #FF7A3C 100%);
  --shadow: 0 8px 24px rgba(16, 22, 63, .08), 0 1px 2px rgba(16, 22, 63, .06);
  --radius: 28px;
  color-scheme: light;
}
/* тёмная тема (слово владельца 23.10): data-theme ставит pref.js до отрисовки — выбор посетителя или тема системы */
:root[data-theme="dark"] {
  --blue: #4362FF;
  --red: #FF5A3C;
  --ink: #EDEFFA;
  --muted: #A4A9C4;
  --bg: #0C0F1F;
  --card: #161A31;
  --card-2: #12162B;
  --hl: #1F2546;
  --bg-edge: #080A16;
  --top: rgba(12, 15, 31, .84);
  --line: #262B4A;
  --soft: #3A1D19;
  --hover: #262C4D;
  --shadow: 0 10px 28px rgba(0, 0, 0, .38), 0 1px 2px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: "Golos", system-ui, sans-serif; font-weight: 500; line-height: 1.45;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* шапка */
.top { position: sticky; top: 0; z-index: 10; background: var(--top); backdrop-filter: blur(12px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { font-family: "Unbounded", sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -.02em; text-decoration: none; color: var(--blue); }
.logo b { color: var(--red); font-weight: 800; }
.nav { display: flex; gap: 26px; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); transition: color .15s; }
.nav a:hover { color: var(--ink); }

/* заголовки: первая строка тёмная, вторая — градиент красного */
.h { font-family: "Unbounded", sans-serif; font-weight: 800; line-height: 1; letter-spacing: -.025em; text-transform: uppercase; }
.h .acc { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { font-weight: 700; color: var(--red); font-size: 15px; margin-bottom: 14px; }
.sub { color: var(--muted); font-size: 19px; max-width: 34ch; }

/* метки */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 999px;
  background: var(--card); color: var(--ink); font-weight: 600; font-size: 14px; box-shadow: var(--shadow); }
.chip.b { background: var(--blue); color: var(--white); font-family: "Unbounded", sans-serif; font-weight: 800; }
.chip.r { background: var(--red); color: var(--white); font-family: "Unbounded", sans-serif; font-weight: 800; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 28px; border-radius: 999px;
  font-family: "Unbounded", sans-serif; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .01em;
  text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:active { transform: scale(.97); }
.btn.main { background: var(--blue); color: var(--white); box-shadow: 0 10px 28px rgba(24, 59, 191, .28); }
.btn.main:hover { box-shadow: 0 14px 34px rgba(24, 59, 191, .36); }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

/* первый экран */
.hero { position: relative; overflow: hidden;
  background: radial-gradient(ellipse 60% 80% at 74% 46%, var(--hl) 0%, var(--bg) 62%, var(--bg-edge) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; min-height: 600px; gap: 24px; padding-block: 48px; }
.hero .h { font-size: clamp(40px, 4.8vw, 68px); } /* 78 px: «ОЖИДАНИЯ» на 1440 переносила «Я» отдельной строкой */
.hero .sub { margin-top: 22px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .obj { animation: float 6s ease-in-out infinite; }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(-1.5deg); } }

/* разделы */
.sec { padding-block: 88px; }
.sec .h { font-size: clamp(30px, 4vw, 48px); margin-bottom: 40px; }

/* категории */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cat { position: relative; display: grid; grid-template-columns: 1fr 44%; align-items: center; gap: 12px; min-height: 280px;
  padding: 36px; border-radius: var(--radius); text-decoration: none;
  background: radial-gradient(ellipse 60% 90% at 78% 50%, var(--hl) 0%, var(--card-2) 70%); box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease; }
.cat:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(16, 22, 63, .12); }
.cat.off { opacity: .72; }
.cat.off:hover { transform: none; box-shadow: var(--shadow); }
.cat .chip.r { margin-top: 14px; height: 32px; padding: 0 14px; font-size: 12px; }
.cat:hover .obj { transform: translateY(-6px) rotate(-3deg) scale(1.03); }
.cat .h { font-size: clamp(24px, 2.6vw, 34px); margin: 0; }
/* колонка сетки не шире своей доли: иначе длинное слово распирает карточку и страницу на телефоне */
.cat > div, .hero .wrap > div, .safe > div { min-width: 0; }
.h { overflow-wrap: break-word; hyphens: manual; }
.cat p { color: var(--muted); margin-top: 12px; font-size: 16px; }
.cat .obj { transition: transform .3s ease; }

/* как купить */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { padding: 32px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.step::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 52px; height: 52px;
  border-radius: 16px; background: var(--red); color: var(--white); font-family: "Unbounded", sans-serif; font-weight: 800; font-size: 22px;
  box-shadow: 0 10px 22px rgba(240, 68, 37, .3); }
.step:nth-child(2)::before { background: var(--blue); box-shadow: 0 10px 22px rgba(24, 59, 191, .3); }
.step b { display: block; font-family: "Unbounded", sans-serif; font-weight: 800; text-transform: uppercase; font-size: 18px; margin-top: 22px; }
.step p { color: var(--muted); margin-top: 8px; }

/* гарантия */
.safe { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 32px; padding: 48px; border-radius: 36px;
  background: radial-gradient(ellipse 60% 90% at 25% 50%, var(--hl) 0%, var(--card-2) 70%); box-shadow: var(--shadow); }
/* min(…, 100%): голое max-width: 420px перебивало img { max-width: 100% } и распирало страницу на телефоне */
.safe .obj { max-width: min(420px, 100%); margin-inline: auto; }
.safe .h { margin-bottom: 18px; }
.safe ul { list-style: none; display: grid; gap: 12px; margin-top: 18px; }
.safe li { padding-left: 30px; position: relative; color: var(--muted); }
.safe li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 5px; background: var(--red); }

/* вопросы */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 22px 26px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-family: "Unbounded", sans-serif; color: var(--red); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin-top: 12px; }

/* подвал */
.foot { padding-block: 48px 64px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding-top: 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* баннер cookies */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; display: none; max-width: 640px; margin-inline: auto;
  padding: 20px 22px; border-radius: 24px; background: var(--card); box-shadow: 0 18px 50px rgba(16, 22, 63, .18); }
.cookie.on { display: block; animation: up .3s ease both; }
.cookie p { font-size: 14px; color: var(--muted); }
.cookie .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cookie .btn { height: 44px; padding: 0 20px; font-size: 13px; }
@keyframes up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* текстовые страницы */
.doc { max-width: 820px; padding-block: 56px 80px; }
.doc .h { font-size: clamp(28px, 4vw, 44px); margin-bottom: 28px; }
.doc h2 { font-family: "Unbounded", sans-serif; font-weight: 800; font-size: 20px; text-transform: uppercase; margin: 32px 0 10px; }
.doc p, .doc li { color: var(--muted); margin-top: 10px; }
.doc ul { padding-left: 22px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* каталог */
.shop { padding-block: 48px 80px; }
.shop .h { font-size: clamp(30px, 4.4vw, 52px); }
.shop .sub { margin-top: 16px; }
.find { margin-top: 28px; }
.find input { width: 100%; height: 60px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--card); color: var(--ink);
  font: 600 17px "Golos", system-ui, sans-serif; box-shadow: var(--shadow); outline: 2px solid transparent; transition: outline-color .15s; }
.find input:focus { outline-color: var(--blue); }
.find .chips { margin-top: 16px; }
.find .chips.sm { margin-top: 10px; gap: 8px; }
.find .chips.sm .chip { height: 32px; padding: 0 14px; font-size: 13px; }
button.chip { border: 0; cursor: pointer; font-family: inherit; transition: background .15s, color .15s; }
button.chip.on, a.chip.on { background: var(--ink); color: var(--bg); }
a.chip { text-decoration: none; transition: background .15s, color .15s; }
a.chip:hover { background: var(--hover); }
.shop .more { margin-top: 26px; text-align: center; }
.count { margin-top: 26px; color: var(--muted); font-weight: 600; }
.count span { font-variant-numeric: tabular-nums; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 14px; }
.item { position: relative; display: grid; gap: 4px; padding: 18px 18px 20px; border-radius: 24px; text-decoration: none;
  background: radial-gradient(ellipse 80% 70% at 70% 20%, var(--hl) 0%, var(--card-2) 75%); box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease; min-width: 0; }
.item[hidden] { display: none; }
.item:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(16, 22, 63, .12); }
.item:hover .gc { transform: rotate(-2deg) translateY(-2px); }
.item .ib { margin-top: 6px; font-weight: 700; color: var(--ink); font-size: 15px; }
.item .ir { color: var(--muted); font-size: 14px; }

/* лицо подарочной карты: цвет и знак бренда, флаг страны, номинал (визуальные ассоциации, PLAN_SITE) */
.gc { position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 1.586;
  padding: 14px 16px; border-radius: 16px; overflow: hidden; color: #fff; background: var(--g);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 12px 26px -10px rgba(16, 22, 63, .45);
  transition: transform .25s ease; }
.gc::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, 0) 38%),
              radial-gradient(circle at 110% 120%, rgba(255, 255, 255, .16) 0 34%, transparent 35%); }
.gc .gl { width: 40px; height: 40px; }
.gc .gi { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .18);
  font: 800 16px "Unbounded", sans-serif; }
.gc .gf { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%;
  box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(0, 0, 0, .25); }
.gc .gn { font: 800 30px/1 "Unbounded", sans-serif; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .18); overflow-wrap: anywhere; }
.gc .gn small { margin-left: .28em; font-size: .52em; letter-spacing: 0; opacity: .92; }
.gc.big { width: min(440px, 100%); margin-inline: auto; padding: 28px 30px; border-radius: 28px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 60px -20px rgba(16, 22, 63, .5);
  animation: float 6s ease-in-out infinite; }
.gc.big .gl { width: 64px; height: 64px; }
.gc.big .gi { width: 64px; height: 64px; font-size: 24px; border-radius: 18px; }
.gc.big .gf { top: 24px; right: 24px; width: 48px; height: 48px; box-shadow: 0 0 0 3px #fff, 0 6px 14px rgba(0, 0, 0, .25); }
.gc.big .gn { font-size: clamp(40px, 6vw, 60px); }
/* игра Steam: обложка из Steam целиком на лице карточки; без обложки — знак Steam и название */
.gc.gm { padding: 0; background: #1b2838; }
.gc.gm img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gc.gm.big { padding: 0; }
.gc .gn.gt { font-size: 17px; line-height: 1.15; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden; }
.gc.big .gn.gt { font-size: clamp(22px, 3vw, 30px); }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-top: 32px; }
.bgrid .gc { text-decoration: none; }
.bgrid .gc:hover { transform: rotate(-2deg) translateY(-3px); }
.bgrid .gc .gn { font-size: 18px; }
.brands { padding-bottom: 0; }
.chip .cf { width: 20px; height: 20px; margin-right: 8px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(16, 22, 63, .12); }
/* фирменные цвета брендов */
.b-playstation { --g: linear-gradient(135deg, #0B6FD8 0%, #00439C 100%); }
.b-xbox { --g: linear-gradient(135deg, #1DA11D 0%, #0B5A0B 100%); }
.b-apple { --g: linear-gradient(135deg, #2E9BFF 0%, #7B4DFF 55%, #E2468F 100%); }
.b-googleplay { --g: linear-gradient(135deg, #01A971 0%, #1A73E8 100%); }
.b-nintendo { --g: linear-gradient(135deg, #FF2D2D 0%, #B8000E 100%); }
.b-steam { --g: linear-gradient(135deg, #2A475E 0%, #171A21 100%); }
.b-roblox { --g: linear-gradient(135deg, #3A3D42 0%, #0E0F11 100%); }
.b-amazon { --g: linear-gradient(135deg, #2E3C4F 0%, #131A22 100%); }
.b-amazon .gn { color: #FFB13B; }
.b-battlenet { --g: linear-gradient(135deg, #1C9BFF 0%, #0B3E86 100%); }
.b-netflix { --g: linear-gradient(135deg, #2A2A2A 0%, #0A0A0A 100%); }
.b-netflix .gn { color: #FF3B44; }
.b-valorant { --g: linear-gradient(135deg, #FF5864 0%, #B3232F 100%); }
.b-riot { --g: linear-gradient(135deg, #0E9C9A 0%, #0A2E3A 100%); }
.b-twitch { --g: linear-gradient(135deg, #A970FF 0%, #5B2BB5 100%); }
.b-epic { --g: linear-gradient(135deg, #3B3B3B 0%, #121212 100%); }
.b-pubg { --g: linear-gradient(135deg, #F2A900 0%, #9A6B00 100%); }
.b-tinder { --g: linear-gradient(135deg, #FF6A5C 0%, #FD267A 100%); }
.b-spotify { --g: linear-gradient(135deg, #1ED760 0%, #128A3E 100%); }
.b-razer { --g: linear-gradient(135deg, #2B2B2B 0%, #0B0B0B 100%); }
.b-razer .gn { color: #44D62C; }
.b-ea { --g: linear-gradient(135deg, #FF4747 0%, #1A1A1A 100%); }
.b-ubisoft { --g: linear-gradient(135deg, #2F6BFF 0%, #0A1D5C 100%); }
.b-gen { --g: linear-gradient(135deg, var(--blue) 0%, #0B1E73 100%); }
.item .ip { margin-top: 10px; justify-self: start; padding: 8px 14px; border-radius: 999px; background: var(--blue); color: var(--white);
  font-family: "Unbounded", sans-serif; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.empty { margin-top: 30px; color: var(--muted); }

/* страница товара */
.prod { padding-block: 32px 80px; }
.back { display: inline-block; color: var(--muted); font-weight: 600; text-decoration: none; margin-bottom: 18px; }
.back:hover { color: var(--ink); }
.pgrid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; padding: 40px; border-radius: 36px;
  background: radial-gradient(ellipse 60% 90% at 22% 50%, var(--hl) 0%, var(--card-2) 70%); box-shadow: var(--shadow); }
.pgrid > div { min-width: 0; }
.pgrid .obj { max-width: min(380px, 100%); margin-inline: auto; animation: float 6s ease-in-out infinite; }
.pgrid .h { font-size: clamp(30px, 4vw, 52px); }
.pgrid .h.lw { font-size: clamp(22px, 3.4vw, 44px); }
.price { margin-top: 24px; font-family: "Unbounded", sans-serif; font-weight: 800; font-size: clamp(32px, 4vw, 44px); font-variant-numeric: tabular-nums; }
.buyf { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.buyf input { flex: 1 1 220px; height: 56px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--card);
  font: 600 16px "Golos", system-ui, sans-serif; box-shadow: var(--shadow); }
.soon { margin-top: 18px; display: inline-block; padding: 14px 20px; border-radius: 18px; background: var(--soft); color: var(--red); font-weight: 700; }
.note { margin-top: 16px; color: var(--muted); font-size: 15px; }
.ab { margin-top: 22px; padding: 28px 32px; border-radius: 28px; background: var(--card); box-shadow: var(--shadow); }
.ab h2 { font-family: "Unbounded", sans-serif; font-weight: 800; font-size: 18px; text-transform: uppercase; }
.ab ul, .ab ol { margin-top: 12px; padding-left: 22px; display: grid; gap: 6px; color: var(--muted); }

/* страница заказа */
.order .kicker { margin-bottom: 18px; }
.order .btn { margin-top: 8px; }
.code textarea { width: 100%; margin-top: 18px; padding: 20px 22px; border: 2px dashed var(--blue); border-radius: 22px; resize: none;
  background: var(--card); color: var(--ink); font: 800 clamp(18px, 3vw, 24px) "Unbounded", sans-serif; letter-spacing: .02em; }
.supf { display: grid; gap: 10px; margin-top: 14px; }
.supf textarea, .supf input { width: 100%; padding: 14px 18px; border: 0; border-radius: 18px; background: var(--bg); color: var(--ink);
  font: 500 16px "Golos", system-ui, sans-serif; }
.supf .btn { justify-self: start; }
.glist { margin-top: 22px; padding-left: 22px; display: grid; gap: 18px; }
.glist .kicker { margin-bottom: 0; }
.glist .code textarea { margin-top: 8px; }
.code.guard { margin-top: 18px; padding: 18px 22px; border: 2px dashed var(--red); border-radius: 22px; background: var(--card); }
.code.guard .kicker { margin-bottom: 6px; }
.code.guard b { display: block; font: 800 clamp(30px, 7vw, 44px) "Unbounded", sans-serif; letter-spacing: .18em; }
.code.guard .note { margin-top: 6px; }

/* аренда: срок радиокнопкой */
.rentf .dur { flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px;
  margin: 0 0 6px; padding: 0; border: 0; }
.rentf .dur legend { margin-bottom: 10px; font-weight: 700; }
.rentf .opt { position: relative; display: grid; gap: 4px; padding: 14px 18px; border: 2px solid transparent; border-radius: 18px;
  background: var(--card); box-shadow: var(--shadow); cursor: pointer; transition: border-color .15s, transform .15s; }
.rentf .opt:hover { transform: translateY(-1px); }
.rentf .opt input { position: absolute; flex: none; width: 1px; height: 1px; padding: 0; opacity: 0; }
.rentf .opt > span:first-of-type { font-weight: 700; }
.rentf .opt [data-rub] { color: var(--muted); font-variant-numeric: tabular-nums; }
.rentf .opt:has(input:checked) { border-color: var(--blue); }
.rentf .opt:has(input:checked) [data-rub] { color: var(--ink); }
.rentf .opt:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }

/* корзина: значок в шапке, кнопка на товаре, страница /cart/ */
.top .nav { margin-left: auto; }
.cartb { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  background: var(--card); color: var(--ink); box-shadow: var(--shadow); transition: transform .15s; }
.cartb:hover { transform: translateY(-1px); }
.cartb b { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--red); color: var(--white); font: 800 11px/20px "Unbounded", sans-serif; text-align: center; }
.cartb b[hidden] { display: none; }
.tools { display: flex; align-items: center; gap: 8px; }
.pb { display: grid; place-items: center; height: 44px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 999px;
  background: var(--card); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; font: 800 14px "Unbounded", sans-serif; }
.pb:hover { color: var(--blue); }
.pb.cur { display: flex; gap: 2px; padding: 4px; }
.pb.cur span { display: grid; place-items: center; width: 32px; height: 36px; border-radius: 999px; color: var(--muted); }
:root:not([data-cur="usd"]) .pb.cur .cr, [data-cur="usd"] .pb.cur .cu { background: var(--blue); color: var(--white); }
.pb .sun, [data-theme="dark"] .pb .moon { display: none; }
[data-theme="dark"] .pb .sun { display: block; }
.cartf { margin-top: 10px; }
.cartl { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.cl { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 14px 18px;
  border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.cl .gc { padding: 8px 10px; border-radius: 12px; }
.cl .gc .gl, .cl .gc .gi { width: 24px; height: 24px; font-size: 11px; border-radius: 7px; }
.cl .gc .gf { top: 7px; right: 7px; width: 18px; height: 18px; }
.cl .gc .gn { font-size: 15px; }
.ct { display: grid; gap: 4px; min-width: 0; }
.ct a { color: var(--ink); font-weight: 700; text-decoration: none; }
.ct a:hover { color: var(--blue); }
.ct span { color: var(--muted); font-size: 14px; }
.cq { display: flex; align-items: center; gap: 8px; }
.cq b { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.qb, .qx { width: 36px; height: 36px; border: 0; border-radius: 999px; background: var(--bg); color: var(--ink); cursor: pointer;
  font: 700 18px/1 "Golos", system-ui, sans-serif; }
.qb:hover { background: var(--hover); }
.qb:disabled { opacity: .35; cursor: default; }
.qx { margin-left: 6px; color: var(--muted); }
.qx:hover { color: var(--red); }
.cs { font-family: "Unbounded", sans-serif; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* узкий телефон: русская шапка с кнопкой языка была шире экрана на 5 px (390 px, 23.10) */
@media (max-width: 420px) {
  .top .wrap { gap: 6px; }
  .tools { gap: 4px; }
  .nav { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .hero .obj, .pgrid .obj, .gc.big { animation: none; } * { transition: none !important; } }

@media (max-width: 900px) {
  .nav a:not(:first-child) { display: none; } /* на телефоне в шапке остаётся только «Каталог» */
  .pgrid { grid-template-columns: 1fr; padding: 26px; gap: 10px; }
  .pgrid .obj { max-width: 220px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .item { padding: 14px; }
  .gc { padding: 10px 12px; border-radius: 12px; }
  .gc .gl, .gc .gi { width: 28px; height: 28px; font-size: 12px; border-radius: 8px; }
  .gc .gf { top: 9px; right: 9px; width: 22px; height: 22px; }
  .gc .gn { font-size: 20px; }
  .gc.big { padding: 20px 22px; }
  .bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
  .bgrid .gc .gn { font-size: 15px; }
  .gc.big .gl, .gc.big .gi { width: 48px; height: 48px; }
  .gc.big .gf { top: 18px; right: 18px; width: 38px; height: 38px; }
  .item .ip { font-size: 13px; padding: 7px 11px; }
  .ab { padding: 22px; }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-block: 24px 56px; }
  .hero .obj { order: -1; max-width: 340px; margin-inline: auto; }
  .cats, .steps { grid-template-columns: 1fr; }
  .cat { grid-template-columns: 1fr 30%; padding: 24px; min-height: 190px; }
  .cats .cat .h { font-size: 18px; } /* .cats — иначе .sec .h ниже перебивает размер */
  .hero .h { font-size: clamp(34px, 10vw, 44px); }
  .sec .h { font-size: clamp(26px, 8vw, 34px); }
  .safe { grid-template-columns: 1fr; padding: 30px; }
  .sec { padding-block: 64px; }
  .top .wrap { gap: 10px; }
  .logo { font-size: 18px; }
  .tools { gap: 6px; }
  .pb, .cartb { height: 38px; min-width: 38px; }
  .pb { padding: 0 9px; }
  .pb.cur { padding: 3px; }
  .pb.cur span { width: 26px; height: 32px; }
  .cl { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .cl .cq { grid-column: 2; }
  .cl .cs { grid-column: 2; justify-self: start; }
}
