/*
  Цвета и типографика — мини-брендбук (doc/mini-brand.png):
  палитра: #22325C основной синий, #FFCC00 акцентный жёлтый, #FFFFFF;
  шрифты: RoadRadio (заголовки), AGBengaly (текст).
  На сайте до подключения файлов шрифтов: Plus Jakarta Sans / Manrope.
*/
:root {
  --container: 1120px;
  --topbar-height: 72px;
  --brand-blue: #22325c;
  --brand-yellow: #ffcc00;
  --font-heading: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body: Manrope, 'Segoe UI', system-ui, sans-serif;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-height) + 14px);
}
body {
  margin: 0;
  font-family: var(--font-body);
  background: radial-gradient(900px 520px at 18% -10%, rgba(34, 50, 92, 0.52), transparent 58%), radial-gradient(800px 480px at 92% 8%, rgba(255, 204, 0, 0.14), transparent 52%), #10182d;
  color: #f2f5fc;
}
h1,
h2,
h3,
.section-title,
.topnav {
  font-family: var(--font-heading);
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid #ffcc00;
  outline-offset: 3px;
}
:focus:not(:focus-visible) {
  outline: none;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.site {
  min-height: 100vh;
}
.page {
  width: 100%;
}
/* Sticky header + anchor menu */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(34, 50, 92, 0.88);
  border-bottom: 1px solid rgba(255, 204, 0, 0.22);
}
.topbar__inner {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  position: relative;
  flex-shrink: 0;
}
.brand__logo {
  height: 40px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}
