/* Pages: Контакты, Тест-драйв, Консультация эксперта ROX, Сервис ROX.
   Built on blocks.css (phead, mtcard, features, leadsec); only page-specific additions live here. */

/* ---------- Shared ---------- */
/* Page titles are uppercase on the original and wrap into two lines */
.phead__title { max-width: 864px; text-transform: uppercase; }
/* long uppercase words ("КОНСУЛЬТАЦИЯ", "ОФИЦИАЛЬНЫЙ") must fit a 320 px screen */
@media (max-width: 599.98px) { .phead__title, .chead__title, .tdhero__title { font-size: min(40px, 10.5vw); } }
.phead + .sec { padding-top: 40px; }
@media (min-width: 960px) { .phead + .sec { padding-top: 64px; } }

/* Lists and extra blocks inside the request-form sections */
.leadsec__text > .glist { margin-top: 24px; color: var(--white); }
.leadsec__text > .glist + * { margin-top: 24px; }
.leadsec__text .glist li + li { margin-top: 12px; }

/* ---------- Contacts: header card ---------- */
.chead { padding-top: calc(var(--header-h) + 40px); }
.chead__body { justify-content: flex-start; }
.chead__title { text-transform: uppercase; }
.chead__text { max-width: 480px; margin-top: 16px; color: var(--t1); }
.chead__actions { margin-top: 32px; }
@media (max-width: 599.98px) { .chead__actions .btn { width: 100%; } }
@media (min-width: 960px) {
  .chead { padding-top: calc(var(--header-h) + 64px); }
  /* square picture, like the original: the card is as tall as half of its width */
  .chead__card { min-height: calc((min(100vw, 1720px) - 2 * var(--pad)) / 2); }
  .chead .mtcard__body { padding: 56px 48px; }
  .chead__text { margin-top: 32px; }
  .chead__actions { margin-top: 36px; }
}

