/* =========================================================
   EAY GROUP — one-page corporate site
   Brand: black #0E0E0E · red #DB2E36 · white, B&W photography,
   thin line grids, numbered lists, red CTA squares (eayindustries.ru / eayconsulting.com)
   ========================================================= */

:root {
  --bg: #0E0E0E;
  --bg-2: #141414;
  --surface: #1A1A1A;
  --line: #2B2B2B;
  --line-strong: #3A3A3A;
  --text: #F4F4F4;
  --muted: #A6A6A6;
  --red: #DB2E36;
  --red-hover: #EF3F47;
  --red-text: #F0565D;           /* red for small text on dark (AA contrast) */
  --paper: #F3F3F3;
  --ink: #0E0E0E;
  --ink-muted: #4F4F4F;

  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-zh: 'Onest', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-yue: 'Onest', 'PingFang HK', 'PingFang TC', 'Noto Sans HK', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;

  --container: 1440px;
  /* distance from the content edge to the screen edge, for full-bleed media */
  --bleed: calc((100vw - min(100vw, var(--container) + var(--gutter) * 2)) / 2 + var(--gutter));
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 140px);
  --header-h: 104px;
  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[data-lang="zh"] body { font-family: var(--font-zh); }
html[data-lang="yue"] body { font-family: var(--font-yue); }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; color: var(--red); }
strong { font-weight: 600; }
[hidden] { display: none !important; }

/* Hide untranslated UI until JS applies a language (no-JS keeps it visible) */
html.js.i18n-pending main,
html.js.i18n-pending .header,
html.js.i18n-pending .footer { visibility: hidden; }

:focus-visible { outline: 2px solid var(--red-hover); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--red); color: #fff; padding: 10px 16px; text-decoration: none; border-radius: var(--radius);
}
.skip-link:focus { top: 16px; }

/* ---------- Type ---------- */
.h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 500; letter-spacing: -0.02em; }
.h2::before {
  content: ""; display: block; width: 56px; height: 3px; background: var(--red); margin-bottom: 24px;
}
.h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; }
.lead { font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); max-width: 640px; margin-top: 20px; }
.muted { color: var(--muted); }
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text);
}
.kicker::before { content: ""; width: 32px; height: 2px; background: var(--red); }
html[data-lang="zh"] .kicker, html[data-lang="yue"] .kicker { letter-spacing: .3em; }

