/* ==========================================================================
   Hyundai Smart Locks Kazakhstan — Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand colors — sourced from hyundai.kz */
  --navy: #002c5f;
  --navy-deep: #00193b;
  --navy-mid: #013a72;
  --azure: #00aad2;
  --azure-deep: #0089ac;
  --beige: #e4dcd3;

  /* Neutrals */
  --ink: #17191c;
  --ink-soft: #4b5157;
  --ink-faint: #757c84;
  --paper: #ffffff;
  --cloud: #f6f3f2;
  --mist: #eef0f2;
  --line: #e1e3e6;

  /* Semantic */
  --success: #1e8e5a;
  --danger: #c0392b;

  /* Type */
  --font-display: 'Unbounded', 'Arial', sans-serif;
  --font-body: 'Inter', 'Arial', sans-serif;

  /* Scale */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 3rem;
  --fs-4xl: 3.75rem;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(0, 20, 45, 0.06);
  --shadow-md: 0 12px 32px rgba(0, 20, 45, 0.10);
  --shadow-lg: 0 24px 64px rgba(0, 20, 45, 0.16);

  --container: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
svg { display: block; }
input, textarea, select { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

:focus-visible {
  outline: 2.5px solid var(--azure);
  outline-offset: 2px;
}

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

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

.section { padding-block: var(--sp-9); }
.section--tight { padding-block: var(--sp-7); }
.section--navy { background: var(--navy); color: #fff; }
.section--cloud { background: var(--cloud); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--azure-deep);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: '';
  width: 22px; height: 2px;
  background: var(--azure);
  display: inline-block;
}
.section--navy .eyebrow { color: var(--azure); }

.section-head { max-width: 640px; margin-bottom: var(--sp-7); }
.section-head h2 { font-size: var(--fs-2xl); }
.section-head p { margin-top: var(--sp-3); color: var(--ink-soft); font-size: var(--fs-md); }
.section--navy .section-head p { color: #b9c7d8; }

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--fs-sm);
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--azure); color: var(--navy-deep); }
.btn--primary:hover { background: #1cc0e8; box-shadow: var(--shadow-md); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-mid); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); }
.section--navy .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.35); }
.section--navy .btn--ghost:hover { border-color: #fff; }
.btn--sm { padding: 0.6rem 1.1rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---- Utility bar ------------------------------------------------------ */
.utility-bar {
  background: var(--beige);
  font-size: var(--fs-xs);
  color: var(--ink-soft);
}
.utility-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: 40px;
}
.utility-bar__left { display: flex; align-items: center; gap: var(--sp-4); min-width: 0; }
.utility-bar__left > span { display: none; }
.utility-bar__right { display: flex; align-items: center; gap: var(--sp-3); }
.utility-bar__right > span { display: none; }
@media (min-width: 560px) {
  .utility-bar__left > span { display: inline; }
}
@media (min-width: 860px) {
  .utility-bar__right > span { display: inline; }
}
.utility-bar a { display: inline-flex; align-items: center; gap: 6px; }
.utility-bar a:hover { color: var(--navy); }
.utility-bar__social { display: flex; align-items: center; gap: var(--sp-2); }
.utility-bar__social a {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(0,44,95,0.08);
  align-items: center; justify-content: center;
}
.utility-bar__social a:hover { background: var(--navy); color: #fff; }

/* ---- Header ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  height: 84px;
}
.logo { flex-shrink: 0; display: flex; align-items: center; }
.logo svg, .logo img { height: 22px; width: auto; }

.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: var(--sp-6); }
.main-nav a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
  padding-block: var(--sp-2);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--navy); border-color: var(--azure); }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.header-phone { display: none; align-items: center; gap: var(--sp-2); font-weight: 600; font-size: var(--fs-sm); }
.header-phone svg { color: var(--azure-deep); }

.nav-toggle {
  display: inline-flex;
  background: none; border: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  color: var(--navy);
}

@media (min-width: 960px) {
  .main-nav { display: block; }
  .header-phone { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed; inset: 0;
  z-index: 200;
  background: var(--navy-deep);
  color: #fff;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  display: flex; flex-direction: column;
  padding: var(--sp-5);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-7); }
.mobile-nav__close { background: none; border: none; color: #fff; width: 40px; height: 40px; }
.mobile-nav ul { display: flex; flex-direction: column; gap: var(--sp-5); }
.mobile-nav a { font-family: var(--font-display); font-size: var(--fs-xl); }
.mobile-nav__footer { margin-top: auto; display: flex; flex-direction: column; gap: var(--sp-4); }

@media (min-width: 960px) {
  .mobile-nav { display: none !important; }
}

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: 0;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,25,59,0.58) 0%, rgba(0,25,59,0.7) 45%, rgba(0,18,42,0.86) 100%);
}

@media (min-width: 900px) {
  .hero__scrim {
    background:
      linear-gradient(90deg, var(--navy-deep) 0%, var(--navy-deep) 22%, rgba(0,25,59,0.94) 38%, rgba(0,25,59,0.6) 54%, rgba(0,25,59,0.12) 74%, transparent 90%),
      linear-gradient(180deg, rgba(0,20,45,0.4) 0%, transparent 24%, transparent 76%, rgba(0,12,28,0.6) 100%);
  }
}
.hero__grid {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}
.hero__lockwrap {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: clamp(130px, 34vw, 210px);
  padding-left: clamp(14px, 3vw, 24px);
  background:
    linear-gradient(100deg, rgba(0,10,25,0.34) 0%, rgba(0,10,25,0) 46%, rgba(0,10,25,0.36) 100%),
    radial-gradient(ellipse at 26% 44%, rgba(0,170,210,0.2) 0%, transparent 62%),
    url('../assets/hero-door-bg.jpg') center/cover;
  box-shadow: inset 1px 0 0 rgba(255,255,255,0.08);
}
.hero__lock-glow {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: min(220px, 70vw);
  height: 140%;
  background: radial-gradient(ellipse at 30% 50%, rgba(0,170,210,0.4) 0%, rgba(0,170,210,0.15) 45%, transparent 72%);
  filter: blur(10px);
}
.hero__lockwrap .lock-art {
  position: relative;
  z-index: 2;
  height: min(380px, 50vh);
  width: auto;
  max-width: none;
}
.hero__copy {
  position: relative;
  z-index: 2;
  padding: var(--sp-7) clamp(150px, 42vw, 230px) var(--sp-8) var(--sp-5);
  max-width: 620px;
  margin-inline: 0;
  text-align: left;
}
.hero h1.hero__title--brand {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: var(--fs-2xl);
  color: #fff;
  line-height: 1.28;
}
.hero__brand-name { font-weight: 900; font-size: 1.35em; line-height: 1; }
.hero__brand-my { color: #fff; }
.hero__brand-lock { color: #00aad2; }

.hero__eyebrow.eyebrow {
  color: var(--azure);
  justify-content: center;
}
.hero__tagline {
  margin-top: var(--sp-4);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
}
.hero__tagline span { color: var(--azure); margin-inline: 0.4em; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.hero__btn-ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.hero__btn-ghost:hover { border-color: #fff; }

@media (min-width: 900px) {
  .hero__grid {
    display: block;
    min-height: 760px;
  }
  .hero__lockwrap {
    width: clamp(240px, 17vw, 330px);
    padding-left: clamp(20px, 2.5vw, 36px);
  }
  .hero__lockwrap .lock-art { height: min(660px, 80vh); }
  .hero__copy {
    text-align: left;
    margin-inline: 0;
    max-width: 600px;
    padding-block: var(--sp-9) var(--sp-8);
    padding-inline: var(--sp-8) clamp(90px, 8vw, 150px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 760px;
  }
  .hero h1.hero__title--brand { font-size: var(--fs-4xl); }
  .hero__eyebrow.eyebrow { justify-content: flex-start; }
  .hero__tagline { font-size: var(--fs-md); }
  .hero__actions { justify-content: flex-start; }
}

/* ---- Lock illustration (shared) ----------------------------------------- */
.lock-art { filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35)); width: auto; height: min(480px, 58vh, 74vw); max-width: 90%; }

