/* ============================================================
   VALERIE — style.css
   Все стили сайта. Структура:
   1. CSS-переменные (цвета, шрифты)
   2. Базовые стили (body, page)
   3. Хедер и фото
   4. Имя и бейдж
   5. Лид-магнит блок
   6. Статистика
   7. Кнопки
   8. Соцсети (pills)
   9. Футер
   10. Фоновый слайдер (мобильный)
   11. Instagram Gate (заглушка)
   12. Desktop Layout (от 1024px)
   13. Мобильный landscape fix
   ============================================================ */


/* ── 1. CSS-ПЕРЕМЕННЫЕ ──────────────────────────────────────
   Меняй цвета здесь — применятся везде на сайте           */
:root {
  --bg:        #f5f0ea;   /* основной фон */
  --bg2:       #ede7df;   /* фон по бокам на десктопе */
  --cream:     #faf7f3;   /* светлый кремовый */
  --ink:       #1a1410;   /* основной тёмный цвет */
  --ink2:      #4a3f35;   /* вторичный тёмный */
  --gold:      #b8935a;   /* золотой акцент */
  --gold-lt:   #d4aa72;   /* светлое золото */
  --divider:   #d8cfc5;   /* цвет разделителей */
  --btn-bg:    #1a1410;   /* фон кнопок */
  --btn-fg:    #faf7f3;   /* текст кнопок */
  --pill-bg:   #e8e0d6;   /* фон pill-кнопок соцсетей */
  --pill-fg:   #4a3f35;   /* текст pill-кнопок */
  --accent:    #b8935a;   /* акцентный цвет */
  --font-head: 'Bebas Neue', sans-serif;  /* шрифт заголовков */
  --font-body: 'DM Sans', sans-serif;     /* шрифт текста */
}


/* ── 2. БАЗОВЫЕ СТИЛИ ───────────────────────────────────────*/
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Скрывает контент пока идёт гео-проверка (чёрный экран) */
body.geo-pending * {
  visibility: hidden !important;
  pointer-events: none !important;
}
body.geo-pending {
  background: #000 !important;
  visibility: visible !important;
}

/* Основной контейнер страницы */
.page {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

/* Mobile: страница зафиксирована на весь экран */
@media (max-width: 767px) {
  html, body {
    height: 100%;
    overflow: hidden;
  }
  .page {
    position: fixed;
    inset: 0;
    max-width: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}


/* ── 3. ХЕДЕР И ФОТО ────────────────────────────────────────*/
.header {
  position: relative;
  width: 100%;
  min-height: 54vh;  /* высота хедера — меняй под своё фото */
  overflow: hidden;
}

/* Фото скрыто — фон идёт через слайдер (body::before на мобильном) */
.header-photo {
  display: none;
}

/* Градиентный оверлей поверх фото — плавный переход к контенту */
.header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26,20,16,.06) 0%,
    rgba(26,20,16,.0) 40%,
    rgba(245,240,234,.72) 82%,
    var(--bg) 100%
  );
  pointer-events: none;
}


/* ── 4. ИМЯ И БЕЙДЖ ─────────────────────────────────────────*/
.name-block {
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  padding: 0 24px 28px;
  z-index: 2;
}

/* Большое имя поверх фото */
.name-block h1 {
  font-family: var(--font-head);
  font-size: clamp(72px, 22vw, 104px);
  line-height: .9;
  letter-spacing: .02em;
  color: #fff;              /* белый на фото-фоне */
  text-transform: uppercase;
  mix-blend-mode: normal;
  opacity: 1;
}

/* Акцентная часть имени — золотой цвет */
.name-block h1 span {
  color: var(--gold);
}

/* Бейдж "Verified Creator" */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: var(--btn-fg);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.badge svg {
  width: 10px;
  height: 10px;
  fill: var(--gold-lt);
}


/* ── 5. ЛИД-МАГНИТ ──────────────────────────────────────────
   Блок "No managers. Just me." между фото и статистикой    */
.lead {
  margin: 20px 24px 0;
  padding: 14px 18px;
  background: var(--ink);
  color: var(--btn-fg);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lead-icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
}

.lead-text {
  flex: 1;
}

.lead-title {
  font-family: var(--font-head);
  font-size: 18px;
  letter-spacing: .06em;
  color: var(--gold-lt);
  line-height: 1;
  margin-bottom: 4px;
}

.lead-sub {
  font-size: 11px;
  opacity: .6;
  letter-spacing: .05em;
  line-height: 1.4;
}


