/* INSOMNIA — общий стиль страниц бренда (insomnia.kz) */
@font-face { font-family: 'Geometria'; src: url('../fonts/Geometria-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Geometria'; src: url('../fonts/Geometria-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geometria'; src: url('../fonts/Geometria-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Geometria'; src: url('../fonts/Geometria-Heavy.ttf') format('truetype'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Corinthia'; src: url('../fonts/corinthia.ttf') format('truetype'); font-display: swap; }

:root {
  --black: #000000;
  --brand-dark: #242424;
  --white: #FEFEFE;
  --pink: #E8237F;
  --pink-light: #F6AFCE;
  --muted: rgba(254, 254, 254, .72);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--black);
  color: var(--white);
  font-family: 'Geometria', -apple-system, 'Segoe UI', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--pink-light); outline-offset: 4px; }

/* ---------- Главная: три двери ---------- */
.brand-bar {
  position: absolute; z-index: 3; top: 0; left: 0; right: 0;
  display: flex; justify-content: center;
  padding: clamp(24px, 4vh, 44px) 16px 0;
  pointer-events: none;
}
.brand-bar img { width: clamp(200px, 26vw, 380px); height: auto; display: block; }

.doors {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
}
.door {
  --bg-image: none;
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(96px, 14vh, 140px);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  border-right: 1px solid var(--brand-dark);
  }
.door:last-child { border-right: 0; }

/* фон: фото (если положено в img/landing/) поверх фирменного градиента */
.door::before {
  content: '';
  position: absolute; inset: 0; z-index: -2;
  background-image: var(--bg-image), var(--bg-fallback);
  background-size: cover, cover;
  background-position: center, center;
  transform: scale(1.02);
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1);
}
/* затемнение сверху (под логотипом) и снизу (под текстом) */
.door::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: var(--shade, linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 62%, rgba(0,0,0,.9) 100%));
}
/* светлые фоны — затемнение сильнее */
.door--psy, .door--beauty {
  --shade: linear-gradient(180deg, rgba(20,8,14,.6) 0%, rgba(20,8,14,.1) 24%, rgba(20,8,14,0) 34%, rgba(20,8,14,.55) 52%, rgba(20,8,14,.88) 72%, rgba(10,4,7,.95) 100%);
}
.door__title, .door__text, .door__script { text-shadow: 0 1px 18px rgba(0,0,0,.45); }
.brand-bar img { filter: drop-shadow(0 2px 14px rgba(0,0,0,.55)); }

