/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --green:      #1976d2;
  --green-dark: #080f1c;
  --green-mid:  #0f1e38;
  --white:      #ffffff;
  --light:      #f4f5f6;
  --text:       #1a2b2e;
  --gray:       #6b7a8d;
  --nav-h:      90px;
  --font:       'Inter', Arial, sans-serif;
  --font-body:  'Inter', Arial, sans-serif;
  --font-nav:   'Montserrat', 'Segoe UI', sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--green-dark);
  color: var(--text);
  overscroll-behavior: none;
}

/* ===== NAVBAR — прозрачный поверх hero (п.1) ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2.5rem;
  height: var(--nav-h);
  background: linear-gradient(to bottom, rgba(0,0,0,0.52) 0%, transparent 100%);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.35s, box-shadow 0.35s;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0,0,0,0.10);
}

/* Логотип — используем картинку (п.2) */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 123px;
  width: auto;
  object-fit: contain;
  display: block;
}
.logo-img-lg { height: 52px; }
.logo-img-footer { height: 36px; filter: brightness(0) invert(1); }

.nav-links { display: flex; list-style: none; }
.nav-links a {
  display: block; color: rgba(255,255,255,0.9); text-decoration: none;
  font-size: 0.76rem; font-weight: 700; padding: 0.5rem 0.8rem;
  letter-spacing: 0.5px; transition: color 0.25s;
  font-family: var(--font-nav);
}
.nav-links a:hover, .nav-links a.active { color: #fff; opacity: 0.75; }
.navbar.scrolled .nav-links a { color: #2c3e50; }
.navbar.scrolled .nav-links a:hover { color: var(--green); opacity: 1; }
#nav-knowledge-item a { color: var(--green) !important; opacity: 1 !important; text-decoration: underline; }
.navbar.scrolled #nav-knowledge-item a { color: var(--green) !important; }
.mob-kb-link { color: var(--green) !important; font-weight: 700; text-decoration: underline; }
.arrow { font-size: 0.65rem; }

/* ── NAV DROPDOWN (Услуги) ── */
.nav-has-drop { position: relative; }

.nav-drop-trigger { cursor: pointer; }
.nav-drop-trigger .arrow {
  display: inline-block;
  transition: transform 0.22s;
}
.nav-has-drop:hover .nav-drop-trigger .arrow { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 230px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.18);
  border: 1px solid rgba(0,0,0,0.07);
  padding: 0.45rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 500;
}
/* Маленький треугольник-хвост */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: #fff;
  border-top: none;
}
.nav-has-drop:hover .nav-dropdown {
  opacity: 1; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-drop-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem; font-weight: 600;
  color: #2c3e50 !important;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0;
}
.nav-drop-item:hover {
  background: #f0f4f8;
  color: #1976d2 !important;
  opacity: 1 !important;
}
.nav-drop-item svg {
  width: 18px; height: 18px; flex-shrink: 0;
  color: #1976d2; opacity: 0.8;
}
.nav-drop-item:hover svg { opacity: 1; }

/* Прокрутка к секции — небольшой отступ от шапки */
#services, #service-monitoring, #service-tachograph, #service-satellite {
  scroll-margin-top: 72px;
}

