
/* ---------- шрифты (self-hosted, без Google Fonts) ---------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-cyrillic-400-normal.woff2') format('woff2'),
       url('fonts/inter-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-cyrillic-500-normal.woff2') format('woff2'),
       url('fonts/inter-latin-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-cyrillic-600-normal.woff2') format('woff2'),
       url('fonts/inter-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-cyrillic-400-normal.woff2') format('woff2'),
       url('fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-cyrillic-500-normal.woff2') format('woff2'),
       url('fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-cyrillic-600-normal.woff2') format('woff2'),
       url('fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-cyrillic-700-normal.woff2') format('woff2'),
       url('fonts/ibm-plex-sans-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-cyrillic-500-normal.woff2') format('woff2'),
       url('fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-cyrillic-600-normal.woff2') format('woff2'),
       url('fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2');
}
/* ==========================================================================
   ПЛАТИЗ КОНСАЛТИНГ — стили сайта
   Структура файла:
   1. Переменные и сброс
   2. Типографика и общие классы
   3. Кнопки
   4. Анимация появления при скролле
   5. Шапка и меню (десктоп + мобильное)
   6. Первый экран (hero)
   7. Услуги
   8. О компании (кратко)
   9. Кейсы + модальное окно
   10. Отзывы
   11. Этапы работы
   12. Форма заявки
   13. Футер
   14. Плавающие кнопки (наверх, чат)
   ========================================================================== */

/* ---------- 1. Переменные и сброс ---------- */

:root {
  --navy-deep: #0E2A47;
  --navy-mid: #163C61;
  --graphite: #1A2433;
  --gray: #5F7085;
  --gray-light: #98A5B5;
  --bg: #F7F9FC;
  --bg-alt: #EEF3F8;
  --white: #FFFFFF;
  --line: #E3EAF3;
  --line-dark: #1C3F62;
  --accent: #1C4E80;
  --accent-light: #B7C8DB;
  --accent-icon: #3A6EA5;
  --accent-silver: #8CA4BF;
  --gold: #1C4E80;
  --gold-dark: #153F69;
  --gold-light: #B7C8DB;
  --radius: 10px;
  --radius-sm: 6px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  color: var(--graphite);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---------- 2. Типографика и общие классы ---------- */

h1,
h2,
h3,
h4 {
  font-family: 'IBM Plex Sans', -apple-system, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy-deep);
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: 96px 0;
  scroll-margin-top: 84px;
}

.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}

.section-head h2 {
  font-size: 32px;
  line-height: 1.22;
}

.section-head p {
  font-size: 15px;
  color: var(--gray);
  margin-top: 14px;
}

.placeholder-note {
  font-size: 12px;
  color: var(--gray-light);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 12px;
}

@media (max-width: 768px) {
  section {
    padding: 64px 0;
  }
  .wrap {
    padding: 0 20px;
  }
}

/* ---------- 3. Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.btn-gold {
  background: var(--gold);
  color: #FFFFFF;
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(28, 78, 128, .28);
}

.btn-navy {
  background: var(--navy-deep);
  color: var(--white);
  border-color: var(--navy-deep);
}

.btn-navy:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(14, 42, 71, .18);
}

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: #295480;
}

.btn-ghost-light:hover {
  background: #102B48;
}

.btn-outline {
  background: transparent;
  color: var(--navy-deep);
  border-color: var(--line-dark);
}

.btn-outline:hover {
  background: var(--navy-deep);
  color: var(--white);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 18px 38px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* ---------- 4. Анимация появления при скролле ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- 5. Шапка и меню ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  flex-shrink: 0;
  line-height: 0;
}

.logo-img {
  height: 54px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--graphite);
  padding: 4px 0;
  transition: color .2s ease;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--accent);
}

.nav-item-dropdown {
  position: relative;
}

.nav-item-dropdown > a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-item-dropdown > a svg {
  width: 11px;
  height: 11px;
  transition: transform .2s ease;
}

.nav-item-dropdown:hover > a svg {
  transform: rotate(180deg);
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: -16px;
  padding-top: 14px;
  width: 300px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.nav-item-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-inner {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: 0 20px 40px rgba(14, 42, 71, .12);
}

.category-row {
  position: relative;
}

.category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-deep);
}

.category-link svg {
  width: 13px;
  height: 13px;
  color: var(--gray-light);
  flex-shrink: 0;
  transition: transform .2s ease;
}

.category-row:hover .category-link {
  background: var(--bg);
  color: var(--accent);
}

.category-row:hover .category-link svg {
  transform: translateX(3px);
  color: var(--accent);
}

.dropdown-flyout {
  position: absolute;
  left: 100%;
  top: -8px;
  padding-left: 10px;
  width: 270px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.category-row:hover .dropdown-flyout {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.dropdown-flyout-inner {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: 0 20px 40px rgba(14, 42, 71, .12);
}

.dropdown-flyout-inner a {
  display: block;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--graphite);
}

.dropdown-flyout-inner a:hover {
  background: var(--bg);
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.phone {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-deep);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy-deep);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

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

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

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

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 20px 20px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 13px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--graphite);
  border-bottom: 1px solid var(--line);
}

.mobile-nav .mobile-phone {
  font-weight: 600;
  color: var(--navy-deep);
}

.mobile-nav .btn {
  margin-top: 14px;
}

.mobile-services {
  border-bottom: 1px solid var(--line);
}

.mobile-services-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.mobile-services-toggle svg {
  width: 12px;
  height: 12px;
  transition: transform .2s ease;
}

.mobile-services.open > .mobile-services-toggle svg {
  transform: rotate(180deg);
}

.mobile-services-panel {
  display: none;
  padding-bottom: 10px;
}

.mobile-services.open > .mobile-services-panel {
  display: block;
}

.mobile-services-panel > a {
  display: block;
  padding: 10px 0 10px 14px;
  font-size: 14px;
  color: var(--gray);
  border-bottom: none;
}

.mobile-services-nested {
  border-bottom: none;
  margin-left: 14px;
}

.mobile-services-nested > .mobile-services-toggle {
  padding: 11px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-deep);
}

.mobile-services-nested .mobile-services-panel > a {
  padding-left: 14px;
  font-size: 13.5px;
}

@media (max-width: 940px) {
  .main-nav {
    display: none;
  }
  .phone {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 560px) {
  .header-actions .btn {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 20px;
  }
  .logo-img {
    height: 40px;
  }
}

/* ---------- 6. Первый экран (hero) ---------- */