/* Текст рядом с логотипом скрыт: название уже в изображении Logo Rus (White).png */
.brand__name {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nav-toggle {
  display: none;
}
.nav-toggle-label {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle-label span {
  width: 18px;
  height: 2px;
  background: rgba(231, 238, 252, 0.92);
  border-radius: 2px;
  display: block;
}
.topnav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-link {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: rgba(242, 245, 252, 0.72);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.nav-link:hover {
  color: #f2f5fc;
  background: rgba(255, 255, 255, 0.06);
}
.nav-link.is-active {
  color: #22325C;
  background: #ffcc00;
  border-color: rgba(255, 204, 0, 0.35);
}
.btn-nav {
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}
.topnav .btn-nav {
  margin-left: 4px;
}
/* Landing */
.landing {
  padding-bottom: 30px;
}
.section {
  padding: 84px 0;
}
.section--hero {
  padding: calc(var(--topbar-height) + 44px) 0 70px;
}
.section--alt {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.section__head {
  margin-bottom: 32px;
  max-width: 72ch;
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffcc00;
}
.section-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: #ffcc00;
  border-radius: 2px;
  flex-shrink: 0;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0;
  letter-spacing: -0.03em;
}
.lead {
  margin: 12px 0 0;
  color: rgba(242, 245, 252, 0.72);
  font-size: 16px;
  line-height: 1.7;
  max-width: 70ch;
}
.lead--oneline {
  max-width: none;
  white-space: nowrap;
}
[data-section] {
  scroll-margin-top: calc(var(--topbar-height) + 18px);
}
.grid {
  display: grid;
  gap: 16px;
}
/* Без вложенного CSS min() — иначе LESS-рантайм Winter может сломать сборку всего файла */
.grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid--auto > .card--split {
  height: 100%;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 204, 0, 0.35);
}
.card__title {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.card__text {
  margin: 0;
  color: rgba(242, 245, 252, 0.72);
  line-height: 1.7;
}
.card__text strong {
  color: #f2f5fc;
  font-weight: 900;
}
.card__actions {
  margin-top: 16px;
}
.card > .card__actions:last-child,
.card__inner > .card__actions:last-child {
  margin-top: auto;
  padding-top: 10px;
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(34, 50, 92, 0.4);
  border: 1px solid rgba(255, 204, 0, 0.25);
  color: #ffcc00;
  font-weight: 950;
  margin-bottom: 12px;
}
.card--feature {
  background: rgba(255, 255, 255, 0.03);
}
/* Карточка: сверху фото, снизу монотонный блок (--card-bg-image в inline style) */
.card--split {
  padding: 0;
  overflow: hidden;
  border-color: rgba(255, 204, 0, 0.22);
  background: #22325C;
}
.card--split:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 204, 0, 0.4);
}
.card--split .card__visual {
  position: relative;
  height: 190px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: rgba(34, 50, 92, 0.8);
  background-image: var(--card-bg-image);
  background-size: cover;
  background-position: center;
  transition: transform 0.45s ease;
}
.card--split:hover .card__visual {
  transform: scale(1.03);
}
.card--split .card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  background: rgba(34, 50, 92, 0.88);
  border: 1px solid rgba(255, 204, 0, 0.35);
  color: #ffcc00;
  font-weight: 950;
  font-size: 14px;
}
.card--split .card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
  background: #22325C;
}
.card--split .card__title {
  margin: 0 0 12px;
  color: #ffcc00;
  font-family: var(--font-heading);
  text-shadow: none;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card--split .card__text {
  margin: 0;
  color: rgba(242, 245, 252, 0.72);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card--split .card__text strong {
  color: #f2f5fc;
  font-weight: 800;
}
.card--split .card__actions {
  margin-top: 16px;
  padding-top: 0;
}
.card--service .card__title {
  font-size: 18px;
}
.card--placeholder {
  border-style: dashed;
  border-color: rgba(255, 204, 0, 0.22);
  background: rgba(34, 50, 92, 0.18);
  position: relative;
}
.soon-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 204, 0, 0.12);
  border: 1px solid rgba(255, 204, 0, 0.3);
  color: #ffcc00;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 204, 0, 0.28);
  background: rgba(255, 204, 0, 0.08);
  color: rgba(255, 204, 0, 0.95);
  font-weight: 900;
  font-size: 12px;
}
.article-meta {
  margin-bottom: 10px;
}
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease, filter 0.12s ease;
  user-select: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: #ffcc00;
  color: #22325C;
  border-color: rgba(255, 204, 0, 0.85);
}
.btn-primary:hover {
  filter: brightness(1.06);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f2f5fc;
}
.btn-ghost:hover {
  background: rgba(255, 204, 0, 0.1);
  border-color: rgba(255, 204, 0, 0.45);
}
.btn-secondary {
  background: rgba(34, 50, 92, 0.35);
  border-color: rgba(255, 204, 0, 0.28);
  color: #f2f5fc;
}
.btn-secondary:hover {
  background: rgba(34, 50, 92, 0.5);
  border-color: rgba(255, 204, 0, 0.45);
}
/* Второстепенные CTA (как «Запросить материалы») — в одном стиле с брендом */
.btn-soft {
  background: rgba(255, 255, 255, 0.07000000000000001);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f2f5fc;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 999px;
}
.btn-soft:hover {
  border-color: rgba(255, 204, 0, 0.55);
  background: rgba(255, 204, 0, 0.1);
}
/* Кнопка «Подробнее» на карточках — акцентный контур жёлтый */
.btn-outline-accent {
  background: transparent;
  border: 2px solid #ffcc00;
  color: #f2f5fc;
}
.btn-outline-accent:hover {
  background: rgba(255, 204, 0, 0.12);
}
.btn-small {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
}
.section__cta {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
/* Hero */
.hero__wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 204, 0, 0.1);
  color: rgba(255, 204, 0, 0.9399999999999999);
  border: 1px solid rgba(255, 204, 0, 0.32);
  font-weight: 950;
  font-size: 13px;
  margin-bottom: 16px;
}
.hero__title {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.hero__slogan {
  margin: 0 0 12px;
  font-size: clamp(18px, 2.3vw, 22px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: #ffcc00;
}
.hero__subtitle {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(242, 245, 252, 0.72);
}
.hero__lead {
  color: rgba(242, 245, 252, 0.72);
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 22px;
  max-width: 65ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.hero__secondary {
  margin: 14px 0 0;
  font-size: 14px;
}
.hero__secondary a {
  color: rgba(242, 245, 252, 0.72);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 204, 0, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.hero__secondary a:hover {
  color: #ffcc00;
  border-color: #ffcc00;
}
.hero__trust {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.trust-item {
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 160px;
}
.trust-item__value {
  font-weight: 1000;
}
.trust-item__label {
  color: rgba(242, 245, 252, 0.72);
  margin-top: 4px;
  font-size: 13px;
}
.hero__visual {
  display: flex;
  justify-content: flex-end;
}
.visual-card {
  width: 100%;
  max-width: 430px;
  background: linear-gradient(to bottom right, rgba(34, 50, 92, 0.55) 0%, rgba(34, 50, 92, 0.72) 45%, rgba(255, 204, 0, 0.28) 100%);
  border: 1px solid rgba(255, 204, 0, 0.28);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}
.visual-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 90% at 100% 100%, rgba(255, 204, 0, 0.32) 0%, rgba(255, 204, 0, 0.1) 40%, transparent 70%);
  pointer-events: none;
}
.visual-card > * {
  position: relative;
  z-index: 1;
}
.visual-card__top {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}
.visual-card__logo {
  height: 52px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  flex-shrink: 0;
}
.avatar {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  background-color: rgba(34, 50, 92, 0.35);
  background-image: none;
  /* задается через inline style, чтобы аватар был "фото" */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 204, 0, 0.28);
}
.avatar--big {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background-color: rgba(34, 50, 92, 0.4);
  background-image: none;
  /* задается через inline style */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 204, 0, 0.32);
}
.visual-card__name {
  font-weight: 950;
  letter-spacing: -0.02em;
}
.visual-card__role {
  color: rgba(242, 245, 252, 0.72);
  margin-top: 2px;
  font-size: 13px;
}
.visual-card__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.visual-card__grid--stats {
  grid-template-columns: 1fr;
  gap: 10px;
}
.mini-stat {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}
.mini-stat__num {
  font-weight: 1000;
  font-size: 20px;
  color: #ffcc00;
}
.mini-stat__label {
  color: rgba(242, 245, 252, 0.72);
  font-size: 13px;
  margin-top: 4px;
}
.mini-stat--inline {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 12px 14px;
  min-height: 48px;
}
.mini-stat--inline .mini-stat__num {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.mini-stat--inline .mini-stat__label {
  margin-top: 0;
  line-height: 1.35;
}
.visual-card__hint {
  color: rgba(242, 245, 252, 0.72);
  font-size: 14px;
  line-height: 1.6;
}
/* Callout */
.callout {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(34, 50, 92, 0.45), rgba(255, 204, 0, 0.08));
  border: 1px solid rgba(255, 204, 0, 0.22);
}
.callout__title {
  font-weight: 1000;
  letter-spacing: -0.02em;
  font-size: 18px;
  margin-bottom: 6px;
}
.callout__text {
  color: rgba(242, 245, 252, 0.72);
  line-height: 1.6;
}
/* About */
.about {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 960px;
  margin: 0 auto;
}
.about .section-title {
  margin-bottom: 12px;
}
.about > .lead {
  margin-bottom: 28px;
}
.about__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
}
.about__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 28px 24px;
  border-radius: 20px;
  background: rgba(34, 50, 92, 0.35);
  border: 1px solid rgba(255, 204, 0, 0.22);
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
}
.about__tagline {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  text-align: center;
}
.about__tagline-line {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.about__tagline-light {
  color: #f2f5fc;
}
.about__tagline-accent {
  color: #ffcc00;
}
.about__brand-top {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 120px;
}
.about__logo {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 160px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}
.about__founder {
  width: 100%;
  flex-shrink: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 204, 0, 0.18);
}
.about__founder-name {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffcc00;
  line-height: 1.25;
}
.about__founder-role {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(242, 245, 252, 0.72);
}
.about__portrait {
  margin: 0;
  height: 100%;
  width: 100%;
  max-width: 400px;
  justify-self: end;
  display: flex;
  align-items: stretch;
  min-height: 0;
}
.about__photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center top;
  border-radius: 20px;
  border: 1px solid rgba(255, 204, 0, 0.28);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}
