/* ООО «Атрикс» — corporate landing styles */
:root {
  --navy: #014b88;
  --navy-deep: #012a52;
  --navy-mid: #067dc5;
  --cyan: #02b0fb;
  --cyan-dark: #0296d6;
  --cyan-soft: #d9f1fd;
  --blue: #067dc5;
  --text: #0f2438;
  --text-muted: #4a6178;
  --bg: #eef6fb;
  --bg-white: #ffffff;
  --bg-soft: #dff3fc;
  --border: #c5dceb;
  --success: #1a9b5c;
  --danger: #c0392b;
  --warning: #e67e22;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 20px rgba(1, 75, 136, 0.08);
  --shadow-lg: 0 12px 40px rgba(1, 75, 136, 0.14);
  --header-h: 72px;
  --font: "Inter", "Manrope", system-ui, -apple-system, sans-serif;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


img { max-width: 100%; display: block; }
a { color: var(--cyan-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cyan); }
ul { list-style: none; }
button, input, textarea, select { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 12px;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #fff;
  height: var(--header-h);
  background: rgba(1, 75, 136, 0.92);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 18px rgba(1, 53, 102, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  color: #fff;
  flex-shrink: 0;
  line-height: 1.2;
  gap: 12px;
}
.logo:hover { color: #fff; }
.logo-img {
  display: block;
  height: calc(var(--header-h) - 4px);
  width: auto;
  max-width: 420px;
  object-fit: contain;
  object-position: left center;
  margin: 2px 0;
}
.logo-tagline {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.3;
  max-width: none;
  opacity: 0.85;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  margin-top: 16px;
}
.logo-text {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: #fff;
  text-transform: uppercase;
  line-height: 1;
}
.logo-img-footer {
  height: 60px;
  max-width: 360px;
}
.footer .logo {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.footer .logo-tagline { display: none; }
.logo-name {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
}
.logo-tag {
  font-size: 0.65rem;
  opacity: 0.75;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-desktop {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-desktop a {
  color: rgba(255,255,255,0.85);
  padding: 8px 34px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
}
.nav-desktop a:hover,
.nav-desktop a.active {
  color: #fff;
  background: rgba(255,255,255,0.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.header-phone {
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
}
.header-phone:hover { color: var(--cyan); }

.cart-btn {
  position: relative;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.cart-btn:hover { background: rgba(255,255,255,0.2); }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--cyan);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.cart-badge:empty,
.cart-badge[data-count="0"] { display: none; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--navy-deep);
  padding: 16px 20px 24px;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-lg);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: rgba(255,255,255,0.9);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.nav-mobile a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-mobile .header-phone { padding: 12px 14px; display: block; }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
  line-height: 1.3;
}
.btn-primary {
  background: var(--cyan);
  color: #fff;
  border-color: var(--cyan);
}
.btn-primary:hover {
  background: var(--cyan-dark);
  border-color: var(--cyan-dark);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: #fff;
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
.btn-emergency {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
  animation: pulse-emergency 2s infinite;
}
.btn-emergency:hover {
  background: #a93226;
  border-color: #a93226;
  color: #fff;
}
@keyframes pulse-emergency {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(192, 57, 43, 0); }
}
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* —— Hero —— */
.hero {
  color: #fff;
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: clamp(420px, 72vh, 640px);
  display: flex;
  align-items: center;
  margin-top: calc(-1 * var(--header-h));
}
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 6s ease;
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    /* blue from left */
    linear-gradient(90deg, rgba(1,42,82,0.92) 0%, rgba(1,75,136,0.78) 22%, rgba(1,75,136,0.28) 42%, transparent 52%),
    /* blue from right */
    linear-gradient(270deg, rgba(1,42,82,0.88) 0%, rgba(1,75,136,0.62) 18%, rgba(1,75,136,0.2) 34%, transparent 46%),
    linear-gradient(180deg, rgba(1,42,82,0.28) 0%, transparent 42%, rgba(1,42,82,0.5) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 3;
  padding: calc(var(--header-h) + 56px) 0 88px;
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(180px, 0.55fr) minmax(160px, 0.42fr);
  gap: 24px;
  align-items: center;
}
.hero-copy {
  grid-column: 1;
  max-width: 560px;
}
.hero-stats {
  grid-column: 3;
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-self: end;
  text-align: left;
  padding: 8px 0;
}
.hero-stat .stat-num {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.hero-stat .stat-label {
  margin-top: 4px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.82);
}
.hero-geo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(2,176,251,0.2);
  color: var(--cyan);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: none;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.hero-lead {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: none;
  margin-bottom: 28px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(1,53,102,0.45);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.hero-nav:hover { background: rgba(2,176,251,0.55); border-color: var(--cyan); }
.hero-nav-prev { left: 16px; }
.hero-nav-next { right: 16px; }
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 8px;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 0;
}
.hero-dots button.is-active { background: var(--cyan); width: 24px; border-radius: 999px; }

/* —— Sections —— */
.section { padding: 44px 0; }
.section-alt { background: var(--bg-soft); }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.section-sub {
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 560px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section-head .section-sub { margin-bottom: 0; }

/* —— Stats —— */
.stats {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1.2;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* —— Steps —— */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}
.step-num {
  width: 36px;
  height: 36px;
  background: var(--cyan-soft);
  color: var(--cyan-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--navy); }
.step p { font-size: 0.9rem; color: var(--text-muted); }

/* —— Cards grid —— */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
a.card-img { display: block; }
.card-img {
  height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.card-img-grad {
  height: 160px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #fff;
  font-weight: 700;
}
.card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cyan-dark);
  font-weight: 600;
  margin-bottom: 6px;
}
.card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.35;
}
.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 14px;
}
.card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.card-price {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  font-size: 1rem;
}
.card-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: auto;
  width: 100%;
}
.card-actions .btn {
  width: 100%;
  justify-content: center;
}

.category-card .card-img-grad { height: 120px; }
.category-card h3 { margin-bottom: 6px; }

/* —— Project cards —— */
.project-card .card-img { height: 180px; }
.project-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(1,75,136,0.85);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* —— Contacts teaser —— */
.contacts-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.people-list { display: flex; flex-direction: column; gap: 16px; }
.person {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.person-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cyan-soft);
  color: var(--cyan-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.person strong { display: block; color: var(--navy); }
.person span { font-size: 0.85rem; color: var(--text-muted); }

/* —— Forms —— */
.form-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.form-card h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-card .form-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group label .req { color: var(--danger); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(2,176,251,0.22);
}
.form-group input.error,
.form-group textarea.error {
  border-color: var(--danger);
}
.form-error {
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 4px;
  display: none;
}
.form-group.has-error .form-error { display: block; }
.form-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.form-check input {
  margin-top: 3px;
  accent-color: var(--cyan);
  flex-shrink: 0;
}
.form-check.has-error { color: var(--danger); }

/* —— Page hero (inner) —— */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 48px 0;
}
.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.page-hero p {
  opacity: 0.85;
  max-width: 560px;
}
.breadcrumb {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 12px;
}
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: var(--cyan); }

/* —— Services —— */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }
.service-block img,
.service-visual {
  border-radius: var(--radius);
  height: 280px;
  width: 100%;
  object-fit: cover;
}
.service-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  padding: 24px;
}
.service-list { margin: 16px 0 24px; }
.service-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}

