/* ============================================================
   style.css — Ассоциация «ТОС»
   Шрифт: PT Sans (Google Fonts)
   Bootstrap 5.3.8 + Bootstrap Icons 1.11.3
   ============================================================ */

/* -- ПЕРЕМЕННЫЕ ------------------------------------------- */
:root {
  --blue:       #1e385e;   /* тёмно-синий из лого */
  --blue-2:     #27497a;   /* чуть светлее */
  --red:        #b22e22;   /* красный из лого */
  --red-d:      #8c1f15;
  --gray-bg:    #f4f6fa;
  --gray-brd:   #e2e8f0;
  --text:       #2d3748;
  --muted:      #718096;
  --white:      #ffffff;
  --shadow-sm:  0 2px 12px rgba(30,56,94,.09);
  --shadow:     0 4px 24px rgba(30,56,94,.13);
  --shadow-lg:  0 8px 40px rgba(30,56,94,.18);
  --r:          12px;
  --r-sm:       8px;
  --t:          all .3s ease;

  /* Ссылки: цвет из палитры вместо дефолтного Bootstrap */
  --bs-link-color:           #1b5fa8;
  --bs-link-color-rgb:       27, 95, 168;
  --bs-link-hover-color:     #b22e22;
  --bs-link-hover-color-rgb: 178, 46, 34;
}

/* -- БАЗОВЫЕ СТИЛИ ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'PT Sans', system-ui, sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  line-height: 1.72;
  overflow-x: hidden;
}

img { max-width: 100%; }
a  { text-decoration: none; transition: var(--t); }

/* -- ТОПБАР ----------------------------------------------- */
.topbar {
  background: var(--blue);
  color: rgba(255,255,255,.82);
  font-size: .83rem;
  padding: .42rem 0;
  letter-spacing: .01em;
}
.topbar-left  { color: rgba(255,255,255,.82); }
.topbar-left strong { color: #fff; }
.topbar-link {
  color: rgba(255,255,255,.82);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.topbar-link:hover { color: #fff; }
.topbar-link i { color: rgba(255,255,255,.55); font-size: .88rem; }

/* Разделитель */
.topbar-sep {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,.22);
  flex-shrink: 0;
}

/* Поиск в топбаре */
.topbar-search { align-items: center; }

.topbar-search-wrap {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 20px;
  padding: .12rem .18rem .12rem .7rem;
  transition: border-color .2s;
}
.topbar-search-wrap:focus-within {
  border-color: rgba(255,255,255,.55);
}

.topbar-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: .8rem;
  width: 148px;
  padding: 0;
  line-height: 1;
}
.topbar-search-input::placeholder {
  color: rgba(255,255,255,.4);
}
/* Убираем крестик и иконку нативного <input type="search"> */
.topbar-search-input::-webkit-search-decoration,
.topbar-search-input::-webkit-search-cancel-button { display: none; }

.topbar-search-btn {
  flex-shrink: 0;
  background: rgba(255,255,255,.13);
  border: none;
  border-radius: 16px;
  color: rgba(255,255,255,.75);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  cursor: pointer;
  transition: background .2s, color .2s;
  padding: 0;
}
.topbar-search-btn:hover {
  background: rgba(255,255,255,.25);
  color: #fff;
}

/* -- НАВИГАЦИЯ -------------------------------------------- */
#mainNav {
  background: var(--white);
  padding: .2rem 0;
  box-shadow: 0 2px 16px rgba(30,56,94,.08);
  transition: padding .3s ease, box-shadow .3s ease;
  z-index: 1030;
}
#mainNav.scrolled {
  padding: .15rem 0;
  box-shadow: var(--shadow);
}

.navbar-logo {
  height: 60px;
  width: auto;
  display: block;
  transition: height .3s ease;
}
#mainNav.scrolled .navbar-logo { height: 46px; }

.navbar-toggler { border: none; color: var(--blue); }
.navbar-toggler:focus { box-shadow: none; }

.navbar-nav .nav-link {
  color: var(--blue);
  font-weight: 700;
  font-size: 1.1rem;
  padding: .44rem .7rem;
  border-radius: var(--r-sm);
  transition: var(--t);
  white-space: nowrap;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--red); background: rgba(178,46,34,.06); }

