/* KyrgyzSat — dedicated mobile layout (≤767px). Loaded with media="(max-width: 767px)".
 * Principles: one column, short sections, swipe rails with peek, ≥48px tap targets,
 * full-width primary actions, sticky bottom CTA, full-screen menu. Logical properties → RTL mirrors.
 */

:root {
  --gutter: 16px;
  --header-h: 64px;
  --m-radius: 14px;
  --m-btn-h: 54px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

body { font-size: 15px; }
.m-only { display: block; }
.js .reveal { transform: translateY(14px); }

/* Headline <br>s are desktop line breaks — let mobile wrap naturally */
.hero-title br, .sec-title br, .statement-title br { display: none; }

/* ---------- Buttons ---------- */
.btn { height: var(--m-btn-h); border-radius: 12px; font-size: 16px; padding-inline: 22px; justify-content: center; }
.btn-sm { height: 48px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header, .site-header.is-scrolled { --header-h: 64px; height: 64px; }
.header-inner { gap: 12px; }
.brand img, .brand img.logo--en, .is-scrolled .brand img, .is-scrolled .brand img.logo--en { height: 38px; }
.header-tools .lang, .header-cta { display: none; }
.burger { display: block; width: 48px; height: 48px; border-radius: 12px; border-color: var(--edge-2); background: rgba(10, 12, 15, .35); }
.burger span { inset-inline: 14px; }
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 27px; }
.burger[aria-expanded="true"] span:first-child, .burger[aria-expanded="true"] span:last-child { top: 23px; }
.nav, .nav.is-open { display: none; }
.menu-open, .menu-open body { overflow: hidden; }
.menu-open .site-header { background: #0b0d10; border-bottom-color: var(--edge); backdrop-filter: none; }

/* ---------- Full-screen menu ---------- */
.m-menu {
  display: block; position: fixed; inset: 0; z-index: 45;
  padding-block: calc(var(--header-h) + 8px) calc(24px + var(--safe-b));
  background: #0b0d10; overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease;
}
.m-menu[hidden] { display: none; }
.m-menu.is-open { opacity: 1; transform: none; }
.m-menu-inner { padding-inline: var(--gutter); display: flex; flex-direction: column; gap: 20px; min-height: 100%; }
.m-lang { display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--edge); }
.m-lang button { height: 48px; border: 0; border-radius: 10px; background: none; color: var(--t2); font-size: 14px; font-weight: 600; cursor: pointer; }
.m-lang button[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 15px; }
.m-lang button[aria-pressed="true"] { background: var(--surface-2); color: var(--t0); box-shadow: inset 0 0 0 1px var(--edge-2); }
.m-nav { display: flex; flex-direction: column; }
.m-nav a { display: flex; align-items: center; justify-content: space-between; min-height: 60px; border-bottom: 1px solid var(--edge); font-family: var(--f-display); font-size: 22px; font-weight: 500; color: var(--t0); }
.m-nav a .i { width: 20px; height: 20px; color: var(--t3); }
.m-nav a:active { color: var(--cyan); }
.m-menu-mail { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: 12px; border: 1px solid var(--edge-2); color: var(--t0); font-weight: 600; direction: ltr; }
.m-menu-mail .i { width: 20px; height: 20px; color: var(--t2); }

/* ---------- Sticky bottom CTA ---------- */
.m-cta {
  display: flex; gap: 10px; position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
  padding: 10px var(--gutter) calc(10px + var(--safe-b));
  background: rgba(10, 12, 15, .88); backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-top: 1px solid var(--edge);
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.m-cta.is-visible { transform: none; }
.menu-open .m-cta { transform: translateY(110%); }
.m-cta-icon { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px; border: 1px solid var(--edge-2); color: var(--t0); }
.m-cta-icon .i { width: 22px; height: 22px; }
.m-cta-main { flex: 1; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; padding-block: calc(var(--header-h) + 120px) 0; justify-content: flex-end; }
.hud, .hero-orbit, .scanline, .grid-bg, .hero-meta, .scroll-cue, .eyebrow, .hero-sub { display: none; }
.hero-img { object-position: 50% 100%; }
.hero-shade { background: linear-gradient(to top, rgba(8, 9, 11, .88) 0%, rgba(8, 9, 11, .7) 38%, rgba(8, 9, 11, .15) 70%, rgba(8, 9, 11, 0) 100%); }
.hero-sat { width: min(56vw, 250px); top: calc(var(--header-h) + 22px); inset-inline-end: 6vw; translate: none; }
.hero-inner { padding-block-end: calc(28px + var(--safe-b)); }
.hero-title, html[lang] .hero-title { font-size: clamp(30px, 9vw, 38px); line-height: 1.08; max-width: none; }
html[lang="ar"] .hero-title { line-height: 1.4; }
.hero-sub-m { margin-block-start: 14px; font-size: 16px; color: var(--t1); }
.hero-actions { flex-direction: column; gap: 10px; margin-block-start: 26px; }
.hero-actions .btn { width: 100%; flex: none; }

/* ---------- Section rhythm ---------- */
.section { padding-block: 56px; }
.sec-head { display: block; margin-block-end: 24px; }
.label { font-size: 11px; margin-block-end: 12px; }
.sec-title { font-size: clamp(24px, 7vw, 28px); line-height: 1.12; }
html[lang="ar"] .sec-title { line-height: 1.45; }
.sec-lead { padding: 0; margin-block-start: 12px; font-size: 15px; color: var(--t2); max-width: none; }
.mark { display: none; }
#press .sec-lead, .pipeline-head .muted { display: none; }

/* ---------- Swipe rails ---------- */
.rail {
  display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-block-end: 2px;
  scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 82%; scroll-snap-align: start; min-width: 0; }
.rail-progress { position: relative; width: 88px; height: 2px; margin-block-start: 18px; border-radius: 2px; background: var(--edge-2); overflow: hidden; }
.rail-progress.is-hidden { visibility: hidden; }
.rail-progress i { position: absolute; inset-block: 0; inset-inline-start: calc(var(--p, 0) * (100% - var(--w, .4) * 100%)); width: calc(var(--w, .4) * 100%); border-radius: 2px; background: var(--t0); }

/* ---------- Directions ---------- */
.domains { display: flex; grid-template-columns: none; }
.domain { aspect-ratio: 4 / 5; border-radius: var(--m-radius); }
.domain-body { padding: 20px; }
.domain h3 { font-size: 21px; }
.domain p { max-height: none; opacity: 1; font-size: 14px; }

/* ---------- Solutions + stepper ---------- */
.statement { margin-block-end: 40px; }
.statement-title { font-size: clamp(24px, 7vw, 28px); line-height: 1.15; }
.statement-text { margin-block-start: 16px; font-size: 15px; color: var(--t2); }
.pipeline-head { border: 0; padding: 0; margin-block-end: 18px; }
.pipeline { display: block; position: relative; }
.pipeline::before { display: block; content: ""; position: absolute; top: 20px; bottom: 20px; inset-inline-start: 19px; width: 1px; height: auto; background: var(--edge-2); }
.pipeline::after { display: none; }
.step, .step + .step, .step:first-child, .step:nth-child(3) {
  display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; align-items: start;
  padding: 0 0 22px; border: 0;
}
.step:last-child { padding-block-end: 0; }
.step-ico { display: none; }
.step-n { grid-row: 1 / span 2; position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; margin: 0; border-radius: 50%; background: var(--surface); border: 1px solid var(--edge-2); color: var(--t0); font-size: 13px; }
.step:first-child .step-n { border-color: var(--cyan); color: var(--cyan); }
.step h4 { grid-column: 2; font-size: 17px; margin: 8px 0 4px; }
.step p { grid-column: 2; font-size: 14px; max-width: none; }

/* ---------- Agriculture: swipe cards instead of tabs ---------- */
.tabs { display: none; }
.agri-cards { display: flex; }
.acard { display: flex; flex-direction: column; gap: 8px; }
.acard-media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--m-radius); overflow: hidden; border: 1px solid var(--edge); background: var(--surface); margin-block-end: 8px; }
.acard-media img { width: 100%; height: 100%; object-fit: cover; }
.acard-tag { position: absolute; top: 12px; inset-inline-start: 12px; padding: 5px 9px; border-radius: 8px; font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .08em; color: var(--t0); background: rgba(10, 12, 15, .7); backdrop-filter: blur(6px); }
.acard-n { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--t3); }
.acard h3 { font-family: var(--f-display); font-weight: 500; font-size: 19px; color: var(--t0); line-height: 1.25; }
.acard p { font-size: 14px; color: var(--t2); }

