/* Atlantis BG - site styles */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-cyrillic-400.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-cyrillic-500.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-cyrillic-600.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Colour tokens ---------- */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f2f6f9;
  --text: #1f2a33;
  --muted: #45525c;
  --subtle: #5a6670;
  --heading: #054c73;
  --link: #2f5fbf;
  --link-hover: #054c73;
  --border: #d5e0e8;
  --border-strong: #9fb9cc;
  --hero: #054c73;
  --hero-text: #ffffff;
  --hero-muted: #d6e5ef;
  --hero-soft: #a9c6da;
  --hero-btn-border: #7fa8c4;
  --footer: #04354f;
  --footer-text: #d6e5ef;
  --footer-muted: #a9c6da;
  --footer-line: #1d5170;
  --badge: #e8f0f6;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #032a40; --surface: #04354f; --surface-alt: #04354f;
    --text: #d6e5ef; --muted: #a9c6da; --subtle: #a9c6da;
    --heading: #ffffff; --link: #8cc2e6; --link-hover: #ffffff;
    --border: #1d5170; --border-strong: #4f7f9e;
    --footer: #021f30; --badge: #0a4566;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #032a40; --surface: #04354f; --surface-alt: #04354f;
  --text: #d6e5ef; --muted: #a9c6da; --subtle: #a9c6da;
  --heading: #ffffff; --link: #8cc2e6; --link-hover: #ffffff;
  --border: #1d5170; --border-strong: #4f7f9e;
  --footer: #021f30; --badge: #0a4566;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background-color .25s ease, color .25s ease;
}
img, svg { display: block; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }
h1, h2, h3 { color: var(--heading); font-weight: 600; line-height: 1.2; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid #3d8fc6; outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--heading); color: var(--bg); padding: 10px 16px; border-radius: 6px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ---------- Header ---------- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 16px 32px; min-height: 84px; }
.logo { display: block; line-height: 0; margin-right: auto; min-width: 0; flex: 0 1 auto; }
.logo img { width: 292px; max-width: 100%; height: auto; }
.logo .logo-dark { display: none; }
:root[data-theme="dark"] .logo .logo-light { display: none; }
:root[data-theme="dark"] .logo .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo .logo-dark { display: block; }
}
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 24px; flex-wrap: wrap; }
.main-nav a { display: block; color: var(--heading); text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 0; border-bottom: 2px solid transparent; transition: border-color .2s ease; }
.main-nav a:hover { border-bottom-color: var(--border-strong); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--heading); font-weight: 600; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.lang-link { color: var(--heading); text-decoration: none; font-size: 14px; font-weight: 500; padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: 4px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--border-strong); border-radius: 6px; background: transparent; color: var(--heading); cursor: pointer; font-size: 22px; }
.icon-btn:hover { background: var(--badge); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
.menu-toggle { display: none; }
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }
.menu-open .menu-toggle .icon-menu { display: none; }

@media (max-width: 860px) {
  .site-header .wrap { min-height: 68px; padding-top: 10px; padding-bottom: 10px; gap: 12px; flex-wrap: wrap; }
  .header-tools { order: 2; }
  .logo img { width: min(219px, calc(100vw - 196px)); }
  .header-tools { gap: 6px; flex: none; }
  .icon-btn { width: 40px; height: 40px; font-size: 20px; }
  .lang-link { padding: 8px 10px; }
  .menu-toggle { display: inline-flex; }
  .main-nav { order: 3; flex-basis: 100%; display: none; }
  .menu-open .main-nav { display: block; }
  .no-js .main-nav { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 4px 0 8px; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 17px; }
  .main-nav li:last-child a { border-bottom: 0; }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--border); color: var(--heading); }
}

