/* Offer Form */
.offer-form {
  display: flex;
  flex-direction: column-reverse;
  gap: 2rem;
  max-width: 600px;
  margin: 1.3rem 1rem 1.5rem;
  background: var(--c-primary-light-2);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--c-primary-light-2);
}

.offer-form__form {
  display: flex;
  flex-direction: column;
}

.offer-form__title {
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-align: center;
}

.offer-form__subtitle {
  margin-bottom: 1rem;
  font-size: 1.125rem;
  text-align: center;
}

.offer-form .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.offer-form__countdown-title {
  margin-bottom: 1rem;
  font-weight: bold;
  line-height: 1.2;
  font-size: min(5vw, 1.25rem);
  text-align: center;
}

.offer-form .btn {
  font-size: .875rem;
}

.offer-form__flipdown-wrap {
  position: relative;
  height: 3.75rem;
}

.offer-form__flipdown {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scale(.8);
}

.offer-form .flipdown.flipdown__theme-dark .rotor,
.offer-form .flipdown.flipdown__theme-dark .rotor-top,
.offer-form .flipdown.flipdown__theme-dark .rotor-leaf-front,
.offer-form .flipdown.flipdown__theme-dark .rotor-bottom,
.offer-form .flipdown.flipdown__theme-dark .rotor-leaf-rear,
.offer-form .flipdown.flipdown__theme-dark .rotor-group:nth-child(n+2):nth-child(-n+3)::before,
.offer-form .flipdown.flipdown__theme-dark .rotor-group:nth-child(n+2):nth-child(-n+3)::after {
  background-color: var(--c-accent);
}

.offer-form .flipdown.flipdown__theme-dark .rotor::after {
  border-color: var(--c-accent);
}

@media (min-width: 360px) {
  .offer-form__flipdown {
    transform: translateX(-50%) scale(.9);
  }
}

@media (min-width: 370px) {
  .offer-form__flipdown {
    transform: translateX(-50%) scale(1.05);
  }
}

@media (min-width: 551px) {
  .offer-form__flipdown-wrap {
    height: 6rem;
  }
  .offer-form .btn {
    font-size: 1rem;
  }
}

