/* ============================================================
   АГАТ-КОМПОЗИТ / Zhejiang Eastern DFHB — Corporate Catalogue
   Design: modern industrial B2B, navy + teal
   ============================================================ */

/* Шрифты: preconnect + preload в HTML, здесь только переменные (--font / --mono). */

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #0B1D35;
  --navy-mid:    #152D4E;
  --navy-light:  #1E4172;
  --blue:        #2563A8;
  --accent:      #00A3C4;
  --accent-light:#33BDD9;
  --accent-glow: rgba(0,163,196,.15);
  --white:       #FFFFFF;
  --off-white:   #F4F8FC;
  --gray-light:  #EBF0F7;
  --gray-mid:    #C8D5E5;
  --gray-text:   #7A94B0;
  --text:        #1A2D42;
  --text-light:  #4A637D;
  --border:      #D3DDE9;
  --shadow-sm:   0 2px 8px rgba(11,29,53,.08);
  --shadow-md:   0 6px 24px rgba(11,29,53,.12);
  --shadow-lg:   0 16px 48px rgba(11,29,53,.18);
  --radius:      8px;
  --radius-lg:   16px;
  --transition:  .22s ease;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --mono:        'Roboto Mono', 'Courier New', monospace;
  --table-max-width: min(100%, 900px);
  /* Чуть уже обычных таблиц — блок муфт и соединительных элементов */
  --table-max-width-coupling: min(100%, 840px);
  --table-font-size: 14px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  font-size: 1.125rem;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }

/* ─── Typography ─── */
h1,h2,h3,h4,h5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }

p { margin-bottom: .9rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.125rem;
  color: var(--text-light);
  line-height: 1.75;
}

.text-accent { color: var(--accent); }
.text-muted  { color: var(--gray-text); }
.text-white  { color: var(--white); }

/* ─── Layout ─── */
.container {
  max-width: 1220px;
  margin: 0 auto;
  padding-left: max(28px, env(safe-area-inset-left, 0px), min(7vw, 56px));
  padding-right: max(28px, env(safe-area-inset-right, 0px), min(7vw, 56px));
}
.container--wide { max-width: 1400px; }

.section { padding: 80px 0; }
.section--sm { padding: 50px 0; }
.section--lg { padding: 110px 0; }

.section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-lead {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 680px;
  margin-bottom: 48px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 28px; }

/* ─── Navbar ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.navbar__inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 40px;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.navbar__logo-mark {
  display: none;
  flex-shrink: 0;
}
.navbar__logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.navbar__logo-name { font-size: 1.05rem; font-weight: 700; color: var(--white); letter-spacing: .04em; }
.navbar__logo-sub  { display: none; }
.navbar__nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.navbar__link {
  font-size: .82rem; font-weight: 500;
  color: rgba(255,255,255,.7);
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.navbar__link:hover { color: var(--white); }
.navbar__link.active { color: var(--accent); }
.navbar__cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .82rem;
}
.navbar__cta:hover { background: var(--accent-light) !important; color: var(--white); }
.navbar__burger { display: none; cursor: pointer; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.navbar__burger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--transition); }

/* ─── Hero ─── */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  min-height: 52vh;
  display: flex; align-items: center;
}
.hero > .container { width: 100%; }
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .28;
  filter: saturate(.6);
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--navy) 40%, transparent 100%);
}
.hero__inner {
  position: relative; z-index: 1;
  padding: 48px 0;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,163,196,.15);
  border: 1px solid rgba(0,163,196,.3);
  padding: 6px 14px; border-radius: 100px;
  font-size: .75rem; font-weight: 600;
  color: var(--accent-light); letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero__title span { color: var(--accent); }
