/* =========================================================
   FLC — Homepage
   Макет: Pencil «FLC Homepage Design» (1440)
   Верстка: контейнер max-width 1600 + паддинги 80,
   на 1920 по бокам добавляется воздух.
   ========================================================= */

/* ---------- Токены ---------- */
:root {
  --flc-cream: #efe9dc;
  --flc-gold: #b0883a;
  --flc-gold-light: #c9a961;
  --flc-green: #143329;
  --flc-green-deep: #0e261f;
  --flc-green-mid: #1f4a3b;
  --flc-ink: #1a1e1c;
  --flc-ivory: #f6f2e9;
  --flc-line: #ded7c7;
  --flc-muted: #5a6560;
  --flc-white: #fff;

  /* Тёмные фоны секций (в макете заданы напрямую) */
  --flc-dark: #0a1812;
  --flc-darker: #070f0b;
  --flc-dark-alt: #0e1f18;
  --flc-badge: #16291f;

  --container: 1600px;
  --gutter: 80px;
  --section-y: 96px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Сброс ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Закреплённая шапка не должна накрывать цель якорной ссылки. */
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--flc-dark);
  color: var(--flc-ivory);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* Наши display: flex у .cform и .cform__done сильнее браузерного правила
   для [hidden], поэтому атрибут без этой строки просто не работает. */
[hidden] {
  display: none !important;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* Нумерация во всех списках проекта своя (.steps, .post__body ol),
   поэтому системные маркеры гасим и у ol тоже. */
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

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

.section {
  padding: var(--section-y) 0;
}

/* Карточки «Insights» и «Matters» содержат внутреннюю ссылку, поэтому сами
   обёрнуты быть в <a> не могут — вложенные ссылки невалидны. Курсор ставим
   руками, переход по клику по пустому месту вешает main.js.
   Плитки практик и ячейки отраслей ссылок внутри не имеют — они сами <a>. */
.article,
.matter {
  cursor: pointer;
}

/* ---------- Общие элементы ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--flc-gold-light);
}

.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 34px;
  height: 2px;
  background: var(--flc-gold);
}

.eyebrow--dark {
  color: var(--flc-gold);
}

/* --- Шкала заголовков ------------------------------------------
   Две ступени на весь сайт: .hero__title 64 (h1) и заголовок секции 50.
   Все h2 верхнего уровня идут за eyebrow и берут одну ступень независимо
   от страницы — исторические .about-title / .overview__title / .contact__title
   остались только как псевдонимы с другим цветом. Ниже секции идёт .subhead 22.
   Локальные размеры не заводим — иначе страницы снова разъедутся. */
.section-title,
.cta__title,
.about-title,
.overview__title,
.contact__title {
  font-size: 50px;
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -1.4px;
  color: var(--flc-ivory);
}

.section-title--dark {
  color: var(--flc-green);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
}

.section-head__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
}

/* Ссылка-стрелка «View all …» */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--flc-gold-light);
  transition: gap 0.2s ease;
}

.link-arrow--dark {
  color: var(--flc-gold);
}

.link-arrow:hover {
  gap: 14px;
}

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

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 32px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

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

.btn--primary {
  background: var(--flc-gold);
  color: var(--flc-darker);
}

.btn--primary:hover {
  background: var(--flc-gold-light);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--flc-ivory);
}

.btn--ghost:hover {
  border-color: var(--flc-gold-light);
  color: var(--flc-gold-light);
}

.btn--outline-gold {
  padding: 12px 24px;
  border: 1px solid var(--flc-gold-light);
  color: var(--flc-ivory);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.btn--outline-gold:hover {
  background: var(--flc-gold);
  border-color: var(--flc-gold);
  color: var(--flc-darker);
}

/* =========================================================
   1. Hero
   ========================================================= */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
  background-image: linear-gradient(-103deg, #0e2a1f 7%, #070f0b 93%);
}

/* Динамическая высота: на мобильных не прыгает при появлении адресной строки. */
@supports (min-height: 100svh) {
  .hero {
    min-height: 100svh;
  }
}

/* Контейнер WebGL-сцены. Ширина равна ширине блока, но всё уехало вправо
   на 10% — так пирамида уходит из-под колонки текста, не меняя масштаба.
   Уменьшать контейнер нельзя: сцена вписывается в него, и фигура сожмётся. */
.hero__scene {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20%;
  right: -20%;
  z-index: 1;
}

/* Затемнение под текстом: плотное слева, полностью прозрачное к центру,
   чтобы не гасить пирамиду. */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: linear-gradient(
    to right,
    #070f0bd9 0%,
    #070f0ba6 26%,
    #070f0b4d 44%,
    #070f0b00 62%
  );
}

/* Свечение — подсветка ЗА сценой. Поверх пирамиды оно съедало контраст. */
.hero__glow {
  position: absolute;
  top: -220px;
  left: 53%;
  z-index: 0;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  opacity: 0.5;
  filter: blur(20px);
  pointer-events: none;
  background-image: radial-gradient(
    ellipse 50% 50% at 50% 50%,
    #c9a96166 0%,
    #c9a96100 100%
  );
}

.hero > .container {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

/* --- Шапка ---
   Закреплена поверх страницы. На первом экране прозрачная и лежит на hero,
   после начала скролла получает подложку. */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  padding: 36px 0;
  transition: padding 0.25s ease, background-color 0.25s ease,
    border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  padding: 14px 0;
  background: rgba(10, 24, 18, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* SVG — высота считается от пропорций, фиксировать её незачем. */
.nav__logo img {
  width: 186px;
  height: auto;
}

/* Обёртка меню и правого блока. На десктопе её как будто нет — display: contents
   отдаёт детей во флекс .nav напрямую. На мобильных она становится панелью,
   которую раскрывает бургер. */
.nav__collapse {
  display: contents;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav__menu a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.nav__menu a:hover {
  color: var(--flc-gold-light);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Переключатель языка */
.lang {
  position: relative;
}

.lang__toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: var(--flc-ivory);
}

.lang__toggle > svg:first-child {
  width: 16px;
  height: 16px;
}

.lang__chevron {
  width: 15px;
  height: 15px;
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.2s ease;
}

.lang__toggle[aria-expanded="true"] .lang__chevron {
  transform: rotate(180deg);
}

.lang__menu {
  position: absolute;
  top: calc(100% + 12px);
  /* Привязка к правому краю переключателя: меню раскрывается влево,
     в пустое место, и не заезжает под кнопку «Request Consultation». */
  right: 0;
  z-index: 10;
  min-width: 150px;
  padding: 6px 0;
  transform: translateY(-6px);
  border: 1px solid rgba(201, 169, 97, 0.28);
  border-radius: 2px;
  background: #0d211a;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);

  /* Закрытое состояние: не участвует в раскладке и не ловит фокус. */
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.lang.is-open .lang__menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.lang__menu a {
  display: block;
  padding: 9px 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang__menu a:hover {
  background: rgba(201, 169, 97, 0.1);
  color: var(--flc-gold-light);
}

.lang__menu a[aria-current="true"] {
  color: var(--flc-gold-light);
}

/* Бургер. Появляется вместе с панелью на 900px. */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--flc-ivory);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Открытое состояние: верхняя и нижняя полоски складываются в крест. */
.site-header.is-nav-open .nav__burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-nav-open .nav__burger span:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .nav__burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Контент героя --- */
/* Центрируется по высоте блока. Верхний отступ больше нижнего —
   шапка теперь закреплена поверх и место под неё нужно оставить. */
.hero__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 30px;
  max-width: 900px;
  padding: 150px 0 90px;
}

.hero__title {
  font-size: 64px;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--flc-ivory);
}

.hero__title strong {
  display: block;
  font-weight: 700;
}

.hero__lead {
  max-width: 600px;
  font-size: 18px;
  line-height: 1.61;
  color: rgba(255, 255, 255, 0.7);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 10px;
}

/* =========================================================
   2. Trust Indicators
   ========================================================= */
.trust {
  background: var(--flc-dark);
  padding: 68px 0;
}

/* auto-fit вместо жёстких четырёх колонок: на ноутбуках 1024–1280 четыре
   колонки сжимались до ~200px и заголовки ломались по два слова в строку.
   Ниже 900 раскладку добиваем явными правилами в блоке адаптива. */
.trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px;
}

.trust__item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 2px 0 2px 40px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.trust__item:first-child {
  padding-left: 0;
  border-left: 0;
}

.icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--flc-badge);
  color: var(--flc-gold-light);
}

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