.hero {
  position: relative;
  background-image:
    linear-gradient(90deg, rgba(14, 42, 71, .88) 0%, rgba(14, 42, 71, .55) 45%, rgba(14, 42, 71, .18) 75%),
    url("../images/hero-columns.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 90px 0 100px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .hero {
    background-image:
      linear-gradient(180deg, rgba(14, 42, 71, .78) 0%, rgba(14, 42, 71, .68) 40%, rgba(14, 42, 71, .92) 100%),
      url("../images/hero-columns.jpg");
    background-position: 85% center;
    padding: 76px 0 64px;
  }

  .hero-text {
    background: rgba(9, 26, 45, .82);
    border-radius: 16px;
    padding: 24px 20px;
    margin: 0 -8px;
  }
}

.hero-mini-case {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(21, 63, 105, .55);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 13.5px;
  font-weight: 500;
  color: #D4E2EE;
  transition: background .2s ease, border-color .2s ease;
}

.hero-mini-case svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--gold);
}

.hero-mini-case .arrow {
  color: #D4E2EE;
  transition: transform .2s ease;
}

.hero-mini-case:hover {
  background: rgba(21, 63, 105, .8);
  border-color: var(--gold);
}

.hero-mini-case:hover .arrow {
  transform: translateX(3px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .05;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-statue {
  position: absolute;
  right: 1%;
  bottom: -24px;
  height: 640px;
  width: auto;
  z-index: 0;
  opacity: .95;
  pointer-events: none;
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, .35));
}

@media (max-width: 1180px) {
  .hero-statue {
    height: 520px;
    right: -2%;
  }
}

@media (max-width: 900px) {
  .hero-statue {
    display: none;
  }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-text {
  max-width: 640px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-light);
  border: 1px solid #153F69;
  background: rgba(28, 78, 128, .12);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.hero-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.hero h1 {
  font-size: 42px;
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}

.hero--service h1 {
  font-size: 58px;
}

@media (max-width: 768px) {
  .hero--service h1 {
    font-size: 36px;
  }
}

.hero p.lead {
  font-size: 17px;
  color: #E4EEF7;
  max-width: 560px;
  margin-bottom: 32px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 36px;
}

.hero-fact {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: #E4EEF7;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

.hero-fact svg {
  width: 17px;
  height: 17px;
  color: var(--accent-light);
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-case-card {
  display: block;
  position: relative;
  background: #10304F;
  border: 1px solid #1C3F62;
  border-radius: 18px;
  padding: 32px;
  cursor: pointer;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}

.hero-case-card:hover {
  border-color: var(--gold);
  background: #123154;
  transform: translateY(-3px);
}

.hero-case-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 16px;
}

.hero-case-card h3 {
  color: var(--white);
  font-size: 20px;
  line-height: 1.32;
  margin-bottom: 14px;
}

.hero-case-card p {
  font-size: 14px;
  color: #B8CEE0;
  margin-bottom: 24px;
}

.hero-case-metric {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-top: 1px solid #1C3F62;
  padding-top: 20px;
  margin-bottom: 20px;
}

.hero-case-metric .n {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 30px;
  font-weight: 600;
  color: var(--accent-light);
}

.hero-case-metric .l {
  font-size: 13px;
  color: #8FAAC5;
}

.hero-case-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-light);
}

