/* Гадания Aura7 — главная страница гаданий: базовые токены и компоненты (поверх — home.css).
   Мир «Подковы» и лендингов ко дню рождения: кремовая бумага, ночная арка, слива/роза/золото,
   Cormorant для голоса, Golos для текста, колода Ольги (арт-деко). Токены — как в taro-rasklad-podkova. */

@font-face { font-family: 'Golos Text'; src: url('fonts/GolosText-VariableFont_wght.ttf') format('truetype-variations'), url('fonts/GolosText-VariableFont_wght.ttf') format('truetype'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('fonts/Cormorant.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('fonts/Cormorant-Italic.woff2') format('woff2'); font-weight: 300 700; font-style: italic; font-display: swap; }

:root {
  --a7-neutral-50: #FAF7F4; --a7-neutral-100: #F2EDE8; --a7-neutral-200: #E4DCD4; --a7-neutral-300: #C9BFB5;
  --a7-neutral-500: #6E655D; --a7-neutral-700: #3E3832; --a7-neutral-900: #1A1715;
  --a7-rose-50: #FCEAF3; --a7-rose-500: #E472AD; --a7-rose-700: #B84A85; --a7-rose-900: #6F2953;
  --a7-yellow-500: #FFD585;
  --a7-violet-800: #4E2A56; --a7-violet-900: #3A1E3D; --a7-surface-violet: #2E1632;

  --page: var(--a7-neutral-50);
  --nested: var(--a7-neutral-100);
  --card: #FFFFFF;
  --stroke: var(--a7-neutral-200);
  --stroke-strong: var(--a7-neutral-300);
  --text: var(--a7-neutral-900);
  --text-2: var(--a7-neutral-700);
  --text-3: var(--a7-neutral-500);
  --plum: var(--a7-violet-900);
  --plum-2: var(--a7-violet-800);
  --night: var(--a7-surface-violet);
  --accent: var(--a7-rose-900);
  --rose: var(--a7-rose-700);
  --sun: var(--a7-yellow-500);
  --cream: var(--a7-neutral-50);
  --cream-soft: rgba(250, 247, 244, .82);
  --cream-mute: rgba(250, 247, 244, .6);

  --font-sans: 'Golos Text', 'Helvetica Neue', system-ui, -apple-system, sans-serif;
  --font-serif: 'Cormorant', 'Times New Roman', Georgia, serif;
  --radius: 16px; --radius-lg: 20px; --radius-xl: 28px; --radius-pill: 999px;
  --shadow-md: 0 8px 20px rgba(26, 23, 21, .08), 0 2px 6px rgba(26, 23, 21, .05);
  --shadow-lg: 0 18px 44px rgba(26, 23, 21, .12), 0 6px 14px rgba(26, 23, 21, .06);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; min-width: 300px; overflow-x: hidden;
  font-family: var(--font-sans); font-size: 16px; line-height: 1.55; color: var(--text);
  background: radial-gradient(70% 30% at 50% 0%, rgba(228, 114, 173, .10), rgba(228, 114, 173, 0) 70%), var(--page);
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(228, 114, 173, .24); color: var(--plum); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }

.page { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px calc(24px + env(safe-area-inset-bottom)); }

/* ── шапка ── */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: inline-flex; flex: none; }
.logo img { display: block; width: 105px; height: auto; }
.head-nav { display: none; gap: 22px; font-size: 14px; font-weight: 500; }
.head-nav a { text-decoration: none; color: var(--text-2); }
.head-nav a:hover { color: var(--accent); }
@media (min-width: 900px) { .head-nav { display: flex; } }
.head-right { display: flex; align-items: center; gap: 8px; }
.stars-pill, .who {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px;
  border: 1px solid var(--stroke); border-radius: var(--radius-pill); background: var(--card);
  font-size: 14px; font-weight: 600; color: var(--text-2); text-decoration: none; white-space: nowrap;
}
.stars-pill span:first-child { color: #C8961E; }
.who { padding-left: 4px; }
.who-dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--plum); color: var(--sun); font-family: var(--font-serif); font-size: 17px; font-weight: 600; }
.stars-pill.bump { animation: bump .6s var(--ease); }
@keyframes bump { 40% { transform: scale(1.12); } }

/* ── кнопки ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px;
  border-radius: var(--radius-pill); border: 1px solid transparent; font-size: 16px; font-weight: 600; text-decoration: none;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--plum); color: var(--cream); box-shadow: 0 6px 18px rgba(58, 30, 61, .22); }
.btn-primary:hover { background: var(--plum-2); }
.btn-ghost { background: transparent; color: var(--plum); border-color: var(--stroke-strong); }
.btn-ghost:hover { background: var(--card); }
.btn-light { background: var(--cream); color: var(--plum); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-demo { margin-top: 20px; }

/* ── типографика секций ── */
.eyebrow, .kicker { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.kicker-light { color: var(--cream-mute); }
.h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(32px, 6vw, 46px); line-height: 1.05; letter-spacing: -.01em; color: var(--plum); text-wrap: balance; margin-top: 8px; }
.h2-light { color: var(--cream); }
.h3 { font-size: 18px; font-weight: 600; line-height: 1.3; margin-top: 4px; }
.sec { padding: 56px 0; }
.sec-soft { position: relative; }
.sec-soft::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); background: var(--nested); z-index: -1; }
.sec-head { max-width: 680px; margin-bottom: 28px; }
.sec-lead { margin-top: 12px; font-size: 17px; color: var(--text-2); }
.lead-light { color: var(--cream-soft); }
.muted { color: var(--text-3); font-size: 15px; }
.muted-light { color: var(--cream-mute); font-size: 15px; }
.note { margin-top: 12px; font-size: 13px; color: var(--text-3); }