/* ---------- Benefits rail ---------- */
.benefits { display: flex; border: 0; }
.benefit, .benefit + .benefit {
  padding: 22px; border: 1px solid var(--edge); border-radius: var(--m-radius); background: var(--surface);
}
.benefit::before { display: none; }
.benefit-top { margin-block-end: 36px; }
.benefit h3 { font-size: 20px; margin-block-end: 10px; }
.benefit p { font-size: 14px; }

/* ---------- Goal ---------- */
.goal { min-height: 0; padding-block: 200px 44px; }
.goal-title { font-size: clamp(28px, 8.4vw, 36px); line-height: 1.1; }
html[lang="ar"] .goal-title { line-height: 1.4; }
.goal-text { margin-block-start: 16px; font-size: 15px; }

/* ---------- Ecosystem: compact flow + list (ring diagram hidden) ---------- */
.eco-diagram { display: block; padding: 0; margin-block-end: 28px; }
.eco-core { display: none; }
.eco-flow { width: 100%; margin: 0; }
.eco-flow::before { display: none; }
.chip { padding: 10px 12px; font-size: 13px; }
.flow-line { min-width: 12px; }
.pillars { display: block; border-top: 1px solid var(--edge); }
.pillar { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 18px 0; border: 0; border-bottom: 1px solid var(--edge); border-radius: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.pillar:hover { transform: none; }
.pillar .p-ico { grid-row: 1 / span 2; width: 44px; height: 44px; margin: 0; border-radius: 12px; }
.pillar h3 { font-size: 17px; margin-block-end: 4px; }
.pillar p { font-size: 14px; }

/* ---------- Press ---------- */
#press .container { display: flex; flex-direction: column; }
.press-bar { display: contents; }
.chips {
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 8px;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); margin-block-end: 18px;
}
.chips::-webkit-scrollbar { display: none; }
.fchip { flex: none; height: 44px; padding-inline: 18px; font-size: 14px; }
.press-grid { display: block; min-height: 0; }
.pcard { border-radius: var(--m-radius); }
.pcard--featured { margin-block-end: 14px; }
.pcard--featured .pcard-media { aspect-ratio: 16 / 10; min-height: 0; flex: none; }
.pcard--featured .pcard-body { position: static; padding: 20px; background: none; }
.pcard--featured h3 { font-size: 20px; }
.press-rest { display: flex; }
.press-rest .pcard { flex-basis: 78%; }
.pcard-body { padding: 18px; gap: 8px; }
.pcard h3 { font-size: 16px; }
.pcard p { font-size: 14px; -webkit-line-clamp: 2; }
.pcard-link { min-height: 44px; padding: 0; }
.link-arrow { order: 10; align-self: stretch; justify-content: center; min-height: var(--m-btn-h); margin-block-start: 22px; border: 1px solid var(--edge-2); border-radius: 12px; padding: 0; }
.presskit { order: 11; display: block; margin-block-start: 12px; border-radius: var(--m-radius); }
.pk-main { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px; }
.pk-main .p-ico { width: 44px; height: 44px; border-radius: 12px; }
.pk-main h3 { font-size: 17px; }
.pk-main p { font-size: 14px; }
.pk-main .btn { grid-column: 1 / -1; width: 100%; }
.pk-contact { padding: 0; border: 0; border-top: 1px solid var(--edge); }
.pk-contact .label { padding: 16px 18px 0; margin: 0; }
.pk-mail { display: flex; align-items: center; min-height: 52px; padding: 0 18px 8px; font-size: 18px; direction: ltr; justify-content: flex-start; }
[dir="rtl"] .pk-mail { justify-content: flex-end; }

