

/* SEO: H1 используют существующие классы, без браузерных отступов */
h1.title, h1.hero-banner__title { margin: 0; }

/* WebP: picture не должен менять grid/flex-раскладку */
picture { display: contents; }
/* Одна форма фильтра: в мобильном drawer показываем desktop-форму */
.drawer__content .filter__desktop { display: block; }

/* 2026 logo cache-bust */
.header__logo-image,
.header__mobile-logo-image,
.footer__logo-image {
  background-image: url("/local/templates/zadarma/frontend/build/img/Logo-dark.svg?v=20261122") !important;
}
html[data-theme="light"] .header__logo-image,
html[data-theme="light"] .header__mobile-logo-image,
html[data-theme="light"] .footer__logo-image {
  background-image: url("/local/templates/zadarma/frontend/build/img/Logo.svg?v=20261122") !important;
}

/* CLS: reserve space for spaceapp-filter before the web component upgrades.
   Measured 22.11.2026: mobile/tablet 656px, desktop 597px. */
spaceapp-filter {
  display: block;
  min-height: 656px;
}
@media (min-width: 1024px) {
  spaceapp-filter {
    min-height: 597px;
  }
}

/* CLS: reserve the cart slot in the mobile header before spaceapp-cart upgrades */
.header__mobile-actions {
  min-width: 84px;
  justify-content: flex-end;
}

/* CLS: reserve slots for custom elements before upgrade */
.header__mobile-actions spaceapp-cart {
  display: block;
  flex: 0 0 auto;
  width: 36px;
  min-height: 34px;
}
spaceapp-product-button:not(:defined) {
  display: block;
  min-height: 48px;
}

/* CLS: accordion panels are closed before accordion-js initializes */
html.js .accordion__container .ac[data-open="false"] > .ac-panel {
  height: 0;
  overflow: hidden;
}

/* CLS: keep the desktop menu row height stable while fonts/icons load */
.header__bottom {
  min-height: 37px;
}

/* CLS: reserve the cart slot in the desktop header before spaceapp-cart upgrades */
.header__desktop spaceapp-cart {
  display: block;
  flex: 0 0 auto;
  width: 36px;
  min-height: 34px;
}

