/* ASR Holding — sector page. Same design language as the home page:
   deep-black ground, brand gold #d5a35e, thin extended caps, hairline rules. */
:root {
  --bg: #0f1114;
  --bg-2: #14171b;
  --ink: #f4f1ea;
  --ink-60: rgba(244,241,234,.6);
  --ink-40: rgba(244,241,234,.42);
  --gold: #d5a35e;
  --gold-soft: rgba(213,163,94,.55);
  --gold-faint: rgba(213,163,94,.22);
  --line: rgba(244,241,234,.12);
  --edge: clamp(20px, 5vw, 84px);
  --font: "Outfit", system-ui, sans-serif;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 10'%3E%3Cpath d='M0 5h26M22 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.1' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
}
html { scroll-behavior: smooth; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-weight: 300; text-wrap: pretty;
  -webkit-font-smoothing: antialiased; }
a { color: var(--gold); }
a:hover { color: #e6bd82; }
::selection { background: rgba(213,163,94,.35); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 var(--edge); }

/* — reveal on scroll — */
html.js-reveal [data-reveal] { opacity: 0; transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.19,1,.22,1), transform .9s cubic-bezier(.19,1,.22,1); }
html.js-reveal [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* — nav — */
.nav { position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; gap: clamp(18px, 2.6vw, 44px);
  padding: 22px max(var(--edge), calc((100% - 1360px) / 2 + var(--edge)));
  transition: background .4s ease, padding .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(15,17,20,.82); backdrop-filter: blur(14px);
  border-bottom-color: var(--line); padding-block: 14px; }
.brand { margin-right: auto; display: flex; align-items: center;
  text-decoration: none; color: var(--ink); }
.brand img { display: block; height: clamp(22px, 2.4vw, 28px); width: auto; }
.nav.scrolled .brand img { height: 22px; }
.nav > a:not(.brand) { font-size: 12px; font-weight: 400; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-60); text-decoration: none;
  padding-bottom: 4px; position: relative; }
.nav > a:not(.brand)::after { content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--gold); transition: width .35s ease; }
.nav > a:not(.brand):hover { color: var(--ink); }
.nav > a:not(.brand):hover::after { width: 100%; }
@media (max-width: 720px) { .nav > a:not(.brand):not(.cta) { display: none; } }

/* — buttons — */
.btn { display: inline-flex; align-items: center; gap: 14px;
  padding: 15px 30px; border: 1px solid var(--gold-soft); color: var(--ink);
  font-family: var(--font); font-size: 12px; font-weight: 400;
  letter-spacing: .24em; text-transform: uppercase; text-decoration: none;
  background: transparent; cursor: pointer; position: relative; overflow: hidden;
  transition: color .35s ease, border-color .35s ease; }
/* arrow: single SVG path — shaft and head share one stroke, so the angle
   always matches the line (no separately rotated CSS chevron) */
.btn i { display: block; width: 28px; height: 10px; background: currentColor;
  transition: transform .35s ease; flex: none;
  -webkit-mask: var(--arrow) no-repeat center / contain;
          mask: var(--arrow) no-repeat center / contain; }