/* ---------- Buttons ---------- */
.btn {
  --h: 56px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 28px;
  font: inherit; font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn--sm { --h: 44px; padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-hover); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(14,14,14,.2); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn.is-loading span::after, .cta-square.is-loading span::after {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Flags ---------- */
.flag { width: 24px; height: 16px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }

/* ---------- Language dropdown ---------- */
.lang-select { position: relative; }
.lang-select__btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 12px;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--text);
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.lang-select__btn:hover { border-color: #666; }
.lang-select__chev { width: 16px; height: 16px; transition: transform .2s var(--ease); color: var(--muted); }
.lang-select.is-open .lang-select__chev { transform: rotate(180deg); }
.lang-select__list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 220px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.5); outline: none;
}
.lang-select__list li {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px;
  border-radius: 3px; cursor: pointer; font-size: 15px; color: var(--text);
}
.lang-select__list li.is-active { background: #262626; }
.lang-select__list li .tick { width: 16px; height: 16px; margin-left: auto; color: var(--red-text); opacity: 0; }
.lang-select__list li[aria-selected="true"] .tick { opacity: 1; }
.lang-select__list li[aria-selected="true"] span { font-weight: 600; }

.lang-select--lg .lang-select__btn { width: 100%; min-height: 56px; padding: 0 16px; font-size: 17px; background: var(--bg); }
.lang-select--lg .lang-select__chev { margin-left: auto; width: 20px; height: 20px; }
.lang-select--lg .lang-select__list { left: 0; right: 0; min-width: 0; }
.lang-select--lg .lang-select__list li { min-height: 52px; font-size: 16px; }

/* ---------- Language popup ---------- */
.lang-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.lang-modal__backdrop { position: absolute; inset: 0; background: rgba(6,6,6,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s var(--ease); }
.lang-modal__panel {
  position: relative; width: 100%; max-width: 460px; overflow: visible;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px;
  padding: 40px 32px 32px;
  opacity: 0; transform: translateY(16px) scale(.98);
  transition: opacity .25s var(--ease), transform .3s var(--ease);
}
.lang-modal.is-visible .lang-modal__backdrop { opacity: 1; }
.lang-modal.is-visible .lang-modal__panel { opacity: 1; transform: none; }
.lang-modal__logo { width: 168px; margin-bottom: 32px; }
.lang-modal__title { font-size: 22px; font-weight: 500; margin-bottom: 24px; }
.lang-modal .lang-select { margin-bottom: 16px; }
@media (prefers-reduced-motion: reduce) {
  .lang-modal__panel, .lang-modal__backdrop { transition: none; }
}

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
.header.is-scrolled, .header.menu-open { background: rgba(14,14,14,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
/* backdrop-filter would make the fixed mobile nav position relative to the header */
.header.menu-open { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
.ticker { height: 32px; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(14,14,14,.5); font-size: 13px; color: var(--muted); display: flex; align-items: center; }
.ticker__track { display: flex; gap: 40px; white-space: nowrap; animation: ticker 60s linear infinite; padding-left: 40px; }
.ticker__track span { flex: none; }
@keyframes ticker { to { transform: translateX(-33.333%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

.header__bar { display: flex; align-items: center; gap: 32px; height: 72px; }
.header__logo { flex: none; display: block; }
.header__logo img { width: 148px; }
.nav { display: flex; align-items: center; gap: 28px; margin: 0 auto; }
.nav a { position: relative; font-size: 15px; text-decoration: none; color: #DCDCDC; padding: 10px 0; transition: color .2s var(--ease); white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover { color: #fff; }
.nav a:hover::after { transform: scaleX(1); }
.nav__cta-mobile { display: none; }
.header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; transition: transform .25s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.header.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header.menu-open .burger span:nth-child(2) { opacity: 0; }
.header.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .nav { gap: 20px; }
  .nav a { font-size: 14px; }
}
@media (max-width: 1040px) {
  .burger { display: block; }
  .header__cta { display: none; }
  .nav {
    position: fixed; top: 104px; left: 0; right: 0; bottom: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 16px var(--gutter) 40px;
    background: var(--bg); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .header.menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a { font-size: 22px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav__cta-mobile { display: block; color: var(--red-text) !important; }
}
@media (max-width: 480px) {
  .header__logo img { width: 120px; }
  .header__bar { gap: 12px; }
}

/* ---------- Hero (eayindustries.ru layout) ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(14,14,14,.55) 0%, rgba(14,14,14,0) 30%, rgba(14,14,14,0) 60%, rgba(14,14,14,.9) 100%); }
.hero__inner { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(32px, 5vw, 64px); }
.hero__note { align-self: flex-end; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; max-width: 240px; text-align: right; color: var(--muted); font-size: 14px; }
.hero__note svg { width: 44px; height: 44px; fill: none; stroke: #8A8A8A; stroke-width: 1; }
.hero__bottom { margin-top: auto; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.hero__title { font-size: clamp(34px, 4.6vw, 64px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.08; max-width: 18ch; margin: 20px 0 20px; }
html[data-lang="zh"] .hero__title, html[data-lang="yue"] .hero__title { max-width: 13em; line-height: 1.25; letter-spacing: 0; }
html[data-lang="zh"] .hero__title em, html[data-lang="yue"] .hero__title em,
html[data-lang="zh"] .h2 em, html[data-lang="yue"] .h2 em { display: inline-block; }
html[data-lang="ru"] .hero__title { max-width: 20ch; }
.hero__sub { max-width: 600px; font-size: clamp(15px, 1.2vw, 18px); color: #C9C9C9; }

/* red CTA square — signature element of eayindustries.ru */
.cta-square {
  position: relative; display: flex; align-items: flex-end; width: 280px; height: 200px; padding: 22px 24px;
  background: var(--red); color: #fff; text-decoration: none; border: 0; cursor: pointer;
  font: inherit; font-size: 21px; font-weight: 400; line-height: 1.25; text-align: left;
  transition: background-color .25s var(--ease);
}
.cta-square:hover { background: var(--red-hover); }
.cta-square__arrow { position: absolute; top: 18px; right: 18px; width: 22px; height: 22px; fill: none; stroke: rgba(255,255,255,.85); stroke-width: 1.6; transition: transform .25s var(--ease); }
.cta-square:hover .cta-square__arrow { transform: translate(3px, -3px); }
.cta-square--wide { width: 100%; height: 120px; }
.cta-square[disabled] { opacity: .75; cursor: progress; }
.cta-square.is-loading span::after { content: ""; display: inline-block; width: 16px; height: 16px; margin-left: 12px; vertical-align: -2px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@media (max-width: 760px) {
  .hero__bottom { grid-template-columns: 1fr; gap: 28px; }
  .hero__note { display: none; }
  .cta-square { width: 100%; height: 132px; }
}

/* ---------- Diagonal-cut photo collage (EAY GROUP deck style) ---------- */
.slices { --k: 84px; --gap: 16px; position: relative; display: flex; height: clamp(260px, 32vw, 460px); }
.slices--tall { height: clamp(320px, 42vw, 600px); }
.slices img {
  flex: 1 1 0; min-width: 0; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05);
  clip-path: polygon(var(--k) 0, 100% 0, calc(100% - var(--k)) 100%, 0 100%);
  transition: filter .6s var(--ease);
}
.slices img:first-child { margin-left: 0; clip-path: polygon(0 0, 100% 0, calc(100% - var(--k)) 100%, 0 100%); }
.slices img:last-child { clip-path: polygon(var(--k) 0, 100% 0, 100% 100%, 0 100%); }
.slices--2 img:first-child { flex-grow: 1.25; }
.slices--3 img:nth-of-type(2) { flex-grow: 1.2; }
.slices:hover img { filter: grayscale(.15) contrast(1.05); }
.slices img + img { margin-left: calc(var(--k) * -1 + var(--gap)); }
/* the red diagonal of the EAY logo, set into the first cut */
.slices__slash { flex: 0 0 calc(var(--k) + var(--gap)); height: 100%; margin-left: calc(var(--k) * -1); position: relative; z-index: 1;
  background: var(--red); clip-path: polygon(calc(var(--k) + 6px) 0, calc(var(--k) + var(--gap) - 6px) 0, calc(var(--gap) - 6px) 100%, 6px 100%); }
.slices__slash + img { margin-left: calc(var(--k) * -1); }
@media (max-width: 560px) { .slices { --k: 36px; --gap: 12px; height: 240px; } .slices--tall { height: 300px; } .slices__slash { clip-path: polygon(calc(var(--k) + 4px) 0, calc(var(--k) + var(--gap) - 4px) 0, calc(var(--gap) - 4px) 100%, 4px 100%); } }
@media (prefers-reduced-motion: reduce) { .slices img { transition: none; } }

@media (min-width: 961px) {
  .about__media, .trade__media, .panel .slices { margin-right: calc(var(--bleed) * -1); }
  .brands__media { margin-left: calc(var(--bleed) * -1); }
  .about__media .slices img:last-child, .trade__media .slices img:last-child, .panel .slices img:last-child { clip-path: polygon(var(--k) 0, 100% 0, 100% 100%, 0 100%); }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--section-y) 0; }
.section + .section { border-top: 1px solid #1c1c1c; }
.section__head { margin-bottom: clamp(40px, 6vw, 72px); }
.section__head--center { text-align: center; }
.section__head--center .lead { margin-left: auto; margin-right: auto; }
.h2--center::before { margin-left: auto; margin-right: auto; }
img.bw, .bw img { filter: grayscale(1); }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__text p { font-size: 16px; color: var(--muted); margin-top: 18px; max-width: 620px; }
.about__text p:first-of-type { margin-top: 32px; font-size: 19px; color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
html[data-lang="ru"] .stats { grid-template-columns: repeat(6, 1fr); }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 28px 20px 0 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat__v { font-size: clamp(28px, 3vw, 44px); font-weight: 400; letter-spacing: -0.02em; white-space: nowrap; }
.stat__l { font-size: 14px; color: var(--muted); }
@media (max-width: 1100px) { html[data-lang="ru"] .stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px) {
  .about__grid { grid-template-columns: 1fr; }
  .stats, html[data-lang="ru"] .stats { grid-template-columns: repeat(2, 1fr); }
  .stat, .stat + .stat { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Company tabs ---------- */
.tabs { display: grid; grid-template-columns: minmax(280px, 0.8fr) 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.tabs__list { display: flex; flex-direction: column; }
.tabs__group { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #7E7E7E; margin: 28px 0 8px; }
.tabs__group:first-child { margin-top: 0; }
html[data-lang="zh"] .tabs__group, html[data-lang="yue"] .tabs__group { letter-spacing: .3em; }
.tabs__list [role="tab"] {
  display: flex; align-items: baseline; gap: 20px; width: 100%; min-height: 52px; padding: 14px 0;
  background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left;
  font: inherit; font-size: 17px; font-weight: 500; letter-spacing: .03em; color: #8E8E8E;
  transition: color .2s var(--ease);
}
.tabs__list [role="tab"] span { font-size: 13px; font-weight: 500; color: inherit; min-width: 22px; font-variant-numeric: tabular-nums; }
.tabs__list [role="tab"]:hover { color: #E6E6E6; }
.tabs__list [role="tab"][aria-selected="true"] { color: var(--red-text); }
.tabs__panels { position: sticky; top: 120px; }
.panel { animation: panelIn .45s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel__body { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; padding-top: 28px; }
.panel__body h3 { font-size: 22px; font-weight: 500; letter-spacing: .02em; }
.panel__body p { color: var(--muted); font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .panel { animation: none; } }
@media (max-width: 960px) {
  .tabs { grid-template-columns: 1fr; }
  .tabs__panels { position: static; }
  .panel__body { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Line-grid cells (eayindustries.ru "Индустрии" / eayconsulting "Advantages") ---------- */
.cells { display: grid; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cells--4 { grid-template-columns: repeat(4, 1fr); }
.cells--3 { grid-template-columns: repeat(3, 1fr); }
.cells li { padding: 32px 28px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .25s var(--ease); }
.cells li:hover { background: #151515; }
.cells__n { display: block; font-size: 13px; color: var(--red-text); font-weight: 500; margin-bottom: 40px; }
.cells h3 { font-size: 19px; font-weight: 500; }
.cells p { margin-top: 10px; font-size: 15px; color: var(--muted); }
@media (max-width: 960px) { .cells--4, .cells--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cells--4, .cells--3 { grid-template-columns: 1fr; } .cells li { padding: 24px 20px; } .cells__n { margin-bottom: 20px; } }

/* ---------- Trade ---------- */
.trade__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.note { margin-top: 32px; font-size: 17px; max-width: 760px; }
.note::before { content: ""; display: inline-block; width: 24px; height: 2px; background: var(--red); vertical-align: middle; margin-right: 14px; }
@media (max-width: 960px) { .trade__grid { grid-template-columns: 1fr; } }

/* ---------- Brands (RU) ---------- */
.brands__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.big-num { font-size: clamp(64px, 8vw, 112px); font-weight: 400; letter-spacing: -0.03em; line-height: 1; margin-top: 32px; }
.big-num__l { font-size: 19px; margin-top: 10px; }
.brands .cells { margin-top: 40px; }
.brands .cells li { padding: 24px 20px; }
@media (max-width: 960px) { .brands__grid { grid-template-columns: 1fr; } }

/* ---------- Industries: cards with diagonal-cut photo ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
.ind-grid li { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-content: start; }
.ind-grid figure { grid-column: 1 / -1; margin: 0 0 18px; aspect-ratio: 16 / 10; overflow: hidden; position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 82% 100%, 0 100%); }
.ind-grid img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .5s var(--ease), transform .8s var(--ease); }
.ind-grid li:hover img { filter: grayscale(0); transform: scale(1.04); }
.ind-grid b::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 0; height: 1px; background: var(--red); transition: width .5s var(--ease); }
.ind-grid li:hover b::after { width: 100%; }
.ind-grid span { font-size: 13px; color: var(--red-text); font-weight: 500; padding-top: 3px; }
.ind-grid b { position: relative; font-size: 18px; font-weight: 500; line-height: 1.3; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
@media (max-width: 960px) { .ind-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ind-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (prefers-reduced-motion: reduce) { .ind-grid img { transition: none; } .ind-grid li:hover img { transform: none; } }

/* ---------- Clients (RU) — "Наши партнеры" grid ---------- */
.logos { display: grid; grid-template-columns: repeat(4, 1fr); }
.logos li { display: grid; place-items: center; height: 150px; padding: 28px 36px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.logos li:nth-child(4n) { border-right: 0; }
.logos li:nth-last-child(-n+4) { border-bottom: 0; }
.logos img { max-width: min(100%, 190px); max-height: 54px; width: auto; height: auto; object-fit: contain; opacity: .5; transition: opacity .25s var(--ease); }
.logos li:hover img { opacity: 1; }
@media (max-width: 760px) {
  .logos { grid-template-columns: repeat(2, 1fr); }
  .logos li { height: 112px; padding: 20px 22px; }
  .logos li:nth-child(4n) { border-right: 1px solid var(--line-strong); }
  .logos li:nth-child(2n) { border-right: 0; }
  .logos li:nth-last-child(-n+4) { border-bottom: 1px solid var(--line-strong); }
  .logos li:nth-last-child(-n+2) { border-bottom: 0; }
  .logos img { max-height: 48px; }
}

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; }
.step { padding-top: 28px; border-top: 1px solid var(--line); position: relative; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 1px; background: var(--red); transition: width .8s var(--ease); }
.steps.is-in .step::before { width: 100%; }
.step:nth-child(2)::before { transition-delay: .15s; } .step:nth-child(3)::before { transition-delay: .3s; } .step:nth-child(4)::before { transition-delay: .45s; }
.step__n { display: block; font-size: 14px; color: var(--muted); margin-bottom: 48px; }
.step h3 { font-size: 20px; font-weight: 500; }
.step p { margin-top: 12px; color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step__n { margin-bottom: 20px; } }

/* ---------- Map ---------- */
.map-scroll { margin-left: calc(var(--bleed) * -1); margin-right: calc(var(--bleed) * -1); }
.map { position: relative; width: 100%; aspect-ratio: 1440 / 462; }
.map__base { position: absolute; inset: 0; width: 100%; height: 100%;
  /* the source map is a crop: fade its cut edges into the background */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 16%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 16%, #000 82%, transparent 100%); mask-composite: intersect; }
.map__routes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map__routes .route { fill: none; stroke: var(--red); stroke-width: 1.6; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; opacity: .85; }
.map-scroll.is-in .route { animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -440; } }
.map__pins { position: absolute; inset: 0; }
.pin { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; }
.pin__dot { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(219,46,54,.25); flex: none; }
.pin__dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--red); opacity: 0; animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
.pin__label { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 13px; color: #DADADA; text-shadow: 0 1px 6px #000; }
.pin--left .pin__label { left: auto; right: 18px; }
.pin--hub .pin__dot { width: 18px; height: 18px; background: #fff; box-shadow: 0 0 0 5px var(--red); }
.pin--hub .pin__label { font-size: 16px; font-weight: 600; color: #fff; left: 26px; }
.map__legend { display: flex; align-items: center; gap: 12px; margin-top: 32px; font-size: 14px; color: var(--muted); }
.map__legend span:first-child { width: 40px; border-top: 2px dashed var(--red); }
@media (prefers-reduced-motion: reduce) { .map-scroll.is-in .route, .pin__dot::after { animation: none; } }
@media (max-width: 720px) {
  .map-scroll { overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .map { width: 680px; }
  .pin__label { font-size: 11px; left: 12px; }
  .pin--left .pin__label { right: 12px; }
  .pin__dot { width: 8px; height: 8px; }
  .pin--hub .pin__dot { width: 12px; height: 12px; box-shadow: 0 0 0 3px var(--red); }
  .pin--hub .pin__label { font-size: 13px; left: 18px; }
}

/* ---------- Team (eayconsulting.com "(01) department" list) ---------- */
.depts { border-top: 1px solid var(--line); }
.dept { display: grid; grid-template-columns: 90px 1fr 1.2fr; gap: 24px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line); transition: padding-left .3s var(--ease); }
.dept:hover { padding-left: 12px; }
.dept:hover .dept__n { color: var(--red-text); }
.dept__n { font-size: 14px; color: var(--muted); transition: color .2s; }
.dept h3 { font-size: 20px; font-weight: 500; }
.dept p { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .dept { grid-template-columns: 1fr; gap: 8px; } .dept:hover { padding-left: 0; } }
@media (prefers-reduced-motion: reduce) { .dept:hover { padding-left: 0; } }

/* ---------- Contact (eayindustries.ru "Оставьте заявку" block) ---------- */
.contact { background: #CFCFCF; color: var(--ink); border-top: 0 !important; }
.contact .h2 { color: var(--ink); }
.contact em { color: #C8222A; }
.contact .lead { color: #555; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__dl { margin: 48px 0 0; display: grid; gap: 28px; }
.contact__dl dt { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #555; }
.contact__dl dd { margin: 6px 0 0; font-size: 22px; font-weight: 500; }
.contact__dl a { color: var(--ink); text-decoration: none; border-bottom: 1px solid #C8222A; }
.contact__dl a:hover { color: #C8222A; }
.form { display: block; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; color: #2A2A2A; }
.field .req { color: #C8222A; }
.field .opt { color: #666; font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 0;
  font: inherit; font-size: 16px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid #8C8C8C; border-radius: 0;
  transition: border-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #707070; }
.field input:hover, .field textarea:hover { border-bottom-color: #444; }
.field input:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--red); padding-bottom: 13px; }
.field.has-error input, .field.has-error textarea { border-bottom-color: #B3141C; }
.field__err { margin-top: 6px; font-size: 13px; color: #B3141C; }
.field__err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: 13px; color: #555; margin: 8px 0 24px; }
.form__status { margin-top: 16px; font-size: 15px; font-weight: 500; }
.form__status:empty { display: none; }
.form__status.is-ok { color: #1D7A45; }
.form__status.is-error { color: #B3141C; }
.contact :focus-visible { outline-color: var(--ink); }
@media (max-width: 960px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } .contact__dl dd { font-size: 19px; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0; background: #0A0A0A; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.footer__inner img { width: 132px; }
.footer__tag { color: var(--muted); font-size: 14px; flex: 1 1 280px; }
.footer__copy { color: #7E7E7E; font-size: 13px; }
.contact__dl dd[data-i18n="contact.hqv"] { font-size: 17px; line-height: 1.5; max-width: 440px; }
