/* Ксения Савкина. Строгая версия в цветах шампанского: почти чёрный, тёплый белый,
   бежевый и глубокое красное вино. Заголовки тонкой антиквой Cormorant Garamond,
   текст лёгким Onest. Тонкие линии, без градиентов. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-cyrillic.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 300 700;
  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: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-approx.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+2248;
}

@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  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("../fonts/onest-latin.woff2") format("woff2");
  font-weight: 100 900;
  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: "Onest";
  src: url("../fonts/onest-rub.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+20BD;
}

:root {
  --ink: #141212;
  --ink-2: #1f1b1b;
  --paper: #f4f0e9;
  --stone: #eee9e0;
  --text: #141212;
  --muted: #5e5652;
  --on-ink: #f3eee6;
  --on-ink-muted: #a8a09b;
  --accent: #ece1cd;
  --accent-mid: #e2d4ba;
  --accent-pale: #f7f1e7;
  --accent-deep: #988463;
  --accent-text: #7a6344;
  --wine: #5a1320;
  --wine-2: #6b1b2a;
  --wine-3: #7d2433;
  --line: rgba(20, 18, 18, 0.14);
  --line-strong: rgba(20, 18, 18, 0.85);
  --line-ink: rgba(243, 236, 232, 0.16);

  --font: "Onest", "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --gutter: clamp(16px, 4vw, 48px);
  --header: 64px;
  --radius: 22px;
  --round: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-lid: cubic-bezier(0.7, 0, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 350;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}

[data-dark] :focus-visible,
.vblock :focus-visible,
.site-header.is-dark :focus-visible {
  outline-color: var(--accent);
}

.defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--on-ink);
  text-decoration: none;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

.wrap {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: currentColor;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn--small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}

.btn--dark {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-ink);
}

.btn--dark:hover {
  border-color: var(--wine);
  background: var(--wine);
}

.btn--line {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.btn--line:hover {
  background: var(--ink);
  color: var(--on-ink);
}

.btn--light {
  border-color: var(--on-ink);
  background: var(--on-ink);
  color: var(--ink);
}

.btn--light:hover {
  border-color: var(--accent);
  background: var(--accent);
}

.btn--ghost {
  border-color: rgba(239, 236, 230, 0.4);
  background: transparent;
  color: var(--on-ink);
}

.btn--ghost:hover {
  border-color: var(--on-ink);
}

/* ---------- Шапка ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.site-header.is-dark {
  border-color: var(--line-ink);
  background: var(--ink);
  color: var(--on-ink);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header);
}

.brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
}

.nav a {
  opacity: 0.72;
  text-decoration: none;
  transition: opacity 0.2s var(--ease);
}

.nav a:hover {
  opacity: 1;
}

.btn--header {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-ink);
}

.site-header.is-dark .btn--header {
  border-color: var(--on-ink);
  background: var(--on-ink);
  color: var(--ink);
}

.menu-btn,
.nav__contacts {
  display: none;
}

@media (max-width: 899px) {
  :root {
    --header: 58px;
  }

  .nav {
    display: none;
  }

  .site-header__inner {
    gap: 10px;
  }

  .js .menu-btn {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin-left: auto;
    padding: 0 16px;
    border: 1px solid currentColor;
    border-radius: var(--radius);
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
  }

  html:not(.js) .site-header__inner > .btn {
    margin-left: auto;
  }

  .js .site-header.is-menu-open .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    padding: 4px var(--gutter) 20px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    color: var(--text);
  }

  .js .site-header.is-dark.is-menu-open .nav {
    border-color: var(--line-ink);
    background: var(--ink);
    color: var(--on-ink);
  }

  .js .site-header.is-menu-open .nav a {
    padding-block: 12px;
    border-bottom: 1px solid currentColor;
    border-bottom-color: color-mix(in srgb, currentColor 16%, transparent);
    font-family: var(--serif);
    font-size: 36px;
    font-weight: 300;
    line-height: 1.05;
    opacity: 1;
  }

  .js .site-header.is-menu-open .nav a:last-child {
    border-bottom: 0;
  }

  .nav__contacts {
    display: block;
  }
}

@media (max-width: 440px) {
  .js .site-header__inner > .btn {
    display: none;
  }
}

/* ---------- Общие блоки ---------- */

