.contact-page .page-shell {
  overflow: clip;
}

.contact-page .site-header {
  grid-template-columns: minmax(210px, 300px) 1fr auto;
  gap: clamp(1rem, 2.3vw, 3rem);
}

.contact-page .desktop-nav {
  gap: clamp(0.75rem, 1.65vw, 2rem);
}

.contact-page .desktop-nav a[aria-current="page"] {
  position: relative;
}

.contact-page .desktop-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -0.75rem;
  left: 0;
  height: 2px;
  background: var(--turquoise);
  content: "";
}

.contacts-main {
  position: relative;
  padding: clamp(3.5rem, 5.5vw, 6.5rem) clamp(1.25rem, 5vw, 6rem) clamp(3rem, 5vw, 5.5rem);
  isolation: isolate;
}

.contacts-grid {
  position: absolute;
  z-index: -3;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgb(7 29 67 / 9%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(7 29 67 / 9%) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at 82% 28%, #000 0, transparent 47%);
  mask-image: radial-gradient(ellipse at 82% 28%, #000 0, transparent 47%);
}

.contacts-main::before,
.contacts-main::after {
  position: absolute;
  z-index: -2;
  width: 38vw;
  height: 28vw;
  border-radius: 46% 54% 61% 39%;
  opacity: 0.14;
  background: repeating-radial-gradient(ellipse at center, transparent 0 12px, rgb(7 158 178 / 36%) 13px 14px, transparent 15px 24px);
  content: "";
}

.contacts-main::before {
  top: -9rem;
  left: -14rem;
  transform: rotate(-14deg);
}

.contacts-main::after {
  right: -13rem;
  bottom: -10rem;
  transform: rotate(17deg);
}

.page-cross {
  position: absolute;
  z-index: -1;
  width: 30px;
  height: 30px;
}

.page-cross::before,
.page-cross::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--navy);
  content: "";
  opacity: 0.4;
  transform: translate(-50%, -50%);
}

.page-cross::before {
  width: 30px;
  height: 1px;
}

.page-cross::after {
  width: 1px;
  height: 30px;
}

.page-cross-one {
  top: 3rem;
  right: 4.5rem;
}

.page-cross-two {
  bottom: 4rem;
  left: 2.5rem;
}

.contacts-intro {
  width: min(100%, 1420px);
  margin: 0 auto clamp(3rem, 5vw, 5rem);
}

.contacts-kicker {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--turquoise);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contacts-kicker span {
  width: 0.38rem;
  height: 0.38rem;
  background: var(--orange);
  border-radius: 50%;
}

.contacts-intro h1 {
  font-size: clamp(4.2rem, 8vw, 8rem);
  line-height: 0.9;
}

.contacts-intro > p:last-child {
  max-width: 700px;
  margin: 1.45rem 0 0;
  color: var(--navy-soft);
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.6;
}

.contacts-layout {
  display: grid;
  grid-template-columns: minmax(400px, 0.86fr) minmax(560px, 1.14fr);
  gap: clamp(2.5rem, 5vw, 6rem);
  width: min(100%, 1420px);
  margin: 0 auto;
}

.contact-section h2,
.calculation-strip h2 {
  margin: 0;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(1.45rem, 1.7vw, 2rem);
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-transform: uppercase;
}

.contact-section h2::after {
  display: block;
  width: 2rem;
  height: 2px;
  margin-top: 0.65rem;
  background: var(--turquoise);
  content: "";
}

.social-list {
  margin-top: 0.85rem;
  overflow: hidden;
  border: 1px solid rgb(7 29 67 / 12%);
  border-radius: 16px;
  background: rgb(255 255 255 / 82%);
  box-shadow: 0 20px 48px rgb(7 29 67 / 9%);
  backdrop-filter: blur(8px);
}

.social-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 1.1rem;
  min-height: 84px;
  padding: 0 1.5rem;
  border-bottom: 1px solid rgb(7 29 67 / 11%);
  color: var(--navy);
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.social-row:last-child {
  border-bottom: 0;
}

.social-row:not(.is-placeholder):hover,
.social-row:not(.is-placeholder):focus-visible {
  background: rgb(7 158 178 / 6%);
  color: var(--turquoise);
}

.is-placeholder {
  cursor: default;
  pointer-events: none;
}