@media (min-width: 632px) {
  .offer-form {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1024px) {
  .offer-form {
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1240px;
  }

  .offer-form__form {
    flex: 1 1 auto;
    max-width: 690px;
  }

  .offer-form__title {
    font-size: 1.675rem;
    text-align: left;
  }

  .offer-form__subtitle {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    text-align: left;
  }

  .offer-form__countdown {
    width: 420px;
    flex: 0 0 420px;
  }

  .offer-form__flipdown {
    transform: translateX(-50%) scale(.8);
  }

  .offer-form__countdown-title {
    font-size: 1.5rem;
    margin-bottom: 0;
  }

  .offer-form__form input {
    width: auto;
    flex: 1 0 auto;
  }

  .offer-form__form button[type=submit] {
    width: auto;
  }
}

@media (min-width: 1101px) {
  .offer-form {
    margin-top: -7rem;
    margin-bottom: 4.5rem;
    padding: 2rem;
    border-radius: 24px;
    gap: 3rem;
  }
}



/* TENET PLUS: editable hero and weekly offer, 2026-11-14. */
.video-offer-hero__title { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.video-offer-hero__title .hero-title-line { display: block; color: #fff; white-space: normal; }
.video-offer-hero__title .hero-title-accent { color: var(--c-accent); }
.video-offer-hero__benefits > span { display: inline-flex; align-items: center; gap: .45em; white-space: normal; overflow-wrap: anywhere; }
.video-offer-hero__benefits .hero-benefit-icon { width: 1.15em; height: 1.15em; flex: 0 0 1.15em; }
.video-offer-hero__form-title, .video-offer-hero__form-subtitle, .offer-form__title, .offer-form__subtitle { overflow-wrap: anywhere; }
.offer-form { position: relative; z-index: 1; color: var(--c-text); }
.offer-form .consent, .offer-form .consent a { color: #aaa; }
.offer-form .flipdown.flipdown__theme-dark .rotor-group-heading::before { color: var(--c-text); }
.offer-form__form { min-width: 0; }
.offer-form .offer-form__controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); align-items: stretch; gap: 12px; }
.offer-form .offer-form__controls input[type="tel"] { box-sizing: border-box; width: 100%; min-width: 0; height: 60px; padding: 12px; font-size: 16px; border: 1px solid #b6b6b6; background: var(--c-primary-light-2); color: var(--c-text); border-radius: 5px; }
.offer-form .offer-form__controls button[type="submit"] { width: 100%; min-width: 0; min-height: 60px; height: auto; padding: 12px 32px 12px 12px !important; font-size: 16px; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; }
.offer-form__controls .with-arrow::after { right: 10px; }
.offer-form .consent { margin-top: 14px; }
.offer-form__countdown-title { overflow-wrap: anywhere; }
.offer-form .flipdown .rotor-group-heading { white-space: nowrap; }
.block2_content_card .buttons .btn { width: 100%; white-space: normal; overflow-wrap: anywhere; height: auto; min-height: 56px; }
@media (min-width: 768px) { .block2_content_card .buttons .btn { min-height: 65px; } }
@media (min-width: 1024px) and (max-width: 1271px) { .offer-form { margin-left: 16px; margin-right: 16px; } }
@media (max-width: 1023px) { .offer-form { margin-top: 32px; margin-bottom: 40px; } .video-offer-hero { margin-bottom: 0; } }
@media (max-width: 991px) {
  .video-offer-hero__content { display: flex; flex-direction: column; }
  .video-offer-hero__form-card { order: 1; }
  .video-offer-hero__benefits { justify-content: flex-start; margin: 26.4px 0 24px; }
}
@media (max-width: 767px) {
  /* Increase the previous 15px mobile gap by 20%. */
  .video-offer-hero__benefits { margin-top: 18px; }
  .offer-form .offer-form__controls { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .offer-form .offer-form__controls button[type="submit"] { padding: 12px !important; }
  .offer-form__controls .with-arrow::after { content: none; }
}

/* Keep the phone field aligned with the dark offer card in every input state. */
.offer-form .offer-form__controls input[type="tel"]::placeholder { color: #aaa; opacity: 1; }
.offer-form .offer-form__controls input[type="tel"]:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--c-primary-light-2) inset;
  -webkit-text-fill-color: var(--c-text);
  caret-color: var(--c-text);
}

/* Shared public form fields: match the outlined phone field, 2026-11-15. */
html body form :is(input:not([type]), input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="search"], input[type="url"], input[type="password"], input[type="date"], select, textarea) {
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100%;
  height: 60px !important;
  padding: 12px !important;
  padding-left: 28px !important; /* Same text inset as dvaris-voyah.ru. */
  border: 1px solid #b6b6b6 !important;
  border-radius: 5px !important;
  background-color: var(--c-primary-light-2) !important;
  color: var(--c-text) !important;
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
  text-align: left !important;
  box-shadow: none;
  caret-color: var(--c-text);
}
html body form input::placeholder,
html body form textarea::placeholder {
  color: #aaa !important;
  opacity: 1 !important;
  font-size: 16px !important;
  font-weight: 400 !important;
}
html body form select { padding-right: 40px !important; }
html body form select option,
html body form select optgroup { background-color: var(--c-primary-light-2); color: var(--c-text); }
html body form textarea { height: auto !important; min-height: 120px; resize: vertical; }
html body form input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--c-primary-light-2) inset !important;
  -webkit-text-fill-color: var(--c-text) !important;
  caret-color: var(--c-text);
}
/* VOYAH reference: 308px button for the default label; allow longer admin labels. */
.offer-form .offer-form__controls { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 1024px) {
  .offer-form .offer-form__controls { grid-template-columns: minmax(0, 1fr) max-content; }
  .offer-form .offer-form__controls button[type="submit"] {
    width: auto;
    min-width: 308px;
    padding-left: 20px !important;
    padding-right: 45px !important;
    white-space: nowrap;
  }
  .offer-form__controls .with-arrow::after { right: 20px; }
}

