/* askhorai.com — два голоса: расчёт (Inter, холодный) и душа (Lora Italic, тёплый) */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/Inter-Regular.otf") format("opentype"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/fonts/Inter-Medium.otf") format("opentype"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/Inter-SemiBold.otf") format("opentype"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("/fonts/Lora-Italic-Variable.ttf") format("truetype"); }

:root {
  color-scheme: dark;
  --night: #0E1430;
  --night-2: #0A0F24;
  --surface: #161D3D;
  --line: #2A3260;
  --ink: #ECEEF8;
  --muted: #9AA3C2;
  --cool: #7B8CFF;
  --warm: #FFB38A;
  --calc: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --soul: "Lora", Georgia, "Times New Roman", serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--ink); font: 400 17px/1.6 var(--calc); }
a { color: var(--cool); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--warm); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.soul { font-family: var(--soul); font-style: italic; color: var(--warm); }

/* шапка */
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 22px; letter-spacing: -0.02em; }
.logo svg { width: 40px; height: 40px; }
.logo i { font-family: var(--soul); color: var(--warm); }
.top nav { display: flex; gap: 22px; align-items: center; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

/* первый экран */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(24px, 6vw, 72px) 0 clamp(48px, 8vw, 96px); }
.hero h1 { font-weight: 500; font-size: clamp(34px, 5.2vw, 60px); line-height: 1.06; letter-spacing: -0.025em; margin: 0 0 22px; max-width: 14ch; }
.hero .lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); max-width: 52ch; margin: 0 0 18px; }
.hero .soul { font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 30px; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--night); border: 0; border-radius: 999px;
  padding: 14px 24px; font: 600 16px/1 var(--calc); text-decoration: none; cursor: pointer; }
.btn:hover { background: #fff; color: var(--night); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--cool); }

/* знак: два круга сходятся один раз при загрузке */
.mark { position: relative; aspect-ratio: 1; width: 100%; max-width: 460px; margin-left: auto; }
.mark svg { width: 100%; height: 100%; overflow: visible; }
.mark .c-ai { animation: ai 1.6s cubic-bezier(.2,.7,.2,1) both; }
.mark .c-soul { animation: soulc 1.6s cubic-bezier(.2,.7,.2,1) both; }
.mark .lens, .mark .star { animation: appear .9s 1.2s both; }
@keyframes ai { from { transform: translateX(-70px); opacity: .2; } }
@keyframes soulc { from { transform: translateX(70px); opacity: .2; } }
@keyframes appear { from { opacity: 0; transform: scale(.6); } }
.mark .star, .mark .lens { transform-origin: 50% 50%; transform-box: fill-box; }
@media (prefers-reduced-motion: reduce) { .mark * { animation: none !important; } }

/* форма карты */
.tool { background: var(--surface); border-radius: 28px; padding: clamp(22px, 4vw, 40px); margin-bottom: clamp(56px, 9vw, 110px);
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 56px); }
.tool h2 { margin: 0 0 18px; font-weight: 500; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.015em; }
.field { display: block; margin-bottom: 16px; position: relative; }
.field span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.field small { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
input { width: 100%; background: var(--night-2); color: var(--ink); border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 14px; font: 400 16px/1.2 var(--calc); }
input:focus { border-color: var(--cool); outline: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sugg { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: var(--night-2); border: 1px solid var(--line);
  border-radius: 14px; margin-top: 4px; padding: 6px; list-style: none; max-height: 260px; overflow: auto; }
.sugg li { padding: 9px 10px; border-radius: 10px; cursor: pointer; font-size: 15px; }
.sugg li:hover, .sugg li[aria-selected="true"] { background: var(--surface); }
.err { color: var(--warm); font-size: 15px; min-height: 1.4em; margin: 6px 0 0; }
.result { display: flex; flex-direction: column; justify-content: center; }
.result .empty { color: var(--muted); }
.result img { border-radius: 20px; margin-bottom: 18px; }
.big3 { display: flex; gap: 22px; flex-wrap: wrap; margin: 0 0 18px; }
.big3 div span { display: block; font-size: 13px; color: var(--muted); }
.big3 div b { font-family: var(--soul); font-style: italic; font-weight: 500; font-size: 24px; color: var(--ink); }
.result .note { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* два голоса */
section { padding-bottom: clamp(56px, 9vw, 110px); }
section > h2 { font-weight: 500; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.02em; margin: 0 0 30px; }
.voices { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); }
.voices h3 { font-weight: 500; font-size: 20px; margin: 0 0 14px; }
.voices ul { margin: 0; padding: 0; list-style: none; }
.voices li { padding: 12px 0; border-top: 1px solid var(--line); }
.voice-ai h3 { color: var(--cool); }
.voice-soul h3 { font-family: var(--soul); font-style: italic; color: var(--warm); font-size: 23px; }
.voice-soul li { font-family: var(--soul); font-style: italic; font-size: 18px; }
blockquote { margin: 36px 0 0; padding: 0; font-family: var(--soul); font-style: italic; font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35; color: var(--ink); max-width: 30ch; }
blockquote footer { font-family: var(--calc); font-style: normal; font-size: 15px; color: var(--muted); margin-top: 12px; }

/* возможности */
.feats { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 5vw, 64px); }
.feat { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.feat .g { font-size: 26px; line-height: 1.2; color: var(--cool); }
.feat h3 { margin: 0 0 4px; font-weight: 500; font-size: 18px; }
.feat p { margin: 0; color: var(--muted); }

/* цены */
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 500; color: var(--muted); }
td:nth-child(3), th:nth-child(3) { color: var(--ink); }
th:nth-child(3) { color: var(--warm); font-family: var(--soul); font-style: italic; font-size: 20px; }
.price-note { color: var(--muted); font-size: 15px; margin-top: 16px; max-width: 70ch; }

/* вопросы */
details { border-top: 1px solid var(--line); padding: 16px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 500; font-size: 18px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--muted); }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 10px 0 0; max-width: 70ch; }

/* страницы-тексты */
.page { max-width: 760px; padding: 24px 0 90px; }
.page h1 { font-weight: 500; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; }
.page p, .page li { color: var(--muted); }
.who { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.who img { border-radius: 24px; }

footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .links { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 10px; }
footer.site a { color: var(--muted); }

@media (max-width: 860px) {
  .hero, .tool, .voices, .feats { grid-template-columns: 1fr; }
  .mark { max-width: 320px; margin: 0 auto; grid-row: 1; }
  .top nav .hide-m { display: none; }
  .who { grid-template-columns: 1fr; }
  .who img { max-width: 220px; }
  th, td { padding: 12px 6px; font-size: 15px; }
}
