/* ==========================================================================
   EnergyDrive.fr — dealer site stylesheet
   Block layout built on thirds (33/33/33, 66/33, 60/40); sharp corners.
   Palette: green accent on dark charcoal. Pure CSS, no frameworks.
   ========================================================================== */

:root {
  --brand: #73b711;
  --brand-600: #659f0e;
  --brand-700: #57880c;
  --brand-soft: rgba(115, 183, 17, 0.14);

  --ink: #212121;
  --ink-2: #000000;
  --slate: #353535;
  --overlay: #4a4a4a;
  --topbar: #2d394b;
  --muted: #6f6f6f;
  --muted-2: #9a9a9a;

  --line: #dcdcdc;
  --line-strong: #c2c2c2;
  --bg: #ededed;
  --bg-2: #e5e3e0;
  --surface: #ffffff;

  --success: #73b711;
  --success-soft: #eef7e0;
  --danger: #c0392b;

  --radius: 0px;
  --radius-sm: 0px;
  --container: 1200px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.2);

  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 76px;
  --topbar-h: 32px;
}

/* Reset ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-700);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  color: var(--ink);
  font-weight: 700;
}

h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
}

h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 18px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: top 0.15s;
}

.skip-link:focus {
  top: 8px;
  text-decoration: none;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-700);
  border-color: var(--brand-700);
}

.btn-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: var(--ink-2);
}

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--ink);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn-sm {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 0.87rem;
}

.btn-block {
  width: 100%;
}

/* Header ----------------------------------------------------------------- */
.topbar {
  background: var(--topbar);
  color: #c7d0da;
  font-size: 0.8rem;
}

.topbar .container {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--topbar-h);
  flex-wrap: wrap;
}

.topbar a {
  color: #eef1f3;
}

.topbar a:hover {
  color: #fff;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.topbar .icon {
  width: 15px;
  height: 15px;
  color: var(--brand);
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-switch a {
  padding: 2px 8px;
}

.lang-switch a[aria-current="true"] {
  background: var(--brand);
  color: #fff;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
}

.header-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-top .container {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 74px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.12rem;
  color: #fff;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--brand);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-text small {
  display: block;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9aa4ad;
}

.header-info {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.header-info-item {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #e9ecef;
}

.header-info-item .icon {
  width: 22px;
  height: 22px;
  color: var(--brand);
  flex: none;
}

.header-info-item small {
  display: block;
  font-size: 0.66rem;
  color: #9aa4ad;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.header-info-item strong {
  font-size: 0.98rem;
  color: #fff;
}

.header-info-item a {
  color: #fff;
}

/* Nav bar (row 2 of the main header) */
.header-nav {
  background: var(--ink);
}

.header-nav .container {
  display: flex;
  align-items: center;
  min-height: 50px;
}

.primary-nav {
  margin-left: 0;
}

.nav-list {
  display: flex;
  align-items: stretch;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 18px;
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-list a:hover {
  background: var(--brand);
  color: #fff;
  text-decoration: none;
}

.nav-list a[aria-current="page"] {
  background: var(--brand);
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  border: 0;
  cursor: pointer;
  color: #fff;
}

.nav-toggle .icon {
  width: 24px;
  height: 24px;
}

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: var(--ink);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero .container {
  position: relative;
  width: 100%;
  padding-block: 64px;
}

.hero-panel {
  margin-left: auto;
  width: 42%;
  background: rgba(33, 33, 33, 0.82);
  padding: 48px 42px;
  color: #fff;
}

.hero h1 {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.04rem;
  color: #dcdcdc;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-dots button {
  width: 13px;
  height: 13px;
  padding: 0;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
}

.hero-dots button.is-active {
  background: var(--brand);
  border-color: var(--brand);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}

.hero .eyebrow {
  color: var(--brand);
}

/* Page banner ------------------------------------------------------------ */
.page-banner {
  background: var(--ink);
  color: #fff;
  padding-block: 30px;
}

.page-banner h1 {
  color: #fff;
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.page-banner p {
  margin: 6px 0 0;
  color: #cbd2d7;
  max-width: 760px;
}

/* Breadcrumbs ------------------------------------------------------------ */
.breadcrumbs {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 11px 0;
  color: var(--muted);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumbs li:not(:last-child)::after {
  content: "›";
  color: var(--muted-2);
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--brand-700);
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* Sections --------------------------------------------------------------- */
.section {
  padding-block: clamp(44px, 6vw, 76px);
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-dark {
  background: var(--ink);
  color: #d7dcdf;
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.section-dark .section-head p {
  color: #b9c0c5;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.section-head-row .section-head {
  margin-bottom: 0;
}

/* Grids ------------------------------------------------------------------ */
.grid {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Vehicle cards ---------------------------------------------------------- */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.vehicle-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s, transform 0.18s;
}

.vehicle-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.vehicle-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--bg-2);
  overflow: hidden;
}

.vehicle-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-badges {
  position: absolute;
  inset: 10px 10px auto 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--ink);
}

.badge-condition {
  background: var(--success-soft);
  color: var(--success);
}

.badge-condition.is-used {
  background: #eef1f3;
  color: var(--slate);
}

.badge-type {
  background: rgba(21, 27, 32, 0.78);
  color: #fff;
  margin-left: auto;
}

.vehicle-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px 15px 17px;
  flex: 1;
}

.vehicle-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.vehicle-title:hover {
  color: var(--brand-700);
  text-decoration: none;
}

.vehicle-price {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--ink);
}

.vehicle-price small {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.vehicle-price .request {
  font-size: 1.02rem;
  color: var(--slate);
}

.vehicle-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spec {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.79rem;
  color: var(--slate);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 3px 8px;
}

.spec .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.vehicle-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: auto;
}

.vehicle-meta .icon {
  width: 15px;
  height: 15px;
  color: var(--brand);
  flex: none;
}

.vehicle-actions {
  display: flex;
  gap: 8px;
}

.vehicle-actions .btn {
  flex: 1;
}

/* Stock layout ----------------------------------------------------------- */
.catalog-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.filters {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-h) + 12px);
}

