/* style.css — единый файл стилей для ВСЕХ страниц и всех языков (включая info.wbs.group).
   После любой правки поднимите номер версии style.css?v=N во всех 35 HTML-файлах
   (иначе браузеры до 7 дней показывают старую версию из кэша).

   Содержание:
     1. Цвета, шрифты, размеры (переменные)      9. Карточки направлений, «Как мы работаем»
     2. Базовые стили                            10. География, внутренние страницы
     3. Шапка, логотип, меню ПК                  11. Галереи, сетки услуг, полоса «Связаться»
     4. Кнопки скачивания и выбор языка          12. Подвал (футер)
     5. Кнопка мобильного меню                   13. Адаптив: планшеты и телефоны
     6. Первый экран (hero) и видео              14. Страница «Контакты», форма, чат-виджет
     7. Секции, заголовки                        15. Прелоадер (заставка на Главной)
     8. Цифры (статистика)                       16. info.wbs.group (one-pager) */
/* 1. ПЕРЕМЕННЫЕ. Фирменные цвета и шрифты задаются здесь и используются по всему файлу.
   ВЛАДЕЛЬЦУ: чтобы поменять цвет на всём сайте — меняйте значение здесь.
   Белый #fff на сайте не используется намеренно: самый светлый — --cream. */

:root{
  --bg:            #12110E;
  --bg-deep:       #060605;
  --bg-panel:      #1A1F2E;
  --bg-card:       #252018;
  --line:          #4A4030;
  --cream:         #E8E0CC;
  --cream-dim:     #C8BFA8;
  --muted:         #8A7A5A;
  --gold:          #C9A84C;
  --gold-bright:   #E8D08A;
  --gold-dim:      #7A6836;

  --serif: "Libre Caslon Text", "Adobe Caslon Pro", Georgia, serif;
  --sans:  Arial, "Helvetica Neue", sans-serif;

  --container: 1280px;
  --pad: clamp(20px, 4vw, 64px);

  --ease: cubic-bezier(.22,.61,.36,1);
}

*{ box-sizing: border-box; }
/* 2. БАЗОВЫЕ СТИЛИ: сброс отступов, шрифты по умолчанию, контейнер ширины страницы. */
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,h2,h3,h4{
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
  color: var(--cream);
  letter-spacing: -0.01em;
}