.section {
  position: relative;
  padding-block: clamp(88px, 11vw, 168px);
}

.section--dark {
  background: var(--ink);
  color: var(--on-ink);
}

.section--stone {
  background: var(--stone);
}

.section--rule {
  border-top: 1px solid var(--line);
}

.h2 {
  font-family: var(--serif);
  font-size: clamp(50px, 7vw, 112px);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 48px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.section-head__note {
  max-width: 24em;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 32px clamp(32px, 6vw, 112px);
  align-items: start;
}

@media (max-width: 899px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* ---------- Первый экран: бутылка ---------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--on-ink);
}

.hero__sticky {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: clamp(24px, 5vw, 96px);
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header) + 32px);
  padding-bottom: 40px;
}

.hero__text {
  position: relative;
  z-index: 1;
}

.hero__role {
  margin-bottom: clamp(20px, 2.4vw, 32px);
  color: var(--on-ink-muted);
  font-size: clamp(15px, 1.2vw, 18px);
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(64px, 11.6vw, 188px);
  font-weight: 300;
  line-height: 0.84;
  letter-spacing: -0.03em;
}

.hero__title span {
  display: block;
}

.hero__lead {
  max-width: 32em;
  margin-top: clamp(24px, 3vw, 40px);
  color: var(--on-ink-muted);
  font-size: clamp(16px, 1.3vw, 19px);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 40px);
}

.hero__bottle {
  position: relative;
  z-index: 1;
  align-self: end;
  justify-self: center;
  height: min(72vh, 700px);
  height: min(72svh, 700px);
  aspect-ratio: 200 / 640;
}

.bottle {
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-origin: 50% 97%;
  transform: rotate(-6deg);
}

.bottle__body {
  fill: #1f2923;
  stroke: #46564c;
  stroke-width: 1.5;
}

.bottle__shine {
  fill: none;
  stroke: #33423a;
  stroke-width: 7;
  stroke-linecap: round;
}

.bottle__neck-shine,
.bottle__lip-shine {
  fill: none;
  stroke: #3d4e44;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.bottle__foil {
  fill: #e3d4b6;
  stroke: #e3d4b6;
  stroke-width: 1.6;
}

.bottle__shoulder-shine {
  fill: none;
  stroke: #33423a;
  stroke-width: 6;
  stroke-linecap: round;
}

.bottle__edge-light {
  fill: none;
  stroke: #2d3a32;
  stroke-width: 2;
}

.bottle__collar {
  fill: #f7f2e9;
  stroke: #bea783;
  stroke-width: 0.8;
}

.bottle__collar-line {
  fill: none;
  stroke: #dccdb0;
  stroke-width: 0.6;
}