.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

.filters-head h2 {
  font-size: 1rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filters-body {
  padding: 6px 16px 18px;
}

.filter-group {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.filter-group:last-child {
  border-bottom: 0;
}

.filter-group h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate);
  margin-bottom: 10px;
}

.filter-scroll {
  max-height: 190px;
  overflow-y: auto;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 0;
  font-size: 0.9rem;
  cursor: pointer;
}

.check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-600);
}

.check-row .count {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 0.78rem;
}

.range-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 0.94rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  min-height: 42px;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

/* Stock toolbar */
.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.catalog-count {
  font-weight: 700;
}

.catalog-count span {
  color: var(--muted);
  font-weight: 500;
}

.catalog-toolbar .spacer {
  flex: 1;
}

.catalog-toolbar .field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-toolbar label {
  font-size: 0.84rem;
  color: var(--muted);
  white-space: nowrap;
}

.search-field {
  position: relative;
  flex: 1 1 220px;
  min-width: 180px;
}

.search-field .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

.search-field input {
  padding-left: 38px;
}

.active-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--brand-soft);
  color: var(--brand-700);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.83rem;
  font-weight: 600;
}

.chip button {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

/* Pagination ------------------------------------------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
}

.pagination a:hover {
  border-color: var(--brand);
  color: var(--brand-700);
  text-decoration: none;
}

.pagination .is-current {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

.pagination .is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* Empty state ------------------------------------------------------------ */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.empty-state .icon {
  width: 46px;
  height: 46px;
  color: var(--muted-2);
  margin-bottom: 12px;
}

.empty-state p {
  color: var(--muted);
  margin-bottom: 16px;
}

/* Product detail --------------------------------------------------------- */
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.gallery-main {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ink-2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f1418;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.gallery-thumbs button {
  width: 84px;
  height: 63px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-2);
  cursor: pointer;
}

.gallery-thumbs button[aria-current="true"] {
  border-color: var(--brand);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.buy-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.buy-price {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.buy-price small {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.buy-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  margin: 14px 0;
  font-size: 0.92rem;
}

.buy-location .icon {
  width: 17px;
  height: 17px;
  color: var(--brand);
}

.buy-actions {
  display: grid;
  gap: 9px;
  margin-top: 6px;
}

.buy-facts {
  list-style: none;
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.buy-facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.buy-facts .icon {
  width: 17px;
  height: 17px;
  color: var(--brand);
  flex: none;
}

/* Spec table ------------------------------------------------------------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.spec-table caption {
  text-align: left;
  font-weight: 700;
  padding: 14px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

.spec-table th {
  width: 48%;
  font-weight: 600;
  color: var(--slate);
  background: var(--bg);
}

/* Prose / content -------------------------------------------------------- */
.prose {
  max-width: 780px;
}

.prose h2 {
  margin-top: 1.6em;
}

.prose h3 {
  margin-top: 1.3em;
}

.prose > :first-child {
  margin-top: 0;
}

/* Feature cards ---------------------------------------------------------- */
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.feature .icon-badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-700);
  margin-bottom: 16px;
}

.feature .icon-badge .icon {
  width: 26px;
  height: 26px;
}

.feature h3 {
  font-size: 1.06rem;
  margin-bottom: 8px;
}

.feature p {
  color: var(--muted);
  margin: 0;
  font-size: 0.94rem;
}

.section-dark .feature {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.section-dark .feature p {
  color: #b9c0c5;
}

.section-dark .feature .icon-badge {
  background: rgba(228, 95, 39, 0.16);
  color: #ff9d72;
}

/* Steps ------------------------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 10px;
}

.step h3 {
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Split media/text ------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
}

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* CTA band --------------------------------------------------------------- */
.cta-band {
  background: var(--brand-600);
  color: #fff;
  padding-block: clamp(38px, 5vw, 58px);
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 8px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.cta-band .cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band .cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-band .btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.cta-band .btn-primary:hover {
  background: #000;
}

/* FAQ -------------------------------------------------------------------- */
.faq {
  max-width: 860px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--brand);
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details > div {
  padding: 0 18px 18px;
  color: var(--muted);
}

/* Contact ---------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 34px;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.contact-list li {
  display: flex;
  gap: 14px;
}

.contact-list .icon-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-700);
}

.contact-list .icon-badge .icon {
  width: 22px;
  height: 22px;
}

.contact-list h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 3px;
}

.contact-list a,
.contact-list address {
  font-style: normal;
  color: var(--ink);
  font-weight: 600;
}

.map-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  line-height: 0;
}

.map-embed iframe {
  width: 100%;
  height: 340px;
  border: 0;
}

/* Forms ------------------------------------------------------------------ */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--slate);
}

.form-field .req {
  color: var(--brand-700);
}

.form-field .error {
  color: var(--danger);
  font-size: 0.8rem;
  min-height: 1em;
}

.product-search {
  margin-bottom: 8px;
}

.phone-row {
  display: flex;
  gap: 8px;
}

.phone-row .phone-country {
  flex: 0 0 40%;
  max-width: 200px;
}

.phone-row .phone-number {
  flex: 1 1 auto;
  min-width: 0;
}

.form-field select[data-product-select] {
  max-height: 240px;
}

.form-field input:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  grid-column: 1 / -1;
  font-size: 0.88rem;
  color: var(--muted);
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand-600);
  flex: none;
}

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 12px 0 0;
}

