/* ==========================================================================
   Calister — דף נחיתה
   הפלטה, הרדיוסים והצללים נלקחו מ-frontend/src/theme/variables.css כדי
   שהאתר והאפליקציה יראו כמו אותו מוצר.
   ========================================================================== */

:root {
  /* משטחים */
  --cream:        #fff9f4;
  --cream-deep:   #fdf3ea;
  --surface:      #ffffff;
  --ink:          #14201a;
  --ink-soft:     #4a5a51;
  --muted:        #7b8a82;
  --line:         rgba(20, 32, 26, 0.08);

  /* מותג */
  --brand:        #34c759;
  --brand-shade:  #2eaf4e;
  --brand-tint:   #48cd6a;
  --brand-wash:   rgba(52, 199, 89, 0.10);

  /* מאקרו */
  --macro-carbs:   #9f88c8;
  --macro-protein: #3cbaec;
  --macro-fat:     #ff9800;

  /* צורה */
  --r-card:  24px;
  --r-md:    18px;
  --r-sm:    14px;
  --r-pill:  999px;

  --font: 'Heebo', 'Assistant', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-num: 'Nunito', ui-rounded, 'SF Pro Rounded', var(--font);

  --shell: 1160px;
}

/* העמודים ב-LTR (רוסית ואנגלית) רצים על Inter; העברית נשארת על Heebo,
   שנושא את האלפבית העברי. ל-Inter יש קירילית מלאה, ולכן הוא מתאים לשתיהן. */
