/*!
 * Atlas UTC Theme — styles
 * Учебно-технический центр «Атлас»
 * Дизайн-система «Индустриальная точность»
 * Шрифты: Manrope (заголовки) + Golos Text (текст). Только без засечек, без курсива.
 */

/* =========================================================
   1. Токены
   ========================================================= */
:root {
  --at-ink: #0e1620;
  --at-ink-2: #16222d;
  --at-ink-3: #1f2f3c;
  --at-ink-4: #2b3d4b;
  --at-gold: #c9a227;
  --at-gold-2: #e2c36a;
  --at-gold-3: #f4e8c4;
  --at-gold-deep: #a5851d;
  --at-paper: #f7f5f0;
  --at-paper-2: #efebe2;
  --at-white: #ffffff;
  --at-text: #141e27;
  --at-muted: #5b6a76;
  --at-muted-2: #7d8b96;
  --at-line: #e3ddd0;
  --at-line-2: #d7d0c1;
  --at-line-dark: rgba(255, 255, 255, 0.13);
  --at-on-dark: #eef2f5;
  --at-on-dark-muted: #a9b6c1;
  --at-danger: #b3261e;

  --at-font-head: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --at-font-body: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;

  --at-container: 1240px;
  --at-gutter: 24px;
  --at-radius: 4px;
  --at-radius-lg: 8px;
  --at-shadow-sm: 0 2px 8px rgba(14, 22, 32, 0.06);
  --at-shadow: 0 18px 40px -18px rgba(14, 22, 32, 0.28);
  --at-shadow-lg: 0 40px 80px -40px rgba(14, 22, 32, 0.45);
  --at-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --at-header-h: 88px;
}

/* =========================================================
   2. База
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--at-white);
  color: var(--at-text);
  font-family: var(--at-font-body);
  font-size: 17px;
  line-height: 1.65;
  font-style: normal;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Крупный и средний шрифт — без засечек, без наклона */
h1, h2, h3, h4, h5, h6,
.at-h1, .at-h2, .at-h3, .at-h4 {
  margin: 0 0 0.5em;
  font-family: var(--at-font-head);
  font-weight: 800;
  font-style: normal;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--at-ink);
}

em, i, cite, dfn, var, address, blockquote, q {
  font-style: normal;
}

p, ul, ol, dl, figure, table {
  margin: 0 0 1.1em;
}

p:last-child, ul:last-child, ol:last-child {
  margin-bottom: 0;
}

a {
  color: var(--at-ink);
  text-decoration: none;
  transition: color 0.2s var(--at-ease);
}

a:hover {
  color: var(--at-gold-deep);
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  padding-left: 1.25em;
}

hr {
  border: 0;
  height: 1px;
  background: var(--at-line);
  margin: 40px 0;
}

button,
input,
select,
textarea {
  font: inherit;
  font-style: normal;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--at-gold);
  outline-offset: 3px;
}

::selection {
  background: var(--at-gold-2);
  color: var(--at-ink);
}

/* =========================================================
   3. Сетка и секции
   ========================================================= */
.at-container {
  width: 100%;
  max-width: var(--at-container);
  margin: 0 auto;
  padding: 0 var(--at-gutter);
}

.at-container--wide {
  max-width: 1480px;
}

.at-section {
  position: relative;
  padding: 96px 0;
}

.at-section--tight {
  padding: 64px 0;
}

.at-section--paper {
  background: var(--at-paper);
}

.at-section--paper-2 {
  background: var(--at-paper-2);
}

.at-section--dark {
  background: var(--at-ink);
  color: var(--at-on-dark);
}

.at-section--dark h1,
.at-section--dark h2,
.at-section--dark h3,
.at-section--dark h4,
.at-section--dark .at-h2,
.at-section--dark .at-h3 {
  color: var(--at-white);
}

.at-section--flush {
  padding: 0;
}

.at-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

.at-section__head--center {
  display: block;
  text-align: center;
  max-width: 820px;
  margin: 0 auto 56px;
}

.at-section__head--center .at-eyebrow {
  justify-content: center;
}

.at-section__head--center .at-h2 {
  margin-left: auto;
  margin-right: auto;
}

.at-section__aside {
  flex: 0 0 auto;
  padding-bottom: 10px;
}

.at-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--at-font-head);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--at-gold-deep);
}

.at-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--at-gold);
}

.at-section--dark .at-eyebrow {
  color: var(--at-gold-2);
}

.at-h1 {
  font-size: clamp(2.1rem, 4.6vw, 4rem);
}

.at-h2 {
  font-size: clamp(1.7rem, 2.9vw, 2.75rem);
}

.at-h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.at-h4 {
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.at-lead {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.6;
  color: var(--at-muted);
  max-width: 62ch;
}

.at-section--dark .at-lead {
  color: var(--at-on-dark-muted);
}

.at-text {
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--at-text);
}

.at-muted {
  color: var(--at-muted);
}

.at-hazard {
  height: 6px;
  background: repeating-linear-gradient(
    135deg,
    var(--at-gold) 0 14px,
    var(--at-ink) 14px 28px
  );
}

/* =========================================================
   4. Кнопки и ссылки
   ========================================================= */
.at-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 30px;
  border: 1px solid transparent;
  border-radius: var(--at-radius);
  background: transparent;
  font-family: var(--at-font-head);
  font-size: 15px;
  font-weight: 700;
  font-style: normal;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s var(--at-ease), background 0.2s var(--at-ease),
    color 0.2s var(--at-ease), border-color 0.2s var(--at-ease),
    box-shadow 0.2s var(--at-ease);
}

.at-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  transition: transform 0.2s var(--at-ease);
}

.at-btn:hover svg {
  transform: translateX(3px);
}

.at-btn--gold {
  background: var(--at-gold);
  border-color: var(--at-gold);
  color: var(--at-ink);
}

.at-btn--gold:hover {
  background: var(--at-gold-2);
  border-color: var(--at-gold-2);
  color: var(--at-ink);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -14px rgba(201, 162, 39, 0.75);
}

.at-btn--dark {
  background: var(--at-ink);
  border-color: var(--at-ink);
  color: var(--at-white);
}

.at-btn--dark:hover {
  background: var(--at-ink-3);
  border-color: var(--at-ink-3);
  color: var(--at-white);
  transform: translateY(-2px);
}

.at-btn--ghost {
  border-color: var(--at-line-2);
  color: var(--at-ink);
}

.at-btn--ghost:hover {
  border-color: var(--at-ink);
  background: var(--at-ink);
  color: var(--at-white);
  transform: translateY(-2px);
}

.at-btn--on-dark {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--at-white);
}

.at-btn--on-dark:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--at-white);
}

.at-btn--sm {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 13px;
}

.at-btn--block {
  width: 100%;
}

.at-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--at-font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--at-ink);
}

.at-link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--at-ease);
}

.at-link-arrow:hover {
  color: var(--at-gold-deep);
}

.at-link-arrow:hover svg {
  transform: translateX(4px);
}

.at-link-underline {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--at-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.at-link-underline:hover {
  color: var(--at-gold-deep);
}

/* =========================================================
   5. Шапка
   ========================================================= */
.at-header {
  position: relative;
  z-index: 100;
  background: var(--at-white);
}

.at-header__top {
  background: var(--at-ink);
  color: var(--at-on-dark-muted);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.at-header__top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 40px;
}

.at-header__top-left,
.at-header__top-right {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.at-top-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.at-top-item svg {
  width: 14px;
  height: 14px;
  color: var(--at-gold);
  flex: 0 0 auto;
}

.at-top-item--muted {
  color: rgba(255, 255, 255, 0.5);
}

.at-top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--at-on-dark);
  font-weight: 600;
}

.at-top-link svg {
  width: 16px;
  height: 16px;
}

.at-top-link:hover {
  color: var(--at-gold-2);
}

.at-header__main {
  position: relative;
  background: var(--at-white);
  border-bottom: 1px solid var(--at-line);
  transition: box-shadow 0.25s var(--at-ease);
}

.at-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: var(--at-header-h);
}