.hero-case-open svg {
  width: 13px;
  height: 13px;
  transition: transform .2s ease;
}

.hero-case-card:hover .hero-case-open svg {
  transform: translateX(3px);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 30px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

/* ---------- 7. Услуги ---------- */

.services {
  background: var(--bg);
}

.tabs {
  display: flex;
  gap: 8px 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 14px 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.tab-btn.active {
  color: var(--navy-deep);
  border-bottom-color: var(--gold);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

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

@media (max-width: 700px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  display: block;
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(14, 42, 71, .08);
}

.service-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
}

.service-icon svg {
  width: 30px;
  height: 30px;
}

.service-card h3 {
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray);
  margin-bottom: 0;
}

/* ---------- 8. О компании (кратко) ---------- */

.about-brief {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.about-brief-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
}

.about-stat .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 28px;
  font-weight: 600;
  color: var(--navy-deep);
  display: block;
}

.about-stat .label {
  font-size: 13px;
  color: var(--gray);
  margin-top: 6px;
}

.about-brief-text h2 {
  font-size: 28px;
  line-height: 1.28;
  margin-bottom: 18px;
}

.about-brief-text p {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 24px;
  max-width: 520px;
}

@media (max-width: 900px) {
  .about-brief {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ---------- 9. Кейсы + модальное окно ---------- */

.cases {
  background: var(--bg);
}

.cases .eyebrow {
  color: var(--accent);
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.case-card {
  display: block;
  position: relative;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  background: var(--white);
  cursor: pointer;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.case-card:hover {
  border-color: var(--accent);
  box-shadow: 0 16px 32px rgba(14, 42, 71, .08);
  transform: translateY(-3px);
}

.case-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
}

.case-icon svg {
  width: 28px;
  height: 28px;
}

.case-tag {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gray-light);
  margin-bottom: 12px;
}

.case-card h3 {
  color: var(--navy-deep);
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.case-card p {
  font-size: 13.5px;
  color: var(--gray);
  margin-bottom: 18px;
}

.case-metric {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.case-metric .n {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 24px;
  font-weight: 600;
  color: var(--navy-deep);
}

.case-metric .l {
  font-size: 12.5px;
  color: var(--gray-light);
}

.case-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
}

.case-open svg {
  width: 12px;
  height: 12px;
  transition: transform .2s ease;
}

.case-card:hover .case-open svg {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .case-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 10. Отзывы ---------- */

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.review-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.review-card .stars {
  color: #C9A227;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review-card p {
  font-size: 14.5px;
  color: var(--gray);
  margin-bottom: 14px;
}

.review-card .who {
  font-size: 12.5px;
  color: var(--gray-light);
}

.reviews-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.reviews-cta p {
  font-size: 13px;
  color: var(--gray-light);
  max-width: 380px;
}

@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 11. Этапы работы ---------- */

.steps-wrap {
  max-width: 760px;
}

.step-row {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding-bottom: 40px;
}

.step-row:last-child {
  padding-bottom: 0;
}

.step-line {
  position: absolute;
  left: 23px;
  top: 50px;
  bottom: -6px;
  width: 1px;
  background: var(--line);
  overflow: hidden;
}

.step-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .7s cubic-bezier(.22, .61, .36, 1) .25s;
}

.step-row.in .step-line::after {
  transform: scaleY(1);
}

.step-row:last-child .step-line {
  display: none;
}

.step-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-deep);
  z-index: 1;
  transition: all .4s ease;
}

.step-row.in .step-circle {
  border-color: var(--gold);
  background: var(--gold);
  color: #FFFFFF;
  transform: scale(1.06);
}

.step-content h3 {
  font-size: 18px;
  padding-top: 8px;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 14.5px;
  color: var(--gray);
  max-width: 480px;
}

.step-row:nth-child(1) { transition-delay: 0ms; }
.step-row:nth-child(2) { transition-delay: 90ms; }
.step-row:nth-child(3) { transition-delay: 180ms; }
.step-row:nth-child(4) { transition-delay: 270ms; }
.step-row:nth-child(5) { transition-delay: 360ms; }

/* ---------- 12. Форма заявки ---------- */

.contact-section {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.contact-text h2 {
  font-size: 30px;
  line-height: 1.26;
  margin-bottom: 16px;
}

.contact-text p {
  font-size: 15px;
  color: var(--gray);
  max-width: 440px;
  margin-bottom: 24px;
}

.contact-fact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-fact {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--graphite);
}

.contact-fact svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.lead-form {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: 8px;
}

.form-row .required {
  color: var(--accent);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--graphite);
  background: var(--white);
}