.btn i.back { transform: scaleX(-1); }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.19,1,.22,1); z-index: -1; }
.btn:hover { color: #14161a; border-color: var(--gold); }
.btn:hover::before { transform: scaleX(1); }
.btn:hover i { transform: translateX(6px); }
.btn:hover i.back { transform: scaleX(-1) translateX(6px); }
.btn.solid { background: var(--gold); color: #14161a; border-color: var(--gold); }
.btn.solid::before { background: #e6bd82; }
.btn.solid:hover { border-color: #e6bd82; }

/* — kicker — */
.kicker { display: flex; align-items: center; gap: 16px; margin: 0 0 26px; }
.kicker .num { font-size: 12px; letter-spacing: .3em; color: var(--gold); font-weight: 400; }
.kicker .rule { width: 56px; height: 1px; background: var(--gold-soft); }
.kicker .label { font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink-60); font-weight: 400; }

/* — page hero: sector photo — */
.page-hero { position: relative; min-height: min(70svh, 640px); display: flex;
  align-items: flex-end; overflow: hidden; background: #0b0c0f; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  filter: saturate(.4) brightness(.66) contrast(1.04); }
.page-hero.shift-left img { object-position: 60% center; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(9,10,13,.95) 0%, rgba(9,10,13,.45) 45%, rgba(9,10,13,.35) 100%),
    linear-gradient(90deg, rgba(9,10,13,.8) 0%, rgba(9,10,13,.2) 60%, transparent 100%); }
.page-hero .wrap { position: relative; z-index: 2; width: 100%;
  padding-top: 160px; padding-bottom: clamp(46px, 6vw, 78px); }
.page-hero h1 { margin: 0; font-weight: 200; text-transform: uppercase;
  font-size: clamp(38px, 6vw, 84px); line-height: 1.04; letter-spacing: .05em;
  text-shadow: 0 2px 34px rgba(0,0,0,.5); }
.page-hero .company { margin: 22px 0 0; font-family: var(--serif); color: var(--gold);
  text-transform: uppercase; letter-spacing: .26em;
  font-size: clamp(14px, 1.8vw, 22px); }

/* — content — */
.content { padding: clamp(46px, 5.5vw, 76px) 0 clamp(80px, 10vw, 140px); }
/* Text stays at a readable measure; stat grids and capability lists are
   allowed to use the full page width. */
.content p { margin: 0 0 22px; max-width: 78ch; font-size: 16.5px;
  line-height: 1.85; color: var(--ink-60); }
.content p.lede { margin: 0 0 30px; font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.55; font-weight: 300; color: var(--ink); }
.content p.lede em { font-style: normal; color: var(--gold); }
.content p strong { color: var(--ink); font-weight: 400; }

/* section heading inside content */
.block { margin-top: clamp(56px, 7vw, 92px); }
.block > h2 { margin: 0 0 30px; font-weight: 200; text-transform: uppercase;
  font-size: clamp(22px, 2.6vw, 34px); letter-spacing: .06em; line-height: 1.2; }
.block > h2 em { font-style: normal; color: var(--gold); }

/* — company block (sectors with two companies) — */
.company-block { margin-top: clamp(60px, 8vw, 110px); padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line); }
/* the first company on a two-company page opens the content — it needs no
   divider rule and no separating gap above it */
.company-block:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.company-block > .name { margin: 0 0 8px; font-weight: 200; text-transform: uppercase;
  font-size: clamp(26px, 3.2vw, 44px); letter-spacing: .05em; color: var(--gold); }
.company-block .site { display: inline-block; margin: 0 0 28px; font-size: 12px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-40);
  text-decoration: none; }
.company-block .site:hover { color: var(--gold); }

/* — KPI stats — */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--bg); padding: clamp(24px, 3vw, 38px) clamp(18px, 2vw, 28px); }
.stat .v { font-family: var(--serif); color: var(--gold); line-height: 1.05;
  font-size: clamp(26px, 2.8vw, 40px); text-wrap: balance; }
.stat .k { margin-top: 12px; font-size: 12.5px; line-height: 1.6;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-60); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }

/* — capability / product lists — */
.caps { list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 34px; }
.caps li { position: relative; padding: 15px 0 15px 26px; font-size: 15.5px;
  line-height: 1.5; color: var(--ink); border-top: 1px solid var(--line); }
.caps li::before { content: ""; position: absolute; left: 0; top: 23px;
  width: 12px; height: 1px; background: var(--gold); }
@media (max-width: 980px) { .caps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .caps { grid-template-columns: 1fr; } }

/* — about page: intro + leadership — */
.section-label { display: flex; align-items: center; gap: 16px; margin: 0 0 34px; }
.section-label h2 { margin: 0; font-weight: 200; text-transform: uppercase;
  font-size: clamp(24px, 3vw, 40px); letter-spacing: .06em; }
.section-label .rule { flex: 1; height: 1px; background: var(--line); }

.leadership { margin-top: clamp(70px, 9vw, 120px); padding-top: clamp(50px, 6vw, 80px);
  border-top: 1px solid var(--line); }