.trust__title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.17;
  color: var(--flc-ivory);
}

.trust__text {
  font-size: 13.5px;
  line-height: 1.48;
  color: rgba(255, 255, 255, 0.6);
}

/* =========================================================
   3. Core Practice Areas
   ========================================================= */
.practice {
  background: var(--flc-dark);
  overflow: hidden;
}

.practice .section-head {
  margin-bottom: 48px;
}

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

.tile {
  display: block;
  position: relative;
  height: 480px;
  overflow: hidden;
}

/* Картинка тегом <img>, а не фоном: у контентных изображений должен быть alt,
   и в поиск по картинкам фоны не попадают. */
.tile__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.tile:hover .tile__image {
  transform: scale(1.05);
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    -90deg,
    #070f0b00 35%,
    #070f0bd9 78%,
    #050a07f2 100%
  );
}

.tile__caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tile__caption::before {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--flc-gold);
}

.tile__title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.14;
  color: var(--flc-ivory);
}

.tile__meta {
  font-size: 13px;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.7);
}

/* =========================================================
   4. Industry Sectors
   ========================================================= */
.sectors {
  background: var(--flc-ivory);
  color: var(--flc-green);
}

.sectors .section-head {
  margin-bottom: 50px;
}

.sectors .section-head__text {
  max-width: 620px;
}

.section-head__note {
  flex: 0 1 420px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--flc-muted);
}

/* Сетка 5×2. Разделители — внутренние границы ячеек. */
.sectors__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--flc-white);
  border-top: 1px solid var(--flc-ivory);
  border-left: 1px solid var(--flc-ivory);
}

.sector {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 158px;
  padding: 28px 24px;
  border-right: 1px solid var(--flc-ivory);
  border-bottom: 1px solid var(--flc-ivory);
}

.sector__arrow {
  display: flex;
  justify-content: flex-end;
  color: var(--flc-gold);
}

.sector__arrow svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

/* Иконка смотрит вверх-вправо; поворот на 45° по часовой ставит её строго вправо. */
.sector:hover .sector__arrow svg {
  transform: rotate(45deg);
}

.sector__title {
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--flc-green);
  transition: color 0.2s ease;
}

/* Тот же золотой, что у стрелки, — заголовок и стрелка реагируют заодно. */
.sector:hover .sector__title {
  color: var(--flc-gold);
}

/* =========================================================
   5. Representative Matters
   ========================================================= */
.matters {
  background: var(--flc-ivory);
  color: var(--flc-green);
}

.matters .section-head {
  margin-bottom: 50px;
}

.matters__viewport {
  overflow: hidden;
}

.matters__track {
  display: flex;
  gap: 8px;
  transition: transform 0.45s ease;
}

.matter {
  display: flex;
  flex: 0 0 calc((100% - 8px) / 2);
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
  padding: 44px 46px;
  background: var(--flc-white);
}

.matter__top {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.matter__tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--flc-gold);
}

.matter__title {
  margin-bottom: 12px;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.3px;
  color: var(--flc-green);
  transition: color 0.2s ease;
}

.matter:hover .matter__title {
  color: var(--flc-gold);
}

.matter__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--flc-muted);
}

.matter__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 700;
  color: var(--flc-gold);
  transition: gap 0.2s ease;
}

.matter__link:hover {
  gap: 14px;
}

.matter__link svg {
  width: 15px;
  height: 15px;
}

/* Точки и стрелки заметно отбиты от карточек: вплотную они читались как
   часть последней карточки. */
.slider-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
}

.slider-bar__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-bar__dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.12);
  transition: width 0.25s ease, background-color 0.25s ease;
}

.slider-bar__dots button[aria-current="true"] {
  width: 24px;
  background: var(--flc-gold);
}

.slider-bar__arrows {
  display: flex;
  gap: 12px;
}

.slider-bar__arrows button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--flc-line);
  border-radius: 50%;
  color: var(--flc-muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.slider-bar__arrows button svg {
  width: 18px;
  height: 18px;
}

.slider-bar__arrows button:not(:disabled):hover {
  border-color: var(--flc-gold);
  color: var(--flc-gold);
}

.slider-bar__arrows button:disabled {
  opacity: 0.45;
  cursor: default;
}

/* =========================================================
   6. Insights & Publications
   ========================================================= */
.insights {
  background: var(--flc-white);
  color: var(--flc-green);
}

.insights .section-head {
  margin-bottom: 50px;
}

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

.article {
  display: flex;
  flex-direction: column;
  background: var(--flc-white);
  overflow: hidden;
}

.article__image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.article:hover .article__image {
  transform: scale(1.03);
}

.article__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 0;
}

.article__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--flc-muted);
}

.article__meta strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--flc-gold);
}

.article__meta span::before {
  content: "•";
  margin-right: 10px;
}

.article__title {
  max-width: 485px;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--flc-green);
  transition: color 0.2s ease;
}

.article:hover .article__title {
  color: var(--flc-gold);
}

.article__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding-top: 30px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--flc-gold);
  transition: gap 0.2s ease;
}

.article__link:hover {
  gap: 14px;
}

.article__link svg {
  width: 14px;
  height: 14px;
}

/* =========================================================
   7. Why Clients Choose FLC
   ========================================================= */
.why {
  background: var(--flc-dark-alt);
}

.why__inner {
  display: flex;
  justify-content: space-between;
  gap: 90px;
}