.hero__sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.7);
  max-width: 600px;
  margin-bottom: 20px;
  line-height: 1.7;
}
.hero__partner-cn {
  font-size: clamp(1.14rem, 2.55vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,.92);
  max-width: 640px;
  margin: 0 0 32px;
  line-height: 1.65;
  padding: 0 0 0 14px;
  border-left: 3px solid var(--accent);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
}
.hero__partner-cn-label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 8px;
  font-family: var(--font);
}
.hero__partner-cn-link {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 10px;
  row-gap: 8px;
  color: #7181BB;
  text-decoration: none;
  transition: color var(--transition);
}
.hero__partner-cn-link:hover {
  color: #33559F;
}
.hero__partner-cn-logo {
  height: 42px;
  width: auto;
  flex-shrink: 0;
  display: block;
}
.hero__partner-cn-name {
  letter-spacing: inherit;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: .9rem; font-weight: 600;
  padding: 12px 24px; border-radius: var(--radius);
  cursor: pointer; border: none; transition: all var(--transition);
  text-decoration: none;
}
.btn--primary {
  background: var(--accent);
  color: var(--white);
}
.btn--primary:hover { background: var(--accent-light); color: var(--white); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,163,196,.35); }
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn--outline:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.08); }
.btn--ghost {
  background: transparent;
  color: var(--accent);
  padding: 10px 0;
}
.btn--ghost:hover { color: var(--accent-light); gap: 12px; }
.btn--sm { font-size: .82rem; padding: 8px 18px; }
.btn--lg { font-size: 1rem; padding: 14px 32px; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ─── Cards ─── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__img { width: 100%; height: 220px; object-fit: cover; }
.card__body { padding: 24px; }
.card__tag {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-glow);
  padding: 3px 10px; border-radius: 100px; margin-bottom: 12px;
}
.card__title { font-size: 1.1rem; margin-bottom: 8px; }
.card__text { font-size: 1.125rem; color: var(--text-light); line-height: 1.65; }
.card__meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: .82rem; color: var(--gray-text);
}
.card__meta strong { color: var(--text); }

/* ─── Feature Cards ─── */
.feature-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-md); border-color: var(--accent); }
.feature-card__icon {
  width: 48px; height: 48px;
  background: var(--accent-glow);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}
.feature-card__icon svg { width: 24px; height: 24px; }
.feature-card__title { font-size: 1rem; margin-bottom: 8px; }
.feature-card__text { font-size: 1.125rem; color: var(--text-light); line-height: 1.6; }

/* ─── Stats Bar ─── */
.stats-bar {
  background: var(--navy);
  padding: 40px 0;
}
.stats-bar__grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 40px; align-items: center;
}
.stat { text-align: center; }
.stat__number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.stat__number span { color: var(--accent); }
.stat__label { font-size: .8rem; color: var(--gray-text); text-transform: uppercase; letter-spacing: .08em; }

/* ─── Timeline wide (single column) ─── */
.tl-wide {
  position: relative;
  max-width: 780px;
}
/* Vertical line through the dot column (center of 32px gap = 88px from left) */
.tl-wide::before {
  content: '';
  position: absolute;
  left: 88px; top: 28px; bottom: 28px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--navy-light));
}
.tl-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 32px;
  position: relative;
}
.tl-year {
  padding: 20px 0;
  font-size: 1.125rem; font-weight: 700;
  color: var(--accent); letter-spacing: .04em;
  text-align: right;
  white-space: nowrap;
  line-height: 1.4;
}
.tl-body {
  position: relative;
  padding: 20px 0 20px 28px;
}
/* Dot — vertically centered on first text line */
.tl-body::before {
  content: '';
  position: absolute;
  left: -20px; top: 20px;
  transform: translateY(calc(0.7em - 6px));
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--off-white);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px var(--off-white);
}
.tl-item--current .tl-body::before {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--off-white), 0 0 14px rgba(0,163,196,.45);
}
.tl-title { font-size: 1.125rem; margin-bottom: 6px; }
.tl-text { font-size: 1.125rem; color: var(--text-light); line-height: 1.65; margin: 0; }