.people { margin-top: clamp(38px, 4vw, 58px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto; gap: 12px; align-items: stretch; }

/* горизонтальная плашка по образцу: фото слева, имя и должность справа */
.person { position: relative; display: flex; align-items: stretch; gap: 14px;
  padding: 8px; background: #16181c; border: 0; border-radius: 8px;
  transition: background .35s ease; }
.person:hover { background: #1c1f24; }

/* председатель — карточка целиком золотая */
.person.lead { background: var(--gold); }
.person.lead:hover { background: #dfb271; }
.person.lead .name,
.person.lead .role { color: #14161a; }

.person figure { flex: 0 0 auto; align-self: flex-start; margin: 0;
  width: 90px; height: 90px; overflow: hidden; position: relative;
  background: var(--bg); border-radius: 4px; }
.person img { width: 100%; height: 100%; object-fit: cover; object-position: top center;
  display: block; filter: saturate(.9) contrast(1.02);
  transition: transform 1.1s cubic-bezier(.19,1,.22,1), filter .6s ease; }
.person:hover img { transform: scale(1.06); filter: saturate(1) contrast(1.02); }

.pmeta { min-width: 0; flex: 1 1 auto; padding-right: 8px;
  display: flex; flex-direction: column; }
.person .name { margin: 0; color: var(--gold); font-weight: 400;
  font-size: clamp(15px, 1.25vw, 18px); letter-spacing: .01em;
  text-transform: none; line-height: 1.25; }
.person .role { margin: 6px 0 0; color: var(--ink); font-weight: 300;
  font-size: clamp(12.5px, 1vw, 14.5px); letter-spacing: .01em;
  text-transform: none; line-height: 1.4; }

.person .mail { display: block; max-width: 100%; margin: auto 0 0;
  color: var(--gold); font-size: clamp(8.5px, .62vw, 9.5px); letter-spacing: .04em;
  text-decoration: none; opacity: .72; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; transition: opacity .3s ease, color .3s ease; }
.person .mail:hover { opacity: 1; text-decoration: underline; }
.person .role + .mail { padding-top: 6px; }
.person.lead .mail { color: #14161a; opacity: .72; }
.person.lead .pmeta { padding-right: 46px; }
.person.lead .mail:hover { opacity: 1; }

/* иконка LinkedIn — в правом краю плашки */
.person .li { flex: 0 0 auto; margin-left: auto; align-self: flex-start;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 6px; text-decoration: none;
  background: rgba(244,241,234,.06); transition: background .3s ease; }
.person .li svg { width: 15px; height: 15px; fill: var(--gold);
  opacity: .8; transition: opacity .3s ease; }
.person .li:hover { background: rgba(213,163,94,.18); }
.person .li:hover svg { opacity: 1; }
.person.lead .li { background: rgba(20,22,26,.14); }
.person.lead .li svg { fill: #14161a; }
.person.lead .li:hover { background: rgba(20,22,26,.24); }

@media (max-width: 1000px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .person .li { width: 28px; height: 28px; }
  .person .mail { font-size: 9px; }
}
@media (max-width: 640px) { .people { grid-template-columns: 1fr;
  max-width: 460px; margin-left: auto; margin-right: auto; } }

/* — Chairman's Private Office —
   Знак заказчика, переведённый в вектор: в 30 px растр мылит, а плашка тут
   мелкая. Кнопка садится в правый нижний угол карточки председателя — угол
   свободен, потому что почта прижата к низу левее, а LinkedIn стоит вверху. */
.person .cpo { position: absolute; right: 8px; bottom: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px;
  background: rgba(20,22,26,.14); cursor: pointer;
  transition: background .3s ease, transform .3s ease; }
.person .cpo svg { width: 20px; height: 20px; fill: #14161a; opacity: .82;
  transition: opacity .3s ease; }
.person .cpo:hover { background: rgba(20,22,26,.24); }
.person .cpo:hover svg { opacity: 1; }
.person .cpo:focus-visible { outline: 2px solid #14161a; outline-offset: 2px; }

/* — модальное окно —
   Появление оставлено намеренно: окно возникает по действию пользователя,
   это ответ на клик, а не декоративный въезд контента. */
.modal { position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; transition: opacity .2s ease; }
/* без этой строки display:flex перебивает браузерный [hidden]{display:none},
   и закрытое окно висит прозрачным слоем поверх страницы, съедая все клики */
.modal[hidden] { display: none; }
.modal.on { opacity: 1; }
.modal-back { position: absolute; inset: 0; background: rgba(8,9,11,.74);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal-card { position: relative; width: min(560px, 100%);
  padding: clamp(30px, 4vw, 46px) clamp(26px, 3.4vw, 44px) clamp(28px, 3.4vw, 40px);
  background: #16181c; border: 1px solid rgba(213,163,94,.26);
  border-radius: 10px; box-shadow: 0 30px 90px rgba(0,0,0,.6);
  transform: translateY(8px) scale(.985); transition: transform .24s cubic-bezier(.19,1,.22,1); }
.modal.on .modal-card { transform: none; }

.modal-mark { display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 8px; background: var(--gold); }
.modal-mark svg { width: 29px; height: 29px; fill: #14161a; }

.modal-title { margin: 20px 0 0; color: var(--gold); font-family: 'Marcellus', Georgia, serif;
  font-weight: 400; font-size: clamp(22px, 2.2vw, 27px); letter-spacing: .01em; }
.modal-text { margin: 14px 0 0; color: var(--ink); font-weight: 300;
  font-size: clamp(14px, 1.15vw, 16px); line-height: 1.65; }
.modal-mail { display: inline-block; margin: 22px 0 0; color: var(--gold);
  font-size: clamp(14px, 1.15vw, 16px); letter-spacing: .02em; text-decoration: none;
  border-bottom: 1px solid var(--gold-soft); padding-bottom: 2px;
  transition: border-color .3s ease; }
.modal-mail:hover { border-color: var(--gold); }

.modal-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border: 0; border-radius: 6px; background: transparent; cursor: pointer;
  transition: background .3s ease; }
.modal-x svg { width: 15px; height: 15px; fill: var(--ink-60);
  transition: fill .3s ease; }
.modal-x:hover { background: rgba(244,241,234,.06); }
.modal-x:hover svg { fill: var(--gold); }
.modal-x:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

body.modal-open { overflow: hidden; }

@media (max-width: 640px) {
  .person .cpo { width: 30px; height: 30px; }
  .person .cpo svg { width: 19px; height: 19px; }
  .person.lead .pmeta { padding-right: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .modal, .modal-card { transition: none; }
  .modal-card { transform: none; }
}

/* сноска под карточками команды: у Outfit нет курсивного начертания, наклон
   синтетический — на мелком приглушённом тексте это допустимо, в заголовках нет */
.content .team-note { margin: clamp(20px, 2.2vw, 28px) 0 0; max-width: 72ch;
  font-size: 8px; font-style: italic; font-weight: 300; letter-spacing: .04em;
  line-height: 1.65; color: rgba(244, 241, 234, .14); }

/* — about page: contacts — */
.contacts { margin-top: clamp(60px, 8vw, 100px); padding-top: clamp(50px, 6vw, 80px);
  border-top: 1px solid var(--line); }
.contact-grid { margin-top: clamp(30px, 3.4vw, 46px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.contact .ck { display: block; margin: 0 0 14px; font-size: 12px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--gold); }
.contact address { font-style: normal; font-size: 16px; line-height: 1.7; color: var(--ink); }
.contact address + address { margin-top: 30px; }
.contact address .flag { display: block; width: 22px; height: auto; margin: 0 0 11px; border-radius: 2px; border: 1px solid rgba(244, 241, 234, .16); }
.contact .offices { display: grid; gap: 30px 44px; }
.contact .offices address + address { margin-top: 0; }
@media (min-width: 721px) { .contact-grid { grid-template-columns: 1.7fr 1fr 1fr; }
  .contact .offices { grid-template-columns: 1fr 1fr; } }
.contact .cval { display: inline-flex; align-items: center; gap: 11px;
  font-size: 16px; color: var(--ink); text-decoration: none; transition: color .3s ease; }
.contact .cval svg { width: 20px; height: 20px; fill: var(--gold); flex: none;
  transition: transform .3s ease; }
.contact .cval:hover { color: var(--gold); }
.contact .cval:hover svg { transform: translateY(-2px); }
.contact .socials { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; gap: 30px; } }

/* — closing CTA — */
.page-cta { margin-top: clamp(60px, 8vw, 100px); padding-top: clamp(38px, 5vw, 56px);
  border-top: 1px solid var(--line);
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

/* — footer — */
footer { border-top: 1px solid var(--line); }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 40px 0; }
.foot img { height: 24px; width: auto; display: block; opacity: .8; }
.foot nav { display: flex; gap: 30px; }
.foot a { color: var(--ink-40); text-decoration: none; text-transform: uppercase; letter-spacing: .2em; font-size: 11px; }
.foot a:hover { color: var(--gold); }
.foot .copy { font-size: 12px; letter-spacing: .14em; color: var(--ink-40); }


/* — company marks —
   Logos are shipped pre-normalised: white, trimmed, and scaled so every mark
   carries the same optical weight. The page therefore renders them at their
   natural size and only rescales the whole row on narrow screens. */
/* два знака разводит воздух, а не разделитель: при переносе на телефоне
   черта оставалась висеть сбоку */
.brands { display: flex; align-items: center; flex-wrap: wrap;
  gap: clamp(26px, 4vw, 54px); margin: 30px 0 0; }
.brands .mark { display: block; position: static; inset: auto;
  object-fit: contain; filter: drop-shadow(0 2px 20px rgba(0, 0, 0, .55)); }
/* .page-hero img is the full-bleed background photo: absolute, stretched
   and dimmed. A mark placed in the hero must opt out of all of it, and
   carries its own px size inline because every logo is scaled to its own
   optical weight. */
@media (max-width: 620px) {
  .brands { transform: scale(.82); transform-origin: left center; } }

/* a mark heading its own company block on two-company pages */
.company-block .mark { display: block; margin: 0 0 20px; }

/* — pending site button —
   Five of the companies have no public site yet. The button keeps the exact
   geometry of a live one so the row stays aligned, but drops the fill sweep,
   the arrow and the pointer — it reads as a placeholder, not a dead link. */
.btn.pending { color: var(--ink-60); border-color: var(--gold-soft);
  cursor: default; }
.btn.pending::before { content: none; }
.btn.pending:hover { color: var(--ink-60); border-color: var(--gold-soft); }
.btn.pending .dot { width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold-soft); }
.company-block .site.pending { color: var(--ink-40); cursor: default; }
