@import url('/css/tokens.css');

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--white);
  font: var(--fw-regular) var(--fs-body)/var(--lh-normal) var(--font);
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 88px 0; }
.section--soft { background: var(--blue-050); }
.section--navy { color: var(--white); background: var(--navy-900); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--blue-600);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow::before { width: 28px; height: 2px; content: ''; background: var(--gold-500); }
.section--navy .eyebrow { color: var(--gold-300); }
.section-title { max-width: 760px; margin: 0; font-size: var(--fs-head); line-height: var(--lh-tight); letter-spacing: -.025em; }
.section-lead { max-width: 670px; margin: 18px 0 0; color: var(--muted); }
.section--navy .section-lead { color: rgba(255,255,255,.7); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 38px; }
.section-head .section-lead { margin: 0; max-width: 470px; }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--white);
  background: var(--blue-600);
  font-weight: var(--fw-medium);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.button:hover { transform: translateY(-2px); background: var(--navy-700); box-shadow: var(--shadow); }
.button--gold { color: var(--navy-900); background: var(--gold-400); }
.button--gold:hover { background: var(--gold-300); }
.button--ghost { border-color: var(--line); color: var(--navy-900); background: var(--white); }
.button--ghost:hover { background: var(--blue-050); }
.button--sm { min-height: 42px; padding: 8px 16px; font-size: var(--fs-caption); }

