:root {
  --re-orange: #FC8237;
  --re-orange-soft: #FDC09B;
  --re-orange-bg: #FFF4EC;
  --re-dark: #2C2628;
  --re-blue: #507DBC;
  --re-blue-soft: #B6C9E3;
  --re-blue-bg: #F0F5FB;
  --re-gray: #989797;
  --re-gray-bg: #F5F5F5;
  --re-white: #FFFFFF;
  --re-border: rgba(44, 38, 40, 0.08);
  --re-shadow: 0 8px 28px rgba(44, 38, 40, 0.06);
  --re-radius: 14px;
  --re-radius-sm: 10px;
  --re-transition: 0.22s ease;
}

.layout__content-contacts img {
  max-width: 100%;
  height: auto;
  display: block;
}

.layout__content-contacts a {
  text-decoration: none;
}

.layout__content-contacts button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  // padding: 0;
}

.layout__content-contacts button:focus,
.layout__content-contacts button:active {
  outline: none;
}

.contacts-hero {
  position: relative;
  overflow: hidden;
  padding: 2.25rem 0 3rem;
  background: linear-gradient(135deg, #f7f8fa 0%, #eef3f9 48%, #fff5ed 100%);
}

.contacts-hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 82% 40%, rgba(80, 125, 188, 0.18) 0%, transparent 42%),
    radial-gradient(circle at 70% 70%, rgba(252, 130, 55, 0.12) 0%, transparent 36%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23507DBC' stroke-opacity='0.12' stroke-width='1'%3E%3Ccircle cx='40' cy='40' r='6'/%3E%3Ccircle cx='90' cy='28' r='4'/%3E%3Ccircle cx='120' cy='70' r='5'/%3E%3Ccircle cx='70' cy='95' r='4'/%3E%3Cpath d='M40 40L90 28L120 70L70 95Z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat, repeat;
  background-position: right center, right bottom, 0 0;
  background-size: auto, auto, 160px;
  opacity: 0.95;
  pointer-events: none;
}

.contacts-hero__bg::after {
  content: "";
  position: absolute;
  right: -4%;
  top: 10%;
  width: min(46vw, 420px);
  height: min(46vw, 280px);
  background:
    radial-gradient(ellipse at 30% 40%, rgba(182, 201, 227, 0.55), transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(253, 192, 155, 0.45), transparent 55%);
  filter: blur(2px);
  border-radius: 50% 40% 55% 45%;
}

.contacts-hero__inner {
  position: relative;
  z-index: 1;
}

.contacts-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.875rem;
  color: var(--re-gray);
  margin-bottom: 1.25rem;
}

.contacts-breadcrumbs a {
  color: var(--re-gray);
  transition: color var(--re-transition);
}

.contacts-breadcrumbs a:hover {
  color: var(--re-orange);
}

.contacts-breadcrumbs__sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--re-gray);
  opacity: 0.7;
}

.contacts-hero__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contacts-hero__title {
  margin: 0 0 0.5rem;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.contacts-hero__tagline {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--re-gray);
  text-transform: uppercase;
}

.contacts-section {
  padding-bottom: 3.5rem;
}

.contacts-section--warehouse {
  margin-bottom: 3.5rem;
  margin-left: calc(var(--layout-side-padding) * -1);
  margin-right: calc(var(--layout-side-padding) * -1);
  padding-top: 3.5rem;
  padding-left: var(--layout-side-padding);
  padding-right: var(--layout-side-padding);
  background-color: #fafafa;
  // background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
  border-top: 1px solid var(--re-border);
  border-bottom: 1px solid var(--re-border);
}

.contacts-section--info {
  padding-bottom: 4.5rem;
}

.contacts-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contacts-section__head .warehouse-warning {
  max-width: 22rem;
}

.contacts-section__intro {
  max-width: 36rem;
}

