/* ————————————————————————————————
   Анапский маяк · воздушный редизайн
   ———————————————————————————————— */

@font-face {
  font-family: "Gogol";
  src: url("assets/fonts/GogolRegular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #fcfcfa;
  --ink: #16191b;
  --text: #3a4043;
  --muted: #74797c;
  --line: rgba(22, 25, 27, 0.12);
  --sea: #3f8a7a;
  --sea-soft: #e0ebe6;
  --display: "Tenor Sans", "Arial", sans-serif;
  --body: "Inter", Arial, sans-serif;
  --script: "Gogol", cursive;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gutter: clamp(24px, 6vw, 96px);
  --section-gap: clamp(110px, 14vw, 210px);
}

* {
  box-sizing: border-box;
}

section[id] {
  scroll-margin-top: 84px;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
}

::selection {
  color: var(--paper);
  background: var(--sea);
}

/* ——— типографика ——— */

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  line-height: 1.06;
}

h2 {
  font-size: clamp(34px, 4.2vw, 60px);
}

p {
  margin: 0;
}

em {
  font-style: normal;
  color: var(--sea);
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.section-head {
  margin-bottom: clamp(44px, 5vw, 72px);
}

.section-head .section-label {
  margin-bottom: 22px;
}

.section-lead {
  max-width: 560px;
  margin-top: 26px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.7;
}

.script-note {
  display: inline-block;
  margin: 0;
  color: var(--sea);
  font-family: var(--script);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 0.9;
  transform: rotate(-3deg);
  transform-origin: left center;
}

/* ——— кнопка Flow ——— */

.btn-flow {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  padding: 18px 52px;
  border: 1px solid rgba(22, 25, 27, 0.4);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font-family: inherit;
  appearance: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 600ms var(--ease),
    border-color 600ms var(--ease),
    border-radius 600ms var(--ease),
    transform 300ms var(--ease);
}

.btn-flow:hover {
  color: var(--paper);
  border-color: transparent;
  border-radius: 14px;
}

.btn-flow:active {
  transform: scale(0.96);
}

.btn-flow-text {
  position: relative;
  z-index: 2;
  transform: translateX(-9px);
  transition: transform 800ms var(--ease);
}

.btn-flow:hover .btn-flow-text {
  transform: translateX(9px);
}

.btn-flow-arr {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
  transition:
    left 800ms var(--ease-spring),
    right 800ms var(--ease-spring);
}

.btn-flow-arr-1 {
  right: 18px;
}

.btn-flow:hover .btn-flow-arr-1 {
  right: -28%;
}

.btn-flow-arr-2 {
  left: -28%;
}

.btn-flow:hover .btn-flow-arr-2 {
  left: 18px;
}

.btn-flow-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition:
    width 800ms cubic-bezier(0.19, 1, 0.22, 1),
    height 800ms cubic-bezier(0.19, 1, 0.22, 1),
    opacity 500ms ease;
}

.btn-flow:hover .btn-flow-circle {
  width: 640px;
  height: 640px;
  opacity: 1;
}

.btn-flow-lg {
  padding: 22px 58px;
  font-size: 16px;
}

/* ——— шапка ——— */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  width: 100%;
  padding: 20px var(--gutter);
  background: transparent;
  transition:
    background 320ms ease,
    box-shadow 320ms ease,
    padding 320ms ease;
}

body.is-scrolled .site-header {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(252, 252, 250, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  font-family: var(--display);
  font-size: 17px;
}

.brand img {
  width: 16px;
  height: 34px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  font-size: 14px;
  font-weight: 500;
}

.site-nav a,
.header-cta {
  position: relative;
  padding-bottom: 3px;
}

.site-nav a::after,
.header-cta::after {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 360ms var(--ease);
}

.site-nav a:hover::after,
.header-cta:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: clamp(16px, 1.8vw, 26px);
  justify-self: end;
}

.header-cta {
  margin: 0;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  appearance: none;
  cursor: pointer;
}

/* ——— музыка: кнопка-нота ——— */

.sound-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 300ms ease, color 300ms ease;
}

.sound-toggle:hover {
  border-color: var(--ink);
}

.sound-note {
  width: 16px;
  height: 16px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sound-note-body {
  transition: opacity 350ms ease;
}

.sound-toggle.is-playing .sound-note {
  transform-origin: 50% 60%;
  animation: note-sway 2.4s ease-in-out infinite;
}

/* выключено: нота гаснет, перечёркивание «дорисовывается» */

.sound-note-off {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset 400ms var(--ease-out) 100ms;
}

.sound-toggle:not(.is-playing) .sound-note-body {
  opacity: 0.4;
}

.sound-toggle:not(.is-playing) .sound-note-off {
  stroke-dashoffset: 0;
}

@keyframes note-sway {
  0%,
  100% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(6deg);
  }
}