/* Header */
.topline { color: rgba(255,255,255,.76); background: var(--navy-900); font-size: var(--fs-caption); }
.topline__inner { min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topline__items { display: flex; align-items: center; gap: 24px; }
.topline a:hover { color: var(--white); }
.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(7,22,64,.08); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.nav { min-height: 86px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; min-width: 250px; align-items: center; gap: 12px; margin-right: auto; }
.brand__logo { width: 64px; height: 64px; object-fit: contain; }
.brand__name { color: var(--navy-900); font-size: var(--fs-subhead); font-weight: var(--fw-bold); line-height: 1.05; }
.brand__meta { display: block; margin-top: 5px; color: var(--muted); font-size: var(--fs-caption); font-weight: var(--fw-regular); }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link { padding: 10px 12px; border-radius: var(--radius-sm); font-size: var(--fs-caption); font-weight: var(--fw-medium); }
.nav__link:hover, .nav__link.is-active { color: var(--blue-600); background: var(--blue-050); }
.lang { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.lang button { min-width: 38px; padding: 6px 8px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font-size: var(--fs-caption); }
.lang button.is-active { color: var(--white); background: var(--navy-800); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { display: block; width: 22px; height: 2px; margin: 5px auto; content: ''; background: var(--navy-900); }

/* Hero */
.hero { position: relative; overflow: hidden; color: var(--white); background: var(--navy-900); }
.hero::before { position: absolute; inset: 0; content: ''; opacity: .42; background: radial-gradient(circle at 17% 30%, #3e79c8 0, transparent 34%), radial-gradient(circle at 80% 10%, #197d92 0, transparent 30%); }
.hero::after { position: absolute; inset: 0; content: ''; background-image: linear-gradient(120deg, rgba(7,22,64,.94) 0%, rgba(7,22,64,.72) 48%, rgba(7,22,64,.2) 100%), url('https://optim.tildacdn.pro/tild3164-6534-4432-a562-373431623836/-/format/webp/hero1.png.webp'); background-position: center, right center; background-size: cover, auto 100%; background-repeat: no-repeat; }
.hero__inner { position: relative; z-index: 1; min-height: 590px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; }
.hero__content { max-width: 720px; padding: 70px 0 82px; }
.hero__badge { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.1); font-size: var(--fs-caption); font-weight: var(--fw-medium); backdrop-filter: blur(10px); }
.hero__badge::before { width: 7px; height: 7px; content: ''; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 0 5px rgba(223,181,78,.18); }
.hero h1 { max-width: 700px; margin: 25px 0 22px; font-size: var(--fs-head); line-height: 1.06; letter-spacing: -.045em; }
.hero h1 span { color: var(--gold-300); }
.hero p { max-width: 620px; margin: 0; color: rgba(255,255,255,.82); font-size: var(--fs-subhead); line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .button--ghost { border-color: rgba(255,255,255,.28); color: var(--white); background: rgba(255,255,255,.08); }
.hero .button--ghost:hover { background: rgba(255,255,255,.16); }
.trust-strip { position: relative; z-index: 2; margin-top: -36px; }
.trust-strip__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-lg); }
.trust-item { display: flex; min-height: 108px; align-items: center; gap: 16px; padding: 24px 28px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item__icon, .card-icon { display: grid; flex: 0 0 auto; width: 48px; height: 48px; place-items: center; border-radius: 12px; color: var(--blue-600); background: var(--blue-100); }
.trust-item strong { display: block; color: var(--navy-900); font-size: var(--fs-subhead); line-height: 1.2; }
.trust-item span { color: var(--muted); font-size: var(--fs-caption); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.feature-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.feature-card:hover { transform: translateY(-5px); border-color: var(--gold-300); box-shadow: var(--shadow); }
.feature-card h3 { margin: 22px 0 10px; color: var(--navy-900); font-size: var(--fs-subhead); line-height: 1.25; }
.feature-card p { margin: 0; color: var(--muted); }
.feature-card__link { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; color: var(--blue-600); font-weight: var(--fw-medium); }
.feature-card__link:hover { gap: 11px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); background: rgba(255,255,255,.06); }
.stat { padding: 38px; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.12); }
.stat strong { display: block; color: var(--gold-300); font-size: var(--fs-head); line-height: 1; }
.stat span { display: block; margin-top: 12px; color: rgba(255,255,255,.68); }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.news-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.news-card__image { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--navy-800), var(--blue-400)); }
.news-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.news-card:hover .news-card__image img { transform: scale(1.04); }
.news-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.72); }
.news-card__body { padding: 24px; }
.news-card__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: var(--fs-caption); }
.news-card h3 { margin: 13px 0 10px; color: var(--navy-900); font-size: var(--fs-subhead); line-height: 1.28; }
.news-card p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.news-card__more { display: inline-flex; margin-top: 18px; color: var(--blue-600); font-weight: var(--fw-medium); }
.skeleton { min-height: 360px; border-radius: var(--radius); background: linear-gradient(90deg, var(--blue-050) 25%, var(--blue-100) 50%, var(--blue-050) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* About preview */
.about-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 70px; align-items: center; }
.about-visual { position: relative; min-height: 520px; border-radius: var(--radius-lg); background: url('https://optim.tildacdn.pro/tild3439-3732-4565-a232-333361393264/-/format/webp/zhakypov-768x512.jpg.webp') center/cover; box-shadow: var(--shadow-lg); }
.about-visual::after { position: absolute; inset: 0; content: ''; border-radius: inherit; background: linear-gradient(to top, rgba(7,22,64,.88), transparent 58%); }
.about-visual__caption { position: absolute; z-index: 1; right: 28px; bottom: 28px; left: 28px; color: var(--white); }
.about-visual__caption strong { display: block; font-size: var(--fs-subhead); }
.about-visual__caption span { color: rgba(255,255,255,.72); }
.check-list { display: grid; gap: 15px; margin: 28px 0 34px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before { position: absolute; top: 3px; left: 0; display: grid; width: 22px; height: 22px; content: '✓'; place-items: center; border-radius: 50%; color: var(--blue-600); background: var(--blue-100); font-size: var(--fs-caption); font-weight: var(--fw-bold); }

/* Internal pages */
.page-hero { position: relative; overflow: hidden; padding: 76px 0; color: var(--white); background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); }
.page-hero::after { position: absolute; top: -150px; right: -100px; width: 460px; height: 460px; content: ''; border: 80px solid rgba(223,181,78,.12); border-radius: 50%; }
.breadcrumbs { display: flex; gap: 8px; margin-bottom: 18px; color: rgba(255,255,255,.64); font-size: var(--fs-caption); }
.breadcrumbs a:hover { color: var(--white); }
.page-hero h1 { position: relative; z-index: 1; max-width: 800px; margin: 0; font-size: var(--fs-head); line-height: var(--lh-tight); }
.page-hero p { position: relative; z-index: 1; max-width: 680px; margin: 17px 0 0; color: rgba(255,255,255,.72); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
.prose h2 { margin: 0 0 16px; color: var(--navy-900); font-size: var(--fs-head); line-height: var(--lh-tight); }
.prose h3 { margin: 30px 0 10px; color: var(--navy-900); font-size: var(--fs-subhead); }
.prose p { margin: 0 0 18px; color: var(--muted); white-space: pre-line; }
.side-card { position: sticky; top: 116px; padding: 26px; border-radius: var(--radius); color: var(--white); background: var(--navy-800); box-shadow: var(--shadow); }
.side-card h3 { margin: 0 0 10px; font-size: var(--fs-subhead); }
.side-card p { margin: 0 0 22px; color: rgba(255,255,255,.7); }
.steps { display: grid; gap: 18px; margin-top: 34px; counter-reset: steps; }
.step-card { position: relative; padding: 27px 27px 27px 82px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); counter-increment: steps; }
.step-card::before { position: absolute; top: 24px; left: 24px; display: grid; width: 38px; height: 38px; content: counter(steps); place-items: center; border-radius: 50%; color: var(--white); background: var(--blue-600); font-weight: var(--fw-bold); }
.step-card h3 { margin: 0 0 7px; color: var(--navy-900); font-size: var(--fs-subhead); }
.step-card p { margin: 0; color: var(--muted); white-space: pre-line; }
.doc-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.filter-button { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--white); }
.filter-button.is-active { border-color: var(--blue-600); color: var(--white); background: var(--blue-600); }
.documents { display: grid; gap: 14px; }
.document { display: flex; align-items: center; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.document__type { display: grid; flex: 0 0 auto; width: 50px; height: 58px; place-items: center; border-radius: 8px; color: var(--blue-600); background: var(--blue-100); font-size: var(--fs-caption); font-weight: var(--fw-bold); }
.document__content { min-width: 0; margin-right: auto; }
.document h3 { margin: 0 0 4px; color: var(--navy-900); font-size: var(--fs-body); }
.document p { margin: 0; color: var(--muted); font-size: var(--fs-caption); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; }
.contact-info, .form-card { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.contact-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item strong { display: block; color: var(--navy-900); }
.contact-item span, .contact-item a { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--navy-900); font-size: var(--fs-caption); font-weight: var(--fw-medium); }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); outline: none; background: var(--white); }
.field textarea { min-height: 142px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); }
.form-status { min-height: 24px; margin-top: 14px; color: var(--ok); font-size: var(--fs-caption); }
/* Ловушка для ботов: поле не видно человеку, но остаётся в разметке формы. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.branches-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.branch-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.branch-card h3 { margin: 0 0 14px; color: var(--navy-900); font-size: var(--fs-subhead); }
.branch-card p { margin: 7px 0; color: var(--muted); }
.article { max-width: 820px; margin-inline: auto; }
.article__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 24px; color: var(--muted); font-size: var(--fs-caption); }
.article__cover { width: 100%; max-height: 510px; margin: 0 0 32px; border-radius: var(--radius-lg); object-fit: cover; }
.article__body { color: #39445a; }
.article__body p { margin: 0 0 20px; }
.article__body img { display: block; width: auto; max-width: 100%; height: auto; margin: 24px auto; border-radius: var(--radius-md); }
.article__body figure { margin: 28px 0; }
.article__body figcaption { margin-top: 8px; color: var(--muted); font-size: var(--fs-caption); text-align: center; }
.article__body iframe, .article__body video { display: block; width: 100%; max-width: 100%; min-height: 420px; margin: 28px 0; border: 0; }
.article__body table { display: block; width: 100%; margin: 24px 0; overflow-x: auto; border-collapse: collapse; }
.article__body th, .article__body td { padding: 10px 12px; border: 1px solid var(--line); }
.article__body ul, .article__body ol { margin: 0 0 20px; padding-left: 28px; }
.article__body blockquote { margin: 24px 0; padding: 14px 20px; border-left: 4px solid var(--gold-500); background: var(--surface-soft); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 36px; }
.pagination a, .pagination span { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.empty { grid-column: 1 / -1; padding: 42px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }

/* Footer */
.cta { padding: 0 0 76px; background: var(--blue-050); }
.cta__box { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 42px 46px; border-radius: var(--radius-lg); color: var(--white); background: linear-gradient(120deg, var(--navy-800), var(--blue-600)); box-shadow: var(--shadow-lg); }
.cta h2 { margin: 0 0 8px; font-size: var(--fs-head); line-height: 1.15; }
.cta p { max-width: 620px; margin: 0; color: rgba(255,255,255,.72); }
.footer { padding: 64px 0 22px; color: rgba(255,255,255,.7); background: #050f2c; }
.footer__grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr 1fr; gap: 45px; }
.footer .brand__name { color: var(--white); }
.footer .brand__meta { color: rgba(255,255,255,.55); }
.footer__title { margin: 7px 0 17px; color: var(--white); font-size: var(--fs-body); }
.footer__links { display: grid; gap: 10px; }
.footer__links a:hover { color: var(--gold-300); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: var(--fs-caption); }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: 390px; padding: 14px 18px; border-radius: var(--radius-sm); color: var(--white); background: var(--navy-900); box-shadow: var(--shadow-lg); transform: translateY(30px); opacity: 0; pointer-events: none; transition: .25s var(--ease); }
.toast.is-visible { transform: translateY(0); opacity: 1; }

