/* ==========================================================================
   Елена Ликова — лендинг
   Песок + глубокий морской + бронза. Cormorant Garamond / Manrope.
   ========================================================================== */

:root {
  --ink: #14262B;
  --dark: #13262C;
  --dark-card: #1A3037;
  --sand: #F4EEE5;
  --sand-deep: #EAE2D5;
  --paper: #FBF8F2;
  --line: #DDD3C4;
  --muted: #56635F;
  --gold: #E0BE98;
  --dmuted: #A9B8B6;
  --dline: #2E4349;
  --accent: #8F5630;
  --accent-hover: #7A4826;

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Manrope', 'Segoe UI', system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 10vw, 128px);
  --header: 80px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* токены секции — переопределяются модификаторами .section--* */
  --bg: var(--sand);
  --fg: var(--ink);
  --fg-muted: var(--muted);
  --rule: var(--line);
  --tag: var(--accent);
  --card: var(--paper);
}

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

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

.wrap {
  width: min(100% - 2 * var(--gutter), 1200px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--sand);
  font-weight: 600;
  transition: top .2s;
}
.skip:focus { top: 16px; }

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

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tag);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  rotate: 45deg;
  background: currentColor;
}

.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.label--accent { color: var(--tag); }

.h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.01em;
  text-wrap: balance;
  color: var(--fg);
}

.lead {
  max-width: 560px;
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--fg-muted);
  text-wrap: pretty;
}

.arrow, .ico {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.arrow { width: 18px; height: 18px; stroke-width: 1.6; transition: translate .3s var(--ease); }
.ico { width: 22px; height: 22px; stroke-width: 1.5; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 32px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .02em;
  text-align: center;
  transition: background-color .25s, border-color .25s, color .25s, translate .25s var(--ease);
}
.btn:active { translate: 0 1px; }

.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn--ghost { border-color: color-mix(in srgb, var(--fg) 55%, transparent); color: var(--fg); }
.btn--ghost:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }

.btn--sm { min-height: 44px; padding: 8px 24px; font-size: 14px; }

/* ---------------------------------------------------------------- шапка */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  background: color-mix(in srgb, var(--sand) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }

.header__in {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
}

.nav { display: flex; gap: clamp(20px, 3vw, 40px); }
.nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 1px;
  background: var(--accent);
  scale: 0 1;
  transform-origin: left;
  transition: scale .35s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { scale: 1 1; }
.nav a.is-active { color: var(--accent); }

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.burger i {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: currentColor;
  transition: translate .3s var(--ease), rotate .3s var(--ease);
}
.burger i:first-child { top: 17px; }
.burger i:last-child { top: 26px; }
.burger[aria-expanded="true"] i:first-child { translate: 0 4.5px; rotate: 45deg; }
.burger[aria-expanded="true"] i:last-child { translate: 0 -4.5px; rotate: -45deg; }

/* ---------------------------------------------------------------- первый экран */

.hero { background: var(--sand); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
  padding-block: clamp(40px, 6vw, 72px) clamp(48px, 6vw, 72px);
}

.hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }

.hero__title {
  font-family: var(--serif);
  font-size: clamp(44px, 6.2vw, 80px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.hero__title em, .mission__text em { font-style: italic; color: var(--accent); }

.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; margin-top: 8px; }

.more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  font-size: 15px;
  font-weight: 600;
}
.more:hover .arrow { translate: 4px 0; }

.hero__photo {
  position: relative;
  justify-self: end;
  width: 100%;
  aspect-ratio: 11 / 14;
}
.hero__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  translate: -18px -18px;
  border: 1px solid var(--accent);
  border-radius: 999px 999px 0 0;
}
.hero__photo img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px 999px 0 0;
}

.creds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 40px;
  padding-block: 36px;
  border-top: 1px solid var(--line);
}
.creds li {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--serif);
  font-size: clamp(20px, 1.9vw, 23px);
  font-weight: 500;
  line-height: 1.2;
}
.creds li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  rotate: 45deg;
  background: var(--accent);
}