/* ——— hero ——— */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  min-height: 100svh;
  padding: 96px var(--gutter) 48px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 660px;
}

.hero h1 {
  margin: 30px 0 0;
  font-size: clamp(58px, 8vw, 124px);
  line-height: 0.98;
}

.hero-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
}

.hero-line .tline {
  flex: 0 0 auto;
}

.hero-note {
  flex: 0 0 auto;
  font-size: clamp(22px, 1.8vw, 32px);
  line-height: 0.95;
  white-space: nowrap;
  opacity: 0;
  transform: rotate(-3deg) translateY(14px);
  transition:
    opacity 900ms ease 500ms,
    transform 1100ms var(--ease-out) 500ms;
}

.reveal.is-visible .hero-note {
  opacity: 1;
  transform: rotate(-3deg) translateY(0);
}

.hero-lead {
  max-width: none;
  margin-top: clamp(30px, 4vh, 48px);
  color: var(--text);
  font-size: clamp(19px, 1.55vw, 22px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: clamp(28px, 3vw, 44px);
  margin-top: clamp(30px, 4.5vh, 52px);
}

.hero-product {
  justify-self: center;
  width: min(100%, 500px);
  aspect-ratio: 3 / 4;
  max-height: 76svh;
}

/* ——— манифест ——— */

.manifesto {
  padding: var(--section-gap) var(--gutter) clamp(64px, 8vw, 110px);
  text-align: center;
}

.manifesto-logo {
  display: block;
  height: clamp(84px, 9vw, 128px);
  margin: 0 auto clamp(36px, 4vw, 56px);
  opacity: 0.92;
}

.manifesto-statement {
  max-width: 940px;
  margin: 0 auto;
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.32;
}

.manifesto-statement + .manifesto-body {
  margin-top: clamp(22px, 2.5vw, 34px);
}

.manifesto-body {
  max-width: 580px;
  margin: 0 auto;
  color: var(--text);
  font-size: 18px;
  line-height: 1.7;
}

/* ——— видео: голубая подложка с волной за роликом ——— */

.film {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 0 var(--gutter) clamp(20px, 3vw, 44px);
  overflow: hidden;
}

.film::before {
  content: "";
  position: absolute;
  inset: calc(52% - 1px) 0 0 0;
  background: var(--sea-soft);
}

/* одна волна (assets/waves/wave-soft.svg), цвет — ровно var(--sea-soft),
   тот же, что и заливка ниже: волна и есть переход от белого к нему.
   Три экземпляра картинки подряд + translateX до -33.333% — бесшовный
   медленный дрейф без стыков даже на широких экранах. */

.film-waves {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(52% - 118px);
  height: 220px;
  overflow: hidden;
  pointer-events: none;
}

.film-wave {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  width: max-content;
  height: 100%;
  animation: wave-drift 130s linear infinite;
  will-change: transform;
}

.film-wave img {
  display: block;
  flex: none;
  height: 100%;
  width: auto;
}

@keyframes wave-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-33.3334%); }
}

.film-video {
  position: relative;
  z-index: 1;
  display: block;
  width: min(560px, 100%);
  height: auto;
  border: 0;
  border-radius: 2px;
  outline: none;
}

/* ——— фото-примитив ——— */

.photo {
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
}

.photo img,
.photo video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1100ms var(--ease);
}

.photo:hover img,
.photo:hover video {
  transform: scale(1.035);
}

/* ——— история ——— */

.history {
  padding: var(--section-gap) var(--gutter);
  background: var(--sea-soft);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
}

.timeline-year {
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: clamp(30px, 2.8vw, 42px);
  letter-spacing: 0.06em;
}

.timeline-item .photo {
  aspect-ratio: 4 / 3;
}

/* архивные фото «проявляются», как снимок в ванночке с проявителем */

.timeline-item .photo img {
  filter: grayscale(1) contrast(0.88) brightness(1.05);
}

.timeline-item .photo.reveal img {
  filter: grayscale(1) contrast(0.8) brightness(1.14) blur(10px);
  transition:
    transform 1500ms var(--ease-out),
    filter 1700ms var(--ease-out) 150ms;
}