html[lang="ru"],
html[lang="en"] {
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ─── איפוס ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.18; font-weight: 800; letter-spacing: -0.015em; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite { display: none; }

.ic {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 20px;
}
.shell-narrow { max-width: 760px; }

.accent { color: var(--ink); }

/* ─── כפתורים ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, opacity .15s ease;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-shade); }

.btn-ghost {
  background: rgba(20, 32, 26, 0.05);
  color: var(--ink);
}
.btn-ghost:hover { background: rgba(20, 32, 26, 0.09); }

.btn-store {
  background: #14201a;
  color: #fff;
  padding: 12px 24px;
  font-size: 16px;
}
.btn-store:hover { background: #0b130e; }
.btn-store span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.btn-store small { font-size: 11px; font-weight: 500; opacity: .72; }
.btn-store-alt { background: var(--brand); }
.btn-store-alt:hover { background: var(--brand-shade); }
.btn-store-light { background: #fff; color: var(--ink); }
.btn-store-light:hover { background: #f2f5f2; }

.store-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ─── כותרת עליונה ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 249, 244, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid transparent;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.brand img { border-radius: 10px; }

.main-nav {
  display: flex;
  gap: 4px;
  margin-inline: auto;
}
.main-nav a {
  padding: 8px 12px;
  white-space: nowrap;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink-soft);
  transition: background-color .15s ease, color .15s ease;
}
.main-nav a:hover { background: rgba(20, 32, 26, 0.05); color: var(--ink); }

.header-actions { display: flex; gap: 8px; margin-inline-start: auto; }
.main-nav + .header-actions { margin-inline-start: 0; }

/* מתג שפה — קבוצת כפתורים מפולחת, בלי JS. הגרסה הפעילה מסומנת ב-is-active. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  margin-inline-end: 4px;
  border-radius: var(--r-pill);
  background: rgba(20, 32, 26, 0.05);
}
.lang-opt {
  padding: 7px 11px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.lang-opt:hover { color: var(--ink); }
.lang-opt.is-active { background: var(--surface); color: var(--ink); }

/* שם מלא מול קוד קצר: עם חמישה פריטי ניווט השם המלא כבר לא נכנס לשורה
   (ברוסית — בשום רוחב, כי ה-shell חסום ב-1160px), ולכן הקוד מוצג תמיד. */
.lang-full { display: none; }
.lang-code { display: inline; }

/* ─── Hero ──────────────────────────────────────────────────────────── */
.hero { position: relative; padding-block: 56px 0; overflow: hidden; }

.hero-inner { position: relative; text-align: center; }

.hero-title {
  margin-top: 26px;
  font-size: clamp(38px, 7vw, 68px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.hero-sub {
  max-width: 620px;
  margin: 20px auto 0;
  font-size: clamp(16.5px, 2.1vw, 19px);
  color: var(--ink-soft);
}

.stat-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}
.stat-card {
  min-width: 210px;
  padding: 18px 26px;
  border-radius: var(--r-card);
  background: var(--cream-deep);
  border: 1px solid rgba(20, 32, 26, .05);
}
.stat-num {
  font-family: var(--font-num);
  font-size: 38px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--ink);
}
.stat-label { font-size: 14.5px; font-weight: 600; color: var(--ink-soft); line-height: 1.35; }
.stars { color: #f2b21c; letter-spacing: 3px; font-size: 15px; }

.hero .store-row { margin-top: 30px; }
.hero-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

/* ─── מוקאפ המכשירים ────────────────────────────────────────────────── */
/* שלושה מסכים חתוכים מצילומי ה-App Store (appstore-screens/0N-*-enlarged.png):
   מסגרת כהה + הכרטיס המוגדל שבולט מהצדדים, על רקע שקוף. */
.phone-stage {
  /* --w = רוחב גוף הטלפון המרכזי; כל השאר נגזר ממנו */
  --w: clamp(118px, 25vw, 260px);
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-width: 920px;
  height: calc(var(--w) * 2.29); /* נחתך מתחת לכרטיס התוצאה, כפתור "המשך" מוסתר */
  margin: 60px auto 0;
  /* חותך רק את התחתית — הטלפונים "עומדים" בתוך הבמה */
  clip-path: inset(-100vh -50vw 0 -50vw round 0 0 40px 40px);
}
/* הבמה בצבעי המנטה של צילומי ה-App Store */
.phone-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: calc(var(--w) * .46) 0 0;
  border-radius: 40px;
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(255, 255, 255, .75), transparent 70%),
    linear-gradient(180deg, #e3f8e8, #b4ebc3);
}
.phone-shot { display: block; height: auto; flex: none; }
.phone-center {
  position: relative;
  z-index: 2;
  margin-top: calc(var(--w) * .26);
  width: calc(var(--w) * 1.2638); /* כולל הכרטיס הבולט משני הצדדים */
  filter: drop-shadow(0 28px 44px rgba(16, 70, 38, .22));
}
.phone-side {
  width: calc(var(--w) * .86);
  margin-top: calc(var(--w) * .76);
  margin-inline: calc(var(--w) * -.07);
  /* נוטים החוצה מהמרכז, כמו כרטיסים ביד */
  transform-origin: 50% 100%;
  transform: rotate(var(--tilt));
  filter: drop-shadow(0 18px 30px rgba(16, 70, 38, .16));
}
/* הטלפון השמאלי נוטה נגד כיוון השעון, הימני עם כיוון השעון */
.phone-side:first-child { --tilt: -8deg; }
.phone-side:last-child  { --tilt: 8deg; }
[dir="rtl"] .phone-side:first-child { --tilt: 8deg; }
[dir="rtl"] .phone-side:last-child  { --tilt: -8deg; }

/* ─── רצועת סנכרון ──────────────────────────────────────────────────── */
.strip { padding-block: 44px 8px; }
.strip-title {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted);
  text-transform: uppercase;
}
.strip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 34px;
  margin-top: 18px;
}
.strip-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-soft);
}
.strip-list .ic { width: 19px; height: 19px; color: var(--brand-shade); }
.strip-note {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* ─── מקטעים ────────────────────────────────────────────────────────── */
.section { padding-block: 84px; }
.section-tint { background: var(--cream-deep); }

.section-head { text-align: center; max-width: 660px; margin: 0 auto 46px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 900; letter-spacing: -0.025em; }
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: 17px; }

.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px 24px;
  transition: transform .2s ease;
}
.card:hover { transform: translateY(-4px); }
.card h3 { margin-top: 16px; font-size: 20px; }
.card p  { margin-top: 8px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; }
.card-lg { padding: 32px 28px; }

.card-ic {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: var(--r-md);
  background: var(--brand-wash);
  color: var(--brand-shade);
}
.card-ic .ic { width: 25px; height: 25px; }

/* מספרים */
.results { padding-block: 70px; }
.result-grid { gap: 14px; }
.result {
  text-align: center;
  padding: 26px 16px;
  border-radius: var(--r-card);
  background: var(--cream-deep);
  border: 1px solid rgba(20, 32, 26, .05);
}
.result b {
  display: block;
  font-family: var(--font-num);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.1;
}
.result span { font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }

/* צ׳יפים */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.chips li {
  display: inline-flex;
  align-items: center;
  padding: 13px 20px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 15.5px;
  transition: transform .18s ease;
}
.chips li:hover { transform: translateY(-3px); }

/* המלצות */
.review {
  margin: 0;
  padding: 24px;
  border-radius: var(--r-card);
  background: var(--cream-deep);
  border: 1px solid rgba(20, 32, 26, .05);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review blockquote { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); }