/* ─── Timeline ─── */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: '';
  position: absolute; left: 8px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(to bottom, var(--accent), var(--navy-light));
}
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item__dot {
  position: absolute; left: -36px; top: 4px;
  width: 16px; height: 16px;
  background: var(--accent);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-item__year {
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.timeline-item__title { font-size: 1rem; margin-bottom: 6px; }
.timeline-item__text { font-size: 1.125rem; color: var(--text-light); line-height: 1.65; }

/* ─── Section with image ─── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse .split__content { order: 2; }
.split--reverse .split__visual { order: 1; }
.split__visual { background: none; }
.split__visual img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: block; }
.split__eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }

/* ─── Tables ─── */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  max-width: var(--table-max-width);
  margin-inline: auto;
}
.table-wrap--coupling {
  max-width: var(--table-max-width-coupling);
  margin-inline: 0;
}
.data-table {
  width: 100%; border-collapse: collapse;
  font-size: var(--table-font-size); line-height: 1.35;
  background: var(--white);
}
/* Выше специфичность, чем у одиночного .pipe-table в инлайне — иначе inherit тянет 1.125rem с body (≈18px) */
table.data-table.pipe-table,
table.data-table.coupling-spec-table {
  font-size: var(--table-font-size);
}
.data-table th,
.data-table td {
  font-size: var(--table-font-size);
  font-weight: 400;
}
.data-table thead th {
  background: var(--navy);
  color: var(--white);
  letter-spacing: .04em; text-transform: uppercase;
  padding: 10px 13px;
  white-space: nowrap;
  text-align: center;
  border: none;
}
.data-table thead th:first-child { text-align: left; }
.data-table.pipe-table thead th:first-child { text-align: center; }
.data-table thead .th-group {
  background: var(--navy-mid);
  letter-spacing: .08em;
  padding: 6px 12px;
}
.data-table tbody tr { border-bottom: 1px solid var(--gray-light); }
.data-table tbody tr.subrow { background: rgba(0,163,196,.04); }
.data-table td {
  padding: 9px 13px; text-align: center;
  color: var(--text);
}
.data-table td:first-child { text-align: left; }
.data-table.pipe-table tbody td:first-child { text-align: center; }
.data-table .td-od { color: var(--navy); white-space: nowrap; }
.data-table .td-label {
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--gray-text); padding-left: 22px;
}
.data-table .td-num { font-family: var(--mono); }
.data-table .row-head td { border-top: 2px solid var(--border); }
.data-table tfoot td {
  background: var(--gray-light);
  color: var(--text-light);
  padding: 10px 13px; font-style: italic;
}
.badge-grp {
  display: inline-block;
  background: rgba(0,163,196,.12); color: var(--accent);
  font-size: var(--table-font-size); font-weight: 400; letter-spacing: .06em;
  padding: 2px 7px; border-radius: 4px; text-transform: uppercase;
}
.badge-fs {
  display: inline-block;
  background: rgba(37,99,168,.12); color: var(--blue);
  font-size: var(--table-font-size); font-weight: 400; letter-spacing: .06em;
  padding: 2px 7px; border-radius: 4px; text-transform: uppercase;
}

.data-table sup {
  font-size: var(--table-font-size);
  font-weight: 400;
  line-height: 1;
  vertical-align: super;
}

.data-table strong,
.data-table b {
  font-weight: 400;
}

/* ─── Material Table ─── */
.mat-table .mat-row-value { font-family: var(--mono); }
.mat-table .mat-row-dir  { color: var(--gray-text); }
.mat-table td:nth-child(1),
.mat-table td:nth-child(2) { border-right: 1px solid var(--border); }
.mat-table td:nth-child(3) { border-right: 1px solid var(--border); }

/* ─── Tabs ─── */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 32px; border-bottom: 2px solid var(--border); }
.tabs.tabs--pipe {
  max-width: var(--table-max-width);
  margin-inline: auto;
  width: 100%;
}
.tab-btn {
  font-family: var(--font); font-size: .88rem; font-weight: 500;
  color: var(--text-light); background: none; border: none; cursor: pointer;
  padding: 10px 20px; border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all var(--transition); border-radius: 6px 6px 0 0;
}
.tab-btn:hover { color: var(--navy); background: var(--off-white); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── Accordion ─── */
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; }
.accordion-trigger {
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 16px 20px; display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font); font-size: .95rem; font-weight: 600; color: var(--navy);
  transition: background var(--transition);
}
.accordion-trigger:hover { background: var(--off-white); }
.accordion-trigger[aria-expanded="true"] { background: var(--off-white); color: var(--accent); }
.accordion-icon {
  width: 20px; height: 20px; flex-shrink: 0; color: var(--gray-text);
  transition: transform var(--transition);
}
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(180deg); color: var(--accent); }
.accordion-body { padding: 0 20px; max-height: 0; overflow: hidden; transition: all .35s ease; }
.accordion-body.open { max-height: 5000px; padding: 0 20px 20px; }

