/* ══════════════════════════════════════════════════════
   main.css — Design Tokens, Reset, Base Typography
   Ресничное бюро
══════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────── */
:root {
  /* Colors */
  --c-cream:      #FAF7F2;
  --c-cream-d:    #F2EDE4;
  --c-cream-dd:   #EAE2D6;
  --c-blush:      #E8C4BC;
  --c-blush-l:    #F5E3DF;
  --c-champagne:  #EAD9B8;
  --c-gold:       #C9A96E;
  --c-gold-d:     #A0784A;
  --c-gold-l:     #E8D5B0;
  --c-gold-xl:    #F3EBD8;
  --c-text:       #2C2420;
  --c-text-2:     #6B5E58;
  --c-text-3:     #A09590;
  --c-white:      #FFFFFF;
  --c-dark:       #1E1814;

  /* Overlay / Shadow */
  --c-overlay:    rgba(30, 24, 20, 0.55);
  --c-shadow:     rgba(44, 36, 32, 0.10);
  --c-shadow-d:   rgba(44, 36, 32, 0.22);
  --c-shadow-xl:  rgba(44, 36, 32, 0.32);

  /* Fonts */
  --ff-display: 'Jost', 'Century Gothic', Futura, sans-serif;
  --ff-heading: 'Jost', 'Century Gothic', Futura, sans-serif;
  --ff-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Type scale */
  --fs-xs:   0.6875rem;   /* 11px */
  --fs-sm:   0.8125rem;   /* 13px */
  --fs-base: 1rem;        /* 16px */
  --fs-md:   1.125rem;    /* 18px */
  --fs-lg:   1.25rem;     /* 20px */
  --fs-xl:   1.5rem;      /* 24px */
  --fs-2xl:  2rem;        /* 32px */
  --fs-3xl:  clamp(1.75rem, 4vw, 2.75rem);
  --fs-4xl:  clamp(2rem, 5vw, 3.5rem);
  --fs-hero: clamp(2.8rem, 9vw, 6.5rem);

  /* Spacing (8px grid) */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 5rem;
  --sp-8: 6rem;
  --sp-9: 8rem;

  /* Border radius */
  --r-sm:   4px;
  --r-md:   10px;
  --r-lg:   20px;
  --r-xl:   32px;
  --r-pill: 999px;

  /* Transitions */
  --t-fast: 180ms ease;
  --t-base: 340ms ease;
  --t-slow: 600ms cubic-bezier(0.22, 1, 0.36, 1);
  --t-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index */
  --z-float:   50;
  --z-loader:  900;
  --z-header:  800;
  --z-overlay: 700;
  --z-dropdown: 600;

  /* Layout */
  --max-w:    1200px;
  --max-w-sm: 780px;
  --gutter:   clamp(1rem, 4vw, 2rem);
  --section-py: clamp(4rem, 8vw, 7rem);
  --header-h: 88px;
}

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

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

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--c-text);
  background-color: var(--c-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.loading {
  overflow: hidden;
}

body.menu-open {
  overflow: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

address {
  font-style: normal;
}

/* ── Focus styles ───────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ── Base Typography ────────────────────────────────── */
/* Jost ExtraLight — единый шрифт заголовков под стиль логотипа */
h1, h2, h3, h4 {
  font-family: 'Jost', 'Century Gothic', Futura, sans-serif;
  line-height: 1.12;
  font-weight: 200;
  font-style: normal !important;
  color: var(--c-text);
}

h1 {
  font-size: var(--fs-hero);
  font-weight: 200;
  letter-spacing: 0.08em;
}

h2 {
  font-size: var(--fs-4xl);
  font-weight: 300;
  letter-spacing: 0.05em;
}

h3 {
  font-family: 'Jost', 'Century Gothic', Futura, sans-serif;
  font-size: var(--fs-lg);
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* em внутри заголовков — средний вес, без курсива */
h1 em, h2 em, h3 em {
  font-family: inherit;
  font-style: normal !important;
  font-weight: 500;
  letter-spacing: 0.1em;
}

p {
  color: var(--c-text-2);
  max-width: 65ch;
}

/* ── Utilities ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-py);
}

.section--alt {
  background-color: var(--c-cream-d);
}

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

.text-center {
  text-align: center;
}

.section-title {
  font-size: var(--fs-4xl);
  margin-top: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.section-title--light {
  color: var(--c-cream);
}

/* em в светлом заголовке — золотистый */
.section-title--light em {
  color: var(--c-gold-l);
}

/* Eyebrow label */
.eyebrow {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.eyebrow--light {
  color: var(--c-gold-l);
}

.text-center .eyebrow,
.eyebrow.text-center {
  display: block;
}

/* Gold decorative line */
.gold-line {
  width: 60px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--c-gold) 0%, var(--c-champagne) 100%);
  margin-block: var(--sp-2);
  border: none;
}

.gold-line.center {
  margin-inline: auto;
}

/* Price display */
.price {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--c-text);
  white-space: nowrap;
}

/* Visually hidden (accessibility) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Floating WhatsApp CTA */
.float-cta {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: var(--z-float);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--c-gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.5);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.float-cta:hover {
  background-color: var(--c-gold-d);
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 169, 110, 0.6);
}