.emergency-banner {
  background: linear-gradient(135deg, #5c1a14 0%, #8b2e24 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  border: 2px solid rgba(255,100,80,0.3);
}
.emergency-banner h3 { font-size: 1.3rem; margin-bottom: 6px; }
.emergency-banner p { opacity: 0.9; font-size: 0.95rem; }

/* —— About —— */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
.about-text p { margin-bottom: 14px; color: var(--text-muted); }
.about-features {
  display: grid;
  gap: 14px;
}
.about-feat {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.about-feat h4 { color: var(--navy); margin-bottom: 4px; }
.about-feat p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* —— Contacts page —— */
.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-info-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 28px; }
.contact-item h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.contact-item p, .contact-item a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}
.map-placeholder {
  background: linear-gradient(135deg, #a9e4fd 0%, #067dc5 100%);
  border-radius: var(--radius);
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  text-align: center;
  border: 1px solid var(--border);
}
.map-placeholder strong { font-size: 1.1rem; margin-bottom: 4px; }
.map-placeholder span { font-size: 0.9rem; opacity: 0.8; }

/* —— Cart page —— */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}
.cart-table {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 80px;
  height: 64px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
}
.cart-item h4 { font-size: 0.95rem; color: var(--navy); margin-bottom: 2px; }
.cart-item .sku { font-size: 0.8rem; color: var(--text-muted); }
.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-control button {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg);
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}
.qty-control button:hover { background: var(--cyan-soft); }
.qty-control span {
  width: 36px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}