/* ─── Info Boxes ─── */
.info-box {
  background: var(--off-white); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px; margin: 24px 0;
}
.info-box p { font-size: 1.125rem; color: var(--text-light); }
.info-box p:last-child { margin: 0; }

/* ─── Dark Section ─── */
.dark-section {
  background: var(--navy);
  color: var(--white);
}
.dark-section h2, .dark-section h3, .dark-section h4 { color: var(--white); }
.dark-section .section-lead { color: rgba(255,255,255,.65); }
.dark-section p { color: rgba(255,255,255,.75); }

/* ─── Mid-tone section ─── */
.mid-section { background: var(--off-white); }

/* ─── Page Hero (inner pages) ─── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 64px 0 56px;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; right: -80px; top: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,163,196,.12) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero__breadcrumb { display: none; }
.page-hero__title { color: var(--white); margin-bottom: 12px; }
.page-hero__sub { color: rgba(255,255,255,.65); font-size: 1.05rem; max-width: 860px; }

/* ─── Highlight list ─── */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: .95rem; color: var(--text-light);
}
.check-list li::before {
  content: '';
  width: 20px; height: 20px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2300A3C4'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z' clip-rule='evenodd'/%3E%3C/svg%3E") center/contain no-repeat;
  margin-top: 2px;
}

/* ─── Project Gallery ─── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px,1fr));
  gap: 28px;
}
.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-card__img { width: 100%; height: 240px; object-fit: cover; }
.project-card__body { padding: 24px; }
.project-card__tag { color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.project-card__title { font-size: 1.1rem; color: var(--navy); margin-bottom: 10px; }
.project-card__text { font-size: 1.125rem; color: var(--text-light); line-height: 1.65; }
.project-card__specs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);
}
.project-spec {
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 10px;
  font-size: .75rem; color: var(--text);
  font-family: var(--mono);
}
.project-spec strong { color: var(--navy); }

/* ─── Gallery grid ─── */
.photo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; border-radius: var(--radius-lg); overflow: hidden; }
.photo-grid img { width: 100%; height: 180px; object-fit: cover; transition: transform .4s ease; }
.photo-grid img:hover { transform: scale(1.04); }

/* ─── Map / Contact blocks ─── */
.contact-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { margin-bottom: 20px; }
.contact-item { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.contact-item svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-item__label { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-text); margin-bottom: 2px; }
.contact-item__value { font-size: .95rem; color: var(--text); }
.contact-item__value a { color: var(--text); }
.contact-item__value a:hover { color: var(--accent); }

/* ─── Standards badges ─── */
.standard-list { display: flex; flex-wrap: wrap; gap: 10px; }
.standard-badge {
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px 16px;
  font-size: .82rem; font-weight: 600; color: var(--navy);
  font-family: var(--mono);
}