/* ---------- Contacts: showroom / service + map ---------- */
.dealer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.dealer__info { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; }
@media (min-width: 600px) and (max-width: 959.98px) { .dealer__info { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) {
  .dealer { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; }
  .dealer__info { gap: 24px; }
  .dealer_nomap { grid-template-columns: minmax(0, 1fr); }
  .dealer_nomap .dealer__info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.place { padding: 28px 24px; border-radius: 4px; background: var(--card-bg); }
.place__title { margin-bottom: 24px; }
.place__list { display: grid; gap: 20px; margin: 0; }
.place__row { position: relative; padding-left: 40px; }
.place__icon.icon { position: absolute; left: 0; top: 0; color: var(--gold); }
.place__label { font-size: 12px; line-height: 1.4; letter-spacing: 1px; text-transform: uppercase; color: var(--t3); }
.place__value { margin: 4px 0 0; font-size: 16px; line-height: 1.4; color: var(--white); }
.place__link { transition: color .2s; }
.place__link:hover { color: var(--gold); }
.place__tbd { color: var(--t2); }
.place__note { display: block; margin-top: 2px; font-size: 14px; color: var(--t2); }
.place__hours li { display: flex; flex-wrap: wrap; gap: 0 16px; }
.place__hours li > span:first-child { min-width: 72px; color: var(--t2); }
@media (min-width: 960px) {
  .place { padding: 40px 40px 36px; }
  .place__value { font-size: 18px; }
}

.dmap { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dmap__frame { position: relative; flex: 1 1 auto; min-height: 360px; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--card); }
/* Static map picture + "show the interactive map" button; the iframe is added by assets/js/contact.js on click */
.dmap__static { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dmap__cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; padding: 24px; background: linear-gradient(0deg, rgba(10, 10, 10, .75) 0%, rgba(10, 10, 10, 0) 55%); text-align: center; }
.dmap__note { font-size: 13px; color: var(--t1); }
.dmap__frame.is-live .dmap__static, .dmap__frame.is-live .dmap__cover { display: none; }
html:not(.js) .dmap__load, html:not(.js) .dmap__note { display: none; }
.dmap__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dmap__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.dmap__open { color: var(--t1); }
.dmap__open:hover { color: var(--gold); }
@media (max-width: 599.98px) { .dmap__actions .btn { width: 100%; } }
@media (min-width: 960px) { .dmap__frame { min-height: 480px; } }

/* ---------- Contacts: requisites ---------- */
.reqs { text-align: center; }
.reqs .sec__title { margin-bottom: 24px; }
.reqs__body { color: var(--t1); }
.reqs__body p + p { margin-top: 6px; }
.reqs__name { font-weight: var(--fw-medium); color: var(--white); }
.reqs__ids { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; }
@media (min-width: 960px) { .reqs .sec__title { margin-bottom: 40px; } }

/* ---------- Contacts: "how to reach us" cards ---------- */
.ccards .feature__text { max-width: 340px; }
.feature__link { color: var(--t1); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.feature__link:hover { color: var(--gold); text-decoration-color: currentColor; }
.feature__phone { font-size: 20px; text-decoration: none; color: var(--white); white-space: nowrap; }
.feature__links { display: grid; gap: 6px; justify-items: center; font-size: 14px; line-height: 1.45; }
.feature__links .feature__link { text-decoration: none; color: var(--t2); }
.feature__links .feature__link:hover { color: var(--gold); }
@media (min-width: 600px) and (max-width: 959.98px) {
  .ccards .feature:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .ccards .feature { min-height: 370px; }
  .feature__links { font-size: 16px; }
}

/* ---------- Test drive: one-slide hero ---------- */
.tdhero__title { text-transform: uppercase; }
.tdhero .hero__content { padding-bottom: 40px; }
.tdhero .hero__wrap > * { animation: tdhero-in .8s var(--ease) both; }
.tdhero .hero__wrap > :nth-child(2) { animation-delay: .08s; }
.tdhero .hero__wrap > :nth-child(3) { animation-delay: .16s; }
.tdhero .hero__wrap > :nth-child(4) { animation-delay: .24s; }
@keyframes tdhero-in { from { opacity: 0; transform: translateY(40px); } }
@media (min-width: 960px) {
  .tdhero .hero__content { padding-bottom: 64px; }
  .tdhero .hero__wrap { max-width: 720px; }
}

/* ---------- ROX Service ---------- */
.svc-adv .mtcard__title { text-transform: uppercase; font-weight: var(--fw-regular); }
.svc-adv .mtcard__text > .glist { margin-top: 20px; }
.svc-adv .mtcard__text > .mtcard__actions { margin-top: 32px; }
@media (max-width: 599.98px) { .svc-adv .mtcard__actions .btn { width: 100%; } }
@media (min-width: 960px) {
  .svc-adv .mtcard__body { justify-content: flex-start; padding: 56px 48px; }
  .svc-adv .glist li + li { margin-top: 20px; }
  .svc-adv .mtcard__text > .mtcard__actions { margin-top: 40px; }
}
/* four service cards: 2 × 2 until there is room for one row */
@media (min-width: 960px) and (max-width: 1279.98px) {
  .svc-types .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.svc-contacts { display: grid; gap: 12px; margin: 0; }
.leadsec__text > .svc-contacts { margin-top: 28px; }
.svc-contacts__row { display: flex; align-items: flex-start; gap: 12px; color: var(--t1); }
.svc-contacts dt { flex: none; }
.svc-contacts dd { margin: 0; }
.svc-contacts a { color: var(--white); transition: color .2s; }
.svc-contacts a:hover { color: var(--gold); }
.svc-contacts__icon.icon { width: 22px; height: 22px; margin-top: 1px; color: var(--gold); }
@media (min-width: 960px) { .svc-contacts__row { font-size: 18px; } .svc-contacts__icon.icon { margin-top: 0; } }
