/* EVE × ZEEKR Poland landing — page styles on top of the EVE design system.
   Tokens/components come from styles/tokens.css, base.css and components/*.
   Deviations from Figma specs are marked [system]. */

/* ---------- generic section layout ---------- */

.l-section {
  padding-block: 96px;
}
@media (max-width: 768px) {
  .l-section { padding-block: 56px; }
}

.l-section__head {
  max-width: 720px;
  margin-bottom: var(--eve-space-12);
}
.l-section__head h2 {
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
  margin-bottom: var(--eve-space-4);
}
.l-section__head p {
  font-size: 20px;
  line-height: 28px;
  color: var(--eve-text-secondary);
}
@media (max-width: 768px) {
  .l-section__head h2 { font-size: 32px; line-height: 40px; }
  .l-section__head p { font-size: 16px; line-height: 24px; }
}

/* [system] dark panel colour used across Figma dark sections (#1C1C1C sits
   between gray-925 and gray-950 in the token scale) */
.l-panel {
  background: #1C1C1C;
  border-radius: var(--eve-radius-3xl);
}

/* ---------- header ---------- */

.l-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: var(--eve-z-sticky);
}
.l-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--eve-space-6);
  padding-block: var(--eve-space-8);
}
.l-header__logo { width: 151px; height: 40px; flex: none; }
.l-header__logo img { width: 100%; height: 100%; }
.l-header__nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.l-header__actions {
  display: flex;
  align-items: center;
  gap: var(--eve-space-3);
}
.l-header__langs {
  display: flex;
  align-items: center;
  gap: var(--eve-space-1);
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}
.l-header__langs button {
  padding: 7px 13px;
  border: 0;
  border-radius: var(--eve-radius-pill);
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: color var(--eve-duration-fast) var(--eve-ease-out),
              background-color var(--eve-duration-fast) var(--eve-ease-out);
}
.l-header__langs button:hover { color: var(--eve-color-white); }
.l-header__langs button[data-active] {
  color: var(--eve-color-white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(var(--eve-blur-glass));
  -webkit-backdrop-filter: blur(var(--eve-blur-glass));
}

@media (max-width: 1024px) {
  .l-header__nav { display: none; }
  /* переключатель языков нужен и на телефоне — остаётся в шапке */
  .l-header__langs { gap: 0; font-size: 14px; }
  .l-header__langs button { padding: 6px 9px; }
}

/* round WhatsApp icon button [system] — mirrors .eve-btn--icon geometry at 48px */
.l-wa-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--eve-radius-pill);
  background: var(--eve-accent);
  color: var(--eve-color-white);
  transition: background-color var(--eve-duration-fast) var(--eve-ease-out);
}
.l-wa-fab:hover { background: var(--eve-accent-hover); }
.l-wa-fab > svg { width: 24px; height: 24px; }

/* ---------- hero ---------- */

.l-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--eve-color-white); /* hero sits on the dark photo in both themes */
}
.l-hero__bg { position: absolute; inset: 0; }
/* picture wraps the img; without an explicit height the img's height:100%
   never resolves and object-fit:cover silently stops working */
.l-hero__bg picture { display: block; width: 100%; height: 100%; }
.l-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.l-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0.45) 0%, rgba(17,17,17,0.55) 55%, var(--eve-bg-page) 100%);
}
.l-hero__content {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--eve-space-6);
  padding-top: 160px;
  padding-bottom: 120px;
}
.l-hero h1 {
  font-size: 64px;
  font-weight: 600;
  line-height: 64px;
  max-width: 900px;
}
.l-hero h1 span { color: var(--eve-color-white); }
.l-hero__sub {
  font-size: 20px;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 640px;
}
.l-hero__cta {
  display: flex;
  gap: var(--eve-space-3);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--eve-space-2);
}
.l-hero__features {
  display: flex;
  gap: var(--eve-space-3);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--eve-space-6);
}
/* long feature texts: allow glass chips to wrap instead of overflowing [system] */
.l-hero__features .eve-chip--glass {
  height: auto;
  min-height: 40px;
  padding-block: var(--eve-space-2);
  white-space: normal;
  text-align: left;
}
@media (max-width: 768px) {
  html, body { overflow-x: clip; }
  .l-hero h1 { font-size: 36px; line-height: 40px; }
  .l-hero__sub { font-size: 16px; line-height: 24px; }
  .l-hero__features { flex-direction: column; align-items: stretch; }
  .l-cta__actions .eve-btn { white-space: normal; }
}