/* ---------------------------------------------------------------- секции */

.section {
  padding-block: var(--section);
  background: var(--bg);
  color: var(--fg);
}
.section--sand { --bg: var(--sand); --card: var(--paper); }
.section--paper { --bg: var(--paper); --card: var(--sand); }
.section--dark {
  --bg: var(--dark);
  --fg: var(--sand);
  --fg-muted: var(--dmuted);
  --rule: var(--dline);
  --tag: var(--gold);
  --card: var(--dark-card);
}

.head { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 24px); max-width: 920px; }
.head > header { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 24px); }

.head--media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  align-items: end;
  gap: clamp(32px, 6vw, 80px);
  max-width: none;
}
.head__img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 16px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  align-items: start;
  gap: clamp(40px, 6vw, 80px);
  margin-top: clamp(40px, 5vw, 64px);
}
.split--narrow { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); margin-top: clamp(40px, 6vw, 72px); }

.split__main { display: flex; flex-direction: column; gap: 24px; }

/* --- «вы получите»: карточки (инвестиции) */

.gains {
  counter-reset: item;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 48px;
}
.gains li {
  counter-increment: item;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.gains li::before, .steps li::before {
  content: counter(item, decimal-leading-zero);
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1;
  color: var(--tag);
}
.gains h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.1vw, 26px);
  font-weight: 500;
  line-height: 1.15;
}
.gains p { font-size: 15px; color: var(--fg-muted); text-wrap: pretty; }

/* --- «вы получите»: строки (оснащение, хоумстейджинг) */

.steps { counter-reset: item; border-bottom: 1px solid var(--rule); }
.steps li {
  counter-increment: item;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: clamp(16px, 2vw, 24px);
  row-gap: 6px;
  align-items: baseline;
  padding-block: clamp(20px, 2vw, 24px);
  border-top: 1px solid var(--rule);
}
.steps li > * { grid-column: 2; }
.steps li::before { grid-column: 1; grid-row: 1; }
.steps h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.1vw, 26px);
  font-weight: 500;
  line-height: 1.2;
  text-wrap: pretty;
}
.steps p { font-size: 15px; color: var(--fg-muted); }

/* --- заметка */

.note {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding: clamp(24px, 2.4vw, 28px) clamp(24px, 2.6vw, 32px);
  border-radius: 20px;
  background: var(--sand);
  font-size: 15px;
  color: var(--fg-muted);
  text-wrap: pretty;
}
.note--deep { background: var(--sand-deep); }
.note__big {
  font-family: var(--serif);
  font-size: clamp(36px, 3.6vw, 44px);
  font-weight: 500;
  line-height: 1.05;
  color: var(--fg);
}

/* --- прайс */

.price {
  position: sticky;
  top: calc(var(--header) + 24px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px;
  border: 1px solid var(--rule);
  border-radius: 24px;
  background: var(--card);
}

.price__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding-block: 18px;
  line-height: 1.4;
}
.price__list li + li { border-top: 1px solid var(--rule); }
.price__list b {
  font-family: var(--serif);
  font-size: clamp(24px, 2.1vw, 26px);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.price__list b i {
  font-family: var(--sans);
  font-size: .62em;
  font-weight: 500;
  font-style: normal;
}

.price__cta { display: flex; flex-direction: column; gap: 12px; }
.price__note { font-size: 13px; line-height: 1.5; color: var(--fg-muted); }

/* --- до / после */

.ba {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
  margin-top: clamp(40px, 5vw, 64px);
}
.ba__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  background: var(--sand-deep);
}
.ba__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 1.2s var(--ease);
}
.ba__item:hover img { scale: 1.03; }