.form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F7085' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 38px;
  cursor: pointer;
}

.form-file {
  position: relative;
}

.form-file input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.form-file-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px dashed var(--line-dark);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--gray);
  background: var(--bg);
  transition: border-color .2s ease, background .2s ease;
}

.form-file-box svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.form-file-box .form-file-name {
  color: var(--navy-deep);
  font-weight: 600;
}

.form-file:has(input:focus) .form-file-box,
.form-file.has-file .form-file-box {
  border-color: var(--accent);
  border-style: solid;
  background: var(--white);
}

.form-row textarea {
  min-height: 96px;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-consent {
  font-size: 12px;
  color: var(--gray-light);
  margin-top: 14px;
  line-height: 1.5;
}

.form-consent a {
  color: var(--accent);
  text-decoration: underline;
}

.form-thanks {
  display: none;
  text-align: center;
  padding: 30px 10px;
}

.form-thanks.show {
  display: block;
}

.lead-form.submitted .form-fields {
  display: none;
}

.form-thanks-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #DCE8F5;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.form-thanks-icon svg {
  width: 24px;
  height: 24px;
}

.form-thanks h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.form-thanks p {
  font-size: 14px;
  color: var(--gray);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ---------- 13. Футер ---------- */

footer {
  position: relative;
  background: var(--navy-deep);
  color: #8FAAC5;
  padding: 56px 0 28px;
  overflow: hidden;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about p {
  font-size: 13px;
  max-width: 280px;
  margin-top: 14px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: #8FAAC5;
  margin-bottom: 10px;
  transition: color .2s ease;
}

.footer-col a:hover {
  color: var(--accent-light);
}

.footer-map {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  border: 1px solid #1D3555;
  background: #0C2440;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #6C89A5;
  font-size: 12px;
  text-align: center;
  padding: 16px;
}

.footer-map svg {
  width: 22px;
  height: 22px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #1D3555;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}

.footer-social a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer-social a:hover {
  border-color: var(--accent-light);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  border-top: 1px solid #112E4C;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* ---------- 14. Плавающие кнопки ---------- */

.float-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(14, 42, 71, .22);
  transition: transform .2s ease, box-shadow .2s ease;
}

.float-btn:hover {
  transform: translateY(-3px);
}

.float-btn svg {
  width: 20px;
  height: 20px;
}

.float-chat {
  background: var(--gold);
  color: var(--navy-deep);
}

.float-top {
  background: var(--navy-deep);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.float-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- 9b. Блог ---------- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.blog-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(14, 42, 71, .08);
}

.article-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #E9EDF1 0px, #E9EDF1 11px, #DDE4EA 11px, #DDE4EA 12px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-thumb svg {
  width: 30px;
  height: 30px;
  opacity: .6;
}

.blog-card .blog-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin: 20px 24px 0;
}

.blog-card h3 {
  font-size: 17px;
  line-height: 1.35;
  margin: 12px 24px 10px;
}

.blog-card p {
  font-size: 13.5px;
  color: var(--gray);
  margin: 0 24px 20px;
  flex-grow: 1;
}

.blog-meta {
  border-top: 1px solid var(--line);
  padding: 16px 24px;
}

.blog-date {
  font-size: 12.5px;
  color: var(--gray-light);
}

.blog-cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

@media (max-width: 940px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   15. Премиальные карточки (УТП + новый слайд кейсов)
   Тёмный элегантный стиль по референсу — иконка, заголовок, текст,
   один вариант карточки со свечением для визуального акцента.
   ========================================================================== */

.premium-section {
  position: relative;
  background:
    radial-gradient(ellipse 900px 500px at 90% 0%, rgba(28, 78, 128, .10) 0%, rgba(28, 78, 128, 0) 60%),
    radial-gradient(ellipse 800px 500px at 0% 100%, rgba(183, 200, 219, .09) 0%, rgba(183, 200, 219, 0) 60%),
    var(--navy-deep);
  color: var(--white);
  overflow: hidden;
}

.premium-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .05;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.premium-section .wrap {
  position: relative;
  z-index: 1;
}

.premium-section .eyebrow {
  color: var(--accent-light);
}

.premium-section .section-head h2 {
  color: var(--white);
}

.premium-section .section-head p {
  color: #9FB8D0;
}

.premium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.premium-card {
  display: block;
  position: relative;
  background:
    radial-gradient(ellipse 480px 380px at 85% -10%, rgba(28, 78, 128, .24) 0%, rgba(28, 78, 128, 0) 60%),
    radial-gradient(ellipse 440px 380px at 5% 110%, rgba(183, 200, 219, .20) 0%, rgba(183, 200, 219, 0) 60%),
    linear-gradient(160deg, #113050 0%, #081527 100%);
  border: 1px solid #1F3D5D;
  border-radius: 20px;
  padding: 32px;
  overflow: hidden;
  transition: border-color .3s ease, transform .3s ease;
}

.premium-card:hover {
  border-color: #2E5678;
  transform: translateY(-4px);
}

.premium-card--glow {
  background:
    radial-gradient(ellipse 550px 440px at 80% -10%, rgba(28, 78, 128, .40) 0%, rgba(28, 78, 128, 0) 60%),
    radial-gradient(ellipse 440px 380px at 8% 110%, rgba(183, 200, 219, .18) 0%, rgba(183, 200, 219, 0) 55%),
    linear-gradient(160deg, #113050 0%, #081527 100%);
  border-color: #153F69;
}

.premium-card--glow:hover {
  border-color: var(--gold);
}

.premium-card--glow:hover {
  border-color: var(--gold);
}

.premium-icon {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  margin-bottom: 22px;
}

.premium-icon svg {
  width: 32px;
  height: 32px;
}

.premium-card h3 {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.premium-card p {
  position: relative;
  z-index: 1;
  font-size: 14px;
  color: #A9C1D3;
  margin-bottom: 0;
}

/* ---- вариант карточки-кейса (кликабельная, с тегом/метрикой) ---- */

.premium-card--case {
  cursor: pointer;
  padding-right: 60px;
}

.premium-card--case p {
  margin-bottom: 22px;
}

.premium-case-tag {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 14px;
}

.premium-case-metric {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.premium-case-metric .n {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 24px;
  font-weight: 600;
  color: var(--accent-light);
}

.premium-case-metric .l {
  font-size: 12.5px;
  color: #8FAAC5;
}

.premium-case-open {
  position: absolute;
  z-index: 1;
  top: 32px;
  right: 28px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #1F3D5D;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8FAAC5;
  transition: all .25s ease;
}

.premium-case-open svg {
  width: 14px;
  height: 14px;
}

.premium-card--case:hover .premium-case-open {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
  transform: translate(2px, -2px);
}

@media (max-width: 940px) {
  .premium-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .premium-grid {
    grid-template-columns: 1fr;
  }
  .premium-card--case {
    padding-right: 32px;
  }
  .premium-case-open {
    top: auto;
    bottom: 28px;
    right: 28px;
  }
}

/* ==========================================================================
   16. Страницы отдельных кейсов
   ========================================================================== */

.case-page-hero {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 28px 0 44px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-light);
  margin-bottom: 22px;
}

.breadcrumbs a {
  color: var(--gray-light);
  transition: color .2s ease;
}

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

.breadcrumbs .sep {
  color: var(--line);
}

.breadcrumbs .current {
  color: var(--gray);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
}

.case-page-hero .eyebrow {
  margin-bottom: 14px;
}

.case-page-hero h1 {
  font-size: 32px;
  line-height: 1.26;
  max-width: 760px;
}

@media (max-width: 768px) {
  .case-page-hero h1 {
    font-size: 25px;
  }
}

.case-detail-section {
  padding: 64px 0;
}

.case-detail-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  align-items: start;
}

.case-content p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--graphite);
  margin-bottom: 18px;
}

.case-content p.case-lead {
  font-size: 17px;
  font-weight: 500;
  color: var(--navy-deep);
  border-left: 3px solid var(--accent);
  padding-left: 18px;
}

.case-content h2 {
  font-size: 20px;
  margin: 36px 0 14px;
}

.case-content h2:first-of-type {
  margin-top: 0;
}

.case-content ul {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.case-content ul li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--graphite);
  margin-bottom: 12px;
}

.case-content ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.case-result-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-top: 28px;
}

