/* ============================================================
   VADIM KONOVALOV — DESIGN SYSTEM
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Manrope:wght@300;400;500;600;700&display=swap');

/* ── CSS VARIABLES ──────────────────────────────────────────── */
:root {
  /* Colors */
  --bg:            #F5F4F0;
  --bg-alt:        #EDECEA;
  --bg-dark:       #1C2B4A;
  --text-primary:  #1A1A1A;
  --text-secondary:#6B6460;
  --text-light:    #A09A96;
  --accent-gold:   #C9A96E;
  --accent-navy:   #1C2B4A;
  --accent-navy-light: #2A3F68;
  --white:         #FFFFFF;
  --border:        rgba(26,26,26,0.1);

  /* Typography */
  --font-serif:    'Manrope', 'Inter', system-ui, sans-serif;
  --font-sans:     'Manrope', 'Inter', system-ui, sans-serif;

  /* Spacing */
  --section-py:    clamp(80px, 10vw, 140px);
  --container-max: 1320px;
  --container-px:  clamp(20px, 5vw, 60px);

  /* Transitions */
  --ease-out:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 0.3s;
  --duration-med:  0.6s;
  --duration-slow: 0.9s;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;   /* on html, not body — fixes position:fixed on iOS Safari */
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;     /* clip (not hidden) avoids scroll-container that breaks fixed nav */
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── CUSTOM CURSOR ──────────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--accent-gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--ease-out),
              width 0.3s var(--ease-out),
              height 0.3s var(--ease-out),
              background 0.3s var(--ease-out);
  mix-blend-mode: multiply;
}

.cursor.cursor--hover {
  width: 48px;
  height: 48px;
  background: var(--accent-gold);
  opacity: 0.5;
}

.cursor.cursor--click {
  transform: translate(-50%, -50%) scale(0.8);
}

@media (hover: none) {
  .cursor { display: none; }
}

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

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 6vw, 6rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 600; }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; font-family: var(--font-sans); letter-spacing: 0.05em; text-transform: uppercase; }

/* em в заголовках — без наклона */
h1 em, h2 em, h3 em { font-style: normal; font-weight: inherit; }

p { font-size: clamp(0.95rem, 1.2vw, 1.05rem); color: var(--text-secondary); }

.label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ── SECTION HEADER ─────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-number {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-light);
  padding-top: 0.8rem;
  flex-shrink: 0;
  min-width: 2.5rem;
}

.section-line {
  width: 40px;
  height: 1px;
  background: var(--accent-gold);
  margin-top: 1.2rem;
  flex-shrink: 0;
}

/* ── REVEAL ANIMATIONS ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Text clip reveal */
.reveal-clip {
  overflow: hidden;
}
.reveal-clip .inner {
  display: block;
  transform: translateY(100%);
  transition: transform var(--duration-slow) var(--ease-out);
}
.reveal-clip.is-visible .inner {
  transform: translateY(0);
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 2px;
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-navy);
  color: var(--white);
  border: 1px solid var(--accent-navy);
}
.btn-primary:hover {
  background: var(--accent-navy-light);
  border-color: var(--accent-navy-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent-navy);
  color: var(--accent-navy);
  transform: translateY(-2px);
}

.btn-arrow::after {
  content: '→';
  transition: transform var(--duration-fast) var(--ease-out);
}
.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* ── HORIZONTAL RULE ─────────────────────────────────────────── */
.hr {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* ── SECTION BASE ────────────────────────────────────────────── */
.section {
  padding-block: var(--section-py);
}

.section--alt {
  background: var(--bg-alt);
}

.section--dark {
  background: var(--accent-navy);
  color: var(--white);
}

.section--dark p { color: rgba(255,255,255,0.7); }
.section--dark .label { color: rgba(255,255,255,0.4); }
.section--dark .section-number { color: rgba(255,255,255,0.3); }
.section--dark .hr { background: rgba(255,255,255,0.1); }

/* ── STAT BLOCK ──────────────────────────────────────────────── */
.stat-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1;
  color: var(--text-primary);
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ── DIVIDER LINE ────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-block: 32px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.divider-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-gold);
  flex-shrink: 0;
}

/* ── SCROLL INDICATOR ────────────────────────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: var(--container-px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}
.scroll-hint-arrow {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.scroll-hint-arrow span {
  width: 1px;
  background: var(--text-light);
  animation: scrollDrop 1.4s var(--ease-in-out) infinite;
}
.scroll-hint-arrow span:nth-child(1) { height: 8px; animation-delay: 0s; }
.scroll-hint-arrow span:nth-child(2) { height: 8px; animation-delay: 0.15s; }
.scroll-hint-arrow span:nth-child(3) { height: 8px; animation-delay: 0.3s; }

@keyframes scrollDrop {
  0%, 100% { opacity: 0.2; }
  50%       { opacity: 1; }
}

/* ── PAGE NUMBER ─────────────────────────────────────────────── */
.page-number {
  position: fixed;
  bottom: 32px;
  right: var(--container-px);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-light);
  z-index: 50;
  pointer-events: none;
}
.page-number .current {
  color: var(--text-primary);
  font-weight: 600;
}
.page-sep { color: var(--border); }

/* ── UTILITY ─────────────────────────────────────────────────── */
.text-gold   { color: var(--accent-gold); }
.text-navy   { color: var(--accent-navy); }
.text-muted  { color: var(--text-light); }
.fw-light    { font-weight: 300; }
.fw-medium   { font-weight: 500; }
.italic      { font-style: italic; }

/* Phone Description Mobile Fix */
.phone-desc {
  font-size: 0.85em;
  font-weight: 400;
}
.home-contact__ch-val .phone-desc {
  opacity: 0.7;
}
.contact-channel__value .phone-desc {
  color: var(--text-light);
}
@media (max-width: 768px) {
  .phone-desc {
    display: block;
    margin-top: 4px;
    line-height: 1.4;
  }
}