/* One responsive test-drive player reserves its space before loading. */
.test-drive__video .test-drive__video-player {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 434;
  max-height: 600px;
  object-fit: cover;
}

/* Keep gallery thumbnails compact before Slick finishes loading. */
.card-gallery img {
  aspect-ratio: 620 / 349;
  height: auto;
  object-fit: cover;
}
.card-gallery a { display: block; }
.card-gallery:not(.slick-initialized) {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 .5rem;
  scrollbar-width: none;
}
.card-gallery:not(.slick-initialized)::-webkit-scrollbar { display: none; }
.card-gallery:not(.slick-initialized) > div {
  flex: 0 0 calc(25% - 1rem);
  min-width: 0;
  margin: .5rem;
}
@media (max-width: 767px) {
  .card-gallery:not(.slick-initialized) {
    padding-bottom: 21px; /* Reserve the existing mobile pagination row. */
  }
  .card-gallery:not(.slick-initialized) > div {
    flex-basis: calc(40% - 1rem);
  }
}

/* Brand spelling stays mixed-case even inside uppercase headings/buttons. */
.brand-name, .brand-text-control,
.brand-text-control::before, .brand-text-control::after { text-transform: none !important; }
.popup_content .popup_content_name .brand-name { color: inherit; }
/* The model bar text is 30% larger than its inherited size. */
.header__secondary .main-menu__car-link { font-size: 1.3em; }
/* Match the two-line heading to the visible timer, including its scale. */
.offer-form__countdown-title {
  --countdown-title-size: 13px;
  --countdown-visible-width: 249.6px;
  width: var(--countdown-visible-width);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  font-size: min(var(--countdown-title-size), calc((100vw - 66px) / 19.2));
  line-height: 2.028; /* Previous 1.69 line-height increased by another 20%. */
}
.offer-form__countdown-line { display: block; white-space: nowrap; }
/* Enlarge only the first line by 20%, preserving the line-box height. */
.offer-form__countdown-line:first-child { font-size: 1.2em; line-height: 1.69; }
@media (min-width: 360px) {
  .offer-form__countdown-title {
    --countdown-title-size: 14.6px;
    --countdown-visible-width: 280.8px;
  }
}
@media (min-width: 370px) {
  .offer-form__countdown-title {
    --countdown-title-size: 17.1px;
    --countdown-visible-width: 327.6px;
  }
}
@media (min-width: 551px) {
  .offer-form__countdown-title {
    --countdown-title-size: 27.9px;
    --countdown-visible-width: 535.5px;
  }
}
@media (min-width: 1024px) {
  .offer-form__countdown-title {
    --countdown-title-size: 21.3px;
    --countdown-visible-width: 408px;
  }
}

/* Align the visible digits with the bottom edge of the submit button. */
@media (min-width: 1024px) {
  .offer-form {
    display: grid;
    grid-template-columns: minmax(0, 690px) 420px;
    row-gap: 0;
    align-items: start;
  }
  .offer-form__form { display: contents; }
  .offer-form__form > .offer-form__title { grid-column: 1; grid-row: 1; }
  .offer-form__form > .offer-form__subtitle { grid-column: 1; grid-row: 2; }
  .offer-form__form > .offer-form__controls { grid-column: 1; grid-row: 3; }
  .offer-form__form > .form-row:not(.offer-form__controls) { grid-column: 1; grid-row: 4; }
  .offer-form__countdown {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: end;
  }
  .offer-form__flipdown-wrap { height: 88px; }
  .offer-form__flipdown { top: 0; transform-origin: center top; }
}

/* Balance the visible spaces above and below the scaled mobile timer. */
@media (max-width: 1023px) {
  .offer-form { row-gap: clamp(46px, 8vw, 48px); }
}
@media (max-width: 550px) {
  .offer-form { row-gap: clamp(30px, 9vw, 36px); }
}