.why__left {
  display: flex;
  flex: 0 0 520px;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.why__lead {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.why__list {
  flex: 1 1 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.why__item {
  display: flex;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.why__item .icon-badge svg {
  width: 23px;
  height: 23px;
}

.why__text {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 4px;
}

.why__title {
  font-size: 20px;
  font-weight: 500;
  color: var(--flc-ivory);
}

.why__desc {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

/* Вариант главной: секция «Why» работает ещё и финальным CTA —
   берёт градиент и золотое свечение у .cta, чтобы закрывать страницу. */
/* Тон градиента сведён к --flc-dark подвала, чтобы низ страницы читался
   единым массивом; сам градиент сохранён для объёма. */
.why--cta {
  position: relative;
  overflow: hidden;
  background-color: var(--flc-dark);
  background-image: linear-gradient(-103deg, #10251b 7%, #0a1812 93%);
}

.why--cta > .container {
  position: relative;
  z-index: 1;
}

/* Свечение уводим влево, под колонку с призывом. */
.why--cta .cta__glow {
  top: -120px;
  left: 22%;
  width: 620px;
  height: 620px;
}

.why--cta .why__lead {
  max-width: 460px;
  color: rgba(255, 255, 255, 0.75);
}

/* Преимущества в две колонки — список вдвое короче и по высоте
   сходится с колонкой призыва. Модификатор why--grid нужен там, где
   сетка требуется без CTA-фона (about). */
.why--cta .why__list,
.why--grid .why__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 44px;
}

.why__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 8px;
}

.why__actions .btn--primary {
  padding: 17px 34px;
}

.why__actions .btn--ghost {
  padding: 17px 30px;
}

/* =========================================================
   8. Consultation CTA
   ========================================================= */
.cta {
  position: relative;
  overflow: hidden;
  padding: 112px 0;
  text-align: center;
  background-image: linear-gradient(-103deg, #13352a 7%, #0a1c15 93%);
}

.cta__glow {
  position: absolute;
  top: -160px;
  left: 50%;
  width: 500px;
  height: 500px;
  transform: translateX(-50%);
  border-radius: 50%;
  opacity: 0.45;
  filter: blur(50px);
  pointer-events: none;
  background-image: radial-gradient(
    ellipse 50% 50% at 50% 50%,
    #c9a96177 0%,
    #c9a96100 100%
  );
}

.cta > .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.cta .eyebrow::before {
  display: none;
}

.cta__title em {
  display: block;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--flc-gold-light);
}

.cta__lead {
  max-width: 600px;
  font-size: 16.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding-top: 12px;
}

.cta .btn--primary {
  padding: 17px 34px;
}

.cta .btn--ghost {
  padding: 17px 30px;
}

/* --- Двухколоночный CTA (about) ---------------------------------
   Слева оффер и целевое действие, справа прямые каналы связи:
   звонок и мессенджер закрывают тех, кто не заполняет формы. */
/* Фон тот же, что у объединённого блока Why FLC: тон сведён к --flc-dark
   подвала, градиент сохранён для объёма. */
.cta--split {
  text-align: left;
  background-color: var(--flc-dark);
  background-image: linear-gradient(-103deg, #10251b 7%, #0a1812 93%);
}

/* Селектор с .cta--split нужен, чтобы перебить flex-column у .cta > .container. */
.cta--split > .cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 100px;
  align-items: start;
}

.cta--split .cta__glow {
  left: 30%;
}

.cta__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

/* Ширина лида подогнана под заголовок: длиннее — строка выбивается
   из колонки, короче — между текстом и карточкой провисает пустота. */
.cta--split .cta__lead {
  max-width: 620px;
}

.cta--split .cta__actions {
  justify-content: flex-start;
  padding-top: 4px;
}

.cta__note {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

.cta__note svg {
  width: 16px;
  height: 16px;
  color: var(--flc-gold-light);
}

/* --- Правая колонка: прямые каналы + срок ответа под ними --- */
.cta__aside {
  gap: 18px;
  align-self: stretch;
}

.cta__contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.cta__contacts-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--flc-gold-light);
}

.cta__channels {
  display: flex;
  flex-direction: column;
  width: 100%;
  list-style: none;
}

.cta__channels li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta__channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  text-decoration: none;
  transition: color 0.25s ease;
}

.cta__channel-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(201, 169, 97, 0.12);
  color: var(--flc-gold-light);
  transition: background 0.25s ease;
}

.cta__channel-icon svg {
  width: 19px;
  height: 19px;
}

.cta__channel-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cta__channel-label {
  font-size: 12.5px;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.5);
}

.cta__channel-value {
  font-size: 16px;
  color: var(--flc-ivory);
  transition: color 0.25s ease;
}

.cta__channel-arrow {
  width: 17px;
  height: 17px;
  margin-left: auto;
  opacity: 0;
  color: var(--flc-gold-light);
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cta__channel:hover .cta__channel-value {
  color: var(--flc-gold-light);
}

.cta__channel:hover .cta__channel-icon {
  background: rgba(201, 169, 97, 0.22);
}

.cta__channel:hover .cta__channel-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* =========================================================
   9. Footer
   ========================================================= */
.footer {
  padding: 76px 0 34px;
  background: var(--flc-dark);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 52px;
}

.footer__brand {
  display: flex;
  flex: 0 0 360px;
  flex-direction: column;
  gap: 22px;
}

.footer__brand img {
  width: 190px;
  height: auto;
}

.footer__about {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 6px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
}

.footer__cols {
  display: flex;
  gap: 72px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 170px;
}

.footer__col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--flc-gold-light);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer__col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.footer__col a:hover {
  color: var(--flc-gold-light);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 60px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer__legal {
  display: flex;
  gap: 24px;
}

/* =========================================================
   Внутренние страницы
   ========================================================= */

/* --- Hero внутренней страницы ---
   Вместо WebGL-сцены — фотография: анимация оставлена только главной.
   Высоту берёт от .hero — первый экран всегда во всю высоту окна,
   хотя в макете блок нарисован ниже (724px). */

/* Фото занимает место .hero__scene. Приглушено, чтобы текст читался. */
.hero__photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.42;
  background-position: center;
  background-size: cover;
}

/* Затемнение фотографии идёт по диагонали снизу-слева, где лежит текст. */
.hero--page .hero__overlay {
  background-image: linear-gradient(
    25deg,
    #070f0bf0 0%,
    #070f0b40 60%,
    #070f0b00 100%
  );
}

.hero--page .hero__content {
  gap: 30px;
  max-width: 900px;
  padding: 170px 0 110px;
}

/* Хлебные крошки */
.crumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.crumbs svg {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.25);
}

.crumbs a {
  transition: color 0.2s ease;
}

.crumbs a:hover {
  color: var(--flc-gold-light);
}

.crumbs [aria-current] {
  font-weight: 500;
  color: var(--flc-gold-light);
}

/* --- Overview: заголовок слева, текст справа --- */
.overview {
  background: var(--flc-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.overview__inner {
  display: flex;
  gap: 90px;
}

.overview__head {
  display: flex;
  flex: 0 0 430px;
  flex-direction: column;
  gap: 18px;
}

.overview__title {
  color: var(--flc-ivory);
}

.overview__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 22px;
  padding-top: 6px;
  font-size: 18px;
  line-height: 1.7;
}

.overview__lead {
  color: rgba(255, 255, 255, 0.8);
}

.overview__text {
  color: rgba(255, 255, 255, 0.6);
}

/* --- How We Help: нумерованные строки --- */
.helps {
  background: var(--flc-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.helps .section-head {
  margin-bottom: 56px;
  gap: 80px;
}


.section-head__note--light {
  flex: 0 1 440px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
}

/* Номер · название · описание. Разделители — верхние границы строк. */
.help {
  display: grid;
  grid-template-columns: auto 360px 1fr;
  gap: 48px;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.help:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.help__index {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--flc-gold-light);
}

.help__title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--flc-ivory);
}

.help__desc {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

/* --- Why Clients Choose FLC: слайдер преимуществ --- */
.why-slider {
  background: var(--flc-ivory);
  color: var(--flc-green);
}

.why-slider .section-head {
  margin-bottom: 40px;
}

.why-slider__viewport {
  overflow: hidden;
}

/* Шаг слайдера в main.js фиксирован (ширина области + 8px) — gap тот же. */
.why-slider__track {
  display: flex;
  gap: 8px;
  transition: transform 0.45s ease;
}

.advantage {
  display: flex;
  flex: 0 0 calc((100% - 8px) / 2);
  flex-direction: column;
  gap: 12px;
  min-height: 300px;
  padding: 44px 46px;
  background: var(--flc-white);
}

.icon-badge--light {
  width: 52px;
  height: 52px;
  margin-bottom: 10px;
  background: #ede3c9;
  color: var(--flc-gold);
}

.advantage__title {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.3px;
  color: var(--flc-green);
}

.advantage__text {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--flc-muted);
}

/* =========================================================
   Страница «About FLC»
   ========================================================= */

/* Средняя ступень шкалы: см. комментарий у .section-title.
   Заголовок уровнем ниже .section-title: используется в блоках,
   где рядом стоит поясняющий текст. */
.about-title,
.contact__title {
  color: var(--flc-green);
}

.about-title--light {
  color: var(--flc-ivory);
}

.about-note {
  flex: 0 0 440px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--flc-muted);
}