.case-result-item .n {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 24px;
  font-weight: 600;
  color: var(--navy-deep);
}

.case-result-item .l {
  font-size: 12.5px;
  color: var(--gray);
  margin-top: 3px;
}

.case-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.case-back-link svg {
  width: 15px;
  height: 15px;
}

.case-sidebar {
  position: sticky;
  top: 96px;
}

.case-sidebar-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}

.case-sidebar-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.case-sidebar-card > p {
  font-size: 13.5px;
  color: var(--gray);
  margin-bottom: 22px;
}

@media (max-width: 940px) {
  .case-detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .case-sidebar {
    position: static;
  }
}

/* ---------- блок «кому и чем помогаем» (страница «Военное право») ---------- */

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.help-col h3 {
  font-size: 17px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold);
}

.help-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.help-col li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray);
  margin-bottom: 18px;
}

.help-col li strong {
  display: block;
  font-size: 14.5px;
  color: var(--navy-deep);
  margin-bottom: 3px;
}

@media (max-width: 900px) {
  .help-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.messenger-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-top: 48px;
}

.messenger-cta strong {
  display: block;
  font-size: 15px;
  color: var(--navy-deep);
  margin-bottom: 2px;
}

.messenger-cta span {
  font-size: 13.5px;
  color: var(--gray);
}