/* ---- Cards --------------------------------------------------------------- */
.grid { display: grid; gap: var(--sp-6); }
.grid--2 { grid-template-columns: repeat(1, 1fr); }
.grid--3 { grid-template-columns: repeat(1, 1fr); }
.grid--4 { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.product-card__media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(155deg, var(--cloud) 0%, var(--mist) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.product-card__media svg { width: 46%; height: 46%; }
.product-card__media img { width: 82%; height: 82%; object-fit: contain; }
.product-card__badge {
  position: absolute; top: var(--sp-3); left: var(--sp-3);
  background: var(--azure); color: var(--navy-deep);
  font-size: var(--fs-xs); font-weight: 700;
  padding: 4px 12px; border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}
.product-card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.product-card__body h3 { font-size: var(--fs-md); font-family: var(--font-body); font-weight: 700; }
.product-card__tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.tag {
  font-size: var(--fs-xs);
  color: var(--navy);
  background: var(--mist);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; gap: 5px;
}
.tag svg { width: 13px; height: 13px; }
.product-card__footer {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
}
.product-card__footer--center { justify-content: center; }
.product-card__footer--center .btn { width: 100%; }
.price { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600; color: var(--navy); }
.price small { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 500; color: var(--ink-faint); }

/* ---- Image placeholder ------------------------------------------------------ */
.img-placeholder {
  aspect-ratio: 4 / 3;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-md);
  background: var(--cloud);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-2);
  color: var(--ink-faint);
  text-align: center;
  padding: var(--sp-4);
}
.img-placeholder svg { width: 32px; height: 32px; opacity: 0.6; }
.img-placeholder span { font-size: var(--fs-xs); font-weight: 600; }
.img-tile {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cloud);
}
.img-tile img { width: 100%; height: 100%; object-fit: contain; display: block; }
.img-tile--wide { aspect-ratio: 2 / 1; }