.cart-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px 8px;
}
.cart-remove:hover { color: var(--danger); }
.cart-summary {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.cart-summary h3 { margin-bottom: 16px; color: var(--navy); }
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.cart-summary-row.total {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 8px;
}
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cart-empty h2 { color: var(--navy); margin-bottom: 8px; }
.cart-empty p { color: var(--text-muted); margin-bottom: 24px; }

/* —— Cart drawer —— */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1, 42, 82, 0.5);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100%);
  height: 100%;
  background: #fff;
  z-index: 210;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -8px 0 30px rgba(0,0,0,0.15);
}
.cart-drawer.open { transform: translateX(0); }
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--navy);
  color: #fff;
}
.drawer-header h3 { font-size: 1.1rem; }
.drawer-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.drawer-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.drawer-item-img {
  width: 56px;
  height: 48px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
}
.drawer-item h4 { font-size: 0.85rem; color: var(--navy); line-height: 1.3; }
.drawer-item .drawer-qty { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.drawer-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-muted);
}

/* —— Modal —— */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1, 42, 82, 0.55);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-icon {
  width: 56px;
  height: 56px;
  background: #e6f7ef;
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
}
.modal h3 { color: var(--navy); margin-bottom: 8px; }
.modal p { color: var(--text-muted); margin-bottom: 24px; font-size: 0.95rem; }

/* —— Privacy —— */
.privacy-content {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 800px;
}
.privacy-content h2 {
  font-size: 1.2rem;
  color: var(--navy);
  margin: 24px 0 10px;
}
.privacy-content h2:first-child { margin-top: 0; }
.privacy-content p, .privacy-content li {
  color: var(--text-muted);
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.privacy-content ul { list-style: disc; padding-left: 20px; margin-bottom: 12px; }

/* —— Filters (catalog) —— */
.catalog-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}
.filters {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.filters h3 {
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 14px;
}
.filter-list { display: flex; flex-direction: column; gap: 6px; }
.filter-btn {
  background: none;
  border: none;
  text-align: left;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--cyan-soft);
  color: var(--cyan-dark);
  font-weight: 600;
}

