/* YorYor — site design system (2026-09 redesign)
 *
 * Palette from Uzbek craft: Samarkand lapis and tile turquoise, pomegranate
 * (anor — family and abundance) as the one action colour, saffron for small
 * highlights. Cormorant (display) + Onest (text): both cover Uzbek Latin,
 * extended Cyrillic (ў қ ғ ҳ), Russian and Turkish.
 */

:root {
  --ink: #111a2e;
  --text: #2b3346;
  --muted: #626a7d;
  --paper: #fbf9f5;
  --surface: #ffffff;
  --sand: #f3eee5;
  --line: #e6e0d4;
  --night: #0f1a33;
  --night-2: #16244a;
  --lapis: #1f3f8f;
  --turquoise: #1e8c86;
  --turquoise-soft: #dff1ee;
  --pomegranate: #b3263b;
  --pomegranate-dark: #8e1b2d;
  --pomegranate-soft: #f8e6e8;
  --saffron: #d9a441;

  --display: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(17, 26, 46, .04), 0 12px 32px -12px rgba(17, 26, 46, .16);
  --shadow-lg: 0 2px 4px rgba(17, 26, 46, .05), 0 30px 60px -20px rgba(17, 26, 46, .28);
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 32px);

  /* Girih-style eight-point star lattice, drawn once and tinted per use. */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M36 6l8.5 21.5L66 36l-21.5 8.5L36 66l-8.5-21.5L6 36l21.5-8.5z'/%3E%3Cpath d='M36 18l5 13 13 5-13 5-5 13-5-13-13-5 13-5z'/%3E%3Cpath d='M0 0l6 6M72 0l-6 6M0 72l6-6M72 72l-6-6'/%3E%3C/g%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--lapis); text-underline-offset: 3px; }