.bottle__collar-text {
  fill: var(--accent-deep);
  font-family: var(--font);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.bottle__foil-shade {
  fill: #d4c1a2;
}

.bottle__band {
  fill: #bea783;
}

.bottle__foil-shine {
  fill: none;
  stroke: #f4ece0;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.bottle__crinkle {
  fill: none;
  stroke: #cbb898;
  stroke-width: 0.9;
  stroke-linecap: round;
}

.bottle__mouth {
  fill: #0b0b0a;
  stroke: #56675c;
  stroke-width: 0.8;
}

.bottle__lip {
  fill: #1f2923;
  stroke: #46564c;
  stroke-width: 1.4;
}

.bottle__lip-groove {
  stroke: #121714;
  stroke-width: 0.9;
}

.bottle__cork-head {
  fill: #c9a27a;
}

.bottle__cork-shade {
  fill: #b08a60;
}

.bottle__cork-speck circle {
  fill: #96714c;
}

/* Ножка пробки видна, только когда пробка вылетела: получается «грибок» */
.bottle__cork-shank {
  fill: #bf9870;
  opacity: 0;
}

.bottle__cork.is-flying .bottle__cork-shank {
  opacity: 1;
}

/* Мюзле: проволочная уздечка и пластинка на пробке */
.bottle__wire,
.bottle__wire-loop {
  fill: none;
  stroke: #b3ada2;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottle__plaque {
  fill: #e3d4b6;
}

.bottle__plaque-rim {
  stroke: #bea783;
  stroke-width: 0.9;
}

.bottle__heel {
  fill: #19201c;
}

.bottle__cork-line {
  fill: none;
  stroke: #a07b55;
  stroke-width: 0.8;
}

/* Сабля для сабража */
.sabre__blade {
  fill: #d9d6d0;
}

.sabre__fuller {
  stroke: #a7a39c;
  stroke-width: 0.9;
}

.sabre__edge {
  stroke: #f7f5f1;
  stroke-width: 0.8;
}

.sabre__bow {
  fill: none;
  stroke: #b99b6b;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.sabre__guard,
.sabre__pommel {
  fill: #b99b6b;
}

.sabre__grip {
  fill: #2b2121;
}

.sabre__wrap path {
  stroke: #4d3d3a;
  stroke-width: 0.8;
}

.bottle__label {
  fill: #f7f2e9;
}

.bottle__label-rule {
  fill: none;
  stroke: var(--accent-deep);
  stroke-width: 0.8;
}

.bottle__label-name {
  fill: var(--ink);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.bottle__label-sub {
  fill: var(--ink);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 400;
}

.bottle__label-small {
  fill: var(--accent-deep);
  font-family: var(--font);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.bottle__cork {
  transform-box: fill-box;
  transform-origin: 50% 60%;
}

.splash {
  display: none;
}

@media (max-width: 759px) {
  .hero__grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding-top: calc(var(--header) + 24px);
    padding-bottom: 20px;
  }

  .hero__bottle {
    flex: 1 1 0;
    min-height: 180px;
    height: auto;
    max-height: 56svh;
    align-self: center;
  }
}

/* Сцена с брызгами работает только с анимацией */
.motion .hero {
  height: 230vh;
  height: 230svh;
}

.motion .hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.motion .hero__grid {
  height: 100%;
  min-height: 0;
}

.motion .splash {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (max-width: 759px) {
  .motion .hero {
    height: 200vh;
    height: 200svh;
  }
}

/* ---------- Пузырьки: редкие и мелкие ---------- */

.bubbles {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  pointer-events: none;
  --bubble: #cfc0a4;
}

.bubbles.is-dark {
  --bubble: var(--accent);
}

.bubble {
  position: absolute;
  left: 0;
  bottom: -60px;
  opacity: 0;
  will-change: transform, opacity;
}

.bubble svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.bubble__ring {
  fill: none;
  stroke: var(--bubble);
  stroke-width: 2.4px;
}

.bubble__glint {
  fill: var(--bubble);
}

/* ---------- Обо мне ---------- */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 112px);
  align-items: start;
}

.about__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--round);
  background: var(--ink);
}

.about__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}

.about__media :focus-visible {
  outline-color: var(--accent);
}

.about__text > * + * {
  margin-top: 1em;
}

.about__text .h2 {
  margin-bottom: clamp(28px, 3.4vw, 48px);
}

.about__text p {
  max-width: 36em;
  color: var(--muted);
  text-wrap: pretty;
}

.about__text .about__lead {
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(24px, 2.3vw, 32px);
  font-weight: 400;
  line-height: 1.15;
}

.facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.fact {
  display: grid;
  gap: 8px;
  padding: 28px 24px 0 0;
}

.fact + .fact {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.fact__value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--serif);
  font-size: clamp(56px, 7vw, 104px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums;
}

.fact__value small {
  color: var(--accent-text);
  font-family: var(--font);
  font-size: clamp(15px, 1.3vw, 19px);
  font-weight: 400;
  letter-spacing: 0;
}

.fact__label {
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 899px) {
  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__media {
    max-width: 420px;
  }
}

@media (max-width: 639px) {
  .facts {
    grid-template-columns: 1fr;
  }

  .fact,
  .fact + .fact {
    padding: 20px 0;
    border-left: 0;
  }

  .fact + .fact {
    border-top: 1px solid var(--line);
  }
}