.social-icon {
  display: grid;
  width: 48px;
  height: 48px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  place-items: center;
  border-radius: 50%;
}

.social-icon svg {
  width: 25px;
  height: 25px;
}

.telegram-icon {
  background: #229ed9;
}

.telegram-icon svg {
  fill: currentColor;
}

.vk-icon {
  background: #2787f5;
}

.instagram-icon {
  background: linear-gradient(135deg, #6c45d9 0%, #d62976 52%, #f9a23a 100%);
}

.instagram-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.instagram-icon .fill-dot {
  fill: currentColor;
  stroke: none;
}

.social-name {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
}

.row-arrow {
  color: var(--turquoise);
  font-size: 1.65rem;
}

.marketplace-section {
  margin-top: clamp(2.5rem, 4vw, 4rem);
}

.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 0.85rem;
}

.marketplace-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 0.7rem;
  min-height: 86px;
  padding: 0.85rem;
  border: 1px solid rgb(7 29 67 / 12%);
  border-radius: 14px;
  background: rgb(255 255 255 / 84%);
  box-shadow: 0 14px 32px rgb(7 29 67 / 7%);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.marketplace-card:not(.is-placeholder):hover,
.marketplace-card:not(.is-placeholder):focus-visible {
  box-shadow: 0 18px 36px rgb(7 29 67 / 12%);
  transform: translateY(-3px);
}

.marketplace-card b {
  color: var(--turquoise);
  font-size: 1.25rem;
}

.marketplace-logo {
  display: grid;
  width: 42px;
  height: 42px;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  place-items: center;
  border-radius: 11px;
}

.ozon-logo {
  background: linear-gradient(145deg, #0747ff, #201ad6);
}

.wb-logo {
  background: linear-gradient(145deg, #d728b5, #8317c8);
}

.avito-logo {
  position: relative;
  display: block;
  background: transparent;
  border-radius: 0;
}

.avito-logo i {
  position: absolute;
  border-radius: 50%;
}

.avito-logo i:nth-child(1) {
  top: 5px;
  left: 5px;
  width: 13px;
  height: 13px;
  background: #00aaff;
}

.avito-logo i:nth-child(2) {
  top: 3px;
  right: 3px;
  width: 16px;
  height: 16px;
  background: #965eeb;
}

.avito-logo i:nth-child(3) {
  bottom: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #ff6163;
}

.avito-logo i:nth-child(4) {
  right: 5px;
  bottom: 5px;
  width: 13px;
  height: 13px;
  background: #97cf26;
}

.location-section {
  min-width: 0;
}

.map-card {
  position: relative;
  height: clamp(330px, 31vw, 490px);
  overflow: hidden;
  border: 1px solid rgb(7 29 67 / 13%);
  border-radius: 18px;
  background: #eef2ef;
  box-shadow: 0 24px 58px rgb(7 29 67 / 11%);
}

.map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.72) contrast(0.96);
}

.map-corner {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  width: 22px;
  height: 22px;
  border-top: 1px solid var(--turquoise);
  border-right: 1px solid var(--turquoise);
  pointer-events: none;
}

.address-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1rem;
  padding: clamp(1.25rem, 2.3vw, 2rem);
  border: 1px solid rgb(7 29 67 / 12%);
  border-radius: 18px;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 18px 42px rgb(7 29 67 / 8%);
}

.address-pin {
  display: grid;
  width: 58px;
  height: 58px;
  border: 1px solid var(--turquoise);
  border-radius: 50%;
  place-items: center;
}

.address-pin svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--turquoise);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.address-copy p {
  margin: 0;
}