a:hover { color: var(--pomegranate); }
:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { color: var(--ink); margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: lining-nums; }
h1 { font-size: clamp(2.7rem, 6.2vw, 4.9rem); line-height: 1.02; }
h2 { font-size: clamp(2.05rem, 4.2vw, 3.2rem); line-height: 1.08; }
h3 { font: 600 1.18rem/1.35 var(--sans); letter-spacing: -0.005em; }
p { margin: 0; }
em.accent, h1 em, h2 em { font-style: italic; color: var(--pomegranate); font-weight: 600; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section.tight { padding-block: clamp(48px, 6vw, 80px); }
.stack { display: grid; gap: 18px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--turquoise);
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); line-height: 1.6; color: var(--text); max-width: 60ch; }
.section-head { display: grid; gap: 16px; max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head p { color: var(--muted); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 1rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--pomegranate); color: #fff; box-shadow: 0 10px 24px -10px rgba(179, 38, 59, .65); }
.btn-primary:hover { background: var(--pomegranate-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-light { background: #fff; color: var(--pomegranate); }
.btn-light:hover { background: var(--pomegranate-soft); color: var(--pomegranate-dark); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .92rem; }

/* ── Header ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 245, .82);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(17, 26, 46, .4); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand-name { font: 700 1.55rem/1 var(--display); letter-spacing: -0.01em; }
.brand-name span { color: var(--pomegranate); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: 10px 12px; border-radius: 10px;
}
.nav a:hover { color: var(--ink); background: var(--sand); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 10px; font-weight: 500; font-size: .92rem; color: var(--text);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: var(--sand); }
.lang summary svg { width: 18px; height: 18px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 6px; display: grid;
}
.lang-menu a { padding: 10px 12px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: .95rem; }
.lang-menu a:hover { background: var(--sand); color: var(--ink); }
.lang-menu a[aria-current="page"] { color: var(--pomegranate); font-weight: 600; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle svg { width: 24px; height: 24px; }

@media (max-width: 980px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .header-actions .btn { display: none; }
  .site-header.open .nav {
    display: grid; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: 12px var(--gutter) 20px; gap: 2px;
  }
  .site-header.open .nav a { padding: 14px 12px; font-size: 1.05rem; }
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 84px) clamp(64px, 8vw, 110px); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 85% 20%, rgba(30, 140, 134, .10), transparent 70%),
    radial-gradient(50% 45% at 10% 90%, rgba(179, 38, 59, .07), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 6px 0 0; padding: 0; list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--muted); }
.trust svg { width: 18px; height: 18px; color: var(--turquoise); flex: none; }

.hero-visual { position: relative; }
.arch {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 50% 50% var(--radius) var(--radius) / 34% 34% var(--radius) var(--radius);
  box-shadow: var(--shadow-lg); background: var(--sand);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch::after {
  content: ""; position: absolute; inset: 10px; pointer-events: none;
  border: 1.5px solid rgba(255, 255, 255, .7);
  border-radius: 50% 50% 14px 14px / 33% 33% 14px 14px;
}
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(230, 224, 212, .9); border-radius: 16px; box-shadow: var(--shadow);
  padding: 12px 16px; font-size: .9rem; line-height: 1.35; color: var(--ink); max-width: 250px;
}
.float-card strong { display: block; font-weight: 600; }
.float-card span { color: var(--muted); font-size: .82rem; }
.float-card .ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float-card .ico svg { width: 20px; height: 20px; }
.float-card.one { left: -28px; bottom: 18%; }
.float-card.two { right: -18px; top: 14%; }
.ico.t { background: var(--turquoise-soft); color: var(--turquoise); }
.ico.p { background: var(--pomegranate-soft); color: var(--pomegranate); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; width: 100%; margin: 8px auto 0; }
  .float-card.one { left: -6px; }
  .float-card.two { right: -6px; }
}

/* ── Name story strip ────────────────────────────────────────────────── */
.story {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: center;
  padding: clamp(28px, 4vw, 40px); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.story .word { font: italic 600 clamp(2.6rem, 6vw, 4rem)/1 var(--display); color: var(--pomegranate); }
.story p { color: var(--text); max-width: 70ch; }
@media (max-width: 640px) { .story { grid-template-columns: 1fr; } }

/* ── Steps ───────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.step { position: relative; display: grid; gap: 10px; align-content: start; padding-top: 70px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  font: 600 1.6rem/1 var(--display); color: var(--pomegranate);
  background: var(--surface); border: 1.5px solid var(--line); z-index: 1;
}
.step::after {
  content: ""; position: absolute; top: 26px; left: 60px; right: -12px; height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}
.step:last-child::after { display: none; }
.step p { color: var(--muted); font-size: .98rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .step:nth-child(2n)::after { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step { padding: 0 0 0 72px; min-height: 52px; }
  .step::after { display: none; }
}

/* ── Bento features ──────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile {
  position: relative; display: grid; gap: 12px; align-content: start;
  padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tile p { color: var(--muted); font-size: .98rem; }
.tile .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; }
.tile .ico svg { width: 24px; height: 24px; }
.tile .tag {
  position: absolute; top: 22px; right: 22px; font: 600 .7rem/1 var(--sans); letter-spacing: .08em;
  text-transform: uppercase; color: var(--saffron); border: 1px solid currentColor; border-radius: 999px; padding: 6px 9px;
}
.tile.feature {
  grid-row: span 2; background: var(--night); border-color: var(--night); color: #d9dcef;
  overflow: hidden; padding: 34px;
}
.tile.feature::before {
  content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .07; pointer-events: none;
}
.tile.feature h3 { color: #fff; font: 600 clamp(1.9rem, 3vw, 2.4rem)/1.08 var(--display); }
.tile.feature p { color: #c3c8de; font-size: 1.02rem; }
.tile.feature .ico { background: rgba(255, 255, 255, .08); color: var(--saffron); }
.tile.feature a { color: #fff; font-weight: 600; }
.tile.feature ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tile.feature li { display: flex; gap: 10px; color: #dfe2f1; font-size: .98rem; }
.tile.feature li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; background: var(--saffron); transform: rotate(45deg); }
@media (max-width: 980px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .tile.feature { grid-row: auto; } }

/* ── Audience cards ──────────────────────────────────────────────────── */
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.audience {
  display: grid; gap: 12px; align-content: start; padding: 30px; border-radius: var(--radius);
  text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.audience:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.audience .kicker { font: 600 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--turquoise); }
.audience h3 { font: 600 1.7rem/1.1 var(--display); }
.audience p { color: var(--muted); font-size: .98rem; }
.audience .more { margin-top: 6px; font-weight: 600; color: var(--pomegranate); display: inline-flex; align-items: center; gap: 6px; }
.audience .more svg { width: 18px; height: 18px; transition: transform .2s ease; }
.audience:hover .more svg { transform: translateX(3px); }
@media (max-width: 900px) { .audiences { grid-template-columns: 1fr; } }

/* ── Dark band (guardian, CTA) ───────────────────────────────────────── */
.band {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) + 8px);
  background: var(--night); color: #d9dcef; padding: clamp(36px, 6vw, 72px);
}
.band::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .07; pointer-events: none; }
.band > * { position: relative; }
.band h2 { color: #fff; }
.band.red { background: var(--pomegranate); color: #fbe9eb; }
.band.red::before { opacity: .10; }
.band-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .band-grid { grid-template-columns: 1fr; } }
.cta-center { display: grid; justify-items: center; text-align: center; gap: 18px; }
.cta-center p { max-width: 56ch; }

/* ── Pricing ─────────────────────────────────────────────────────────── */
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.price {
  display: grid; gap: 6px; padding: 24px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); position: relative;
}
.price .term { font-weight: 600; color: var(--ink); }
.price .amount { font: 600 2.1rem/1.05 var(--display); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.price .amount small { font: 500 .85rem var(--sans); color: var(--muted); margin-left: 4px; }
.price .note { color: var(--muted); font-size: .9rem; }
.price.best { border-color: var(--pomegranate); box-shadow: 0 0 0 1px var(--pomegranate), var(--shadow); }
.price .badge {
  position: absolute; top: -12px; left: 24px; background: var(--pomegranate); color: #fff;
  font: 600 .72rem/1 var(--sans); letter-spacing: .06em; padding: 7px 10px; border-radius: 999px;
}
.price .amount { white-space: nowrap; }
@media (max-width: 900px) { .prices { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .price { padding: 18px 16px; }
  .price .amount { font-size: 1.55rem; }
  .price .amount small { display: block; margin: 2px 0 0; }
}

/* ── Article cards ───────────────────────────────────────────────────── */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post {
  display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text);
  transition: transform .25s ease, box-shadow .25s ease;
}
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.post .kicker { font: 600 .74rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--turquoise); }
.post h3 { font: 600 1.45rem/1.15 var(--display); }
.post p { color: var(--muted); font-size: .95rem; }
.post .meta { font-size: .85rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; } }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 20px 22px; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--pomegranate); border-bottom: 2px solid var(--pomegranate);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq details p { padding: 0 22px 22px; color: var(--text); }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { background: var(--night); color: #b9bfd6; padding-block: 64px 32px; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .04; pointer-events: none; }
.site-footer > * { position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer .brand { color: #fff; }
.site-footer h4 { color: #fff; font: 600 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #b9bfd6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-about { display: grid; gap: 16px; align-content: start; }
.footer-about p { font-size: .95rem; max-width: 36ch; }
.footer-contact { font-style: normal; display: grid; gap: 4px; font-size: .9rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .08); font-size: .88rem;
}
.footer-langs { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-langs a[aria-current="page"] { color: #fff; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ── Subpages ────────────────────────────────────────────────────────── */
.page-hero { padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 40px); position: relative; }
.page-hero .stack { gap: 20px; max-width: 820px; }
.crumbs { font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: .5; }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .9rem; color: var(--muted); }

.prose { max-width: 720px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 0; list-style: none; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: .65em; width: 8px; height: 8px; background: var(--pomegranate); transform: rotate(45deg);
}
.prose > p:first-of-type { font-size: 1.15rem; color: var(--ink); }
.note-card {
  padding: 24px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  display: grid; gap: 14px; justify-items: start;
}
.related { display: grid; gap: 10px; }
.related a { font-weight: 600; text-decoration: none; color: var(--ink); }
.related a:hover { color: var(--pomegranate); }

/* Reveal: content is visible at rest; JS only adds a gentle rise. */
.reveal { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal:not(.in) { transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) { .js .reveal:not(.in) { transform: none; } .reveal { transition: none; } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