/* ---------- Contact + form ---------- */
.contact { padding-block: 56px calc(56px + var(--safe-b)); }
.contact-inner { display: block; }
.contact-title { font-size: clamp(28px, 8.4vw, 36px); line-height: 1.1; }
.contact-text { margin-block-start: 14px; font-size: 15px; }
.contact-mail { display: inline-flex; align-items: center; min-height: 48px; margin-block: 12px 28px; font-size: 20px; }
.form { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 20px; border-radius: var(--m-radius); }
.field label { font-size: 11px; }
.field input { height: 54px; font-size: 16px; padding-inline: 16px; border-radius: 12px; }
.field textarea { min-height: 128px; font-size: 16px; border-radius: 12px; }
.form-foot { flex-direction: column; align-items: stretch; gap: 14px; margin: 4px 0 0; }
.form-foot .btn { width: 100%; height: 56px; }
.form-note { max-width: none; font-size: 13px; }

/* ---------- Footer ---------- */
.footer { padding-block: 40px calc(28px + var(--safe-b)); }
.footer-inner { display: flex; flex-direction: column; gap: 28px; }
.footer-brand img, .footer-brand img.logo--en { height: 44px; margin-block-end: 12px; }
.footer-contacts { gap: 0; border-top: 1px solid var(--edge); }
.footer-contacts a { min-height: 64px; justify-content: center; border-bottom: 1px solid var(--edge); }
.footer-contacts b { font-size: 18px; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.footer-nav a { display: flex; align-items: center; min-height: 48px; font-size: 15px; }
.footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; padding-block-start: 20px; }
.to-top { min-height: 44px; }

/* ---------- Narrow phones ---------- */
@media (max-width: 374px) {
  .rail > * { flex-basis: 86%; }
  .chip { padding: 9px 10px; font-size: 12px; }
  .m-lang button { font-size: 13px; }
}