/* —— Footer —— */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 0;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
}
.footer-brand .logo-name { color: #fff; }
.footer-brand .logo-tag { color: rgba(255,255,255,0.6); }
.footer-brand p {
  margin-top: 14px;
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.75;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  padding: 4px 0;
  font-size: 0.9rem;
}
.footer-col a:hover { color: var(--cyan); }
.footer-col p { font-size: 0.9rem; margin-bottom: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.85rem;
  opacity: 0.6;
}
.footer-bottom-left {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}
.footer-credit {
  color: rgba(255,255,255,0.85);
  margin-left: auto;
  white-space: nowrap;
}
.footer-credit:hover {
  color: var(--cyan);
}

/* —— Utilities —— */
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
main {
  flex: 1;
}



/* —— Shared section split (intro left + content right) —— */
.section-split,
.catalog-split {
  display: grid;
  grid-template-columns: minmax(200px, 0.7fr) minmax(0, 3.2fr);
  gap: 28px 28px;
  align-items: start;
}
.section-split.catalog-split {
  align-items: center;
}
.section-split-intro,
.catalog-intro {
  min-width: 0;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.section-split-intro .section-title,
.catalog-intro .section-title {
  margin-bottom: 10px;
}
.section-split-intro .section-sub,
.catalog-intro .section-sub {
  margin-bottom: 22px;
  max-width: 280px;
}
.section-split-main {
  min-width: 0;
}
.section-split-cards {
  margin: 0;
}
.section-split-cards-2x2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.section-split-cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.section-split-cards .card-img {
  height: 120px;
}
.section-split-cards .card-body {
  padding: 14px 14px 16px;
}
.section-split-cards .card-body h3 {
  font-size: 0.98rem;
}
.section-split-cards .card-body p {
  font-size: 0.85rem;
}
.section-split .faq-list {
  max-width: none;
  width: 100%;
}
.catalog-cats-slider {
  position: relative;
  padding: 0 44px 0 0;
  min-width: 0;
}
.catalog-viewport {
  overflow: hidden;
  width: 100%;
}
.catalog-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  width: 100%;
  transition: transform 0.35s ease;
  will-change: transform;
}
.catalog-slide {
  flex: 0 0 calc((100% - 48px) / 4);
  min-width: 0;
  box-sizing: border-box;
}
.cat-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition);
  min-height: 100%;
  height: 100%;
}
.cat-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: inherit;
}
.cat-card-img {
  height: 140px;
  background-size: cover;
  background-position: center;
  background-color: var(--navy-deep);
}
.cat-card-body {
  position: relative;
  padding: 16px 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cat-card-body h3 {
  font-size: 0.98rem;
  color: var(--navy);
  line-height: 1.3;
  margin: 0;
  padding-right: 28px;
}
.cat-card-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  padding-right: 28px;
  line-height: 1.4;
}
.cat-card-arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cyan);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
}
.catalog-nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--navy);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  padding: 0;
}
.catalog-nav:hover:not(:disabled) {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #fff;
}
.catalog-nav:disabled {
  opacity: 0.35;
  cursor: default;
}
.catalog-nav-prev { left: 0; }
.catalog-nav-next { right: 0; }
.catalog-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.catalog-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), width var(--transition);
}
.catalog-dots button.is-active {
  background: var(--cyan);
  width: 24px;
  border-radius: 999px;
}
@media (max-width: 1200px) {
  .catalog-slide { flex: 0 0 calc((100% - 32px) / 3); }
}
@media (max-width: 900px) {
  .catalog-slide { flex: 0 0 calc((100% - 16px) / 2); }
}
@media (max-width: 800px) {
  .section-split,
  .catalog-split { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .section-split-intro,
  .catalog-intro { position: static; }
  .section-split-intro .section-sub,
  .catalog-intro .section-sub { max-width: none; }
  .catalog-cats-slider { padding: 0 40px 0 0; }
  .section-split-cards-2x2,
  .section-split-cards-3 { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .section-split-cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .catalog-cats-slider { padding: 0 36px 0 0; }
  .catalog-slide { flex: 0 0 100%; }
  .catalog-nav { width: 36px; height: 36px; font-size: 1.3rem; }
}

/* —— Dark catalog section —— */
.section-catalog-dark {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 45%, var(--navy-mid) 100%);
  color: #fff;
}
.section-catalog-dark .section-title {
  color: #fff;
}
.section-catalog-dark .section-sub {
  color: rgba(255, 255, 255, 0.72);
}
.section-catalog-dark .section-head {
  margin-bottom: 32px;
}
.section-catalog-dark .category-card {
  background: rgba(1, 30, 58, 0.92);
  border: 1px solid rgba(2, 176, 251, 0.22);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.section-catalog-dark .category-card:hover {
  border-color: var(--cyan);
  background: rgba(1, 42, 82, 0.98);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}
.section-catalog-dark .category-card h3 {
  color: #fff;
}
.section-catalog-dark .category-card p {
  color: rgba(255, 255, 255, 0.78);
}
.section-catalog-dark .category-card .card-body {
  background: transparent;
}
.section-catalog-dark .category-card .card-img-grad {
  height: 132px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}

/* —— Popular products slider —— */
.popular-slider {
  position: relative;
  padding: 0 44px 0 0;
}
.popular-viewport {
  overflow: hidden;
  width: 100%;
}
.popular-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  width: 100%;
  transition: transform 0.35s ease;
  will-change: transform;
}
.popular-slide {
  flex: 0 0 calc((100% - 60px) / 4);
  min-width: 0;
  box-sizing: border-box;
}
.popular-slide .card {
  height: 100%;
}
.popular-nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--navy);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.popular-nav:hover:not(:disabled) {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #fff;
}
.popular-nav:disabled {
  opacity: 0.35;
  cursor: default;
}
.popular-nav-prev { left: 0; }
.popular-nav-next { right: 0; }

/* Only next arrow; prev stays hidden */
.popular-nav-prev,
.catalog-nav-prev {
  display: none !important;
}
.popular-nav-next,
.catalog-nav-next {
  display: flex;
  right: 0;
}