/* ---- Feature / benefit grid ------------------------------------------------ */
.feature {
  display: flex; flex-direction: column; gap: var(--sp-4);
  padding: var(--sp-6);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.feature__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--azure);
  display: flex; align-items: center; justify-content: center;
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: var(--fs-base); font-family: var(--font-body); font-weight: 700; }
.feature p { color: var(--ink-soft); font-size: var(--fs-sm); }

/* ---- Steps ------------------------------------------------------------------ */
.steps { position: relative; }
.steps__list { display: grid; gap: var(--sp-6); counter-reset: step; }
@media (min-width: 900px) { .steps__list { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding-top: var(--sp-6); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--azure-deep);
  display: block;
  margin-bottom: var(--sp-3);
}
.step h3 { font-size: var(--fs-base); margin-bottom: var(--sp-2); }
.step p { color: var(--ink-soft); font-size: var(--fs-sm); }

/* ---- CTA banner --------------------------------------------------------------- */
.cta-banner {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: var(--sp-7);
  display: flex; flex-direction: column; gap: var(--sp-5);
  align-items: flex-start;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: '';
  position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,170,210,0.35), transparent 70%);
}
.cta-banner h2 { font-size: var(--fs-xl); max-width: 480px; margin-bottom: var(--sp-5); }
.cta-banner p { color: #b9c7d8; max-width: 480px; }
@media (min-width: 800px) {
  .cta-banner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---- Footer ----------------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: #c3d1e0; }
.site-footer .container { padding-block: var(--sp-8) var(--sp-6); }
.footer-grid { display: grid; gap: var(--sp-7); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand .logo svg { height: 20px; }
.footer-brand .logo {
  display: inline-flex;
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
}
.footer-brand p { margin-top: var(--sp-4); font-size: var(--fs-sm); max-width: 320px; color: #93a6bb; }
.footer-col h4 { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 700; color: #fff; margin-bottom: var(--sp-4); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); font-size: var(--fs-sm); }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--azure); color: var(--navy-deep); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: #7186a0;
}
@media (min-width: 720px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer-disclaimer { max-width: 640px; }

/* ---- Breadcrumb / page header ------------------------------------------------------- */
.page-header { background: var(--cloud); padding-block: var(--sp-7); }
.breadcrumb { display: flex; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--ink-faint); margin-bottom: var(--sp-4); }
.breadcrumb a:hover { color: var(--navy); }
.page-header h1 { font-size: var(--fs-2xl); }
.page-header p.lead { margin-top: var(--sp-3); color: var(--ink-soft); max-width: 720px; font-size: var(--fs-md); }

/* ---- Catalog layout / sidebar ---------------------------------------------------------- */
.catalog-layout { display: grid; gap: var(--sp-7); align-items: start; }
@media (min-width: 900px) {
  .catalog-layout { grid-template-columns: 240px 1fr; }
}
.catalog-sidebar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}
@media (min-width: 900px) { .catalog-sidebar { position: sticky; top: var(--sp-6); } }
.catalog-sidebar h3 {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-bottom: var(--sp-4);
}
.category-list { display: flex; flex-direction: column; gap: 2px; }
.category-list button, .category-list a {
  all: unset;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3);
  padding: 0.65rem var(--sp-3);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s;
}
.category-list button:hover, .category-list a:hover { background: var(--cloud); color: var(--navy); }
.category-list button.is-active, .category-list a.is-active { background: var(--navy); color: #fff; }
.category-list button .count { font-size: var(--fs-xs); opacity: 0.65; }
.is-hidden { display: none !important; }
.category-list__divider {
  margin: var(--sp-3) var(--sp-3) var(--sp-2);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---- Product card link wrapper ---------------------------------------------------------- */
.product-card__link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.product-card__footer--split { justify-content: space-between; }

/* ---- Catalog toolbar ------------------------------------------------------------------ */
.catalog-toolbar {
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  align-items: center; justify-content: space-between;
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line);
}
.catalog-count { font-size: var(--fs-sm); color: var(--ink-soft); }
.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.6rem 2.4rem 0.6rem 1.2rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
}
.select-wrap svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink-faint); }

