/* Dedicated layout for the four Russian advertising pages. */
.ad-page {
  padding-bottom: var(--ad-sticky-height, calc(100px + env(safe-area-inset-bottom)));
  overflow-wrap: anywhere;
}
.ad-hero { max-width: 940px; padding-block: clamp(30px, 5vw, 68px); }
.ad-hero .s2-hero-grid { display: flex; flex-direction: column; gap: 20px; }
.ad-hero .s2-sidebar { position: static; width: 100%; }
.ad-hero .s2-main-copy { width: 100%; }
.ad-hero .s2-hero-image { aspect-ratio: 16/9; max-height: 400px; object-position: center; }
.ad-brand {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 16px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #19232f;
  text-decoration: none;
}
.ad-brand img {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  object-fit: contain;
  border-radius: 8px;
}
.ad-brand span { font-size: 20px; font-weight: 800; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.ad-brand:focus-visible { outline: 3px solid #a16207; outline-offset: 6px; border-radius: 10px; }
.ad-actions { margin-top: 26px; flex-wrap: wrap; }
.ad-actions .s2-btn { flex: 1 1 auto; padding-inline: 16px; font-size: .96rem; }
.ad-hero .ad-actions { margin-top: 20px; }
.ad-copy { margin-top: 28px; color: #374151; line-height: 1.85; }
.ad-copy p { white-space: pre-line; }
.ad-copy p + p { margin-top: 18px; }
.ad-final-copy { max-width: 640px; margin: 20px auto 0; line-height: 1.8; color: #4b5563; white-space: pre-line; }
.ad-page .s2-final-inner { max-width: 950px; }
.ad-page .s2-btn, .ad-sticky .s2-btn,
.ad-page .s2-btn span, .ad-sticky .s2-btn span { text-align: center; align-items: center; justify-content: center; }
.ad-sticky {
  position: fixed;
  inset: auto 0 0;
  z-index: 9999;
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 24px #0f172a0a;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  backdrop-filter: blur(12px);
}
.ad-sticky > .s2-container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 680px; }
.ad-sticky .s2-btn {
  display: flex;
  min-height: 62px;
  height: 100%;
  padding: 12px 10px;
  font-size: 15px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.ad-sticky .s2-btn span { min-width: 0; }
.ad-sticky .contact-action-content { width: max-content; max-width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.ad-sticky .contact-action-label { display: block; flex: 0 1 auto; max-width: 12ch; text-align: center; text-wrap: balance; font-weight: 800; }
.ad-sticky .contact-action-content > .contact-icon { width: 20px; height: 20px; align-self: center; margin: 0 !important; flex: 0 0 20px; }
@media (min-width: 640px) {
  .ad-actions .s2-btn { flex: 1 1 210px; }
}
@media (max-width: 639px) {
  .ad-hero { padding-top: 12px; }
  .ad-hero .s2-hero-image { max-height: 170px; }
  .ad-hero .s2-hero-grid { gap: 18px; }
  .ad-hero .s2-h1 { font-size: 28px; line-height: 1.12; }
  .ad-hero .ad-actions { margin-top: 18px; }
  .ad-hero .ad-phone-display { display: none; }
  .ad-brand { margin-bottom: 14px; }
  .ad-brand span { font-size: 19px; }
  .ad-copy { margin-top: 22px; }
}
@media (max-width: 380px) {
  .ad-sticky > .s2-container { gap: 8px; }
}
@media (max-width: 359px) {
  .ad-hero .s2-hero-image { max-height: 145px; }
  .ad-hero .s2-h1 { font-size: 27px; }
  .ad-hero .s2-hero-grid { gap: 16px; }
  .ad-brand { margin-bottom: 12px; }
  .ad-brand img { width: 32px; height: 32px; flex-basis: 32px; }
  .ad-brand span { font-size: 18px; }
  .ad-sticky .s2-btn { font-size: 14px; padding-inline: 8px; }
  .ad-sticky .contact-action-label { max-width: 11ch; }
}

/* Desktop landing layout; the compact mobile composition stays intact. */
@media (min-width: 1024px) {
  .ad-page {
    background: radial-gradient(ellipse at 90% 12%, #f4eddd 0, transparent 40%), #fafaf8;
    padding-bottom: calc(var(--ad-sticky-height, 100px) + 18px);
  }
  .ad-hero { width: min(100% - 80px, 1200px); max-width: 1200px; padding-block: 32px 56px; }
  .ad-brand { gap: 12px; margin-bottom: 40px; }
  .ad-brand img { width: 46px; height: 46px; flex-basis: 46px; border-radius: 11px; }
  .ad-brand span { font-size: 24px; letter-spacing: -.6px; }
  .ad-hero .s2-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    grid-template-areas: "copy visual";
    gap: clamp(32px, 4vw, 64px);
    align-items: start;
  }
  .ad-hero .s2-main-copy { grid-area: copy; padding-top: 8px; }
  .ad-hero .s2-sidebar { grid-area: visual; position: sticky; top: 32px; }
  .ad-hero .s2-figure {
    margin: 0;
    padding: 10px;
    border: 1px solid #e8e5df;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 56px #26313d12;
  }
  .ad-hero .s2-hero-image { aspect-ratio: 4/3; max-height: none; border-radius: 19px; }
  .ad-hero .s2-h1 { font-size: clamp(38px, 3.7vw, 52px); line-height: 1.09; letter-spacing: -1.9px; text-wrap: balance; }
  .ad-hero .ad-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
  .ad-hero .s2-btn { min-height: 74px; padding: 14px 12px; border-radius: 14px; font-size: 15px; line-height: 1.35; }
  .ad-hero .s2-btn-call { background: #172a35; box-shadow: 0 8px 20px #172a351a; }
  .ad-hero .s2-btn-call:hover { background: #253e4d; }
  .ad-hero .s2-btn-wa { background: #15803d; }
  .ad-hero .s2-btn-wa:hover { background: #166534; }
  .ad-hero .ad-phone-display { display: block; font-size: 13px; font-weight: 500; line-height: 1.5; margin-top: 4px; opacity: .86; }
  .ad-hero .ad-copy { margin-top: 28px; font-size: 15px; line-height: 1.9; color: #5a6570; }
  .ad-hero .ad-copy p:first-child { font-size: 17px; line-height: 1.85; color: #354553; }
  .ad-hero .ad-copy p + p { margin-top: 16px; }
  .ad-page .s2-final-cta {
    width: min(100% - 80px, 1200px);
    margin: 0 auto 28px;
    padding-block: 44px;
    border: 0;
    border-radius: 24px;
    background: #172a35;
  }
  .ad-page .s2-final-cta h2 { color: #fff; font-size: 34px; letter-spacing: -.9px; }
  .ad-page .ad-final-copy { max-width: 650px; margin-top: 16px; color: #c4cdd3; font-size: 16px; }
  .ad-page .s2-final-cta .ad-actions { max-width: 680px; margin: 24px auto 0; }
  .ad-page .s2-final-cta .s2-btn { min-height: 54px; border-radius: 12px; }
  .ad-sticky {
    inset: auto auto 18px 50%;
    transform: translateX(-50%);
    width: min(680px, calc(100% - 48px));
    padding: 10px;
    border: 1px solid #e2e7e9;
    border-radius: 20px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 12px 42px #172a3524;
  }
  .ad-sticky > .s2-container { width: 100%; max-width: none; gap: 10px; }
  .ad-sticky .s2-btn { min-height: 54px; border-radius: 12px; font-size: 16px; }
  .ad-sticky .contact-action-label { max-width: none; }
}

@media (min-width: 1024px) { .ad-hero .ad-phone-divider { display: none; } }