/* ── БАЗА ЗНАНИЙ — синяя ссылка в навбаре ── */
.nav-link-knowledge {
  color: #90caf9 !important;
  position: relative;
}
.nav-link-knowledge::after {
  content: '';
  position: absolute; bottom: 2px; left: 0.8rem; right: 0.8rem;
  height: 2px; background: #90caf9; border-radius: 1px;
  opacity: 0.6;
}
.navbar.scrolled .nav-link-knowledge { color: #1565c0 !important; }
.navbar.scrolled .nav-link-knowledge::after { background: #1565c0; }

.nav-right { display: flex; align-items: center; gap: 2rem; }
.lang-wrap { position: relative; }
.lang-selector {
  font-size: 0.82rem; font-weight: 700; color: rgba(255,255,255,0.9);
  cursor: pointer; display: flex; align-items: center; gap: 4px;
  transition: color 0.25s; font-family: var(--font-nav);
  background: none; border: none; padding: 0; outline: none;
  letter-spacing: 0.5px;
  -webkit-appearance: none; appearance: none;
}
.lang-selector:hover { color: #fff; opacity: .8; }
.navbar.scrolled .lang-selector { color: #2c3e50; }
.navbar.scrolled .lang-selector:hover { color: #1976d2; opacity: 1; }
.lang-drop {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%);
  background: #fff; border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.13);
  min-width: 58px; padding: 4px 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.18s, visibility 0.18s;
  z-index: 9999;
}
.lang-wrap:hover .lang-drop { opacity: 1; visibility: visible; }
.lang-drop::before {
  content: ''; position: absolute; bottom: 100%; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent; border-bottom-color: #fff;
}
.lang-drop-item {
  display: block; width: 100%; padding: 8px 14px;
  text-align: center; font-size: 0.82rem; font-weight: 700;
  color: #2c3e50; background: none; border: none; cursor: pointer;
  font-family: var(--font-nav); letter-spacing: 0.5px;
  transition: color 0.18s, background 0.18s;
  -webkit-appearance: none; appearance: none;
}
.lang-drop-item:hover { color: #1976d2; background: rgba(25,118,210,0.07); }
.btn-contacts {
  font-size: 0.76rem; font-weight: 700; color: rgba(255,255,255,0.9);
  text-decoration: none; letter-spacing: 0.5px; transition: color 0.25s;
  font-family: var(--font-nav);
}
.navbar.scrolled .btn-contacts { color: #2c3e50; }
.navbar.scrolled .btn-contacts:hover { color: var(--green); }

.btn-login {
  display: flex; align-items: center; gap: 7px;
  padding: 0.5rem 1.1rem;
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 50px;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-family: var(--font-nav);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.5px;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn-login:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }
.navbar.scrolled .btn-login { border-color: #c8d0d8; color: #2c3e50; }
.navbar.scrolled .btn-login:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* ===== BURGER BUTTON ===== */
.nav-burger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; padding: 4px; z-index: 1100;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,0.9); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
}
.navbar.scrolled .nav-burger span { background: #2c3e50; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE NAV OVERLAY ===== */
.mob-nav { position: fixed; inset: 0; z-index: 1050; pointer-events: none; visibility: hidden; }
.mob-nav.open { pointer-events: all; visibility: visible; }
.mob-nav-backdrop {
  position: absolute; inset: 0; background: rgba(8,15,28,0.55);
  opacity: 0; transition: opacity 0.3s;
}
.mob-nav.open .mob-nav-backdrop { opacity: 1; }
.mob-nav-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(340px, 88vw); background: #fff;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column; overflow-y: auto;
}
.mob-nav.open .mob-nav-panel { transform: translateX(0); }
.mob-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.4rem; border-bottom: 1px solid #f0f0f0; flex-shrink: 0;
}
.mob-nav-head img { height: 56px; width: auto; }
.mob-nav-close {
  background: none; border: none; cursor: pointer;
  font-size: 1.6rem; color: #6b7a8d; line-height: 1; padding: 4px 8px;
}
.mob-nav-links { list-style: none; padding: 0.5rem 0; flex: 1; }
.mob-nav-links > li { border-bottom: 1px solid #f4f4f4; }
.mob-nav-links > li > a,
.mob-nav-links > li > button.mob-drop-trigger {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 0.9rem 1.4rem;
  font-family: var(--font-nav); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; color: #2c3e50; text-decoration: none;
  background: none; border: none; cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.mob-nav-links > li > a:hover,
.mob-nav-links > li > button.mob-drop-trigger:hover { color: var(--green); background: #f8fafc; }
.mob-nav-links > li > a.mob-active { color: var(--green); }
.mob-sub { list-style: none; background: #f8fafc; display: none; }
.mob-sub.open { display: block; }
.mob-sub li a {
  display: block; padding: 0.7rem 1.4rem 0.7rem 2.2rem;
  font-size: 0.8rem; color: #4a5568; text-decoration: none; transition: color 0.2s;
}
.mob-sub li a:hover { color: var(--green); }
.mob-drop-chevron { font-size: 0.65rem; transition: transform 0.25s; }
.mob-drop-trigger.open .mob-drop-chevron { transform: rotate(180deg); }

/* User section (bottom of panel) */
.mob-user-section { border-top: 1px solid #f0f0f0; flex-shrink: 0; }
.mob-user-trigger {
  display: flex; align-items: center; gap: 0.8rem;
  width: 100%; padding: 1rem 1.4rem;
  background: none; border: none; cursor: pointer;
  transition: background 0.2s;
}
.mob-user-trigger:hover { background: #f8fafc; }
.mob-u-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; flex-shrink: 0;
}
.mob-u-info { flex: 1; text-align: left; }
.mob-u-name { font-weight: 600; font-size: 0.88rem; color: #1a2b2e; }
.mob-u-label { font-size: 0.72rem; color: #6b7a8d; margin-top: 1px; }
.mob-u-chevron { font-size: 0.65rem; color: #6b7a8d; transition: transform 0.25s; flex-shrink: 0; }
.mob-user-trigger.open .mob-u-chevron { transform: rotate(180deg); }
.mob-user-menu { display: none; background: #f8fafc; padding: 0.4rem 0; }
.mob-user-menu.open { display: block; }
.mob-user-menu a, .mob-user-menu button {
  display: flex; align-items: center; gap: 0.7rem;
  width: 100%; padding: 0.75rem 1.4rem;
  font-size: 0.84rem; color: #2c3e50; text-decoration: none;
  background: none; border: none; cursor: pointer; font-family: var(--font-body);
  transition: color 0.2s, background 0.2s;
}
.mob-user-menu a:hover, .mob-user-menu button:hover { color: var(--green); background: #edf2f7; }
.mob-user-menu svg { width: 16px; height: 16px; flex-shrink: 0; color: #6b7a8d; }
.mob-logout-btn { color: #e53e3e !important; }
.mob-login-link {
  display: block; margin: 1rem 1.4rem 1.2rem;
  background: var(--green); color: #fff; text-align: center;
  padding: 0.75rem; border-radius: 8px;
  font-weight: 700; font-size: 0.82rem; text-decoration: none;
  font-family: var(--font-nav); letter-spacing: 0.06em;
  transition: background 0.2s;
}
.mob-login-link:hover { background: #1565c0; }

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-right .lang-selector,
  .nav-right .btn-contacts,
  .nav-right #client-dropdown-wrap { display: none; }
  .nav-burger { display: flex; }
}

/* ===== HERO — 100vh, текст по центру (п.4) ===== */
.hero {
  position: relative;
  height: 100vh;
  /* overflow убран — слайдер выходит ниже чтобы быть видным за срезом */
}
/* Слайдер растянут на 140px ниже hero — ровно на размер диагонального среза */
.hero-slider { position: absolute; top: 0; left: 0; right: 0; bottom: -140px; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.5s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.52);
}
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Заголовок у навбара, кнопки внизу — как в ZRA */
.hero-content {
  position: absolute;
  left: 3.5rem;
  top: calc(var(--nav-h) + 2rem + 100px);
  bottom: 3.5rem;
  z-index: 2;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-text { color: #fff; }

/* Заголовок — крупный Inter */
.hero-title {
  font-family: var(--font);
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  letter-spacing: -0.3px;
}
.title-accent { color: rgba(255,255,255,0.65); }

/* Подзаголовок (п.5) */
.hero-subtitle {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 2.2rem;
  opacity: 0.82;
  letter-spacing: 0.2px;
}

/* Кнопки (п.3) — как на фото */
.hero-buttons { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 0 2.2rem;
  height: 85px; min-width: 300px;
  font-size: 0.96rem; font-weight: 700;
  font-family: var(--font);
  text-decoration: none; border-radius: 50px; letter-spacing: 1.2px;
  border: 2px solid transparent; transition: all 0.3s; cursor: pointer;
  white-space: nowrap;
}
.btn-white {
  background: #fff; color: #1a2b2e; border-color: #fff;
}
.btn-white:hover { background: transparent; color: #fff; }
.btn-ghost {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,0.65);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-arr { width: 18px; height: 18px; display: block; filter: brightness(0) invert(1); }
/* Info-card — абсолютно внизу справа + белая рамка 7px (п.8) */
.info-card {
  position: absolute;
  bottom: calc(3.5rem + 100px); right: 3rem;
  z-index: 2;
  background: #fff;
  border: 9px solid rgba(255,255,255,0.9);
  border-radius: 37px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.28);
  display: flex; overflow: hidden;
  width: 550px; height: 240px;
}
.info-card-image { border-radius: 30px; width: 210px; height: 100%; flex-shrink: 0; overflow: hidden; background: #cdd6e0; }
.info-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.info-card-content { padding: 1.3rem 1.4rem; display: flex; flex-direction: column; justify-content: center; gap: 0.45rem; }
.info-card-label { font-size: 0.72rem; font-weight: 300; color: #aab4be; letter-spacing: 1.5px; text-transform: uppercase; }
.info-card-title { font-size: 0.98rem; font-weight: 800; color: var(--green-dark); line-height: 1.35; font-family: var(--font); }
.info-card-text { font-size: 0.8rem; color: #8a9ab0; line-height: 1.55; }

/* ===== SHARED SECTION HELPERS ===== */
.section-white { background: var(--white); }
.section-light  { background: var(--light); }
.section-dark   { background: var(--green-dark); }

/* Срезанный уголок — диагональный срез правого верхнего угла */
.section-diag-top {
  clip-path: polygon(0 0, calc(100% - 140px) 0, 100% 140px, 100% 100%, 0 100%);
  margin-top: 0;
  padding-top: 5rem;
  position: relative; z-index: 5;
}

.section-curve-tl  { border-radius: 60px 0 0 0; margin-top: -60px; position: relative; z-index: 5; }
.section-curve-tr  { border-radius: 0 60px 0 0; margin-top: -60px; position: relative; z-index: 5; }

.t-accent { color: var(--green); }

.two-col-header {
  display: flex; gap: 4rem; padding: 5rem 4rem;
}
.about .two-col-header { padding-bottom: 5rem; }
.col-left  { flex: 1; }
.col-right { flex: 1; padding-top: 0.4rem; }

/* Заголовки секций */
.sec-title {
  font-family: var(--font);
  font-size: 2.6rem; font-weight: 300; line-height: 1.2; color: var(--text);
}
.sec-title-light { color: #fff; }
.sec-label { font-size: 0.8rem; color: #9aaabb; margin-top: 1rem; font-weight: 500; }
.sec-label-light { color: rgba(255,255,255,0.4); }
.sec-desc { font-size: 1.15rem; color: #4a5a6a; line-height: 1.75; margin-bottom: 2rem; }
.sec-desc-light { color: rgba(255,255,255,0.6); }
.g-line { width: 100%; height: 2px; background: var(--green); }

/* ===== FEATURES ===== */
.features { padding: 0 2.5rem 5rem; }
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.feat-card {
  border-radius: 20px; overflow: hidden; position: relative;
  height: 800px;
  display: flex; flex-direction: column;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.feat-card:nth-child(1) { transition-delay: 0s; }
.feat-card:nth-child(2) { transition-delay: 0.15s; }
.feat-card:nth-child(3) { transition-delay: 0.3s; }
.feat-card.in-view { opacity: 1; transform: scale(1); }
.feat-card:hover { box-shadow: 0 20px 48px rgba(0,0,0,0.16); z-index: 6; }

/* Декоративный угловой кронштейн */
.feat-card::after {
  content: '';
  position: absolute;
  top: 14px; right: 14px;
  width: 44%; height: 46%;
  border-top: 2px solid rgba(255,255,255,0.22);
  border-right: 2px solid rgba(255,255,255,0.22);
  border-radius: 0 14px 0 0;
  pointer-events: none; z-index: 4;
}
.feat-light::after {
  border-top-color: rgba(25,118,210,0.13);
  border-right-color: rgba(25,118,210,0.13);
}

.feat-light { background: #f0f3f5; }

/* Затемняющий градиент за текстом */
.feat-light::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}
.feat-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* Изображение заполняет всю карточку, текст поверх без подложки */
.feat-light .feat-img {
  position: absolute;
  inset: 0;
  flex: none;
  height: 100% !important;
  min-height: unset;
}
.feat-light .feat-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  background: transparent;
}
.feat-dark  { background: #101d2f; color: #fff; margin-top: 100px; flex-direction: column-reverse; }

/* Центральная карточка: картинка на весь фон, текст сверху без подложки */
.feat-dark .feat-img {
  position: absolute;
  inset: 0;
  flex: none;
  height: 100% !important;
  min-height: unset;
}
.feat-dark .feat-body {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  background: transparent;
}

.feat-badge { position: absolute; z-index: 3; }
.feat-badge.top-left { top: 1.2rem; left: 1.2rem; }
.feat-badge.bot-right { bottom: 1.2rem; right: 1.2rem; }
.feat-badge span {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 1.5rem; font-weight: 700;
}
.feat-img { width: 100%; flex: 1; min-height: 0; overflow: hidden; }
.feat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feat-body { padding: 1.5rem; flex-shrink: 0; }
.feat-label { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-bottom: 0.6rem; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; }
.feat-title { font-size: 1.65rem; font-weight: 700; margin-bottom: 0.8rem; color: #fff; font-family: var(--font); line-height: 1.2; }
.feat-text { font-size: 1rem; color: rgba(255,255,255,0.72); line-height: 1.7; }

/* ===== CATALOG ===== */
.catalog-grid { display: flex; height: 950px; }
.cat-item {
  position: relative; overflow: hidden; cursor: pointer;
  flex: 1;
  opacity: 0;
  transform: scale(0.92);
  transition: flex 0.75s ease, opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cat-item:nth-child(1) { transition-delay: 0.05s; }
.cat-item:nth-child(2) { transition-delay: 0.2s; }
.cat-item:nth-child(3) { transition-delay: 0.35s; }
.cat-item.in-view { opacity: 1; transform: scale(1); }
.cat-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s ease; }
.cat-item:hover img { transform: scale(1.06); }

/* Сброс задержки при ховере чтобы анимация была мгновенной */
.catalog-grid:has(.cat-item:hover) .cat-item { transition-delay: 0s; }

/* Наведение на ЛЕВУЮ карточку: растёт она, сжимается только центральная */
.catalog-grid:has(.cat-item:nth-child(1):hover) .cat-item:nth-child(1) { flex: 1.25; }
.catalog-grid:has(.cat-item:nth-child(1):hover) .cat-item:nth-child(2) { flex: 0.82; }
.catalog-grid:has(.cat-item:nth-child(1):hover) .cat-item:nth-child(3) { flex: 1; }

/* Наведение на ЦЕНТРАЛЬНУЮ карточку: растёт она, сжимаются обе крайних */
.catalog-grid:has(.cat-item:nth-child(2):hover) .cat-item:nth-child(1) { flex: 0.82; }
.catalog-grid:has(.cat-item:nth-child(2):hover) .cat-item:nth-child(2) { flex: 1.25; }
.catalog-grid:has(.cat-item:nth-child(2):hover) .cat-item:nth-child(3) { flex: 0.82; }

/* Наведение на ПРАВУЮ карточку: растёт она, сжимается только центральная */
.catalog-grid:has(.cat-item:nth-child(3):hover) .cat-item:nth-child(1) { flex: 1; }
.catalog-grid:has(.cat-item:nth-child(3):hover) .cat-item:nth-child(2) { flex: 0.82; }
.catalog-grid:has(.cat-item:nth-child(3):hover) .cat-item:nth-child(3) { flex: 1.25; }
.cat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,30,80,0.55), rgba(5,15,50,0.82));
}
.cat-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding: 2rem; text-align: center; color: #fff;
}
.cat-icon { width: 52px; height: 52px; margin-bottom: 1rem; }
.cat-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; font-family: var(--font); }
.cat-sub { font-size: 0.8rem; opacity: 0.7; }

/* ===== CAT ITEM — interactive panels ===== */
.cat-item { cursor: pointer; }

.cat-panels-wrap { background: var(--light); }
.cat-panel {
  max-height: 0; overflow: hidden; position: relative;
  transition: max-height 0.48s cubic-bezier(0.4,0,0.2,1), padding 0.4s ease;
  padding: 0 4rem;
}
.cat-panel.active { max-height: 640px; padding: 2.5rem 4rem 3rem; }
.cat-panel-close {
  position: absolute; top: 1.6rem; right: 4rem;
  width: 30px; height: 30px; border: none; border-radius: 50%;
  background: rgba(0,0,0,0.09); color: #666;
  cursor: pointer; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.cat-panel-close:hover { background: var(--green); color: #fff; }
.cat-panel-inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: start;
}
.cat-panel-title {
  font-size: 1.25rem; font-weight: 700; color: var(--text);
  font-family: var(--font); margin-bottom: 0.75rem; line-height: 1.3;
}
.cat-panel-extra-title {
  font-size: 1rem; font-weight: 700; color: var(--green);
  font-family: var(--font); margin-bottom: 0.6rem; line-height: 1.3;
}
.cat-panel-desc { font-size: 0.95rem; color: #4a5a6a; line-height: 1.7; margin-bottom: 1rem; }
.cat-panel-list { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.cat-panel-list li {
  font-size: 0.88rem; color: #4a5a6a; line-height: 1.5;
  padding-left: 1.2rem; position: relative;
}
.cat-panel-list li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 6px; height: 6px; background: var(--green); border-radius: 50%;
}
.cat-panel-extra { border-left: 2px solid var(--green); padding-left: 1.5rem; }

/* ===== PRODUCTION ===== */
.production { padding-bottom: calc(5rem + 140px); }
.production-body {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 3rem; padding: 0 4rem;
}
.stat-item {
  background: rgba(25,118,210,0.07);
  border-radius: 16px; padding: 1.4rem 1.8rem; margin-bottom: 1rem;
}
.stat-num {
  font-size: 2.8rem; font-weight: 900; color: var(--green);
  line-height: 1; margin-bottom: 0.4rem; font-family: var(--font);
}
.stat-unit { font-size: 1.4rem; }
.stat-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.3rem; font-family: var(--font); }
.stat-desc { font-size: 0.8rem; color: var(--gray); line-height: 1.5; }
.map-col { display: flex; align-items: center; }
.map-img {
  width: 100%; opacity: 0.55;
  filter: hue-rotate(210deg) saturate(3) brightness(0.65);
}

/* ===== ENGINEERING DARK ===== */
.eng-dark { padding-bottom: 2rem; margin-top: -140px; }

/* ===== STEPS ===== */
.steps { padding: 0 2rem 5rem; }
.steps-grid { display: flex; flex-direction: column; gap: 1.5rem; }
.step-card { position: relative; border-radius: 24px; overflow: hidden; height: 750px; }
.step-bg   { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.step-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 55%); }
.step-num {
  position: absolute; top: 2.5rem; left: 3rem; z-index: 2;
  font-size: 7rem; font-weight: 900; color: rgba(255,255,255,0.88); line-height: 1;
  font-family: var(--font);
}
.step-body {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 3rem 3.5rem; gap: 2.5rem;
}
.step-info { color: #fff; }
.step-label { font-size: 1.1rem; opacity: 0.65; margin-bottom: 0.75rem; letter-spacing: 0.3px; }
.step-title { font-size: 2.8rem; font-weight: 300; max-width: 560px; font-family: var(--font); line-height: 1.15; }
.step-tags { display: flex; flex-wrap: wrap; gap: 0.65rem; justify-content: flex-end; max-width: 520px; }
.tag {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff; padding: 0.55rem 1.2rem;
  border-radius: 50px; font-size: 0.9rem;
  backdrop-filter: blur(4px);
}

/* ===== COMPANY ===== */
.company-divider { height: 1px; background: #e0e5ea; margin: 0 4rem; }
.company-body { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; padding: 4rem; align-items: center; }
.company-logo { margin-bottom: 2rem; }
.company-p { font-size: 1.1rem; color: #3a4a5a; line-height: 1.85; margin-bottom: 1.4rem; }
.company-img { border-radius: 20px; overflow: hidden; }
.company-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.company-cards { display: grid; grid-template-columns: 1fr 1fr; height: 300px; }
.company-card { position: relative; overflow: hidden; }
.company-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.company-card-ov { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.company-card-body {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2rem; color: #fff;
}
.company-card-body h3 { font-size: 1rem; font-weight: 800; margin-bottom: 0.5rem; font-family: var(--font); }
.company-card-body p  { font-size: 0.8rem; opacity: 0.65; line-height: 1.5; }
.company-card:first-child { border-radius: 0; }

/* ===== NEWS ===== */
.news-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; padding: 0 4rem;
}
.news-card {
  border-radius: 16px; overflow: hidden;
  background: #fff; cursor: pointer;
  box-shadow: 0 2px 12px rgba(8,15,28,0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(8,15,28,0.13); }
.news-card-img { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #e8edf4; flex-shrink: 0; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-img-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e8edf4, #d0dae8);
}
.news-card-img-ph svg { width: 44px; height: 44px; stroke: #a0b0c4; }
.news-card-body { padding: 1.4rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.news-card-date { font-size: 0.74rem; font-weight: 700; color: #1976d2; text-transform: uppercase; letter-spacing: 0.5px; }
.news-card-title { font-family: var(--font-nav); font-size: 1.05rem; font-weight: 700; color: var(--text); line-height: 1.4; }
.news-card-excerpt { font-size: 0.84rem; color: #6b7a8d; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-link { font-size: 0.8rem; font-weight: 700; color: #1976d2; margin-top: 0.3rem; display: flex; align-items: center; gap: 4px; }

.news-card-skeleton { border-radius: 16px; overflow: hidden; background: #fff; }
.news-card-skeleton .sk { background: linear-gradient(90deg,#eee 25%,#f5f5f5 50%,#eee 75%); background-size: 200%; animation: sk-shimmer 1.2s infinite; border-radius: 8px; }
@keyframes sk-shimmer { 0% { background-position: 200%; } 100% { background-position: -200%; } }

.news-footer { padding: 2rem 4rem 5rem; display: flex; justify-content: center; }
.btn-all-news {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.85rem 2.2rem; border-radius: 50px;
  background: var(--green); color: #fff;
  font-size: 0.82rem; font-weight: 800; font-family: var(--font-nav);
  letter-spacing: 0.5px; text-decoration: none;
  transition: background 0.25s;
}
.btn-all-news:hover { background: #1565c0; }
.btn-arr-inline { font-size: 1rem; }

/* ===== CONTACT ===== */
.contact { padding-bottom: 5rem; }
.contact-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; padding: 0 4rem; }
.contact-form-wrap { background: #fff; border-radius: 20px; padding: 2.5rem; }
.form-heading { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 2rem; font-family: var(--font); }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input,
.contact-form textarea {
  width: 100%; border: none; border-bottom: 1px solid #d0d8e0;
  padding: 0.7rem 0; font-size: 0.88rem; color: var(--text);
  outline: none; background: transparent; font-family: var(--font);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #9aaabb; }
.contact-form textarea { height: 80px; resize: none; }
.check-label { display: flex; align-items: flex-start; gap: 10px; font-size: 0.8rem; color: var(--gray); cursor: pointer; }
.check-label input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--green); border-bottom: none !important; }
.btn-submit {
  align-self: flex-start; background: var(--green); color: #fff;
  border: none; padding: 0.9rem 2.5rem; border-radius: 50px;
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.5px;
  cursor: pointer; transition: background 0.3s; font-family: var(--font);
}
.btn-submit:hover { background: #1565c0; }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.cf-status { padding: 0.7rem 1rem; border-radius: 8px; font-size: 0.85rem; font-weight: 600; }
.cf-status.success { background: #e8f5e9; color: #2e7d32; }
.cf-status.error   { background: #fdecea; color: #c62828; }

/* ===== NAVBAR — кнопка "Добавить" (только для admin) ===== */
.btn-add-user {
  font-size: 0.76rem; font-weight: 700; font-family: var(--font-nav);
  padding: 0.45rem 1rem; border-radius: 50px; cursor: pointer;
  background: rgba(255,255,255,0.15); border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff; transition: background 0.25s, border-color 0.25s;
  letter-spacing: 0.3px; white-space: nowrap;
}
.btn-add-user:hover { background: rgba(255,255,255,0.28); border-color: #fff; }
.navbar.scrolled .btn-add-user { background: var(--green); border-color: var(--green); color: #fff; }
.navbar.scrolled .btn-add-user:hover { background: #1565c0; border-color: #1565c0; }

/* ===== КНОПКА ВОЙТИ — теперь button, не a ===== */
button.btn-login {
  display: flex; align-items: center; gap: 7px;
  padding: 0.5rem 1.1rem;
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 50px;
  color: rgba(255,255,255,0.92);
  background: transparent;
  font-family: var(--font-nav);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.5px; cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap;
}
button.btn-login:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }
.navbar.scrolled button.btn-login { border-color: #c8d0d8; color: #2c3e50; }
.navbar.scrolled button.btn-login:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* ===== МОДАЛЫ ===== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(8,15,28,0.78);
  backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }

.modal-card {
  position: relative; background: #fff; border-radius: 20px;
  padding: 2.8rem 2.5rem 2.2rem; width: 100%; max-width: 460px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  transform: translateY(28px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1);
  max-height: 90vh; overflow-y: auto;
}
.modal-backdrop.open .modal-card { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute; top: 1rem; right: 1.2rem;
  background: none; border: none; font-size: 1.7rem; line-height: 1;
  color: var(--gray); cursor: pointer; transition: color 0.2s;
}
.modal-close:hover { color: var(--text); }

.modal-header { text-align: center; margin-bottom: 1.8rem; }
.modal-header svg { margin-bottom: 0.75rem; }
.modal-title { font-family: var(--font-nav); font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 0.3rem; }
.modal-sub { font-size: 0.82rem; color: var(--gray); }

.modal-form { display: flex; flex-direction: column; gap: 1rem; }

.modal-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }

.modal-field { display: flex; flex-direction: column; gap: 0.35rem; }
.modal-field label { font-size: 0.75rem; font-weight: 600; color: var(--gray); text-transform: uppercase; letter-spacing: 0.4px; }
.modal-field input,
.modal-field select {
  width: 100%; padding: 0.72rem 1rem;
  border: 1.5px solid #dde3ec; border-radius: 10px;
  font-size: 0.92rem; font-family: var(--font); color: var(--text);
  background: #f7f9fc; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.modal-field input:focus,
.modal-field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(25,118,210,0.12);
  background: #fff;
}

.modal-error {
  font-size: 0.82rem; color: #d32f2f;
  background: #fff3f3; border: 1px solid #ffcdd2;
  border-radius: 8px; padding: 0.55rem 0.9rem; margin: 0;
}
.modal-success {
  font-size: 0.82rem; color: #1b5e20;
  background: #f1f8e9; border: 1px solid #c5e1a5;
  border-radius: 8px; padding: 0.55rem 0.9rem; margin: 0;
}

/* ===== CLIENT DROPDOWN ===== */
.client-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 210px; background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 14px;
  box-shadow: 0 10px 36px rgba(0,0,0,0.18);
  padding: 0.5rem; z-index: 9999;
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s;
}
.client-dropdown.open { opacity: 1; pointer-events: all; transform: translateY(0); }

.cd-item {
  display: flex; align-items: center; gap: 9px;
  width: 100%; padding: 0.6rem 0.8rem;
  border-radius: 9px; border: none; background: none;
  font-size: 0.84rem; font-weight: 500; color: #1a2b3c;
  text-decoration: none; cursor: pointer;
  transition: background 0.15s; font-family: var(--font);
}
.cd-item svg { width: 16px; height: 16px; color: #6b7a8d; flex-shrink: 0; }
.cd-item:hover { background: #f4f6fb; }

.cd-item--soon { color: #9aabb8; cursor: default; }
.cd-item--soon:hover { background: none; }
.cd-item--soon svg { opacity: 0.5; }

.cd-soon {
  margin-left: auto; font-size: 0.65rem; font-weight: 700;
  background: #fff3e0; color: #e65100;
  padding: 2px 7px; border-radius: 50px;
}

.cd-divider { height: 1px; background: #e4e9f0; margin: 0.3rem 0; }

.cd-item--admin { color: #1565c0; font-weight: 600; }
.cd-item--admin svg { color: #1565c0; }
.cd-item--admin:hover { background: #e3f0fc; }

.cd-item--logout { color: #d32f2f; }
.cd-item--logout svg { color: #d32f2f; }
.cd-item--logout:hover { background: #fff3f3; }

.modal-btn {
  width: 100%; padding: 0.9rem; background: var(--green); color: #fff;
  border: none; border-radius: 50px; font-size: 0.88rem; font-weight: 800;
  letter-spacing: 0.5px; font-family: var(--font-nav); cursor: pointer;
  transition: background 0.25s, transform 0.15s; margin-top: 0.4rem;
}
.modal-btn:hover { background: #1565c0; }
.modal-btn:active { transform: scale(0.98); }
.modal-btn:disabled { background: #90bce8; cursor: not-allowed; }

.modal-forgot {
  background: none; border: none; cursor: pointer;
  color: #1976d2; font-size: 0.8rem; font-family: var(--font-nav);
  padding: 0.2rem 0; text-align: center; width: 100%;
  letter-spacing: 0.3px; transition: color 0.2s;
}
.modal-forgot:hover { color: #0d47a1; text-decoration: underline; }
.modal-forgot-info {
  display: flex; align-items: flex-start; gap: 10px;
  background: #f0f7ff; border: 1px solid #bbdefb; border-radius: 10px;
  padding: 12px 14px; font-size: 0.82rem; color: #1d4ed8;
  line-height: 1.5;
}
.modal-forgot-info[hidden] { display: none; }
.modal-forgot-info svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: #1976d2; }
.forgot-phone { font-weight: 700; color: #1976d2; text-decoration: none; font-size: 0.95rem; }
.forgot-phone:hover { text-decoration: underline; }
.forgot-hours { font-size: 0.75rem; color: #64748b; }

.contact-map { border-radius: 20px; overflow: hidden; min-height: 300px; }
.contact-map iframe { width: 100%; height: 100%; min-height: 300px; display: block; }
.chip {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
  color: #fff; text-decoration: none; padding: 0.5rem 1.1rem;
  border-radius: 50px; font-size: 0.8rem; transition: background 0.3s;
}
.chip:hover { background: rgba(255,255,255,0.2); }

/* ===== FOOTER ===== */
.footer { background: var(--green-dark); padding: 5rem 4rem 0; position: relative; overflow: hidden; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.f-heading { font-size: 0.88rem; font-weight: 700; color: rgba(255,255,255,0.85); margin-bottom: 0.8rem; font-family: var(--font); }
.f-sub { font-size: 0.68rem; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 0.7rem; margin-top: 1rem; }
.f-list { list-style: none; }
.f-list li { margin-bottom: 0.45rem; }
.f-list a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.84rem; transition: color 0.25s; }
.f-list a:hover { color: var(--green); }
.f-contact { font-size: 0.84rem; color: rgba(255,255,255,0.6); line-height: 1.7; margin-bottom: 0.4rem; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2rem 0;
}
.footer-logo { display: flex; align-items: center; text-decoration: none; }
.f-copy { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.f-dev  { font-size: 0.78rem; color: rgba(255,255,255,0.35); }

.footer-watermark {
  font-size: 11rem; font-weight: 900;
  color: rgba(25,118,210,0.07);
  letter-spacing: -4px; text-align: center;
  line-height: 1; user-select: none;
  margin: 0 -4rem; font-family: var(--font);
}

/* Метки городов на карте (используется на главной и в about) */
.ab-map-pin {
    position: absolute;
    transform: translate(-50%, -100%);
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    cursor: default;
}
.ab-pin-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: #1976d2;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.35);
    display: block;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.ab-map-pin:hover .ab-pin-dot { transform: scale(1.4); }
.ab-pin-dot--main {
    width: 14px; height: 14px;
    background: #e53935;
}
.ab-pin-label {
    background: rgba(255,255,255,0.95);
    color: #0d2137;
    font-size: 0.62rem;
    font-weight: 700;
    font-family: var(--font-nav);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.22);
    letter-spacing: 0.02em;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.2s, transform 0.2s;
}
.ab-map-pin:hover .ab-pin-label {
    opacity: 1;
    transform: translateY(0);
}

/* ===== COOKIE BANNER ===== */
#cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    background: rgba(13,31,53,0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(25,118,210,0.25);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
}
#cookie-banner.ck-visible { transform: translateY(0); }
.ck-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.ck-icon {
    width: 20px; height: 20px;
    flex-shrink: 0;
    color: #1976d2;
}
.ck-text {
    display: flex; align-items: center; gap: 10px;
    flex: 1; min-width: 240px;
}
.ck-text p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
}
.ck-link {
    color: #90caf9;
    text-decoration: none;
    white-space: nowrap;
}
.ck-link:hover { text-decoration: underline; }
.ck-actions { display: flex; gap: 10px; flex-shrink: 0; }
.ck-btn {
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-nav);
    letter-spacing: 0.04em;
    cursor: pointer;
    border: none;
    -webkit-appearance: none;
    appearance: none;
    transition: opacity 0.2s, transform 0.15s;
}
.ck-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.ck-btn--accept {
    background: #1976d2;
    color: #fff;
}
.ck-btn--decline {
    background: transparent;
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.2);
}

/* ===== MOBILE ADAPTATION ===== */
@media (max-width: 768px) {
    html, body { overflow-x: hidden; }

    /* ── Hero ── */
    .hero { min-height: 100svh; }
    .hero-content {
        left: 1.5rem; right: 1.5rem;
        max-width: calc(100% - 3rem);
        top: calc(var(--nav-h) + 1rem);
        bottom: 2rem;
    }
    .hero-title { font-size: 2.2rem; line-height: 1.15; }
    .hero-subtitle { font-size: 0.88rem; margin-bottom: 1.5rem; }
    .hero-buttons { flex-direction: column; gap: 0.75rem; align-items: stretch; }
    .btn { min-width: unset; width: 100%; height: 58px; font-size: 0.84rem; padding: 0 1.2rem; }
    .info-card { display: none; }
    .hero-slider { bottom: 0; }

    /* ── Two-col headers ── */
    .two-col-header { flex-direction: column; gap: 2rem; padding: 3rem 1.5rem; }
    .sec-title { font-size: 2rem; }

    /* ── Diagonal clip ── */
    .section-diag-top {
        clip-path: none;
        padding-top: 3rem;
    }

    /* ── Features ── */
    .features { padding: 0 1rem 3rem; }
    .features-grid { grid-template-columns: 1fr; }
    .feat-card { height: 360px; }
    .feat-dark { margin-top: 0; }

    /* ── Catalog ── */
    .catalog-grid { flex-direction: column; height: auto; }
    .cat-item { height: 220px; flex: none; }

    /* ── Cat Panels ── */
    .cat-panel.active { padding: 2rem 1.5rem 2.5rem; max-height: 1400px; }
    .cat-panel-inner { grid-template-columns: 1fr; gap: 2rem; }
    .cat-panel-close { right: 1.5rem; }
    .cat-panel-extra { border-left: none; border-top: 2px solid var(--green); padding-left: 0; padding-top: 1.5rem; }

    /* ── Production ── */
    .production { padding-bottom: 3rem; }
    .production-body { grid-template-columns: 1fr; padding: 0 1.5rem; }
    .map-col { display: none; }

    /* ── Engineering ── */
    .eng-dark { margin-top: 0; }

    /* ── Steps ── */
    .steps { padding: 0 1rem 3rem; }
    .step-card { height: auto; min-height: 340px; }
    .step-body { flex-direction: column; align-items: flex-start; padding: 1.5rem; gap: 1rem; }
    .step-num { font-size: 4.5rem; top: 1rem; left: 1.5rem; }
    .step-title { font-size: 1.6rem; max-width: 100%; }
    .step-tags { justify-content: flex-start; max-width: 100%; }

    /* ── Company ── */
    .company-divider { margin: 0 1.5rem; }
    .company-body { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1.5rem; }
    .company-cards { grid-template-columns: 1fr; height: auto; }
    .company-card { height: 200px; }

    /* ── News grid (homepage) ── */
    .news-grid { grid-template-columns: 1fr; padding: 0 1.5rem; }
    .news-footer { padding: 1.5rem 1.5rem 3rem; }

    /* ── Contact ── */
    .contact-body { grid-template-columns: 1fr; padding: 0 1.5rem; }
    .contact { padding-bottom: 3rem; }
    .contact-map { min-height: 220px; }

    /* ── Footer ── */
    .footer { padding: 3rem 1.5rem 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; padding-bottom: 2rem; }
    .footer-watermark { font-size: 5rem; margin: 0 -1.5rem; }
    .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; padding: 1.5rem 0; }

    /* ── Cookie banner ── */
    .ck-inner { padding: 12px 1rem; gap: 0.75rem; }
    .ck-text { min-width: 0; }
    .ck-text p { font-size: 0.78rem; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 1.85rem; }
    .sec-title { font-size: 1.75rem; }
    .step-card { min-height: 280px; }
    .step-num { font-size: 3.5rem; }
    .step-title { font-size: 1.4rem; }
    .tag { font-size: 0.78rem; padding: 0.4rem 0.9rem; }
}