.ba__item--after { border: 1px dashed #A2937B; }
.ba__item--after:has(img) { border: 0; }
.ba__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.chip {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- миссия */

.mission { padding-block: var(--section); background: var(--sand); }
.mission .wrap { display: flex; flex-direction: column; align-items: center; gap: clamp(24px, 3vw, 32px); }
.mission__text {
  max-width: 980px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}

/* ---------------------------------------------------------------- контакты */

.contacts { padding-bottom: 0; }

.contacts__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.contacts__text { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 24px); }
.contacts__text .h2 { max-width: 560px; }
.contacts__text .lead { max-width: 480px; }

.contacts__list { display: flex; flex-direction: column; gap: 12px; }

.contact {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: clamp(64px, 6vw, 72px);
  padding: 12px 28px;
  border: 1px solid color-mix(in srgb, var(--sand) 40%, transparent);
  border-radius: 999px;
  font-size: clamp(16px, 1.4vw, 17px);
  font-weight: 600;
  line-height: 1.25;
  transition: background-color .25s, border-color .25s, color .25s;
}
.contact span { flex: 1; }
.contact:hover { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.contact:hover .arrow { translate: 4px 0; }

.contact--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.contact--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: var(--section);
  padding-block: 24px;
  border-top: 1px solid var(--dline);
}
.footer .logo { font-size: 24px; }
.footer__tag { display: none; font-size: 13px; color: var(--dmuted); }
.footer__nav { display: flex; gap: 32px; }
.footer__nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--dmuted);
  transition: color .25s;
}
.footer__nav a:hover { color: var(--sand); }

/* ---------------------------------------------------------------- появление */

.js [data-reveal] {
  opacity: 0;
  translate: 0 24px;
  transition: opacity .9s var(--ease), translate .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; translate: none; }

@keyframes rise {
  from { opacity: 0; translate: 0 20px; }
}
.hero__text > *, .hero__photo, .creds { animation: rise 1s var(--ease) backwards; }
.hero__text > :nth-child(2) { animation-delay: .08s; }
.hero__text > :nth-child(3) { animation-delay: .16s; }
.hero__text > :nth-child(4) { animation-delay: .24s; }
.hero__photo { animation-delay: .2s; }
.creds { animation-delay: .4s; }

/* ---------------------------------------------------------------- планшет и телефон */

@media (max-width: 960px) {
  :root { --header: 64px; }

  .logo { font-size: 24px; }
  .header__cta { margin-left: auto; }
  .burger { display: block; }

  .nav {
    /* absolute, а не fixed: backdrop-filter у шапки делает её опорой для fixed-потомков */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--header));
    height: calc(100dvh - var(--header));
    flex-direction: column;
    gap: 0;
    padding: 16px var(--gutter) 32px;
    background: var(--sand);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    translate: 0 -12px;
    transition: opacity .3s, translate .3s var(--ease), visibility 0s .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; translate: none; transition-delay: 0s; }
  .nav a {
    min-height: 72px;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 30px;
  }
  .nav a::after { display: none; }

  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 36px 32px; }
  .hero__text { gap: 24px; }
  .hero__cta { flex-direction: column; align-items: stretch; align-self: stretch; gap: 4px; margin-top: 0; }
  .more { justify-content: center; }
  .hero__photo { justify-self: center; max-width: 440px; aspect-ratio: 342 / 400; }
  .hero__photo::before { display: none; }

  .creds { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 0 24px; border-top: 0; }
  .creds li { gap: 16px; padding-block: 18px; border-top: 1px solid var(--line); font-size: 21px; }

  .head--media { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .head--media .head__img { order: -1; max-width: 560px; aspect-ratio: 342 / 200; }

  .split, .split--narrow { grid-template-columns: minmax(0, 1fr); gap: 48px; }

  .price { position: static; padding: 0; border: 0; border-radius: 0; background: none; }

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

  .footer { flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 56px; padding-block: 24px 32px; }
  .footer__tag { display: block; }
  .footer__nav { display: none; }
}

@media (max-width: 640px) {
  .header__cta { padding-inline: 20px; }
  .gains { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ba { grid-template-columns: minmax(0, 1fr); }
  .ba__item { aspect-ratio: 342 / 240; }
  .btn { padding-inline: 24px; }
}

@media (max-width: 360px) {
  .header__cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; translate: none; }
}