p{ margin: 0; color: var(--cream-dim); }

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

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.visually-hidden{
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

a:focus-visible, button:focus-visible{
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

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

/* 3. ШАПКА. Закреплена сверху; при прокрутке получает тёмную подложку (класс is-scrolled ставит main.js). */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 26px 0;
  background: linear-gradient(to bottom, rgba(10,9,8,.85), rgba(10,9,8,0));
  transition: background .3s var(--ease), padding .3s var(--ease);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header.is-scrolled{
  background: rgba(10,9,8,.92);
  backdrop-filter: blur(10px);
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
/* Логотип: картинка + надпись WBS GROUP + подпись Architecture & Construction Management. */
.logo{
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
}
.logo img{ display: block; }
.logo-text{ display: flex; flex-direction: column; gap: 3px; }
.logo-word{
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: .12em;
}
.logo-word .lw{ color: var(--cream); }
.logo-word .lb{ color: var(--gold); }
.logo-tagline{
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: .1em;
  color: var(--gold-bright);
  text-transform: uppercase;
}
.foot-logo-full{
  font-family: var(--serif);
  font-size: 13px;
  color: var(--cream-dim);
  letter-spacing: .02em;
}
.site-footer .logo-word{ font-size: 15px; }

/* Меню на ПК: пункты в строку, золотое подчёркивание у активного пункта и при наведении.
   .nav-extra* (языки и «Скачать текстовую версию» внутри меню) на ПК скрыты,
   видны только в мобильном меню и в футере. */
.nav{ display: flex; gap: 28px; align-items: center; }
.nav a{
  font-size: 12.5px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--cream-dim);
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
}
.nav a.active{ color: var(--cream); }
.nav a::after{
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .25s var(--ease);
}
.nav a:hover::after, .nav a.active::after{ width: 100%; }
.nav-extra, .nav-extra-lang, .nav-extra-download{ display: none; }
.nav-extra-lang{ font-size: 13px; color: var(--cream-dim); }
.nav-extra-lang strong{ color: var(--gold-bright); }
.nav-extra-lang .lang-note{ color: var(--muted); }
.nav-extra-download{ color: var(--gold); font-size: 14px; }
.nav-extra-download .dl-icon{ display: inline-block; width: 1.1em; height: 1.1em; margin-right: .5em; vertical-align: -0.2em; flex-shrink: 0; }

/* 4. Правая часть шапки: иконка скачивания PDF и выпадающий список языков. */
.header-actions{ display: flex; align-items: center; gap: 12px; }

.header-download{
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--gold-dim);
  color: var(--cream-dim);
  font-size: 16px;
  line-height: 1;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.header-download:hover{ border-color: var(--gold-bright); color: var(--gold-bright); }

.lang-dropdown{ position: relative; }
.lang-switch{
  display: flex; align-items: center; gap: 8px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--gold-bright);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .04em;
  padding: 8px 14px;
  cursor: pointer;
}
.lang-switch .chev{ font-size: 10px; color: var(--muted); transition: transform .2s var(--ease); }
.lang-switch:hover{ border-color: var(--gold); }
.lang-dropdown.is-open .lang-switch .chev{ transform: rotate(180deg); }
.lang-menu{
  position: absolute;
  top: calc(100% + 6px); right: 0;
  min-width: 140px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  z-index: 50;
}
.lang-menu[hidden]{ display: none; }
.lang-menu li + li{ border-top: 1px solid var(--line); }
.lang-menu button, .lang-menu a{
  display: flex; justify-content: space-between; align-items: center;
  width: 100%;
  background: transparent; border: none;
  color: var(--cream); font-family: var(--sans); font-size: 13px;
  padding: 10px 14px; cursor: pointer; text-align: left;
  text-decoration: none;
}
.lang-menu button[disabled]{ color: var(--muted); cursor: default; }
.lang-menu button:not([disabled]):hover, .lang-menu a:hover{ background: rgba(201,168,76,.08); }
.lang-menu a.lang-current{ color: var(--gold-bright); }
.lang-menu .lang-note{ font-size: 10px; color: var(--muted); }

/* 5. КНОПКА МОБИЛЬНОГО МЕНЮ («бургер» из трёх линий → крестик при открытии). Видна только на экранах до 980 px. */
.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid var(--gold-dim);
  cursor: pointer;
  padding: 0;
  transition: border-color .2s var(--ease);
}
.nav-toggle:hover{ border-color: var(--gold-bright); }
.nav-toggle span{
  display: block;
  width: 18px; height: 2px;
  background: var(--gold-bright);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* 6. ПЕРВЫЙ ЭКРАН (hero): заголовок, расшифровка WBS, видео/картинка справа. */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
}
.hero-inner{
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  width: 100%;
}
.wbs-decode{
  text-align: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 38px);
  margin-bottom: 32px;
}
.wbs-decode .cap{ color: #E8D08A; }
.wbs-decode .rest{ color: #8A7A5A; }
.wbs-decode--stats{ margin-bottom: 24px; }

.hero-inner > .wbs-decode{ grid-column: 1 / -1; }
.hero-copy{ position: relative; z-index: 2; }
.hero-copy .eyebrow{
  font-size: 15px;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-style: italic;
  margin-bottom: 22px;
}
.hero-copy h1{
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.06;
  max-width: 12ch;
}
.hero-copy .lede{
  margin-top: 28px;
  font-size: 18px;
  max-width: 40ch;
  color: var(--cream-dim);
}
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding: 16px 30px;
  border: 1px solid var(--gold);
  color: var(--cream);
  font-size: 14px;
  letter-spacing: .02em;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover{ background: var(--gold); color: #100C08; }
.btn .arrow{ transition: transform .25s var(--ease); }
.btn:hover .arrow{ transform: translateX(4px); }

.hero-visual{
  position: relative;
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  aspect-ratio: 5/3;
  overflow: hidden;
}
.hero-visual video, .hero-visual .hero-poster-img{
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-visual .hero-poster-img{
  opacity: 0;
  transition: opacity .8s var(--ease);
  pointer-events: none;
}
.hero-visual.is-ended .hero-poster-img{ opacity: 1; }
.hero-visual.is-ended video{ opacity: 0; }

.hero-visual--freeze.is-ended video{ opacity: 1; }

.hero-under{
  grid-column: 1 / -1;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
  color: var(--cream-dim);
  font-size: 16px;
}

/* 7. СЕКЦИИ: общие отступы, подзаголовки-«метки» (eyebrow) с золотой линией. */
.section{ padding: 64px 0; border-top: 1px solid var(--line); }
.section.on-panel{ background: var(--bg-panel); border-top: none; }
.section-head{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
  align-items: end;
}
.eyebrow-label{
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .08em;
  color: var(--gold); text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow-label::before{
  content: "";
  width: 0; height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--gold);
}
.section-head h2{ font-size: clamp(30px, 3.4vw, 46px); max-width: 18ch; }
.section-head .desc{ max-width: 46ch; }

/* 8. ЦИФРЫ (блок статистики): крупные числа с подписями, вертикальные разделители. */
.stats{
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.stats-inner{
  padding: 32px 0;
}
.stats-row{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.stat{
  padding: 28px 20px 24px;
  border-left: 1px solid var(--line);
  text-align: center;
}
.stat:first-child{ border-left: none; }
.stat .num{
  font-family: var(--serif);
  font-size: 46px;
  color: var(--gold-bright);
  margin-bottom: 8px;
}
.stat .label{
  font-size: 13px;
  color: var(--cream-dim);
  line-height: 1.4;
}

/* 9. КАРТОЧКИ НАПРАВЛЕНИЙ на Главной (Проектирование / Управление / Эксплуатация). */
.directions{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 32px);
}
.direction{
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.direction .thumb{
  aspect-ratio: 3/2;
  overflow: hidden;
}
.direction .thumb img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.direction:hover .thumb img{ transform: scale(1.04); }
.direction .body{ padding: 20px 0 0; }
.direction h3{ font-size: 20px; margin-bottom: 12px; line-height: 1.3; }
.direction .tagline{
  font-family: var(--serif); font-style: italic;
  color: var(--gold-bright); font-size: 15px;
  margin-bottom: 10px;
}
.direction .note{ font-size: 14px; color: var(--cream-dim); }
.link-more{
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; font-size: 13px; color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.direction .link-more .arrow{ transition: transform .25s var(--ease); }
.link-more:hover{ color: var(--gold-bright); border-color: var(--gold-bright); }
.link-more:hover .arrow{ transform: translateX(4px); }

/* «Как мы работаем» на Главной: карточки команды (фото 3:4, имя, должность).
   Фото обрезается по формату 3:4 автоматически (object-fit: cover), лучше сразу готовить снимки 3:4. */
.hww-title{ font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 48px; max-width: 20ch; }

.team-row{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2.4vw, 28px);
}
.member-card{
  display: flex;
  align-items: stretch;
  gap: 16px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  padding: 10px;
  cursor: pointer;
  font-family: var(--sans);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.member-card:hover, .member-card:focus-visible, .member-card.is-active{
  border-color: var(--gold);
  background: rgba(201,168,76,.05);
}
.member-photo{
  flex: 0 0 auto;
  width: 34%;
  aspect-ratio: 3/4;
  overflow: hidden;
  display: block;
}
.member-photo img{ width: 100%; height: 100%; object-fit: cover; }
.member-text{ display: flex; flex-direction: column; justify-content: flex-start; padding-top: 4px; }
.m-name{ font-family: var(--serif); font-size: 21px; color: var(--gold-bright); line-height: 1.2; }
.m-role{ margin-top: 10px; font-size: 12.5px; color: var(--cream); line-height: 1.5; }
.m-more{
  margin-top: 14px;
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  border: 1px solid var(--gold-dim);
  color: var(--cream-dim);
  padding: 8px 16px;
}

/* Матрица обязанностей под карточками команды (заполняется из MEMBER_DATA в main.js). */
.matrix{
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 32px);
}
.matrix-col h4{
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  color: var(--gold-bright);
  font-size: 16px;
  margin-bottom: 10px;
}
.matrix-col ul{ margin: 0; padding-left: 18px; }
.matrix-col li{ font-size: 13.5px; color: var(--cream-dim); padding: 4px 0; }

.hww-note{
  margin-top: 40px;
  font-family: var(--serif);
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--gold-bright);
  max-width: 80ch;
  font-size: 20px;
}

/* Строка с составом команды (2 Project Manager, 16 архитекторов и т.д.). */
.team-stats{
  margin-top: 48px;
  list-style: none; padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.team-stats li{
  padding: 28px 20px 24px;
  border-left: 1px solid var(--line);
  font-size: 13px;
  color: var(--cream-dim);
  text-align: center;
}
.team-stats li:first-child{ border-left: none; }
.team-stats .n{
  display: block;
  font-family: var(--serif);
  font-size: 46px;
  color: var(--gold-bright);
  margin-bottom: 8px;
}

/* 10. ГЕОГРАФИЯ: карта и список стран. */
.eyebrow-label.centered{ justify-content: center; }
.geo-title{
  text-align: center;
  font-size: clamp(28px, 3.2vw, 40px);
  max-width: 26ch;
  margin: 0 auto 36px;
}
.geo-layout{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}
.geo-map{ border: 1px solid var(--line); overflow: hidden; }
.geo-map img{ width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; }
.geo-countries{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 32px;
}
.geo-country h4{
  font-family: var(--serif); font-weight: 400;
  color: var(--gold-bright); font-size: 19px;
  margin-bottom: 10px;
}
.geo-country hr{ border: none; border-top: 1px solid var(--gold-dim); margin-bottom: 16px; width: 60%; }
.geo-country p{ font-size: 14px; color: var(--cream); line-height: 1.7; margin: 0; }
.geo-country p a{ color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.geo-country p a:hover{ color: var(--gold-bright); }
.geo-icons{ display: flex; gap: 10px; margin-top: 20px; }
.geo-icons img{ width: 34px; height: 34px; object-fit: contain; opacity: .92; }
.geo-quote{
  text-align: center;
  margin-top: 56px;
  font-family: var(--serif); font-style: italic;
  color: var(--gold-bright); font-size: 17px;
}

/* Внутренние страницы (Проектирование, Управление, Эксплуатация): первый экран, списки, блоки стран. */
.hero--sub{ min-height: auto; padding: 150px 0 60px; }
.hero--sub .hero-inner{ grid-template-columns: 1fr; }
.hero--sub .hero-copy{ max-width: 640px; margin: 0 auto 40px; text-align: center; }
.hero--sub .hero-visual{ margin: 0 auto; max-width: 760px; }
.hero--divider{ padding: 70px 0; }
.wbs-bullets{
  list-style: none; margin: 28px 0 0; padding: 0;
  display: inline-flex; flex-direction: column; gap: 10px;
  text-align: left;
}
.wbs-bullets li{
  font-family: var(--serif); font-size: 22px;
  padding-left: 20px; position: relative;
}
.wbs-bullets li::before{
  content: "•"; position: absolute; left: 0; color: var(--gold);
}
.wbs-bullets .cap{ color: var(--gold-bright); }
.wbs-bullets .rest{ color: var(--muted); }
.hero-tagline{
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 40px;
  font-family: var(--serif); font-style: italic;
  color: var(--gold-bright); font-size: 17px;
}

.country-block + .country-block{ border-top: 1px solid var(--line); }
.country-title{
  font-size: clamp(28px, 3.4vw, 42px);
  margin-bottom: 36px;
  max-width: 32ch;
}
.country-title .accent{ color: var(--gold-bright); }
.country-title a.accent{ border-bottom: 1px solid transparent; transition: border-color .2s var(--ease); }
.country-title a.accent:hover{ border-color: var(--gold-bright); }
.country-layout{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.country-layout--reverse .country-media{ order: 2; }
.country-layout--reverse .country-copy{ order: 1; }
.country-media img{
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
}
.stat-lead{
  font-size: 17px;
  color: var(--gold-bright);
  margin-bottom: 20px;
  line-height: 1.5;
}
.check-list{ list-style: none; margin: 0; padding: 0; }
.check-list li{
  position: relative;
  padding: 10px 0 10px 22px;
  font-size: 15px;
  color: var(--cream-dim);
  line-height: 1.6;
}
.check-list li::before{
  content: "•";
  position: absolute; left: 0; top: 10px;
  color: var(--gold);
}
/* Выделенные цитаты-утверждения и подписи под изображениями. */
.statement-block{ margin-top: 36px; }
.statement{
  margin-top: 18px;
  max-width: none;
  font-size: 15px;
  color: var(--cream-dim);
  line-height: 1.7;
}
.statement:first-child{ margin-top: 0; }
.statement strong{ color: var(--cream); }
.statement-strong{
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 24px;
}

.media-caption{ margin-top: 16px; }
.media-caption strong{ color: var(--cream); }

/* 11. ГАЛЕРЕИ фото объектов (Проектирование: Украина, Израиль). */
.gallery-upload{ margin-top: 64px; }
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-slot{
  aspect-ratio: 4/3;
  border: 1px dashed var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.gallery-photo{
  aspect-ratio: 4/3;
  overflow: hidden;
}
.gallery-photo img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-lead .geo-title{ max-width: none; }
.intro-desc{
  text-align: center;
  max-width: none;
  margin: 20px auto 0;
  color: var(--cream-dim);
  font-size: 15px;
}

/* Компактный первый экран (Контакты) и блок «Философия» (Эксплуатация). */
.hero--compact{ min-height: auto; padding: 140px 0 80px; }

.hero-panel{
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 28px;
  width: 100%;
  max-width: 380px;
  margin-left: auto;
}
.hero-phones{ display: flex; gap: 28px; flex-wrap: wrap; margin-top: 20px; }

#geography .eyebrow-label{ justify-content: flex-start; }
#geography .geo-title{ text-align: left; margin: 0 0 36px; max-width: 26ch; }

.philosophy-block{
  text-align: center;
  max-width: 640px;
  margin: 64px auto 0;
}
.wbs-decode--philosophy{
  font-size: clamp(20px, 2.4vw, 28px);
  margin-bottom: 28px;
}
.philosophy-line{
  text-align: center;
  max-width: none;
  margin-top: 10px;
  font-size: 15px;
}
.philosophy-line strong{ color: var(--gold-bright); }

/* Нумерованные блоки услуг (01, 02 ...) и сетки карточек в 2 и 3 колонки. */
.scope-list{ margin-top: 8px; }
.scope-item{ padding: 64px 0; border-top: 1px solid var(--line); position: relative; }
.scope-item:first-child{ border-top: none; padding-top: 16px; }
.scope-item .country-copy h3{
  font-size: 22px;
  margin-bottom: 12px;
}
.scope-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 8px;
}
.scope-grid--3col{ grid-template-columns: repeat(3, 1fr); }
.scope-card{
  border: 1px solid var(--line);
  padding: 32px;
}
.scope-num{
  font-family: var(--serif);
  color: var(--gold-dim);
  font-size: 14px;
  margin-bottom: 14px;
}
.scope-card h3{
  font-size: 20px;
  color: var(--gold-bright);
  margin-bottom: 10px;
}
.scope-card .stat-lead{ margin-bottom: 16px; }
@media (max-width: 780px){
  .scope-grid{ grid-template-columns: 1fr; }
}
/* Полоса «Связаться с нами» внизу страниц. */
.cta-strip{
  padding: 100px 0;
  text-align: left;
  border-top: 1px solid var(--line);
}
.cta-strip .container{
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}
.cta-strip h2{ font-size: clamp(28px, 4vw, 46px); max-width: 28ch; margin: 0; }
.cta-strip .btn{ justify-self: center; }

/* 12. ПОДВАЛ (футер). Расширенный вариант (--expanded): страницы, e-mail, телефоны, кнопка «Связаться». */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 48px var(--pad) 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}
.site-footer .foot-nav{ display: flex; gap: 28px; font-size: 16px; color: var(--cream-dim); flex-wrap: wrap; }
.site-footer .foot-nav a:hover{ color: var(--gold-bright); }
.site-footer .foot-meta{ font-size: 12px; color: var(--muted); display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.foot-download{ color: var(--gold); border-bottom: 1px solid transparent; }
.foot-download:hover{ color: var(--gold-bright); border-color: var(--gold-bright); }

.site-footer--expanded{
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
}
.foot-grid{
  display: grid;
  grid-template-columns: max-content max-content max-content max-content max-content;
  grid-template-rows: auto auto auto auto auto;
  row-gap: 16px;
  margin: 0 auto;
}
.foot-grid .logo{ grid-column: 1; grid-row: 1; margin-bottom: 16px; }
.foot-gap{
  grid-row: 1 / span 5;
  visibility: hidden;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 16px;
  white-space: nowrap;
}
.foot-gap--1{ grid-column: 2; }
.foot-gap--2{ grid-column: 4; }
.foot-page-name{
  grid-column: 1;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--cream-dim);
  align-self: start;
}
.foot-page-name:hover{ color: var(--gold-bright); }
.foot-page-name.active{ color: var(--gold-bright); }
.foot-page-email{
  grid-column: 3;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--cream);
  align-self: start;
}
.foot-page-email:hover{ color: var(--gold-bright); }
.foot-phone-block{
  grid-column: 5;
  grid-row: 2 / span 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.foot-phone{
  font-family: var(--serif);
  font-size: 17px;
  color: var(--cream);
  white-space: nowrap;
}
.foot-phone:hover{ color: var(--gold-bright); }
.foot-connect-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--gold);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 13px;
  padding: 10px 22px;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.foot-connect-btn:hover{ background: var(--gold); color: #100C08; }
.site-footer--expanded .foot-meta{
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  flex: none;
}
.site-footer--expanded .nav-extra{
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  width: 100%; margin-top: 32px; text-align: center;
}
.site-footer--expanded .nav-extra-lang,
.site-footer--expanded .nav-extra-download{ display: block; }
/* 13. АДАПТИВ. Ниже — правила для планшетов и телефонов. Футер на экранах до 860 px — в одну колонку. */
@media (max-width: 860px){
  .site-footer--expanded{ flex-direction: column; align-items: center; gap: 32px; }
  .foot-grid{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    margin: 0;
  }
  .foot-grid .logo{ margin-bottom: 24px; }
  .foot-gap{ display: none; }
  .foot-page-name, .foot-page-email{ align-self: center; }
  .foot-page-email{ margin-bottom: 24px; }
  .foot-phone-block{ align-items: center; gap: 10px; margin-top: 8px; }
  .site-footer--expanded .foot-meta{ text-align: center; }
}

/* Экраны до 980 px (планшеты и телефоны): мобильное меню и перестройка сеток в одну колонку.
   Мобильное меню — на весь экран, выезжает слева за 0,4 с (transform), закрывается уездом влево.
   Кнопка-крестик поднята над меню (z-index 95 > 90), чтобы её было видно и можно было нажать. */
@media (max-width: 980px){
  .cta-strip .container{ grid-template-columns: 1fr; gap: 24px; }
  .cta-strip .btn{ justify-self: start; }
  .nav-toggle{ display: flex; }
  .header-actions > .header-download,
  .header-actions > .lang-dropdown{ display: none; }
  .nav{
    display: flex;
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0;
    background: var(--bg);
    z-index: 90;
    padding: 100px var(--pad) 40px;
    overflow-y: auto;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .4s var(--ease), visibility 0s linear .4s;
  }
  .nav.is-open{
    transform: translateX(0);
    visibility: visible;
    transition: transform .4s var(--ease), visibility 0s linear 0s;
  }
  .nav a{
    width: 100%;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    font-size: 16px;
  }
  .nav a:first-child{ border-top: none; }
  .nav > .nav-extra-lang a{ width: auto; padding: 0 0 4px; border-top: none; }
  .nav-toggle{ position: relative; z-index: 95; }
  .nav > .nav-extra-download{ white-space: normal; }
  .nav > .nav-extra-lang{
    display: block;
    order: -1;
    align-self: center;
    width: 100%;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
  }
  .nav > .nav-extra-download{
    display: block;
    align-self: center;
    width: 100%;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }
  .header-actions{ gap: 8px; }
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-visual{ order: -1; aspect-ratio: 5/3; max-width: 100%; }
  .section-head{ grid-template-columns: 1fr; }
  .stats-row{ grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3){ border-left: none; }
  .directions{ grid-template-columns: 1fr; }
  .country-layout{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: 1fr; }
  .hero--sub{ padding-top: 120px; }
  .geo-layout{ grid-template-columns: 1fr; }
  .geo-map{ aspect-ratio: 16/9; }
  .geo-countries{ grid-template-columns: 1fr; }
  .team-row{ grid-template-columns: 1fr; }
  .member-card{ max-width: 420px; }
  .matrix{ grid-template-columns: 1fr; gap: 24px; }
  .team-stats{ grid-template-columns: repeat(2, 1fr); }
  .team-stats li:nth-child(odd){ border-left: none; }
}
/* Телефоны до 560 px: цифры статистики по две в ряд. */
@media (max-width: 560px){
  .stats-row{ grid-template-columns: 1fr 1fr; }
}

/* 14. СТРАНИЦА «КОНТАКТЫ»: страны с телефонами, мессенджеры, форма обратной связи. */
.contact-countries{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 32px);
}
.contact-country{
  border: 1px solid var(--line);
  padding: 32px 24px;
  text-align: center;
}
.contact-country h3{
  font-size: 20px;
  color: var(--gold-bright);
  margin-bottom: 12px;
}
.contact-phone{
  font-family: var(--serif);
  font-size: 22px;
  color: var(--cream);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.messenger-row{
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.messenger-link{
  border: 1px solid var(--gold-dim);
  color: var(--cream-dim);
  font-size: 13px;
  padding: 8px 14px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.messenger-link:hover{ border-color: var(--gold-bright); color: var(--gold-bright); }
.contact-note{ text-align: center; margin-top: 48px; }

/* Форма обратной связи. .hp-field — скрытое поле-ловушка для спам-ботов (посетитель его не видит). */
.contact-form{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
}
.form-row{ display: flex; flex-direction: column; gap: 8px; }
.form-row--full{ grid-column: 1 / -1; }
.form-row label{ font-size: 13px; color: var(--cream-dim); }
.form-row input, .form-row textarea{
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus{
  outline: none;
  border-color: var(--gold);
}
.hp-field{
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.form-row--full .btn{
  border: 1px solid var(--gold);
  background: transparent;
  cursor: pointer;
  font-family: var(--sans);
}
.form-row--full .btn:hover{
  background: var(--gold);
  color: #100C08;
}
.form-status{
  margin-top: 16px;
  font-size: 14px;
  color: var(--gold-bright);
}
.form-status.is-error{ color: #d98b8b; }

@media (max-width: 980px){
  .contact-countries{ grid-template-columns: 1fr; }
  .contact-form{ grid-template-columns: 1fr; }
}

.contact-email{ margin-top: 20px; text-align: center; font-size: 14px; color: var(--cream-dim); }
.contact-email a{ color: var(--gold); border-bottom: 1px solid transparent; }
.contact-email a:hover{ color: var(--gold-bright); border-color: var(--gold-bright); }
.form-email-hint{ margin-top: -12px; margin-bottom: 28px; font-size: 14px; color: var(--cream-dim); }
.form-email-hint a{ color: var(--gold); border-bottom: 1px solid transparent; }
.form-email-hint a:hover{ color: var(--gold-bright); border-color: var(--gold-bright); }

.expansion-note{
  max-width: 50ch;
  margin: 64px auto 0;
}

/* Уточнения для блока формы (#form) и фона футера. */
#form{ padding-top: 40px; padding-bottom: 48px; }
#form .country-title{ margin-bottom: 20px; font-size: clamp(24px, 2.6vw, 34px); }
#form .form-email-hint{ margin-bottom: 20px; }
.contact-form{ gap: 16px 24px; }
.form-row input, .form-row textarea{ padding: 10px 12px; font-size: 14px; }
.form-row{ gap: 5px; }
.form-row label{ font-size: 12px; }

#form{ background: var(--bg-deep); }
.site-footer{ background: var(--bg-deep); }

.stats.on-panel{ background: var(--bg-panel); border-top: none; }

/* Чат-виджет «Напишите нам» на Контактах (сообщение уходит в Telegram). */
.proactive-chat-text{
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--cream-dim);
  line-height: 1.5;
}
.proactive-chat-form{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.proactive-chat-form input, .proactive-chat-form textarea{
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 13px;
  padding: 8px 10px;
  resize: vertical;
}
.proactive-chat-form input:focus, .proactive-chat-form textarea:focus{
  outline: none;
  border-color: var(--gold);
}
.proactive-chat-form button[type="submit"]{
  align-self: flex-start;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 13px;
  padding: 8px 18px;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.proactive-chat-form button[type="submit"]:hover{ background: var(--gold); color: #100C08; }
.proactive-chat-form button[type="submit"]:disabled{ opacity: .6; cursor: default; }
.proactive-chat-status{ margin: 0; font-size: 12px; color: var(--gold-bright); min-height: 14px; }
.proactive-chat-status.is-error{ color: #d98b8b; }
.proactive-chat-fallback{ margin: 12px 0 0; font-size: 11px; color: var(--muted); line-height: 1.5; }
.proactive-chat-fallback a{ color: var(--gold); border-bottom: 1px solid transparent; }
.proactive-chat-fallback a:hover{ color: var(--gold-bright); border-color: var(--gold-bright); }
@media (max-width: 756px){
  .hero-panel{ max-width: 100%; margin-left: 0; }
}

/* 15. ПРЕЛОАДЕР — заставка на Главной: логотип, надписи слева/справа, WBS GROUP.
   Показывается один раз за сессию браузера для каждого языка (логика — в скрипте в начале index.html). */
html.splash-lock{ overflow: hidden; }
.splash-screen{
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.splash-screen.is-hiding{
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.splash-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
  box-sizing: border-box;
  gap: clamp(20px, 3vw, 32px);
  padding: clamp(36px, 6vw, 72px) clamp(40px, 7vw, 96px);
  border: 1px solid transparent;
  border-radius: 24px;
  animation: splashFrameFade 1.5s ease forwards;
  animation-delay: 3s;
}
@keyframes splashFrameFade{
  from{ border-color: transparent; box-shadow: none; }
  to{
    border-color: var(--gold);
    box-shadow: 0 0 60px rgba(201, 168, 76, .12), inset 0 0 40px rgba(201, 168, 76, .05);
  }
}
.splash-row{
  position: relative;
  width: 100%;
  height: 10vw;
  min-height: 70px;
}
.splash-wordmark, .splash-tagline{
  margin: 0;
  text-align: center;
  opacity: 0;
  animation: splashFade 1.5s ease forwards;
  animation-delay: 3s;
}
.splash-wordmark{
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 30px);
  letter-spacing: .12em;
}
.splash-wordmark .lw{ color: var(--cream); }
.splash-wordmark .lb{ color: var(--gold); }
.splash-tagline{
  font-family: var(--sans);
  font-size: clamp(12px, 1.4vw, 16px);
  letter-spacing: .12em;
  color: var(--gold-bright);
  text-transform: uppercase;
}
.splash-logo{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: splashFade 1.5s ease forwards;
}
.splash-logo img{
  display: block;
  width: 10vw;
  min-width: 70px;
  height: auto;
}
.splash-wing{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  animation: splashFade 1.5s ease forwards;
  animation-delay: 1.5s;
}
.splash-wing p{
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(10px, 1.3vw, 14px);
  letter-spacing: .12em;
  color: var(--cream-dim);
  white-space: nowrap;
}
.splash-wing--left{
  right: calc(50% + max(5vw, 35px) + clamp(20px, 5vw, 64px));
  align-items: flex-end;
  text-align: right;
}
.splash-wing--right{
  left: calc(50% + max(5vw, 35px) + clamp(20px, 5vw, 64px));
  align-items: flex-start;
  text-align: left;
}
@keyframes splashFade{
  from{ opacity: 0; }
  to{ opacity: 1; }
}
.splash-reduced .splash-logo,
.splash-reduced .splash-wing,
.splash-reduced .splash-wordmark,
.splash-reduced .splash-tagline,
.splash-reduced .splash-inner{
  animation: none;
  opacity: 1;
}
.splash-reduced .splash-inner{
  border-color: var(--gold);
  box-shadow: 0 0 60px rgba(201, 168, 76, .12), inset 0 0 40px rgba(201, 168, 76, .05);
}
@media (max-width: 700px){
  .splash-row{
    position: static;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .splash-logo{ position: static; transform: none; }
  .splash-wing{
    position: static;
    transform: none;
    align-items: center !important;
    text-align: center !important;
  }
  .splash-wing p{ white-space: normal; font-size: 10px; }
}

/* 16. INFO.WBS.GROUP (одностраничная версия, папка one-pager/). У <body> этих страниц класс onepager-panel-bg. */
.onepager-panel-bg main{ background: var(--bg-panel); }

.onepager-panel-bg .hero-inner{ text-align: center; }
.onepager-panel-bg .hero--sub .hero-copy{ max-width: 820px; margin: 0 auto 16px; }
.onepager-panel-bg .hero-copy h1,
.onepager-panel-bg .hero-copy .lede{
  margin-left: auto;
  margin-right: auto;
}

.onepager-panel-bg .stats{ background: var(--bg-panel); border-top: none; }

.onepager-panel-bg .hero--divider .hero-copy h1{
  font-size: clamp(28px, 3.4vw, 42px);
  max-width: none;
}

.onepager-panel-bg .geo-title.expansion-note{
  font-family: var(--serif);
  font-size: 21px;
  color: var(--gold-bright);
  line-height: 1.4;
  font-weight: 400;
  max-width: 60ch;
  margin: 32px auto;
}

.onepager-panel-bg .hero--sub{ padding: 120px 0 24px; }
.onepager-panel-bg .hero--divider{ padding: 30px 0; }
.onepager-panel-bg .section{ padding: 30px 0; }
.onepager-panel-bg .stats-inner{ padding: 10px 0; }
.onepager-panel-bg .cta-strip{ padding: 60px 0; }

/* Если в системе включено «уменьшение движения» — меню открывается без анимации. */
@media (max-width: 980px) and (prefers-reduced-motion: reduce){
  .nav, .nav.is-open{ transition: none; }
}

/* 17. DESIGN.WBS.GROUP (визитка «Проектирование», папка design-pager/).
   Первый экран — только расшифровка Whole Business Solutions Group, крупно и по центру. */
.dp-hero{ padding: 150px 0 56px; }
.dp-hero .wbs-decode{ font-size: clamp(30px, 4.2vw, 56px); margin: 0; line-height: 1.2; }
@media (max-width: 980px){
  .dp-hero{ padding: 120px 0 40px; }
}
.dp-hero-title{
  text-align: center;
  font-size: clamp(26px, 3.2vw, 40px);
  margin: 28px auto 0;
  max-width: 30ch;
}
