/* elenasavyuk.com: layout and look. Copy lives in the HTML pages and /content/*.json. */

:root {
  --ground: #F5F3F8;
  --surface: #FFFFFF;
  --ink: #221A2D;
  --muted: #5C5368;
  --line: #E4DEEC;
  --line-strong: #CFC6DC;
  --violet: #5B3FA6;        /* the "say it differently" voice */
  --violet-dark: #3F2A7A;
  --violet-tint: #ECE6F8;
  --violet-soft: #E4DCF3;
  --on-violet-muted: #D9CCF5;
  --rust: #A8481F;          /* the phrase said in the heat of the moment */
  --rust-tint: #FBEADF;
  --rust-line: #E7CDBD;
  --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.5; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--violet); }
a:hover { color: var(--violet-dark); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.wrap--narrow { max-width: 760px; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; }


/* Menu bar */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; padding-top: 10px; padding-bottom: 10px; }
.brand { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; justify-content: center; min-height: 48px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__name { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; line-height: 1.2; }
.brand__role { font-size: 13px; color: var(--muted); }
.nav__links { order: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; }
.nav__links a { display: flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--violet); }
.nav__links a[aria-current="page"] { font-weight: 700; }
.nav__cta { order: 3; }
@media (max-width: 680px) {
  .nav__links { order: 3; flex-basis: 100%; }
  .nav__cta { order: 2; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; text-align: center; background: none; }
.btn--sm { min-height: 44px; padding: 0 20px; }
.btn--solid { background: var(--violet); color: #FFFFFF; }
.btn--solid:hover { background: var(--violet-dark); color: #FFFFFF; }
.btn--dark { background: var(--ink); color: #FFFFFF; }
.btn--dark:hover { color: #FFFFFF; }
.btn--outline { background: var(--surface); border-color: var(--violet); color: var(--violet); }
.btn--quiet { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn--quiet:hover { color: var(--ink); border-color: var(--ink); }
.btn--text { padding-left: 0; padding-right: 0; }
.btn[disabled] { background: var(--line); color: var(--muted); cursor: not-allowed; }

/* Type */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet); }
.eyebrow--sm { font-size: 12px; }
.h1 { font-size: clamp(32px, 5.2vw, 54px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; }
.h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.12; letter-spacing: -0.015em; font-weight: 700; }
.h3 { font-size: 18px; line-height: 1.25; font-weight: 700; }
.lead { font-size: 18px; line-height: 1.5; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.intro { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }

/* Page sections */
.page { padding-top: 36px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 28px; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.panel { padding: 24px; border-radius: 24px; background: var(--surface); border: 1.5px solid var(--line); }
.panel--dark { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.panel--violet { background: var(--violet); border-color: var(--violet); color: #FFFFFF; }

/* Chips (situation pickers) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 15px; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }

/* "Скажи иначе" tiles */
.tiles { display: flex; flex-wrap: wrap; gap: 14px; }
.tile { flex: 1 1 290px; min-height: 184px; display: flex; text-align: left; padding: 22px; border-radius: 22px; border: 1.5px solid var(--rust-line); background: var(--surface); transition: background-color .25s ease, border-color .25s ease, transform .25s ease; }
.tile:active { transform: scale(0.985); }
.tile__face { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.tile__label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rust); }
.tile__say { font-size: 21px; line-height: 1.25; font-weight: 700; color: var(--ink); }
.tile__hint { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.tile__instead { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 23px; line-height: 1.3; color: #FFFFFF; }
.tile__was { margin-top: auto; padding-top: 12px; font-size: 14px; line-height: 1.35; color: var(--on-violet-muted); text-decoration: line-through; }
.tile .tile__back { display: none; }
.tile[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); }
.tile[aria-pressed="true"] .tile__front { display: none; }
.tile[aria-pressed="true"] .tile__back { display: flex; animation: reveal .3s ease both; }
.tile[aria-pressed="true"] .tile__label { color: var(--on-violet-muted); }
@keyframes reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile, .tile[aria-pressed="true"] .tile__back { transition: none; animation: none; }
}
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* About strip */
.about { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; padding-top: 56px; padding-bottom: 56px; }
.about__photo { flex: 1 1 280px; height: 340px; border-radius: 24px; background: var(--violet-soft); overflow: hidden; }
.about__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about__text { flex: 2 1 380px; display: flex; flex-direction: column; gap: 16px; }

/* Teaser cards */
.teasers { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 56px; padding-bottom: 56px; }
.teaser { flex: 1 1 290px; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 22px; background: var(--surface); border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); }
.teaser:hover { color: var(--ink); border-color: var(--violet); }
.teaser__title { font-size: 22px; line-height: 1.2; font-weight: 700; }
.teaser__text { font-size: 15px; color: var(--muted); }
.teaser__go { margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--violet); }
.teaser--dark { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.teaser--dark:hover { color: #FFFFFF; }
.teaser--dark .eyebrow, .teaser--dark .teaser__text { color: var(--on-violet-muted); }
.teaser--dark .teaser__go { color: #FFFFFF; }

/* Test */
.progress { height: 8px; border-radius: 999px; background: var(--violet-tint); overflow: hidden; }
.progress__fill { height: 8px; border-radius: 999px; background: var(--violet); transition: width .25s ease; }
.question { font-size: clamp(22px, 3.4vw, 28px); line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; }
.option { width: 100%; min-height: 60px; padding: 14px 18px; border-radius: 16px; border: 1.5px solid var(--line-strong); background: var(--surface); text-align: left; font-size: 17px; line-height: 1.35; font-weight: 500; }
.option:hover { border-color: var(--violet); }
.pair { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--line); }
.pair__say { flex: 1 1 220px; font-size: 16px; line-height: 1.35; font-weight: 600; color: var(--rust); text-decoration: line-through; }
.pair__instead { flex: 2 1 280px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 20px; line-height: 1.3; color: var(--violet); }
.code { font-size: clamp(24px, 5vw, 34px); line-height: 1.1; font-weight: 700; letter-spacing: 0.04em; }
.on-violet { color: #F1ECFB; }

/* Booking */
.split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 32px; }
.split__main { flex: 3 1 480px; min-width: 0; }
.split__side { flex: 2 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pick { flex: 1 1 220px; min-height: 76px; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; text-align: left; border: 1.5px solid var(--line-strong); background: var(--surface); }
.pick[aria-pressed="true"] { background: var(--violet-tint); border-color: var(--violet); }
.pick__name { font-size: 16px; font-weight: 700; }
.pick__meta { font-size: 14px; color: var(--muted); }
.cal { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal__title { font-size: 17px; font-weight: 700; }
.cal__nav { width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); font-size: 18px; line-height: 1; }
.cal__nav[disabled] { opacity: 0.35; cursor: not-allowed; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal__wd { padding: 4px 0; text-align: center; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.cal__day { min-width: 0; height: 44px; padding: 0; border-radius: 12px; border: 1.5px solid var(--violet-soft); background: var(--violet-tint); color: var(--violet-dark); font-size: 16px; font-weight: 700; }
.cal__day[disabled] { border-color: transparent; background: transparent; color: #A9A1B4; font-weight: 500; cursor: default; }
.cal__day--full { border-color: var(--line); background: var(--ground); color: #8C8496; font-weight: 500; text-decoration: line-through; }
.cal__day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.slot { flex: 1 1 96px; min-height: 48px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); font-size: 16px; font-weight: 600; }
.slot[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: #FFFFFF; }
.slot[disabled] { background: var(--ground); border-color: var(--line); color: #8C8496; text-decoration: line-through; cursor: not-allowed; }
.divide { padding-top: 20px; border-top: 1px solid var(--line); }
.field { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input { min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--surface); font-size: 16px; }
.quote { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 22px; line-height: 1.35; color: var(--violet); }
.steps { display: flex; flex-direction: column; gap: 16px; }
.step { display: flex; gap: 14px; }
.step__num { flex: 0 0 32px; height: 32px; border-radius: 999px; background: var(--violet); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
.step__title { display: block; font-size: 16px; font-weight: 700; }
.step__text { display: block; font-size: 15px; line-height: 1.45; color: var(--on-violet-muted); }

/* Video library */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(156px, 22%), 1fr)); gap: 14px; }
.video { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); }
.video:hover { color: var(--ink); border-color: var(--violet); }
.video__thumb { height: 108px; display: flex; align-items: center; justify-content: center; gap: 12px; background: var(--violet-soft); font-size: 20px; font-weight: 700; letter-spacing: 0.06em; }
.video--vs .video__thumb { background: linear-gradient(90deg, var(--rust-tint) 50%, var(--violet-soft) 50%); }
.video__thumb--img { position: relative; height: auto; aspect-ratio: 3 / 2; overflow: hidden; }
.video__thumb--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video__thumb--img .play { position: absolute; left: 10px; bottom: 10px; width: 36px; height: 36px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); }
.video__thumb--img .play svg { width: 16px; height: 16px; }
.video__thumb--img > span:not(.play) { display: none; }
.play { width: 48px; height: 48px; border-radius: 999px; background: var(--ink); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.play--lg { flex: 0 0 72px; width: 72px; height: 72px; background: var(--violet); }
.video__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.video__title { font-size: 16px; line-height: 1.3; font-weight: 700; }
.video__meta { font-size: 14px; color: var(--muted); }
.feature { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; padding: 28px 24px; border-radius: 24px; background: var(--ink); color: #FFFFFF; text-decoration: none; }
.feature:hover { color: #FFFFFF; }
.feature__text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; }
.feature__title { font-size: clamp(21px, 3vw, 26px); line-height: 1.2; font-weight: 700; }
.feature .eyebrow, .feature__lead { color: var(--on-violet-muted); }
.feature__lead { font-size: 15px; }

/* Topic pages (/trevoga/, /adaptaciya/, /vygoranie/), /kompaniyam/, /obo-mne/ */
.section { padding-top: 28px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 20px; }
.signs { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.signs li { position: relative; padding-left: 26px; font-size: 18px; line-height: 1.45; }
.signs li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 10px; border-radius: 999px; background: var(--rust); }
.panel .steps .step__title { font-weight: 600; line-height: 1.4; padding-top: 4px; }
.exercise { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(20px, 2.6vw, 23px); line-height: 1.4; color: #FFFFFF; max-width: 760px; }
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.topic { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 14px 18px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-size: 17px; line-height: 1.3; font-weight: 700; }
.topic::after { content: "\2192"; color: var(--violet); font-weight: 600; }
.topic:hover { color: var(--ink); border-color: var(--violet); }

/* Footer */
.foot { background: var(--surface); border-top: 1px solid var(--line); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 28px; padding-bottom: 36px; }
.foot__brand { flex: 1 1 300px; display: flex; flex-direction: column; gap: 6px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot__links a { display: flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; }
.foot__pages { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 0 22px; padding-top: 8px; border-top: 1px solid var(--line); }
.foot__pages a { display: flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--ink); }