.about__quote {
  margin: 0 0 28px;
  padding: 0 0 0 20px;
  border: none;
  border-left: 4px solid #ffcc00;
}
.about__quote-text {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  font-style: italic;
  color: #f2f5fc;
}
.about__quote-text::before {
  content: "\201C";
  color: #ffcc00;
  font-weight: 900;
  margin-right: 2px;
}
.about__quote-text::after {
  content: "\201D";
  color: #ffcc00;
  font-weight: 900;
  margin-left: 2px;
}
.about__quote-footer {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 204, 0, 0.22);
}
.about__quote .about__founder-name {
  display: block;
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  font-style: normal;
  letter-spacing: -0.02em;
  color: #ffcc00;
  line-height: 1.3;
}
.about__quote .about__founder-role {
  display: block;
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  font-style: normal;
  color: rgba(242, 245, 252, 0.72);
}
.about__actions {
  margin-top: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
/* Contacts */
.contact {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 16px;
  align-items: start;
}
.contact__card,
.contact__form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 22px;
}
.contact__form {
  background: rgba(255, 255, 255, 0.02);
}
.contact__row {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.contact__row:first-child {
  border-top: none;
  padding-top: 0;
}
.contact__label {
  width: 110px;
  color: rgba(242, 245, 252, 0.72);
  font-weight: 900;
}
.contact__value {
  flex: 1;
}
.contact__value a {
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 204, 0, 0.55);
}
.form-placeholder {
  color: rgba(242, 245, 252, 0.72);
  line-height: 1.65;
  padding: 18px;
  border-radius: 14px;
  background: rgba(34, 50, 92, 0.28);
  border: 1px dashed rgba(255, 204, 0, 0.24);
}
.contact__form-note {
  margin: 0;
  color: rgba(242, 245, 252, 0.72);
  line-height: 1.65;
}
.contact__actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
/* Contact request modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] {
  display: none;
}
.modal.is-open {
  display: flex;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
}
.modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 24px 24px 22px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(34, 50, 92, 0.96), rgba(16, 24, 45, 0.98));
  border: 1px solid rgba(255, 204, 0, 0.28);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #f2f5fc;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.modal__close:hover {
  border-color: rgba(255, 204, 0, 0.45);
  color: #ffcc00;
  background: rgba(255, 204, 0, 0.1);
}
.modal__title {
  margin: 0 28px 8px 0;
  font-family: var(--font-heading);
  font-size: 24px;
  letter-spacing: -0.02em;
}
.modal__lead {
  margin: 0 0 20px;
  color: rgba(242, 245, 252, 0.72);
  font-size: 14px;
  line-height: 1.6;
}
.contact-request-form {
  display: grid;
  gap: 14px;
}
.form-field {
  display: grid;
  gap: 6px;
}
.form-label {
  font-size: 13px;
  font-weight: 800;
  color: #f2f5fc;
}
.form-label__optional {
  font-weight: 600;
  color: rgba(242, 245, 252, 0.72);
}
.form-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #f2f5fc;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-input::placeholder {
  color: rgba(242, 245, 252, 0.85);
}
.form-input:focus {
  outline: none;
  border-color: rgba(255, 204, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.14);
}
.form-input--textarea {
  min-height: 108px;
  resize: vertical;
}
.form-error {
  min-height: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #ff8f8f;
}
.form-error:empty {
  display: none;
}
.contact-request-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.contact-request-success {
  text-align: center;
  padding: 8px 0 4px;
}
.contact-request-success__title {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 22px;
  color: #ffcc00;
}
.contact-request-success__text {
  margin: 0 0 18px;
  color: rgba(242, 245, 252, 0.72);
  line-height: 1.65;
}
body.modal-open {
  overflow: hidden;
}
/* Footer */
.footer {
  padding: 34px 0 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.08);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__brand {
  font-weight: 1000;
  margin-bottom: 8px;
}
.footer__muted {
  color: rgba(242, 245, 252, 0.72);
  line-height: 1.7;
  max-width: 420px;
}
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}
.footer__contact-link {
  color: #f2f5fc;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 204, 0, 0.3);
  width: fit-content;
}
.footer__contact-link:hover {
  color: #ffcc00;
  border-color: #ffcc00;
}
.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 204, 0, 0.28);
  background: rgba(34, 50, 92, 0.5);
  color: #f2f5fc;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.footer__social-link:hover {
  background: rgba(255, 204, 0, 0.14);
  border-color: rgba(255, 204, 0, 0.55);
  color: #ffcc00;
  transform: translateY(-1px);
}
.footer__social-link:active {
  transform: translateY(0);
}
.footer__social-icon {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}
.footer__link {
  color: rgba(242, 245, 252, 0.72);
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
  padding: 6px 0;
}
.footer__link:hover {
  color: #f2f5fc;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .hero__wrap {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    justify-content: flex-start;
  }
  .lead--oneline {
    white-space: normal;
    font-size: 15px;
  }
  .about__media {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
  }
  .about__brand {
    height: auto;
    min-height: 0;
    padding: 24px 20px;
  }
  .about__tagline {
    gap: 18px;
  }
  .about__tagline-line {
    font-size: clamp(20px, 5vw, 26px);
  }
  .about__brand-top {
    flex: none;
    min-height: 0;
    padding: 8px 0;
  }
  .about__logo {
    max-height: 120px;
  }
  .about__portrait {
    height: auto;
    max-width: 100%;
    justify-self: stretch;
    aspect-ratio: 0.75;
  }
  .about__photo {
    min-height: 0;
    height: 100%;
    aspect-ratio: unset;
  }
  .contact {
    grid-template-columns: 1fr;
  }
  .callout {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 860px) {
  :root {
    --topbar-height: 64px;
  }
  .nav-toggle-label {
    display: flex;
  }
  .topnav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--topbar-height);
    padding: 14px 16px 16px;
    background: rgba(34, 50, 92, 0.96);
    border-bottom: 1px solid rgba(255, 204, 0, 0.22);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    /* Плавное раскрытие меню */
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    overflow: hidden;
    transition: max-height 280ms ease, opacity 180ms ease, transform 220ms ease;
  }
  #nav-toggle:checked ~ .topnav {
    max-height: 420px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-link {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  /* Анимация "бургер" -> "X" */
  #nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  #nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }
  #nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  .nav-toggle-label span {
    transition: transform 220ms ease, opacity 160ms ease;
    transform-origin: center;
  }
  .topnav .btn-nav {
    width: 100%;
    margin-left: 0;
    justify-content: center;
    margin-top: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .card--split:hover .card__visual {
    transform: none;
  }
}
/* Fallback for non-landing pages */
.content {
  margin: 2em auto;
  max-width: 1080px;
  text-align: center;
  padding: 0 20px;
}