.navbar-nav .nav-link-current {
  display: block;
  color: var(--red);
  background: rgba(178,46,34,.06);
  font-weight: 700;
  font-size: 1.1rem;
  padding: .44rem .7rem;
  border-radius: var(--r-sm);
  white-space: nowrap;
  cursor: default;
}

.dropdown-menu {
  border: none;
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: .5rem;
  min-width: 230px;
}
.dropdown-item {
  border-radius: var(--r-sm);
  font-size: .9rem;
  color: var(--blue);
  padding: .46rem .85rem;
  transition: var(--t);
}
.dropdown-item:hover { background: var(--gray-bg); color: var(--red); }

.btn-nav-cta {
  background: var(--red);
  color: var(--white) !important;
  border-radius: 24px;
  font-weight: 700;
  font-size: .88rem;
  padding: .44rem 1.2rem;
  transition: var(--t);
}
.btn-nav-cta:hover {
  background: var(--red-d);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(178,46,34,.35);
}

/* Мобильное меню */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--white);
    border-radius: var(--r);
    box-shadow: var(--shadow-lg);
    padding: .75rem 1rem 1rem;
    margin-top: .5rem;
  }
  .navbar-nav .gap-lg-1 { gap: 0 !important; }
  .ms-lg-2 { margin-left: 0 !important; margin-top: .5rem; }
  .btn-nav-cta { display: inline-block; }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  #mainNav .btn-nav-cta {
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  #mainNav .btn-nav-cta i {
    margin-right: 0 !important;
    font-size: 1rem;
  }
}

/* -- ГЕРОЙ ------------------------------------------------ */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 5.5rem 0 4rem;
  background:
    linear-gradient(135deg,
      rgba(30,56,94,.9)  0%,
      rgba(30,56,94,.78) 55%,
      rgba(178,46,34,.5) 100%),
    url('/img/hero.webp')
    center / cover no-repeat;
}
/* Фолбэк: если изображение не загрузится — тёмно-синий фон */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blue);
  z-index: -1;
}

.hero-container { width: 100%; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  border-radius: 24px;
  padding: .32rem 1rem;
  margin-bottom: 1.2rem;
  backdrop-filter: blur(6px);
  letter-spacing: .02em;
}

