/* =========================================================
   SKY RESERVE — skyreserve.sbs
   Static B2B site stylesheet. No framework, no external deps.
   ========================================================= */

:root {
  /* Brand palette */
  --navy:        #0f2740;
  --navy-2:      #143454;
  --navy-3:      #1c4670;
  --steel:       #5b8fb9;
  --sky:         #7db4dd;
  --accent:      #e8730c;   /* cargo/safety orange — CTAs */
  --accent-dark: #c85f04;
  --whatsapp:    #25d366;
  --whatsapp-dk: #1da851;

  /* Neutrals */
  --ink:         #14212e;
  --body:        #33475b;
  --muted:       #5f7285;
  --line:        #dde5ee;
  --line-2:      #e9eef4;
  --bg:          #ffffff;
  --bg-soft:     #f4f7fb;
  --bg-soft-2:   #eef3f9;
  --white:       #ffffff;

  /* Type */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;

  /* Layout */
  --maxw: 1140px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15,39,64,.06), 0 2px 8px rgba(15,39,64,.05);
  --shadow-md: 0 6px 22px rgba(15,39,64,.10);
  --shadow-lg: 0 18px 48px rgba(15,39,64,.16);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-3); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.22; font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-inline-start: 1.25em; }
li { margin: .3em 0; }
strong { color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.2rem 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.narrow { max-width: 760px; margin-inline: auto; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent-dark); margin-bottom: .7rem;
}
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Skip link ---------- */
/* Скрыта до фокуса. Через clip-path, а не отрицательный left:
   в RTL отрицательное позиционирование создавало горизонтальную прокрутку. */
.skip-link {
  position: absolute; inset-inline-start: 0; top: 0; z-index: 200;
  width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  background: var(--accent); color: #fff; padding: .6rem 1rem; font-weight: 600;
  border-end-end-radius: 8px;
}
.skip-link:focus {
  width: auto; height: auto; overflow: visible; clip-path: none;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,39,64,.97);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 66px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: #fff; font-weight: 800; letter-spacing: .02em; font-size: 1.12rem; }