/* ---------- Hero band ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--hero); color: var(--hero-text); }
.hero-pattern { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.hero .wrap { padding-top: 40px; padding-bottom: 48px; }
.hero h1 { color: var(--hero-text); font-size: clamp(32px, 4.4vw, 44px); line-height: 1.15; display: flex; align-items: center; gap: 14px; }
.hero h1 .icon { font-size: 1em; }
.hero .lead { margin-top: 12px; font-size: 19px; color: var(--hero-muted); max-width: 720px; }
.hero-home .wrap { padding-top: 80px; padding-bottom: 96px; }
.hero-home h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.1; max-width: 760px; display: block; }
.hero-home .lead { margin-top: 20px; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14px; color: var(--hero-soft); margin-bottom: 14px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.breadcrumbs li { display: flex; align-items: center; gap: 4px; }
.breadcrumbs a { color: var(--hero-muted); }
.breadcrumbs .icon { font-size: 16px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; text-decoration: none; padding: 13px 22px; border-radius: 6px; border: 1px solid transparent; transition: background-color .2s ease, border-color .2s ease, transform .2s ease; }
.btn:active { transform: translateY(1px); }
.btn-light { background: #ffffff; color: #054c73; }
.btn-light:hover { background: #e8f0f6; color: #054c73; }
.btn-ghost { color: #ffffff; border-color: var(--hero-btn-border); font-weight: 500; }
.btn-ghost:hover { color: #ffffff; background: rgba(255,255,255,.08); }
.btn-primary { background: #054c73; color: #ffffff; }
.btn-primary:hover { background: #04354f; color: #ffffff; }
:root[data-theme="dark"] .btn-primary { background: #ffffff; color: #054c73; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { background: #ffffff; color: #054c73; } }
.btn-block { display: flex; width: 100%; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--surface-alt); }
.section h2 { font-size: 32px; margin-bottom: 28px; }
.section-head { display: flex; flex-wrap: wrap; gap: 40px; }
.text-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.text-link .icon { font-size: 18px; transition: transform .2s ease; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-wide { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 24px; color: var(--text); text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
a.card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(5, 76, 115, .08); color: var(--text); }
.card > .icon { font-size: 34px; color: var(--heading); margin-bottom: 14px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--muted); }
.card .more { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; color: var(--link); font-weight: 500; font-size: 15px; }
.card .more .icon { font-size: 18px; transition: transform .2s ease; }
a.card:hover .more .icon { transform: translateX(3px); }
.card-row { display: flex; gap: 20px; align-items: flex-start; padding: 28px; }
.card-row > .icon { font-size: 40px; margin: 0; }
.card-row h3 { font-size: 22px; margin-bottom: 6px; }
.card-row p { font-size: 16px; }

.stat { background: var(--surface); border-radius: 8px; padding: 20px; }
.section-alt .stat { background: var(--bg); }
:root[data-theme="dark"] .section-alt .stat { border: 1px solid var(--border); }
.stat .icon { font-size: 28px; color: var(--heading); margin-bottom: 8px; }
.stat .num { font-size: 36px; font-weight: 600; color: var(--heading); line-height: 1.2; }
.stat .label { font-size: 15px; color: var(--muted); }

.feature { background: var(--surface-alt); border-radius: 8px; padding: 20px; }
.feature .icon { font-size: 28px; color: var(--heading); margin-bottom: 8px; }
.feature h3 { font-size: 17px; margin-bottom: 4px; }
.feature p { font-size: 15px; color: var(--muted); }

.doc-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .2s ease; }
.doc-link:hover { border-color: var(--border-strong); color: var(--text); }
.doc-link .icon { font-size: 22px; }
.doc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 20px 24px; }
.doc-row > .icon { font-size: 32px; color: var(--heading); }
.doc-row .doc-title { display: block; font-size: 18px; font-weight: 600; color: var(--heading); }
.doc-row .doc-meta { font-size: 14px; color: var(--subtle); }
.doc-row .doc-main { flex: 1 1 320px; }
.doc-row .doc-action { display: inline-flex; align-items: center; gap: 6px; color: var(--heading); font-weight: 500; }

/* ---------- Article layout ---------- */
.layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.layout > article { flex: 999 1 560px; min-width: 0; }
.layout > aside { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; }
article h2 { font-size: 24px; margin: 0 0 10px; }
article p { margin-bottom: 12px; }
article p:last-child { margin-bottom: 0; }
article .block { margin-bottom: 32px; }
article .block:last-child { margin-bottom: 0; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.checklist .icon { font-size: 22px; color: var(--heading); margin-top: 1px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: step; }
.steps li { display: flex; gap: 14px; align-items: flex-start; counter-increment: step; }
.steps li::before { content: counter(step); flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--badge); color: var(--heading); font-weight: 600; display: flex; align-items: center; justify-content: center; }
.steps li span { padding-top: 3px; }
.panel { border: 1px solid var(--border); border-radius: 8px; padding: 24px; background: var(--surface); }
.panel h2 { font-size: 18px; margin-bottom: 6px; }
.panel p { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.panel .phone { display: block; text-align: center; font-weight: 600; text-decoration: none; color: var(--heading); padding: 8px; }
.panel-nav h2 { font-size: 16px; margin-bottom: 8px; }
.panel-nav a { display: block; padding: 6px 0; }
.hero-card { background: #ffffff; color: #1f2a33; border-radius: 8px; padding: 24px; }
:root[data-theme="dark"] .hero-card { background: #032a40; color: #d6e5ef; border: 1px solid #1d6189; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-card { background: #032a40; color: #d6e5ef; border: 1px solid #1d6189; } }
.hero-card h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 14px; color: var(--heading); }
.hero-card h2 .icon { font-size: 26px; }
.hero-card .phone { display: block; font-size: 18px; font-weight: 600; color: var(--heading); text-decoration: none; padding: 6px 0; }
.hero-card .phone + .phone { font-size: 16px; font-weight: 400; }
.hero-split { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.hero-split > div:first-child { flex: 999 1 520px; min-width: 0; }
.hero-split > .hero-card { flex: 1 1 320px; }
.facts { margin-top: 32px; background: var(--surface-alt); border-radius: 8px; padding: 24px 28px; display: flex; flex-wrap: wrap; gap: 12px 40px; }
.facts dt { font-size: 14px; color: var(--subtle); }
.facts dd { margin: 0; font-weight: 600; color: var(--heading); }
.two-col { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.two-col > * { flex: 1 1 320px; min-width: 0; }
.placeholder { background: rgba(255, 196, 0, .18); border-radius: 3px; padding: 0 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: var(--footer-text); font-size: 15px; }
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: #ffffff; }
.footer-main { display: flex; flex-wrap: wrap; gap: 32px 64px; padding-top: 56px; padding-bottom: 32px; }
.footer-main > div { flex: 1 1 260px; }
.footer-main img { height: 40px; width: auto; }
.footer-main h2 { font-size: 15px; color: #ffffff; margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid var(--footer-line); padding-top: 16px; padding-bottom: 32px; font-size: 14px; color: var(--footer-muted); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer-bottom a { color: var(--footer-muted); }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }

/* ---------- Subtle motion ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  a.card:hover { transform: none; }
}

@media (max-width: 600px) {
  .section { padding: 48px 0; }
  .section-tight { padding: 40px 0; }
  .section h2 { font-size: 26px; margin-bottom: 20px; }
  .hero .wrap { padding-top: 28px; padding-bottom: 36px; }
  .hero-home .wrap { padding-top: 40px; padding-bottom: 44px; }
  .hero .lead { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .card-row { padding: 20px; gap: 14px; }
  .card-row > .icon { font-size: 32px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .footer-main { padding-top: 40px; padding-bottom: 28px; gap: 24px; }
  .footer-bottom { padding-top: 16px; padding-bottom: 28px; flex-direction: column; gap: 10px; }
}

@media print {
  .site-header nav, .header-tools, .hero-pattern { display: none; }
  .hero { background: none; color: #000; }
  .hero h1, .hero .lead { color: #000; }
}