/* ---- Forms ------------------------------------------------------------------------------ */
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--sp-4); }
.form-field label { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-soft); }
.form-field input,
.form-field textarea {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: var(--fs-sm);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s;
  width: 100%;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--azure); outline: none; }
.form-field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: var(--fs-xs); color: var(--ink-faint); margin-top: var(--sp-2); }
.form-success {
  display: none;
  align-items: center; gap: var(--sp-3);
  background: rgba(30,142,90,0.08);
  border: 1px solid rgba(30,142,90,0.3);
  color: var(--success);
  padding: var(--sp-4);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.form-success.is-visible { display: flex; }
.form-success svg { flex-shrink: 0; }

/* ---- Accordion (FAQ) --------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); padding-block: var(--sp-4); }
.accordion summary {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: var(--fs-md);
  gap: var(--sp-4);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .plus { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--mist); display: flex; align-items: center; justify-content: center; transition: transform 0.25s var(--ease), background 0.25s; }
.accordion details[open] summary .plus { background: var(--azure); color: var(--navy-deep); transform: rotate(45deg); }
.accordion__content { padding-top: var(--sp-3); color: var(--ink-soft); font-size: var(--fs-sm); max-width: 640px; }

/* ---- Info cards (contacts/delivery) --------------------------------------------------------- */
.info-card {
  display: flex; gap: var(--sp-4);
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}
.info-card__icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--mist); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-card h3 { font-size: var(--fs-base); margin-bottom: 4px; }
.info-card p, .info-card a { color: var(--ink-soft); font-size: var(--fs-sm); }
.info-card a:hover { color: var(--navy); }

.map-placeholder {
  border-radius: var(--radius-lg);
  background: repeating-linear-gradient(135deg, var(--mist), var(--mist) 10px, var(--cloud) 10px, var(--cloud) 20px);
  border: 1px dashed var(--line);
  min-height: 280px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-3);
  color: var(--ink-faint);
  text-align: center;
  padding: var(--sp-6);
}
.map-placeholder svg { color: var(--navy); }
.map-placeholder strong { color: var(--ink-soft); font-size: var(--fs-sm); }
.map-placeholder span { font-size: var(--fs-xs); }

/* ---- Payment method chips ------------------------------------------------------------------ */
.pay-chip { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); }
.pay-chip__icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pay-chip strong { display: block; font-size: var(--fs-sm); }
.pay-chip span { font-size: var(--fs-xs); color: var(--ink-faint); }

/* ---- Utility text ------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---- Product detail ------------------------------------------------------------------------- */
.product-detail { display: grid; gap: var(--sp-7); }
@media (min-width: 860px) { .product-detail { grid-template-columns: 1fr 1fr; align-items: center; } }
.product-detail__image {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--cloud) 0%, var(--mist) 100%);
  display: flex; align-items: center; justify-content: center;
}
.product-detail__image svg { width: 42%; height: 42%; }
.product-detail__image img { width: 70%; height: 70%; object-fit: contain; }
.product-detail__info .eyebrow { margin-bottom: var(--sp-4); }
.product-detail__info h1 { font-size: var(--fs-2xl); }
.product-detail__info p.lead { margin-top: var(--sp-3); color: var(--ink-soft); font-size: var(--fs-md); }
.product-detail__price { margin-top: var(--sp-5); }
.product-detail__price .price { font-size: var(--fs-xl); }
.product-detail__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-5); }
.product-detail__info .product-card__tags { margin-top: var(--sp-5); }