.review figcaption { margin-top: auto; font-weight: 800; font-size: 14.5px; }

/* שאלות נפוצות */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 4px 20px;
}
.faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 16px;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .chev {
  width: 19px;
  height: 19px;
  margin-inline-start: auto;
  color: var(--muted);
  transform: rotate(90deg);
  transition: transform .2s ease;
}
.faq details[open] .chev { transform: rotate(-90deg); color: var(--brand-shade); }
.faq details p {
  padding-bottom: 18px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.7;
}
.faq-foot { margin-top: 26px; text-align: center; color: var(--muted); font-size: 15px; }
.faq-foot a { color: var(--ink); font-weight: 700; }

/* ─── קריאה לפעולה ──────────────────────────────────────────────────── */
.cta { padding-block: 24px 84px; }
.cta-inner {
  border-radius: 34px;
  padding: 62px 28px;
  text-align: center;
  background: linear-gradient(150deg, var(--brand-tint), var(--brand-shade));
  color: #fff;
}
.cta h2 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 900; letter-spacing: -0.025em; }
.cta p  { margin-top: 14px; font-size: 17.5px; opacity: .92; }
.cta .store-row { margin-top: 30px; }

/* ─── כותרת תחתונה ──────────────────────────────────────────────────── */
.site-footer {
  background: #101a14;
  color: #cbd6cf;
  padding-block: 56px 28px;
  font-size: 15px;
}
.site-footer h4 {
  color: #fff;
  font-size: 14px;
  letter-spacing: .04em;
  margin-bottom: 14px;
}
.site-footer a { color: #cbd6cf; transition: color .15s ease; }
.site-footer a:hover { color: #fff; }
.site-footer li + li { margin-top: 9px; }

.footer-seo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-size: 14.5px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2.4fr;
  gap: 40px;
  padding-block: 40px;
}
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: 14px; color: #93a49a; font-size: 14.5px; max-width: 280px; }

.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; font-size: 14.5px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #7f9289;
  font-size: 13.5px;
}
.footer-bottom a { color: inherit; }

/* ═══ בלוג ═══════════════════════════════════════════════════════════ */

.blog-hero { padding-block: 52px 34px; }
.blog-hero h1 {
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 900;
  letter-spacing: -0.025em;
}
.blog-hero p {
  margin-top: 12px;
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 18px;
}

/* ── תמונת הכתבה ─────────────────────────────────────────────────────
   אין עדיין צילומים, אז כל כתבה מקבלת משטח צבע לפי הקטגוריה עם האייקון
   שלה. להחלפה בתמונה אמיתית: <img> במקום ה-<span class="thumb">. */
.thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-card);
  background: linear-gradient(150deg, #e7f7ec, #cfeeda);
  transition: transform .25s ease;
}
.thumb .ic { width: 42px; height: 42px; stroke-width: 1.3; color: rgba(20, 32, 26, .26); }
.thumb-guides    { background: linear-gradient(150deg, #e7f7ec, #cfeeda); }
.thumb-nutrition { background: linear-gradient(150deg, #e4f4fb, #d3e9f5); }
.thumb-recipes   { background: linear-gradient(150deg, #fdf0e0, #f7e2c8); }
.thumb-tools     { background: linear-gradient(150deg, #efe9f8, #e1d6f0); }
.thumb-product   { background: linear-gradient(150deg, #fff2e8, #ffe4d3); }

/* ── כרטיס כתבה ──────────────────────────────────────────────────── */
.post, .featured-post { display: block; color: inherit; }
.post-body { display: block; }

.featured { padding-bottom: 58px; }
.featured-post {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 42px;
  align-items: center;
}
.featured-post .thumb { aspect-ratio: 16 / 11; }
.featured-post .post-body { padding-block: 4px; }

.featured-flag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}

.post-cat {
  display: block;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.featured-post .post-cat { margin-top: 0; }

.post-title {
  margin-top: 9px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.015em;
}
.featured-post .post-title { font-size: clamp(27px, 3.4vw, 40px); font-weight: 900; line-height: 1.22; letter-spacing: -0.025em; }

.post-excerpt {
  display: block;
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.6;
}
.featured-post .post-excerpt { font-size: 17px; }

.post-meta {
  display: block;
  margin-top: 11px;
  color: var(--muted);
  font-size: 13.5px;
}

.post:hover .thumb, .featured-post:hover .thumb { transform: translateY(-5px); }
.post:hover .post-title, .featured-post:hover .post-title { text-decoration: underline; text-underline-offset: 3px; }

/* ── סינון לפי קטגוריה, ב-CSS בלבד ───────────────────────────────────
   כל קטגוריה היא עוגן ריק לפני הרשימה; :target עליו מסתיר את מה שלא
   שייך לה ומדליק את הכפתור המתאים. בלי JavaScript, ועם כתובת שניתן לשתף. */
.blog-list { padding-bottom: 88px; }
.cat-target { display: none; }

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.filter {
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.filter:hover { border-color: var(--ink-soft); color: var(--ink); }

/* ברירת המחדל היא "הכול" — היא נכבית ברגע שנבחרה קטגוריה כלשהי. */
.filter-all { background: var(--ink); border-color: var(--ink); color: #fff; }
#cat-guides:target    ~ .filter-row .filter-all,
#cat-nutrition:target ~ .filter-row .filter-all,
#cat-recipes:target   ~ .filter-row .filter-all,
#cat-tools:target     ~ .filter-row .filter-all,
#cat-product:target   ~ .filter-row .filter-all {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink-soft);
}

#cat-guides:target    ~ .filter-row a[href="#cat-guides"],
#cat-nutrition:target ~ .filter-row a[href="#cat-nutrition"],
#cat-recipes:target   ~ .filter-row a[href="#cat-recipes"],
#cat-tools:target     ~ .filter-row a[href="#cat-tools"],
#cat-product:target   ~ .filter-row a[href="#cat-product"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

#cat-guides:target    ~ .post-grid .post:not(.is-guides),
#cat-nutrition:target ~ .post-grid .post:not(.is-nutrition),
#cat-recipes:target   ~ .post-grid .post:not(.is-recipes),
#cat-tools:target     ~ .post-grid .post:not(.is-tools),
#cat-product:target   ~ .post-grid .post:not(.is-product) {
  display: none;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px 28px;
}

/* ─── מסמכים משפטיים ─────────────────────────────────────────────────
   policy*.html ו-terms*.html נבנים מ-gen_legal.py מתוך טבלת
   legal_documents ב-Supabase — אותו מקור שממנו האפליקציה קוראת אותם. */
.legal-hero { padding-block: 52px 10px; }
.legal-hero h1 {
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 900;
  letter-spacing: -0.025em;
}
.legal-updated {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 700;
}

.legal-body { padding-block: 22px 72px; }
.legal-card {
  max-width: 760px;
  padding: 30px 32px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
}
.legal-card h2 {
  margin-top: 30px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.legal-card h2:first-child { margin-top: 0; }
.legal-card p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.7;
}
/* cancel*.html: ordered steps and links inside the card. */
.legal-card ol {
  margin-top: 12px;
  padding-inline-start: 22px;
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.7;
}
.legal-card li + li { margin-top: 4px; }
.legal-card a {
  color: var(--brand-shade);
  font-weight: 700;
}
.legal-card a:hover { text-decoration: underline; }

.legal-home {
  display: inline-block;
  margin-top: 26px;
  color: var(--brand-shade);
  font-weight: 700;
}
.legal-home:hover { text-decoration: underline; }

/* ─── רספונסיביות ───────────────────────────────────────────────────── */
@media (max-width: 1040px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .legal-hero { padding-block: 34px 6px; }
  .legal-card { padding: 22px 20px; }
  .featured-post { grid-template-columns: 1fr; gap: 22px; }
  .blog-hero { padding-block: 34px 26px; }
  .section { padding-block: 62px; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-seo { grid-template-columns: 1fr; gap: 26px; }
  .hero { padding-top: 38px; }
  .hero-title { font-size: clamp(32px, 9vw, 44px); }
  .stat-card { min-width: 0; flex: 1 1 150px; padding: 16px 18px; }
  .cta-inner { padding: 46px 20px; border-radius: 28px; }
}

@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-cols { grid-template-columns: 1fr; }
  .store-row .btn-store { flex: 1 1 100%; }
  .header-actions .btn-ghost { display: none; }
  .header-inner { gap: 10px; }
  .lang-switch { margin-inline-end: 0; padding: 2px; gap: 1px; }
  .lang-opt { padding: 6px 9px; font-size: 12.5px; }
  .phone-stage { --w: 38vw; margin-top: 44px; clip-path: inset(-100vh -50vw 0 -50vw round 0 0 26px 26px); }
  .phone-stage::before { border-radius: 26px; }
}

@media (max-width: 400px) {
  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
