/* Общие стили всех страниц. Порядок правил и поздних уточнений важен для каскада. */
@import url('fonts.css');
/* Навигация, видимая только при отключённом JavaScript. */
.nojs-nav {
  position: relative;
  z-index: 11;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px;
  background: #16283b;
  color: white;
  font-size: 16px;
}
.nojs-nav a {
  text-decoration: underline;
}
/* Локальный декоративный шрифт заголовков. Основной Inter подключён через fonts.css. */
@font-face {
  font-family: Asylbek;
  src: url('../fonts/asylbek.woff2') format('woff2');
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}
/* Общие цвета, ширины контейнеров, скругления и вертикальные интервалы. */
:root {
  --blue: #1c6ff6;
  --sky: #3a94fc;
  --ink: #090909;
  --muted: #555;
  --paper: #f3f3f3;
  --container: 1160px;
  --wide: 1400px;
  --radius: 30px;
  --section-space: 120px;
}
/* Базовые правила элементов, типографика и доступность клавиатурного фокуса. */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: #e7e7e7;
  color: var(--ink);
  font:
    400 20px/1.45 Inter,
    Arial,
    sans-serif;
}
body.modal-open {
  overflow: hidden;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled,
[aria-disabled='true'] {
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  line-height: 1.15;
}
p + p {
  margin-top: 1em;
}
ul,
ol {
  padding-left: 1.2em;
}
button {
  color: inherit;
}
button img {
  pointer-events: none;
}
:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 5px;
}
::selection {
  background: #1c6ff6;
  color: white;
}
[hidden] {
  display: none !important;
}
/* Оболочка сайта ограничена 2560 px и центрируется на широких экранах. */
.site-shell {
  max-width: 2560px;
  margin: auto;
  background: white;
  position: relative;
  overflow: clip;
}
.container {
  width: min(var(--container), calc(100% - 64px));
  margin-inline: auto;
}
.wide {
  width: min(var(--wide), calc(100% - 64px));
  margin-inline: auto;
}
.section-title {
  font-size: clamp(40px, 5vw, 96px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.12;
}
/* Общие кнопки и их цветовые варианты; aria-disabled отмечает недоступные действия. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 2px solid currentColor;
  padding: 10px 36px;
  border-radius: 60px;
  font-size: 16px;
  line-height: 1.4;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
  text-align: center;
}
.button:hover {
  transform: translateY(-2px);
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.button--blue {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.button--blue:hover {
  background: #1058cc;
  border-color: #1058cc;
}
.button--light {
  color: white;
}
.button--light:hover {
  background: white;
  color: black;
  border-color: white;
}
.button[aria-disabled='true'] {
  opacity: 0.65;
  transform: none;
}
/* Ссылка для перехода к основному содержимому с клавиатуры. */
.skip-link {
  position: fixed;
  left: 20px;
  top: 10px;
  transform: translateY(-200%);
  z-index: 999;
  padding: 12px 20px;
  background: white;
  color: black;
}
.skip-link:focus {
  transform: none;
}
/* Шапка: логотип, основная навигация и управляющие кнопки. */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 104px;
  color: white;
}
.brand {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 4px;
}
.brand strong {
  font-size: 20px;
  line-height: 1.15;
}
.brand span {
  font-size: 10px;
  letter-spacing: 0.02em;
  font-weight: 300;
}
.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 44px);
  font-size: 18px;
  font-weight: 300;
  white-space: nowrap;
}
.top-nav a {
  padding-block: 5px;
  border-bottom: 1px solid transparent;
}
.top-nav a:hover,
.top-nav a[aria-current] {
  border-color: white;
}
.top-nav a[aria-current] {
  font-weight: 700;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: none;
  border: 0;
  padding: 7px;
  border-radius: 50%;
  color: inherit;
}
.icon-button:hover {
  background: #ffffff20;
}
/* Вращение значка меню при наведении и открытии диалога. */
.menu-icon {
  width: 34px;
  height: 34px;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.menu-toggle:hover .menu-icon {
  transform: rotate(90deg);
}
.menu-toggle[aria-expanded='true'] .menu-icon {
  transform: rotate(225deg);
}
.search-placeholder {
  display: grid;
  place-items: center;
  width: 32px;
  height: 44px;
}
.search-placeholder img {
  width: 24px;
  height: 24px;
}
/* Селектор языков на нативном details; доступна только русская версия. */
.language {
  position: relative;
  font-size: 14px;
}
.language summary {
  list-style: none;
  background: white;
  color: #315574;
  padding: 11px 13px;
  border-radius: 30px;
  cursor: pointer;
  white-space: nowrap;
}
.language summary::-webkit-details-marker {
  display: none;
}
.language summary span {
  margin-left: 6px;
}
.language-options {
  position: absolute;
  right: 0;
  top: 52px;
  background: white;
  color: #17212c;
  min-width: 175px;
  padding: 10px;
  border-radius: 16px;
  box-shadow: 0 10px 40px #0003;
}
.language-options > span {
  display: block;
  padding: 10px;
  white-space: nowrap;
}
.language-options [aria-disabled] {
  color: #737982;
}
.language-options [aria-current] {
  font-weight: 700;
  color: #155ccc;
}
/* Боковое меню на всю высоту окна, затемнение фона и внутренние ссылки. */
.side-menu {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(560px, 100%);
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  max-width: 100%;
  padding: 35px 42px 28px;
  border: 0;
  background: #101821;
  color: white;
  overflow-y: auto;
}
.side-menu[open] {
  display: flex;
  flex-direction: column;
  animation: slide-in 0.35s ease-out;
}
.side-menu::backdrop,
.lightbox::backdrop {
  background: #030a15b8;
  backdrop-filter: blur(5px);
}
.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #aebdca;
}
.close-button {
  font-size: 36px;
  line-height: 1;
}
.side-menu h2 {
  font-size: clamp(34px, 4vw, 50px);
  letter-spacing: -0.04em;
  margin: 40px 0;
}
.side-menu nav {
  display: grid;
}
.side-menu nav a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid #ffffff25;
  font-size: 20px;
  transition: color 0.2s;
}
.side-menu nav a:hover {
  color: #6baaff;
}
.menu-number {
  font-size: 11px;
  color: #93a3b3;
  width: 18px;
}
.side-menu nav a > span:last-child {
  margin-left: auto;
}
.menu-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 40px;
  font-size: 13px;
  color: #b6c4d2;
}
.menu-bottom [aria-disabled] {
  color: #8291a0;
}
/* Первый экран внутренних страниц: фон, хлебные крошки и заголовок. */
.inner-hero {
  height: 779px;
  position: relative;
  color: white;
  isolation: isolate;
  overflow: hidden;
  border-radius: 0 0 80px 80px;
}
.hero-photo {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  z-index: -2;
}
.inner-hero:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(#1324339c, transparent 48%, #0003);
  z-index: -1;
}
.hero-caption {
  padding-top: 280px;
  text-align: center;
}
.breadcrumbs {
  font-size: 18px;
  margin-bottom: 34px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.inner-hero h1 {
  font-family: Asylbek, Inter, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 64px;
  line-height: 1.32;
  text-wrap: balance;
}
.inner-hero--dark {
  height: 754px;
  border-radius: 0;
  background: black;
}
.inner-hero--dark:after {
  background: linear-gradient(#1c344980, transparent 45%, #000 100%);
}
/* Даты публикации и изменения. Значения в HTML заменяются данными CMS. */
.date-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 24px;
  font-size: 14px;
  padding-block: 70px 100px;
}
/* Общий блок полезной информации и карточки мобильных приложений. */
.useful {
  position: relative;
  border-radius: 90px 90px 0 0;
  background: var(--paper);
  padding: 120px 0 70px;
}
.useful .section-title {
  margin-bottom: 70px;
}
.app-info {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 30px;
  margin-top: 56px;
}
.app-icon {
  width: 76px;
  height: 76px;
}
.app-info h3 {
  font-size: 40px;
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.app-info p {
  font-size: 20px;
  line-height: 1.25;
}
.app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 38px;
}
.app-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
}
.app-badge img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.app-badge small {
  display: block;
  font-size: 12px;
}
.app-badge strong {
  display: block;
  font-size: 19px;
  line-height: 1.2;
}
/* Подвал: название портала, ссылки, социальные сети и контакты. */
.site-footer {
  text-align: center;
  margin-top: 100px;
}
.site-footer h2 {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -0.045em;
}
.footer-subtitle {
  font-size: 30px;
  margin-top: 22px;
}
.site-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 14px;
  margin-top: 65px;
  font-size: 16px;
}
.site-footer nav a {
  padding: 0 18px;
  border-right: 1px solid #888;
}
.site-footer nav a:last-child {
  border: 0;
}
.site-footer nav a:hover {
  color: var(--blue);
}
.socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.socials img {
  width: 35px;
  height: 35px;
}
.contact-copy {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 25px;
  font-size: 14px;
}
/* Нижняя панель: повторная кнопка меню и ссылка наверх. */
.bottom-bar {
  height: 80px;
  background: black;
  color: white;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 24px;
}
.bottom-bar > .icon-button {
  border-right: 1px solid #666;
  border-radius: 0;
  padding-right: 15px;
  width: 55px;
}
.bottom-bar .search-placeholder {
  border-right: 1px solid #666;
  width: 55px;
  padding-right: 20px;
}
.back-top {
  margin-left: auto;
  padding: 12px;
}
/* Модальный просмотр фотографий, подпись и кнопки переключения. */
.lightbox {
  width: min(1200px, 96vw);
  max-width: 96vw;
  max-height: 96dvh;
  border: 0;
  padding: 55px 20px 20px;
  border-radius: 20px;
  background: #0a0a0a;
  color: white;
  overflow: auto;
}
.lightbox .close-button {
  position: absolute;
  right: 10px;
  top: 5px;
}
.lightbox figure img {
  width: 100%;
  height: 70dvh;
  object-fit: contain;
}
.lightbox figcaption {
  padding: 16px;
  text-align: center;
  font-size: 16px;
}
.lightbox-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
}
.lightbox-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid #777;
  border-radius: 50%;
  background: transparent;
  color: white;
}
.lightbox-controls span {
  font-size: 14px;
}
/* Вспомогательные фоны и скрытый визуально, но доступный диктору текст. */
.dark-surface {
  background: #000;
  color: white;
}
.landscape-end {
  background:
    linear-gradient(to bottom, #fff0 55%, #fff0),
    url('../images/footer-landscape-background.webp') center bottom/100% auto no-repeat;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Анимация появления бокового меню. */
@keyframes slide-in {
  from {
    transform: translateX(100%);
    opacity: 0.5;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
/* Широкие мониторы: увеличенная высота первого экрана. */
@media (min-width: 1921px) {
  .inner-hero {
    height: 850px;
  }
  .inner-hero--dark {
    height: 820px;
  }
}
/* Компактный десктоп: уменьшаем интервалы и крупную типографику. */
@media (max-width: 1500px) {
  .top-nav {
    gap: 20px;
    font-size: 16px;
  }
  .site-header {
    gap: 22px;
  }
  .brand strong {
    font-size: 18px;
  }
  .header-actions {
    gap: 14px;
  }
  .useful .section-title {
    font-size: 72px;
  }
}
/* Планшеты и узкие окна: основная навигация доступна через боковое меню. */
@media (max-width: 1200px) {
  .top-nav {
    display: none;
  }
  .inner-hero {
    height: 650px;
  }
  .hero-caption {
    padding-top: 230px;
  }
  .inner-hero h1 {
    font-size: 54px;
  }
  .useful {
    padding-top: 90px;
  }
  .useful .section-title {
    font-size: 60px;
  }
  .app-info p {
    font-size: 18px;
  }
  .app-info h3 {
    font-size: 32px;
  }
  .site-footer h2 {
    font-size: 54px;
  }
}
/* Мобильная компоновка до 768 px включительно. */
@media (max-width: 768px) {
  :root {
    --section-space: 65px;
  }
  body {
    font-size: 16px;
  }
  .container,
  .wide {
    width: calc(100% - 40px);
  }
  .site-header {
    min-height: 90px;
    gap: 12px;
  }
  .brand strong {
    font-size: 14px;
  }
  .brand span {
    font-size: 7px;
  }
  .header-actions {
    gap: 8px;
  }
  .header-actions .search-placeholder {
    display: none;
  }
  .icon-button {
    width: 42px;
    height: 42px;
  }
  .menu-icon {
    width: 28px;
    height: 28px;
  }
  .language summary {
    padding: 10px;
    font-size: 12px;
  }
  .language summary span {
    display: none;
  }
  .inner-hero,
  .inner-hero--dark {
    height: 470px;
    border-radius: 0 0 35px 35px;
  }
  .inner-hero--dark {
    border-radius: 0;
  }
  .hero-caption {
    padding-top: 190px;
  }
  .breadcrumbs {
    font-size: 12px;
    margin-bottom: 22px;
    gap: 4px;
  }
  .inner-hero h1 {
    font-size: clamp(27px, 5.7vw, 43px);
    line-height: 1.3;
  }
  .hero-photo {
    object-position: center;
  }
  .useful {
    border-radius: 38px 38px 0 0;
    padding: 60px 0 45px;
  }
  .useful .section-title {
    font-size: clamp(32px, 6vw, 48px);
    margin-bottom: 42px;
  }
  .app-info {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    margin-top: 36px;
  }
  .app-icon {
    width: 48px;
    height: 48px;
  }
  .app-info h3 {
    font-size: 26px;
    margin-bottom: 16px;
  }
  .app-info p {
    font-size: 15px;
    line-height: 1.5;
  }
  .app-badges {
    gap: 10px;
    margin-top: 24px;
  }
  .app-badge {
    padding: 6px 8px;
    gap: 7px;
  }
  .app-badge img {
    width: 25px;
    height: 25px;
  }
  .app-badge small {
    font-size: 9px;
  }
  .app-badge strong {
    font-size: 13px;
  }
  .site-footer {
    margin-top: 65px;
  }
  .site-footer h2 {
    font-size: 36px;
  }
  .footer-subtitle {
    font-size: 20px;
    margin-top: 16px;
  }
  .site-footer nav {
    margin-top: 36px;
    font-size: 14px;
    row-gap: 18px;
  }
  .site-footer nav a {
    padding: 0 10px;
  }
  .contact-copy {
    font-size: 12px;
    gap: 12px;
  }
  .date-line {
    padding: 45px 0 60px;
    font-size: 11px;
    justify-content: center;
    gap: 10px;
  }
  .side-menu {
    padding: 22px;
  }
  .side-menu h2 {
    margin: 25px 0;
    font-size: 36px;
  }
  .side-menu nav a {
    font-size: 17px;
    padding: 15px 0;
  }
  .bottom-bar {
    height: 65px;
  }
  .landscape-end {
    background-size: auto 500px;
  }
}
/* Доступность: отключаем анимации и плавную прокрутку по системной настройке. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Уточнение размеров заголовков по макетам; компактный вариант задан ниже. */
@media (min-width: 1201px) {
  .inner-hero:not(.imantau-hero) h1 {
    font-size: 100px;
  }
}
@media (min-width: 1201px) {
  .inner-hero.inner-hero--compact h1 {
    font-size: 64px;
  }
}
