/* v17 — contact section is a two-column editorial layout, not three competing columns. */
.contact-section {
  overflow: clip;
}
.contact-section .contact-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr) !important;
  grid-template-areas: "intro social" "intro address";
  column-gap: clamp(28px, 4vw, 84px) !important;
  row-gap: 28px !important;
  align-items: start;
  width: min(1390px, calc(100% - 100px));
}
.contact-section .contact-lead {
  grid-area: intro;
  min-width: 0;
  align-self: start;
  padding-top: 8px;
}
.contact-section .contact-lead .overline { color: #763951; }
.contact-section .contact-layout .contact-title {
  display: block;
  width: 100%;
  max-width: 100% !important;
  margin-top: 25px;
  font-size: clamp(30px, 3.25vw, 53px) !important;
  line-height: 1.04 !important;
  letter-spacing: -.072em !important;
  overflow-wrap: anywhere;
}
.contact-section .contact-social {
  grid-area: social;
  min-width: 0;
  width: 100%;
  padding-top: 0;
}
.contact-section .contact-social > a,
.contact-section .contact-social > button {
  width: 100%;
  min-width: 0;
  min-height: 49px;
  padding: 14px 0 !important;
  font-size: clamp(12px, 1.1vw, 15px) !important;
  letter-spacing: -.03em;
  overflow: visible;
  text-overflow: clip;
}
.contact-section .address-card {
  grid-area: address;
  min-width: 0;
  width: 100%;
  align-self: stretch;
  min-height: 154px;
  padding: 22px 24px;
}
.contact-section .address-card > span:nth-child(2) { min-width: 0; }
.contact-section .address-card b { font-size: 15px !important; }
.contact-section .address-card .address-arrow { flex: 0 0 18px; }

/* Tablet: title gets its own full row. Social links and location are below it. */
@media (max-width: 1100px) {
  .contact-section .contact-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) !important;
    grid-template-areas: "intro intro" "social address";
    gap: 24px 26px !important;
    width: min(100% - 64px, 1050px);
  }
  .contact-section .contact-layout .contact-title {
    font-size: clamp(31px, 4vw, 49px) !important;
    max-width: 100% !important;
  }
  .contact-section .contact-social > a,
  .contact-section .contact-social > button {
    font-size: 13px !important;
  }
}

/* Phone: every part occupies a separate full-width row. */
@media (max-width: 700px) {
  .contact-section { padding: 62px 0 66px !important; }
  .contact-section .contact-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "intro" "social" "address";
    width: calc(100% - 36px);
    gap: 24px !important;
  }
  .contact-section .contact-lead { padding-top: 0; }
  .contact-section .contact-layout .contact-title {
    font-size: clamp(21px, 7.1vw, 41px) !important;
    line-height: 1.07 !important;
    letter-spacing: -.065em !important;
    margin-top: 16px;
    max-width: 100% !important;
  }
  .contact-section .contact-social { padding: 0; }
  .contact-section .contact-social > a,
  .contact-section .contact-social > button {
    min-height: 49px;
    font-size: 12px !important;
    padding: 12px 0 !important;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .contact-section .address-card {
    padding: 22px 17px;
    min-height: 132px;
    align-items: flex-start;
    gap: 12px;
  }
  .contact-section .address-card b { font-size: 15px !important; }
  .contact-section .address-card small { font-size: 9px; }
  .contact-section .address-card .address-arrow { margin-left: auto; align-self: center; }
  .footer-inner { justify-content: center; }
  .footer-inner > span { text-align: center !important; }
}

/* The existing header was too wide for 340px phones; preserve its three controls. */
@media (max-width: 430px) {
  .header .header-inner { gap: 6px !important; }
  .header .brand { font-size: clamp(12px, 3.6vw, 15.3px) !important; gap: 5px; min-width: 0; }
  .header .brand-mark { width: 26px !important; height: 26px !important; flex: 0 0 26px !important; }
  .header .header-cta {
    min-width: 0 !important;
    gap: 8px !important;
    padding: 6px 8px 6px 11px !important;
    flex: 0 0 auto;
    margin-left: auto !important;
  }
  .header .header-cta .cta-main { font-size: 9px !important; }
  .header .header-cta .cta-arrow {
    width: 27px !important;
    height: 27px !important;
    min-width: 27px !important;
  }
  .header .mobile-menu-btn { width: 35px !important; height: 39px !important; padding: 6px 4px !important; flex: 0 0 35px; }
  .header .mobile-menu-btn span { width: 22px; }
}

/* A background shorthand in the old stylesheet repeated the arrow pictogram.
   Force a single centered SVG on iPhone and desktop. */
.header .header-cta .cta-arrow,
.works-section .work-zoom,
.style-card-special .cover-link .icon-arrow,
.faq-aside .faq-aside-link .icon-arrow {
  background-repeat: no-repeat !important;
  background-position: center center !important;
}


/* v18: исправление пересечения средней и большой карточек прайса.
   Декоративный градиент остаётся внутри средней карточки;
   внешняя ленточка «Популярный формат» не обрезается. */
.pricing-section .price-card.is-featured::before {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
  border-radius: inherit !important;
  background: radial-gradient(ellipse at 82% 92%, rgba(255,121,178,.14), transparent 65%) !important;
}
.pricing-section .price-card.is-featured::after {
  right: 8px !important;
}


/* v19 — isolate ONLY the middle card's background. The ribbon remains outside the card. */
.pricing-section .price-card-shell {
  position: relative;
  min-width: 0;
  display: block;
  height: 100%;
  isolation: isolate;
}
.pricing-section .price-card-shell > .price-card.is-featured {
  height: 100%;
  min-height: 425px;
  overflow: hidden !important;
  background: #32202d !important;
  border-radius: 52px 8px 8px 8px !important;
}
.pricing-section .price-card-shell > .featured-ribbon {
  position: absolute !important;
  z-index: 10 !important;
  right: 18px !important;
  top: -20px !important;
  transform: rotate(4deg) !important;
  padding: 12px 18px !important;
  background: #ff9cc5 !important;
  color: #27111d !important;
  border-radius: 4px 15px 4px 15px !important;
  box-shadow: 0 10px 28px #0008 !important;
  font: 700 10px/1.3 "Meta Pro Fixed", "Space Mono", monospace !important;
  letter-spacing: .06em !important;
  white-space: nowrap !important;
  pointer-events: none;
}
@media (max-width: 900px) {
  .pricing-section .price-card-shell > .price-card.is-featured { min-height: 410px; }
}
@media (max-width: 700px) {
  .pricing-section .price-card-shell > .price-card.is-featured {
    min-height: 375px;
    border-radius: 34px 10px 10px 10px !important;
  }
}
@media (max-width: 450px) {
  .pricing-section .price-card-shell > .featured-ribbon {
    right: 10px !important;
    top: -17px !important;
    font-size: 8px !important;
    padding: 10px !important;
  }
}