/* ── 6. СТАТИСТИКА ───────────────────────────────────────────
   Полоска с тремя показателями: 18+ / Daily / DM           */
.stats {
  display: flex;
  align-items: stretch;
  border-top: 1px solid rgba(255,255,255,.2);
  border-bottom: 1px solid rgba(255,255,255,.2);
  margin: 0 24px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border-radius: 6px;
}

.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px;
  gap: 3px;
}

.stat + .stat {
  border-left: 1px solid rgba(255,255,255,.2);
}

.stat-val {
  font-family: var(--font-head);
  font-size: 22px;
  letter-spacing: .05em;
  color: #fff;
}

.stat-lbl {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  opacity: 1;
}


/* ── 7. КНОПКИ ───────────────────────────────────────────────*/
.buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px 8px;
}

/* Базовая кнопка */
.btn {
  display: flex;
  align-items: center;
  text-decoration: none;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: 4px;
  padding: 15px 20px;
  transition: transform .18s, background .18s;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(.97);
}

/* Иконка слева */
.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 3px;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  flex-shrink: 0;
}

.btn-icon svg {
  width: 17px;
  height: 17px;
  fill: var(--gold-lt);
}

.btn-text {
  flex: 1;
}

.btn-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
}

.btn-sub {
  font-size: 10px;
  opacity: .55;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 1px;
}

.btn-arrow {
  margin-left: 12px;
  opacity: .45;
  font-size: 18px;
  line-height: 1;
}

/* Акцентная кнопка (OnlyFans) */
.btn-accent {
  background: var(--gold);
  color: var(--ink);
}

.btn-accent .btn-icon {
  background: rgba(0,0,0,.1);
}

.btn-accent .btn-icon svg {
  fill: var(--ink);
}

.btn-accent .btn-sub {
  opacity: .6;
}

/* Кнопка OnlyFans — лого сверху, текст снизу */
.btn-of-layout {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 20px;
}

/* Контейнер лого OnlyFans */
.btn-icon-of {
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-right: 0 !important;
  display: flex;
  align-items: center;
}

/* Лого с анимацией переливания синим */
.btn-icon-of img {
  height: 26px;
  width: auto;
  display: block;
  position: relative;
  z-index: 1;
  animation: of-hue 3s linear infinite;
}

/* Анимация переливания лого */
@keyframes of-hue {
  0%   { filter: hue-rotate(0deg)   saturate(1.4) brightness(1.1) drop-shadow(0 0 6px rgba(0,175,240,.7)); }
  25%  { filter: hue-rotate(30deg)  saturate(1.6) brightness(1.2) drop-shadow(0 0 10px rgba(0,220,255,.9)); }
  50%  { filter: hue-rotate(200deg) saturate(1.8) brightness(1.3) drop-shadow(0 0 14px rgba(0,120,255,1)); }
  75%  { filter: hue-rotate(30deg)  saturate(1.6) brightness(1.2) drop-shadow(0 0 10px rgba(0,220,255,.9)); }
  100% { filter: hue-rotate(0deg)   saturate(1.4) brightness(1.1) drop-shadow(0 0 6px rgba(0,175,240,.7)); }
}

.btn-of-layout .btn-text {
  width: 100%;
}

.btn-of-layout .btn-arrow {
  display: none;
}


/* ── 8. СОЦСЕТИ (PILLS) ─────────────────────────────────────*/
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 24px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--pill-bg);
  color: var(--pill-fg);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  padding: 8px 14px;
  border-radius: 100px;
  transition: background .15s, color .15s;
}

.pill:active {
  background: var(--ink);
  color: var(--btn-fg);
}

.pill svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}


/* ── 9. ФУТЕР ───────────────────────────────────────────────*/
.footer {
  margin-top: 16px;
  padding: 28px 24px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 10px;
  color: rgba(255,255,255,.5);
  opacity: 1;
  letter-spacing: .04em;
}

.footer-18 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #fff;
  background: rgba(255,255,255,.2);
  padding: 4px 9px;
  border-radius: 3px;
}


/* ── 10. ФОНОВЫЙ СЛАЙДЕР (только мобильный) ────────────────
   Три фото чередуются каждые 3 сек, эффект слайда влево   */
.bg-slide {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  filter: brightness(.45) saturate(.8);
  z-index: 0;
  transition: transform .7s cubic-bezier(.77,0,.18,1), opacity .7s ease;
  will-change: transform, opacity;
}