/* ---------- команда (страница «О компании») ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  background: #E3E7EA;
  margin-bottom: 16px;
}

.team-card h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.team-role {
  font-size: 12.5px;
  color: var(--gray);
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- декоративная карточка справа в hero страниц услуг ---------- */

.hero--service .hero-grid {
  align-items: center;
}

.hero-side-card {
  position: relative;
  background: #10304F;
  border: 1px solid #1C3F62;
  border-radius: 22px;
  padding: 44px 32px;
  text-align: center;
  overflow: hidden;
}

.hero-side-card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220px;
  height: 220px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(28, 78, 128, .16) 0%, rgba(28, 78, 128, 0) 70%);
  pointer-events: none;
}

.hsc-pulse {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: #B7C8DB;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 36px;
}

.hsc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: hsc-pulse-anim 2.2s ease-in-out infinite;
}

@keyframes hsc-pulse-anim {
  0%, 100% { box-shadow: 0 0 0 0 rgba(28, 78, 128, .55); }
  50% { box-shadow: 0 0 0 9px rgba(28, 78, 128, 0); }
}

.hsc-figure {
  position: relative;
  z-index: 1;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 104px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, .1);
  margin-bottom: 12px;
}

.hsc-caption {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: #6C89A5;
  margin-bottom: 30px;
}

.hsc-rotator {
  position: relative;
  z-index: 1;
  height: 26px;
}

.hsc-line {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
  color: #D4E2EE;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .5s ease, transform .5s ease;
}

.hsc-line.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-side-card {
    padding: 36px 28px;
  }
  .hsc-figure {
    font-size: 84px;
  }
}

/* ---------- центрированный hero страниц услуг и кейсов ---------- */

.hero-centered {
  text-align: center;
}

.hero-centered .hero-crumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 36px;
}

.hero-centered .hero-crumb .crumb-line {
  width: 44px;
  height: 1px;
  background: rgba(28, 78, 128, .4);
}

.hero-centered .hero-crumb .crumb-text {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #B7C8DB;
}

.hero-centered .hero-crumb .crumb-text a {
  color: #B7C8DB;
  transition: color .2s ease;
}

.hero-centered .hero-crumb .crumb-text a:hover {
  color: var(--white);
}

.hero-centered h1 {
  max-width: 840px;
  margin: 0 auto 22px;
}