.hero-title {
  font-size: clamp(1.85rem, 3.5vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero-accent { color: #f0b060; }

.hero-text {
  color: rgba(255,255,255,.87);
  font-size: 1.05rem;
  max-width: 510px;
  margin-bottom: 1.25rem;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  border-radius: 20px;
  padding: .3rem .9rem;
  backdrop-filter: blur(4px);
}

.btn-hero-primary {
  background: var(--red);
  color: #fff;
  border-radius: 28px;
  font-weight: 700;
  font-size: 1rem;
  padding: .72rem 1.7rem;
  transition: var(--t);
}
.btn-hero-primary:hover {
  background: var(--red-d);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(178,46,34,.42);
}
.btn-hero-outline {
  border: 2px solid rgba(255,255,255,.7);
  color: #fff;
  border-radius: 28px;
  font-weight: 700;
  font-size: 1rem;
  padding: .68rem 1.7rem;
  transition: var(--t);
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,.14);
  border-color: #fff;
  color: #fff;
}

/* Карточка формы в герое */
.hero-form-card {
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-form-header {
  background: var(--blue);
  color: #fff;
  padding: 1.25rem 1.75rem;
}
.hero-form-header h4 {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0 0 .2rem;
}
.hero-form-header p { margin: 0; opacity: .85; font-size: .88rem; }

.hero-form-body { padding: 1.6rem 1.75rem 1.75rem; }

/* -- ОБЩИЕ ЭЛЕМЕНТЫ ФОРМ ---------------------------------- */
.form-label { font-weight: 700; color: var(--blue); font-size: .88rem; margin-bottom: .35rem; }

.form-control {
  border-color: var(--gray-brd);
  border-radius: var(--r-sm) !important;
  font-size: .95rem;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,56,94,.13);
}
.input-group-text {
  background: var(--gray-bg);
  border-color: var(--gray-brd);
  color: var(--blue);
  border-right: none;
  border-radius: var(--r-sm) 0 0 var(--r-sm) !important;
}
.input-group .form-control {
  border-left: none;
  border-radius: 0 var(--r-sm) var(--r-sm) 0 !important;
}

.btn-form-submit {
  background: var(--blue);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: .97rem;
  padding: .72rem;
  transition: var(--t);
}
.btn-form-submit:hover {
  background: var(--blue-2);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(30,56,94,.3);
}

.form-privacy {
  font-size: .77rem;
  color: var(--muted);
  text-align: center;
  margin: .65rem 0 0;
}
.form-privacy a { color: var(--blue); }

.form-success-icon { font-size: 2.8rem; color: #2e9e60; }

/* -- СЕКЦИИ: ОБЩИЕ ---------------------------------------- */
.section-padding { padding: 5rem 0; }
.bg-gray { background: var(--gray-bg); }

.section-header { margin-bottom: 1rem; }
.section-title {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 700;
  color: var(--blue);
  margin-bottom: .6rem;
}
.section-line {
  width: 52px;
  height: 4px;
  background: var(--red);
  border-radius: 2px;
  margin: 0 auto .75rem;
}
.section-line--left  { margin-left: 0; }
.section-line--light { background: rgba(255,255,255,.45); }
.section-desc { color: var(--muted); font-size: 1.02rem; max-width: 570px; margin: 0 auto; }

/* -- ПРЕИМУЩЕСТВА ----------------------------------------- */
.adv-card {
  background: #fff;
  border-radius: var(--r);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid transparent;
  height: 100%;
  transition: var(--t);
  animation-delay: var(--delay, 0s);
}
.adv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--blue);
}

.adv-icon-wrap {
  width: 62px;
  height: 62px;
  background: rgba(30,56,94,.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.adv-icon-wrap--red   { background: rgba(178,46,34,.1); }
.adv-icon-wrap--light { background: rgba(43,73,127,.1); }
.adv-icon-wrap--dark  { background: rgba(30,56,94,.08); }

.adv-icon { font-size: 1.8rem; color: var(--blue); }
.adv-icon--red   { color: var(--red); }
.adv-icon--light { color: #2b497f; }

.adv-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: .55rem;
}
.adv-text { color: var(--muted); font-size: .92rem; margin: 0; }

/* -- СТАТИСТИКА / ОБ АСС. --------------------------------- */
.stats-section {
  background: var(--blue);
  position: relative;
  overflow: hidden;
}
.stats-bg-img {
  position: absolute;
  inset: 0;
  background:
    url('/img/bg-about.webp')
    center / cover no-repeat;
  opacity: .07;
  pointer-events: none;
}

.stat-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r);
  padding: 1.5rem 1rem 1.25rem;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: var(--t);
}
.stat-card:hover { background: rgba(255,255,255,.17); transform: translateY(-4px); }

.stat-val-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  line-height: 1;
  margin-bottom: .5rem;
}
.stat-num {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
}
.stat-static { font-size: 2.4rem; }
.stat-suffix {
  font-size: 1.35rem;
  font-weight: 700;
  color: rgba(255,255,255,.78);
}
.stat-lbl {
  color: rgba(255,255,255,.65);
  font-size: .83rem;
}

/* -- КАК ВСТУПИТЬ ----------------------------------------- */
.step-card {
  background: var(--gray-bg);
  border-radius: var(--r);
  padding: 2rem 1.5rem 1.75rem;
  position: relative;
  overflow: hidden;
  height: 100%;
  transition: var(--t);
}
.step-card:hover {
  background: #fff;
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.step-number {
  position: absolute;
  top: -14px;
  right: 14px;
  font-size: 5.5rem;
  font-weight: 700;
  color: rgba(30,56,94,.06);
  line-height: 1;
  user-select: none;
}
.step-icon {
  width: 54px;
  height: 54px;
  background: var(--blue);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.step-icon i { font-size: 1.55rem; color: #fff; }
.step-title {
  font-size: .97rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: .5rem;
}
.step-text { font-size: .9rem; color: var(--muted); margin: 0; }

/* Кнопки секции "Как вступить" */
.btn-primary-custom {
  background: var(--blue);
  color: #fff;
  border-radius: 24px;
  font-weight: 700;
  padding: .62rem 1.5rem;
  transition: var(--t);
}
.btn-primary-custom:hover {
  background: var(--blue-2);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30,56,94,.28);
}
.btn-outline-custom {
  border: 2px solid var(--blue);
  color: var(--blue);
  border-radius: 24px;
  font-weight: 700;
  padding: .58rem 1.5rem;
  transition: var(--t);
}
.btn-outline-custom:hover { background: var(--blue); color: #fff; }

/* -- ДОКУМЕНТЫ -------------------------------------------- */
.docs-cat-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: .9rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--gray-brd);
}
.docs-cat-title i { color: var(--blue); }

.docs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.docs-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--gray-brd);
  font-size: .92rem;
  color: var(--text);
}
.docs-list li:last-child { border-bottom: none; }
.docs-list li i { color: var(--red); flex-shrink: 0; font-size: 1rem; }

