
:root{
  --primary:#0a2342; --accent:#12b3a2; --bg:#f7fbfc; --text:#0b1b22; --muted:#5a7684;
  --card:#fff; --radius:16px; --shadow:0 10px 25px rgba(7,59,83,.12); --max:1188px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Inter,Roboto,Arial,sans-serif;overflow-x:hidden;scroll-behavior:smooth}
a{color:inherit;text-decoration:none}
.container{max-width:var(--max);margin-inline:auto;padding:clamp(16px,2vw,28px);overflow-wrap:anywhere}

/* Header */
header{position:sticky;top:0;z-index:80;background:linear-gradient(90deg,#0f3561,#0a2342);color:#fff;border-bottom:1px solid rgba(255,255,255,.08)}
.nav{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.brand img{height:64px;display:block;object-fit:contain}
.nav-links{display:flex;gap:1rem;align-items:center}
.nav a{color:#d8f2f7;opacity:.95;font-size:1.25rem} /* +25% */
.lang-toggle{display:inline-grid;grid-auto-flow:column;gap:4px;background:#0a2b4a;padding:4px;border-radius:999px}
.lang-toggle button{background:transparent;border:0;color:#bfe7ef;padding:.45rem .7rem;border-radius:999px;font-weight:700;cursor:pointer}
.lang-toggle button.active{background:#e9feff;color:#083449}
.menu-btn{display:none;background:#0a2b4a;border:0;color:#bfe7ef;border-radius:12px;padding:.55rem .7rem;font-weight:800;cursor:pointer}

/* Mobile Drawer */
.drawer{position:fixed;inset:0;display:none;z-index:9999;background:rgba(0,0,0,.5)}
.drawer.open{display:block}
.drawer-panel{position:absolute;right:0;top:0;height:100%;width:min(78vw,360px);background:#0a2342;color:#e1f5fb;padding:18px;display:flex;flex-direction:column;gap:12px;box-shadow:-10px 0 25px rgba(0,0,0,.35)}
.drawer a{color:#d8f2f7;font-weight:700;font-size:1.1rem;padding:12px 10px;border-radius:10px}
.drawer a:hover{background:#0f3561}

.skip{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip:focus{left:8px;top:8px;width:auto;height:auto;background:#fff;color:#000;padding:8px;border-radius:8px;z-index:10000}

/* Hero & sections */
.hero{background:radial-gradient(1200px 500px at 50% -100px, #187792 10%, #0a2342 70%, #081b30 100%);color:#e8fbff}
.hero-wrap{display:grid;grid-template-columns:1.05fr .95fr;gap:40px;align-items:center}
.hero h1{font-size:clamp(30px,4vw,46px);margin:0 0 .5rem}
.kicker{font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#b8ecf5;font-size:.85rem}
.hero p{color:#d2f3f8;font-size:1.05rem;line-height:1.6}
.hero-card{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.15);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow)}

.button{display:inline-flex;gap:.6rem;align-items:center;justify-content:center;padding:.9rem 1.2rem;border-radius:999px;background:var(--accent);color:#fff;font-weight:600;border:0;cursor:pointer;transition:.2s transform,.2s opacity;max-width:100%}
.button:hover{transform:translateY(-2px);opacity:.95}
.button.secondary{background:#fff;color:#0a2342;border:2px solid var(--accent)}

.section{padding:56px 0}
.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:16px}
.card{grid-column:span 6;background:var(--card);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow);border:1px solid #e8f2f6;position:relative;transition:transform .15s ease, box-shadow .15s ease}
.card:hover,.card:focus{transform:translateY(-2px);box-shadow:0 14px 32px rgba(7,59,83,.18);outline:3px solid rgba(18,179,162,.3);outline-offset:2px}
.card h3{margin:6px 0 8px}
.card p{margin:0;color:var(--muted)}
.card .go{position:absolute;right:16px;bottom:16px;font-weight:700;color:var(--accent)}

.gallery{display:grid;grid-template-columns:repeat(12,1fr);gap:12px}
.gallery a{display:block}
.gallery img{width:100%;height:auto;border-radius:12px;border:1px solid #e1eef2;box-shadow:0 10px 22px rgba(7,59,83,.08)}

footer{background:#062537;color:#e1f5fb;padding-bottom:28px}
footer .footer-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:24px}
.fine{color:#9bd6e0;font-size:.9rem}
footer a{color:#bfe7ef;text-decoration:underline dotted}

@media (max-width:980px){
  .hero-wrap{grid-template-columns:1fr}
  .grid .card,.gallery a{grid-column:span 12}
  .nav-links{display:none}
  .menu-btn{display:inline-block}
}
@media (max-width:720px){
  .brand img{height:64px;display:block;object-fit:contain}
  footer .footer-grid{grid-template-columns:1fr;gap:12px}
  footer .footer-grid p{margin:6px 0}
}

[data-lang="en"] .ru{display:none}
[data-lang="ru"] .en{display:none}

/* Lightbox */
.lightbox-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.85);display:none;align-items:center;justify-content:center;z-index:1000}
.lightbox-backdrop.active{display:flex}
.lightbox-image{max-width:92vw;max-height:88vh;border-radius:12px;box-shadow:0 20px 50px rgba(0,0,0,.5)}
.lightbox-close{position:fixed;top:18px;right:18px;background:#fff;border:0;border-radius:999px;padding:.6rem .8rem;font-weight:700;cursor:pointer}

/* v7 header layout */
.nav{display:flex;align-items:center;justify-content:space-between;gap:12px}
.nav-left{display:flex;align-items:center;gap:12px}
.nav-right{display:flex;align-items:center;gap:12px;margin-left:auto}
.brand img{height:68px;display:block;object-fit:contain}
.flag-btn{display:inline-flex;align-items:center;gap:2px;background:#0a2b4a;border:1px solid rgba(255,255,255,.15);color:#e7fbff;border-radius:999px;padding:.35rem .55rem;font-weight:700;cursor:pointer}
.flag{font-size:1.1rem;line-height:1}
.flag-btn.active{background:#e9feff;color:#083449}
.label{display:inline}
.menu-btn{display:none;background:#0a2b4a;border:2px solid rgba(255,255,255,.35);color:#e7fbff;border-radius:10px;padding:.4rem .55rem;font-weight:800;cursor:pointer}
.mobile-only{display:none}

@media (max-width: 980px){
  .nav-links{display:none}
  .menu-btn{display:inline-block}
  .mobile-only{display:inline-block}
  .label{display:none} /* mobile: only flags */
  .brand img{height:56px}
}
@media (max-width: 720px){
  .brand img{height:50px}
}


/* === APM Mobile White Logo Injection (v15) === */
.header .logo img, .logo img, img.logo, img[alt*="logo" i] {
  max-height: 44px;
  height: auto;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}
/* Mobile alignment */
@media (max-width: 768px) {
  .header, .topbar, .navbar, header {
    display: flex;
    align-items: center;
  }
  .slogan, .tagline, .motto {
    display: inline-block;
    vertical-align: middle;
  }
}
/* Force white logo visibility on dark/light backgrounds */
.logo img, img.logo, img[alt*="logo" i] {
  filter: none !important;
}



/* === APM v16: Logo & Slogan tuning (mobile + desktop) === */
/* Base logo rules */
.header .logo img, .logo img, img.logo, img[alt*="logo" i] {
  max-height: 56px; /* was ~44px */
  height: auto;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px; /* was 8px */
}

/* Slogan sizing */
.slogan, .tagline, .motto {
  font-size: 1.05rem; /* +~10% */
  line-height: 1.2;
}

/* Desktop tweaks */
@media (min-width: 769px) {
  .header, .topbar, .navbar, header {
    display: flex;
    align-items: center;
  }
  .header .logo img, .logo img, img.logo, img[alt*="logo" i] {
    max-height: 64px; /* bigger on desktop */
    margin-right: 8px;
  }
  .slogan, .tagline, .motto {
    font-size: 1.15rem; /* slightly larger on desktop */
  }
}



/* === APM v17: Pixel-perfect logo & slogan (mobile + desktop) === */
.header .logo img, .logo img, img.logo, img[alt*="logo" i] {
  max-height: 72px; /* increased for mobile */
  height: auto;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px; /* tighter gap to slogan */
}

.slogan, .tagline, .motto {
  font-size: 1.25rem;  /* bigger slogan on mobile */
  line-height: 1.2;
  display: inline-block;
  vertical-align: middle;
}

/* Ensure top bar elements align nicely on mobile */
@media (max-width: 768px) {
  .header, .topbar, .navbar, header {
    display: flex;
    align-items: center;
    gap: 8px;
  }
}

/* Desktop: a touch larger */
@media (min-width: 769px) {
  .header, .topbar, .navbar, header {
    display: flex;
    align-items: center;
  }
  .header .logo img, .logo img, img.logo, img[alt*="logo" i] {
    max-height: 78px;
    margin-right: 6px;
  }
  .slogan, .tagline, .motto {
    font-size: 1.3rem;
  }
}

