/* Семь вариантов: палитра, шрифты и первый экран. Общая вёрстка в base.css. */

/* ===== A. Студия: светлый, спокойный ===== */
html[data-v="a"] { --accent: #5A3A2E; }
.hero-a { display: grid; }
.hero-a__main { display: block; overflow: hidden; }
.hero-a__main img { width: 100%; height: min(48vh, 125vw); height: min(48svh, 125vw); object-fit: cover; object-position: center 12%; }
.hero-a__side { display: none; }
.hero-a__txt { order: 2; display: grid; gap: 18px; justify-items: start; padding: 26px var(--pad) 0; }
html[data-v] .hero-a h1 { font-size: clamp(38px, 5vw, 96px); }
html[data-v] .hero-a h1 span { display: block; color: var(--accent); white-space: nowrap; }
.hero-a .btn { width: 100%; }
@media (min-width: 960px) {
  .hero-a { grid-template-columns: 1.3fr 1fr .72fr; height: calc(100vh - var(--hdr-h)); height: calc(100svh - var(--hdr-h)); min-height: 560px; max-height: 920px; }
  .hero-a__txt { order: 0; align-content: center; gap: 28px; padding: 0 var(--pad); }
  .hero-a .btn { width: auto; }
  .hero-a__main, .hero-a__side { display: block; min-height: 0; overflow: hidden; }
  .hero-a__main img, .hero-a__side img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; transition: transform 1.2s var(--ease); }
  .hero-a__side { border-left: 1px solid var(--line); }
}
@media (hover: hover) { .hero-a a:hover img { transform: scale(1.03); } }