.at-header.is-stuck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 12px 30px -18px rgba(14, 22, 32, 0.35);
}

.at-header.is-stuck .at-header__top {
  display: none;
}

.at-header.is-stuck .at-header__inner {
  min-height: 72px;
}

body.at-has-stuck-header {
  padding-top: 72px;
}

.at-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: 300px;
}

.at-logo img {
  width: auto;
  height: 52px;
  object-fit: contain;
}

.at-header.is-stuck .at-logo img {
  height: 44px;
}

.at-nav {
  margin-left: auto;
}

.at-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.at-nav__item {
  position: relative;
}

.at-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-radius: var(--at-radius);
  font-family: var(--at-font-head);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--at-ink);
  white-space: nowrap;
}

.at-nav__link .at-caret {
  width: 14px;
  height: 14px;
  color: var(--at-muted-2);
  transition: transform 0.2s var(--at-ease);
}

.at-nav__item:hover > .at-nav__link,
.at-nav__item.is-open > .at-nav__link,
.at-nav__link:hover {
  color: var(--at-gold-deep);
  background: var(--at-paper);
}

.at-nav__item:hover > .at-nav__link .at-caret {
  transform: rotate(180deg);
}

.at-nav__drop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 60;
  width: min(360px, 84vw);
  padding: 10px;
  background: var(--at-white);
  border: 1px solid var(--at-line);
  border-radius: var(--at-radius-lg);
  box-shadow: var(--at-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s var(--at-ease), transform 0.2s var(--at-ease),
    visibility 0.2s;
}

.at-nav__drop--wide {
  width: min(720px, 88vw);
  padding: 14px;
}

.at-nav__item:hover > .at-nav__drop,
.at-nav__item:focus-within > .at-nav__drop,
.at-nav__item.is-open > .at-nav__drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.at-nav__drop-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.at-nav__drop--wide .at-nav__drop-list {
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
}

.at-nav__drop-link {
  display: block;
  padding: 11px 12px;
  border-radius: var(--at-radius);
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--at-text);
}

.at-nav__drop-link:hover {
  background: var(--at-paper);
  color: var(--at-ink);
}

.at-nav__drop-link span {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--at-muted);
}

.at-nav__drop-label {
  margin: 10px 12px 6px;
  font-family: var(--at-font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--at-muted-2);
}

.at-header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 8px;
}

.at-header__phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-family: var(--at-font-head);
  font-size: 19px;
  font-weight: 800;
  color: var(--at-ink);
  line-height: 1.15;
  white-space: nowrap;
}

.at-header__phone span {
  font-family: var(--at-font-body);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--at-muted);
}

.at-header__phone:hover {
  color: var(--at-gold-deep);
}

.at-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--at-line-2);
  border-radius: var(--at-radius);
  background: var(--at-white);
  cursor: pointer;
}

.at-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--at-ink);
  transition: transform 0.2s var(--at-ease), opacity 0.2s var(--at-ease);
}

.at-burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.at-burger.is-open span:nth-child(2) {
  opacity: 0;
}

.at-burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Мобильное меню */
.at-mnav {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: var(--at-ink);
  color: var(--at-white);
  padding: 18px 20px 32px;
  overflow-y: auto;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.3s var(--at-ease), visibility 0.3s;
}

.at-mnav.is-open {
  transform: translateY(0);
  visibility: visible;
}

.at-mnav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.at-mnav__logo img {
  height: 42px;
  width: auto;
  background: var(--at-white);
  border-radius: var(--at-radius);
  padding: 5px 8px;
}

.at-mnav__close {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--at-radius);
  background: transparent;
  color: var(--at-white);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.at-mnav__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.at-mnav__list > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.at-mnav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.at-mnav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 2px;
  font-family: var(--at-font-head);
  font-size: 19px;
  font-weight: 700;
  color: var(--at-white);
}

.at-mnav__link:hover {
  color: var(--at-gold-2);
}

.at-mnav__toggle {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: transparent;
  color: var(--at-white);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.at-mnav__sub {
  display: none;
  margin: 0 0 12px;
  padding: 0 0 0 4px;
  list-style: none;
  gap: 2px;
}

.at-mnav__sub.is-open {
  display: grid;
}

.at-mnav__sub a {
  display: block;
  padding: 9px 0;
  font-size: 15px;
  color: var(--at-on-dark-muted);
}

.at-mnav__sub a:hover {
  color: var(--at-gold-2);
}

.at-mnav__footer {
  margin-top: auto;
  padding-top: 28px;
  display: grid;
  gap: 12px;
}

.at-mnav__phone {
  font-family: var(--at-font-head);
  font-size: 24px;
  font-weight: 800;
  color: var(--at-white);
}

.at-mnav__meta {
  font-size: 14px;
  color: var(--at-on-dark-muted);
}

/* =========================================================
   6. Хиро
   ========================================================= */
.at-hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 92px;
  background: var(--at-ink);
  color: var(--at-on-dark);
}

.at-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 80% at 20% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 80% at 20% 0%, #000 30%, transparent 78%);
  pointer-events: none;
}

.at-hero::after {
  content: "";
  position: absolute;
  right: -160px;
  top: -120px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: 50%;
  pointer-events: none;
}

.at-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 64px;
  align-items: center;
}

.at-hero__content {
  position: relative;
  z-index: 2;
}

.at-hero__title {
  font-size: clamp(2.35rem, 4.2vw, 3.9rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: var(--at-white);
  margin-bottom: 22px;
}

.at-hero__title small {
  display: block;
  margin-top: 14px;
  font-family: var(--at-font-body);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--at-on-dark-muted);
}

.at-hero__text {
  max-width: 56ch;
  margin-bottom: 32px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.62;
  color: #c7d2db;
}

.at-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.at-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.at-hero__stat {
  padding: 18px 18px 0 0;
}

.at-hero__stat dt {
  font-family: var(--at-font-head);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 800;
  line-height: 1;
  color: var(--at-gold-2);
  letter-spacing: -0.02em;
}

.at-hero__stat dd {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--at-on-dark-muted);
}

.at-hero__media {
  position: relative;
  z-index: 1;
}

.at-hero__frame {
  position: relative;
  border: 1px solid rgba(201, 162, 39, 0.45);
  padding: 12px;
  border-radius: var(--at-radius);
  background: rgba(255, 255, 255, 0.03);
}

.at-hero__frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  filter: saturate(0.92) contrast(1.03);
}

.at-hero__badge {
  position: absolute;
  left: -28px;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 300px;
  padding: 16px 20px;
  background: var(--at-white);
  color: var(--at-ink);
  border-radius: var(--at-radius);
  box-shadow: var(--at-shadow-lg);
}

.at-hero__badge-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--at-gold-3);
  color: var(--at-gold-deep);
}

.at-hero__badge-icon svg {
  width: 22px;
  height: 22px;
}

.at-hero__badge b {
  display: block;
  font-family: var(--at-font-head);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.at-hero__badge span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--at-muted);
}

/* Компактный хиро внутренних страниц */
.at-page-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 64px;
  background: var(--at-ink);
  color: var(--at-on-dark);
}

.at-page-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -70% 55%;
  height: 360px;
  background: radial-gradient(closest-side, rgba(201, 162, 39, 0.22), transparent);
  pointer-events: none;
}

.at-page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.at-page-hero__title {
  margin: 0 0 16px;
  color: var(--at-white);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.06;
}

.at-page-hero__lead {
  max-width: 64ch;
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  color: var(--at-on-dark-muted);
}

.at-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
}

.at-crumbs a {
  color: rgba(255, 255, 255, 0.72);
}

.at-crumbs a:hover {
  color: var(--at-gold-2);
}

.at-crumbs span[aria-current] {
  color: rgba(255, 255, 255, 0.42);
}

/* =========================================================
   7. Курсы
   ========================================================= */
.at-courses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.at-course {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--at-line);
  border-radius: var(--at-radius-lg);
  background: var(--at-white);
  transition: transform 0.25s var(--at-ease), box-shadow 0.25s var(--at-ease),
    border-color 0.25s var(--at-ease);
}