.door--shop {
  --bg-image: url('../img/landing/shop.jpg');
  --bg-fallback:
    radial-gradient(120% 70% at 50% 110%, rgba(232,35,127,.85) 0%, rgba(232,35,127,.25) 35%, rgba(0,0,0,0) 65%),
    radial-gradient(60% 40% at 15% 20%, rgba(184,115,233,.18) 0%, rgba(0,0,0,0) 70%),
    linear-gradient(180deg, #0a0006 0%, #000 100%);
}
.door--psy {
  --bg-image: url('../img/landing/psychology.jpg');
  --bg-fallback:
    radial-gradient(90% 60% at 70% 30%, rgba(246,175,206,.22) 0%, rgba(0,0,0,0) 70%),
    radial-gradient(80% 50% at 20% 90%, rgba(254,254,254,.08) 0%, rgba(0,0,0,0) 70%),
    linear-gradient(160deg, #2b2628 0%, #161314 55%, #0a0909 100%);
}
.door--beauty {
  --bg-image: url('../img/landing/beauty.jpg');
  --bg-fallback:
    radial-gradient(100% 60% at 50% 0%, rgba(254,254,254,.35) 0%, rgba(246,175,206,.25) 35%, rgba(0,0,0,0) 75%),
    radial-gradient(70% 50% at 90% 70%, rgba(232,35,127,.25) 0%, rgba(0,0,0,0) 70%),
    linear-gradient(180deg, #3a2a31 0%, #1a1216 60%, #000 100%);
}

.door__script {
  font-family: 'Corinthia', cursive;
  font-size: clamp(40px, 4.2vw, 64px);
  line-height: .9;
  color: var(--pink-light);
  margin-bottom: 6px;
  padding-left: .12em;
}
.door__title {
  font-weight: 900;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.05;
  letter-spacing: -.01em;
}
.door__text {
  margin-top: 14px;
  max-width: 34ch;
  font-weight: 300;
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--muted);
}
.door__cta {
  align-self: flex-start;
  margin-top: 26px;
  padding: 13px 26px;
  border: 1.5px solid var(--white);
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  transition: background-color .3s, border-color .3s, color .3s;
}
.door:hover .door__cta, .door:focus-visible .door__cta { background: var(--pink); border-color: var(--pink); }
.door:focus-visible { outline: none; }
.door:focus-visible .door__cta { outline: 2px solid var(--pink-light); outline-offset: 4px; }

.door__age {
  position: absolute; top: clamp(110px, 16vh, 150px); right: clamp(20px, 2.5vw, 36px);
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--pink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 500; font-size: 14px; color: var(--pink-light);
}

/* ---------- Компьютер: одна общая картина под тремя дверями ---------- */
@property --dim { syntax: '<number>'; inherits: false; initial-value: 0; }
@media (min-width: 900px) {
  .doors {
    background: url('../img/landing/panorama.jpg') center / cover no-repeat, #000;
  }
  .door::before { display: none; }
  .door { border-right-color: rgba(254, 254, 254, .12); }
  .door::after {
    background:
      linear-gradient(rgba(0,0,0,var(--dim)), rgba(0,0,0,var(--dim))),
      linear-gradient(180deg, rgba(10,4,7,.45) 0%, rgba(10,4,7,0) 20%, rgba(10,4,7,0) 42%, rgba(10,4,7,.6) 60%, rgba(10,4,7,.9) 100%);
    transition: --dim .6s ease;
  }
}
@media (hover: hover) and (min-width: 900px) {
  .doors:hover .door:not(:hover)::after { --dim: .3; }
}

.site-foot {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px;
  padding: 20px 16px 22px;
  font-size: 13px; color: var(--muted);
  pointer-events: none;
}
.site-foot a { pointer-events: auto; text-decoration: none; }
.site-foot a:hover { color: var(--white); }

@media (max-width: 899px) {
  .brand-bar { position: static; padding: 28px 16px 22px; background: var(--black); }
  .doors { flex-direction: column; min-height: 0; }
  .door {
    min-height: 62svh;
    padding: 28px 22px 34px;
    border-right: 0;
    border-bottom: 1px solid var(--brand-dark);
  }
  .door__age { top: 20px; right: 20px; }
  .site-foot { position: static; padding: 28px 16px 36px; flex-direction: column; align-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .door, .door::before, .door::after, .door__cta { transition: none; }
}

/* ---------- Внутренние страницы (заглушки) ---------- */
.page {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 16px; text-align: center;
  background:
    radial-gradient(80% 50% at 50% 100%, rgba(232,35,127,.28) 0%, rgba(0,0,0,0) 70%),
    var(--black);
}
.page__logo { width: clamp(180px, 24vw, 300px); margin-bottom: 48px; }
.page h1 { font-weight: 900; font-size: clamp(32px, 5vw, 56px); line-height: 1.05; }
.page p { margin-top: 16px; max-width: 46ch; color: var(--muted); font-weight: 300; font-size: 17px; }
.page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px; text-decoration: none;
  border: 1.5px solid var(--white); font-weight: 500; font-size: 15px;
  transition: background-color .3s, border-color .3s;
}
.btn:hover { background: var(--pink); border-color: var(--pink); }
.btn--pink { background: var(--pink); border-color: var(--pink); }
.btn--pink:hover { background: transparent; border-color: var(--white); }