.contacts-section__intro--center {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.contacts-section__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.contacts-section__subtitle {
  margin: 0;
  color: var(--re-gray);
  font-size: 1rem;
  font-weight: 500;
}

.contacts-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 22rem;
  padding: 0.9rem 1rem;
  background: var(--re-gray-bg);
  border-radius: var(--re-radius-sm);
  border-left: 3px solid var(--re-orange);
}

.contacts-notice__icon {
  color: var(--re-orange);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contacts-notice p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--re-dark);
  font-weight: 500;
  line-height: 1.4;
}

.contacts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  transition: background var(--re-transition), color var(--re-transition), border-color var(--re-transition), transform var(--re-transition), box-shadow var(--re-transition);
  border: 1.5px solid transparent;
  text-align: center;
  white-space: nowrap;
}

.contacts-btn__arrow {
  transition: transform var(--re-transition);
}

.contacts-btn:hover .contacts-btn__arrow {
  transform: translateX(3px);
}

.contacts-btn--orange {
  background: var(--re-orange);
  color: var(--re-white);
  box-shadow: 0 6px 16px rgba(252, 130, 55, 0.28);
}

.contacts-btn--orange:hover {
  background: #f07228;
  color: var(--re-white);
}

.contacts-btn--outline-orange {
  background: transparent;
  color: var(--re-orange);
  border-color: var(--re-orange);
}

.contacts-btn--outline-orange:hover {
  background: var(--re-orange);
  color: var(--re-white);
}

.contacts-btn--outline-blue {
  background: transparent;
  color: var(--re-blue);
  border-color: var(--re-blue);
}

.contacts-btn--outline-blue:hover {
  background: var(--re-blue);
  color: var(--re-white);
}

.contacts-btn--outline-dark {
  background: transparent;
  color: var(--re-dark);
  border-color: rgba(44, 38, 40, 0.28);
}

.contacts-btn--outline-dark:hover {
  background: var(--re-dark);
  color: var(--re-white);
}

.contacts-btn--ghost {
  background: transparent;
  color: var(--re-blue);
  padding-inline: 0.25rem;
  min-height: auto;
  border-radius: 0;
}

.contacts-btn--ghost:hover {
  color: var(--re-orange);
}

.contacts-btn--lg {
  width: 100%;
  min-height: 3.1rem;
  margin-top: auto;
  font-size: 1rem;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--re-radius);
  border: 1px solid var(--re-border);
  background: var(--re-white);
  box-shadow: var(--re-shadow);
  min-height: 100%;
}