/* iframe wrapper */
iframe {
  border-radius: var(--r-lg);
  border: none;
  display: block;
  width: 100%;
}

/* ── Cookie Banner (ФЗ-152) ─────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: calc(var(--z-overlay) + 10);
  background-color: var(--c-dark);
  border-top: 1px solid rgba(201, 169, 110, 0.2);
  transform: translateY(0);
  transition: transform var(--t-slow), opacity var(--t-slow);
}

.cookie-banner.cookie-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: var(--sp-3) var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  min-width: 240px;
  font-size: var(--fs-sm);
  color: rgba(250, 247, 242, 0.75);
  line-height: 1.6;
  max-width: none;
  margin: 0;
}

.cookie-banner__text a {
  color: var(--c-gold-l);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--sp-2);
  flex-shrink: 0;
}

.cookie-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  transition: background-color var(--t-fast), color var(--t-fast);
  text-decoration: none;
}

.cookie-banner__btn--accept {
  background-color: var(--c-gold);
  color: var(--c-white);
}

.cookie-banner__btn--accept:hover {
  background-color: var(--c-gold-d);
}

.cookie-banner__btn--more {
  background-color: transparent;
  color: rgba(250, 247, 242, 0.6);
  border: 1px solid rgba(250, 247, 242, 0.2);
}

.cookie-banner__btn--more:hover {
  color: var(--c-white);
  border-color: rgba(250, 247, 242, 0.5);
}

/* ── Footer legal ───────────────────────────────────── */
.footer__legal {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  align-items: center;
  text-align: center;
}

.footer__legal-links {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  font-size: var(--fs-xs);
  color: rgba(250, 247, 242, 0.4);
}

.footer__legal-links a {
  color: rgba(250, 247, 242, 0.55);
  transition: color var(--t-fast);
}

.footer__legal-links a:hover {
  color: var(--c-gold-l);
}

.footer__pd-note {
  font-size: var(--fs-xs);
  color: rgba(250, 247, 242, 0.35);
  line-height: 1.6;
  max-width: 60ch;
  margin: 0 auto;
}

.footer__pd-note a {
  color: rgba(250, 247, 242, 0.5);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__pd-note a:hover {
  color: var(--c-gold-l);
}

/* ── Booking PD consent ─────────────────────────────── */
.booking__pd-consent {
  font-size: var(--fs-xs);
  color: rgba(250, 247, 242, 0.4);
  text-align: center;
  max-width: 52ch;
  margin: var(--sp-2) auto 0;
  line-height: 1.6;
}

.booking__pd-consent a {
  color: rgba(250, 247, 242, 0.6);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.booking__pd-consent a:hover {
  color: var(--c-gold-l);
}