.hero-centered p.lead {
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-centered .hero-actions {
  justify-content: center;
  margin-bottom: 26px;
}

.hero-actions .btn svg {
  width: 16px;
  height: 16px;
}

.hero-centered .hero-trust-line {
  font-size: 13.5px;
  font-weight: 500;
  color: #F0F5FA;
}

.hero-centered .hero-trust-line strong {
  color: #FFFFFF;
  font-weight: 700;
}

@media (max-width: 768px) {
  .hero-centered .hero-crumb .crumb-line {
    display: none;
  }
  .hero-centered .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---------- центрированный hero страниц услуг и кейсов ---------- */

.hero--centered .wrap {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-crumb-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 32px;
}

.hero-crumb-line .crumb-dash {
  width: 32px;
  height: 1px;
  background: #153F69;
}

.hero-crumb-line a,
.hero-crumb-line .crumb-current {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-light);
  transition: color .2s ease;
}

.hero-crumb-line a:hover {
  color: var(--gold);
}

.hero-crumb-line .crumb-dot {
  color: #153F69;
  font-size: 12px;
}

.hero--centered .lead {
  margin-left: auto;
  margin-right: auto;
}

.hero--centered .hero-actions {
  justify-content: center;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-icon svg {
  width: 16px;
  height: 16px;
}

.btn-arrow svg {
  width: 15px;
  height: 15px;
  transition: transform .2s ease;
}

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

.hero-trust-line {
  margin-top: 30px;
  font-size: 13px;
  font-weight: 500;
  color: #F0F5FA;
}

.hero-trust-line strong {
  color: var(--gold-light);
  font-weight: 600;
}

@media (max-width: 600px) {
  .hero-crumb-line {
    flex-wrap: wrap;
    gap: 8px;
  }
  .hero-crumb-line .crumb-dash {
    display: none;
  }
  .hero--centered .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-trust-line {
    line-height: 1.6;
  }
}

/* ---------- фотографичный hero для страниц кейсов ---------- */

.hero-photo {
  background-image:
    linear-gradient(90deg, rgba(14, 42, 71, .92) 0%, rgba(14, 42, 71, .7) 42%, rgba(14, 42, 71, .32) 72%),
    var(--hero-photo, none),
    url("../images/case-hero-bg.jpg");
  background-size: cover;
  background-position: var(--hero-photo-pos-desktop, center);
  background-repeat: no-repeat;
  text-align: left;
  padding: 100px 0 90px;
}

@media (max-width: 900px) {
  .hero-photo {
    background-image:
      linear-gradient(180deg, rgba(14, 42, 71, .88) 0%, rgba(14, 42, 71, .76) 45%, rgba(14, 42, 71, .4) 100%),
      var(--hero-photo, none),
      url("../images/case-hero-bg.jpg");
    background-size: cover, var(--hero-photo-size-mobile, cover), cover;
    background-position: var(--hero-photo-pos-mobile, 85% 25%);
    padding: 76px 0 64px;
  }
}

.hero-photo::before {
  display: none;
}

.hero-photo .hero-crumb {
  justify-content: flex-start;
  margin-bottom: 28px;
}

.hero-photo .hero-crumb .crumb-line {
  display: none;
}

.hero-photo h1 {
  margin: 0 0 22px;
  max-width: 720px;
  text-align: left;
}

.hero-photo p.lead {
  margin: 0 0 36px;
  text-align: left;
}

.hero-photo .hero-trust-line {
  text-align: left;
}

.hero-photo .hero-actions {
  justify-content: flex-start;
}

.hero-photo .btn-pill,
.hero-photo .hero-actions .btn {
  border-radius: 999px;
}

.hero-photo .btn-pill {
  background: #2B6CB0;
  border: 1px solid #2B6CB0;
  color: var(--white);
}

.hero-photo .btn-pill:hover {
  background: #3A7BC0;
  border-color: #3A7BC0;
  color: var(--white);
}

.hero-photo .btn-outline {
  border-color: #3A6EA5;
  color: var(--white);
  background: #3A6EA5;
}

.hero-photo .btn-outline:hover {
  background: #4A7EB5;
  border-color: #4A7EB5;
}

@media (max-width: 768px) {
  .hero-photo {
    padding: 72px 0 64px;
  }
  .hero-photo h1 {
    font-size: 34px;
  }
}

/* ---------- список тем военного права (страница «Военное право») ---------- */

.topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.topic-list-item {
  border-bottom: 1px solid var(--line);
}

.topic-list-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.topic-list-num {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-dark);
}

.topic-list-head h3 {
  flex: 1;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy-deep);
}

.topic-list-chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--gray-light);
  transition: transform .3s ease, color .2s ease;
}

.topic-list-item.open .topic-list-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.topic-list-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}

.topic-list-item.open .topic-list-body {
  grid-template-rows: 1fr;
}

.topic-list-body-inner {
  overflow: hidden;
}

.topic-list-body p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray);
  padding: 0 0 22px;
  max-width: 720px;
}

@media (max-width: 560px) {
  .topic-list-head {
    gap: 12px;
  }
}

/* ---------- иконки белым (по запросу) ---------- */

.premium-icon svg {
  stroke: #FFFFFF !important;
}

/* ---------- сетка из 3 кейсов (страница услуги) ---------- */

.case-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .case-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- «Берём ситуацию под контроль» — фото + шаги (страница услуги) ---------- */

.control-block-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0;
  align-items: stretch;
  margin: 48px auto 0;
  max-width: 880px;
  border-radius: 20px;
  overflow: hidden;
}

.control-block-photo {
  overflow: hidden;
  min-height: 360px;
  background: var(--bg);
}

.control-block-photo img {
  width: 100%;
  height: 100%;
  object-fit: var(--photo-fit, cover);
  object-position: var(--photo-pos, top center);
}