.at-course:hover {
  transform: translateY(-4px);
  border-color: var(--at-gold);
  box-shadow: var(--at-shadow);
}

.at-course__media {
  position: relative;
  overflow: hidden;
  background: var(--at-paper-2);
}

.at-course__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s var(--at-ease);
}

.at-course:hover .at-course__media img {
  transform: scale(1.04);
}

.at-course__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 12px;
  border-radius: 2px;
  background: var(--at-gold);
  color: var(--at-ink);
  font-family: var(--at-font-head);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.at-course__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 26px 28px 28px;
}

.at-course__title {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  line-height: 1.2;
}

.at-course__title a {
  color: inherit;
}

.at-course__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.at-course__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.at-course__meta li {
  padding: 5px 10px;
  border: 1px solid var(--at-line);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--at-muted);
}

.at-course__desc {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--at-muted);
}

.at-course__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--at-line);
  font-family: var(--at-font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--at-ink);
}

.at-course__arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--at-line-2);
  border-radius: 50%;
  transition: background 0.2s var(--at-ease), border-color 0.2s var(--at-ease),
    color 0.2s var(--at-ease);
}

.at-course__arrow svg {
  width: 16px;
  height: 16px;
}

.at-course:hover .at-course__arrow {
  background: var(--at-gold);
  border-color: var(--at-gold);
  color: var(--at-ink);
}

/* =========================================================
   8. Категории
   ========================================================= */
.at-cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.at-cat {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 26px;
  border: 1px solid var(--at-line);
  border-radius: var(--at-radius-lg);
  background: var(--at-white);
  transition: transform 0.25s var(--at-ease), box-shadow 0.25s var(--at-ease),
    border-color 0.25s var(--at-ease);
}

.at-cat:hover {
  transform: translateY(-4px);
  border-color: var(--at-gold);
  box-shadow: var(--at-shadow);
}

.at-cat__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.at-cat__code {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  height: 46px;
  padding: 0 10px;
  border-radius: 3px;
  background: var(--at-ink);
  color: var(--at-gold-2);
  font-family: var(--at-font-head);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.at-cat__label {
  font-family: var(--at-font-head);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--at-muted-2);
}

.at-cat__img {
  margin: 0 0 18px;
  padding: 10px;
  background: var(--at-paper);
  border-radius: 3px;
}

.at-cat__img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.at-cat__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.at-cat__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--at-muted);
}

/* =========================================================
   9. Преимущества
   ========================================================= */
.at-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.at-feature {
  padding: 28px 24px;
  border: 1px solid var(--at-line);
  border-radius: var(--at-radius-lg);
  background: var(--at-white);
}

.at-feature__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border: 1px solid var(--at-gold);
  border-radius: 3px;
  color: var(--at-gold-deep);
  background: var(--at-gold-3);
}

.at-feature__icon svg {
  width: 24px;
  height: 24px;
}

.at-feature__title {
  margin: 0 0 8px;
  font-size: 16.5px;
  line-height: 1.3;
}

.at-feature__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--at-muted);
}

/* =========================================================
   10. Сплит-блоки
   ========================================================= */
.at-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.at-split--reverse .at-split__media {
  order: 2;
}

.at-split__media {
  position: relative;
}

.at-split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--at-radius-lg);
}

.at-split__media--framed {
  padding: 14px;
  border: 1px solid var(--at-line-2);
  border-radius: var(--at-radius-lg);
}

.at-split__media--framed img {
  border-radius: 2px;
}

.at-split__content .at-h2 {
  margin-bottom: 18px;
}

.at-split__content p {
  max-width: 60ch;
}

.at-marker-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.at-marker-list li {
  position: relative;
  padding-left: 32px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--at-text);
}

.at-marker-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--at-gold-3);
  box-shadow: inset 0 0 0 1px var(--at-gold);
}

.at-marker-list li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: calc(0.42em + 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--at-gold);
}

/* =========================================================
   11. Шаги программы
   ========================================================= */
.at-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: at-step;
  border-top: 1px solid var(--at-line);
}

.at-step {
  display: grid;
  grid-template-columns: 96px minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--at-line);
  counter-increment: at-step;
}

.at-step__num {
  font-family: var(--at-font-head);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: var(--at-gold);
  letter-spacing: -0.03em;
}

.at-step__num::before {
  content: counter(at-step, decimal-leading-zero);
}

.at-step__title {
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.3;
}

.at-step__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--at-muted);
}

/* =========================================================
   12. FAQ
   ========================================================= */
.at-faq {
  border-top: 1px solid var(--at-line);
}

.at-faq__item {
  border-bottom: 1px solid var(--at-line);
}

.at-faq__q {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--at-font-head);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--at-ink);
}

.at-faq__q::-webkit-details-marker {
  display: none;
}

.at-faq__q::after {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 5px;
  border-right: 2px solid var(--at-gold);
  border-bottom: 2px solid var(--at-gold);
  transform: rotate(45deg);
  transition: transform 0.25s var(--at-ease);
}

.at-faq__item[open] .at-faq__q::after {
  transform: rotate(-135deg);
}

.at-faq__a {
  padding: 0 60px 26px 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--at-muted);
}

.at-faq__a p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   13. Форма
   ========================================================= */
.at-form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: start;
}

.at-form-card {
  position: relative;
  padding: 38px;
  border: 1px solid var(--at-line);
  border-radius: var(--at-radius-lg);
  background: var(--at-white);
  box-shadow: var(--at-shadow);
}

.at-form-card--dark {
  background: var(--at-ink-2);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--at-on-dark);
}

.at-form-card--dark .at-h3 {
  color: var(--at-white);
}

.at-form-card__title {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
}

.at-form-card__sub {
  margin: 0 0 26px;
  font-size: 14px;
  color: var(--at-muted);
}

.at-form-card--dark .at-form-card__sub {
  color: var(--at-on-dark-muted);
}

.at-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.at-form p {
  margin: 0;
}

.at-form .at-field--full,
.at-form .at-consent,
.at-form .at-submit {
  grid-column: 1 / -1;
}

.at-form label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--at-font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--at-muted);
}

.at-form-card--dark .at-form label {
  color: var(--at-on-dark-muted);
}

.at-form input[type="text"],
.at-form input[type="tel"],
.at-form input[type="email"],
.at-form input[type="number"],
.at-form select,
.at-form textarea,
.at-form .wpcf7-form-control:not([type="submit"]):not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--at-line-2);
  border-radius: var(--at-radius);
  background: var(--at-white);
  color: var(--at-text);
  font-family: var(--at-font-body);
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 0.2s var(--at-ease), box-shadow 0.2s var(--at-ease);
}

.at-form textarea {
  min-height: 108px;
  resize: vertical;
}

.at-form input::placeholder,
.at-form textarea::placeholder {
  color: #9aa6b0;
}

.at-form input:focus,
.at-form select:focus,
.at-form textarea:focus {
  outline: none;
  border-color: var(--at-gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

.at-form-card--dark .at-form input,
.at-form-card--dark .at-form select,
.at-form-card--dark .at-form textarea {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--at-white);
}

.at-form-card--dark .at-form input::placeholder,
.at-form-card--dark .at-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.at-form .at-submit input[type="submit"],
.at-form input[type="submit"],
.at-form button[type="submit"] {
  width: 100%;
  min-height: 54px;
  padding: 14px 30px;
  border: 1px solid var(--at-gold);
  border-radius: var(--at-radius);
  background: var(--at-gold);
  color: var(--at-ink);
  font-family: var(--at-font-head);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s var(--at-ease), transform 0.2s var(--at-ease);
}

.at-form .at-submit input[type="submit"]:hover,
.at-form input[type="submit"]:hover,
.at-form button[type="submit"]:hover {
  background: var(--at-gold-2);
  transform: translateY(-2px);
}

.at-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--at-muted);
}

.at-form-card--dark .at-consent {
  color: var(--at-on-dark-muted);
}

.at-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-family: var(--at-font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
  cursor: pointer;
}

.at-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--at-gold);
}

.at-consent a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--at-gold);
}