.about-note--light {
  color: rgba(255, 255, 255, 0.7);
}

.about-head {
  margin-bottom: 50px;
}

/* --- At a Glance: цифры в одну строку с вертикальными разделителями --- */
.glance {
  padding: 72px 0;
  background: var(--flc-ivory);
}

.glance__grid {
  display: flex;
  justify-content: space-between;
}

.glance__item {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 14px;
  padding: 2px 0;
}

/* Разделитель — левая граница у всех, кроме первой ячейки. */
.glance__item + .glance__item {
  padding-left: 40px;
  border-left: 1px solid var(--flc-line);
}

.glance__num {
  font-size: 44px;
  font-weight: 300;
  letter-spacing: -1.5px;
  color: var(--flc-green);
}

.glance__desc {
  max-width: 240px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--flc-muted);
}

/* --- Карточки-принципы: используются в «Our Approach» и «International» --- */
.approach {
  background: var(--flc-white);
}

.approach__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
  margin-bottom: 50px;
}

/* .about-note задан под строчный .section-head, где 440px — это ширина.
   Здесь колонка, и та же основа читалась бы как высота. */
.approach__head .about-note,
.team__head .about-note {
  flex: 0 0 auto;
}

.reach {
  background: var(--flc-ivory);
}

.pillars {
  display: grid;
  gap: 24px;
}

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

.pillars--3 {
  grid-template-columns: repeat(3, 1fr);
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 28px;
  background: var(--flc-ivory);
}

.pillar--white {
  background: var(--flc-white);
}

.pillar .icon-badge {
  background: var(--flc-green);
}

.pillar__title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--flc-green);
  transition: color 0.2s ease;
}

.pillar:hover .pillar__title {
  color: var(--flc-gold);
}

.pillar__text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--flc-muted);
}

/* --- Vision & Mission: два крупных блока плюс строка ценностей --- */
.vision {
  background: var(--flc-dark);
}

.vision__values {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
}

.vision__label {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--flc-gold-light);
}

/* --- Языки: тёмные карточки с буквенным бейджем вместо иконки --- */
.langs {
  background: var(--flc-dark);
}

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

.lang-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 34px 30px;
  background: var(--flc-dark-alt);
}

.lang-card__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  align-self: flex-start;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--flc-badge);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--flc-gold-light);
}

.lang-card__title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--flc-ivory);
  transition: color 0.2s ease;
}

.lang-card:hover .lang-card__title {
  color: var(--flc-gold-light);
}

.lang-card__text {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
}

/* =========================================================
   Страница «Practice Areas»
   ========================================================= */

/* Светлый вариант нумерованного списка .helps: та же сетка,
   но на ivory-фоне и с зелёной типографикой. */
.helps--light {
  background: var(--flc-ivory);
  border-top: 0;
}

.helps--light .help {
  border-top-color: var(--flc-line);
}

.helps--light .help:last-child {
  border-bottom-color: var(--flc-line);
}

.helps--light .help__index {
  color: var(--flc-gold);
}

.helps--light .help__title {
  color: var(--flc-green);
}

.helps--light .help__desc {
  color: var(--flc-muted);
}

/* Строка-ссылка: подсветка заголовка на ховере вместо заливки фона. */
.help--link .help__title {
  transition: color 0.2s ease;
}

.help--link:hover .help__title {
  color: var(--flc-gold);
}

/* =========================================================
   Страница «Industry Sectors»
   ========================================================= */

/* Светлая полоса с сеткой отраслей. Разделители не рисуем: карточки белые
   на ivory-фоне, зазор 8px сам работает как линия. */
.industries {
  background: var(--flc-ivory);
}

.industries .section-head {
  margin-bottom: 50px;
}

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

/* min-height, а не height: описания разной длины, карточка тянется. */
.industry {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 296px;
  padding: 44px 46px;
  background: var(--flc-white);
}

.industry__tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--flc-gold);
}

/* Верх карточки — обычный поток, а не flex с gap: отбивки разные (22 от тега,
   12 внутри пары заголовок + описание), общий gap их бы уравнял. */
.industry__title {
  margin-top: 22px;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.3px;
  color: var(--flc-green);
  transition: color 0.2s ease;
}

/* Ховер по конвенции: золотой заголовок вместо заливки фона. */
.industry:hover .industry__title {
  color: var(--flc-gold);
}

/* Заголовок и описание идут парой — отбивка меньше, чем от тега. */
.industry__title + .industry__text {
  margin-top: 12px;
}

.industry__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--flc-muted);
}

/* Не ссылка, а часть карточки-ссылки: вложенные <a> невалидны. */
.industry__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--flc-gold);
}

.industry__link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.industry:hover .industry__link svg {
  transform: translateX(4px);
}

/* =========================================================
   Страница «Insights & Resources»
   ========================================================= */

/* Архив, а не тизер на главной: заголовок секции спокойнее, зазор в сетке
   крупнее (8px на главной читался как одна сплошная плита). */
.insights--page .insights__grid {
  gap: 24px;
}

/* Догрузка списка: кнопка и счётчик по центру под сеткой. */
.insights__more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 26px;
}

.insights__count {
  font-size: 13px;
  color: var(--flc-muted);
}

/* Тёмный контурный вариант .btn для светлых секций. */
.btn--outline-dark {
  padding: 16px 32px;
  border: 1px solid var(--flc-green);
  color: var(--flc-green);
}

.btn--outline-dark:hover {
  background: var(--flc-green);
  color: var(--flc-ivory);
}

/* =========================================================
   Страница «Team»
   ========================================================= */
.team {
  background: var(--flc-ivory);
}

.team__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
  margin-bottom: 50px;
}

/* Зазор 8px как в макете: карточки читаются одной плитой, разделяет их
   только светлый фон секции. */
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.member {
  display: flex;
  flex-direction: column;
  background: var(--flc-white);
  overflow: hidden;
}

/* Пропорция из макета: 368×430 при контейнере 1280. */
.member__photo {
  aspect-ratio: 368 / 430;
  background-position: center top;
  background-size: cover;
}

.member__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 26px 28px;
}

.member__name {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--flc-green);
  transition: color 0.2s ease;
}

.member__role {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.3px;
  color: var(--flc-gold);
}

.member:hover .member__name {
  color: var(--flc-gold);
}

/* =========================================================
   Страница «Representative Matters»
   На главной эти же карточки едут слайдером, здесь разложены
   сеткой 2×3 — меняется только раскладка, сама карточка общая.
   ========================================================= */
.matters--page .matters__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.matters--page .matter {
  flex: 0 0 auto;
  min-height: 296px;
}

/* =========================================================
   Страница «Contact»
   Две колонки: слева реквизиты и мессенджеры, справа форма.
   Ширина левой колонки из макета — 440 при контейнере 1280.
   ========================================================= */
.contact {
  background: var(--flc-white);
}

.contact__grid {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 80px;
  align-items: start;
}

.contact__aside {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact__head {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact__lead {
  font-size: 16px;
  line-height: 1.62;
  color: var(--flc-muted);
}

/* --- Реквизиты --- */
.contact__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--flc-line);
}