/* ===== B. Драйв: тёмный, крупный заголовок ===== */
html[data-v="b"] {
  --bg: #121212; --fg: #F1EEE8; --muted: #9A958D; --line: #2C2A28; --surface: #1D1C1A;
  --btn-bg: #C24A2C; --btn-fg: #fff; --pink: #F3B6C8; --err: #FF8A7A;
  --font-h: 'Unbounded', sans-serif; --h-weight: 700; --h-case: uppercase; --h-track: -.01em;
  --r: 4px; --r-btn: 999px; --r-in: 8px;
}
html[data-v="b"] h1 { font-size: clamp(26px, 3.6vw, 48px); }
html[data-v="b"] h2 { font-size: clamp(19px, 2.3vw, 30px); }
html[data-v="b"] .logo img, html[data-v="e"] .logo img { filter: invert(1); }
html[data-v="b"] .hdr__cart b { background: var(--pink); color: #121212; }
/* при наведении кнопка темнеет, а не становится прозрачной: на тёмном фоне прозрачность съедала контраст текста */
@media (hover: hover) { html[data-v="b"] .btn:not([disabled]):hover { opacity: 1; background: #AB3F25; border-color: #AB3F25; } }
html[data-v="b"] .menu nav a { font-size: 17px; }
html[data-v="b"] .pdp h1 { font-size: clamp(22px, 2.4vw, 32px); }
html[data-v="b"] body[data-route="home"] .hdr, html[data-v="g"] body[data-route="home"] .hdr { position: absolute; left: 0; right: 0; background: transparent; border-color: transparent; color: #fff; }
.hero-b { height: 100vh; height: 100svh; min-height: 500px; overflow: hidden; background: #121212; }
.hero-b .hero__bg { object-position: 62% 20%; }
.hero-b::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 18, 18, .25) 0%, rgba(18, 18, 18, 0) 30%, rgba(18, 18, 18, .88) 78%); }
.hero-b__txt { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: 76px; display: grid; gap: 16px; justify-items: start; }
.hero-b .eyebrow { color: #cfc9c0; }
html[data-v] .hero-b h1 { font-size: clamp(40px, 11.5vw, 60px); line-height: .98; }
html[data-v] .hero-b h1 em { display: block; font-style: normal; color: var(--pink); }
.hero-b .btn { width: 100%; }
.ticker { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 46px; overflow: hidden; background: var(--pink); color: #121212; display: flex; align-items: center; }
.ticker__in { display: flex; width: max-content; animation: tick 36s linear infinite; }
.ticker span { padding: 0 20px; font: 700 13px/1 'Unbounded', sans-serif; text-transform: uppercase; white-space: nowrap; }
.ticker span::after { content: '•'; margin-left: 40px; }
@keyframes tick { to { transform: translateX(-25%); } }
@media (min-width: 960px) {
  .hero-b .hero__bg { left: 42%; width: 58%; object-position: center 18%; }
  .hero-b::after { background: linear-gradient(90deg, #121212 40%, rgba(18, 18, 18, 0) 66%); }
  .hero-b__txt { right: auto; max-width: 52%; bottom: 110px; gap: 24px; }
  .hero-b { min-height: 600px; }
  html[data-v] .hero-b h1 { font-size: clamp(52px, 6.4vw, 124px); }
  .hero-b .btn { width: auto; }
}

/* ===== C. Приложение: как приложение ===== */
html[data-v="c"] {
  --bg: #E9ECEF; --fg: #1B1D21; --muted: #596068; --line: #D3D8DE; --surface: #F6F6F6; --card: #fff;
  --btn-bg: #1B1D21; --btn-fg: #fff; --pink: #F7D7E1;
  --font-h: 'Onest', sans-serif; --font-b: 'Onest', sans-serif; --h-weight: 700; --h-track: -.01em;
  --r: 22px; --r-btn: 999px; --r-in: 14px;
}
html[data-v="c"] .hdr { border-color: transparent; grid-template-columns: auto 1fr auto; }
html[data-v="c"] .hdr .logo { justify-self: start; order: -1; }
html[data-v="c"] .hdr__nav { order: 0; justify-self: start; margin-left: 12px; }
html[data-v="c"] .hdr__burger { order: 3; margin: 0 -8px 0 0; }
html[data-v="c"] .hdr__right { order: 2; }
html[data-v="c"] .hdr__cart { padding: 0 14px; background: var(--btn-bg); color: var(--btn-fg); border-radius: 999px; }
html[data-v="c"] .hdr__cart b { background: var(--pink); color: #1B1D21; }
html[data-v="c"] .card { padding: 8px 8px 14px; }
html[data-v="c"] .card__img { border-radius: 16px; }
html[data-v="c"] .card__body { padding: 12px 6px 0; }
html[data-v="c"] .chip { background: #fff; border-color: #fff; }
html[data-v="c"] .chip.is-on { background: var(--fg); border-color: var(--fg); }
html[data-v="c"] .sel select, html[data-v="c"] .sel input, html[data-v="c"] .fld input, html[data-v="c"] .fld textarea, html[data-v="c"] .size, html[data-v="c"] .radio { background-color: #fff; border-color: #fff; }
html[data-v="c"] .size.is-on { background: var(--fg); }
html[data-v="c"] .sum { background: #fff; }
html[data-v="c"] .facts { border: 0; padding: 0 var(--pad); }
html[data-v="c"] .facts ul { gap: 8px; }
html[data-v="c"] .facts li { background: #fff; border: 0 !important; border-radius: 16px; padding: 18px 16px; text-align: left; }
html[data-v="c"] .gal__i, html[data-v="c"] .look__img, html[data-v="c"] .cat__img, html[data-v="c"] .color__img { border-radius: var(--r); }
html[data-v="c"] .ftr { border: 0; background: #fff; border-radius: 28px 28px 0 0; }
.hero-c { padding: 6px var(--pad) 0; }
.hero-c__bento { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.promo { grid-column: 1 / -1; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--pink); border-radius: 28px; overflow: hidden; min-height: 300px; }
.promo__txt { display: grid; align-content: start; gap: 10px; padding: 22px 0 20px 20px; }
html[data-v] .promo h1 { font-size: clamp(26px, 3.4vw, 46px); }
.promo p { font-size: 13px; color: #5C4A50; }
.promo ul { display: none; }
.promo .btn { justify-self: start; align-self: end; margin-top: auto; min-height: 44px; padding: 0 20px; }
.promo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
@media (max-width: 959px) {
  html[data-v="c"] .tabbar { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 6px; background: #1B1D21; color: #9aa0a8; border-radius: 24px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
  html[data-v="c"] .tabbar a { position: relative; display: grid; justify-items: center; gap: 3px; padding: 4px 0; font-size: 10px; }
  html[data-v="c"] .tabbar a.is-on { color: #fff; }
  html[data-v="c"] .tabbar b { position: absolute; top: 0; left: 54%; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--pink); color: #1B1D21; font: 700 10px/16px 'Onest', sans-serif; text-align: center; }
  html[data-v="c"] .ftr { padding-bottom: 104px; }
  html[data-v="c"] body[data-route="p"] .tabbar { display: none; }
  html[data-v="c"] .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (min-width: 960px) {
  .hero-c__bento { grid-template-columns: 1.9fr 1fr 1fr; gap: 16px; }
  .promo { grid-column: auto; grid-template-columns: 1.1fr 1fr; }
  .promo__txt { padding: 36px 0 30px 34px; gap: 14px; }
  .promo ul { display: grid; gap: 8px; margin-top: auto; padding-right: 16px; }
  .promo li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; background: #fff; border-radius: 999px; font-size: 12px; white-space: nowrap; }
  .promo li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .promo .btn { margin-top: 6px; justify-self: stretch; margin-right: 16px; }
}

/* ===== D. Монохром: белый лист, ч/б кадры ===== */
html[data-v="d"], html[data-v="g"], html[data-v="f"] { --font-h: 'Montserrat', sans-serif; --font-b: 'Montserrat', sans-serif; }
html[data-v="d"] {
  --bg: #fff; --fg: #111; --muted: #696969; --line: #E7E7E7; --surface: #F4F4F4; --btn-bg: #111; --btn-fg: #fff;
  --h-weight: 300; --h-case: uppercase; --h-track: .16em;
}
html[data-v="d"] h1 { font-size: clamp(20px, 2.2vw, 30px); }
html[data-v="d"] h2 { font-size: clamp(15px, 1.5vw, 20px); }
html[data-v="d"] .btn, html[data-v="e"] .btn, html[data-v="f"] .btn, html[data-v="g"] .btn { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
html[data-v="d"] .hdr__nav, html[data-v="d"] .hdr__right, html[data-v="e"] .hdr__nav, html[data-v="e"] .hdr__right, html[data-v="f"] .hdr__nav, html[data-v="f"] .hdr__right, html[data-v="g"] .hdr__nav, html[data-v="g"] .hdr__right { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
html[data-v="d"] .hdr { border-color: transparent; }
html[data-v="d"] .card__t, html[data-v="d"] .line__t a { font-weight: 500; letter-spacing: .14em; }
html[data-v="d"] .sec__h { justify-content: center; text-align: center; position: relative; }
html[data-v="d"] .sec__h .more, html[data-v="d"] .sec__h .arrows { position: absolute; right: 0; bottom: 0; }
@media (max-width: 759px) { html[data-v="d"] .sec__h { flex-direction: column; align-items: center; gap: 12px; } html[data-v="d"] .sec__h .more { position: static; } }
html[data-v="d"] .menu nav a { font-size: 15px; }
.hero-d__imgs { display: grid; }
.hero-d__imgs img { width: 100%; height: calc(100vh - var(--hdr-h) - 150px); height: calc(100svh - var(--hdr-h) - 150px); min-height: 380px; object-fit: cover; object-position: center 20%; filter: grayscale(1); }
.hero-d__imgs img + img { display: none; }
.hero-d__txt { display: grid; gap: 16px; justify-items: center; padding: 22px var(--pad) 0; text-align: center; }
.hero-d .eyebrow { color: var(--fg); letter-spacing: .26em; }
.hero-d .btn { width: 100%; }
@media (min-width: 960px) {
  .hero-d__imgs { grid-template-columns: 1fr 1fr; }
  .hero-d__imgs img, .hero-d__imgs img + img { display: block; height: calc(100vh - var(--hdr-h) - 132px); height: calc(100svh - var(--hdr-h) - 132px); }
  .hero-d .btn { width: auto; min-width: 240px; }
}

/* ===== E. Обложка: чёрный, кадр кампании, красный акцент ===== */
html[data-v="e"] {
  --bg: #0E0D0C; --fg: #EFEAE2; --muted: #8F8980; --line: #2B2927; --surface: #1A1917; --btn-bg: #D2301F; --btn-fg: #fff; --err: #FF8A7A;
  --font-h: 'Playfair Display', Georgia, serif; --font-b: 'Montserrat', sans-serif; --h-weight: 400;
}
html[data-v="e"] h1, html[data-v="e"] h2 { font-style: italic; }
html[data-v="e"] .hdr__cart b { background: var(--btn-bg); }
html[data-v="e"] .menu nav a { font-style: italic; }
.hero-e { height: 100vh; height: 100svh; min-height: 500px; overflow: hidden; }
.hero-e::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 13, 12, .35) 0%, rgba(14, 13, 12, 0) 26%, rgba(14, 13, 12, .92) 84%); }
.hero-e__txt { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: 28px; display: grid; gap: 10px; justify-items: start; }
html[data-v] .hero-e h1 { font-size: clamp(76px, 22vw, 104px); line-height: .9; }
.hero-e .lead { font-size: 14px; color: #CFC8BD; margin-bottom: 10px; }
.hero-e .btn { width: 100%; }
.hero-e__frame { display: none; }
@media (max-width: 959px) { html[data-v="e"] body[data-route="home"] .hdr { position: absolute; left: 0; right: 0; background: transparent; border-color: transparent; } }
@media (min-width: 960px) {
  .hero-e { min-height: 560px; height: calc(100vh - var(--hdr-h)); height: calc(100svh - var(--hdr-h)); display: grid; grid-template-columns: .9fr 1.5fr; align-items: center; gap: var(--pad); padding: 0 var(--pad); }
  .hero-e .hero__bg, .hero-e::after { display: none; }
  .hero-e__txt { position: static; align-self: end; padding-bottom: 56px; gap: 14px; }
  html[data-v] .hero-e h1 { font-size: clamp(110px, 13vw, 210px); }
  .hero-e .btn { width: auto; }
  .hero-e__frame { display: block; }
  .hero-e__frame img { width: 100%; aspect-ratio: 3 / 2; max-height: 68vh; object-fit: cover; border: 1px solid #2B2927; }
  .hero-e__frame figcaption { display: flex; justify-content: space-between; margin-top: 10px; font-size: 9px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
}

/* ===== F. Лого: логотип как графика ===== */
html[data-v="f"] {
  --bg: #EEE8DD; --fg: #1A1614; --muted: #625850; --line: #D9CFBF; --surface: #E3DACA; --btn-bg: #4B2F25; --btn-fg: #EEE8DD;
  --h-weight: 500; --h-case: uppercase; --h-track: .1em;
}
html[data-v="f"] h1 { font-size: clamp(22px, 2.6vw, 34px); }
html[data-v="f"] h2 { font-size: clamp(16px, 1.7vw, 22px); }
html[data-v="f"] .menu nav a { font-size: 16px; }
html[data-v="f"] body[data-route="home"] .hdr { border-color: transparent; }
html[data-v="f"] body[data-route="home"] .hdr .logo { visibility: hidden; }
.hero-f { height: calc(100vh - var(--hdr-h)); height: calc(100svh - var(--hdr-h)); min-height: 440px; overflow: hidden; }
.hero-f__logo { position: absolute; left: 50%; top: 10px; width: 88%; transform: translateX(-50%); }
.hero-f__model { position: absolute; left: 50%; bottom: 84px; height: calc(100% - 150px); width: auto; max-width: none; transform: translateX(-50%); }
.hero-f .eyebrow { display: none; }
.hero-f .btn { position: absolute; left: var(--pad); right: var(--pad); bottom: 14px; }
@media (min-width: 960px) {
  .hero-f { min-height: 560px; }
  .hero-f__logo { top: 64%; width: 92%; transform: translate(-50%, -50%); }
  .hero-f__model { bottom: 0; height: 97%; }
  .hero-f .eyebrow { display: block; position: absolute; left: var(--pad); bottom: 36px; color: var(--fg); line-height: 1.9; }
  .hero-f .btn { left: auto; bottom: 30px; }
}

/* ===== G. Истории: коллекции панелями ===== */
html[data-v="g"] {
  --bg: #fff; --fg: #0F0F0F; --muted: #6A6A6A; --line: #E8E8E8; --surface: #F3F3F3; --btn-bg: #0F0F0F; --btn-fg: #fff;
  --h-weight: 600; --h-case: uppercase; --h-track: .05em;
}
html[data-v="g"] h1 { font-size: clamp(24px, 3vw, 40px); }
html[data-v="g"] h2 { font-size: clamp(18px, 2vw, 26px); }
html[data-v="g"] body[data-route="home"] .hdr .logo img { filter: invert(1); }
html[data-v="g"] body[data-route="home"] .hdr__cart b { background: #fff; color: #0F0F0F; }
html[data-v="g"] .menu nav a { font-size: 17px; }
.stories { height: 100vh; height: 100svh; min-height: 500px; overflow: hidden; background: #0F0F0F; color: #fff; }
.story { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s .7s; }
.story.is-on { opacity: 1; visibility: visible; transition: opacity .7s var(--ease); z-index: 1; }
.story img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: transform 1.4s var(--ease); }
.story::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .78) 100%); }
.story__cap { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: 22px; display: grid; gap: 16px; }
html[data-v] .story__cap h2 { font-size: clamp(34px, 9vw, 44px); font-weight: 600; letter-spacing: .06em; }
.story__cap p { margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, .85); }
.story .btn { background: #fff; color: #0F0F0F; border-color: #fff; width: 100%; }
.stories__bars { position: absolute; z-index: 4; top: 10px; left: 12px; right: 12px; display: flex; gap: 5px; }
.stories__bars i { position: relative; flex: 1; height: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.stories__bars i::after { content: ''; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.stories__bars i.is-done::after { transform: scaleX(1); }
.stories__bars i.is-run::after { animation: bar 5s linear forwards; }
@keyframes bar { to { transform: scaleX(1); } }
.stories__nav { position: absolute; z-index: 3; top: 70px; bottom: 34%; width: 38%; background: none; border: 0; padding: 0; }
.stories__nav--prev { left: 0; }
.stories__nav--next { right: 0; }
@media (max-width: 759px) {
  html[data-v="g"] .cat { flex: 0 0 78px; text-align: center; }
  html[data-v="g"] .cat__img { aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--fg); padding: 3px; background: none; }
  html[data-v="g"] .cat__img img { border-radius: 50%; }
  html[data-v="g"] .cat__t { font-size: 9px; letter-spacing: .08em; }
  html[data-v="g"] .sec--cats { padding-top: 22px; }
  html[data-v="g"] .sec--cats .sec__h { display: none; }
}
@media (min-width: 960px) {
  .stories { display: grid; grid-template-columns: repeat(3, 1fr); min-height: 600px; }
  .story, .story.is-on { position: relative; inset: auto; opacity: 1; visibility: visible; overflow: hidden; }
  .story + .story { border-left: 1px solid rgba(255, 255, 255, .5); }
  .story__cap { grid-template-columns: 1fr auto; align-items: end; bottom: 34px; left: 28px; right: 28px; }
  .story .btn { width: auto; min-height: 40px; padding: 0 20px; background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
  .stories__bars, .stories__nav { display: none; }
}
@media (hover: hover) { .story:hover img { transform: scale(1.04); } }

/* тёмные темы: тёмный образец цвета должен читаться на тёмном фоне */
html[data-v="b"] .sw__i, html[data-v="e"] .sw__i { border-color: rgba(255, 255, 255, .45); }

/* узкий десктоп: разряженные заглавные в шапке не должны упираться в логотип */
@media (min-width: 960px) and (max-width: 1199px) {
  html[data-v="d"] .hdr__nav, html[data-v="d"] .hdr__right, html[data-v="e"] .hdr__nav, html[data-v="e"] .hdr__right,
  html[data-v="f"] .hdr__nav, html[data-v="f"] .hdr__right, html[data-v="g"] .hdr__nav, html[data-v="g"] .hdr__right { letter-spacing: .1em; }
}

/* A и F: студийные фото на белом ложатся на тёплую плитку, а не торчат белыми прямоугольниками */
html[data-v="a"] .card__img, html[data-v="a"] .cat__img, html[data-v="a"] .color__img, html[data-v="a"] .gal__i, html[data-v="a"] .line__img,
html[data-v="f"] .card__img, html[data-v="f"] .cat__img, html[data-v="f"] .color__img, html[data-v="f"] .gal__i, html[data-v="f"] .line__img { isolation: isolate; }
html[data-v="a"] .card__img img, html[data-v="a"] .cat__img img, html[data-v="a"] .color__img img, html[data-v="a"] .gal__i img, html[data-v="a"] .line__img img,
html[data-v="f"] .card__img img, html[data-v="f"] .cat__img img, html[data-v="f"] .color__img img, html[data-v="f"] .gal__i img, html[data-v="f"] .line__img img { mix-blend-mode: multiply; }
@media (hover: hover) { html[data-v="a"] .card__img:hover img:first-child, html[data-v="f"] .card__img:hover img:first-child { opacity: 0; } }