.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form-status.is-info {
  display: block;
  background: var(--brand-soft);
  color: var(--brand-700);
}

.form-status.is-error {
  display: block;
  background: #fbeae8;
  color: var(--danger);
}

/* Honeypot */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Legal pages ------------------------------------------------------------ */
.legal-meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 24px;
}

/* 404 -------------------------------------------------------------------- */
.error-404 {
  text-align: center;
  padding-block: clamp(50px, 9vw, 100px);
}

.error-404 .code {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}

/* Footer ----------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #b5b5b5;
  font-size: 0.92rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: stretch;
}

.footer-cols {
  background: var(--ink);
  padding: 50px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.footer-social {
  background: var(--slate);
  padding: 50px 32px;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 16px;
}

.site-footer a {
  color: #c9c9c9;
}

.site-footer a:hover {
  color: #fff;
}

.footer-about .logo {
  color: #fff;
  margin-bottom: 14px;
}

.footer-about p {
  color: #b5b5b5;
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer-contact .icon {
  width: 18px;
  height: 18px;
  color: var(--brand);
  flex: none;
  margin-top: 2px;
}

.footer-social p {
  color: #b5b5b5;
  font-size: 0.9rem;
  margin: 0;
}

.footer-bottom {
  background: var(--ink-2);
  padding-block: 18px;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #8b9499;
}

.footer-legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Home — block layout on thirds ----------------------------------------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.tile {
  display: flex;
  flex-direction: column;
  padding: 34px 30px;
  color: #fff;
}

.tile-dark {
  background: var(--ink);
}

.tile-green {
  background: var(--brand);
  color: #fff;
}

.tile h3 {
  color: #fff;
  text-transform: uppercase;
  font-size: 1.08rem;
  margin-bottom: 16px;
}

.tile img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  margin-bottom: 16px;
}

.tile p {
  color: #dcdcdc;
  flex: 1 1 auto;
}

.tile-green p {
  color: rgba(255, 255, 255, 0.92);
}

.tile .btn {
  align-self: flex-start;
  margin-top: 10px;
}

.services-split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: stretch;
}

.services-light {
  background: var(--bg);
  padding: 46px 40px;
}

.services-light h2 {
  margin-bottom: 22px;
  text-transform: uppercase;
}

.services-twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.services-twocol li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--slate);
}

.services-twocol li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--brand);
  flex: none;
}

.service-stack {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
}

.service-stack-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  background: var(--slate);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.service-stack-item:last-child {
  border-bottom: 0;
}

.service-stack-item .icon {
  width: 34px;
  height: 34px;
  color: var(--brand);
  flex: none;
}

.service-stack-item span {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

.complete {
  position: relative;
  color: #fff;
  background-color: var(--ink);
  background-position: center;
  background-size: cover;
  min-height: 360px;
  display: flex;
  align-items: center;
}

.complete::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(33, 33, 33, 0.28);
}

.complete .container {
  position: relative;
  width: 100%;
  padding-block: 56px;
}

.complete-panel {
  margin-left: auto;
  width: 40%;
  background: rgba(33, 33, 33, 0.86);
  padding: 44px 40px;
}

.complete h2 {
  color: #fff;
  text-transform: uppercase;
}

.complete p {
  color: #dcdcdc;
}

.map-contacts {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: stretch;
}

.map-contacts .map-embed {
  border: 0;
  height: 100%;
  box-shadow: none;
}

.map-contacts .map-embed iframe {
  height: 100%;
  min-height: 380px;
}

.contact-green {
  background: var(--brand);
  color: #fff;
  padding: 46px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.contact-green .icon {
  width: 40px;
  height: 40px;
  color: #fff;
}

.contact-green .phone-big {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
}

.contact-green a {
  color: #fff;
}

.contact-green small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.85);
}

.contact-green .btn {
  align-self: flex-start;
  margin-top: 14px;
}

/* Detail panel (product SEO block) -------------------------------------- */
.detail-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px 26px;
}