/* glass outline secondary button for dark imagery [system] — DS secondary is
   designed for light surfaces */
.l-btn-glass {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(var(--eve-blur-glass));
  -webkit-backdrop-filter: blur(var(--eve-blur-glass));
  color: var(--eve-color-white);
}
.l-btn-glass:hover { background: rgba(255, 255, 255, 0.24); }

/* ---------- models ---------- */

.l-models {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--eve-space-10);
}
@media (max-width: 900px) {
  .l-models { grid-template-columns: 1fr; }
}

.l-model {
  display: flex;
  flex-direction: column;
  gap: var(--eve-space-4);
}
.l-model__photo {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--eve-radius-3xl);
  background: linear-gradient(180deg, #2C2C2C 0%, #212121 100%); /* [system] dark stage for cutouts */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.l-model__photo img {
  width: 82%;
  height: auto;
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.5)); /* [system] grounding shadow under cutout */
}
.l-model__badge {
  position: absolute;
  top: var(--eve-space-5);
  left: var(--eve-space-5);
}
.l-model__body {
  display: flex;
  flex-direction: column;
  gap: var(--eve-space-5);
}
.l-model__title {
  display: flex;
  align-items: baseline;
  gap: var(--eve-space-3);
  font-size: 28px;
  font-weight: 500;
  line-height: 32px;
}
.l-model__title small {
  font-size: 20px;
  font-weight: 500;
  color: var(--eve-text-tertiary);
}
.l-model__desc {
  font-size: 16px;
  line-height: 24px;
  color: var(--eve-text-secondary);
  max-width: 420px;
}
.l-model__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--eve-space-2);
}

/* ---------- gallery ---------- */

.l-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: var(--eve-space-6);
}
.l-gallery__item {
  border-radius: var(--eve-radius-3xl);
  overflow: hidden;
}
.l-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--eve-duration-slow) var(--eve-ease-out);
}
.l-gallery__item:hover img { transform: scale(1.03); }
.l-gallery__item--wide { grid-column: span 2; }
@media (max-width: 900px) {
  .l-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .l-gallery__item--wide { grid-column: span 2; }
}

.l-gallery-cta {
  display: flex;
  justify-content: center;
  margin-top: var(--eve-space-10);
}

/* ---------- steps ---------- */

.l-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--eve-space-6);
}
@media (max-width: 1100px) {
  .l-steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .l-steps { grid-template-columns: 1fr; }
}
.l-step {
  display: flex;
  flex-direction: column;
  gap: var(--eve-space-3);
  padding: var(--eve-space-8);
  min-height: 220px;
}
.l-step__num {
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  color: var(--eve-accent);
  margin-bottom: var(--eve-space-6);
}
/* заголовку резервируем две строки: иначе у карточек с длинным названием
   («Визит и тест-драйв») описание уезжает вниз и ряд идёт вразнобой */
.l-step h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  min-height: 48px;
}
@media (max-width: 700px) {
  .l-step h3 { min-height: 0; }
}
.l-step p {
  font-size: 14px;
  line-height: 20px;
  color: var(--eve-text-secondary);
}

/* ---------- partnership ---------- */

.l-partners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--eve-space-6);
  margin-bottom: var(--eve-space-8);
}
@media (max-width: 800px) {
  .l-partners { grid-template-columns: 1fr; }
}
.l-partner {
  display: flex;
  flex-direction: column;
  gap: var(--eve-space-6);
  padding: var(--eve-space-10);
}
.l-partner__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  height: 64px;
  padding: var(--eve-space-2) var(--eve-space-6);
  border-radius: var(--eve-radius-3xl);
  background: var(--eve-color-white);
}
.l-partner__logo img { height: 32px; width: auto; }
.l-partner p {
  font-size: 18px;
  line-height: 26px;
  color: var(--eve-text-secondary);
  max-width: 420px;
}
.l-partner-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--eve-space-2);
}

/* ---------- CTA banner ---------- */