.wpcf7 form .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--at-line-2);
  border-radius: var(--at-radius);
  font-size: 14px;
  line-height: 1.5;
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: #4c7a4c;
  background: #f1f7ef;
  color: #2f5c2f;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  border-color: #c8918c;
  background: #fcf1f0;
  color: var(--at-danger);
}

.wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 12px;
  color: var(--at-danger);
}

.wpcf7-spinner {
  margin-left: 12px;
}

/* =========================================================
   14. CTA-баннер
   ========================================================= */
.at-cta {
  position: relative;
  overflow: hidden;
  padding: 76px 0;
  background: var(--at-ink);
  color: var(--at-white);
}

.at-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(201, 162, 39, 0.14) 0 2px,
    transparent 2px 34px
  );
  opacity: 0.55;
  pointer-events: none;
}

.at-cta__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}

.at-cta__title {
  margin: 0 0 14px;
  color: var(--at-white);
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
}

.at-cta__text {
  margin: 0;
  max-width: 54ch;
  color: var(--at-on-dark-muted);
}

.at-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.at-cta__phone {
  display: block;
  margin-top: 10px;
  font-family: var(--at-font-head);
  font-size: 28px;
  font-weight: 800;
  color: var(--at-gold-2);
  letter-spacing: -0.02em;
}

.at-cta__phone:hover {
  color: var(--at-gold-3);
}

/* =========================================================
   15. Контакты
   ========================================================= */
.at-contacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.at-contact {
  display: flex;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--at-line);
  border-radius: var(--at-radius-lg);
  background: var(--at-white);
}

.at-contact__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 3px;
  background: var(--at-gold-3);
  color: var(--at-gold-deep);
}

.at-contact__icon svg {
  width: 22px;
  height: 22px;
}

.at-contact__label {
  margin: 0 0 6px;
  font-family: var(--at-font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--at-muted-2);
}

.at-contact__value {
  margin: 0;
  font-family: var(--at-font-head);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--at-ink);
}

.at-contact__value a {
  color: inherit;
}

.at-contact__note {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--at-muted);
}

.at-map {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--at-line);
  border-radius: var(--at-radius-lg);
  background: var(--at-paper);
}

.at-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.at-map__card {
  position: absolute;
  left: 24px;
  bottom: 24px;
  max-width: 320px;
  padding: 22px;
  border-radius: var(--at-radius);
  background: var(--at-white);
  box-shadow: var(--at-shadow);
}

.at-map--placeholder {
  display: grid;
  place-items: center;
  background-image: linear-gradient(rgba(14, 22, 32, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 22, 32, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  background-color: var(--at-paper);
}

.at-map__placeholder-inner {
  max-width: 380px;
  padding: 32px;
  text-align: center;
  background: var(--at-white);
  border: 1px solid var(--at-line);
  border-radius: var(--at-radius);
}

/* =========================================================
   16. Новости
   ========================================================= */
.at-news {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.at-news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--at-line);
  border-radius: var(--at-radius-lg);
  background: var(--at-white);
  transition: transform 0.25s var(--at-ease), box-shadow 0.25s var(--at-ease),
    border-color 0.25s var(--at-ease);
}

.at-news-card:hover {
  transform: translateY(-4px);
  border-color: var(--at-gold);
  box-shadow: var(--at-shadow);
}

.at-news-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.at-news-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 22px 24px 24px;
}

.at-news-card__date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--at-font-head);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--at-gold-deep);
}

.at-news-card__title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.at-news-card__title a {
  color: inherit;
}

.at-news-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.at-news-card__excerpt {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--at-muted);
}

.at-news-card__more {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--at-line);
  font-family: var(--at-font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--at-ink);
}

.at-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 52px;
}

.at-pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--at-line-2);
  border-radius: var(--at-radius);
  font-family: var(--at-font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--at-ink);
}

.at-pagination .page-numbers:hover,
.at-pagination .page-numbers.current {
  background: var(--at-ink);
  border-color: var(--at-ink);
  color: var(--at-white);
}

/* =========================================================
   17. Статья / юридические страницы
   ========================================================= */
.at-article {
  padding: 72px 0 96px;
}

.at-article__layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.at-article__aside {
  position: sticky;
  top: calc(var(--at-header-h) + 24px);
}

.at-legal-nav {
  padding: 18px;
  border: 1px solid var(--at-line);
  border-radius: var(--at-radius-lg);
  background: var(--at-paper);
}

.at-legal-nav__title {
  margin: 0 0 12px;
  font-family: var(--at-font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--at-muted-2);
}

.at-legal-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.at-legal-nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 2px;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--at-text);
}

.at-legal-nav a:hover {
  background: var(--at-white);
  color: var(--at-ink);
}

.at-legal-nav a.is-current {
  background: var(--at-ink);
  color: var(--at-white);
}

.at-prose {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--at-text);
}

.at-prose > *:first-child {
  margin-top: 0;
}

.at-prose h2 {
  margin: 48px 0 16px;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
}

.at-prose h3 {
  margin: 34px 0 12px;
  font-size: 1.2rem;
}

.at-prose h4 {
  margin: 26px 0 10px;
  font-size: 1.05rem;
}

.at-prose p,
.at-prose li {
  color: #2b3843;
}

.at-prose ul,
.at-prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
}

.at-prose li {
  margin-bottom: 0.5em;
}

.at-prose a {
  color: var(--at-ink);
  text-decoration: underline;
  text-decoration-color: var(--at-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.at-prose a:hover {
  color: var(--at-gold-deep);
}

.at-prose blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--at-gold);
  background: var(--at-paper);
  font-size: 1.05rem;
  color: var(--at-ink-2);
}

.at-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 15px;
}

.at-prose th,
.at-prose td {
  padding: 12px 14px;
  border: 1px solid var(--at-line);
  text-align: left;
  vertical-align: top;
}

.at-prose th {
  background: var(--at-paper);
  font-family: var(--at-font-head);
  font-weight: 700;
}

.at-prose img {
  border-radius: var(--at-radius);
  margin: 24px 0;
}

.at-prose__note {
  margin: 0 0 32px;
  padding: 18px 22px;
  border: 1px solid var(--at-line);
  border-left: 3px solid var(--at-gold);
  border-radius: 0 var(--at-radius) var(--at-radius) 0;
  background: var(--at-paper);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--at-muted);
}

/* Реквизиты / факты */
.at-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 36px;
  background: var(--at-line);
  border: 1px solid var(--at-line);
  border-radius: var(--at-radius-lg);
  overflow: hidden;
}

.at-fact {
  padding: 20px 22px;
  background: var(--at-white);
}

.at-fact dt {
  margin-bottom: 6px;
  font-family: var(--at-font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--at-muted-2);
}

.at-fact dd {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--at-ink);
}

/* Документы */
.at-docs {
  display: grid;
  gap: 10px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.at-doc {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--at-line);
  border-radius: var(--at-radius);
  background: var(--at-white);
  transition: border-color 0.2s var(--at-ease), box-shadow 0.2s var(--at-ease);
}

.at-doc:hover {
  border-color: var(--at-gold);
  box-shadow: var(--at-shadow-sm);
}

.at-doc__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 3px;
  background: var(--at-paper);
  color: var(--at-gold-deep);
  font-family: var(--at-font-head);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.at-doc__name {
  flex: 1 1 auto;
  font-size: 15px;
  line-height: 1.4;
  color: var(--at-ink);
}

.at-doc__meta {
  font-size: 12px;
  color: var(--at-muted-2);
  white-space: nowrap;
}

.at-doc__arrow {
  width: 18px;
  height: 18px;
  color: var(--at-muted-2);
  flex: 0 0 auto;
}

/* =========================================================
   18. Пустые состояния / 404
   ========================================================= */
.at-empty {
  padding: 80px 32px;
  border: 1px dashed var(--at-line-2);
  border-radius: var(--at-radius-lg);
  background: var(--at-paper);
  text-align: center;
}

.at-empty__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--at-white);
  color: var(--at-gold-deep);
  box-shadow: var(--at-shadow-sm);
}

