:root {
  --ocean: #0786bd;
  --deep: #07567f;
  --ink: #263b49;
  --footer: #123242;
  --gold: #ffd166;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(145deg, #e9f5f7e8, #cde5e9d9), url("../background.jpg") center top / cover fixed;
  color: var(--ink);
  font: 16px/1.8 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  color: #fff;
  background: transparent;
  box-shadow: 0 5px 20px #075c9130;
}
.header-top, .main-nav {
  max-width: 1240px;
  margin: auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-top, .main-nav { position: relative; isolation: isolate; }
.header-top::before, .main-nav::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
}
.header-top { padding-top: 7px; padding-bottom: 7px; }
.header-top::before { background: #ccebf4; }
.header-actions .button { background: #0786bd; color: #fff; box-shadow: none; }
.header-actions .button-light { background: #0786bd; color: #fff; }
.main-nav { padding-top: 3px; padding-bottom: 6px; }
.main-nav::before { background: #0786bd; }
.brand img, .footer-logo img { display: block; width: 58px; height: 58px; object-fit: contain; border-radius: 14px; }
.header-actions, .footer-actions { display: flex; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 750;
  background: var(--gold);
  color: #163b51;
  box-shadow: 0 4px 12px #072d4930;
  transition: transform .18s ease, box-shadow .18s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 7px 18px #072d4945; }
.header-actions .button, .footer-actions .button { position: relative; border: 2px solid #fff; box-shadow: 0 4px 0 #034c70, 0 7px 16px #062f4b55; transition: transform .16s ease, box-shadow .16s ease, filter .16s ease; }
.header-actions .button:hover, .header-actions .button:focus-visible, .footer-actions .button:hover, .footer-actions .button:focus-visible { transform: translateY(-3px) scale(1.045); box-shadow: 0 7px 0 #034c70, 0 12px 22px #062f4b66; filter: brightness(1.12); }
.header-actions .button:active, .footer-actions .button:active { transform: translateY(2px) scale(.98); box-shadow: 0 1px 0 #034c70, 0 3px 8px #062f4b44; }
.button-light { background: #fff; color: var(--deep); }
.button-outline { background: transparent; color: #fff; border: 1px solid #ffffffbd; }
.main-nav { justify-content: center; gap: clamp(8px, 1.7vw, 22px); padding: 8px 24px 16px; flex-wrap: wrap; }
.main-nav a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-weight: 750;
  font-size: 1.04rem;
  padding: 9px 11px;
  border-radius: 9px;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a[aria-current="page"] {
  color: #fff3bf;
  background: #ffffff18;
  transform: translateY(-1px);
}
.main-nav a:hover::after, .main-nav a:focus-visible::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-toggle { display: none; }
.hero { width: 100%; background: #07567f; overflow: hidden; }
.hero img { display: block; width: 100%; height: auto; object-fit: contain; }
.download-strip {
  width: min(80%, 1100px);
  margin: 22px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 4vw, 40px);
}
.download-strip a { display: block; width: min(34%, 230px); transition: transform .18s ease, filter .18s ease; }
.download-strip a:hover, .download-strip a:focus-visible { transform: translateY(-3px); filter: drop-shadow(0 8px 14px #07567f35); }
.download-strip img { display: block; width: 100%; height: auto; }
.content-wrap { width: min(80%, 1100px); margin: 36px auto 72px; }
.article {
  background: #f9fcfce8;
  border: 1px solid #cfe2e9;
  border-radius: 20px;
  padding: clamp(24px, 5vw, 64px);
  box-shadow: 0 16px 42px #1e597012;
}
.article h1, .article h2, .article h3 { color: var(--ocean); line-height: 1.3; }
.article h1 { margin-top: 0; text-align: center; font-size: clamp(1.9rem, 3vw, 2.5rem); }
.article h2 { margin-top: 1.7em; font-size: clamp(1.5rem, 2.5vw, 2rem); }
.article h3 { margin-top: 1.4em; font-size: 1.3rem; }
.article p { margin: 1em 0; }
.article .lead { color: #3b596a; font-size: 1.06rem; }
.breadcrumbs { width: min(80%, 1100px); margin: 24px auto 0; color: #587181; font-size: .96rem; }
.breadcrumbs a { color: var(--deep); font-weight: 700; }
.feature-image { width: 80%; margin: 28px auto; text-align: center; }
.feature-image img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid #c4dce5; }
.feature-image figcaption { margin-top: 8px; color: #617887; font-size: .9rem; }
.table-scroll { overflow-x: auto; margin: 22px 0; }
.article table { width: 100%; border-collapse: collapse; background: #fff; }
.article th, .article td { border: 1px solid #bfd8e2; padding: 10px 12px; text-align: left; vertical-align: top; }
.article th { color: var(--deep); background: #e5f3f7; }
.article tr:nth-child(even) td { background: #f1f8fa; }
.article tr:hover td { background: #e4f3f7; }
.article table { border: 1px solid #b7d4de; border-radius: 12px; overflow: hidden; }
.article-list { margin: 1em 0 1.35em; padding: 0 0 0 34px; border: 0; border-radius: 0; background: transparent; }
.article-list li { padding: 3px 0 3px 5px; }
.article-list li::marker { color: var(--ocean); font-weight: 800; }
.article blockquote { margin: 1.25em 0; padding: 14px 20px; border-left: 4px solid var(--ocean); border-radius: 0 12px 12px 0; color: #315467; background: #e5f3f7; }
.article a { color: #087db1; text-decoration: none; font-weight: 650; }
.article a:hover, .article a:focus-visible { color: #034d72; text-decoration: none; }
.blog-intro { text-align: center; color: #466273; }
.blog-grid { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 900px; gap: 18px; margin: 24px auto 0; }
.blog-card { display: grid; grid-template-columns: minmax(180px, 25%) minmax(0, 1fr); overflow: hidden; border: 1px solid #c8dfe7; border-radius: 14px; background: #fff; box-shadow: 0 8px 20px #1e597012; transition: transform .18s ease, box-shadow .18s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px #1e597022; }
.blog-card-image { display: block; overflow: hidden; min-height: 156px; background: #e5f3f7; }
.blog-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-card-content { align-self: center; padding: 14px 20px; }
.blog-card-date, .article-date { color: #627987; font-size: .9rem; }
.article-date { margin: -16px 0 22px; text-align: center; }
.blog-card-date { display: inline-block; margin-bottom: 8px; }
.article .blog-card h2 { margin: 0 0 6px; font-size: 1.18rem; line-height: 1.35; }
.blog-card-content p { margin: 6px 0 9px; color: #466273; font-size: .93rem; line-height: 1.55; }
.blog-card-more { display: inline-flex; gap: 8px; align-items: center; }
.faq { margin-top: 40px; }
.faq-item { margin: 10px 0; padding: 14px 18px; border: 1px solid #c6dfe8; border-radius: 12px; background: #fff; }
.faq-item summary { color: var(--deep); font-weight: 750; cursor: pointer; }
.faq-item p { margin-bottom: 0; }
.site-footer { padding: 42px 20px 26px; color: #e5f3f7; background: linear-gradient(140deg, #102d3c, #173e50); }
.footer-inner { width: min(80%, 1100px); margin: auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.footer-inner p { max-width: 850px; margin: 0; color: #d6e8ed; }
.footer-pages { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; margin-top: -8px; }
.footer-pages a { color: #55c9f2; font-size: 1.24rem; font-weight: 700; text-align: center; text-decoration: none; padding: 8px 18px; }
.footer-pages a + a { margin: 0; border-left: 1px solid #5caac2; }
.footer-pages a:hover, .footer-pages a:focus-visible { color: #a5e8ff; text-decoration: underline; text-underline-offset: 4px; }
.footer-actions .button-outline { border-color: #82b9cc; }
.footer-inner small { color: #a9c7d1; }
.telegram { position: fixed; top: 50%; right: 20px; z-index: 5; width: 78px; height: 78px; border-radius: 50%; filter: drop-shadow(0 5px 12px #063b6255); transition: filter .2s, transform .2s; }
.telegram img { display: block; width: 100%; }
.telegram:hover, .telegram:focus-visible { filter: hue-rotate(155deg) saturate(1.7) drop-shadow(0 0 12px #168de5); transform: translateY(-50%) scale(1.1); }
.telegram { transform: translateY(-50%); }
@media (max-width: 760px) {
  .header-top { padding: 10px 16px; }
  .brand img { width: 48px; height: 48px; }
  .header-actions { margin-left: auto; margin-right: 10px; gap: 7px; }
  .header-actions .button { padding: 8px 11px; font-size: .82rem; }
  .menu-toggle { display: block; border: 1px solid #0786bd; border-radius: 9px; background: #0786bd; color: #fff; padding: 8px 10px; font-size: 1.1rem; }
  .main-nav { display: none; align-items: stretch; flex-direction: column; gap: 2px; padding: 0 16px 12px; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 10px 8px; border-top: 1px solid #ffffff30; font-size: 1.08rem; }
  .main-nav a::after { display: none; }
  .download-strip { width: 90%; margin-top: 16px; gap: 12px; }
  .download-strip a { width: 42%; }
  .content-wrap, .breadcrumbs { width: 90%; }
  .content-wrap { margin: 24px auto 44px; }
  .article { padding: 23px 20px; border-radius: 14px; }
  .article p { font-size: .97rem; }
  .feature-image { width: 92%; }
  .blog-card { grid-template-columns: minmax(105px, 30%) minmax(0, 1fr); }
  .blog-card-image { min-height: 132px; }
  .blog-card-content { padding: 10px 12px; }
  .blog-card-date { margin-bottom: 4px; font-size: .78rem; }
  .article .blog-card h2 { font-size: 1rem; }
  .blog-card-content p { margin: 5px 0 7px; font-size: .84rem; line-height: 1.4; }
  .blog-card-more { font-size: .9rem; }
  .footer-inner { width: 92%; }
  .footer-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .footer-pages a { font-size: 1.08rem; padding: 10px 8px; }
  .footer-pages a:nth-child(3) { border-left: 0; }
  .telegram { right: 12px; width: 66px; height: 66px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