.l-cta {
  position: relative;
  overflow: hidden;
  padding: var(--eve-space-16);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--eve-space-10);
  align-items: center;
}
@media (max-width: 900px) {
  .l-cta { grid-template-columns: 1fr; padding: var(--eve-space-8); }
}
.l-cta__kicker {
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eve-text-tertiary);
  margin-bottom: var(--eve-space-4);
}
.l-cta h2 {
  font-size: 48px;
  font-weight: 600;
  line-height: 56px;
  margin-bottom: var(--eve-space-5);
}
.l-cta__text {
  font-size: 20px;
  line-height: 28px;
  color: var(--eve-color-gray-200);
  margin-bottom: var(--eve-space-6);
}
.l-cta__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--eve-space-3) var(--eve-space-6);
  margin-bottom: var(--eve-space-8);
}
.l-cta__list li {
  display: flex;
  align-items: center;
  gap: var(--eve-space-2);
  font-size: 14px;
  line-height: 20px;
  color: var(--eve-text-secondary);
}
.l-cta__list svg { width: 16px; height: 16px; color: var(--eve-accent); flex: none; }
.l-cta__actions {
  display: flex;
  align-items: center;
  gap: var(--eve-space-4);
  flex-wrap: wrap;
}
.l-cta__note {
  font-size: 13px;
  line-height: 20px;
  color: var(--eve-text-tertiary);
  margin-top: var(--eve-space-3);
  max-width: 360px;
}
.l-cta__car { position: relative; }
.l-cta__car img {
  width: 100%;
  filter: drop-shadow(0 32px 40px rgba(0, 0, 0, 0.55)); /* [system] */
}
@media (max-width: 768px) {
  .l-cta h2 { font-size: 32px; line-height: 40px; }
  .l-cta__text { font-size: 16px; line-height: 24px; }
  .l-cta__list { grid-template-columns: 1fr; }
}

/* ---------- form ---------- */

.l-form-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--eve-space-10);
  padding: var(--eve-space-16);
  align-items: center;
}
@media (max-width: 900px) {
  .l-form-card { grid-template-columns: 1fr; padding: var(--eve-space-8); }
}
.l-form-card h2 {
  font-size: 40px;
  font-weight: 600;
  line-height: 48px;
  margin-bottom: var(--eve-space-4);
}
.l-form-card__lead {
  font-size: 20px;
  line-height: 28px;
  color: var(--eve-text-secondary);
}
.l-form {
  display: flex;
  flex-direction: column;
  gap: var(--eve-space-4);
}
.l-form .eve-search { width: 100%; }
.l-form__privacy { align-items: flex-start; }
.l-form__privacy .eve-checkbox__label {
  font-size: 13px;
  line-height: 16px;
  color: var(--eve-text-tertiary);
}
/* checkbox on dark surface [system] — spec box stroke is black 32%, unreadable on dark */
.l-form .eve-checkbox__box { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.32); }
.l-form .eve-checkbox input:checked ~ .eve-checkbox__box { background: var(--eve-accent); box-shadow: none; }
.l-form .eve-checkbox input:checked ~ .eve-checkbox__label { color: var(--eve-text-tertiary); }

/* ---------- footer ---------- */

.l-footer {
  padding-top: var(--eve-space-16);
  overflow: hidden;
}
.l-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--eve-space-10);
  flex-wrap: wrap;
  margin-bottom: var(--eve-space-16);
}
.l-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--eve-space-4);
  max-width: 420px;
}
.l-footer__logos {
  display: flex;
  align-items: center;
  gap: var(--eve-space-4);
}
.l-footer__logos img { height: 40px; width: auto; }
.l-footer__logo-dark { display: none; }
[data-theme="light"] .l-footer__logo-dark { display: block; }
[data-theme="light"] .l-footer__logo-light { display: none; }
.l-footer__logos .l-footer__x {
  color: var(--eve-text-tertiary);
  font-size: 20px;
}
.l-footer__tag {
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
}
.l-footer__sub {
  font-size: 16px;
  line-height: 24px;
  color: var(--eve-text-secondary);
}
.l-footer__contacts {
  display: flex;
  flex-direction: column;
  gap: var(--eve-space-3);
  align-items: flex-start;
}
.l-footer__social {
  display: flex;
  gap: var(--eve-space-2);
  margin-top: var(--eve-space-2);
}
.l-footer__wordmark {
  font-size: clamp(72px, 14.5vw, 220px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--eve-color-gray-900); /* Figma footer: wordmark one step above page bg */
  user-select: none;
  white-space: nowrap;
  margin-bottom: -0.18em;
}

/* ---------- modal form bits ---------- */

.l-modal-form {
  display: flex;
  flex-direction: column;
  gap: var(--eve-space-3);
  width: 100%;
}
.l-modal-form .eve-phone { width: 100%; }
/* plain name input styled like the DS phone group, minus flag [system] */
.l-input {
  display: flex;
  align-items: center;
  height: 64px;
  padding: var(--eve-space-1) var(--eve-space-5);
  border-radius: var(--eve-radius-4xl);
  background: var(--eve-color-white);
}
.l-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--eve-color-gray-975);
  outline: none;
}
.l-input input::placeholder { color: var(--eve-color-gray-500); }