.at-empty__title {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.at-empty__text {
  max-width: 52ch;
  margin: 0 auto 24px;
  font-size: 15px;
  color: var(--at-muted);
}

.at-404 {
  padding: 96px 0 110px;
  text-align: center;
}

.at-404__code {
  margin: 0 0 8px;
  font-family: var(--at-font-head);
  font-size: clamp(4.5rem, 14vw, 9rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--at-gold);
}

.at-404__title {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.at-404__text {
  max-width: 50ch;
  margin: 0 auto 30px;
  color: var(--at-muted);
}

/* =========================================================
   19. Подвал
   ========================================================= */
.at-footer {
  background: var(--at-ink);
  color: var(--at-on-dark-muted);
  font-size: 14.5px;
}

.at-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.8fr));
  gap: 48px;
  padding: 72px 0 56px;
}

.at-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.at-footer__logo {
  display: inline-flex;
  padding: 10px;
  background: var(--at-white);
  border-radius: var(--at-radius);
}

.at-footer__logo img {
  width: 84px;
  height: 88px;
  object-fit: contain;
}

.at-footer__brand-name {
  margin: 0;
  font-family: var(--at-font-head);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--at-white);
}

.at-footer__brand-name span {
  display: block;
  margin-top: 4px;
  font-family: var(--at-font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--at-on-dark-muted);
}

.at-footer__desc {
  margin: 0;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.6;
}

.at-footer__title {
  margin: 0 0 18px;
  font-family: var(--at-font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--at-white);
}

.at-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.at-footer__list a {
  color: var(--at-on-dark-muted);
  font-size: 14px;
  line-height: 1.4;
}

.at-footer__list a:hover {
  color: var(--at-gold-2);
}

.at-footer__contact {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
}

.at-footer__phone {
  display: inline-block;
  margin-bottom: 6px;
  font-family: var(--at-font-head);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--at-white);
}

.at-footer__phone:hover {
  color: var(--at-gold-2);
}

.at-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--at-line-dark);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
}

.at-footer__bottom a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 3px;
}

.at-footer__bottom a:hover {
  color: var(--at-gold-2);
}

.at-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--at-line-2);
  border-radius: var(--at-radius);
  background: var(--at-white);
  color: var(--at-ink);
  box-shadow: var(--at-shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s var(--at-ease), transform 0.2s var(--at-ease),
    visibility 0.2s;
  cursor: pointer;
}

.at-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.at-to-top svg {
  width: 18px;
  height: 18px;
}

/* Cookie */
.at-cookie {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  display: none;
  align-items: center;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 24px;
  border: 1px solid var(--at-line);
  border-radius: var(--at-radius-lg);
  background: var(--at-white);
  box-shadow: var(--at-shadow-lg);
}

.at-cookie.is-visible {
  display: flex;
}

.at-cookie__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--at-muted);
}

.at-cookie__text a {
  color: var(--at-ink);
  text-decoration: underline;
  text-decoration-color: var(--at-gold);
}

.at-cookie__actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

/* =========================================================
   20. Контент WordPress (Gutenberg fallback)
   ========================================================= */
.at-content {
  padding: 64px 0 96px;
}

.at-content__inner {
  max-width: 820px;
  margin: 0 auto;
}

.at-content .wp-block-image img {
  border-radius: var(--at-radius);
}

.at-content .alignwide {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.at-content .alignfull {
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.at-post__header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--at-line);
}

.at-post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--at-muted);
}

.at-post__meta .at-news-card__date {
  margin: 0;
}

.at-post__title {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.08;
}

.at-post__image {
  margin: 40px 0;
  border-radius: var(--at-radius-lg);
  overflow: hidden;
}

.at-post__image img {
  width: 100%;
}

.at-post__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--at-line);
}

.at-post__nav a {
  max-width: 46%;
  font-family: var(--at-font-head);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
}

.at-post__nav span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--at-font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--at-muted-2);
}

/* =========================================================
   21. Elementor-совместимость
   ========================================================= */
.elementor .at-h1,
.elementor .at-h2,
.elementor .at-h3,
.elementor .at-h4,
.elementor-widget-heading .elementor-heading-title {
  font-family: var(--at-font-head);
  font-style: normal;
}

.elementor-widget-heading .at-h2,
.elementor-widget-heading .at-h3 {
  margin-bottom: 0;
}

.elementor-widget-heading .elementor-heading-title.at-h1 {
  font-size: clamp(2.1rem, 4.6vw, 4rem);
}

.elementor-widget-heading .elementor-heading-title.at-h2 {
  font-size: clamp(1.7rem, 2.9vw, 2.75rem);
}

.elementor-widget-heading .elementor-heading-title.at-h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
}

.elementor-widget-heading .elementor-heading-title.at-hero__title {
  font-size: clamp(2.35rem, 4.2vw, 3.9rem);
  line-height: 1.03;
  color: var(--at-white);
}

.elementor-widget-heading .elementor-heading-title.at-page-hero__title {
  color: var(--at-white);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
}

.elementor-widget-text-editor p:last-child {
  margin-bottom: 0;
}

.elementor-widget-text-editor.at-prose,
.elementor-widget-text-editor .at-prose {
  font-size: 16.5px;
  line-height: 1.7;
}

.elementor .at-btn .elementor-button,
.elementor .elementor-button.at-btn {
  font-style: normal;
}

/* Секции с нашими классами: управляем отступами через тему */
.elementor-section.at-sec-flush > .elementor-container {
  margin: 0;
}

.elementor-section.at-sec-flush {
  padding: 0;
}

.elementor-widget-image img.at-img-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Совместимость с контейнерами Elementor (flexbox) */
.e-con.at-sec-flush {
  padding: 0;
}

/* Убираем стандартные отступы виджетов там, где заданы наши классы */
.elementor-widget.at-no-margin {
  margin-bottom: 0;
}

/* Пагинация и списки внутри Elementor */
.elementor-widget-shortcode .at-news,
.elementor-widget-shortcode .at-courses {
  margin: 0;
}

/* =========================================================
   22. Адаптив
   ========================================================= */
@media (max-width: 1180px) {
  .at-header__inner {
    gap: 20px;
  }

  .at-nav__link {
    padding: 12px 10px;
    font-size: 13.5px;
  }

  .at-header__phone {
    font-size: 17px;
  }

  .at-header__actions {
    gap: 12px;
  }

  .at-hero__inner {
    gap: 40px;
  }

  .at-hero__badge {
    left: 12px;
  }

  .at-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }
}