.timeline-item .photo.reveal.is-visible img {
  filter: grayscale(1) contrast(0.88) brightness(1.05) blur(0);
}

.timeline-item > p:last-child {
  max-width: 40ch;
  margin-top: 20px;
  color: var(--text);
  line-height: 1.6;
}

/* ——— история: маяк сегодня ——— */

.history-now {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: clamp(72px, 9vw, 130px);
}

.history-now-label {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.history-now-media {
  width: min(580px, 90%);
  aspect-ratio: 9 / 16;
  box-shadow: 0 30px 70px -30px rgba(22, 25, 27, 0.28);
}

.history-now-text {
  max-width: 46ch;
  margin-top: clamp(32px, 4vw, 48px);
  color: var(--text);
  font-size: 18px;
  line-height: 1.7;
}

/* ——— всегда с собой ——— */

.with-you {
  padding: var(--section-gap) var(--gutter);
}

.with-you-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 36px);
  align-items: start;
}

.with-you-grid .photo {
  aspect-ratio: 3 / 4;
}

/* ——— живые фото ——— */

.live-block {
  margin-top: clamp(16px, 2.4vw, 36px);
}

.live-wide {
  aspect-ratio: 16 / 9;
}

.live-wide img {
  object-position: 50% 68%;
}

/* ——— для ключей ——— */

.keys {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: center;
  padding: 0 var(--gutter) var(--section-gap);
}

.keys-photo {
  aspect-ratio: 3 / 4;
}

/* колонка узкая — заголовку нужен чуть меньший кегль, чтобы жить в две строки */
.keys h2 {
  font-size: clamp(30px, 3.3vw, 48px);
}

.keys-copy p + p {
  margin-top: 20px;
}

.keys-copy > p {
  max-width: 480px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.7;
}

.rose-mark {
  display: block;
  width: clamp(60px, 6vw, 78px);
  aspect-ratio: 1;
  margin-bottom: clamp(30px, 3.5vw, 44px);
  background: var(--ink);
  opacity: 0.85;
  mask: url("assets/rose.svg") center / contain no-repeat;
  -webkit-mask: url("assets/rose.svg") center / contain no-repeat;
}

.specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(38px, 4vw, 56px) 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.specs dt {
  font-family: var(--display);
  font-size: clamp(26px, 2.3vw, 34px);
  letter-spacing: 0.04em;
}

.specs dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* ——— подарок ——— */

.gift {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
  padding: 0 var(--gutter) var(--section-gap);
}

.gift-copy > p {
  max-width: 480px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.7;
}

.gift-quote {
  margin-bottom: clamp(34px, 4vw, 54px);
  font-size: clamp(32px, 2.7vw, 44px);
}

.gift-list {
  padding-top: 8px;
}

.gift-list span {
  display: block;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: 0.04em;
  transition: padding-left 360ms var(--ease), color 360ms ease;
}

.gift-list span:hover {
  padding-left: 14px;
  color: var(--sea);
}

.heart {
  width: 21px;
  height: 21px;
  margin-left: 10px;
  color: #cf5348;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(-9deg) translateY(3px);
}

/* ——— почему маяк ——— */

.why {
  padding: 0 var(--gutter) var(--section-gap);
}

.why .section-head {
  max-width: 680px;
}

.why-lead {
  max-width: 560px;
  margin-top: 24px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.7;
}

.why-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}

.why-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.why-list li {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: clamp(20px, 1.9vw, 27px);
  letter-spacing: 0.04em;
}

.why-list span {
  color: var(--sea);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
}

.why-list .is-final {
  padding-top: 40px;
  border-bottom: 0;
}