.control-steps {
  background: var(--navy-deep);
  padding: 32px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.control-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.control-step:last-child {
  border-bottom: none;
}

.control-step-num {
  flex-shrink: 0;
  font-size: 30px;
  font-weight: 700;
  color: #6C89A5;
  line-height: 1;
  min-width: 48px;
}

.control-step-num--ring {
  color: var(--white);
}

.control-step-text h3 {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.control-step-text p {
  font-size: 13.5px;
  color: #AAB9CC;
  line-height: 1.5;
}

.control-step--final .control-step-text h3 {
  color: var(--gold-light);
}

.control-block-cta {
  text-align: center;
  margin-top: 40px;
}

@media (max-width: 860px) {
  .control-block-grid {
    grid-template-columns: 1fr;
  }
  .control-block-photo {
    min-height: 260px;
  }
}

/* ---------- сетка из 4 карточек принципов (страница «О компании») ---------- */

.premium-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .premium-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .premium-grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- «Наша история» — текст + фото (страница «О компании») ---------- */

.about-story-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-story-photo {
  border-radius: 20px;
  overflow: hidden;
  min-height: 320px;
}

.about-story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .about-story-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .about-story-photo {
    min-height: 240px;
    order: -1;
  }
}

/* ---------- принудительное центрирование заголовка блока «Что делаем» ---------- */

#chto-vhodit .section-head {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#chto-vhodit .section-head p {
  max-width: 640px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ---------- скрытое поле-ловушка от спам-ботов (не трогать) ---------- */

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- текстовый вариант тёмной карточки (без нумерации, «Наша история») ---------- */

.control-block-text {
  background: var(--navy-deep);
  border-radius: 20px;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
}

.control-block-text p {
  font-size: 15px;
  line-height: 1.7;
  color: #AAB9CC;
}

.control-block-text p:first-child {
  color: #D4E2EE;
  font-size: 16px;
  font-weight: 500;
}

@media (max-width: 860px) {
  .control-block-text {
    padding: 32px 28px;
  }
}

/* ---------- вариант блока «история» — без карточки, просто фото и текст рядом ---------- */

.control-block-grid--story {
  gap: 40px;
  overflow: visible;
  border-radius: 0;
}

.control-block-grid--story .control-block-photo {
  border-radius: 20px;
  background: var(--bg);
}

@media (min-width: 861px) {
  .control-block-grid--story {
    max-height: 440px;
  }
  .control-block-grid--story .control-block-photo {
    height: 440px;
  }
}

/* ---------- УТП на страницах услуг — светлый фон вместо тёмного ---------- */

#utp .premium-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
}

#utp .premium-card:hover {
  border-color: var(--accent);
}

#utp .premium-card h3 {
  color: var(--navy-deep);
}

#utp .premium-card p {
  color: var(--gray);
}

#utp .premium-icon svg {
  stroke: var(--accent) !important;
}

/* ---------- центрирование заголовка «Принципы, которые не меняются» ---------- */

#principles .section-head {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- чекбокс согласия в форме заявки ---------- */

.form-consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  cursor: pointer;
}

.form-consent-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-consent-box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid var(--line-dark);
  border-radius: 4px;
  position: relative;
  transition: background .15s ease, border-color .15s ease;
}

.form-consent-check input:checked + .form-consent-box {
  background: var(--accent);
  border-color: var(--accent);
}

.form-consent-check input:checked + .form-consent-box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #FFFFFF;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-consent-check input:focus-visible + .form-consent-box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-consent-text {
  font-size: 12px;
  color: var(--gray-light);
  line-height: 1.5;
}

.form-consent-text a {
  color: var(--accent);
  text-decoration: underline;
}

/* ---------- фото-шапка кейса: отдельный класс, чтобы не задеть услуги ---------- */

.hero-photo-center .hero-crumb {
  justify-content: center;
}

.hero-photo-center .hero-crumb .crumb-line {
  display: block;
}

.hero-photo-center h1,
.hero-photo-center p.lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hero-photo-center .hero-actions {
  justify-content: center;
}

/* ---------- cookie-баннер согласия ---------- */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  background: var(--navy-deep);
  border-top: 1px solid #1D3555;
  padding: 18px 24px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .2);
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner p {
  font-size: 13.5px;
  color: #C4D7E8;
  max-width: 640px;
  line-height: 1.6;
  margin: 0;
}

.cookie-banner p a {
  color: var(--accent-light);
  text-decoration: underline;
}

.cookie-banner .btn {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .cookie-banner {
    padding: 16px 18px;
    justify-content: flex-start;
    text-align: left;
  }
  .cookie-banner .btn {
    width: 100%;
  }
}

/* ---------- карточки направлений помощи (отдельные страницы под «Военное право») ---------- */

.direction-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.direction-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
}

.direction-num {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}

.direction-card h3 {
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.direction-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--gray);
}

@media (max-width: 860px) {
  .direction-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- карточки-обзор направлений (страница «Военное право») ---------- */

.topic-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.topic-card {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  min-height: 420px;
  background-image: var(--card-photo);
  background-size: cover;
  background-position: center;
  transition: transform .3s ease, box-shadow .3s ease;
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(14, 42, 71, .25);
}

.topic-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 42, 71, .05) 0%, rgba(14, 42, 71, .35) 45%, rgba(9, 20, 34, .92) 100%);
}

.topic-card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 26px;
}

.topic-card-tag {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 14px;
}

.topic-card-content h3 {
  font-family: 'IBM Plex Sans', serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 12px;
}

.topic-card-content p {
  font-size: 13.5px;
  line-height: 1.55;
  color: #C4D7E8;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.topic-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.topic-card-link svg {
  width: 15px;
  height: 15px;
  transition: transform .2s ease;
}

.topic-card:hover .topic-card-link svg {
  transform: translateX(4px);
}

@media (max-width: 1024px) {
  .topic-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .topic-cards-grid {
    grid-template-columns: 1fr;
  }
  .topic-card {
    min-height: 320px;
  }
}