@media (max-width: 1024px) {
  :root {
    --at-header-h: 76px;
  }

  .at-section {
    padding: 72px 0;
  }

  .at-header__top,
  .at-nav {
    display: none;
  }

  .at-burger {
    display: flex;
  }

  .at-header__actions {
    margin-left: auto;
  }

  .at-hero {
    padding: 56px 0 64px;
  }

  .at-hero__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .at-hero__media {
    max-width: 640px;
  }

  .at-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .at-hero__stat {
    padding: 16px 16px 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .at-split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .at-split--reverse .at-split__media {
    order: 0;
  }

  .at-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .at-cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .at-news {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .at-contacts {
    grid-template-columns: 1fr;
  }

  .at-form-wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .at-cta__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .at-cta__actions {
    justify-content: flex-start;
  }

  .at-article__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .at-article__aside {
    position: static;
  }

  .at-legal-nav ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .at-step {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 8px 20px;
  }

  .at-step__text {
    grid-column: 2;
  }

  .at-section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  :root {
    --at-gutter: 18px;
  }

  .at-section {
    padding: 56px 0;
  }

  .at-section--tight {
    padding: 44px 0;
  }

  .at-courses,
  .at-features,
  .at-cats,
  .at-news {
    grid-template-columns: 1fr;
  }

  .at-header__phone {
    display: none;
  }

  .at-header__actions .at-btn {
    display: none;
  }

  .at-logo img {
    height: 40px;
  }

  .at-hero {
    padding: 40px 0 52px;
  }

  .at-hero__title {
    font-size: clamp(1.95rem, 7.4vw, 2.6rem);
  }

  .at-hero__frame {
    padding: 8px;
  }

  .at-hero__badge {
    position: static;
    margin: 16px 0 0;
    max-width: none;
    box-shadow: none;
  }

  .at-hero__actions .at-btn {
    width: 100%;
  }

  .at-hero__stat dt {
    font-size: 1.5rem;
  }

  .at-form {
    grid-template-columns: 1fr;
  }

  .at-form-card {
    padding: 26px 22px;
  }

  .at-footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 52px 0 40px;
  }

  .at-facts {
    grid-template-columns: 1fr;
  }

  .at-legal-nav ul {
    grid-template-columns: 1fr;
  }

  .at-cookie {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 18px;
  }

  .at-cookie__actions .at-btn {
    flex: 1 1 auto;
  }

  .at-cta {
    padding: 52px 0;
  }

  .at-cta__phone {
    font-size: 24px;
  }

  .at-post__nav {
    flex-direction: column;
  }

  .at-post__nav a {
    max-width: none;
  }

  .at-to-top {
    right: 14px;
    bottom: 14px;
  }

  .at-doc {
    flex-wrap: wrap;
  }

  .at-doc__meta {
    width: 100%;
    padding-left: 56px;
  }
}

@media (max-width: 420px) {
  .at-hero__stats {
    grid-template-columns: 1fr;
  }

  .at-hero__stat {
    padding: 14px 0;
  }

  .at-cta__actions .at-btn {
    width: 100%;
  }
}

/* =========================================================
   23. Доступность и печать
   ========================================================= */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 500;
  padding: 12px 18px;
  background: var(--at-ink);
  color: var(--at-white);
  border-radius: var(--at-radius);
  transition: top 0.2s var(--at-ease);
}

.skip-link:focus {
  top: 12px;
  color: var(--at-white);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .at-header,
  .at-footer,
  .at-cookie,
  .at-to-top,
  .at-mnav,
  .at-cta {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .at-page-hero {
    background: #fff;
    color: #000;
  }

  .at-page-hero__title {
    color: #000;
  }
}

/* =========================================================
   24. Elementor-раскладки (классы темы на секциях и колонках)
   ========================================================= */

/* Сетки */
.at-grid > .elementor-container {
  display: grid;
  gap: 24px;
  align-items: stretch;
}

.at-grid > .elementor-container > .elementor-column {
  width: 100% !important;
  max-width: none !important;
  flex: 1 1 auto;
}

.at-grid > .elementor-container > .elementor-column > .elementor-widget-wrap {
  padding: 0;
  height: 100%;
}

.at-grid--2 > .elementor-container {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.at-grid--3 > .elementor-container {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.at-grid--4 > .elementor-container {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Универсальная карточка */
.at-card-col {
  display: flex;
}

.at-card-col > .elementor-widget-wrap {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  overflow: hidden;
  border: 1px solid var(--at-line);
  border-radius: var(--at-radius-lg);
  background: var(--at-white);
  transition: transform 0.25s var(--at-ease), box-shadow 0.25s var(--at-ease),
    border-color 0.25s var(--at-ease);
}

.at-card-col:hover > .elementor-widget-wrap {
  transform: translateY(-4px);
  border-color: var(--at-gold);
  box-shadow: var(--at-shadow);
}

.at-card-col .elementor-widget-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.at-card-col .elementor-widget-heading {
  padding: 24px 26px 0;
}

.at-card-col .elementor-widget-heading .elementor-heading-title {
  margin: 0;
  font-family: var(--at-font-head);
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.at-card-col .elementor-widget-text-editor {
  padding: 10px 26px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--at-muted);
}

.at-card-col .elementor-widget-text-editor p {
  margin: 0;
}

.at-card-col .elementor-widget-button {
  margin-top: auto;
  padding: 20px 26px 26px;
}

.at-card-col .elementor-widget-button .elementor-button {
  padding: 0;
  background: transparent;
  color: var(--at-ink);
  font-family: var(--at-font-head);
  font-size: 13px;
  font-weight: 700;
}

.at-card-col .elementor-widget-button .elementor-button:hover {
  background: transparent;
  color: var(--at-gold-deep);
}

/* Карточка категории */
.at-cat-col > .elementor-widget-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px 20px 24px;
  border: 1px solid var(--at-line);
  border-radius: var(--at-radius-lg);
  background: var(--at-white);
  transition: transform 0.25s var(--at-ease), box-shadow 0.25s var(--at-ease),
    border-color 0.25s var(--at-ease);
}

.at-cat-col:hover > .elementor-widget-wrap {
  transform: translateY(-4px);
  border-color: var(--at-gold);
  box-shadow: var(--at-shadow);
}

.at-cat-col .elementor-widget-heading .elementor-heading-title {
  margin: 0;
}

.at-cat-col .at-cat__code {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  height: 46px;
  padding: 0 10px;
  border-radius: 3px;
  background: var(--at-ink);
  color: var(--at-gold-2);
  font-family: var(--at-font-head);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.at-cat-col .elementor-widget-image {
  margin: 16px 0 18px;
  padding: 10px;
  border-radius: 3px;
  background: var(--at-paper);
}

.at-cat-col .elementor-widget-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.at-cat-col .at-cat__title,
.at-cat-col .elementor-heading-title.at-cat__title {
  margin: 0 0 8px;
  font-family: var(--at-font-head);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
}

.at-cat-col .elementor-widget-text-editor {
  font-size: 14px;
  line-height: 1.55;
  color: var(--at-muted);
}

.at-cat-col .elementor-widget-text-editor p {
  margin: 0;
}

/* Карточка преимущества */
.at-feature-col > .elementor-widget-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 24px;
  border: 1px solid var(--at-line);
  border-radius: var(--at-radius-lg);
  background: var(--at-white);
}

.at-feature-col .elementor-widget-shortcode {
  margin-bottom: 18px;
}

.at-feature-col .elementor-widget-heading .elementor-heading-title {
  margin: 0 0 8px;
  font-family: var(--at-font-head);
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
}

.at-feature-col .elementor-widget-text-editor {
  font-size: 14px;
  line-height: 1.55;
  color: var(--at-muted);
}

.at-feature-col .elementor-widget-text-editor p {
  margin: 0;
}

/* Иконка-плашка */
.at-icobox {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--at-gold);
  border-radius: 3px;
  background: var(--at-gold-3);
  color: var(--at-gold-deep);
}

/* Хиро в Elementor */
.at-hero > .elementor-container {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 64px;
  align-items: center;
}

.at-hero > .elementor-container > .elementor-column {
  width: 100% !important;
}

.at-hero > .elementor-container > .elementor-column > .elementor-widget-wrap {
  padding: 0;
}

.at-hero__media {
  position: relative;
}

.at-hero__media .elementor-widget-image {
  padding: 12px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: var(--at-radius);
  background: rgba(255, 255, 255, 0.03);
}

.at-hero__media .elementor-widget-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
}

.at-hero__badge .at-hero__badge-inner {
  position: absolute;
  left: -28px;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 310px;
  padding: 16px 20px;
  border-radius: var(--at-radius);
  background: var(--at-white);
  color: var(--at-ink);
  box-shadow: var(--at-shadow-lg);
}

.at-hero .elementor-widget-heading .elementor-heading-title.at-eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--at-gold-2);
}

.at-hero .at-hero__text p {
  margin: 0 0 28px;
  max-width: 56ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.62;
  color: #c7d2db;
}

/* Сплит в Elementor */
.at-split-sec > .elementor-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: center;
}

.at-split-sec > .elementor-container > .elementor-column {
  width: 100% !important;
}

.at-split-sec > .elementor-container > .elementor-column > .elementor-widget-wrap {
  padding: 0;
}

.at-split-sec .elementor-widget-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--at-radius-lg);
}

.at-split-sec--rev > .elementor-container > .elementor-column:first-child {
  order: 2;
}