.why-list .is-final .script-note {
  color: var(--sea);
  font-family: var(--script);
  font-size: clamp(30px, 2.8vw, 42px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.1;
  transform: rotate(-2deg);
}

.why-photos {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
  margin-top: clamp(-150px, -10vw, -56px);
}

.why-photos .photo {
  aspect-ratio: 3 / 4;
}

.why-photos .is-offset {
  margin-top: clamp(28px, 4vw, 64px);
}

/* ——— как сделан ——— */

/* в узких двухколоночных блоках заголовок и текст должны сидеть плотнее */
.keys .section-head,
.gift .section-head,
.craft .section-head,
.why .section-head {
  margin-bottom: clamp(20px, 2.5vw, 32px);
}

.craft {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: center;
  padding: 0 var(--gutter) var(--section-gap);
}

.craft-note {
  max-width: 500px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.7;
}

.craft-photos {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
  align-content: start;
}

.craft-photos > .photo {
  aspect-ratio: 3 / 4;
}

/* ——— галерея-параллакс ——— */

.gallery {
  padding: 0 0 var(--section-gap);
  overflow: clip;
}

.gallery-head {
  padding: 0 var(--gutter);
}

.parallax {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
  align-items: start;
  padding: 0 var(--gutter);
}

.parallax-col {
  display: grid;
  gap: clamp(16px, 2vw, 32px);
  will-change: transform;
}

.parallax-col:nth-child(2) {
  margin-top: clamp(48px, 7vw, 130px);
}

.parallax-col:nth-child(3) {
  margin-top: clamp(24px, 3.5vw, 65px);
}

.parallax .photo {
  aspect-ratio: 3 / 4;
}

/* ——— купить ——— */

.buy {
  padding: var(--section-gap) var(--gutter);
  text-align: center;
  background: var(--sea-soft);
}

.buy-logo {
  display: block;
  height: clamp(88px, 9.5vw, 136px);
  margin: 0 auto clamp(36px, 4.5vw, 60px);
  opacity: 0.92;
}

.buy .section-head {
  margin-bottom: 30px;
}

.buy-note {
  max-width: 500px;
  margin: 0 auto;
  color: var(--text);
  font-size: 18px;
  line-height: 1.7;
}

.buy-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-top: clamp(36px, 4vw, 54px);
}

.buy-script {
  margin-top: clamp(44px, 5vw, 64px);
  font-size: clamp(38px, 3.6vw, 56px);
  transform: rotate(-3deg);
  transform-origin: center;
}

.buy-video-media {
  aspect-ratio: 16 / 9;
  max-width: 900px;
  margin: clamp(80px, 9vw, 130px) auto 0;
}

/* ——— футер ——— */

.site-footer {
  padding: clamp(60px, 7vw, 96px) var(--gutter) 40px;
  border-top: 1px solid var(--line);
}

.credits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.credit .section-label {
  margin-bottom: 12px;
}

.credit a,
.credit span {
  display: block;
  font-family: var(--display);
  font-size: clamp(20px, 1.7vw, 24px);
  letter-spacing: 0.04em;
}

.credit span + a {
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--body);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.credit a:hover {
  color: var(--sea);
}

.footer-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-fine {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 40px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.footer-fine p {
  margin: 0;
}

.footer-fine-legal {
  text-align: right;
}

.footer-fine a {
  padding-bottom: 1px;
  border-bottom: 1px solid var(--line);
  transition: color 300ms ease, border-color 300ms ease;
}

.footer-fine a:hover {
  color: var(--sea);
  border-color: currentColor;
}

/* ——— cookie-уведомление ——— */

.cookie-bar[hidden] {
  display: none;
}

.cookie-bar {
  position: fixed;
  right: clamp(16px, 2.5vw, 32px);
  bottom: clamp(16px, 2.5vw, 32px);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: min(520px, calc(100vw - 32px));
  padding: 18px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 18px 50px rgba(22, 25, 27, 0.12);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  animation: cookie-in 700ms var(--ease-out) both;
}

@keyframes cookie-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-bar a {
  color: var(--sea);
  border-bottom: 1px solid currentColor;
}

.cookie-ok {
  flex: 0 0 auto;
  padding: 11px 24px;
  border: 0;
  border-radius: 999px;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 300ms ease;
}

.cookie-ok:hover {
  background: var(--sea);
}

/* ——— юридические страницы ——— */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 150px var(--gutter) 90px;
}

.legal-page h1 {
  font-size: clamp(30px, 4vw, 48px);
}

.legal-page h2 {
  margin-top: clamp(40px, 5vw, 56px);
  font-size: clamp(19px, 2vw, 24px);
  text-transform: none;
  letter-spacing: 0.02em;
}

.legal-page p,
.legal-page li {
  margin-top: 16px;
  color: var(--text);
}

.legal-page ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-page .legal-date {
  margin-top: 26px;
  color: var(--muted);
  font-size: 14px;
}