.popular-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.popular-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), width var(--transition);
}
.popular-dots button.is-active {
  background: var(--cyan);
  width: 24px;
  border-radius: 999px;
}

@media (max-width: 1200px) {
  .popular-slide {
    flex: 0 0 calc((100% - 40px) / 3);
  }
}
@media (max-width: 992px) {
  .popular-slider { padding: 0 8px 0 0; }
  .popular-slide {
    flex: 0 0 calc((100% - 20px) / 2);
  }
}

@media (max-width: 640px) {
  .popular-slider { padding: 0 4px 0 0; }
  .popular-slide {
    flex: 0 0 100%;
  }
  .popular-nav {
    width: 36px;
    height: 36px;
    font-size: 1.35rem;
  }
}


/* —— Home services row (4 clickable items) —— */
.section-services {
  background: var(--bg-soft);
}
.section-head-services {
  margin-bottom: 28px;
  align-items: flex-start;
}
.section-head-services .section-sub {
  margin-bottom: 0;
  max-width: 640px;
}
.services-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(2, 176, 251, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
}
.services-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 28px 22px;
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: background var(--transition), color var(--transition);
  min-width: 0;
}
.services-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18%;
  right: 0;
  width: 1px;
  height: 64%;
  background: rgba(2, 176, 251, 0.28);
}
.services-item:hover {
  background: rgba(2, 176, 251, 0.08);
  color: inherit;
}
.services-item:hover .services-title {
  color: var(--cyan-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.services-item:hover .services-chevron {
  opacity: 1;
  transform: translateX(2px);
  color: var(--cyan-dark);
}
.services-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid rgba(2, 176, 251, 0.55);
  background: rgba(255, 255, 255, 0.85);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.services-icon svg {
  width: 26px;
  height: 26px;
}
.services-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
.services-title {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy);
  line-height: 1.25;
}
.services-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.services-chevron {
  flex-shrink: 0;
  align-self: center;
  font-size: 1.15rem;
  color: var(--navy-mid);
  opacity: 0.45;
  transition: opacity var(--transition), transform var(--transition), color var(--transition);
}
@media (max-width: 1100px) {
  .services-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-item:nth-child(2n)::after { display: none; }
  .services-item:nth-child(-n+2) {
    border-bottom: 1px solid rgba(2, 176, 251, 0.22);
  }
}
@media (max-width: 640px) {
  .services-row { grid-template-columns: 1fr; }
  .services-item:not(:last-child)::after { display: none; }
  .services-item:not(:last-child) {
    border-bottom: 1px solid rgba(2, 176, 251, 0.22);
  }
  .services-item:nth-child(-n+2) { border-bottom: 1px solid rgba(2, 176, 251, 0.22); }
}

/* Shared card-slider aliases (services / projects reuse popular-* markup) */
.card-slider.popular-slider { /* same look as popular */ }
.popular-slide .card,
.popular-slide .project-card {
  height: 100%;
}

/* —— Responsive —— */
@media (max-width: 992px) {
  .nav-desktop { display: none; }
  .burger { display: flex; }
  .header-phone { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contacts-teaser,
  .service-block,
  .service-block.reverse,
  .about-grid,
  .contacts-layout,
  .cart-layout,
  .catalog-layout {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .filters { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero { min-height: 480px; }
  .hero-content { padding: 48px 0 72px; }
  .hero-nav { display: none; }
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-copy { max-width: 100%; }
  .hero-stats {
    grid-column: 1;
    flex-direction: row;
    flex-wrap: wrap;
    justify-self: start;
    gap: 16px 28px;
  }
  .hero-stat { min-width: 120px; }
  .section { padding: 32px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .steps { grid-template-columns: 1fr; }
  .cards-grid-3 { grid-template-columns: 1fr; }
  .cart-item {
    grid-template-columns: 64px 1fr;
    gap: 12px;
  }
  .cart-item .qty-control,
  .cart-item .cart-remove { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .emergency-banner { flex-direction: column; text-align: center; }
  .page-hero { padding: 36px 0; }
}

/* —— Nav dropdown (О компании) —— */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a,
.nav-dropdown-toggle {
  color: rgba(255,255,255,0.85);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown > a:hover,
.nav-dropdown > a.active,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active,
.nav-dropdown:hover > a,
.nav-dropdown:hover > .nav-dropdown-toggle {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.nav-dropdown-toggle::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
  margin-left: 2px;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--navy-deep);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  box-shadow: var(--shadow-lg);
  z-index: 120;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: block;
  color: rgba(255,255,255,0.85);
  padding: 10px 16px;
  font-size: 0.88rem;
  border-radius: 0;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: rgba(2,176,251,0.15);
  color: #fff;
}

.nav-mobile .nav-mobile-sub {
  display: flex;
  flex-direction: column;
  padding-left: 12px;
  margin-bottom: 4px;
}
.nav-mobile .nav-mobile-sub a {
  font-size: 0.88rem;
  opacity: 0.9;
  padding: 8px 12px;
}

/* —— About subnav —— */
.about-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding: 6px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.about-subnav a {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  background: transparent;
}
.about-subnav a:hover {
  background: var(--cyan-soft);
  color: var(--cyan-dark);
}
.about-subnav a.active {
  background: var(--navy);
  color: #fff;
}

/* —— Service cards grid —— */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.service-card-visual {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  padding: 20px;
}
.service-card-body {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card-body h2,
.service-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--navy);
}
.service-card-body > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.service-card-body .btn { margin-top: auto; align-self: flex-start; }


/* —— Partners —— */
.partners-intro {
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 720px;
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.partner-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.partner-logo {
  width: 100%;
  height: 72px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: #fff;
}
.partner-card h3 {
  font-size: 1rem;
  color: var(--navy);
}
.partner-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.partners-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* —— Careers —— */
.careers-pitch {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 28px;
}
.careers-pitch p {
  color: var(--text-muted);
  margin-bottom: 12px;
}
.careers-pitch p:last-child { margin-bottom: 0; }
.vacancies-list {
  display: grid;
  gap: 16px;
}
.vacancy-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.vacancy-card h3 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.vacancy-meta {
  font-size: 0.85rem;
  color: var(--cyan-dark);
  font-weight: 600;
  margin-bottom: 10px;
}
.vacancy-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.demo-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--cyan-soft);
  color: var(--cyan-dark);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

/* —— Form file helper —— */
.form-optional {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: 6px;
}
.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.form-group input[type="file"] {
  padding: 10px;
  background: var(--bg);
  border: 1px dashed var(--border);
  cursor: pointer;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-dropdown-menu { display: none !important; }
}
@media (max-width: 640px) {
  .partners-grid { grid-template-columns: 1fr; }
    .about-subnav { flex-direction: column; }
}


/* —— FAQ accordion —— */

/* —— FAQ dark —— */
.section-faq-dark {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 45%, var(--navy-mid) 100%);
  color: #fff;
}
.section-faq-dark .section-title { color: #fff; }
.section-faq-dark .section-sub { color: rgba(255,255,255,0.72); }
.section-faq-dark .section-sub a { color: var(--cyan); }
.section-faq-dark .section-sub a:hover { color: #7dd8ff; }
.section-faq-dark .faq-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
}
.section-faq-dark .faq-item.open {
  border-color: rgba(2,176,251,0.45);
  background: rgba(2,176,251,0.1);
}
.section-faq-dark .faq-q {
  color: #fff;
}
.section-faq-dark .faq-q:hover { color: var(--cyan); }
.section-faq-dark .faq-q::after { color: var(--cyan); }
.section-faq-dark .faq-a {
  color: rgba(255,255,255,0.78);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 820px;
}
.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item.open {
  border-color: rgba(2,176,251,0.45);
  box-shadow: var(--shadow);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 20px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}
.faq-q:hover { color: var(--cyan-dark); }
.faq-q::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cyan-soft);
  color: var(--cyan-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}
.faq-item.open .faq-q::after {
  content: "−";
  background: var(--navy);
  color: #fff;
}
.faq-a {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.faq-item.open .faq-a { display: block; }


/* —— Lead form (pipes decorative on right of split) —— */
#lead {
  position: relative;
  background: var(--bg);
}
.lead-split-right {
  position: relative;
  isolation: isolate;
  padding: 18px;
  border-radius: var(--radius);
  overflow: hidden;
}
.lead-split-right::before,
.lead-split-right::after {
  /* pipes bg hidden for now — set display back to restore */
  display: none;
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.lead-split-right::before {
  background: url("../images/faq-pipes.png") center / cover no-repeat;
  opacity: 0.45;
}
.lead-split-right::after {
  background: linear-gradient(135deg, rgba(238,246,251,0.82) 0%, rgba(238,246,251,0.55) 45%, rgba(238,246,251,0.28) 100%);
}
.lead-split-right > * {
  position: relative;
  z-index: 1;
}
.form-card.form-card-compact {
  padding: 24px 26px;
  box-shadow: none;
  background: var(--bg-white);
}
@media (max-width: 800px) {
  .lead-split-right {
    padding: 12px;
  }
}

/* —— FAQ (light split section; no navy blend) —— */
#faq .faq-list {
  max-width: none;
  width: 100%;
  text-align: left;
}
.lead-form-compact .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.lead-form-compact .form-row-2 {
  grid-template-columns: 1fr 1fr;
}
.lead-form-compact .form-row-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
}
.lead-form-compact .form-group {
  margin-bottom: 0;
}
.lead-form-compact label {
  font-size: 0.78rem;
  margin-bottom: 4px;
}
.lead-form-compact input[type="text"],
.lead-form-compact input[type="tel"],
.lead-form-compact input[type="email"],
.lead-form-compact input[type="file"],
.lead-form-compact textarea {
  padding: 10px 12px;
  min-height: 42px;
}
.lead-form-compact textarea {
  min-height: 84px;
  resize: vertical;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
}
.lead-form-compact .form-check {
  margin: 0;
  flex: 1;
}
.lead-form-compact .form-check label {
  font-size: 0.82rem;
  line-height: 1.35;
}
.lead-form-compact .form-error {
  font-size: 0.72rem;
}
@media (max-width: 900px) {
  .lead-form-compact .form-row {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .lead-form-compact .form-row,
  .lead-form-compact .form-row-2 {
    grid-template-columns: 1fr;
  }
  .lead-form-compact .form-row-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* —— About strip (compact diagonal under FAQ) —— */
.section-about-strip,
.about-strip {
  padding: 0;
  background: var(--bg-white);
  width: 100%;
}
.about-strip-inner {
  display: grid;
  grid-template-columns: minmax(180px, 0.4fr) minmax(0, 0.6fr);
  min-height: 240px;
  max-height: 280px;
  overflow: hidden;
  width: 100%;
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--border);
}
.about-strip-media {
  position: relative;
  isolation: isolate;
  min-height: 220px;
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
}
.about-strip-media-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.about-strip-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(1,42,82,0.72) 0%, rgba(1,75,136,0.55) 55%, rgba(2,176,251,0.28) 100%);
  z-index: 1;
  pointer-events: none;
}
.about-strip-title {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 28px 40px 28px max(24px, calc((100vw - 1520px) / 2));
  margin: 0;
  color: #fff;
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: none;
}
.about-strip-title span {
  display: block;
}
.about-strip-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 28px max(24px, calc((100vw - 1520px) / 2)) 22px 36px;
  background: var(--bg-white);
  min-width: 0;
}
.about-strip-text {
  margin: 0;
  color: var(--navy-mid);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 54ch;
  font-weight: 500;
}
.about-strip-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
}
.about-strip-stat {
  padding: 0 16px;
  border-right: 1px solid var(--border);
}
.about-strip-stat:first-child {
  padding-left: 0;
}
.about-strip-stat:last-child {
  border-right: 0;
  padding-right: 0;
}
.about-strip-stat-num {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 4px;
}
.about-strip-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.about-strip-link {
  align-self: flex-end;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.92rem;
}
.about-strip-link:hover {
  color: var(--cyan-dark);
}
@media (max-width: 900px) {
  .about-strip-inner {
    grid-template-columns: 1fr;
    max-height: none;
    min-height: 0;
  }
  .about-strip-media {
    clip-path: none;
    min-height: 160px;
  }
  .about-strip-title {
    padding: 22px 20px;
    font-size: 1.25rem;
  }
  .about-strip-content {
    padding: 20px 16px 18px;
  }
  .about-strip-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .about-strip-stat {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 0 0 10px;
  }
  .about-strip-stat:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .about-strip-link {
    align-self: flex-start;
  }
}