/* ── первый экран ── */
.hero { display: grid; gap: 32px; align-items: center; padding: 24px 0 40px; }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; padding: 40px 0 56px; } }
.title { font-family: var(--font-serif); font-weight: 500; color: var(--plum); font-size: clamp(44px, 10vw, 76px); line-height: .98; letter-spacing: -.025em; margin-top: 12px; text-wrap: balance; }
.title em { display: block; font-style: italic; color: var(--accent); }
.lead { margin-top: 18px; font-size: 18px; color: var(--text-2); max-width: 540px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.trust { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--text-3); }
.trust li::before { content: "✦ "; color: var(--rose); }

.arch {
  position: relative; aspect-ratio: 4 / 4.2; max-width: 460px; margin: 0 auto; overflow: hidden;
  border-radius: 240px 240px var(--radius-xl) var(--radius-xl);
  background: radial-gradient(60% 50% at 50% 38%, #5B2E62 0%, var(--night) 62%, #1E0E22 100%);
  box-shadow: var(--shadow-lg);
}
.sky { position: absolute; inset: 0; background-image:
  radial-gradient(1.5px 1.5px at 18% 22%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 72% 16%, #fff 50%, transparent 52%),
  radial-gradient(1.2px 1.2px at 84% 40%, #FFD585 50%, transparent 52%), radial-gradient(1px 1px at 30% 60%, #fff 50%, transparent 52%),
  radial-gradient(1.4px 1.4px at 60% 30%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 12% 48%, #FFD585 50%, transparent 52%),
  radial-gradient(1px 1px at 50% 12%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 90% 70%, #fff 50%, transparent 52%);
  opacity: .8; }
.fan { position: absolute; left: 50%; top: 50%; width: 34%; border-radius: 10px; box-shadow: 0 14px 30px rgba(0, 0, 0, .4); transform-origin: 50% 100%; }
.fan-l { transform: translate(-95%, -52%) rotate(-14deg); opacity: .92; }
.fan-r { transform: translate(-5%, -52%) rotate(14deg); opacity: .92; }
.fan-c { transform: translate(-50%, -58%); box-shadow: 0 0 0 2px var(--sun), 0 0 34px rgba(255, 213, 133, .45), 0 16px 34px rgba(0, 0, 0, .45); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translate(-50%, -61%); } }
.arch-cap { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font-family: var(--font-serif); font-style: italic; font-size: 20px; color: var(--cream-soft); }

/* ── сегодня ── */
.today { display: grid; gap: 16px; align-items: start; }
.today-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 900px) { .today { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.panel { background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-md); }
.panel-day { display: grid; gap: 22px; align-items: start; }
@media (min-width: 560px) { .panel-day { grid-template-columns: 200px minmax(0, 1fr); } }
.flip { width: 100%; max-width: 200px; margin: 0 auto; padding: 0; border: 0; background: none; border-radius: 14px; perspective: 900px; }
.flip img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 2px var(--sun), 0 0 26px rgba(255, 213, 133, .35), var(--shadow-lg); transition: transform .5s var(--ease); }
.flip:not(.is-open):hover img { transform: translateY(-4px) rotate(-1deg); }
.flip.is-turning img { transform: rotateY(90deg); }
.flip.is-open { cursor: default; }
.day-body .h3 { font-family: var(--font-serif); font-size: 30px; font-weight: 500; color: var(--plum); }
.day-body .muted { margin-top: 6px; }
.day-meaning { margin-top: 8px; font-family: var(--font-serif); font-style: italic; font-size: 21px; line-height: 1.3; color: var(--accent); }
.day-part { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--stroke); }
.day-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--rose); margin-bottom: 4px; }
.day-part p { color: var(--text-2); }