.legal-back {
  display: inline-block;
  margin-bottom: clamp(32px, 4vw, 48px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 300ms ease;
}

.legal-back:hover {
  color: var(--sea);
}

.legal-page a:not(.legal-back) {
  color: var(--sea);
  border-bottom: 1px solid currentColor;
}

/* ——— reveal ——— */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 1000ms var(--ease-out),
    transform 1200ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* заголовки: строки выезжают из маски */

.tline {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.tline-in {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 1200ms var(--ease-out);
}

.reveal.is-visible .tline-in {
  transform: translateY(0);
}

/* фото: шторка снизу вверх + лёгкий зум */

.photo.reveal {
  opacity: 1;
  transform: none;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1200ms var(--ease-out);
}

.photo.reveal img {
  transform: scale(1.12);
  transition: transform 1500ms var(--ease-out);
}

.photo.reveal.is-visible {
  clip-path: inset(0 0 0 0);
}

.photo.reveal.is-visible img {
  transform: scale(1);
}

.photo.reveal.is-visible:hover img {
  transform: scale(1.035);
}

/* ——— адаптив ——— */

@media (max-width: 1060px) {
  .site-nav {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    min-height: auto;
    padding-top: 130px;
  }

  .hero-product {
    width: min(100%, 420px);
  }

  .why-photos {
    margin-top: 0;
  }

  .keys,
  .gift,
  .craft,
  .why-body {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .keys-photo {
    aspect-ratio: 4 / 3;
  }

  .parallax {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .parallax-col:nth-child(3) {
    display: none;
  }

  .credits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .site-header {
    padding: 16px 20px;
  }

  .brand {
    gap: 9px;
    font-size: 13px;
    letter-spacing: 0.1em;
  }

  .brand img {
    width: 13px;
    height: 28px;
  }

  .hero h1 {
    font-size: clamp(42px, 13.2vw, 58px);
  }

  .hero-line {
    flex-wrap: wrap;
  }

  .hero-note {
    margin-top: 14px;
    font-size: clamp(34px, 10.5vw, 44px);
    white-space: normal;
    line-height: 1;
  }

  .hero-lead,
  .section-lead,
  .manifesto-body,
  .why-lead,
  .keys-copy > p,
  .gift-copy > p,
  .craft-note,
  .buy-note {
    font-size: 16px;
    line-height: 1.65;
  }

  /* «Чтобы море…»: фото после текста, перед цифрами, без кропа */
  .keys h2 {
    font-size: clamp(25px, 7vw, 30px);
  }

  .keys {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .keys-copy {
    display: contents;
  }

  .keys-copy .rose-mark {
    order: 1;
    margin-bottom: 0;
  }

  .keys-copy .section-head {
    order: 2;
    margin-bottom: 0;
  }

  .keys-copy > p {
    order: 3;
    margin: 0;
  }

  .keys-photo {
    order: 4;
    aspect-ratio: 3 / 4;
  }

  .keys-copy .specs {
    order: 5;
    margin-top: 0;
  }

  .hero-actions {
    flex-wrap: wrap;
    gap: 18px;
  }

  .live-wide {
    aspect-ratio: 3 / 2;
  }

  .with-you-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .why-list li {
    padding: 16px 0;
  }

  .why-list .is-final {
    padding-top: 30px;
  }

  .why-photos {
    gap: 14px;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .history-now-media {
    width: min(340px, 86%);
  }

  .parallax {
    grid-template-columns: 1fr;
  }

  .parallax-col:nth-child(2) {
    margin-top: 0;
  }

  .buy-actions {
    flex-direction: column;
    gap: 20px;
  }

  .credits {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-fine {
    flex-direction: column;
    gap: 12px;
  }

  .footer-fine-legal {
    text-align: left;
  }

  .footer-line {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .cookie-bar {
    right: 12px;
    left: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .auto-slider-track {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ——— интро: выбор музыки перед входом ——— */

html.gate-open,
html.gate-open body {
  overflow: hidden;
}

.intro-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: var(--paper);
  animation: gate-fade-in 600ms var(--ease-out) both;
}

.intro-gate[hidden] {
  display: none;
}

.intro-gate.is-closing {
  pointer-events: none;
  animation: gate-fade-out 550ms var(--ease) forwards;
}

/* мягкое морское свечение сверху */
.intro-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 85% at 50% 0%,
    var(--sea-soft) 0%,
    transparent 62%
  );
  opacity: 0.75;
  pointer-events: none;
}

.intro-card {
  position: relative;
  max-width: 540px;
  text-align: center;
  animation: gate-rise 800ms var(--ease-out) both 140ms;
}

.intro-logo {
  width: 52px;
  height: auto;
  margin: 0 auto 30px;
  opacity: 0.92;
}

.intro-eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.intro-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.intro-text {
  max-width: 430px;
  margin: 22px auto 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 42px;
}

.intro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 17px 40px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 300ms var(--ease),
    color 400ms var(--ease),
    background 400ms var(--ease),
    border-color 400ms var(--ease);
}

.intro-btn:active {
  transform: scale(0.96);
}

.intro-btn-primary {
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
}

.intro-btn-primary:hover {
  background: var(--sea);
  border-color: var(--sea);
}

.intro-btn-ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}

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

.intro-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.intro-btn-primary .intro-note {
  transform-origin: 50% 60%;
  animation: note-sway 2.4s ease-in-out infinite;
}

.intro-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 30px auto 0;
  color: var(--muted);
  font-size: 13px;
}

.intro-hint svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.8;
}

@keyframes gate-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes gate-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes gate-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .intro-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .intro-btn {
    width: 100%;
  }
}

/* ——— заказ брелка: поп-ап с формой ——— */

html.order-open,
html.order-open body {
  overflow: hidden;
}

.order-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: var(--gutter);
}

.order-modal[hidden] {
  display: none;
}

.order-overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 25, 27, 0.55);
  backdrop-filter: blur(6px);
  animation: gate-fade-in 350ms var(--ease-out) both;
}