.logo:hover { text-decoration: none; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo .logo-sub { display: block; font-size: .58rem; font-weight: 600; letter-spacing: .22em; color: var(--sky); text-transform: uppercase; margin-top: -3px; }

.site-nav ul { list-style: none; display: flex; align-items: center; gap: .35rem; margin: 0; padding: 0; }
.site-nav a { color: #d7e3f0; font-weight: 600; font-size: .95rem; padding: .55rem .7rem; border-radius: 8px; display: inline-block; }
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.site-nav a[aria-current="page"] { color: #fff; background: rgba(125,180,221,.18); }
.site-nav .nav-cta {
  color: #fff; background: var(--accent); margin-inline-start: .35rem;
}
.site-nav .nav-cta:hover { background: var(--accent-dark); }

.nav-toggle {
  display: none; background: transparent; border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px; width: 44px; height: 40px; cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: #fff; margin: 0 auto; position: relative; transition: .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08);
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  .site-nav.open { max-height: 80vh; overflow: auto; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 20px 1rem; }
  .site-nav a { padding: .8rem .6rem; border-radius: 8px; }
  .site-nav .nav-cta { margin: .4rem 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font-weight: 700; font-size: 1rem; line-height: 1; text-align: center;
  padding: .85rem 1.4rem; border-radius: 10px; border: 2px solid transparent; cursor: pointer;
  transition: transform .05s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #06341b; }
.btn-whatsapp:hover { background: var(--whatsapp-dk); color: #04250f; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy-3); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.06rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Hero ---------- */
.hero {
  color: #eaf1f8;
  background-color: var(--navy);
  background-image:
    radial-gradient(1100px 460px at 82% -10%, rgba(125,180,221,.20), transparent 60%),
    radial-gradient(760px 420px at 0% 110%, rgba(232,115,12,.14), transparent 55%),
    linear-gradient(160deg, rgba(15,39,64,.92) 0%, rgba(11,29,49,.96) 100%),
    url("/img/hero-warehouse.jpg");
  background-size: auto, auto, auto, cover;
  background-position: center, center, center, center;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
@supports (background-image: image-set(url("/img/hero-warehouse.webp") type("image/webp"))) {
  .hero {
    background-image:
      radial-gradient(1100px 460px at 82% -10%, rgba(125,180,221,.20), transparent 60%),
      radial-gradient(760px 420px at 0% 110%, rgba(232,115,12,.14), transparent 55%),
      linear-gradient(160deg, rgba(15,39,64,.92) 0%, rgba(11,29,49,.96) 100%),
      image-set(url("/img/hero-warehouse.webp") type("image/webp"), url("/img/hero-warehouse.jpg") type("image/jpeg"));
  }
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.4rem; align-items: center;
  padding: clamp(3rem, 6.5vw, 5.2rem) 0;
}
.hero h1 { color: #fff; margin-bottom: .55em; }
.hero p { color: #c8d7e6; font-size: 1.16rem; max-width: 40ch; }
.hero .btn-row { margin-top: 1.6rem; }
.hero .hero-meta { margin-top: 1.7rem; display: flex; flex-wrap: wrap; gap: 1.4rem; color: #a9c0d6; font-size: .92rem; }
.hero .hero-meta b { color: #fff; display: block; font-size: 1.35rem; line-height: 1.1; }
.hero-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px; padding: 1.4rem 1.5rem; box-shadow: var(--shadow-lg);
}
.hero-card h2 { color: #fff; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }
.hero-card dl { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; margin: 0; }
.hero-card dt { color: #9fb6cc; font-size: .92rem; }
.hero-card dd { color: #fff; margin: 0; font-weight: 600; text-align: end; }
.badge-stock {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.1rem;
  background: rgba(37,211,102,.16); color: #b7f5cf; border: 1px solid rgba(37,211,102,.4);
  border-radius: 999px; padding: .35rem .8rem; font-size: .85rem; font-weight: 600;
}
.badge-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--whatsapp); box-shadow: 0 0 0 4px rgba(37,211,102,.25); }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero p { max-width: none; }
}

/* ---------- Feature / why-buy grid ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.feature { }
.feature .ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--navy-3), var(--navy)); color: #fff; margin-bottom: 1rem;
}
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: .35rem; font-size: 1.12rem; }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Spec grid ---------- */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 820px) { .specs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .specs { grid-template-columns: 1fr; } }
.spec {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.25rem; box-shadow: var(--shadow-sm);
}
.spec .k { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.spec .v { font-size: 1.5rem; font-weight: 800; color: var(--ink); line-height: 1.1; margin-top: .25rem; }
.spec .v small { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); letter-spacing: 0; text-transform: none; margin-top: .2rem; }

/* Data table (spec sheet) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table.data { width: 100%; border-collapse: collapse; min-width: 460px; background: #fff; }
table.data th, table.data td { text-align: start; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line-2); font-size: .97rem; }
table.data th { background: var(--bg-soft); color: var(--ink); font-weight: 700; white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data td:first-child { color: var(--muted); font-weight: 600; width: 42%; }
.on-req {
  display: inline-block; color: var(--navy-3); font-weight: 600; background: var(--bg-soft-2);
  border: 1px solid var(--line); padding: .08em .6em; border-radius: 999px; font-size: .88em; white-space: nowrap;
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--navy); box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { font-size: .85rem; color: var(--muted); padding: .6rem .8rem; background: #fff; }

/* ---------- Pills / list checks ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.2rem; padding: 0; list-style: none; }
.pill { background: var(--bg-soft-2); border: 1px solid var(--line); color: var(--navy); font-weight: 600; font-size: .9rem; padding: .4rem .8rem; border-radius: 999px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-inline-start: 1.9rem; margin: .6rem 0; }
.checks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .28em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: rgba(37,211,102,.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231da851' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: .8rem;
}

/* ---------- CTA block ---------- */
.cta {
  color: #eaf1f8;
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(232,115,12,.20), transparent 60%),
    linear-gradient(160deg, var(--navy-2), #0b1d31);
  border-radius: 18px; padding: clamp(1.8rem, 4vw, 3rem); text-align: center; box-shadow: var(--shadow-md);
}
.cta h2 { color: #fff; }
.cta p { color: #c8d7e6; max-width: 56ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; margin-top: 1.4rem; }
.cta-mini { font-size: .9rem; color: #9fb6cc; margin-top: 1.1rem; }
.cta-mini a { color: #fff; }

/* ---------- Блок прямой связи (вместо формы) ---------- */
.contact-box { display: grid; gap: .7rem; margin: 1.3rem 0; }
.btn-block { width: 100%; }
@media (min-width: 620px) {
  .contact-box { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
.form-note { font-size: .88rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 0 1.2rem;
}
.faq summary {
  list-style: none; cursor: pointer; font-weight: 700; color: var(--ink);
  padding-block: 1.05rem; padding-inline: 0 2rem; position: relative; font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; inset-inline-end: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--accent); font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--line-2); }
.faq .faq-body { padding: .3rem 0 1.1rem; color: var(--body); }
.faq .faq-body :last-child { margin-bottom: 0; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .85rem; color: var(--muted); padding: 1rem 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.crumbs li::after { content: "/"; margin-inline-start: .4rem; color: var(--line); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 720px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card .thumb { background: var(--navy); }
.post-card .thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card .body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-card .tag { font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-dark); }
.post-card h3 { margin: .4rem 0 .5rem; font-size: 1.2rem; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--navy-3); text-decoration: none; }
.post-card p { color: var(--muted); font-size: .96rem; margin-bottom: 1rem; }
.post-card .more { margin-top: auto; font-weight: 700; color: var(--accent-dark); }

/* ---------- Article ---------- */
.article-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.article-head .container { padding-top: 1.6rem; padding-bottom: 2.2rem; }
.article-meta { font-size: .9rem; color: var(--muted); margin-top: .6rem; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose blockquote {
  margin: 1.6rem 0; padding-block: .3rem; padding-inline-start: 1.3rem; border-inline-start: 4px solid var(--accent);
  color: var(--ink); font-size: 1.08rem;
}
.prose .callout {
  background: var(--bg-soft); border: 1px solid var(--line); border-inline-start: 4px solid var(--steel);
  border-radius: 10px; padding: 1.1rem 1.3rem; margin: 1.6rem 0;
}
.prose .callout p:last-child { margin-bottom: 0; }
.related { border-top: 1px solid var(--line); margin-top: 2.6rem; padding-top: 1.6rem; }
.related h2 { font-size: 1.2rem; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.related a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9cadb; margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 2rem; padding: 3rem 0 2.4rem; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 1.8rem; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .5rem 0; }
.site-footer a { color: #b9cadb; }
.site-footer a:hover { color: #fff; }
.footer-brand .logo { margin-bottom: .8rem; }
.footer-brand p { font-size: .92rem; color: #92a7bc; max-width: 34ch; }
.footer-contact a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: #fff; }
.footer-contact .line { margin: .6rem 0; }
.footer-contact svg { width: 18px; height: 18px; flex: none; color: var(--sky); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.2rem 0; font-size: .85rem; color: #8399ae; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; align-items: center; }
.footer-disclaimer { font-size: .8rem; color: #6f869d; max-width: 70ch; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.text-muted { color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 1.6rem; } }
.divide-top { border-top: 1px solid var(--line); padding-top: 2rem; margin-top: 2rem; }


/* ---------- Галерея: кликабельные снимки ---------- */
.gallery figure { display: flex; flex-direction: column; }
.gallery .shot {
  display: block; padding: 0; margin: 0; border: 0; background: var(--navy);
  cursor: zoom-in; width: 100%; position: relative; overflow: hidden;
}
.gallery .shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.gallery .shot:hover img { transform: scale(1.04); }
.gallery .shot::after {
  content: ""; position: absolute; inset-inline-end: .5rem; bottom: .5rem; width: 30px; height: 30px;
  border-radius: 8px; background: rgba(15,39,64,.72);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 17px;
  opacity: 0; transition: opacity .2s ease;
}
.gallery .shot:hover::after, .gallery .shot:focus-visible::after { opacity: 1; }

/* ---------- Лайтбокс ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(8,18,30,.92); padding: 4vmin; border: 0;
}
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: #c8d7e6; text-align: center; font-size: .95rem; margin-top: .8rem; }
.lightbox figure { margin: 0; display: grid; justify-items: center; }
.lightbox-close {
  position: absolute; top: 1rem; inset-inline-end: 1rem; width: 44px; height: 44px; border-radius: 10px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); color: #fff;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.22); }

/* =========================================================
   Многоязычность: переключатель, арабская типографика, RTL
   ========================================================= */

/* ---------- Переключатель языков ---------- */
.header-tools { display: flex; align-items: center; gap: .6rem; }
.lang-switch ul {
  list-style: none; display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 999px;
}
.lang-switch a {
  display: block; color: #b9cadb; font-weight: 700; font-size: .82rem; letter-spacing: .04em;
  padding: .35rem .7rem; border-radius: 999px; line-height: 1.4;
}
.lang-switch a:hover { color: #fff; background: rgba(255,255,255,.1); text-decoration: none; }
.lang-switch a.is-current { color: #0f2740; background: var(--sky); }
.lang-switch .lang-full { display: none; }
.lang-switch--mobile { display: none; }

@media (max-width: 900px) {
  /* В мобильном меню — крупные названия языков, в шапке компактные коды */
  .lang-switch--mobile { display: block; padding: .25rem 20px 1rem; }
  .lang-switch--mobile ul {
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: transparent; border: 0; border-top: 1px solid rgba(255,255,255,.12);
    padding-top: .8rem;
  }
  .lang-switch--mobile a { padding: .7rem .6rem; border-radius: 8px; font-size: .95rem; }
  .lang-switch--mobile .lang-short { display: none; }
  .lang-switch--mobile .lang-full { display: inline; }
}
@media (max-width: 420px) {
  .lang-switch:not(.lang-switch--mobile) a { padding: .3rem .5rem; font-size: .76rem; }
  .logo .logo-sub { display: none; }
}

/* ---------- Арабская типографика ---------- */
:root {
  --sans-ar: "Segoe UI", Tahoma, "Noto Sans Arabic", "Noto Naskh Arabic",
             "Geeza Pro", "Arabic Typesetting", "Dubai", Arial, sans-serif;
}
[lang="ar"] body, body:lang(ar) { font-family: var(--sans-ar); }
[lang="ar"] { line-height: 1.9; }              /* арабской вязи нужен воздух */
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4 { line-height: 1.5; }
[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; }
[lang="ar"] .logo-sub { letter-spacing: .06em; }
[lang="ar"] .lang-switch a { letter-spacing: 0; }
/* Латинские обозначения (PGS-500, An-12) внутри арабского текста */
[lang="ar"] bdi { font-family: var(--sans); }

/* ---------- Правки под RTL ---------- */
[dir="rtl"] .hero-meta b,
[dir="rtl"] .spec .v { direction: ltr; text-align: start; }   /* «500 kg», «800» остаются слева направо */
[dir="rtl"] .post-card .more,
[dir="rtl"] .related a { display: inline-block; }
[dir="rtl"] .footer-bottom .container { text-align: start; }
[dir="rtl"] .btn svg { transform: none; }