@media (max-width: 1060px) {
  .topline { display: none; }
  .nav { min-height: 76px; }
  .brand__logo { width: 56px; height: 56px; }
  .nav__links { position: fixed; inset: 76px 0 auto; display: none; padding: 22px 20px 30px; border-top: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
  .nav__links.is-open { display: grid; }
  .nav__link { padding: 12px 16px; font-size: var(--fs-body); }
  .menu-toggle { display: block; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero::after { background-image: linear-gradient(90deg, rgba(7,22,64,.96), rgba(7,22,64,.58)), url('https://optim.tildacdn.pro/tild3164-6534-4432-a562-373431623836/-/format/webp/hero1.png.webp'); background-position: center; background-size: cover; }
  .cards, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 40px; }
  .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer__grid > :last-child { grid-column: 2 / -1; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 62px 0; }
  .brand { min-width: 0; }
  .brand__name { font-size: var(--fs-body); }
  .brand__meta { display: none; }
  .lang { margin-left: auto; }
  .hero__inner { min-height: 570px; }
  .hero__content { padding: 56px 0 84px; }
  .hero p { font-size: var(--fs-body); }
  .trust-strip__grid { grid-template-columns: 1fr; }
  .trust-item { min-height: 94px; }
  .trust-item + .trust-item { border-top: 1px solid var(--line); border-left: 0; }
  .section-head { display: block; }
  .section-head .section-lead { margin-top: 15px; }
  .cards, .news-grid, .stats, .branches-grid { grid-template-columns: 1fr; }
  .stat + .stat { border-top: 1px solid rgba(255,255,255,.12); border-left: 0; }
  .about-grid, .content-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-visual { min-height: 400px; }
  .content-grid { gap: 30px; }
  .side-card { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .cta__box { display: block; padding: 32px 26px; }
  .cta .button { margin-top: 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child, .footer__grid > :last-child { grid-column: 1 / -1; }
  .footer__bottom { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