/* ---- Project case cards (Реализованные проекты) ------------------------------------------------ */
.project-list { display: flex; flex-direction: column; gap: var(--sp-7); }

.project-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.project-card__summary {
  width: 100%;
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  align-items: center; justify-content: space-between;
  padding: var(--sp-5);
  background: none; border: none; cursor: pointer;
  font: inherit; color: inherit; text-align: left;
}
.project-card__summary-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.project-card__summary-main .eyebrow { margin: 0; }
.project-card__summary-title { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; color: var(--ink); }
.project-card__summary-meta { display: flex; align-items: center; gap: var(--sp-4); flex-shrink: 0; }
.project-card__chevron { color: var(--ink-faint); transition: transform 0.25s ease; flex-shrink: 0; }
.project-card.is-open .project-card__chevron { transform: rotate(180deg); color: var(--navy); }
.project-card__summary:hover .project-card__summary-title { color: var(--navy); }
.project-card__summary:focus-visible { outline: 2.5px solid var(--azure); outline-offset: -2.5px; }

.project-card__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.project-card.is-open .project-card__body { grid-template-rows: 1fr; }
.project-card__body-inner { overflow: hidden; }
.project-card__body-inner > .project-card__top { border-top: 1px solid var(--line); }

.project-card__top {
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  align-items: center; justify-content: space-between;
  padding: var(--sp-5);
  border-bottom: 1px solid var(--line);
}
.project-card__lock { display: flex; align-items: center; gap: var(--sp-3); }
.project-card__lock-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--mist); color: var(--navy);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.project-card__lock-icon svg { width: 22px; height: 22px; }
.project-card__lock-text { display: flex; flex-direction: column; line-height: 1.3; }
.project-card__lock-brand { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em; color: var(--ink-faint); text-transform: uppercase; }
.project-card__lock-model { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600; color: var(--navy); }

.project-card__partner { display: flex; align-items: center; gap: var(--sp-3); }
.project-card__partner-logo {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 1.5px dashed var(--line); color: var(--ink-faint);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.project-card__partner-logo svg { width: 18px; height: 18px; }
.project-card__partner-text { display: flex; flex-direction: column; line-height: 1.3; }
.project-card__partner-label { font-size: var(--fs-xs); color: var(--ink-faint); }
.project-card__partner-name { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }

.project-card__photo {
  aspect-ratio: 21 / 9;
  background: repeating-linear-gradient(135deg, var(--mist), var(--mist) 10px, var(--cloud) 10px, var(--cloud) 20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-3);
  color: var(--ink-faint);
  text-align: center;
  overflow: hidden;
}
.project-card__photo svg { color: var(--navy); }
.project-card__photo strong { font-size: var(--fs-sm); color: var(--ink-soft); }
.project-card__photo span { font-size: var(--fs-xs); }
.project-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.project-card__info { padding: var(--sp-5) var(--sp-5) var(--sp-4); }
.project-card__info h3 { font-size: var(--fs-lg); }
.project-card__info-meta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-3); align-items: center; }
.project-card__count {
  font-size: var(--fs-xs); font-weight: 600; color: var(--navy);
  background: var(--mist); padding: 4px 12px; border-radius: var(--radius-pill);
}
.project-card__address { font-size: var(--fs-sm); color: var(--ink-soft); }

.project-card__features {
  display: flex; flex-wrap: wrap;
  gap: var(--sp-5) var(--sp-4);
  padding: var(--sp-5);
  border-top: 1px solid var(--line);
  background: var(--cloud);
}
.project-feature {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
  flex: 1 1 90px; min-width: 84px;
  text-align: center;
}
.project-feature__icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--paper); color: var(--navy);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.project-feature__icon svg { width: 18px; height: 18px; }
.project-feature span { font-size: var(--fs-xs); color: var(--ink-soft); font-weight: 500; }

@media (min-width: 720px) {
  .project-card__top { flex-wrap: nowrap; }
}

/* ---- Spec table ------------------------------------------------------------------------------ */
.spec-table { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); }
.spec-group + .spec-group { border-top: 1px solid var(--line); }
.spec-group__title {
  padding: var(--sp-4) var(--sp-5);
  background: var(--cloud);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--navy);
}
.spec-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); padding: var(--sp-3) var(--sp-5); font-size: var(--fs-sm); margin: 0; }
.spec-row + .spec-row { border-top: 1px solid var(--line); }
.spec-row__label { color: var(--ink-faint); }
.spec-row__value { color: var(--ink); font-weight: 500; }