/* тот же пилюльный контрол, но select: без флага страны и маски номера [system] */
.l-input--select { position: relative; }
.l-input select {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding-right: var(--eve-space-8);
  border: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--eve-color-gray-975);
  outline: none;
  cursor: pointer;
}
/* пока ничего не выбрано, значение показываем как подсказку */
.l-input select:invalid { color: var(--eve-color-gray-500); }
.l-input__chevron {
  position: absolute;
  right: var(--eve-space-5);
  width: 24px;
  height: 24px;
  color: var(--eve-color-gray-500);
  pointer-events: none;
}

/* WhatsApp contact chip, spec §7.4 (256x64 white) */
.l-wa-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--eve-space-3);
  height: 64px;
  padding: var(--eve-space-1) var(--eve-space-6) var(--eve-space-1) var(--eve-space-1);
  border-radius: 64px;
  background: var(--eve-color-white);
}
.l-wa-chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--eve-radius-pill);
  background: rgba(32, 176, 56, 0.08);
}
.l-wa-chip__icon img { width: 22px; height: 22px; }
.l-wa-chip__text {
  display: flex;
  flex-direction: column;
  gap: var(--eve-space-1);
  text-align: left;
}
.l-wa-chip__text span {
  font-size: 14px;
  line-height: 20px;
  color: #474747;
}
.l-wa-chip__text strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #474747;
}

/* modal visibility toggling */
.eve-modal-overlay[hidden] { display: none; }

/* ---------- theme toggle [system] ---------- */

.l-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--eve-radius-pill);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(var(--eve-blur-glass));
  -webkit-backdrop-filter: blur(var(--eve-blur-glass));
  color: var(--eve-color-white);
  transition: background-color var(--eve-duration-fast) var(--eve-ease-out);
}
.l-theme-toggle:hover { background: rgba(255, 255, 255, 0.24); }
.l-theme-toggle > svg { width: 24px; height: 24px; }
.l-theme-toggle__moon, [data-theme="light"] .l-theme-toggle__sun { display: none; }
[data-theme="light"] .l-theme-toggle__moon { display: block; }

/* ---------- light theme overrides ---------- */
/* Header and hero always sit on the dark photo, so they stay untouched. */

[data-theme="light"] .l-panel { background: var(--eve-color-gray-100); }

[data-theme="light"] .l-model__photo {
  background: linear-gradient(180deg, #EFEFEF 0%, #DFDFDF 100%); /* Figma photo placeholder #DFDFDF */
}
[data-theme="light"] .l-model__photo img {
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.25));
}

/* brand chips sit directly on the page bg — dark variant is white-on-dark only */
[data-theme="light"] .eve-chip--brand {
  background: var(--eve-color-gray-100);
  color: var(--eve-color-gray-800);
}
[data-theme="light"] .eve-chip--brand:hover { background: var(--eve-color-gray-150); }

[data-theme="light"] .l-cta__text { color: var(--eve-text-secondary); }

/* form checkbox: dark-surface strokes only make sense in dark theme */
[data-theme="light"] .l-form .eve-checkbox__box { box-shadow: inset 0 0 0 2px rgba(17, 17, 17, 0.32); }
[data-theme="light"] .l-form .eve-checkbox input:checked ~ .eve-checkbox__box { box-shadow: none; }
[data-theme="light"] .l-form .eve-checkbox__label,
[data-theme="light"] .l-form .eve-checkbox input:checked ~ .eve-checkbox__label {
  color: var(--eve-color-gray-650);
}

/* footer glass buttons work only on dark — swap to the DS secondary outline */
[data-theme="light"] .l-footer .l-btn-glass {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: inset 0 0 0 1px var(--eve-color-gray-300);
  color: var(--eve-color-gray-650);
}
[data-theme="light"] .l-footer .l-btn-glass:hover { box-shadow: inset 0 0 0 1px var(--eve-color-gray-400); }
[data-theme="light"] .l-footer__wordmark { color: var(--eve-color-gray-100); }

/* hero fade leads into the (light) page bg: uniform dim over the photo,
   page colour only in the last ~15% — a long fade reads as a milky band */
[data-theme="light"] .l-hero__bg::after {
  background:
    linear-gradient(180deg, rgba(17,17,17,0) 0%, rgba(17,17,17,0) 84%, var(--eve-bg-page) 100%),
    linear-gradient(180deg, rgba(17,17,17,0.45) 0%, rgba(17,17,17,0.35) 100%);
}