.contact-item__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--flc-ivory);
  color: var(--flc-green);
}

.contact-item__icon svg {
  width: 20px;
  height: 20px;
}

.contact-item__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-item__label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--flc-muted);
}

.contact-item__value {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--flc-green);
  transition: color 0.2s ease;
}

a.contact-item__value:hover {
  color: var(--flc-gold);
}

/* --- Мессенджеры --- */
.contact__messengers {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 14px;
}

.messenger {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--flc-line);
  background: var(--flc-white);
  transition: border-color 0.2s ease;
}

.messenger__icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
}

.messenger__label {
  flex: 1 1 auto;
  font-size: 16px;
  font-weight: 500;
  color: var(--flc-green);
  transition: color 0.2s ease;
}

.messenger__arrow {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--flc-muted);
}

.messenger:hover {
  border-color: var(--flc-gold);
}

.messenger:hover .messenger__label {
  color: var(--flc-gold);
}

/* --- Форма заявки ---
   Отправку подключат на WP, здесь только поля и состояния. */
.cform {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 44px;
  border-radius: 4px;
  background: var(--flc-ivory);
}

.cform__title {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--flc-green);
}

.cform__field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cform__field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--flc-muted);
}

.cform input,
.cform select,
.cform textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--flc-white);
  color: var(--flc-green);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.3;
  transition: border-color 0.2s ease;
}

.cform textarea {
  height: 110px;
  resize: vertical;
}

.cform ::placeholder {
  color: #9aa39e;
  opacity: 1;
}

/* Пустой select показывает подсказку тем же серым, что и плейсхолдеры */
.cform select:invalid {
  color: #9aa39e;
}

.cform input:focus,
.cform select:focus,
.cform textarea:focus {
  outline: none;
  border-color: var(--flc-gold);
}

/* Своя стрелка вместо системной: она у каждого браузера разная. */
.cform__field--select {
  position: relative;
}

.cform select {
  appearance: none;
  padding-right: 44px;
}

.cform__chevron {
  position: absolute;
  right: 16px;
  bottom: 17px;
  width: 18px;
  height: 18px;
  color: var(--flc-muted);
  pointer-events: none;
}

.cform__submit {
  justify-content: center;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.cform__note {
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
  color: var(--flc-muted);
}

/* --- Согласия под формой ---
   Галочки всегда пустые: закон требует активного действия, поэтому
   ни одна из них не может быть отмечена заранее. Обязательные —
   политика и условия; рассылка отдельным необязательным пунктом. */
.cform__consent {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}

.check {
  display: flex;
  gap: 11px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--flc-muted);
  cursor: pointer;
}

/* Своя рамка вместо системной: системный чекбокс синий во всех браузерах
   и выбивается из палитры. */
/* padding и width:100% приходят от общего правила .cform input — гасим,
   иначе галочка раздувается до размера текстового поля. */
.check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 1px 0 0;
  appearance: none;
  border: 1px solid #c4bda9;
  border-radius: 3px;
  background: var(--flc-white);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.check input:checked {
  border-color: var(--flc-gold);
  background-color: var(--flc-gold);
  /* Галочка нарисована фоном: псевдоэлементы у input не работают. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.check input:focus-visible {
  outline: 2px solid var(--flc-gold);
  outline-offset: 2px;
}

.check a {
  color: var(--flc-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Подсветка незаполненного согласия после попытки отправки. */
.cform.is-validated .check input:invalid {
  border-color: #b4453a;
}

/* =========================================================
   Модальное окно заявки
   Кнопки-CTA открывают форму прямо на месте: переход на страницу
   контактов терял часть людей. Разметка лежит в конце каждой
   страницы, поведение — в main.js.
   ========================================================= */
.modal {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  overflow: visible;
}

.modal::backdrop {
  background: rgba(4, 10, 7, 0.72);
  backdrop-filter: blur(6px);
}

.modal[open] {
  animation: modal-in 0.25s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.modal__box {
  position: relative;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border-radius: 4px;
  background: var(--flc-ivory);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  color: var(--flc-muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.modal__close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--flc-green);
}

.modal__close svg {
  width: 20px;
  height: 20px;
}

/* В окне форма уже не карточка на фоне секции — тень и фон даёт .modal__box.
   Вся шкала здесь плотнее, чем на странице контактов: окно должно
   помещаться в экран целиком, иначе кнопка отправки уезжает под сгиб. */
.cform--modal {
  gap: 12px;
  padding: 30px 32px 26px;
  border-radius: 0;
  background: transparent;
}

.cform--modal .cform__title {
  font-size: 22px;
}

.cform--modal .cform__field {
  gap: 6px;
}

.cform--modal .cform__field label {
  font-size: 12px;
}

.cform--modal input,
.cform--modal select,
.cform--modal textarea {
  padding: 11px 14px;
  font-size: 14.5px;
}

.cform--modal textarea {
  height: 78px;
}

.cform--modal .cform__chevron {
  bottom: 13px;
}

.cform--modal .cform__submit {
  padding: 14px 28px;
}

.cform--modal .cform__note {
  font-size: 11.5px;
}

/* Телефон и практика встают в ряд: оба поля короткие, и это экономит
   целую строку высоты. */
.cform__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Экран благодарности вместо формы после отправки. */
.cform__done {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 56px 38px 60px;
  text-align: center;
}

.cform__done h3 {
  font-size: 24px;
  font-weight: 400;
  color: var(--flc-green);
}

.cform__done p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--flc-muted);
}

.cform__done .icon-badge {
  align-self: center;
  margin-bottom: 6px;
  background: #ede3c9;
  color: var(--flc-gold);
}

/* =========================================================
   Контентные блоки страниц услуг
   Клиентские тексты — это длинные структурированные разделы:
   подраздел + перечень услуг, сравнительные таблицы, пошаговые
   процессы. Ниже общий набор, из которого собираются все практики.
   ========================================================= */

/* Скрыто визуально, но доступно скринридеру: подписи к таблицам,
   которые в макете не нарисованы, но нужны при озвучке. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip-path: inset(50%);
}

/* Вертикальная стопка разнородных блоков внутри одной секции:
   шкала процесса + таблица + выноска идут подряд с общим ритмом. */
.stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Заголовок подблока внутри секции — ниже .about-title, выше .detail__title. */
.subhead {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--flc-green);
}

.subhead--light {
  color: var(--flc-ivory);
}

/* --- Секция-подробности ---
   Та же сетка, что у .help (заголовок слева, содержимое справа), но
   правая колонка держит не абзац, а список услуг. */
.detail {
  background: var(--flc-ivory);
}

.detail--white {
  background: var(--flc-white);
}

.detail--dark {
  background: var(--flc-dark);
}

.detail__list {
  display: flex;
  flex-direction: column;
}

.detail__item {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  padding: 40px 0;
  border-top: 1px solid var(--flc-line);
}

.detail__item:last-child {
  border-bottom: 1px solid var(--flc-line);
}

.detail--dark .detail__item {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.detail--dark .detail__item:last-child {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Левая колонка залипает: у длинных перечней справа заголовок иначе
   уезжает из поля зрения. */
.detail__aside {
  position: sticky;
  top: 110px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail__index {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--flc-gold);
}

.detail__title {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--flc-green);
}

.detail--dark .detail__title {
  color: var(--flc-ivory);
}

.detail__body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.detail__text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--flc-muted);
}

.detail--dark .detail__text {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Список «термин — пояснение» ---
   Основная единица клиентских текстов: «Jurisdiction Selection: анализ…».
   Маркер рисуем сами — у списка разная плотность в тёмных и светлых блоках. */
.deflist {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.deflist li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--flc-muted);
}