.bg-slide.active { transform: translateX(0);    opacity: 1; }
.bg-slide.prev   { transform: translateX(-100%); opacity: 0; }
.bg-slide.next   { transform: translateX(100%);  opacity: 0; }

/* Точки-индикаторы слайдера */
.slider-dots {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.slider-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  transition: background .3s, transform .3s;
}

.slider-dots span.on {
  background: #fff;
  transform: scale(1.3);
}


/* ── 11. INSTAGRAM GATE ─────────────────────────────────────
   Экран-заглушка при открытии из Instagram                 */
.ig-gate {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  text-align: center;
}

.ig-gate.show { display: flex; }

.ig-gate-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 28px;
  opacity: .85;
}

.ig-gate-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}

.ig-gate-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,.6);
  line-height: 1.5;
  margin-bottom: 36px;
}

.ig-gate-box {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 20px 24px;
  width: 100%;
  max-width: 320px;
}

.ig-gate-step {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 8px;
}

.ig-gate-hint {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  line-height: 1.4;
}

.ig-gate-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,.4);
}


/* ── 12. DESKTOP LAYOUT (от 1024px) ─────────────────────────
   Три фото рядом + контент по центру внизу                 */
@media (min-width: 1024px) {

  /* Скрываем мобильный слайдер */
  .bg-slide, .slider-dots { display: none !important; }

  body {
    background: #111;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
  }

  .page {
    max-width: 960px;
    width: 100%;
    min-height: 100vh;
    background: transparent;
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    grid-template-rows: 1fr auto;
    gap: 0;
    position: relative;
  }

  /* Три фото на весь экран */
  .desktop-photos {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    position: fixed;
    inset: 0;
    z-index: 0;
  }

  .desktop-photo {
    height: 100vh;
    overflow: hidden;
  }

  .desktop-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: brightness(.5) saturate(.85);
    display: block;
  }

  /* Центральное фото чуть светлее */
  .desktop-photo.center img {
    filter: brightness(.55) saturate(.9);
  }

  /* Разделители между фото */
  .desktop-photo + .desktop-photo {
    border-left: 1px solid rgba(255,255,255,.12);
  }

  /* Контент блок внизу по центру */
  .desktop-content {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    z-index: 10;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .desktop-content .desktop-lead,
  .desktop-content .desktop-btn,
  .desktop-content .desktop-footer {
    width: 100%;
  }

  /* Скрываем мобильный хедер */
  .header { display: none; }

  /* Бейдж Verified Creator на десктопе — стиль как у имени */
  .desktop-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 8px;
    text-shadow: 0 2px 16px rgba(0,0,0,.9);
  }
  .desktop-badge svg {
    width: 16px;
    height: 16px;
    fill: #d4aa72;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,.8));
  }
  .desktop-badge .b-white { color: #ffffff; }
  .desktop-badge .b-gold  { color: #d4aa72; }

  /* Имя на десктопе */
  .desktop-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 80px;
    color: #fff;
    letter-spacing: .06em;
    text-align: center;
    line-height: .9;
    margin-bottom: 16px;
    text-shadow: 0 2px 30px rgba(0,0,0,.5);
  }

  .desktop-name span { color: var(--gold-lt); }

  /* Скрываем мобильные блоки */
  .lead, .stats, .buttons, .footer { display: none; }

  /* Лид-блок на десктопе */
  .desktop-lead {
    background: rgba(26,20,16,.75);
    backdrop-filter: blur(12px);
    border-radius: 6px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,.1);
  }

  .desktop-lead-icon { font-size: 16px; }

  .desktop-lead-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px;
    color: var(--gold-lt);
    letter-spacing: .06em;
  }

  .desktop-lead-sub {
    font-size: 10px;
    color: rgba(255,255,255,.55);
    letter-spacing: .04em;
    margin-top: 2px;
  }

  /* Кнопка OnlyFans на десктопе */
  .desktop-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    background: var(--ink);
    color: #fff;
    border-radius: 4px;
    padding: 14px 20px;
    gap: 14px;
    transition: transform .18s;
  }

  .desktop-btn:active { transform: scale(.97); }

  /* Лого с анимацией (наследует of-hue из основных стилей) */
  .desktop-btn-logo img {
    height: 22px;
    width: auto;
    animation: of-hue 3s linear infinite;
  }

  .desktop-btn-text { flex: 1; }

  .desktop-btn-label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .03em;
  }

  .desktop-btn-sub {
    font-size: 10px;
    opacity: .5;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-top: 2px;
  }

  .desktop-btn-arrow {
    opacity: .4;
    font-size: 18px;
  }

  /* Футер на десктопе */
  .desktop-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
  }

  .desktop-footer-copy {
    font-size: 10px;
    color: rgba(255,255,255,.35);
    letter-spacing: .04em;
  }

  .desktop-footer-18 {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: rgba(255,255,255,.15);
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: .1em;
  }
}