/* ---------- Проекты: карточки переворачиваются ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}

.card {
  position: relative;
  perspective: 1400px;
}

.card.is-turning {
  z-index: 3;
}

.card__tilt {
  height: 100%;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
}

.card.is-tilting .card__tilt {
  transition-duration: 0.15s;
}

.card.is-turning .card__tilt {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(70px);
  transition-duration: 0.45s;
}

/* Переворот с лёгким перелётом за 180 градусов, в сторону, куда нажали */
.card__inner {
  display: grid;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(0.3, 1.3, 0.45, 1);
}

.card.is-flipped .card__inner {
  transform: rotateY(var(--flip, 180deg));
}

.card__face {
  position: relative;
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  padding: 22px 22px 24px;
  border-radius: var(--round);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card__front {
  border: 1px solid var(--line);
  background: #faf7f1;
}

.card__back {
  padding-bottom: 72px;
  background: var(--ink);
  color: var(--on-ink);
  transform: rotateY(180deg);
}

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.card__num {
  color: var(--accent-deep);
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 300;
  line-height: 0.8;
  font-variant-numeric: lining-nums;
}

.card__client {
  margin-top: auto;
  font-family: var(--serif);
  font-size: clamp(30px, 2.5vw, 38px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.01em;
  hyphens: manual;
  text-wrap: balance;
}

.card__teaser {
  max-width: 17em;
  margin-top: 14px;
  margin-bottom: 52px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.3;
}

.card__turn {
  position: absolute;
  right: 18px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.card__turn .icon {
  width: 20px;
  height: 20px;
  transition: transform 0.6s var(--ease);
}

.card__front .card__turn {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-ink);
}

.card:hover .card__front .card__turn {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.card:hover .card__turn .icon {
  transform: rotate(180deg);
}

.card__back .card__turn {
  border-color: rgba(243, 238, 230, 0.4);
  color: var(--on-ink);
}

/* Подсказка: когда список появляется на экране, карточки по очереди приоткрываются */
.card.is-peek .card__inner {
  animation: card-peek 1.1s var(--ease) both;
  animation-delay: var(--peek-delay, 0s);
}

@keyframes card-peek {
  0% { transform: rotateY(0); }
  35% { transform: rotateY(-38deg); }
  70% { transform: rotateY(6deg); }
  100% { transform: rotateY(0); }
}

.card__result {
  color: var(--accent);
  font-family: var(--serif);
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 400;
  line-height: 1.05;
  text-wrap: balance;
}

.card__story {
  margin-top: 14px;
  color: var(--on-ink-muted);
  font-size: 15px;
  line-height: 1.38;
  text-wrap: pretty;
}

.card__meta {
  margin-top: auto;
  padding-top: 16px;
  padding-bottom: 48px;
  font-size: 13px;
}

.card__btn {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--round);
  background: transparent;
  cursor: pointer;
}

.card__btn:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 4px;
}

.card--more {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 200px;
  padding: 22px 22px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--round);
}

.card__more-title {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.1;
}

.card__more-list {
  color: var(--muted);
  font-size: 15.5px;
}

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

/* Без JS обе стороны видны одна под другой */
html:not(.js) .card__inner {
  display: flex;
  flex-direction: column;
}

html:not(.js) .card__face {
  min-height: 0;
}

html:not(.js) .card__front {
  min-height: 220px;
  border-radius: var(--round) var(--round) 0 0;
}

html:not(.js) .card__back {
  transform: none;
  border-radius: 0 0 var(--round) var(--round);
}

html:not(.js) .card__btn,
html:not(.js) .card__turn {
  display: none;
}

/* Номер на обороте нужен только на телефоне и планшете: там у чёрной стороны остаётся пустое место */
.card__num--back {
  display: none;
}

@media (max-width: 899px) {
  .card__back {
    padding-bottom: 112px;
  }

  .card__num--back {
    display: block;
    position: absolute;
    left: 22px;
    bottom: 22px;
    font-size: 96px;
  }
}

