/* ============================================================
   ПОСТАВКА РЕШЕНИЙ — основной стиль сайта
   Палитра: тёмный navy + техно-синий/циан акцент
   ============================================================ */

:root {
  --navy:      #0b1220;
  --navy-2:    #101a30;
  --ink:       #0f172a;
  --body:      #2c3b52;
  --muted:     #5b6779;
  --line:      #e3e8ef;
  --bg:        #f4f6fa;
  --surface:   #ffffff;
  --blue:      #0e63d8;
  --blue-dark: #0a4ea8;
  --cyan:      #38bdf8;
  --topbar-h:  40px;
  --header-h:  66px;
  --radius:    14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, .12);
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ------------------------------------------------------------
   Верхняя плашка: адрес + время работы (закреплена сверху)
   ------------------------------------------------------------ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--topbar-h);
  background: var(--navy);
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
}

.topbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__item svg { flex: none; width: 15px; height: 15px; color: var(--cyan); }

/* ------------------------------------------------------------
   Шапка: название компании + About + выпадающее меню
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: var(--topbar-h);
  z-index: 55;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }

.brand__logo {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 9px;
  color: #fff;
  flex: none;
}

.brand__logo svg { width: 21px; height: 21px; }

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }

.brand__name { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }

.brand__tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 4px; }

.nav__link {
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: none;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s ease, color .15s ease;
}

.nav__link:hover { background: #eef2f7; }

/* --- Выпадающее меню --- */
.dropdown { position: relative; }

.dropdown .chev { width: 15px; height: 15px; transition: transform .18s ease; }
.dropdown.open .chev { transform: rotate(180deg); }

.dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 264px;
  max-width: calc(100vw - 40px);
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.dropdown.open .dropdown__menu,
.dropdown:hover .dropdown__menu,
.dropdown:focus-within .dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dropdown__menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  transition: background .12s ease, color .12s ease;
}

.dropdown__menu a:hover { background: #eef4fd; color: var(--blue); }

.dropdown__menu .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  flex: none;
}

/* ------------------------------------------------------------
   Главный баннер (во всю ширину страницы)
   ------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; background: var(--navy); }

.hero__img {
  width: 100%;
  height: clamp(400px, 62vh, 660px);
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(7, 13, 28, .84) 0%, rgba(7, 13, 28, .5) 55%, rgba(7, 13, 28, .18) 100%);
}

.hero__content { max-width: 660px; color: #fff; padding: 24px 0; }

.hero__kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.hero__title {
  margin: 0 0 16px;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.02em;
}

.hero__subtitle {
  margin: 0 0 28px;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.65;
  color: rgba(255, 255, 255, .85);
}

.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 15px;
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
}

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn--ghost { border: 1px solid rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }

/* ------------------------------------------------------------
   Сетка разделов 2×2
   ------------------------------------------------------------ */
.grid-section { padding: 64px 0 76px; }

.grid-section__head {
  max-width: 660px;
  margin: 0 auto 42px;
  text-align: center;
}

.grid-section__title {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -.01em;
}

.grid-section__text { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* фиксированная сетка 2×2 */
  gap: 26px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card__imgwrap { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); }

.card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.card:hover .card__img { transform: scale(1.045); }

.card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px 24px;
}

.card__title { margin: 0; font-size: 20px; font-weight: 750; }

.card__title a:hover { color: var(--blue); }

.card__text { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.62; }

.card__more {
  margin-top: auto;
  padding-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 700;
  font-size: 14.5px;
}

.card__more:hover { color: var(--blue-dark); }
.card__more svg { transition: transform .18s ease; }
.card__more:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------------
   Внутренние страницы
   ------------------------------------------------------------ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #12264d 100%);
  color: #fff;
  padding: 52px 0 56px;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .6);
}

.breadcrumbs a:hover { color: var(--cyan); }

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -.02em;
}

.page-hero p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, .78);
  font-size: 17px;
  line-height: 1.65;
}

.page-body { padding-block: 40px 72px; } /* только вертикальные: боковые остаются от .container */

.page-img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-bottom: 36px;
}

.page-content { max-width: 860px; }

.page-content h2 {
  margin: 30px 0 12px;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -.01em;
}

.page-content h2:first-child { margin-top: 0; }

.page-content p { margin: 0 0 15px; line-height: 1.75; color: var(--body); }

.page-content ul { margin: 0 0 16px; padding-left: 22px; }

.page-content li { margin-bottom: 9px; line-height: 1.65; color: var(--body); }

.page-content li::marker { color: var(--blue); }

.page-nav { margin-top: 34px; }

/* ------------------------------------------------------------
   Подвал: дисклеймер + ссылка на конфиденциальность
   ------------------------------------------------------------ */
.footer {
  flex-shrink: 0;
  margin-top: auto;
  background: var(--navy);
  color: rgba(255, 255, 255, .78);
  padding: 36px 0 26px;
  font-size: 14px;
}

.footer__inner { display: flex; flex-direction: column; gap: 14px; }

.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__brand { font-weight: 700; color: #fff; }

.footer a { border-bottom: 1px solid rgba(255, 255, 255, .3); transition: color .15s, border-color .15s; }

.footer a:hover { color: var(--cyan); border-color: var(--cyan); }

.footer__disclaimer {
  margin: 0;
  max-width: 860px;
  color: rgba(255, 255, 255, .55);
  font-size: 13px;
  line-height: 1.65;
}

.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 16px; }

.footer__copy { margin: 0; color: rgba(255, 255, 255, .5); font-size: 13px; }

/* ------------------------------------------------------------
   Адаптивность
   ------------------------------------------------------------ */
/* Планшеты и узкие окна: чуть шире базовых 20px */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
}

@media (max-width: 860px) {
  :root { --topbar-h: 38px; --header-h: 58px; }

  /* Боковые отступы шире, чем на десктопе: текст не прилипает к краям экрана */
  .container { padding: 0 28px; }

  .topbar { font-size: 12px; }
  .topbar__item { flex: 1; }

  .brand__name { font-size: 17px; }
  .brand__tag { display: none; }
  .brand__logo { width: 32px; height: 32px; }
  .nav__link { padding: 9px 10px; font-size: 14px; }

  .cards { grid-template-columns: 1fr; gap: 20px; } /* на узких экранах — одна колонка */
  .grid-section { padding: 48px 0 56px; }

  .hero__img { height: clamp(340px, 52vh, 480px); }
  .hero__overlay { background: linear-gradient(180deg, rgba(7, 13, 28, .55) 0%, rgba(7, 13, 28, .85) 100%); }

  .page-img { aspect-ratio: 16 / 9; }
}