.signs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
@media (min-width: 440px) { .signs { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.sign { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; border: 1px solid var(--stroke); border-radius: 12px; background: var(--page); font-size: 11px; color: var(--text-3); }
.sign i { font-style: normal; font-size: 20px; line-height: 1; color: var(--plum); }
.sign[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: var(--cream-soft); }
.sign[aria-pressed="true"] i { color: var(--sun); }
.horo { margin-top: 16px; }
.horo-sign { font-family: var(--font-serif); font-size: 24px; font-weight: 500; color: var(--plum); }
.horo-list { margin: 8px 0 0; }
.horo-list dt { margin-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--rose); }
.horo-list dd { margin: 2px 0 0; color: var(--text-2); }

.moon-row { display: flex; gap: 18px; align-items: center; }
.moon-disc { position: relative; flex: none; width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 38% 36%, #FFF6DC, #F1DFA8 55%, #D8BF7E 100%); box-shadow: 0 0 22px rgba(255, 213, 133, .5); }
.moon-disc i { position: absolute; top: 0; width: 100%; height: 100%; border-radius: 50%; background: #2E1632; transition: left .4s; }
.moon-links { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.mini-link { display: inline-flex; gap: 6px; font-size: 15px; font-weight: 600; color: var(--accent); text-decoration: none; }
.mini-link:hover { text-decoration: underline; }
.mini-light { color: var(--sun); margin-top: 14px; }

.streak { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.dot { display: grid; place-items: center; height: 40px; border-radius: 10px; background: var(--nested); font-size: 13px; font-weight: 600; color: var(--text-3); }
.dot.on { background: var(--sun); color: var(--plum); }
.dot.gift { border: 2px dashed var(--rose); background: transparent; color: var(--rose); }
.panel-streak .muted { margin-top: 12px; }

/* ── плитки механик ──
   Иконки и раскладка — handoff дизайнера 17.11.2026 (icons/ 480×480 webp на прозрачном фоне, без подложек и рамок;
   позже поменяются только файлы, имена те же). Телефон: главная плитка на всю ширину, остальные в две колонки,
   «Руны» на всю ширину с иконкой слева. Десктоп: слева высокая тёмная «Вернётся ли он?» на всю высоту блока,
   справа мозаика 2 × 3 с иконкой слева, под ней «Руны» на всю ширину правой части. */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 16px;
  background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius-lg); text-decoration: none; color: var(--text);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
a.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--stroke-strong); }
.tile-soon { opacity: .6; }
.tile-ico { display: block; width: 80px; height: 80px; margin: 0 0 2px -4px; object-fit: contain; }
.tile-title { font-family: var(--font-serif); font-size: 21px; font-weight: 500; line-height: 1.12; color: var(--plum); }
.tile-meta { font-size: 14px; line-height: 1.45; color: var(--text-3); }
.tile-go { margin-top: auto; padding-top: 4px; font-size: 14px; font-weight: 600; color: var(--accent); }
.tag { position: absolute; top: 16px; left: 16px; z-index: 1; font-size: 12px; font-weight: 600; background: var(--sun); color: var(--plum); border-radius: var(--radius-pill); padding: 3px 10px; }

/* главная плитка — тёмная сливовая, иконка крупно */
.tile-hot { grid-column: 1 / -1; padding: 18px 20px 22px; background: var(--night); border-color: var(--night); color: var(--cream); }
.tile-hot .tile-ico { width: 210px; height: 210px; margin: 14px auto 4px; }
.tile-hot .tile-title { font-size: 30px; color: var(--cream); }
.tile-hot .tile-meta { font-size: 15px; color: var(--cream-mute); }
.tile-hot .tile-go { font-size: 15px; color: var(--sun); }

/* «Руны» — на всю ширину, иконка слева */
.tile-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 80px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 14px; row-gap: 4px; }
.tile-wide .tile-ico { grid-row: 1 / span 3; align-self: center; margin: 0; }

@media (min-width: 600px) {
  .tile { padding: 18px 18px 20px; }
  .tile-ico { width: 96px; height: 96px; }
  .tile-title { font-size: 24px; }
  .tile-wide { grid-template-columns: 96px minmax(0, 1fr); column-gap: 18px; }
}
@media (min-width: 960px) {
  .tiles { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
  .tile-hot { grid-column: 1; grid-row: 1 / span 4; padding: 22px 24px 26px; }
  .tile-hot .tile-ico { width: 100%; max-width: 260px; height: auto; aspect-ratio: 1; margin: 34px auto 18px; }
  .tile:not(.tile-hot) { display: grid; grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 16px; row-gap: 4px; padding: 16px 18px 16px 12px; }
  .tile:not(.tile-hot) .tile-ico { grid-row: 1 / span 3; align-self: center; width: 104px; height: 104px; margin: 0; }
  .tile-title { font-size: 23px; }
  .tile-wide { grid-column: 2 / span 2; }
}
/* иконка не загрузилась и со второй попытки (скрипт в <head> index.html) — плитка без иконки, текст на всю ширину */
.tiles .tile.tile-noico { grid-template-columns: minmax(0, 1fr); }
.tiles .tile.tile-noico .tile-ico { display: none; }

/* ── эксперты ── */
.night { display: grid; gap: 32px; padding: 28px 20px; border-radius: var(--radius-xl); background: radial-gradient(80% 60% at 20% 0%, #4E2A56, var(--night) 70%); color: var(--cream); }
@media (min-width: 900px) { .night { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 48px; gap: 40px; } }
.night .btn-light { margin-top: 22px; }
.xlist { display: grid; gap: 10px; margin-top: 12px; }
.xc { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: var(--radius); background: rgba(250, 247, 244, .08); text-decoration: none; color: var(--cream); transition: background .2s; }
.xc:hover { background: rgba(250, 247, 244, .14); }
.xc img { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--plum-2); }
.xt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.xn { font-size: 17px; font-weight: 600; line-height: 1.25; }
.xs { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #8EE3A8; }
.xs::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3DD27A; }
.xm { font-size: 13px; color: var(--cream-mute); }
.xp { margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--sun); }

/* ── звёзды ── */
.earn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 720px; }
.e { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--stroke); }
.e b { font-family: var(--font-serif); font-size: 34px; line-height: 1; color: var(--accent); }
.e span { font-size: 14px; color: var(--text-3); }
.e-spend { background: var(--a7-rose-50); border-color: transparent; }
@media (max-width: 480px) { .earn { grid-template-columns: 1fr; } }

/* ── вопросы ── */
details { border-bottom: 1px solid var(--stroke-strong); padding: 16px 0; max-width: 820px; }
details:first-of-type { margin-top: 18px; }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; font-size: 18px; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--rose); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin-top: 10px; color: var(--text-2); }

.foot { padding: 32px 0 8px; font-size: 13px; color: var(--text-3); display: grid; gap: 6px; }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 60; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: var(--radius-pill); background: var(--plum); color: var(--cream); font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); transform: translate(-50%, 140%); opacity: 0; visibility: hidden; transition: transform .35s var(--ease), opacity .35s, visibility 0s .35s; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .35s var(--ease), opacity .35s; }
