@font-face {
  font-family: Gilroy;
  src: url('/assets/gilroy-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Gilroy;
  src: url('/assets/gilroy-medium.ttf') format('truetype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Gilroy;
  src: url('/assets/gilroy-semibold.ttf') format('truetype');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Gilroy;
  src: url('/assets/gilroy-bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Gilroy;
  src: url('/assets/gilroy-extrabold.ttf') format('truetype');
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: Lora;
  src: url('/assets/lora-italic-cyrillic.woff2') format('woff2');
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Lora;
  src: url('/assets/lora-italic-latin.woff2') format('woff2');
  font-style: italic;
  font-weight: 500;
  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;
}

:root {
  color-scheme: light;
  --cream: #fedcbf;
  --paper: #ffffff;
  --ink: #231f20;
  --muted: #57483e;
  --red: #ff0032;
  --red-dark: #d6002a;
  --brand-red: #ff0032;
  --peach: #eea86c;
  --yellow: #ebcf6a;
  --olive: #827139;
  --rust: #c96033;
  --line: #68553d33;
  --serif: Lora, Georgia, serif;
  font-family: Gilroy, system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
p, figure, h1, h2, h3 { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid #643b1d; outline-offset: 5px; }
section { scroll-margin-top: 24px; }

.shell {
  width: min(calc(100% - 112px), 1240px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 10px 14px;
  background: var(--paper);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header { min-height: 88px; border-bottom: 1px solid var(--line); }
.brands { display: inline-flex; align-items: center; gap: clamp(12px, 1.45vw, 21px); text-decoration: none; }
.sushi-mark {
  display: grid;
  align-items: center;
  background: var(--brand-red);
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 8px;
}
.sushi-mark img { display: block; width: clamp(88px, 9vw, 128px); height: auto; }
.brand-cross { font-size: 21px; color: var(--muted); line-height: 1; }
.selfmama-logo { display: block; width: clamp(105px, 10vw, 145px); height: auto; }
.header-nav { display: flex; align-items: center; gap: clamp(17px, 3vw, 41px); }
.header-nav a, .site-footer a { text-decoration: none; white-space: nowrap; font-size: 14px; font-weight: 650; }
.header-about:hover, .site-footer a:hover, .partner a:hover { text-decoration: underline; }
.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 14px;
  border: 1px solid var(--line);
  border-radius: 40px;
  transition: background-color .2s ease;
}
.header-link:hover { background: #ffffff; }
.header-link > span:last-child { margin-left: 7px; color: var(--red); }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
  padding-block: clamp(52px, 6.4vw, 97px) clamp(68px, 8vw, 112px);
}

h1 {
  font-size: clamp(54px, 6.55vw, 105px);
  line-height: .97;
  font-weight: 800;
  letter-spacing: -.035em;
}
h1 > span { display: block; }
h1 em, h2 em {
  font-style: normal;
  font-weight: 800;
}
h1 em {
  display: inline-block;
  margin-top: .02em;
  color: var(--red);
  letter-spacing: -.035em;
}
.lead {
  max-width: 435px;
  margin-top: clamp(23px, 3vw, 34px);
  color: var(--muted);
  font-size: clamp(17px, 1.62vw, 21px);
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  min-height: 55px;
  padding: 12px 22px;
  border: 0;
  border-radius: 42px;
  background: var(--red);
  color: #fffbf4;
  text-align: left;
  text-decoration: none;
  font-size: 19px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color .2s ease, box-shadow .25s ease, transform .25s ease;
}
.button:hover:not(:disabled) { background: var(--red-dark); }
.button:disabled { cursor: wait; opacity: .7; }
.button strong { font-weight: inherit; }
.button span { font-size: 21px; line-height: 1; transition: transform .25s ease; }
.hero-button { margin-top: 29px; }

.hero-art { isolation: isolate; position: relative; }
.hero-art::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -7px 14px 8px 4px;
  border: 1px solid #7c61377a;
  border-radius: 43% 48% 44% 48% / 33% 38% 34% 37%;
  transform: rotate(-6deg);
}
.hero-art picture { display: block; }
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.14;
  object-fit: cover;
  object-position: 50% 51%;
  border-radius: 42% 44% 36% 31% / 25% 27% 24% 24%;
}

.letter-section { background: #ffffff; border-block: 1px solid #ff003222; padding-block: clamp(54px, 7vw, 94px); }
.letter-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(32px, 7vw, 96px);
}
.letter-intro { padding-top: 18px; }
h2 { font-size: clamp(43px, 5.3vw, 78px); line-height: 1; letter-spacing: -.035em; font-weight: 800; }
h2 em { color: var(--red); }
.letter-intro > p {
  max-width: 360px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
}
.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  max-width: 360px;
  margin-top: 31px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.privacy-note strong { display: block; margin-bottom: 3px; color: var(--ink); font-weight: 700; }
.lock-icon { flex: none; position: relative; width: 14px; height: 11px; margin-top: 8px; border: 1.5px solid var(--red); border-radius: 3px; }
.lock-icon::before {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 100%;
  height: 6px;
  border: 1.5px solid var(--red);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}

.brand-shapes { display: flex; align-items: center; gap: 3px; margin-top: clamp(28px, 5.4vw, 78px); }
.brand-shapes i { flex: 0 1 62px; aspect-ratio: 1; border-radius: 48% 50% 43% 49%; background: var(--rust); }
.brand-shapes i:nth-child(2) { flex-basis: 72px; border-radius: 43% 46% 48% 41%; background: var(--yellow); }
.brand-shapes i:nth-child(3) { background: var(--peach); }
.brand-shapes i:nth-child(4) { flex-basis: 120px; aspect-ratio: 2.03; border-radius: 48% 50% 43% 46%; background: var(--olive); }

.letter-card {
  min-width: 0;
  padding: clamp(22px, 3.5vw, 44px);
  border: 1px solid #ff003233;
  border-radius: 23px;
  background: var(--cream);
  box-shadow: 0 14px 34px #75402612;
}
.writing-area { margin-bottom: 23px; }
.writing-area > label, .email-label { display: block; margin-bottom: 10px; font-weight: 700; }
.writing-area > label {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 23px/1.15 Gilroy, system-ui, sans-serif;
  letter-spacing: -.035em;
}
.writing-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 48% 50% 43% 49%;
  background: #f4dfb1;
  color: var(--red);
  font: 18px/1 system-ui, sans-serif;
}
.preview-note { margin: 0 0 15px; color: var(--muted); font-size: 13px; }
.paper {
  position: relative;
  --line-height: 33px;
  border: 1px solid #cbbba6;
  border-radius: 10px;
  background: linear-gradient(90deg, transparent 15px, #bf6b6857 15px 16px, transparent 16px),
    repeating-linear-gradient(to bottom, transparent 0 31px, #b58e6050 31px 32px, transparent 32px var(--line-height))
    0 12px / 100% 100% no-repeat #fff8e5;
}
.paper:focus-within {
  border-color: #a63c4b;
  outline: 2px solid #643b1d;
  outline-offset: 2px;
}
.paper.is-dissolving textarea {
  mask-image: linear-gradient(90deg, transparent 38%, #0005 49%, #000 60%);
  mask-size: 300% 100%;
  mask-position: 100% 0;
  mask-repeat: no-repeat;
  resize: none;
}
.ink-dust {
  position: absolute;
  z-index: 1;
  inset: -36px 0 0;
  width: 100%;
  height: calc(100% + 36px);
  opacity: 0;
  pointer-events: none;
}
.paper.is-dissolving .ink-dust { opacity: 1; }
textarea, input[type="email"] {
  display: block;
  width: 100%;
  border: 1px solid #cbbba6;
  border-radius: 10px;
  background: #fffcf5;
  color: var(--ink);
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.7;
}
textarea {
  min-height: 155px;
  resize: vertical;
  padding: 12px 16px 12px 28px;
  border: 0;
  outline: none;
  background: transparent;
  color: #622a30;
  font: italic 500 20px/var(--line-height) var(--serif);
  letter-spacing: -.025em;
}
textarea::placeholder, input::placeholder { color: #786759; opacity: 1; }
.starters { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 10px; }
.starters button {
  min-height: 35px;
  border: 1px solid #cebda8;
  border-radius: 30px;
  padding: 5px 10px;
  background: transparent;
  color: #72523b;
  font-size: 13px;
  cursor: pointer;
}
.starters button:hover { background: var(--cream); }

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 13px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}
.check input { width: 17px; height: 17px; flex: none; margin: 2px 0 0; accent-color: var(--red); }
.check a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: .14em; }
.submit { width: 100%; margin-top: 20px; }
.status:empty { display: none; }
.status { margin-top: 13px; padding: 11px 13px; border-radius: 9px; background: #f5e8ca; line-height: 1.5; font-size: 14px; font-weight: 650; }
.status[data-state="error"] { color: var(--red); background: #f9e5dc; }

.about-section { padding-block: clamp(60px, 7.5vw, 106px) clamp(56px, 7vw, 92px); }
.about-section h2 { margin-bottom: 31px; }
.partner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.partner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 3.6vw, 46px);
  border-radius: 23px;
  border: 1px solid transparent;
}
.partner-sushi { color: #ffffff; background: var(--red); }
.partner-sushi p { font-size: 18px; font-weight: 600; }
.partner-selfmama { color: var(--ink); background: var(--yellow); border-color: #bd9c4f46; }
.partner-mark { display: flex; align-items: center; height: 51px; }
.partner-mark img { display: block; width: 153px; height: auto; }
.partner h3 { margin: 23px 0 9px; font-weight: 700; font-size: clamp(24px, 2.7vw, 39px); letter-spacing: -.055em; line-height: 1.1; }
.partner p { max-width: 420px; margin-bottom: 24px; font-size: 16px; line-height: 1.6; }
.partner a { margin-top: auto; font-weight: 650; font-size: 14px; text-underline-offset: 3px; }
.partner a span { margin-left: 4px; }

.site-footer { min-height: 79px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--muted); }
.site-footer a span { margin-left: 5px; color: var(--red); }

@media (max-width: 1024px) {
  .shell { width: calc(100% - 72px); }
  .hero { gap: 35px; }
}

@media (max-width: 760px) {
  .shell { width: calc(100% - 48px); }
  .header-about { display: none; }
  .hero { gap: 27px; grid-template-columns: 1fr 1fr; }
  h1 { font-size: clamp(42px, 7.3vw, 59px); }
  .letter-layout { gap: 26px; }
}

@media (max-width: 620px) {
  .shell { width: calc(100% - 36px); }
  .site-header { min-height: 72px; gap: 9px; }
  .brands { gap: 9px; }
  .sushi-mark { min-height: 33px; padding: 6px 9px; border-radius: 6px; }
  .sushi-mark img { width: 81px; }
  .brand-cross { font-size: 17px; }
  .selfmama-logo { width: 92px; }
  .header-nav .header-link { padding-inline: 9px; font-size: 13px; min-height: 40px; }
  .header-link > span:last-child { margin-left: 4px; }
  .wide-label { display: none; }
  .hero, .letter-layout, .partner-grid { grid-template-columns: 1fr; }
  .hero { gap: 36px; padding-block: 41px 51px; }
  h1 { font-size: clamp(47px, 12.2vw, 74px); }
  .lead { margin-top: 20px; }
  .hero-button { margin-top: 22px; }
  .hero-art { margin-inline: 6px; }
  .hero-art img { aspect-ratio: .8; }
  .letter-intro { padding-top: 0; }
  .letter-intro > p { margin-top: 15px; }
  .privacy-note { margin-top: 20px; padding-top: 13px; }
  .brand-shapes { display: none; }
  .about-section h2 { margin-bottom: 24px; }
}

@media (max-width: 360px) {
  .brands { gap: 7px; }
  .sushi-mark img { width: 70px; }
  .selfmama-logo { width: 76px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-art { animation: arrive .65s cubic-bezier(.2, .7, .24, 1) backwards; }
  .hero-copy h1 { animation-delay: .08s; }
  .hero-copy .lead { animation-delay: .14s; }
  .hero-copy .hero-button { animation-delay: .20s; }
  .hero-art { animation-delay: .12s; }
  .status[data-state="success"] { animation: arrive .35s ease-out; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 18px #75402629; }
  .hero-button:hover span { transform: translate(2px, 2px); }
  .submit:hover:not(:disabled) span { transform: translate(2px, -2px); }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .button, .button span, .header-link { transition: none; }
  .ink-dust { display: none; }
}

@keyframes arrive {
  from { opacity: .35; transform: translateY(11px); }
  to { opacity: 1; transform: translateY(0); }
}

.safe-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
.safe-note .lock-icon { margin-top: 7px; }
.partner p + p { margin-top: -10px; }

/* ===== Editorial layer: спокойная, «журнальная» подача ===== */
:root { --ease: cubic-bezier(.22, .8, .2, 1); }
body { overflow-x: clip; }

/* Хедер: закрепляется и получает белую подложку при прокрутке */
.site-header { position: sticky; top: 0; z-index: 10; transition: min-height .4s var(--ease); }
.site-header::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 calc(50% - 50vw);
  background: #fedcbfe6;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity .4s ease;
}
.is-scrolled .site-header { min-height: 70px; border-bottom-color: transparent; }
.is-scrolled .site-header::before { opacity: 1; box-shadow: 0 1px 0 #23191414; }

/* Первый экран: крупная типографика и спокойное фото */
.hero { grid-template-columns: 1.02fr .98fr; align-items: end; padding-block: clamp(48px, 6vw, 88px) clamp(72px, 8vw, 120px); }
h1 { font-size: clamp(56px, 7.4vw, 118px); line-height: .94; letter-spacing: -.045em; }
h1 .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
h1 .line > * { display: inline-block; }
h1 em { margin-top: 0; }
.lead { max-width: 470px; color: #3d302a; }
.hero-copy { padding-bottom: clamp(8px, 2vw, 28px); }

.hero-art::before { display: none; }
.hero-art picture { overflow: hidden; border-radius: 28px; }
.hero-art img { border-radius: 28px; aspect-ratio: 1.14; transform-origin: 60% 40%; }

/* Секции и карточки — плоские, с аккуратными границами */
.letter-section { border-block: 0; }
.letter-card { border: 1px solid #23191414; box-shadow: 0 30px 60px -36px #4a1d1440; }
.partner { border-radius: 28px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.partner-selfmama { border-color: transparent; }
@media (hover: hover) {
  .partner:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px #4a1d1455; }
}
.button { box-shadow: 0 10px 24px -12px #ff003299; }

@media (max-width: 620px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .hero-art img, .hero-art picture { border-radius: 22px; }
  .hero-art img { aspect-ratio: .8; }
}

/* ===== Движение: только при разрешённой анимации ===== */
@media (prefers-reduced-motion: no-preference) {
  /* перекрываем старые входные анимации героя */
  .hero-copy > *, .hero-art { animation: none; }

  h1 .line > * { animation: line-up 1s var(--ease) backwards; }
  h1 .line:nth-child(2) > * { animation-delay: .12s; }

  .hero-art picture { animation: unveil 1.2s .15s var(--ease) backwards; }
  .hero-art img { animation: settle-in 1.8s .15s var(--ease) backwards; }

  .motion-ready [data-reveal]:not(.is-in) { opacity: 0; translate: 0 24px; }
  [data-reveal] { transition: opacity .9s var(--ease) var(--delay, 0s), translate .9s var(--ease) var(--delay, 0s); }
  [data-delay] { --delay: .12s; }
  .hero .lead[data-reveal] { --delay: .25s; }
  .hero .hero-button[data-reveal] { --delay: .35s; }

  .motion-ready .letter-intro:not(.is-in) .brand-shapes i { transform: scale(.6); opacity: 0; }
  .brand-shapes i { transition: transform .8s var(--ease), opacity .8s var(--ease); }
  .brand-shapes i:nth-child(2) { transition-delay: .06s; }
  .brand-shapes i:nth-child(3) { transition-delay: .12s; }
  .brand-shapes i:nth-child(4) { transition-delay: .18s; }
}

@keyframes line-up { from { transform: translateY(105%); } }
@keyframes unveil { from { clip-path: inset(100% 0 0 0 round 28px); } to { clip-path: inset(0 0 0 0 round 28px); } }
@keyframes settle-in { from { transform: scale(1.14); } }

/* Карточка Селфмамы: цифра, кнопка и сноска */
.partner-stat { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 26px; }
.partner .partner-stat { margin-top: 2px; }
.partner-stat strong { font-size: clamp(44px, 4.6vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.partner-stat span { font-size: 16px; font-weight: 600; line-height: 1.3; max-width: 140px; }
.partner a.partner-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  margin-top: auto;
  padding: 12px 22px;
  border-radius: 40px;
  background: var(--ink);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .25s ease, transform .25s ease;
}
.partner a.partner-cta:hover { background: #000000; text-decoration: none; transform: translateY(-2px); }
.partner a.partner-cta span { margin-left: 0; }
.partner .partner-footnote { margin: 16px 0 0; max-width: 360px; font-size: 13px; line-height: 1.5; opacity: .8; }