/* ─── Footer ─── */
.footer {
  background: var(--navy);
  padding: 60px 0 32px;
  color: rgba(255,255,255,.6);
}
.footer .container {
  max-width: 1320px;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(280px, 1.35fr) minmax(200px, 1fr);
  gap: 48px 56px;
  margin-bottom: 48px;
}
.footer__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer__about { font-size: .85rem; line-height: 1.7; max-width: 360px; }
.footer__grid > div:nth-child(2) {
  justify-self: center;
  width: fit-content;
  max-width: 100%;
}
.footer__heading { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  column-gap: 0;
  row-gap: 10px;
  align-items: start;
}
.footer__links li {
  margin: 0;
  padding: 0;
}
.footer__links a {
  font-size: .85rem;
  line-height: 1.5;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
  display: block;
}
.footer__links a:hover { color: var(--accent); }
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .85rem;
  line-height: 1.5;
}
.footer__contact > div {
  margin: 0;
  padding: 0;
}
.footer__contact a {
  line-height: 1.5;
  display: block;
}
.footer__bar {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer__copy { font-size: .8rem; }
.footer__bar-links { display: flex; gap: 20px; }
.footer__bar-links a { font-size: .8rem; color: rgba(255,255,255,.4); }
.footer__bar-links a:hover { color: var(--accent); }

/* ─── Scroll reveal (disabled) ─── */
.reveal { opacity: 1; transform: none; }
.reveal.visible { opacity: 1; transform: none; }

/* ─── Mobile Menu Overlay ─── */
.mobile-menu {
  display: none;
  position: fixed; inset: 0;
  background: var(--navy);
  z-index: 800;
  flex-direction: column;
  padding-top: 80px;
  padding-bottom: 40px;
  padding-left: max(28px, env(safe-area-inset-left, 0px), min(7vw, 56px));
  padding-right: max(28px, env(safe-area-inset-right, 0px), min(7vw, 56px));
  gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu__link {
  font-size: 1.1rem; font-weight: 500; color: rgba(255,255,255,.8);
  padding: 14px 16px; border-radius: var(--radius);
  transition: all var(--transition);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mobile-menu__link:hover { color: var(--accent); }
.mobile-menu__link.active { color: var(--accent); }

/* ─── Homepage: разделы сайта ─── */
.home-previews {
  background: var(--off-white);
}
.home-previews__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 871px) {
  .home-previews__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .home-previews__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.preview-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  color: var(--text);
  text-decoration: none;
}
.preview-card:hover {
  border-color: rgba(0, 163, 196, 0.45);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: var(--text);
}
.preview-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray-light);
}
.preview-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.preview-card:hover .preview-card__thumb img {
  transform: scale(1.03);
}
.preview-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}
.preview-card__title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.25;
}
.preview-card__subtitle {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.45;
  margin: 0 0 10px;
}
.preview-card__text {
  font-size: .92rem;
  color: var(--text-light);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.preview-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy-light);
}
.preview-card:hover .preview-card__more {
  color: var(--navy);
}
.preview-card__more svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ─── Utilities ─── */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-56 { margin-bottom: 56px; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-16 { gap: 16px; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
  }
  .footer__grid > div:nth-child(2) {
    justify-self: stretch;
    width: auto;
    max-width: none;
  }
  /* Навигация: две узкие колонки по содержимому, без лишнего «разрыва» между ними */
  .footer__links {
    grid-template-columns: max-content max-content;
    column-gap: 18px;
    row-gap: 12px;
    width: fit-content;
    max-width: 100%;
  }
  .stats-bar__grid { grid-template-columns: repeat(2,1fr); gap: 28px; }
}

@media (max-width: 871px) {
  .navbar__nav { display: none; }
  .navbar__burger { display: flex; margin-left: auto; }
  .grid-2, .grid-3, .split { grid-template-columns: 1fr; }
  .split--reverse .split__content, .split--reverse .split__visual { order: unset; }
  .split__visual img { height: 280px; }
  .section { padding: 56px 0; }
  .hero { min-height: 75vh; }
  .photo-grid { grid-template-columns: repeat(2,1fr); }
  .stats-bar__grid { grid-template-columns: repeat(2,1fr); }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .stats-bar__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .tabs::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
  .tab-btn { white-space: nowrap; }
  /* Узкий экран: навигация одним столбцом, равные интервалы между пунктами */
  .footer__links {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
    column-gap: 0;
    row-gap: 12px;
    width: 100%;
  }
}

/* Курсор «рука» для кликабельных изображений (лайтбокс), кроме шапки/футера/меню */
body img {
  cursor: pointer;
}
.navbar img,
.footer img,
.mobile-menu img,
.image-lightbox__img {
  cursor: default;
}

/* ─── Image lightbox (click img in content) ─── */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 16px 20px;
  box-sizing: border-box;
}
.image-lightbox[hidden] {
  display: none !important;
}
.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 10, 21, 0.88);
  cursor: pointer;
}
.image-lightbox__close {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 10002;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.image-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.26);
}
.image-lightbox__close:focus {
  outline: none;
}
.image-lightbox__close:focus-visible {
  outline: none;
  box-shadow: none;
}
.image-lightbox__frame {
  position: relative;
  z-index: 10001;
  max-width: min(96vw, 1400px);
  max-height: calc(100vh - 72px);
  pointer-events: none;
}
.image-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 72px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

/* ─── Print ─── */
@media print {
  .navbar, .footer, .hero__actions { display: none; }
  .hero { min-height: auto; padding: 32px 0; }
  .section { padding: 32px 0; }
}