.detail-panel h2 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.detail-panel p {
  margin: 0;
  color: var(--slate);
}

/* Catalog SEO block ------------------------------------------------------ */
.catalog-seo {
  border-top: 4px solid var(--brand);
}

.catalog-seo .prose,
.catalog-seo .faq {
  max-width: 900px;
}

.catalog-seo .prose h2 {
  margin-top: 1.7em;
}

.catalog-seo .faq {
  margin-top: 30px;
}

/* Back to top ------------------------------------------------------------ */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: none;
  place-items: center;
  background: var(--brand);
  color: #fff;
  border: 0;
  cursor: pointer;
}

.to-top.is-visible {
  display: grid;
}

.to-top .icon {
  width: 22px;
  height: 22px;
}

/* Utilities -------------------------------------------------------------- */
.mt-0 {
  margin-top: 0;
}
.mt-24 {
  margin-top: 24px;
}
.mb-0 {
  margin-bottom: 0;
}
.text-center {
  text-align: center;
}
.muted {
  color: var(--muted);
}
.nowrap {
  white-space: nowrap;
}
.hidden {
  display: none !important;
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .tiles,
  .footer-cols,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .services-split,
  .map-contacts,
  .footer-main,
  .product-layout,
  .contact-grid,
  .split {
    grid-template-columns: 1fr;
  }
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .hero-panel {
    width: 60%;
  }
  .complete-panel {
    width: 60%;
  }
  .filters {
    position: static;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }
  .header-nav .container {
    min-height: 56px;
    justify-content: flex-end;
  }
  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--ink);
    display: none;
    margin: 0;
    z-index: 50;
  }
  .primary-nav.is-open {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 6px 18px 14px;
    gap: 0;
  }
  .nav-list a {
    height: auto;
    padding: 13px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .header-info {
    gap: 16px;
  }
  .header-info-item.header-address {
    display: none;
  }
  .header-actions .btn {
    display: none;
  }
  .steps,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .form-grid,
  .services-twocol {
    grid-template-columns: 1fr;
  }
  .hero-panel,
  .complete-panel {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .topbar .topbar-item.topbar-mail {
    display: none;
  }
  .tiles,
  .footer-cols,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-main {
    grid-template-columns: 1fr;
  }
  .cta-band .cta-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-info-item.header-phone-top {
    display: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .breadcrumbs,
  .buy-actions,
  .similar,
  .filters,
  .catalog-toolbar {
    display: none !important;
  }
  body {
    background: #fff;
  }
}