.order-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: clamp(36px, 5vw, 52px);
  background: var(--paper);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(22, 25, 27, 0.04),
    0 24px 70px -24px rgba(22, 25, 27, 0.3),
    0 10px 28px -14px rgba(22, 25, 27, 0.16);
  animation: gate-rise 420ms var(--ease-out) both 60ms;
}

.order-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    background 200ms ease,
    color 200ms ease;
}

.order-close:hover {
  color: var(--ink);
  background: var(--sea-soft);
}

.order-close svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.order-eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.order-title {
  margin: 0 0 34px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.order-form {
  display: flex;
  flex-direction: column;
}

.order-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}

.order-field[hidden] {
  display: none;
}

.order-form > .order-field:first-child {
  margin-top: 0;
}

/* переход к новому смысловому блоку — доставка, контакты, примечание:
   более широкий отступ, чем между полями внутри одной группы */
.order-field-lead,
.order-contact-grid {
  margin-top: 40px;
}

.order-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.order-label span {
  opacity: 0.7;
}

.order-form input[type="text"],
.order-form input[type="tel"],
.order-form textarea {
  width: 100%;
  padding: 11px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  resize: none;
  transition: border-color 300ms var(--ease);
}

.order-form input:focus,
.order-form textarea:focus {
  border-color: var(--sea);
  outline: none;
}

.order-field-qty {
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.order-summary-label {
  flex: 1;
  color: var(--muted);
  font-size: 14px;
}

.order-total {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  font-weight: 500;
}

.order-qty {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.order-qty-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 200ms ease;
}

.order-qty-btn:hover {
  background: var(--sea-soft);
}

.order-qty-value {
  min-width: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
}

.order-delivery {
  display: flex;
  flex-direction: column;
  margin: 0 -12px;
}

.order-delivery-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 200ms ease;
}

.order-delivery-row:hover {
  background: var(--sea-soft);
}

.order-delivery-radio {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color 200ms ease;
}

.order-delivery-radio::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--sea);
  transform: scale(0);
  transition: transform 250ms var(--ease-spring);
}

.order-delivery-row.is-selected .order-delivery-radio {
  border-color: var(--sea);
}

.order-delivery-row.is-selected .order-delivery-radio::after {
  transform: scale(1);
}

.order-delivery-label {
  font-size: 15px;
  transition: color 200ms ease;
}

.order-delivery-row.is-selected .order-delivery-label {
  font-weight: 500;
}

.order-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.order-contact-grid .order-field {
  margin-top: 0;
}

.order-note {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.order-error {
  margin-top: 12px;
  color: #b5473f;
  font-size: 13px;
}

.order-submit {
  display: block;
  width: 100%;
  margin-top: 22px;
  padding: 17px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  appearance: none;
  transition:
    background 250ms ease,
    transform 300ms var(--ease);
}

.order-submit:hover {
  background: var(--sea);
}

.order-submit:active {
  transform: scale(0.98);
}

.order-submit.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.order-fallback {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.order-fallback:hover {
  color: var(--ink);
}

.order-step[data-order-step="success"] {
  text-align: center;
}

.order-success-text {
  max-width: 360px;
  margin: 0 auto 30px;
  color: var(--text);
  line-height: 1.7;
}

.order-success-note {
  margin: 0 0 34px;
  font-size: clamp(26px, 3vw, 32px);
  transform: rotate(-3deg);
  transform-origin: center;
}

@media (max-width: 480px) {
  .order-card {
    padding: 30px 22px;
  }

  .order-contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