.contact-card--sales {
  background: linear-gradient(165deg, var(--re-orange-bg) 0%, #fff 72%);
  border-color: rgba(252, 130, 55, 0.18);
}

.contact-card--opt {
  background: linear-gradient(165deg, #fff8f2 0%, #fff 70%);
  border-color: rgba(253, 192, 155, 0.45);
}

.contact-card--zakupki {
  background: linear-gradient(165deg, var(--re-blue-bg) 0%, #fff 72%);
  border-color: rgba(80, 125, 188, 0.16);
}

.contact-card--buh {
  background: linear-gradient(165deg, var(--re-gray-bg) 0%, #fff 72%);
}

.contact-card--messengers {
  grid-column: span 2;
  background: linear-gradient(165deg, #f3f7fc 0%, #fff 70%);
  border-color: rgba(80, 125, 188, 0.14);
}

.contact-card__icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.contact-card--sales .contact-card__icon {
  background: rgba(252, 130, 55, 0.15);
  color: var(--re-orange);
}

.contact-card--opt .contact-card__icon {
  background: rgba(253, 192, 155, 0.35);
  color: var(--re-orange);
}

.contact-card--zakupki .contact-card__icon {
  background: rgba(80, 125, 188, 0.14);
  color: var(--re-blue);
}

.contact-card--buh .contact-card__icon {
  background: rgba(152, 151, 151, 0.18);
  color: var(--re-dark);
}

.contact-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.65rem;
}

.contact-card__eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--re-gray);
}

.contact-card__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.contact-card__desc {
  margin: 0;
  color: var(--re-gray);
  font-size: 0.9375rem;
  font-weight: 500;
}

.contact-card__list {
  list-style: none;
  margin: 0.35rem 0 0.5rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.contact-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.contact-card__list-icon {
  color: var(--re-gray);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.contact-card__list a {
  display: block;
  font-weight: 700;
  color: var(--re-dark);
  transition: color var(--re-transition);
}

.contact-card__list a:hover {
  color: var(--re-orange);
}

.contact-card__hint {
  display: block;
  font-size: 0.8125rem;
  color: var(--re-gray);
  font-weight: 500;
  margin-top: 0.1rem;
}

.contact-card__actions {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
}

.contact-card .contacts-btn {
  margin-top: auto;
  align-self: flex-start;
}

.contact-card__actions .contacts-btn {
  margin-top: 0;
}

.messengers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.messengers-grid .contact-card__eyebrow {
  grid-column: 3 span;
}

.messenger-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.85rem;
  padding: 0.6rem 0.75rem;
  background: var(--re-white);
  border: 1px solid var(--re-border);
  border-radius: var(--re-radius-sm);
  transition: border-color var(--re-transition);
  text-align: center;
}

.messenger-item:hover {
  border-color: var(--re-blue-soft);
}

.messenger-item__icon {
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.messenger-item__icon--wa {
  color: #25D366;
}

.messenger-item__icon--tg {
  color: #2AABEE;
}

.messenger-item__icon--max {
  color: #4b4bdb;
}

.messenger-item__icon--vk {
  color: #0077FF;
}

.messenger-item__label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--re-blue);
}

.warehouse-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr 1.1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.warehouse-photo {
  margin: 0;
  border-radius: var(--re-radius);
  overflow: hidden;
  min-height: 280px;
  background: var(--re-gray-bg);
}

.warehouse-photo__btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  cursor: pointer;
  color: inherit;
}

.warehouse-photo__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
  transition: transform 0.4s ease;
}

.warehouse-photo__btn:hover img {
  transform: scale(1.03);
}

.warehouse-photo__overlay {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  background: rgba(44, 38, 40, 0.78);
  color: var(--re-white);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

.warehouse-info {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: 0.25rem 0;
}

.warehouse-info__address {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.warehouse-info__pin {
  color: var(--re-orange);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.warehouse-info__label {
  margin: 0 0 0.2rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--re-gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.warehouse-info__text {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.warehouse-warning {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  background: #fff7f2;
  border: 1px solid rgba(252, 130, 55, 0.28);
  border-radius: var(--re-radius-sm);
}

.warehouse-warning__icon {
  color: var(--re-orange);
  flex-shrink: 0;
}

.warehouse-warning p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.warehouse-warning__phone {
  display: inline-block;
  font-weight: 800;
  color: var(--re-dark);
  transition: color var(--re-transition);
}

.warehouse-warning__phone:hover {
  color: var(--re-orange);
}

.warehouse-map {
  border-radius: var(--re-radius);
  overflow: hidden;
  border: 1px solid var(--re-border);
  min-height: 280px;
  background: var(--re-gray-bg);
}

.warehouse-map iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  display: block;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr 1.25fr;
  gap: 1.25rem;
}

.info-block {
  padding: 1.5rem;
  border-radius: var(--re-radius);
  border: 1px solid var(--re-border);
  background: var(--re-white);
  box-shadow: var(--re-shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-block__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.info-block__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--re-blue-bg);
  color: var(--re-blue);
}

.info-block__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.info-block__caption {
  margin: 0;
  color: var(--re-gray);
  font-size: 0.9rem;
  font-weight: 500;
}

.info-block__note {
  margin: 0;
  padding: 0.85rem;
  background: var(--re-gray-bg);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--re-gray);
  font-weight: 500;
}

.info-block__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: auto;
}

.requisites {
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.requisites > div {
  display: grid;
  gap: 0.15rem;
}

.requisites dt {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--re-gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.requisites dd {
  margin: 0;
  font-size: 0.975rem;
  font-weight: 700;
}

.schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.schedule-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--re-border);
  font-size: 0.95rem;
}

.schedule-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.schedule-list span {
  color: var(--re-gray);
  font-weight: 500;
}

.schedule-list strong {
  font-weight: 800;
  white-space: nowrap;
}

.route-steps {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--re-dark);
}

.route-steps li::marker {
  color: var(--re-orange);
  font-weight: 800;
}

.route-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.route-thumb {
  display: block;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--re-border);
  aspect-ratio: 16 / 10;
  transition: border-color var(--re-transition), transform var(--re-transition);
}