.deflist li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 7px;
  height: 7px;
  border: 1px solid var(--flc-gold);
  transform: rotate(45deg);
}

.deflist strong {
  font-weight: 600;
  color: var(--flc-green);
}

/* Плотный вариант: только термины, без пояснений — в две колонки. */
.deflist--cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 40px;
}

.detail--dark .deflist li,
.deflist--light li {
  color: rgba(255, 255, 255, 0.68);
}

.detail--dark .deflist strong,
.deflist--light strong {
  color: var(--flc-ivory);
}

/* --- Таблица ---
   Оболочка со скроллом обязательна: у сравнительных таблиц 3–4 колонки,
   на узком экране они не сжимаются до читаемого состояния. */
.dtable {
  overflow-x: auto;
  border: 1px solid var(--flc-line);
  background: var(--flc-white);
  /* Без min-width:0 flex- и grid-элемент не сжимается ниже своего
     содержимого, и таблица распирает страницу вместо того, чтобы
     скроллиться внутри себя. */
  min-width: 0;
}

.dtable table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.dtable th,
.dtable td {
  padding: 18px 24px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--flc-line);
}

.dtable th {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--flc-gold);
  background: var(--flc-ivory);
}

.dtable td {
  font-size: 15px;
  line-height: 1.55;
  color: var(--flc-muted);
}

/* Первая колонка — подлежащее строки (инстанция, юрисдикция), поэтому
   выделена так же, как термин в .deflist. */
.dtable td:first-child {
  font-weight: 600;
  color: var(--flc-green);
}

.dtable tr:last-child td {
  border-bottom: 0;
}

.dtable--dark {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--flc-dark-alt);
}

.dtable--dark th {
  background: var(--flc-badge);
  color: var(--flc-gold-light);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.dtable--dark td {
  color: rgba(255, 255, 255, 0.68);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dtable--dark td:first-child {
  color: var(--flc-ivory);
}

.dtable__note {
  padding-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--flc-muted);
}

/* --- Пошаговый процесс ---
   Work Process, Investment Lifecycle, License Application. Номер вынесен
   над заголовком, соединительная линия — верхняя граница ячейки. */
.steps {
  display: grid;
  gap: 1px;
  background: var(--flc-line);
  border: 1px solid var(--flc-line);
}

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

.steps--3 {
  grid-template-columns: repeat(3, 1fr);
}

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 28px;
  background: var(--flc-white);
}

.step__num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--flc-gold);
}

.step__title {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--flc-green);
  transition: color 0.2s ease;
}

.step:hover .step__title {
  color: var(--flc-gold);
}

.step__text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--flc-muted);
}

.steps--dark {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
}

.steps--dark .step {
  background: var(--flc-dark);
}

.steps--dark .step__title {
  color: var(--flc-ivory);
}

.steps--dark .step:hover .step__title {
  color: var(--flc-gold-light);
}

.steps--dark .step__text {
  color: rgba(255, 255, 255, 0.6);
}

/* --- Выноска ---
   «Key Insight», предупреждения о сроках и ограничениях. Золотая линия
   слева, а не заливка: заливка спорит с карточками секций. */
.callout {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 30px;
  border-left: 3px solid var(--flc-gold);
  background: var(--flc-white);
}

.callout__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--flc-gold);
}

.callout__text {
  font-size: 16px;
  line-height: 1.62;
  color: var(--flc-green);
}

.callout--dark {
  background: var(--flc-dark-alt);
}

.callout--dark .callout__text {
  color: rgba(255, 255, 255, 0.78);
}

/* Вложенные блоки всегда должны отличаться от фона секции, поэтому их
   заливка берётся от контекста, а не задаётся модификатором в разметке. */
.detail .callout {
  background: var(--flc-white);
}

.detail--white .callout,
.detail--white .duo__col {
  background: var(--flc-ivory);
}

/* --- Две колонки со списками ---
   «For Clients / For FLC», «Для мусульман / для немусульман». */
.duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.duo__col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px 42px;
  background: var(--flc-white);
}

.duo__title {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--flc-green);
}

.duo__lead {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--flc-muted);
}

.duo--dark .duo__col {
  background: var(--flc-dark-alt);
}

.duo--dark .duo__title {
  color: var(--flc-ivory);
}

.duo--dark .duo__lead {
  color: rgba(255, 255, 255, 0.65);
}

/* --- Чипсы ---
   Отрасли и юрисдикции: перечисления на 10–15 позиций, которым не нужны
   ни описания, ни ссылки. */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips li {
  padding: 11px 20px;
  border: 1px solid var(--flc-line);
  font-size: 14.5px;
  color: var(--flc-green);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.chips li:hover {
  border-color: var(--flc-gold);
  color: var(--flc-gold);
}

.chips--dark li {
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.72);
}

.chips--dark li:hover {
  border-color: var(--flc-gold-light);
  color: var(--flc-gold-light);
}

/* =========================================================
   Страница статьи
   ========================================================= */

/* Текст и оглавление. Ширина колонки текста ограничена 760px —
   длинная строка в юридическом тексте нечитаема. */
.post {
  background: var(--flc-white);
}

.post__inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 80px;
  align-items: start;
}

/* Колонка не должна растягиваться под min-content широких таблиц —
   они скроллятся внутри .dtable. */
.post__inner > * {
  min-width: 0;
}

.post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-bottom: 26px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--flc-line);
  font-size: 13px;
  color: var(--flc-muted);
}

.post__meta strong {
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--flc-gold);
}

.post__body {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.72;
  color: var(--flc-muted);
}

.post__body > * + * {
  margin-top: 22px;
}

.post__body h2 {
  margin-top: 52px;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.6px;
  color: var(--flc-green);
  scroll-margin-top: 110px;
}

.post__body h3 {
  margin-top: 38px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--flc-green);
}

.post__body strong {
  font-weight: 600;
  color: var(--flc-green);
}

.post__body a {
  color: var(--flc-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Списки внутри статьи используют ту же ромбовидную метку, что .deflist. */
.post__body ul,
.post__body ol {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 0;
}

.post__body li {
  position: relative;
  padding-left: 26px;
}

.post__body ul li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 7px;
  height: 7px;
  border: 1px solid var(--flc-gold);
  transform: rotate(45deg);
}

.post__body ol {
  counter-reset: post-ol;
}

.post__body ol li {
  counter-increment: post-ol;
  padding-left: 34px;
}

.post__body ol li::before {
  content: counter(post-ol, decimal-leading-zero);
  position: absolute;
  top: 1px;
  left: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--flc-gold);
}

.post__body .dtable,
.post__body .callout {
  margin-top: 32px;
}

/* --- Оглавление ---
   Липкое: статьи длинные, из середины текста надо уметь прыгнуть в раздел. */
.toc {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 26px;
  background: var(--flc-ivory);
}

.toc__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--flc-gold);
}

.toc__list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.toc__list a {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--flc-muted);
  transition: color 0.2s ease;
}

.toc__list a:hover {
  color: var(--flc-gold);
}

/* --- FAQ ---
   Нативный <details>: аккордеон без JS и сразу доступный с клавиатуры,
   а его содержимое остаётся в разметке для поиска. */
.faq {
  background: var(--flc-ivory);
}

.faq__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--flc-line);
}

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

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 26px 0;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--flc-green);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary:hover {
  color: var(--flc-gold);
}

/* Плюс собирается из двух линий — так он поворачивается в минус
   без второй иконки в спрайте. */