.address-title {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(1.2rem, 1.6vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.transport {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.7rem !important;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
}

.d2-badge {
  display: inline-grid;
  min-width: 44px;
  min-height: 28px;
  padding: 0 0.45rem;
  background: #e32879;
  color: #fff;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  place-items: center;
  transform: skew(-10deg);
}

.pickup-note {
  margin-top: 1rem !important;
  padding-top: 0.85rem;
  border-top: 1px dashed rgb(7 29 67 / 18%);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.5;
  text-transform: uppercase;
}

.route-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0 1.2rem;
  border: 1px solid var(--turquoise);
  color: var(--navy);
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.route-button:hover,
.route-button:focus-visible {
  background: var(--turquoise);
  color: #fff;
  transform: translateY(-2px);
}

.calculation-strip {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(340px, 1.25fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  width: min(100%, 1420px);
  min-height: 136px;
  margin: clamp(3rem, 5vw, 5rem) auto 0;
  padding: 1.5rem clamp(1.5rem, 3vw, 3rem);
  overflow: hidden;
  border: 1px solid rgb(7 29 67 / 12%);
  border-radius: 18px;
  background: rgb(255 255 255 / 84%);
  box-shadow: 0 18px 44px rgb(7 29 67 / 8%);
}

.strip-art {
  position: absolute;
  top: 50%;
  left: -3.5rem;
  width: 180px;
  height: 180px;
  border: 1px solid rgb(7 158 178 / 35%);
  border-radius: 50%;
  transform: translateY(-50%);
}

.strip-art i {
  position: absolute;
  inset: calc(var(--i, 1) * 11px);
  border: 1px solid rgb(7 29 67 / 22%);
  border-radius: 48% 52% 55% 45%;
}

.strip-art i:nth-child(1) { --i: 1; border-color: var(--turquoise); }
.strip-art i:nth-child(2) { --i: 2; }
.strip-art i:nth-child(3) { --i: 3; border-color: var(--orange); }
.strip-art i:nth-child(4) { --i: 4; }
.strip-art i:nth-child(5) { --i: 5; border-color: var(--turquoise); }

.strip-title {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-left: 2.2rem;
}

.timer-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid var(--turquoise);
  color: var(--turquoise);
  font-size: 1.7rem;
  place-items: center;
  border-radius: 50%;
}

.calculation-strip > p {
  margin: 0;
  color: var(--navy-soft);
  font-size: 1rem;
  line-height: 1.65;
}

.calculation-strip > a {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--orange);
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.calculation-strip > a:hover,
.calculation-strip > a:focus-visible {
  color: var(--navy);
}

.contacts-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 clamp(1.25rem, 5vw, 6rem);
  padding: 1.75rem 0;
  border-top: 1px solid rgb(7 29 67 / 20%);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contacts-footer p {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1380px) {
  .contact-page .site-header {
    grid-template-columns: 235px 1fr auto;
  }

  .contact-page .desktop-nav {
    gap: 0.8rem;
  }

  .contact-page .desktop-nav a {
    font-size: 0.69rem;
  }

  .contacts-layout {
    grid-template-columns: minmax(360px, 0.84fr) minmax(500px, 1.16fr);
    gap: 2.5rem;
  }

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

  .address-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .route-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .contact-page .desktop-nav,
  .contact-page .header-cta {
    display: none;
  }

  .contact-page .site-header {
    grid-template-columns: minmax(210px, 270px) 1fr auto;
    min-height: 92px;
  }

  .contacts-layout {
    grid-template-columns: 1fr;
  }

  .marketplace-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .calculation-strip {
    grid-template-columns: 1fr 1.5fr;
  }

  .calculation-strip > a {
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  .contacts-main {
    padding-top: 3rem;
  }

  .contacts-intro {
    margin-bottom: 2.5rem;
  }

  .contacts-intro h1 {
    font-size: clamp(3.6rem, 18vw, 5.5rem);
  }

  .contacts-layout {
    gap: 3rem;
  }

  .social-row {
    grid-template-columns: 46px 1fr auto;
    min-height: 76px;
    padding: 0 1.1rem;
  }

  .social-icon {
    width: 42px;
    height: 42px;
  }

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

  .map-card {
    height: 360px;
  }

  .address-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 1rem;
  }

  .address-pin {
    width: 46px;
    height: 46px;
  }

  .route-button {
    width: 100%;
  }

  .calculation-strip {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 2rem 1.35rem;
  }

  .strip-title {
    padding-left: 1.5rem;
  }

  .calculation-strip > a {
    grid-column: 1;
  }

  .contacts-footer {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .contact-page .site-header {
    grid-template-columns: minmax(170px, 215px) 1fr auto;
  }

  .contacts-main {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .social-name {
    font-size: 1.08rem;
  }

  .map-card {
    height: 310px;
  }

  .address-title {
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marketplace-card,
  .route-button,
  .social-row {
    transition: none;
  }
}
