/* ==========================================================================
   aperavoznikau.com — site styles
   ========================================================================== */

:root {
  --paper: #F6F1EA;
  --paper-2: #EFE7DC;
  --card: #FFFDF9;
  --ink: #1E2B2A;
  --ink-2: #384543;
  --muted: #5E6966;
  --line: #E3D9CC;
  --line-strong: #CDBFAE;
  --accent: #B5543A;
  --accent-ink: #994229;
  --accent-soft: #F3E1D6;
  --sky: #CFDCE5;
  --deep: #1F3431;
  --on-deep: #E8E2D8;
  --on-deep-accent: #F0B79F;

  --serif: 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(30, 43, 42, .04), 0 12px 32px -14px rgba(30, 43, 42, .22);
  --shadow-lg: 0 2px 6px rgba(30, 43, 42, .05), 0 30px 60px -24px rgba(30, 43, 42, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink-2);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: color .2s;
}
a:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  margin: 0 0 .5em;
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 1.6rem + 4.6vw, 5rem); font-weight: 500; }
h2 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.4rem); font-weight: 500; }
h3 { font-size: 1.65rem; font-weight: 600; line-height: 1.15; }
h1 em, h2 em { font-style: italic; color: var(--accent); }

p { margin: 0 0 1em; }
b, strong { font-weight: 600; color: var(--ink); }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.section { padding-block: clamp(72px, 9vw, 128px); }
.section-alt { background: var(--paper-2); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { margin-bottom: 0; }
.section-head p { margin: 1.25rem 0 0; color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75em;
  margin: 0 0 1.25rem;
  font: 600 .78rem/1.3 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }

.lead {
  max-width: 36em;
  font-size: clamp(1.1rem, 1rem + .4vw, 1.28rem);
  line-height: 1.65;
  color: var(--ink-2);
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: .7em 1.2em;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.skip:focus { top: 12px; color: var(--paper); }

/* Icons ----------------------------------------------------------------- */

.i {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i-fill { width: 20px; height: 20px; flex: none; fill: currentColor; }

.icon-badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.icon-badge .i { width: 28px; height: 28px; }
.icon-badge.sm { width: 44px; height: 44px; border-radius: 12px; }
.icon-badge.sm .i { width: 22px; height: 22px; }

/* Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 54px;
  padding: .85em 1.7em;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.1 var(--sans);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .25s;
}
.btn .i { width: 1.15em; height: 1.15em; transition: transform .25s var(--ease); }
.btn:hover .i { transform: translateX(3px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(181, 84, 58, .8);
}
.btn-primary:hover { background: var(--accent-ink); color: #fff; transform: translateY(-1px); }

.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: rgba(255, 255, 255, .5); }

.btn-sm { min-height: 42px; padding: .6em 1.25em; font-size: .92rem; }

/* Header ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 234, .84);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(30, 43, 42, .4); }

.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font: 600 1.1rem/1 var(--serif);
  letter-spacing: .02em;
}
.brand-name { font: 600 1.4rem/1.1 var(--serif); }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: .5em .95em;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: .97rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.nav a:hover { color: var(--ink); background: rgba(30, 43, 42, .05); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(30, 43, 42, .07); }
.lang button {
  padding: .55em .85em;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 700 .78rem/1 var(--sans);
  letter-spacing: .08em;
  cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(30, 43, 42, .14); }

@media (max-width: 880px) {
  .header-inner { flex-wrap: wrap; gap: 6px 16px; min-height: 0; padding-block: 12px 8px; }
  .header-actions { margin-left: auto; }
  .header-cta { display: none; }
  .nav { order: 3; flex-wrap: wrap; width: 100%; margin: 0 0 0 -.8em; }
  .nav a { padding: .45em .8em; font-size: .92rem; }
}
@media (max-width: 420px) {
  .brand-mark { width: 36px; height: 36px; font-size: .95rem; }
  .brand-name { font-size: 1.18rem; }
}

/* Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(40px, 7vw, 96px) clamp(72px, 9vw, 128px);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -30%;
  right: -15%;
  width: min(900px, 90vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(207, 220, 229, .75), rgba(207, 220, 229, 0));
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: -35%;
  left: -20%;
  width: min(700px, 80vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(243, 225, 214, .8), rgba(243, 225, 214, 0));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
.hero h1 { margin-bottom: .4em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
}
.hero-facts li { display: inline-flex; align-items: center; gap: .55em; }
.hero-facts .i { width: 20px; height: 20px; color: var(--accent); }

.portrait { position: relative; justify-self: center; width: 100%; max-width: 460px; margin: 0; }
.portrait::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: -9%;
  bottom: -5%;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sky);
}
.portrait::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -16px 16px 16px -16px;
  border: 1px solid var(--accent);
  border-radius: 50% 50% 26px 26px / 40% 40% 26px 26px;
  opacity: .45;
}
.portrait-frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 50% 50% 26px 26px / 40% 40% 26px 26px;
  background: var(--paper-2);
  box-shadow: var(--shadow-lg);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }

.portrait-badge {
  position: absolute;
  z-index: 2;
  left: -32px;
  bottom: 44px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 290px;
  padding: 14px 20px 14px 14px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
  line-height: 1.3;
}
.portrait-badge strong { display: block; font: 600 1.25rem/1.15 var(--serif); }
.portrait-badge small { display: block; margin-top: 2px; color: var(--muted); font-size: .82rem; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 360px; }
  .portrait-badge { left: -10px; bottom: 28px; max-width: 250px; }
}

/* Stats ----------------------------------------------------------------- */

.stats { margin: 2.25rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.stat {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.stat-num {
  min-width: 3.1ch;
  font: 500 clamp(2.6rem, 2rem + 2vw, 3.4rem)/1 var(--serif);
  color: var(--ink);
}
.stat-label { color: var(--muted); font-size: .98rem; line-height: 1.4; }

/* Feature cards --------------------------------------------------------- */

.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.feature {
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .icon-badge { margin-bottom: 24px; }
.feature h3 { margin-bottom: .45em; }
.feature p { margin: 0; color: var(--muted); }

@media (max-width: 900px) {
  .cards-3 { grid-template-columns: 1fr; }
}

/* About / split --------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about-aside { position: sticky; top: 120px; }
.about-body > p { font-size: 1.08rem; }
.about-body .about-lead { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.4rem); line-height: 1.55; color: var(--ink); }

.subhead { margin: 2.5rem 0 1.25rem; font-size: 1.75rem; }

.checklist { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.checklist li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.checklist .check {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.checklist .check .i { width: 18px; height: 18px; stroke-width: 2; }

@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-aside { position: static; }
}

/* Pricing & steps ------------------------------------------------------- */

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.price-card {
  padding: clamp(32px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}
.price-label {
  margin: 0;
  font: 600 .78rem/1.3 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .15em .3em;
  margin: 18px 0 4px;
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1;
}
.price .amount { font-size: clamp(3.4rem, 2.8rem + 2vw, 4.6rem); font-weight: 500; }
.price .sep { font-size: 2.2rem; color: var(--line-strong); }
.price-per { margin: 0; color: var(--muted); }
.price-card .checklist { margin: 28px 0 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.price-card .btn { width: 100%; }

.steps { margin: 2rem 0 0; padding: 0; list-style: none; }
.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line-strong);
}
.step:last-child { padding-bottom: 0; }
.step-num { font: 500 2.6rem/1 var(--serif); color: var(--accent); }
.step h3 { margin-bottom: .3em; font-size: 1.5rem; }
.step p { margin: 0; color: var(--muted); }

@media (max-width: 880px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* Contact --------------------------------------------------------------- */

.contact { padding-block: clamp(72px, 9vw, 128px); }

.contact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(48px, 7vw, 96px) clamp(24px, 6vw, 88px);
  border-radius: clamp(24px, 3vw, 36px);
  background: var(--deep);
  color: var(--on-deep);
  text-align: center;
}
.contact-card::before,
.contact-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  aspect-ratio: 1;
  border-radius: 50%;
}
.contact-card::before {
  top: -45%;
  right: -12%;
  width: min(640px, 80vw);
  background: radial-gradient(closest-side, rgba(181, 84, 58, .45), rgba(181, 84, 58, 0));
}
.contact-card::after {
  bottom: -55%;
  left: -15%;
  width: min(640px, 80vw);
  background: radial-gradient(closest-side, rgba(207, 220, 229, .22), rgba(207, 220, 229, 0));
}
.contact-card .eyebrow { color: var(--on-deep-accent); }
.contact-card h2 { max-width: 16em; margin-inline: auto; color: #FBF7F1; }
.contact-card h2 em { color: var(--on-deep-accent); }
.contact-card p { max-width: 34em; margin: 1.25rem auto 0; color: rgba(232, 226, 216, .82); font-size: 1.08rem; }

.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 2.5rem; }
.social {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 26px 10px 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #FBF7F1;
  text-align: left;
  text-decoration: none;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.social:hover { background: #FBF7F1; border-color: #FBF7F1; color: var(--ink); transform: translateY(-2px); }
.social-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: #FBF7F1;
  color: var(--deep);
  transition: background-color .25s, color .25s;
}
.social:hover .social-icon { background: var(--deep); color: #FBF7F1; }
.social-text { display: flex; flex-direction: column; line-height: 1.25; }
.social-text strong { color: inherit; font-weight: 600; }
.social-text small { font-size: .82rem; opacity: .72; }

.social--primary { background: var(--accent); border-color: var(--accent); }
.social--primary .social-icon { background: #fff; color: var(--accent); }
.social--primary:hover { background: #fff; border-color: #fff; }
.social--primary:hover .social-icon { background: var(--accent); color: #fff; }

@media (max-width: 560px) {
  .socials { flex-direction: column; align-items: stretch; }
}

/* Footer ---------------------------------------------------------------- */

.site-footer { padding-block: 8px 48px; color: var(--muted); font-size: .93rem; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.footer-brand .brand-mark { width: 36px; height: 36px; font-size: .95rem; }
.footer-brand .brand-name { font-size: 1.2rem; }
.footer-copy { margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a, .footer-social a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background-color .2s, color .2s, border-color .2s;
}
.footer-social a:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.footer-social .i-fill { width: 18px; height: 18px; }

/* 404 ------------------------------------------------------------------- */

.not-found { padding-block: clamp(72px, 12vw, 160px); text-align: center; }
.not-found p { color: var(--muted); }
.not-found .not-found-code { margin: 0; font: 500 clamp(6rem, 4rem + 10vw, 11rem)/1 var(--serif); color: var(--accent); }
.not-found .btn { margin-top: 1rem; }

/* Reveal on scroll ------------------------------------------------------ */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* Hide the page for a moment while English is being applied (no flash of Russian text). */
.i18n-wait body { opacity: 0; animation: i18n-show 0s linear 1.2s forwards; }
@keyframes i18n-show { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Legal pages ----------------------------------------------------------- */

.legal { max-width: 800px; padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 112px); }
.legal h1 { font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.2rem); margin-bottom: .3em; }
.legal h2 { font-size: 1.6rem; margin: 2.2rem 0 .7rem; }
.legal h3 { margin: 1.6rem 0 .5rem; font: 700 1.15rem/1.3 var(--sans); }
.legal p, .legal li { font-size: 1rem; line-height: 1.7; }
.legal ol, .legal ul { margin: 0 0 1em; padding-left: 1.4em; }
.legal li { margin-bottom: .45em; }
.legal-meta { margin-bottom: 1.5rem; color: var(--muted); font-size: .92rem; }
.legal-langs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 2rem; }
.legal-langs a {
  padding: .4em .95em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}
.legal-langs a:hover { border-color: var(--ink); color: var(--ink); }
.legal-section + .legal-section { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--line-strong); }
.legal mark, .footer-legal mark { padding: 0 .25em; border-radius: 4px; background: #FFE9A8; color: var(--ink); }
.notice { margin: 1.5rem 0; padding: 18px 22px; border-radius: 16px; background: var(--accent-soft); color: var(--ink); }
.notice strong { color: var(--accent-ink); }
.form-box { margin: 1rem 0; padding: 20px 24px; border: 1px dashed var(--line-strong); border-radius: 16px; background: var(--card); }
.form-box p { margin: 0 0 .5em; }

/* Legal bits on the home page */
.contact-card .contact-legal { margin-top: 1.75rem; font-size: .9rem; color: rgba(232, 226, 216, .72); }
.contact-card .contact-legal a { color: #FBF7F1; }
.crisis-note { max-width: 44em; margin: 1.25rem auto 0; color: var(--muted); font-size: .9rem; text-align: center; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  width: 100%;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: .86rem;
}
.footer-legal a { color: var(--muted); text-decoration: none; }
.footer-legal a:hover { color: var(--ink); }
.footer-provider { color: var(--muted); }