/* --- кнопка «Наверх» (как на tyre-style.ru) --- */
.to-top {
  position: fixed;
  left: 20px;
  bottom: 88px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent, #153049);
  color: var(--accent-contrast, #fff);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: background-color .2s ease, color .2s ease, opacity .2s ease, transform .2s ease;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.to-top:hover {
  background: var(--accent-hover, #ff9f00);
  color: var(--accent-contrast, #fff);
}

@media screen and (max-width: 600px) {
  .to-top {
    left: 12px;
    right: auto;
    bottom: 150px;
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
}

/* --- cookie-баннер: место для нижних кнопок --- */
html.cookie-notice-visible body {
  padding-bottom: 96px;
}

html.cookie-notice-visible .to-top {
  bottom: 124px;
}

@media screen and (max-width: 600px) {
  html.cookie-notice-visible body {
    padding-bottom: 124px;
  }
  html.cookie-notice-visible .to-top {
    bottom: 150px;
  }
}

/* на подвале уводим стрелку вправо, чтобы не сливалась с фоном */
html.footer-visible .to-top {
  left: auto !important;
  right: 20px;
  bottom: 24px;
}

@media screen and (max-width: 600px) {
  html.footer-visible .to-top {
    right: 12px;
    bottom: 16px;
  }
}

/* пока открыт drawer (меню или фильтр), кнопка не мешает */
html.drawer-open .to-top {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* --- footer 2026 compact --- */
footer.footer {
  padding-bottom: 24px;
}

footer.footer .footer__container {
  width: 100%;
  max-width: 1306px;
  margin-inline: auto;
  padding: 26px 30px 18px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(720px 200px at 100% 0%, var(--accent-soft), transparent 62%),
    var(--bg-card);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
}

footer.footer .footer__grid {
  display: grid;
  grid-template-columns: minmax(210px, 1.05fr) minmax(360px, 1.45fr) minmax(220px, .95fr);
  grid-template-areas: "brand nav contacts" "bottom bottom bottom";
  gap: 26px 44px;
  align-items: start;
}

footer.footer .footer__brand {
  grid-area: brand;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

footer.footer .footer__logo {
  display: block;
  width: fit-content;
}

footer.footer .footer__logo-image {
  width: 190px;
  height: 55px;
}

footer.footer .footer__tagline {
  max-width: 230px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

footer.footer .footer__nav {
  grid-area: nav;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 36px;
}

footer.footer .footer__nav-col {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

footer.footer .footer__title {
  margin-bottom: 2px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}

footer.footer .footer__nav-col .flex {
  gap: 8px !important;
}

footer.footer .footer__nav-col .link {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.35;
  transition: color .18s ease;
}

footer.footer .footer__nav-col .link:hover {
  color: var(--accent);
}

footer.footer .footer__contacts {
  grid-area: contacts;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  white-space: normal;
}

footer.footer .footer__contacts .link--large {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

footer.footer .footer__address {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  transition: color .18s ease;
}

footer.footer .footer__address:hover {
  color: var(--accent);
}

footer.footer .footer__contacts .button {
  margin-top: 2px;
}

footer.footer .footer__social {
  margin-top: 4px;
  gap: 12px !important;
}

footer.footer .footer__social .social-icon {
  font-size: 28px;
}

footer.footer .footer__bottom {
  grid-area: bottom;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

footer.footer .footer__date {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
}

footer.footer .footer__date p {
  display: inline;
  margin: 0;
}

footer.footer .footer__date p + p:before {
  content: " ";
}

footer.footer .footer__date,
footer.footer .footer__links {
  align-self: flex-start;
}

footer.footer .footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

footer.footer .footer__links .link {
  font-size: 12px;
}

footer.footer .footer__support {
  flex: 1 1 100%;
  order: 3;
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
}

footer.footer .footer__support a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

footer.footer .footer__support a:hover {
  color: #ff9f00;
}

@media screen and (max-width: 1023px) {
  footer.footer .footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "brand contacts" "nav nav" "bottom bottom";
    gap: 22px 28px;
  }

  footer.footer .footer__logo-image {
    width: 170px;
    height: 49px;
  }

}

@media screen and (max-width: 600px) {
  footer.footer {
    padding-bottom: 16px;
  }

  footer.footer .footer__container {
    padding: 20px 18px 16px;
    border-radius: 20px;
  }

  footer.footer .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "contacts" "nav" "bottom";
    gap: 18px;
  }

  footer.footer .footer__logo-image {
    width: 160px;
    height: 46px;
  }

  footer.footer .footer__grid {
    gap: 16px;
  }

  footer.footer .footer__nav {
    gap: 18px 22px;
  }

  footer.footer .footer__tagline {
    max-width: none;
    font-size: 12px;
  }

  footer.footer .footer__contacts {
    gap: 8px;
  }

  footer.footer .footer__social {
    margin-top: 0;
  }

  footer.footer .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 14px;
  }

  footer.footer .footer__support {
    text-align: left;
  }
}

/* --- contacts 2026 --- */
.contacts-page {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contacts-page__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
}

.contacts-page__lead {
  max-width: 620px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.5;
}

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

.contact-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(420px 150px at 100% 0%, var(--accent-soft), transparent 70%),
    var(--bg-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.contact-card__label {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.contact-card__value {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.contact-card__value .link {
  color: var(--text-primary);
}

.contact-card__value .link:hover {
  color: var(--accent);
}

.contact-card__value--phones {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-card__value--phones .link {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.contact-card__value--address {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.contact-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.contact-card__actions .button {
  width: auto;
}

.contact-card__actions .social-icon {
  font-size: 28px;
}

.contact-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 2px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color .18s ease;
}

.contact-card__link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.contact-card--details {
  padding: 0;
}

.contact-card__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px;
  cursor: pointer;
  list-style: none;
}

.contact-card__summary::-webkit-details-marker {
  display: none;
}

.contact-card__chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.contact-card--details[open] .contact-card__chevron {
  transform: rotate(-135deg);
}

.contact-card__details {
  padding: 0 22px 20px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.contact-card__details p {
  margin: 0 0 6px;
}

.contact-card__details p:empty {
  display: none;
}

.contact-card__details br {
  display: none;
}

.contacts-page__map {
  position: relative;
  width: 100%;
  height: 360px;
  margin-top: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--bg-card);
}

.contacts-page__map .yandex-map {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
}

.contacts-page__map .yandex-map .ymaps3x0--map-container {
  border-radius: 0 !important;
}

@media screen and (min-width: 768px) {
  .contacts-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .contacts-page__map {
    height: 420px;
  }
}

@media screen and (min-width: 1024px) {
  .contacts-page__head {
    max-width: none;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
  }

  .contacts-page__lead {
    max-width: 520px;
    text-align: right;
  }

  .contacts-page__grid {
    gap: 20px;
  }

  .contacts-page__map {
    height: 480px;
  }
}

/* --- feedback: отдельные согласия ПДн и рассылка --- */
.feedback__consents {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 440px;
}

.feedback__consents .checkbox {
  align-items: flex-start;
}

.feedback__consents .checkbox__label {
  line-height: 1.45;
}

.feedback__consents .checkbox__label a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.feedback__consents .checkbox__label a:hover {
  color: var(--accent-hover);
}

.feedback__consents .checkbox__label em {
  font-style: normal;
  color: var(--text-secondary);
}

.feedback__req {
  color: var(--accent);
  font-weight: 700;
}

/* --- feedback: скругляем правый край картинки по карточке --- */
.feedback {
  overflow: hidden;
}

.feedback__background {
  overflow: hidden;
  border-radius: 0 32px 32px 0;
}

.feedback__image {
  border-radius: 0 32px 32px 0;
}

/* --- promo image-only --- */
.action-card--image-only {
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.action-card--image-only .action-card__box {
  border-radius: inherit;
  overflow: hidden;
}

.action-card--image-only .action-card__box:after {
  display: none;
}

.action-card--image-only .action-card__image {
  border-radius: inherit;
  transform: scale(1);
  transition: transform .45s ease;
}

.action-card--image-only:hover {
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
  transform: translateY(-3px);
}

.action-card--image-only:hover .action-card__image {
  transform: scale(1.04);
}

/* New Year promo detail */
.action-detail--ny {
  position: relative;
  padding: clamp(18px, 4vw, 40px);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 8% 0%, rgba(182, 255, 0, .16), transparent 55%),
    radial-gradient(800px 420px at 94% 100%, rgba(255, 159, 0, .18), transparent 55%),
    #0b1622;
  border: 1px solid rgba(182, 255, 0, .26);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .35);
}
.action-detail--ny .action-detail__container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ny-detail__media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(182, 255, 0, .18);
}
.ny-detail__media .action-detail__image {
  width: 100%;
  height: auto;
  display: block;
}
.ny-detail__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #b6ff00;
  color: #08131f;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(182, 255, 0, .25);
}
.ny-detail__kicker {
  color: #b6ff00;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 700;
}
.ny-detail__title {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.04;
}
.ny-detail__lead {
  margin: 0;
  max-width: 760px;
  color: #c7d3df;
  font-size: 18px;
  line-height: 1.55;
}
.ny-detail__note {
  margin: 0;
  max-width: 760px;
  color: #8fa2b3;
  font-size: 14px;
  line-height: 1.5;
}
.ny-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}
.ny-detail__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  background: linear-gradient(100deg, #b6ff00 0%, #d8ff6a 45%, #ff9f00 100%);
  color: #08131f !important;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 12px 34px rgba(182, 255, 0, .2);
  transition: transform .18s ease, box-shadow .18s ease;
}
.ny-detail__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(255, 159, 0, .26);
}
.ny-detail__secondary {
  color: #cfd9e3;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 600px) {
  .ny-detail__cta { width: 100%; justify-content: center; }
  .ny-detail__lead { font-size: 16px; }
}