/* Юридические страницы */
.at-legal-grid > .elementor-container {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.at-legal-grid > .elementor-container > .elementor-column {
  width: 100% !important;
}

.at-legal-grid > .elementor-container > .elementor-column > .elementor-widget-wrap {
  padding: 0;
}

.at-legal-grid > .elementor-container > .elementor-column:first-child {
  position: sticky;
  top: calc(var(--at-header-h) + 16px);
}

/* Сетка новостей в Elementor */
.at-news-el > .elementor-container {
  display: block;
}

/* Кнопки-группы */
.at-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Плашка с иконкой и текстом (html-виджет) */
.at-inline-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--at-line);
  border-radius: var(--at-radius);
  background: var(--at-paper);
  font-size: 14px;
  line-height: 1.55;
  color: var(--at-muted);
}

.at-inline-note svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--at-gold-deep);
}

.at-inline-note strong {
  color: var(--at-ink);
}

/* Документы-карточки (html-виджет) */
.at-doc-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--at-line);
  border-radius: var(--at-radius);
  background: var(--at-white);
  transition: border-color 0.2s var(--at-ease), box-shadow 0.2s var(--at-ease);
}

.at-doc-link:hover {
  border-color: var(--at-gold);
  box-shadow: var(--at-shadow-sm);
}

.at-doc-link__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 3px;
  background: var(--at-paper);
  color: var(--at-gold-deep);
  font-family: var(--at-font-head);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.at-doc-link__name {
  flex: 1 1 auto;
  font-size: 15px;
  line-height: 1.4;
  color: var(--at-ink);
}

.at-doc-link__arrow {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--at-muted-2);
}

/* =========================================================
   25. Адаптив Elementor-раскладок
   ========================================================= */
@media (max-width: 1024px) {
  .at-hero > .elementor-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .at-hero__badge .at-hero__badge-inner {
    position: static;
    margin-top: 16px;
    max-width: none;
    box-shadow: var(--at-shadow);
  }

  .at-split-sec > .elementor-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .at-split-sec--rev > .elementor-container > .elementor-column:first-child {
    order: 0;
  }

  .at-grid--3 > .elementor-container,
  .at-grid--4 > .elementor-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .at-legal-grid > .elementor-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .at-legal-grid > .elementor-container > .elementor-column:first-child {
    position: static;
  }

  .at-legal-grid .at-legal-nav ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .at-grid--2 > .elementor-container,
  .at-grid--3 > .elementor-container,
  .at-grid--4 > .elementor-container {
    grid-template-columns: 1fr;
  }

  .at-card-col .elementor-widget-heading {
    padding: 20px 20px 0;
  }

  .at-card-col .elementor-widget-text-editor {
    padding: 10px 20px 0;
  }

  .at-card-col .elementor-widget-button {
    padding: 16px 20px 22px;
  }

  .at-legal-grid .at-legal-nav ul {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   26. Шапка и подвал, собранные в Elementor / ElementsKit
   ========================================================= */
.at-header-el {
  background: var(--at-white);
  border-bottom: 1px solid var(--at-line);
}

.at-header-el > .elementor-container {
  align-items: center;
}

.at-header-el .elementor-column > .elementor-widget-wrap {
  padding: 12px 0;
}

.at-header-el .at-header-logo,
.at-header-el .elementor-widget-image {
  display: flex;
  align-items: center;
}

.at-header-el .elementor-widget-image img {
  height: 46px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

.at-header-el .at-nav {
  margin-left: 0;
}

.at-header-el .at-header__actions {
  justify-content: flex-end;
  margin-left: 0;
}

.at-header-el .at-header-col--nav .elementor-widget-shortcode,
.at-header-el .at-header-col--actions .elementor-widget-shortcode {
  width: 100%;
}

.at-header-el .elementor-widget-container {
  line-height: 1;
}

.at-header-el .at-burger {
  flex: 0 0 auto;
}

.at-footer-el {
  background: var(--at-ink);
  color: var(--at-on-dark-muted);
  padding-bottom: 0;
}

.at-footer-el .elementor-column > .elementor-widget-wrap {
  padding: 0 12px;
}

.at-footer-el .at-footer-emblem {
  display: inline-flex;
  padding: 8px;
  background: var(--at-white);
  border-radius: var(--at-radius);
}

.at-footer-el .elementor-widget-image img {
  width: 76px;
  height: 80px;
  object-fit: contain;
}

.at-footer-el .at-footer__brand-name {
  margin: 16px 0 0;
  font-family: var(--at-font-head);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--at-white);
}

.at-footer-el .at-footer__desc {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--at-on-dark-muted);
}

.at-footer-el .at-footer__title {
  margin: 0 0 16px;
  font-family: var(--at-font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--at-white);
}

.at-footer-el .at-footer__list a,
.at-footer-el .at-footer__contact a {
  color: var(--at-on-dark-muted);
}

.at-footer-el .at-footer__list a:hover,
.at-footer-el .at-footer__contact a:hover {
  color: var(--at-gold-2);
}

.at-footer-el .at-footer__phone {
  color: var(--at-white);
}

.at-footer-el .elementor-widget-heading .elementor-heading-title {
  color: inherit;
}

/* =========================================================
   27. Дополнительные компоненты страниц
   ========================================================= */
.at-form__grid {
  display: contents;
}

.at-form-card .wpcf7 {
  margin: 0;
}

.at-contacts__more {
  margin-top: 26px;
}

.at-license-card {
  padding: 30px 28px;
  border: 1px solid var(--at-line);
  border-radius: var(--at-radius-lg);
  background: var(--at-white);
}

.at-license-card .at-h3 {
  margin-bottom: 10px;
}

.at-license-card .at-muted {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.55;
}

.at-link-card {
  display: flex;
}

.at-link-card > .elementor-widget-wrap {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--at-line);
  border-radius: var(--at-radius-lg);
  background: var(--at-white);
  transition: transform 0.2s var(--at-ease), border-color 0.2s var(--at-ease),
    box-shadow 0.2s var(--at-ease);
}

.at-link-card:hover > .elementor-widget-wrap {
  transform: translateY(-3px);
  border-color: var(--at-gold);
  box-shadow: var(--at-shadow-sm);
}

.at-link-card .elementor-widget-heading .elementor-heading-title {
  margin: 0 0 8px;
  font-family: var(--at-font-head);
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
}

.at-link-card .elementor-widget-text-editor {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--at-muted);
}

.at-link-card .elementor-widget-text-editor p {
  margin: 0;
}

.at-link-card .elementor-widget-html {
  margin-top: auto;
  padding-top: 16px;
}

.at-link-card .at-link-arrow {
  font-size: 13px;
}

.at-structure {
  display: grid;
  gap: 0;
  margin-top: 8px;
  border-top: 1px solid var(--at-line);
}

.at-structure__item {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--at-line);
}

.at-structure__dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--at-gold);
  box-shadow: 0 0 0 4px var(--at-gold-3);
}

.at-structure__item h3 {
  margin: 0 0 4px;
  font-family: var(--at-font-head);
  font-size: 17px;
  font-weight: 800;
}

.at-structure__item p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--at-muted);
}

.at-legal-wide > .elementor-container {
  max-width: 860px !important;
}

.at-legal-wide .at-prose {
  font-size: 16px;
}

.at-hero__media .elementor-widget-html {
  position: static;
}

.at-card-col .elementor-widget-html {
  margin-top: auto;
  padding: 18px 26px 26px;
}

.at-card-col .elementor-widget-html .at-link-arrow {
  font-size: 13px;
}