.route-thumb:hover {
  border-color: var(--re-blue);
  transform: translateY(-2px);
}

.route-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-block--route .contacts-btn {
  align-self: flex-start;
  margin-top: auto;
}

.contacts-lightbox[hidden] {
  display: none;
}

.contacts-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.contacts-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 38, 40, 0.82);
  backdrop-filter: blur(3px);
}

.contacts-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1920px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contacts-lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 10px;
  background: #111;
}

.contacts-lightbox__caption {
  margin: 0.85rem 0 0;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.contacts-lightbox__close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  color: #fff;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  // border-radius: 50%;
  transition: background var(--re-transition);
}

.contacts-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.contacts-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  transition: background var(--re-transition);
}

.contacts-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.contacts-lightbox__nav--prev {
  left: -0.5rem;
}

.contacts-lightbox__nav--next {
  right: -0.5rem;
}

.contacts-lightbox__close,
.contacts-lightbox__nav {
  background: none;
  border: none;
  cursor: pointer;
}

.contacts-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 10000;
  padding: 0.85rem 1.25rem;
  background: var(--re-dark);
  color: #fff;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.contacts-toast[hidden] {
  display: none;
}

@media (max-width: 1100px) {
  .contacts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-card--messengers {
    grid-column: span 2;
  }

  .warehouse-grid {
    grid-template-columns: 1fr 1fr;
  }

  .warehouse-map {
    grid-column: span 2;
    min-height: 320px;
  }

  .warehouse-map iframe {
    min-height: 320px;
  }

  .contact-card__actions {
    flex-direction: column;
    gap: 0.65rem;
  }

  .info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .info-block--route {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .contacts-hero {
    padding: 1.5rem 0 2.25rem;
  }

  .contacts-hero__row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .contacts-section {
    padding-bottom: 2.5rem;
  }

  .contacts-section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .contacts-section__head .warehouse-warning {
    align-items: center;
    max-width: 100%;
  }

  .contacts-notice {
    max-width: none;
    width: 100%;
  }

  .contacts-grid,
  .warehouse-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-grid  .info-block:first-child {
    grid-row: 3;
  }

  .contact-card--messengers,
  .warehouse-map,
  .info-block--route {
    grid-column: auto;
  }

  .messengers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .messengers-grid .contact-card__eyebrow {
    grid-column: 2 span;
  }

  .warehouse-photo,
  .warehouse-photo__btn img,
  .warehouse-map,
  .warehouse-map iframe {
    min-height: 220px;
  }

  .route-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacts-btn {
    white-space: normal;
  }

  .contact-card .contacts-btn,
  .info-block--route .contacts-btn {
    width: 100%;
    align-self: stretch;
  }

  .contacts-lightbox__nav--prev {
    left: 0.25rem;
  }

  .contacts-lightbox__nav--next {
    right: 0.25rem;
  }

  .contacts-section--warehouse {
    margin-bottom: 2.5rem;
    padding-top: 2.5rem;
  }
}

@media (max-width: 480px) {
  .messenger-item {
    grid-column: 2 span;
  }

  .contacts-hero__title {
    font-size: 2rem;
  }

  .contact-card {
    padding: 1.25rem;
  }

  .schedule-list li {
    flex-direction: column;
    gap: 0.2rem;
  }

  .info-block__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .info-block__actions .contacts-btn {
    width: 100%;
    justify-content: center;
  }
}