@media (max-width: 599px) {
  .card__face {
    min-height: 340px;
  }

  .card__result {
    font-size: 29px;
  }

  .card__story {
    font-size: 16.5px;
  }
}

/* ---------- Как продаю ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--line-strong);
}

.step {
  padding: 28px 24px 0 0;
}

.step + .step {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.step__num {
  margin-bottom: clamp(28px, 4vw, 64px);
  color: var(--accent-deep);
  font-family: var(--serif);
  font-size: clamp(48px, 4.6vw, 72px);
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: lining-nums;
}

.step h3 {
  margin-bottom: 12px;
  font-size: clamp(19px, 1.5vw, 22px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.step p:not(.step__num) {
  color: var(--muted);
  font-size: 15.5px;
  text-wrap: pretty;
}

@media (max-width: 1099px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 0;
  }

  .step,
  .step + .step {
    padding: 28px 24px 32px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .step__num {
    margin-bottom: 20px;
  }
}

@media (max-width: 639px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Опыт и учёба ---------- */

.job {
  padding-block: 32px;
  border-top: 1px solid var(--line);
}

.job:first-child {
  padding-top: 0;
  border-top: 0;
}

.job__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.job__line h3,
.school h3 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.job__when,
.school__when {
  color: var(--accent-text);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.job__role {
  margin-top: 6px;
  color: var(--muted);
}

.job ul {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.job ul li {
  position: relative;
  max-width: 44em;
  padding-left: 20px;
  color: var(--muted);
}

.job ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 1px;
  background: var(--accent-deep);
}

.school {
  padding-block: 28px;
  border-top: 1px solid var(--line);
}

.school:first-child {
  padding-top: 0;
  border-top: 0;
}

.school h3 {
  margin: 4px 0 10px;
}

.school p:not(.school__when) {
  max-width: 44em;
  color: var(--muted);
}

.skills {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.skills__group--wide {
  grid-column: 1 / -1;
}

.skills h3 {
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 500;
}

.skills p {
  color: var(--muted);
  font-size: 15.5px;
}

@media (max-width: 899px) {
  .skills {
    grid-column: 1;
  }
}

@media (max-width: 559px) {
  .skills {
    grid-template-columns: 1fr;
  }

  .job__line {
    flex-direction: column;
    gap: 4px;
  }
}

/* ---------- Вино и видео (видео на фоне блока, как на tastycoffee.ru) ---------- */

.wine__grid {
  display: grid;
  /* Текст слева, одно вертикальное видео справа */
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 40px clamp(32px, 5vw, 88px);
  align-items: start;
}

.wine__lead {
  margin-top: clamp(28px, 3.4vw, 48px);
  font-family: var(--serif);
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 400;
  line-height: 1.1;
  text-wrap: pretty;
}

.wine__school {
  margin-top: clamp(28px, 3vw, 40px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.wine__school-name {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.wine__school-text {
  color: var(--muted);
  font-size: 16px;
}

.wine__text {
  max-width: 40rem;
}

.vblocks {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 380px;
}

.vblock {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Видео со скруглёнными краями, подпись под ним: у видео свои субтитры */
.vblock__media {
  position: relative;
  isolation: isolate;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: var(--round);
  background: var(--ink);
}

.vblock__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vblock :focus-visible {
  outline-color: var(--accent);
}

.vblock__title {
  font-family: var(--serif);
  font-size: clamp(30px, 2.6vw, 40px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.015em;
}

.vblock__text {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15.5px;
}

.vblock__soon {
  display: inline-flex;
  margin-top: 12px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
}

.vblock.has-video .vblock__soon {
  display: none;
}

.vblock__controls {
  position: absolute;
  right: clamp(14px, 1.6vw, 22px);
  bottom: clamp(14px, 1.6vw, 22px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vblock__controls[hidden] {
  display: none;
}

/* У видео в «Вине» субтитры внизу кадра, поэтому кнопки наверху */
.vblock__media .vblock__controls {
  top: clamp(14px, 1.6vw, 22px);
  bottom: auto;
}

.nowrap {
  white-space: nowrap;
}

.vbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--on-ink);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.25s;
}

.vbtn:hover {
  background: var(--accent);
}

.vbtn span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.vbtn .icon--on,
.vbtn[aria-pressed="true"] .icon--off {
  display: none;
}

.vbtn[aria-pressed="true"] .icon--on {
  display: block;
}

.vblock__fizz {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.vblock.has-video .vblock__fizz {
  display: none;
}

.vblock__fizz i {
  position: absolute;
  bottom: -30px;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  border: 1px solid rgba(236, 225, 205, 0.5);
  border-radius: 50%;
}

.vblock__fizz i:nth-child(1) { --x: 22%; --s: 9px; --d: 9s; --t: -2s; }
.vblock__fizz i:nth-child(2) { --x: 48%; --s: 14px; --d: 12s; --t: -7s; }
.vblock__fizz i:nth-child(3) { --x: 71%; --s: 7px; --d: 8s; --t: -4s; }
.vblock__fizz i:nth-child(4) { --x: 86%; --s: 11px; --d: 10s; --t: -1s; }

.motion .vblock__fizz i {
  animation: fizz var(--d) linear var(--t) infinite;
}

@keyframes fizz {
  from { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(8px, -50vh, 0); }
  to { transform: translate3d(-4px, -100vh, 0); }
}

@media (max-width: 959px) {
  .wine__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Контакты внутри бокалов ---------- */

.glasses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 48px);
}

.glass-item {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 16px;
}

.glass {
  width: min(100%, 290px);
  overflow: visible;
}

/* Бокал: стекло светлое и полупрозрачное, контур тонкий, ножка и подставка объёмные */
.glass__back {
  fill: rgba(255, 255, 255, 0.45);
}

/* Все линии бокала одного цвета и толщины */
.glass__line,
.glass__foot {
  fill: none;
  stroke: #2b2725;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.glass__stem,
.glass__foot {
  fill: #ebe6de;
}

.glass__wine,
.glass__stream {
  fill: var(--wine);
}

.glass__surface {
  fill: #7b2c39;
}

.glass-item--phone .glass__wine,
.glass-item--phone .glass__stream {
  fill: var(--wine-2);
}

.glass-item--phone .glass__surface {
  fill: #8a3342;
}

.glass-item--insta .glass__wine,
.glass-item--insta .glass__stream {
  fill: var(--wine-3);
}

.glass-item--insta .glass__surface {
  fill: #9b3a48;
}

.glass__hit {
  fill: transparent;
}

.glass__label {
  fill: var(--accent);
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 400;
}

.glass__value {
  fill: #f6f1e7;
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.glass__link {
  cursor: pointer;
}

.glass__link:hover .glass__value {
  text-decoration: underline;
}

.glass__link:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 4px;
}

.copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.copy .icon {
  width: 15px;
  height: 15px;
}

a.copy {
  text-decoration: none;
}

.copy:hover,
.copy.is-done {
  border-color: var(--ink);
  color: var(--ink);
}

.contacts__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

@media (max-width: 759px) {
  .glasses {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .glass {
    width: min(78vw, 270px);
  }
}

/* ---------- Подвал ---------- */

.site-footer {
  background: var(--ink);
  color: var(--on-ink-muted);
  font-size: 15px;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 28px;
}

.site-footer a {
  color: var(--on-ink);
}

/* ---------- Без анимации ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Печать ---------- */

@media print {
  .site-header,
  .bubbles,
  .splash,
  .hero__bottle,
  .vblocks,
  .copy,
  .menu-btn,
  .game {
    display: none !important;
  }

  .hero,
  .hero__sticky {
    height: auto !important;
    position: static !important;
    background: none;
    color: #000;
  }

  .section,
  .section--dark,
  .section--stone,
  .site-footer {
    background: none;
    color: #000;
  }

  .card__inner {
    display: block !important;
    transform: none !important;
  }

  .card__face {
    min-height: 0;
    backface-visibility: visible;
    background: none !important;
    color: #000 !important;
    transform: none !important;
  }

  .card__btn,
  .card__turn {
    display: none;
  }
}