.faq__mark {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.faq__mark::before,
.faq__mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--flc-gold);
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}

.faq__mark::before {
  width: 16px;
  height: 1.5px;
}

.faq__mark::after {
  width: 1.5px;
  height: 16px;
}

.faq__item[open] .faq__mark::after {
  opacity: 0;
}

.faq__answer {
  padding-bottom: 28px;
  max-width: 880px;
  font-size: 16px;
  line-height: 1.68;
  color: var(--flc-muted);
}

/* =========================================================
   Свайп-слайдеры (только планшет и телефон)
   Секции с высокими карточками на узком экране превращаются в
   горизонтальную ленту: страница перестаёт быть бесконечной.
   Прокрутка нативная (scroll-snap), JS только рисует точки.
   ========================================================= */
.swipe-dots {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 22px;
}

.swipe-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 4px;
  /* По умолчанию лента на тёмном фоне; класс --light вешает main.js,
     когда под ней светлая секция. */
  background: #fff;
  opacity: 0.28;
  transition: width 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
}

.swipe-dots--light button {
  background: var(--flc-green);
  opacity: 0.2;
}

.swipe-dots button[aria-current="true"] {
  width: 24px;
  opacity: 1;
  background: var(--flc-gold);
}

@media (max-width: 900px) {
  .swipe-dots.is-active {
    display: flex;
  }

  /* Лента выходит за края контейнера — карточка уходит под край экрана
     и подсказывает, что дальше есть ещё. */
  .is-swipe {
    display: flex;
    gap: 8px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .is-swipe::-webkit-scrollbar {
    display: none;
  }

  /* «Representative matters» и «Why choose FLC» на десктопе листаются
     стрелками через transform. На телефоне это тупик: пальцем такая лента
     не тянется, поэтому отдаём их тому же нативному свайпу, а стрелки
     убираем. overflow: visible нужен, чтобы лента могла выйти за края
     контейнера и показать краешек следующей карточки. */
  .matters__viewport,
  .why-slider__viewport {
    overflow: visible;
  }

  .matters__track[data-swipe].is-swipe,
  .why-slider__track[data-swipe].is-swipe {
    transform: none !important;
  }

  .slider-bar {
    display: none;
  }

  /* Планшет: две карточки в кадре плюс краешек третьей как подсказка. */
  .is-swipe > * {
    flex: 0 0 46%;
    scroll-snap-align: start;
  }
}

@media (max-width: 600px) {
  .is-swipe > * {
    flex: 0 0 86%;
  }
}

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1280px) {
  :root {
    --gutter: 48px;
    --section-y: 80px;
  }

  .hero__title {
    font-size: 52px;
  }

  .section-title,
  .cta__title {
    font-size: 42px;
  }

  .practice__tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .sectors__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why__inner,
  .overview__inner {
    flex-direction: column;
    gap: 48px;
  }

  .overview__head {
    flex: 0 0 auto;
    max-width: 640px;
  }

  .help {
    grid-template-columns: auto 280px 1fr;
    gap: 32px;
  }

  .why__left {
    flex: 0 0 auto;
    max-width: 640px;
  }

  .footer__top {
    flex-direction: column;
  }

  .footer__brand {
    flex: 0 0 auto;
  }

  .footer__cols {
    flex-wrap: wrap;
    gap: 40px 72px;
  }

  .detail__item {
    grid-template-columns: 280px 1fr;
    gap: 32px;
  }

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

  .post__inner {
    gap: 48px;
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 24px;
    --section-y: 64px;
  }

  /* Меню уезжает в полноэкранную панель. Ссылки остаются в разметке —
     они нужны и пользователю, и краулеру. */
  .nav__burger {
    display: flex;
  }

  /* Логотип и бургер поднимаем над панелью: она перекрывает весь экран,
     а закрывать меню надо тем же крестом. */
  .nav__logo,
  .nav__burger {
    position: relative;
    z-index: 2;
  }

  /* Панель на всю высоту экрана. Не display:none — иначе не анимируется
     и внутри неё ломается замер ширины у слайдеров. */
  .nav__collapse {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 104px var(--gutter) 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background-image: linear-gradient(-103deg, #10251b 0%, #070f0b 100%);

    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  /* svh — высота без адресной строки, панель не подрезается на iOS. */
  @supports (height: 100svh) {
    .nav__collapse {
      height: 100svh;
    }
  }

  .site-header.is-nav-open .nav__collapse {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  /* Шапка открытого меню всегда с подложкой — иначе логотип висит
     на градиенте панели без отбивки. */
  .site-header.is-nav-open {
    padding: 14px 0;
  }

  .nav__menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__menu li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav__menu a {
    display: block;
    padding: 18px 0;
    font-size: 20px;
    font-weight: 300;
    color: var(--flc-ivory);
  }

  /* Язык и кнопка прижаты к низу экрана — большой палец достаёт. */
  .nav__right {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    width: 100%;
    margin-top: auto;
    padding-top: 32px;
  }

  .nav__right .btn {
    width: 100%;
    justify-content: center;
  }

  .lang__toggle {
    font-size: 16px;
  }

  /* В панели список языков раскрывается вверх: снизу места нет. */
  .lang__menu {
    top: auto;
    bottom: calc(100% + 12px);
    right: auto;
    left: 0;
  }

  /* На узких экранах текст занимает всю ширину — сцена возвращается
     по центру и уходит на фон, затемнение накрывает весь блок. */
  .hero__scene {
    left: 0;
    right: 0;
    opacity: 0.45;
  }

  .hero__overlay,
  .hero--page .hero__overlay {
    background-image: linear-gradient(
      to bottom,
      #070f0bcc 0%,
      #070f0b99 60%,
      #070f0bcc 100%
    );
  }

  .hero__content {
    padding: 110px 0 64px;
  }

  .hero__title {
    font-size: 38px;
    letter-spacing: -0.8px;
  }

  /* Ниже 40px тонкое начертание "худеет", особенно на тёмном фоне,
     поэтому оптически компенсируем весом. */
  .section-title,
  .cta__title,
  .about-title,
  .overview__title,
  .contact__title {
    font-size: 32px;
    font-weight: 400;
    letter-spacing: -0.8px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  /* Шапка секции встала в колонку — flex-basis из десктопных правил стал
     ВЫСОТОЙ подписи и оставлял под заголовком пустую полосу. Правило общее
     для всех подписей рядом с заголовком: .about-note используется почти
     на каждой внутренней странице. */
  .section-head__note,
  .section-head__note--light,
  .about-note {
    flex: 0 1 auto;
  }

  .trust__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .trust__item {
    padding-left: 0;
    border-left: 0;
  }

  .sectors__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* В ленте плитка не обязана держать десктопные 480px. */
  .tile {
    height: 420px;
  }

  /* Три карточки по 109px на телефоне — фото сплющивается, имя переносится
     по слогам. Ниже 900 идём в две колонки, ниже 600 — в одну. */
  .team__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Архив: карточки списком, высоту задаёт содержимое — фиксированные
     296px на узком экране оставляли внутри пустую полосу. */
  .matters--page .matters__grid {
    grid-template-columns: 1fr;
  }

  .matters--page .matter {
    min-height: 0;
  }

  /* Ширину карточек задаёт свайп-лента (.is-swipe > *) — ей нужен
     выступающий край следующей карточки, поэтому жёсткий flex-basis снят. */
  .matter {
    min-height: 280px;
    padding: 32px 28px;
  }

  .advantage {
    min-height: 260px;
    padding: 32px 28px;
  }

  .hero--page .hero__content {
    padding: 120px 0 72px;
  }

  .overview__body {
    font-size: 16.5px;
  }

  /* Номер и описание встают в одну колонку — на узком экране в три не влезают. */
  .help {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* gap здесь задаётся и для ленты (.is-swipe идёт выше по файлу и
     проигрывает этому правилу) — держим его одинаковым со всеми лентами. */
  .insights__grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Реквизиты и форма встают друг под друга: колонка 440px не сжимается. */
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Колонки грида не сжимаются ниже своего контента, поэтому без явного
     схлопывания сетка распирает страницу по горизонтали. */
  .pillars--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .langs__grid {
    grid-template-columns: 1fr;
  }

  /* Вторая колонка списка преимуществ уезжала за край: в .why--cta её
     срезал overflow:hidden (текст просто пропадал), в .why--grid она
     распирала страницу по горизонтали. */
  .why--cta .why__list,
  .why--grid .why__list {
    grid-template-columns: 1fr;
  }

  /* Колонка с контактами задана жёсткими 420px и не сжимается —
     на узком экране карточка вылезала за пределы секции. */
  .cta--split > .cta__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .cta--split .cta__aside {
    width: 100%;
  }

  /* Заголовок раздела встаёт над содержимым — залипание здесь только мешает. */
  .detail__item {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 32px 0;
  }

  .detail__aside {
    position: static;
  }

  .deflist--cols,
  .duo,
  .steps--3,
  .steps--4 {
    grid-template-columns: 1fr;
  }

  .duo__col {
    padding: 32px 28px;
  }

  /* Оглавление уходит наверх, к началу текста. */
  .post__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .toc {
    position: static;
    order: -1;
  }

  .post__body {
    font-size: 16.5px;
  }

  .post__body h2 {
    margin-top: 40px;
    font-size: 25px;
  }

  .faq__item summary {
    gap: 20px;
    font-size: 17px;
  }

  .vision__values {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .practice__tiles,
  .industries__grid,
  .team__grid,
  .deflist--cols,
  .pillars--3,
  .pillars--4 {
    grid-template-columns: 1fr;
  }

  /* Отрасли и «почему мы» остаются в две колонки: это короткие ячейки,
     в одну колонку они растягивают страницу впустую. */
  .sectors__grid,
  .trust__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust__grid {
    gap: 26px 20px;
  }

  .sector {
    min-height: 128px;
    padding: 20px 16px;
    gap: 12px;
  }

  .sector__title {
    font-size: 14px;
  }

  /* Полноэкранная плитка на телефоне съедает весь экран под одну карточку. */
  .tile {
    height: 380px;
  }

  /* Новости в ленте: карточка целиком должна попадать в экран вместе
     с датой и ссылкой, поэтому и фото, и текст ужимаем. */
  .article__image {
    height: 180px;
  }

  .article__body {
    gap: 10px;
    padding: 18px 0 0;
  }

  .article__meta {
    font-size: 12px;
  }

  .article__title {
    font-size: 17px;
    line-height: 1.3;
  }

  .article__link {
    padding-top: 16px;
    font-size: 13px;
  }

  /* Список «Why FLC» шёл на 20px — крупнее и новостей (17px), и Trust (18px),
     и на телефоне читался как отдельная шкала. Сводим к общей. */
  .why__title {
    font-size: 17px;
  }

  .why__item {
    gap: 16px;
    padding: 20px 0;
  }

  .icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .icon-badge svg,
  .why__item .icon-badge svg {
    width: 20px;
    height: 20px;
  }

  /* Карточки преимуществ на внутренних страницах — та же шкала, что
     у .matter: в ленте они такой же ширины. */
  .advantage {
    min-height: 0;
    padding: 28px 24px;
  }

  .advantage__title {
    font-size: 19px;
  }

  .advantage__text {
    font-size: 14.5px;
  }

  .icon-badge--light {
    width: 44px;
    height: 44px;
    margin-bottom: 4px;
  }

  /* Цифры «At a Glance» перестраиваются в колонку: в строку четыре
     значения на телефоне не помещаются. */
  .glance__grid {
    flex-wrap: wrap;
    gap: 28px;
  }

  .glance__item {
    flex: 1 1 100%;
  }

  .glance__item + .glance__item {
    padding-left: 0;
    border-left: 0;
  }

  /* Карточка отрасли в ленте той же ширины, что .matter и .advantage —
     держим и шкалу текста общей. */
  /* Окно заявки: на телефоне важно, чтобы кнопка отправки была ближе —
     режем отступы и высоту поля сообщения. */
  .cform--modal {
    gap: 14px;
    padding: 30px 22px 26px;
  }

  .cform--modal .cform__title {
    font-size: 21px;
  }

  .cform--modal textarea {
    height: 70px;
  }

  .cform--modal .check {
    font-size: 11.5px;
  }

  .cform__done {
    padding: 44px 24px 48px;
  }

  /* Ниже ~420px в половине строки не помещается ни «+971 ...», ни подсказка
     выбора практики — поля возвращаются в колонку. */
  @media (max-width: 420px) {
    .cform__row {
      grid-template-columns: 1fr;
    }
  }

  .industry {
    gap: 20px;
    min-height: 0;
    padding: 28px 24px;
  }

  .industry__title {
    margin-top: 14px;
    font-size: 19px;
  }

  .industry__text {
    font-size: 14.5px;
  }

  /* Карточка в ленте вдвое уже десктопной: 26px заголовок разваливался на
     три строки и упирался в текст. Высоту не фиксируем — карточки в ленте
     и так тянутся до самой высокой (align-items: stretch). */
  .matter {
    min-height: 0;
    padding: 28px 24px;
  }

  .matter__top {
    gap: 14px;
  }

  .matter__title {
    margin-bottom: 10px;
    font-size: 21px;
  }

  .matter__link {
    padding-top: 24px;
  }

  .hero__title {
    font-size: 32px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Пользователь просил не анимировать — гасим переходы и сцену */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ==========================================================================
   Правки под WordPress
   Единственное, что дописано к вёрстке при переносе. Всё остальное
   в этом файле — исходная статика, менять её при переносе не требовалось.
   ========================================================================== */

/* Контентные фото приехали из background-image в <img>: фоны не индексируются
   и не имеют alt. Размеры и кадрирование теперь задаёт object-fit. */
.hero__photo img,
.member__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__photo img {
  object-position: center;
}

.member__photo img {
  object-position: center top;
}

/* Активный пункт меню. В статике этого состояния не было — там каждая
   страница была отдельным файлом и подсвечивать было нечего. */
.nav__menu li.is-current > a {
  color: var(--flc-gold);
}

/* Форма заявки: сообщение о результате, согласие и ловушка для ботов.
   Этих трёх блоков в статике не было — форма там ничего не отправляла. */
.cform__status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.45;
}

.cform__status svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.cform__status--ok {
  background: rgba(31, 74, 59, 0.1);
  color: var(--flc-green);
}

.cform__status--error {
  background: rgba(176, 60, 40, 0.1);
  color: #8c2f1f;
}

/* Приманка для ботов. display: none часть из них распознаёт, поэтому
   поле выносится за пределы экрана, оставаясь в разметке. */
.cform__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Компоненты, собранные в редакторе через список «Формат».
   Автор оборачивает абзацы в выноску одним действием и не обязан
   размечать каждый вложенный абзац — эти правила подхватывают
   неразмеченные абзацы внутри компонента. */
.callout > p:not([class]) {
  font-size: 16px;
  line-height: 1.62;
  color: var(--flc-green);
}

/* Крупный вводный абзац статьи. */
.post__body .post__lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--flc-green);
}