@media (max-width: 1024px) {
  .at-header-el .elementor-column {
    width: 100% !important;
  }

  .at-header-el > .elementor-container {
    flex-wrap: nowrap;
  }

  .at-header-el .at-header-col--logo {
    width: 55% !important;
  }

  .at-header-el .at-header-col--nav {
    display: none;
  }

  .at-header-el .at-header-col--actions {
    width: 45% !important;
  }

  .at-footer-el > .elementor-container {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .at-footer-el .elementor-column {
    width: 100% !important;
    max-width: none !important;
  }
}

@media (max-width: 760px) {
  .at-footer-el > .elementor-container {
    grid-template-columns: 1fr;
  }

  .at-card-col .elementor-widget-html {
    padding: 16px 20px 22px;
  }
}

/* =========================================================
   28. Базовая сетка Elementor (для превью и как страховка)
   ========================================================= */
.elementor-section {
  position: relative;
  width: 100%;
}

.elementor-container {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
}

.elementor-column {
  position: relative;
  display: flex;
  min-height: 1px;
}

.elementor-widget-wrap {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  width: 100%;
}

.elementor-widget {
  width: 100%;
}

.elementor-widget-container {
  width: 100%;
}

/* Наследование типографики: классы темы вешаются на обёртку виджета,
   а сам заголовок Elementor должен наследовать её оформление. */
.elementor-widget-heading .elementor-heading-title {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.at-hero__title {
  font-family: var(--at-font-head);
  font-weight: 800;
}

.at-page-hero__title {
  font-family: var(--at-font-head);
  font-weight: 800;
}

.at-footer__brand-name.elementor-heading-title,
.at-footer-el .at-footer__brand-name {
  font-family: var(--at-font-head);
  font-weight: 800;
}

/* Внутренние отступы карточек: заголовок и текст внутри обёрток */
.at-card-col .elementor-widget-heading .elementor-heading-title,
.at-link-card .elementor-widget-heading .elementor-heading-title,
.at-feature-col .elementor-widget-heading .elementor-heading-title {
  margin: 0;
}

/* =========================================================
   29. Правки хиро и карточек
   ========================================================= */
.at-hero__title {
  font-size: clamp(2.15rem, 3.6vw, 3.5rem);
  line-height: 1.02;
  margin-bottom: 6px;
}

.at-hero__cats {
  margin: 0 0 22px;
  font-family: var(--at-font-head);
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--at-gold-2);
}

.at-cat-col .at-cat__code {
  width: auto;
  align-self: flex-start;
}

.at-form > .at-form-card__title,
.at-form > .at-form-card__sub {
  grid-column: 1 / -1;
}

.at-form > .at-form-card__sub {
  margin-bottom: 4px;
}

@media (max-width: 760px) {
  .at-hero__badge {
    position: static !important;
    margin-top: 16px;
    max-width: none !important;
    box-shadow: var(--at-shadow);
  }
}

/* =========================================================
   30. Горизонтальные отступы контейнеров Elementor
   ========================================================= */
.elementor-section > .elementor-container {
  padding-left: var(--at-gutter);
  padding-right: var(--at-gutter);
  box-sizing: border-box;
}

.at-cta-sec > .elementor-container {
  padding-left: 0;
  padding-right: 0;
  max-width: 100% !important;
}

.at-form-sec > .elementor-container,
.at-map-sec > .elementor-container {
  box-sizing: border-box;
}

.at-legal-wide > .elementor-container {
  padding-left: var(--at-gutter);
  padding-right: var(--at-gutter);
}

@media (max-width: 760px) {
  .at-hero {
    padding-left: 0;
    padding-right: 0;
  }

  .at-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .at-hero__title {
    font-size: clamp(1.9rem, 8.4vw, 2.6rem);
  }

  .at-hero__cats {
    font-size: clamp(1.05rem, 5.4vw, 1.35rem);
  }
}

/* =========================================================
   31. Финальные правки компонентов
   ========================================================= */
.at-news-card {
  height: 100%;
}

.at-link-card > .elementor-widget-wrap {
  height: 100%;
}

.at-split-sec .elementor-widget-heading .elementor-heading-title.at-h2,
.at-split-sec .at-h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
}

/* Боковое меню официальных разделов — в две колонки на десктопе */
.at-legal-grid .at-legal-nav ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 8px;
}

.at-legal-grid .at-legal-nav a {
  padding: 6px 8px;
  font-size: 12.5px;
}

.at-legal-grid > .elementor-container {
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 48px;
}

.at-doc-link__name {
  font-size: 14.5px;
}

.at-footer__bottom p {
  margin: 0;
}

/* Плашка «документы» в FAQ */
.at-license-card .at-eyebrow {
  margin-bottom: 10px;
}

.at-hero__stat dd {
  padding-right: 8px;
}

.at-map--placeholder {
  min-height: 380px;
}

@media (max-width: 1024px) {
  .at-legal-grid .at-legal-nav ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .at-legal-grid .at-legal-nav ul {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   32. Липкая шапка (для шаблона шапки в Elementor)
   ========================================================= */
#at-header.is-stuck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 12px 30px -18px rgba(14, 22, 32, 0.35);
}

body.at-has-stuck-header {
  padding-top: 72px;
}

.at-header-el#at-header.is-stuck > .elementor-container {
  max-width: var(--at-container);
}

.at-header-el#at-header.is-stuck .at-header-logo img,
.at-header-el#at-header.is-stuck .elementor-widget-image img {
  height: 40px;
}

body.at-has-stuck-header {
  padding-top: var(--at-stuck-h, 72px);
}

/* =========================================================
   33. Юридические страницы: компактное меню и ссылки
   ========================================================= */
.at-legal-grid .at-legal-nav ul {
  grid-template-columns: 1fr;
}

.at-legal-grid .at-legal-nav a {
  padding: 7px 9px;
  font-size: 13px;
  line-height: 1.3;
}

.at-legal-grid > .elementor-container {
  grid-template-columns: 300px minmax(0, 1fr);
}

.at-prose .at-doc-link,
.at-prose .at-btn,
.at-prose .at-link-arrow {
  text-decoration: none;
}

.at-prose .at-doc-link__name {
  text-decoration: none;
}

.at-prose .at-fact dd a,
.at-prose .at-facts a {
  text-decoration: none;
}

.at-legal-grid .at-legal-nav {
  padding: 16px 14px;
}

.at-legal-grid .at-legal-nav__title {
  padding: 0 9px;
}

/* =========================================================
   34. Верхняя полоса и шапка в Elementor
   ========================================================= */
.at-topbar-el {
  background: var(--at-ink);
  padding: 0;
}

.at-topbar-el > .elementor-container {
  padding-top: 0;
  padding-bottom: 0;
}

.at-topbar-el .at-header__top-inner--el {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 40px;
  color: var(--at-on-dark-muted);
  font-size: 12.5px;
}

.at-topbar-el .at-header__top-left,
.at-topbar-el .at-header__top-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.at-topbar-el .at-top-item {
  color: var(--at-on-dark-muted);
}

.at-topbar-el .at-top-item svg {
  color: var(--at-gold);
}

.at-topbar-el .at-top-item--muted {
  color: rgba(255, 255, 255, 0.5);
}

.at-topbar-el .at-top-link {
  color: var(--at-on-dark);
  display: inline-flex;
}

.at-topbar-el .at-top-link svg {
  color: var(--at-gold-2);
}

.at-header-el > .elementor-container {
  flex-wrap: nowrap;
}

.at-header-el .elementor-column {
  min-width: 0;
}

.at-header-el .at-header__actions {
  flex-wrap: nowrap;
}

.at-footer-el .at-footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 1024px) {
  .at-topbar-el {
    display: none;
  }
}

/* =========================================================
   35. Топбар на средних экранах
   ========================================================= */
@media (max-width: 1240px) {
  .at-top-item--muted {
    display: none;
  }
}

@media (max-width: 1080px) {
  .at-header__top-right {
    display: none;
  }
}

/* =========================================================
   36. Документы: недоступный файл
   ========================================================= */
.at-doc-link.is-missing {
  opacity: 0.65;
  cursor: default;
}

.at-doc-link.is-missing:hover {
  border-color: var(--at-line);
  box-shadow: none;
}

.at-doc-link__note {
  margin-left: auto;
  font-size: 12px;
  color: var(--at-muted-2);
  white-space: nowrap;
}

/* =========================================================
   37. Text wrapping safety (Cyrillic long words)
   ========================================================= */
.at-legal-nav a,
.at-doc-link__name,
.at-footer__list a,
.at-cat__desc,
.at-course__title,
.at-news-card__title {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.at-legal-nav a {
  min-width: 0;
}

.at-legal-grid > .elementor-container > .elementor-column {
  min-width: 0;
}