.docs-note {
  background: rgba(30,56,94,.07);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 1rem 1.25rem;
  font-size: .91rem;
  color: var(--blue);
}
.docs-note i { color: var(--blue); }

/* -- ВНУТРЕННИЕ СТРАНИЦЫ ----------------------------------- */
.inner-page-main {
  background: linear-gradient(180deg, rgba(30,56,94,.04) 0%, rgba(30,56,94,0) 140px);
}

.inner-page-head {
  padding: 2rem 0 2.25rem;
}

.inner-breadcrumb-wrap {
  margin-bottom: .95rem;
}

.inner-breadcrumb {
  font-size: .86rem;
}

.inner-breadcrumb .breadcrumb-item,
.inner-breadcrumb .breadcrumb-item.active {
  color: var(--muted);
}

.inner-breadcrumb .breadcrumb-item a {
  color: var(--blue);
}

.inner-breadcrumb .breadcrumb-item a:hover {
  color: var(--red);
}

.inner-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(113,128,150,.75);
}

.inner-page-title {
  margin-bottom: 0;
}

.inner-subnav {
  margin-bottom: 1.5rem;
  padding: 1.1rem 1.2rem 1.2rem;
  border: 1px solid var(--gray-brd);
  border-radius: var(--r);
  background: #fff;
}

.inner-subnav-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem .8rem;
  margin: 0;
  padding: 0;
}

.inner-subnav-list li {
  min-width: 0;
}

.inner-subnav-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  min-height: 44px;
  padding: .5rem .7rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  color: var(--blue);
  font-size: .95rem;
  font-weight: 700;
  background: rgba(244,246,250,.55);
  line-height: 1.35;
}

.inner-subnav-link i {
  flex-shrink: 0;
  color: rgba(39,73,122,.65);
  font-size: .8rem;
}

.inner-subnav-link span {
  min-width: 0;
  display: block;
}

.inner-subnav-link:hover {
  border-color: rgba(30,56,94,.26);
  color: var(--red);
  background: #fff;
}

.inner-subnav-link:hover i {
  color: var(--red);
}

.inner-subnav-link.is-active {
  border-color: rgba(30,56,94,.32);
  background: rgba(30,56,94,.08);
}

.inner-subnav-link.is-active i,
.inner-subnav-link.is-active span {
  color: var(--blue);
}

.inner-content-block {
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--gray-brd);
  border-radius: var(--r);
  background: #fff;
  box-shadow: 0 2px 14px rgba(30,56,94,.06);
}

.inner-content-block p:last-child {
  margin-bottom: 0;
}

/* Ссылки в тексте страницы - подчеркивание как признак ссылки */
.content-item a:not(.d-block):not(.btn) { /* .d-block - обертки картинок из ShowContent */
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  text-decoration-color: rgba(27,95,168,.4);
}
.content-item a:not(.d-block):not(.btn):hover {
  text-decoration-color: currentColor;
}

.inner-docs-block,
.inner-news-block {
  padding: 1.4rem 1.4rem 1.2rem;
  border: 1px solid var(--gray-brd);
  border-radius: var(--r);
  background: #fff;
}

.docs-list a {
  color: var(--blue);
  font-weight: 700;
}

.docs-list a:hover {
  color: var(--red);
}

.inner-news-list {
  display: grid;
  gap: .9rem;
}

.inner-news-item {
  padding: 1rem 1rem .95rem;
  border: 1px solid var(--gray-brd);
  border-radius: var(--r-sm);
  background: rgba(244,246,250,.55);
}

.inner-news-date {
  display: inline-flex;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: .3rem;
}

.inner-news-title {
  font-size: 1.03rem;
  line-height: 1.35;
  margin-bottom: .35rem;
}

.inner-news-title a {
  color: var(--blue);
}

.inner-news-title a:hover {
  color: var(--red);
}

.inner-news-excerpt {
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.55;
}