/* ── 13. LANDSCAPE PHONES — остаётся мобильная версия ───────
   Горизонтальный телефон показывает мобильный дизайн,
   не десктопный                                             */
@media (max-width: 1023px) {
  .desktop-photos, .desktop-content { display: none !important; }
  .bg-slide, .slider-dots { display: block !important; }
  .page { display: flex !important; }
  html, body { overflow: hidden; height: 100%; }
  .page { position: fixed; inset: 0; max-width: 100%; overflow-y: auto; }
}


/* ── PAGE 2 STYLES ───────────────────────────────────────────*/

/* Блок с сообщением и кнопкой */
.p2-msg-block {
  padding: 20px 24px 8px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Текст сообщения */
.p2-msg {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  line-height: 1.75;
  color: #d4aa72;
  font-style: italic;
  text-align: center;
  -webkit-text-stroke: 0.3px rgba(255,255,255,0.6);
  text-shadow:
    0 0 12px rgba(0,0,0,.9),
    0 1px 3px rgba(0,0,0,.9),
    -1px -1px 0 rgba(0,0,0,.5),
    1px 1px 0 rgba(0,0,0,.5);
}

/* Десктоп — сообщение над кнопкой */
.p2-msg-desktop {
  font-size: 12px;
  color: rgba(255,255,255,.75);
  text-align: center;
  margin-bottom: 12px;
  font-style: italic;
  line-height: 1.6;
}

/* Кнопка Welcome */
.p2-welcome-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  background: #1a1410 !important;
  border-radius: 4px !important;
  padding: 18px 20px !important;
  text-decoration: none !important;
  transition: transform .18s !important;
  width: 100% !important;
}

.p2-welcome-btn:active {
  transform: scale(.97);
}

/* Анимированный бордер через box-shadow (не обрезается overflow:hidden) */
.p2-btn-wrap {
  border-radius: 4px;
  animation: borderPulse 1.5s ease-in-out infinite;
}

@keyframes borderPulse {
  0%, 100% {
    box-shadow: 0 0 0 2px #00cfff, 0 0 12px rgba(0,207,255,.6), 0 0 24px rgba(0,207,255,.3);
  }
  50% {
    box-shadow: 0 0 0 2px #ffffff, 0 0 18px rgba(0,207,255,1), 0 0 36px rgba(0,207,255,.5);
  }
}

/* Логотип с анимацией переливания */
.p2-logo {
  height: 28px;
  width: auto;
  display: block;
  animation: of-hue 3s linear infinite !important;
  filter: hue-rotate(0deg) saturate(1.4) brightness(1.1) drop-shadow(0 0 6px rgba(0,175,240,.7)) !important;
}

/* Убедимся что keyframes не перебиваются */
.p2-welcome-btn .p2-logo,
.p2-btn-wrap .p2-logo {
  animation: of-hue 3s linear infinite !important;
}

/* Неоновый текст */
.p2-welcome-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: .1em;
  color: #00cfff;
  text-align: center;
  animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
  0%, 100% {
    text-shadow:
      0 0 8px rgba(0,207,255,.9),
      0 0 20px rgba(0,207,255,.6),
      0 0 40px rgba(0,207,255,.3);
  }
  50% {
    text-shadow:
      0 0 14px rgba(0,207,255,1),
      0 0 30px rgba(0,207,255,.8),
      0 0 60px rgba(0,207,255,.5);
  }
}


/* ── АНИМИРОВАННАЯ РАМКА НА КНОПКЕ WELCOME ──────────────────*/
.p2-btn-wrap {
  border-radius: 4px;
  padding: 0;
  background: transparent;
}

@keyframes borderPulse {
  0%, 100% {
    outline-color: #00cfff;
    box-shadow: 0 0 10px rgba(0,207,255,.6), 0 0 20px rgba(0,207,255,.3);
  }
  50% {
    outline-color: #ffffff;
    box-shadow: 0 0 18px rgba(0,207,255,1), 0 0 35px rgba(0,207,255,.5);
  }
}
