/* ─── Self-hosted fonts ─── */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  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: 'Playfair Display';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('../fonts/playfair-display-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('../fonts/playfair-display-latin.woff2') format('woff2');
  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: 'Playfair Display';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/playfair-display-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/playfair-display-italic-latin.woff2') format('woff2');
  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 {
  /* brand colours */
  --coral:        #ed6a5a;  --coral-hover: #c8503f;
  --coral-50:     #FAECE7;  --coral-800:   #712B13;
  --ash:          #9bc1bc;  --ash-hover:   #76a8a2;
  --ash-50:       #E1F5EE;  --ash-800:     #085041;
  --lemon:        #f4f1bb;  --lemon-hover: #dbd870;
  --lemon-50:     #fafae8;  --lemon-800:   #5a5420;

  /* keep hero tokens */
  --ink:     #2b1a0e;
  --ink-mid: #5c3a22;

  /* surface / text — match maket names exactly */
  --color-background-tertiary:  #f8f7f4;
  --color-background-primary:   #fff;
  --color-background-secondary: #f5f5f3;
  --color-text-primary:         #1a1a1a;
  --color-text-secondary:       #555;
  --color-text-tertiary:        #999;
  --color-text-danger:          #a32d2d;
  --color-text-success:         #27500a;
  --color-background-success:   #EAF3DE;
  --color-background-danger:    #FCEBEB;
  --color-border-tertiary:  rgba(0,0,0,0.12);
  --color-border-secondary: rgba(0,0,0,0.22);
  --color-border-success:   #97C459;
  --color-border-danger:    #E24B4A;
  --border:    0.5px solid var(--color-border-tertiary);
  --border-em: 0.5px solid var(--color-border-secondary);

  /* typography */
  --f-display: 'Playfair Display', Georgia, serif;
  --f-body:    'Manrope', system-ui, sans-serif;
  --fs-display: 40px;  --fs-h1: 32px;  --fs-h2: 24px;
  --fs-h3: 18px;  --fs-body: 16px;  --fs-ui: 14px;
  --fs-sm: 12px;  --fs-overline: 11px;
  --lh-display: 1.1;  --lh-heading: 1.2;
  --lh-sub: 1.35;  --lh-body: 1.7;  --lh-ui: 1.5;

  /* shape */
  --r-sm: 6px;  --r-md: 8px;  --r-lg: 12px;
  --r-xl: 16px;  --r-pill: 100px;

  /* spacing */
  --sp-4: 4px;  --sp-8: 8px;  --sp-12: 12px;
  --sp-16: 16px;  --sp-24: 24px;  --sp-32: 32px;  --sp-48: 48px;
}

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

html {
  scroll-behavior: smooth;
}

html, body {
  font-family: var(--f-body);
  background: var(--color-background-tertiary);
  color: var(--color-text-primary);
}

/* ── SHARED: overline pill ── */
.overline {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  font-size: var(--fs-overline);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-800);
  background: var(--coral-50);
  padding: 5px 16px;
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-16);
}
.overline::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

/* ── SHARED: section heading ── */
.section-heading {
  font-family: var(--f-display);
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: var(--lh-display);
  color: var(--color-text-primary);
  margin-bottom: var(--sp-48);
}

/* ── SHARED: section lead text ── */
.section-lead {
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: var(--lh-body);
  color: var(--color-text-secondary);
  max-width: 640px;
  margin-bottom: var(--sp-48);
}

/* ── HERO ── */

.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 480px;
  max-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f7f1dc; /* fallback пока грузится img */
}

.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: slowzoom 22s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes slowzoom {
  from { transform: scale(1.0); }
  to   { transform: scale(1.03); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    ellipse 65% 85% at 50% 50%,
    rgba(247, 241, 220, 0.82) 20%,
    rgba(247, 241, 220, 0.50) 55%,
    rgba(247, 241, 220, 0.05) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
  max-width: 680px;
  width: 100%;
}

.hero__eyebrow {
  font-family: "Manrope", sans-serif;
  font-weight: 400;
  font-size: clamp(9px, 1.1vw, 11px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}
.hero__eyebrow::before,
.hero__eyebrow::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--ink-mid);
  opacity: 0.4;
  vertical-align: middle;
  margin: 0 10px;
}

.hero__headline {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: clamp(26px, 4.2vw, 54px);
  line-height: 1.08;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.9s 0.4s forwards;
}
.headline-static { display: block; }

.word-switch {
  display: block;
  position: relative;
  height: 1.2em;
  overflow: hidden;
  width: 100%;
}

.word {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  color: var(--ink);
  white-space: nowrap;
  transform: translateY(120%);
  opacity: 0;
}
.word::after {
  content: ".";
  color: var(--coral);
  font-style: normal;
}

.word.is-shown {
  transform: translateY(0);
  opacity: 1;
}

.word.is-entering {
  animation: wIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.word.is-leaving {
  animation: wOut 0.35s cubic-bezier(0.55, 0, 0.78, 0) forwards;
}

@keyframes wIn {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes wOut {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(-120%); opacity: 0; }
}

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

@keyframes fadeUpDivider {
  from { opacity: 0;   transform: translateY(16px); }
  to   { opacity: 0.4; transform: translateY(0);    }
}

.hero__divider {
  width: 48px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--ink-mid), transparent);
  margin: 20px auto 18px;
  opacity: 0;
  animation: fadeUpDivider 0.9s 0.65s forwards;
}

.hero__sub {
  font-family: "Manrope", sans-serif;
  font-size: clamp(13px, 1.6vw, 17px);
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.6;
  opacity: 0;
  animation: fadeUp 0.9s 0.7s forwards;
}

.hero__cta {
  margin-top: 32px;
  opacity: 0;
  animation: fadeUp 0.9s 0.95s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 15px 36px;
  background: var(--coral);
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(
    0 0, calc(100% - 13px) 0, 100% 13px,
    100% 100%, 13px 100%, 0 calc(100% - 13px)
  );
  box-shadow: 0 6px 24px rgba(237, 106, 90, 0.30);
  white-space: nowrap;
  transition: background 0.25s, transform 0.2s;
}
.btn:hover {
  background: #d9503f;
  transform: translateY(-2px);
}

/* ── NAVBAR ── */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 64px;
  display: none; /* mobile-first: скрыт до 1024px */
  align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-nav--transparent {
  background: rgba(248,247,244,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: none;
}

.site-nav--solid {
  background: var(--color-background-tertiary);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.05);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.site-nav__links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-secondary);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.site-nav--transparent .site-nav__links a {
  color: var(--ink);
  font-weight: 500;
}

.site-nav__links a:hover {
  color: var(--coral);
}

.site-nav--transparent .site-nav__links a:hover {
  color: var(--coral);
}

.site-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--coral);
  color: #fff;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(
    0 0, calc(100% - 10px) 0, 100% 10px,
    100% 100%, 10px 100%, 0 calc(100% - 10px)
  );
  box-shadow: 0 4px 16px rgba(237,106,90,0.28);
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.site-nav__cta:hover {
  background: var(--coral-hover);
  transform: translateY(-1px);
}

@media (min-width: 1024px) {
  .site-nav { display: flex; }
}

/* ── RESPONSIVE ── */

.mobile-br { display: none; }

@media (max-width: 767px) {
  .mobile-br { display: inline; }

  .hero__eyebrow::before,
  .hero__eyebrow::after { display: none; }

  .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }
}