/* -- ФОРМА ЗАЯВКИ ----------------------------------------- */
.application-section {
  position: relative;
  background:
    linear-gradient(rgba(30,56,94,.9), rgba(30,56,94,.93)),
    url('/img/application-bg.jpg') center / cover no-repeat;
}
/* Фолбэк */
.application-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blue);
  z-index: 0;
}
.application-section .container { z-index: 1; }

.application-card {
  background: #fff;
  border-radius: var(--r);
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-lg);
}
.application-card .section-title  { text-align: center; }
.application-card .section-line   { margin: 0 auto .75rem; }
.application-card .section-desc   { text-align: center; }

/* -- ПОДВАЛ ----------------------------------------------- */
footer.footer,
.footer {
  background-color: #0e1d33 !important;
  color: rgba(255,255,255,.68);
}

.footer-top {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-bottom {
  padding: 1rem 0;
  font-size: .82rem;
  color: rgba(255,255,255,.38);
}

/* Логотип в подвале — перекрашиваем в белый через CSS-фильтр */
.footer-logo {
  height: 56px;
  width: auto;
  display: block;
  margin-bottom: .9rem;
  filter: brightness(0) invert(1);
}

.footer-brand-name {
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .9rem;
}

.footer-desc {
  color: rgba(255,255,255,.5);
  font-size: .86rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  transition: color .2s;
}
a.footer-contact-item:hover { color: #fff; }
.footer-contact-item i {
  color: var(--red);
  flex-shrink: 0;
  margin-top: .18rem;
  font-size: .95rem;
}

/* Заголовки колонок */
.footer-heading {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.35);
  margin-bottom: .85rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

/* Ссылка в заголовке колонки */
.footer-heading a {
  transition: color .2s;
}
.footer-heading a:hover {
  color: rgba(255,255,255,.85);
}

/* Навигационные ссылки */
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav li { margin-bottom: 0; }
.footer-nav a {
  display: block;
  color: rgba(255,255,255,.62);
  font-size: .9rem;
  padding: .28rem 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: color .2s, padding-left .2s;
}
.footer-nav li:last-child a { border-bottom: none; }
.footer-nav a:hover {
  color: #fff;
  padding-left: .45rem;
}

.btn-footer-cta {
  display: inline-flex;
  align-items: center;
  background: var(--red);
  color: #fff !important;
  border-radius: 6px;
  font-weight: 700;
  font-size: .84rem;
  padding: .5rem 1rem;
  margin-top: .85rem;
  transition: var(--t);
}
.btn-footer-cta:hover {
  background: var(--red-d);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(178,46,34,.35);
}

.footer-bottom-link {
  color: rgba(255,255,255,.38);
  font-size: .82rem;
  transition: color .2s;
}
.footer-bottom-link:hover { color: rgba(255,255,255,.75); }

/* -- КНОПКА «НАВЕРХ» -------------------------------------- */
.btn-back-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s, transform .3s, background .2s;
  z-index: 998;
  cursor: pointer;
}
.btn-back-top.visible  { opacity: 1; transform: translateY(0); }
.btn-back-top:hover    { background: var(--blue-2); transform: translateY(-2px); }

/* -- АНИМАЦИИ --------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease var(--delay, 0s), transform .6s ease var(--delay, 0s);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* -- АДАПТИВНОСТЬ ----------------------------------------- */
@media (max-width: 991.98px) {
  .hero-section { padding: 4.5rem 0 3.5rem; min-height: auto; }
}

@media (max-width: 767.98px) {
  .section-padding  { padding: 3.5rem 0; }
  .hero-title       { font-size: 1.75rem; }
  .stat-num         { font-size: 2rem; }
  .stat-static      { font-size: 1.45rem; }
  .application-card { padding: 1.75rem 1.25rem; }
  .btn-back-top     { bottom: 1.1rem; right: 1.1rem; }
  .inner-page-head  { padding: 1.6rem 0 1.8rem; }
  .inner-subnav,
  .inner-content-block,
  .inner-docs-block,
  .inner-news-block { padding: 1.2rem 1rem 1rem; }
  .inner-subnav-list  { grid-template-columns: 1fr; gap: .45rem; }
  .inner-subnav-link  { min-height: 40px; padding: .5rem .6rem; }
  .inner-news-title  { font-size: .98rem; }
}

@media (max-width: 575.98px) {
  .hero-badge { font-size: .74rem; }
}
