/* ===== Variables ===== */
.partner-page {
  --green: #58b83d;
  --green-light: #eef8ea;
  --green-dark: #4a9a32;
  --blue: #3b82c4;
  --blue-light: #e8f2fa;
  --blue-dark: #2a6aab;
  --text: #1d253c;
  --text-muted: #4a5568;
  --bg: #ffffff;
  --bg-gray: #f5f7fa;
  --border: #e5e7eb;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.04);
  --container: 1320px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== Reset ===== */
.partner-page, .partner-page *::before, .partner-page *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.partner-page {
  scroll-behavior: smooth;
}

.partner-page {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 45% at 92% 8%, rgba(180, 220, 255, 0.38) 0%, transparent 58%),
    radial-gradient(ellipse 55% 40% at 8% 18%, rgba(180, 230, 190, 0.28) 0%, transparent 52%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(190, 225, 255, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 75% 55%, rgba(200, 240, 210, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, #f9fcfa 0%, #ffffff 35%, #f7faf9 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.partner-page img {
  max-width: 100%;
  display: block;
}

.partner-page a {
  color: inherit;
  text-decoration: none;
}

.partner-page ul {
  list-style: none;
}

/* ===== Utilities ===== */
.partner-page .container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.partner-page .text-green {
  color: var(--green);
}

.partner-page .section {
  padding: 80px 0;
}

.partner-page .section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  color: var(--text);
}

/* ===== Buttons ===== */
.partner-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 16px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}

.partner-page .btn:hover {
  transform: translateY(-1px);
}

.partner-page .btn--green {
  background: var(--green);
  color: #fff;
}

.partner-page .btn--green:hover {
  background: var(--green-dark);
}

.partner-page .btn--blue {
  background: var(--blue);
  color: #fff;
}

.partner-page .btn--blue:hover {
  background: var(--blue-dark);
}

.partner-page .btn--outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}

.partner-page .btn--outline:hover {
  background: var(--green-light);
}

/* ===== Placeholder images ===== */
.partner-page .placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #d1d5db 0%, #e5e7eb 100%);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.partner-page .placeholder-img--green {
  background: linear-gradient(135deg, #b8dfc8 0%, #d4eddf 100%);
  color: var(--green-dark);
}

.partner-page .placeholder-img--blue {
  background: linear-gradient(135deg, #b3d4f0 0%, #d0e8f8 100%);
  color: var(--blue-dark);
}

.partner-page .placeholder-img--sm {
  min-height: 80px;
  font-size: 11px;
  border-radius: 8px;
}

.partner-page .placeholder-img--partner {
  min-height: 100px;
  border-radius: var(--radius);
}

/* ===== Hero ===== */
.partner-page .hero {
  padding: 48px 0 64px;
  background: transparent;
  overflow: visible;
}

.partner-page .hero__card {
  position: relative;
  padding: 88px 48px 72px;
  background:
    radial-gradient(ellipse 70% 50% at 85% 15%, rgba(180, 220, 255, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 75% 70%, rgba(180, 230, 190, 0.15) 0%, transparent 55%),
    #f3f5f4;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.partner-page .hero__main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  overflow: visible;
}

.partner-page .hero__content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  min-width: 0;
  padding: 28px 0 56px;
  align-self: center;
}

.partner-page .hero__title {
  font-size: clamp(2.125rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.partner-page .hero__title-line {
  display: block;
}

.partner-page .hero__title-line:first-child {
  white-space: nowrap;
}

.partner-page .hero__subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 560px;
  line-height: 1.6;
}

.partner-page .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.partner-page .hero__pdf {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.partner-page .hero__pdf:hover {
  color: var(--green);
}

.partner-page .hero__visual {
  position: absolute;
  top: 50%;
  left: 46%;
  right: auto;
  transform: translateY(-50%) scale(1.72);
  transform-origin: left center;
  z-index: 1;
  width: 1040px;
  max-width: 60%;
  overflow: visible;
  pointer-events: none;
}

.partner-page .hero__glow {
  position: absolute;
  top: 50%;
  left: 40%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 100%;
  background:
    radial-gradient(ellipse at center, rgba(130, 200, 255, 0.35) 0%, rgba(150, 220, 170, 0.15) 45%, transparent 70%);
  filter: blur(36px);
  z-index: 0;
  pointer-events: none;
}

.partner-page .hero__image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
}

.partner-page .hero__stats {
  position: relative;
  z-index: 3;
  margin-top: 8px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* ===== Stats ===== */
.partner-page .stats__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.partner-page .stats__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.partner-page .stats__item strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
}

.partner-page .stats__item span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.25;
}

/* ===== About widget ===== */
.partner-page .about-widget {
  padding: 0 0 48px;
}

.partner-page .about-widget__card {
  display: flex;
  align-items: flex-start;
  width: fit-content;
  max-width: 100%;
}

.partner-page .about-widget__main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-right: 16px;
  flex: 0 1 auto;
  min-width: 0;
}

.partner-page .about-widget__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
}

.partner-page .about-widget__logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner-page .about-widget__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.2;
}

.partner-page .about-widget__text {
  font-size: 15px;
  line-height: 1.5;
  color: #4b5563;
  max-width: 480px;
  min-height: calc(1.5em * 2);
}

.partner-page .about-widget__stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  list-style: none;
  padding: 0;
  width: fit-content;
  max-width: 100%;
}

.partner-page .about-widget__stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.partner-page .about-widget__stat-item {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(29, 37, 60, 0.72);
  background: rgba(29, 37, 60, 0.08);
  white-space: nowrap;
}

.partner-page .about-widget__divider {
  width: 1px;
  align-self: stretch;
  flex-shrink: 0;
  background: #e8eaed;
  min-height: 76px;
}

.partner-page .about-widget__aside {
  flex-shrink: 0;
  padding-left: 12px;
}

.partner-page .about-widget__accredited {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #f0f9f2;
  border-radius: 12px;
  width: 420px;
  max-width: 100%;
}

.partner-page .about-widget__badge {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin-top: 2px;
}

.partner-page .about-widget__accredited-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 4px;
  line-height: 1.35;
}

.partner-page .about-widget__accredited-text {
  font-size: 13px;
  line-height: 1.45;
  color: #4b5563;
  min-height: calc(1.45em * 2);
  max-width: 340px;
}

.partner-page .cta__photo {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  transform: scale(1.18);
  transform-origin: bottom center;
}

/* ===== Steps ===== */
.partner-page .steps__grid {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.partner-page .step-card {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.partner-page .step-card__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 56px;
}

.partner-page .step-card__media {
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: calc(100% - 96px);
  height: 56px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  isolation: isolate;
}

.partner-page .step-card__num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.partner-page .step-card__num--green {
  background: var(--green-light);
  color: var(--green);
}

.partner-page .step-card__num--blue {
  background: var(--blue-light);
  color: var(--blue);
}

.partner-page .step-card__photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  border-radius: 16px;
}

.partner-page .step-card__text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  min-height: calc(1.4em * 2);
}

.partner-page .steps__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  color: var(--blue);
  opacity: 0.6;
}

/* ===== Directions ===== */
.partner-page .directions__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.partner-page .direction-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.partner-page .direction-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3f5f4;
}

.partner-page .direction-card__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.partner-page .direction-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
  padding: 16px;
}

.partner-page .direction-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.partner-page .direction-card__rate {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(29, 37, 60, 0.72);
  background: rgba(29, 37, 60, 0.08);
}

.partner-page .direction-card__rate-value {
  font-weight: 600;
  color: var(--text);
}

/* ===== Partners ===== */
.partner-page .partner-card {
  display: grid;
  grid-template-columns: auto 1px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 32px 40px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.partner-page .partner-card__logo {
  flex-shrink: 0;
}

.partner-page .partner-card__logo-img {
  display: block;
  height: 52px;
  width: auto;
  border-radius: 12px;
}

.partner-page .partner-card__divider {
  width: 1px;
  height: 60px;
  background: var(--border);
}

.partner-page .partner-card__title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.partner-page .partner-card__name {
  font-size: 18px;
  font-weight: 700;
}

.partner-page .partner-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(29, 37, 60, 0.72);
  background: rgba(29, 37, 60, 0.08);
}

.partner-page .partner-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 420px;
}

.partner-page .partner-card__cert {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.partner-page .partner-card__view {
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s;
}

.partner-page .partner-card__view:hover {
  color: var(--text);
}

.partner-page .partner-card__cert-link {
  display: block;
  flex-shrink: 0;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.partner-page .partner-card__cert-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.partner-page .partner-card__cert-img {
  display: block;
  height: 100px;
  width: auto;
  max-width: none;
}

/* ===== Certificate modal ===== */
.partner-page.cert-modal-open {
  overflow: hidden;
}

.partner-page .cert-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.partner-page .cert-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.partner-page .cert-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 37, 60, 0.72);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.partner-page .cert-modal.is-open .cert-modal__backdrop {
  opacity: 1;
}

.partner-page .cert-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  padding: 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
  transform: scale(0.96) translateY(16px);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.partner-page .cert-modal.is-open .cert-modal__dialog {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.partner-page .cert-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  transition: background 0.2s, transform 0.15s;
}

.partner-page .cert-modal__close:hover {
  background: #fff;
  transform: scale(1.04);
}

.partner-page .cert-modal__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 96px);
  border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .partner-page .cert-modal, .partner-page .cert-modal__backdrop, .partner-page .cert-modal__dialog {
    transition: none;
  }
}

/* ===== CTA ===== */
.partner-page .cta {
  padding: 0 0 80px;
}

.partner-page .cta__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--blue-light);
  border-radius: var(--radius-lg);
  padding: 56px 64px;
}

.partner-page .cta__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.partner-page .cta__text {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 420px;
}

.partner-page .cta__visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .partner-page .directions__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner-page .hero {
    padding: 24px 0 48px;
  }

  .partner-page .hero__card {
    padding: 56px 28px 48px;
    border-radius: 24px;
  }

  .partner-page .hero__main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .partner-page .hero__content {
    max-width: none;
    width: 100%;
    padding: 0 0 8px;
  }

  .partner-page .hero__visual {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    pointer-events: auto;
  }

  .partner-page .hero__glow {
    left: 50%;
    width: 100%;
  }

  .partner-page .stats__list {
    gap: 8px;
  }

  .partner-page .steps__grid {
    flex-wrap: wrap;
    gap: 16px;
  }

  .partner-page .steps__arrow {
    display: none;
  }

  .partner-page .step-card {
    flex: 1 1 calc(50% - 8px);
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .partner-page .hero__card {
    overflow-x: clip;
  }

  .partner-page .hero__main {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 16px;
    align-items: center;
  }

  .partner-page .hero__content {
    padding: 20px 0 40px;
  }

  .partner-page .hero__title {
    font-size: clamp(1.875rem, 3.2vw, 2.25rem);
  }

  .partner-page .hero__visual {
    max-width: none;
    width: calc(100% + 28px);
    margin: 0 -28px 0 0;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    align-items: center;
  }

  .partner-page .hero__image {
    width: auto;
    height: 370px;
    max-width: none;
    margin: 0;
    transform: translateX(64px) scale(1.32);
    transform-origin: left center;
  }

  .partner-page .about-widget__card {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .partner-page .about-widget__main {
    padding-right: 0;
  }

  .partner-page .about-widget__divider {
    width: 100%;
    height: 1px;
    min-height: 0;
    align-self: auto;
    margin: 16px 0;
  }

  .partner-page .about-widget__aside {
    padding-left: 0;
  }

  .partner-page .about-widget__accredited {
    width: 100%;
  }

  .partner-page .about-widget__stat-item {
    white-space: normal;
  }

  .partner-page .step-card__head {
    min-height: 96px;
  }

  .partner-page .step-card__media {
    height: 96px;
  }

  .partner-page .directions__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .partner-page .direction-card__body {
    padding: 12px;
    gap: 6px;
  }

  .partner-page .direction-card__title {
    font-size: 13px;
    line-height: 1.3;
  }

  .partner-page .direction-card__rate {
    font-size: 11px;
    padding: 3px 8px;
  }
}

@media (max-width: 768px) {
  .partner-page, .partner-page {
    overflow-x: hidden;
  }

  .partner-page .hero {
    padding: 0 0 40px;
  }

  .partner-page .hero .container {
    max-width: none;
    padding: 0;
  }

  .partner-page .hero__card {
    padding: 44px 20px 20px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    overflow-x: clip;
    overflow-y: visible;
  }

  .partner-page .hero__main {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .partner-page .hero__content {
    position: relative;
    z-index: 2;
    padding: 0 0 32px;
  }

  .partner-page .hero__title {
    font-size: clamp(1.75rem, 7vw, 2.125rem);
  }

  .partner-page .hero__title-line {
    overflow-wrap: break-word;
    white-space: normal;
  }

  .partner-page .hero__subtitle {
    font-size: 16px;
    max-width: none;
    margin-bottom: 32px;
  }

  .partner-page .hero__actions {
    flex-direction: column;
  }

  .partner-page .hero__actions .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .partner-page .hero__visual {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    z-index: 1;
    width: calc(100% + 40px);
    max-width: none;
    height: 330px;
    margin: 0 -20px;
    pointer-events: none;
    overflow: visible;
  }

  .partner-page .hero__image {
    position: absolute;
    left: 0;
    bottom: 0;
    width: auto;
    height: 100%;
    max-width: none;
    margin: 0;
    display: block;
    transform: translateX(36px) scale(1.28);
    transform-origin: left bottom;
  }

  .partner-page .hero__glow {
    display: none;
  }

  .partner-page .hero__stats {
    margin-top: 4px;
    padding: 0;
  }

  .partner-page .stats__list {
    gap: 8px;
  }

  .partner-page .step-card__head {
    min-height: 80px;
  }

  .partner-page .step-card__media {
    height: 80px;
  }

  .partner-page .about-widget__card {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .partner-page .about-widget__main {
    padding-right: 0;
    align-items: flex-start;
  }

  .partner-page .about-widget__divider {
    width: 100%;
    height: 1px;
    min-height: 0;
    align-self: auto;
    margin: 16px 0;
  }

  .partner-page .about-widget__aside {
    padding-left: 0;
  }

  .partner-page .about-widget__accredited {
    width: 100%;
  }

  .partner-page .about-widget__accredited-title, .partner-page .about-widget__accredited-text {
    white-space: normal;
  }

  .partner-page .about-widget__text {
    max-width: none;
  }

  .partner-page .cta__inner {
    grid-template-columns: 1fr;
    padding: 40px 32px;
  }

  .partner-page .cta__visual {
    order: -1;
  }

  .partner-page .cta__photo {
    max-width: 300px;
    transform: scale(1.12);
    margin: 0 auto;
  }

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

  .partner-page .partner-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
  }

  .partner-page .partner-card__divider {
    width: 100%;
    height: 1px;
  }

  .partner-page .partner-card__cert {
    width: 100%;
    justify-content: flex-start;
  }

  .partner-page .section {
    padding: 56px 0;
  }
}

@media (max-width: 480px) {
  .partner-page .stats__item span {
    white-space: normal;
  }

  .partner-page .step-card {
    flex: 1 1 100%;
  }

  .partner-page .directions__grid {
    grid-template-columns: 1fr;
  }
}

/* === Conflict resets vs /public/home2/css/styles.css ===
   On home2 the same class names mean different things. Override them
   only inside .partner-page so the home2 stylesheet keeps working everywhere else. */
.partner-page .hero__cta,
.partner-page .hero__cta:hover {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  background-color: transparent !important;
  color: inherit !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  text-align: left !important;
  cursor: auto !important;
  opacity: 1 !important;
  transform: none !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
}

/* === Alignment with home2 header ===
   home2 header is fixed at top:16px left:16px right:16px (width = 100vw - 32px).
   Make partner-page container match that: same left/right padding (16px),
   no max-width clamp. */
.partner-page .container {
  max-width: none !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

/* Push first section below the fixed header so it doesn't overlap. */
body.partner-body .main-content {
  padding-top: 96px;
}
@media (max-width: 768px) {
  body.partner-body .main-content {
    padding-top: 76px;
  }
}
.partner-page .hero {
  padding-top: 0;
}

/* === Match home2 grid: container caps at 1360px inner width with 40px side padding. === */
.partner-page .container {
  width: 100% !important;
  max-width: calc(1360px + 80px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 40px !important;
  padding-right: 40px !important;
}
@media (max-width: 1023px) {
  .partner-page .container {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}
@media (max-width: 600px) {
  .partner-page .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* === Move the background gradient from .partner-page (a div) to the whole body
       so the area above main-content (under the fixed header) is not white. === */
body.partner-body {
  background:
    radial-gradient(ellipse 70% 45% at 92% 8%, rgba(180, 220, 255, 0.38) 0%, transparent 58%),
    radial-gradient(ellipse 55% 40% at 8% 18%, rgba(180, 230, 190, 0.28) 0%, transparent 52%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(190, 225, 255, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 75% 55%, rgba(200, 240, 210, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, #f9fcfa 0%, #ffffff 35%, #f7faf9 100%) !important;
  background-attachment: fixed !important;
  min-height: 100vh;
}
.partner-page {
  background: transparent !important;
}

/* More breathing room under the fixed header so it never overlaps hero. */
body.partner-body .main-content {
  padding-top: 128px !important;
}
@media (max-width: 768px) {
  body.partner-body .main-content {
    padding-top: 92px !important;
  }
}

/* === Hero card softer/greener background (less white on small screens) === */
.partner-page .hero__card {
  background:
    radial-gradient(ellipse 68% 55% at 88% 12%, rgba(165, 215, 240, 0.40) 0%, transparent 62%),
    radial-gradient(ellipse 55% 45% at 12% 22%, rgba(165, 220, 175, 0.36) 0%, transparent 58%),
    radial-gradient(ellipse 70% 55% at 78% 80%, rgba(170, 220, 185, 0.30) 0%, transparent 60%),
    linear-gradient(135deg, #e6f3eb 0%, #ecf6ef 45%, #e9f5ee 100%) !important;
}

/* === Lead modal (Обсудить сотрудничество) === */
.partner-page .lead-modal,
body .lead-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}
body .lead-modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.22s ease, visibility 0s;
}
body .lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 27, 36, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
body .lead-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 24px;
  padding: 32px 28px 28px;
  box-shadow: 0 24px 60px rgba(15, 27, 36, 0.28);
  transform: translateY(12px);
  transition: transform 0.25s ease;
}
body .lead-modal.is-open .lead-modal__dialog { transform: translateY(0); }
body .lead-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(15, 27, 36, 0.06);
  color: #1d253c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
body .lead-modal__close:hover { background: rgba(15, 27, 36, 0.12); }
body .lead-modal__head { margin-bottom: 20px; }
body .lead-modal__title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: #1d253c;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
body .lead-modal__subtitle {
  font-size: 14px;
  line-height: 1.5;
  color: #4a5568;
  margin: 0;
}
body .lead-form { display: flex; flex-direction: column; gap: 14px; }
body .lead-field { display: flex; flex-direction: column; gap: 6px; }
body .lead-field__label {
  font-size: 13px;
  font-weight: 500;
  color: #4a5568;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
body .lead-field__req { color: #d44d4d; }
body .lead-field__hint { color: #9aa3b2; font-weight: 400; }
body .lead-field__input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 15px;
  color: #1d253c;
  background: #f5f7fa;
  border: 1.5px solid transparent;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
body .lead-field__input::placeholder { color: #9aa3b2; }
body .lead-field__input:focus { background: #fff; border-color: #58b83d; }
body .lead-field.has-error .lead-field__input { border-color: #d44d4d; background: #fdecec; }
body .lead-field__error {
  font-size: 12px;
  color: #d44d4d;
  min-height: 14px;
}
body .lead-form__submit {
  margin-top: 6px;
  height: 50px;
  border-radius: 14px;
  font-size: 15px;
}
body .lead-form__submit[disabled] { opacity: 0.65; cursor: progress; }
body .lead-form__legal {
  font-size: 12px;
  color: #8b94a3;
  line-height: 1.45;
  margin: 4px 0 0;
  text-align: center;
}
body .lead-modal__success { text-align: center; padding: 12px 0 4px; }
body .lead-modal__success-icon { color: #58b83d; margin-bottom: 14px; display: flex; justify-content: center; }
body .lead-modal__success-title {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1d253c;
  margin: 0 0 6px;
}
body .lead-modal__success-text {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.5;
  margin: 0 0 20px;
}

/* === Toast === */
body .partner-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: 10010;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #1d253c;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(15, 27, 36, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
body .partner-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}
body .partner-toast__icon { color: #58b83d; }

@media (max-width: 480px) {
  body .lead-modal { padding: 12px; }
  body .lead-modal__dialog { padding: 28px 20px 22px; border-radius: 20px; }
  body .lead-modal__title { font-size: 21px; }
}

/* === Typography bump (slightly larger) === */
.partner-page {
  font-size: 17px;
}
.partner-page .btn {
  font-size: 16px;
}
.partner-page .hero__subtitle {
  font-size: 19px;
}
.partner-page .section__title {
  font-size: clamp(1.625rem, 3vw, 2rem);
}

/* === More space under fixed header === */
body.partner-body .main-content {
  padding-top: 148px !important;
}
@media (max-width: 768px) {
  body.partner-body .main-content {
    padding-top: 112px !important;
  }
}

/* === Kill home2 hero overrides leaking onto partner page === */
body.home2-page.partner-body .partner-page .hero__title,
body.home2-page.partner-body .partner-page .hero__subtitle {
  text-shadow: none !important;
  color: var(--text) !important;
}
body.home2-page.partner-body .partner-page .hero__subtitle {
  color: var(--text-muted) !important;
  max-width: none !important;
  margin: 0 0 32px !important;
}
body.home2-page.partner-body .partner-page .hero__title {
  max-width: none !important;
  margin: 0 0 24px !important;
  font-size: clamp(1.875rem, 7.4vw, 2.375rem) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
}
body.home2-page.partner-body .main-content .hero__title,
body.home2-page.partner-body .main-content .hero__subtitle {
  text-shadow: none !important;
}

@media (max-width: 768px) {
  /* Full-bleed hero card on mobile */
  body.home2-page.partner-body .partner-page .hero {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-bottom: 40px;
  }
  body.home2-page.partner-body .partner-page .hero .container,
  body.home2-page.partner-body .main-content .partner-page .hero .container {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  body.home2-page.partner-body .partner-page .hero__card {
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    padding: 48px 20px 20px !important;
    overflow-x: clip;
  }
  body.home2-page.partner-body .partner-page .hero__title {
    font-size: clamp(1.875rem, 8vw, 2.25rem) !important;
  }
  body.home2-page.partner-body .partner-page .hero__title-line,
  body.home2-page.partner-body .partner-page .hero__title-line:first-child {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  body.home2-page.partner-body .partner-page .hero__subtitle {
    font-size: 17px !important;
    line-height: 1.55 !important;
  }
  body.home2-page.partner-body .partner-page .hero__content {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
    min-width: 0;
  }
}

/* === h8: desktop title restore, mobile 2-line title, less top gap === */

/* Desktop: restore original large title (override h7 shrink) */
@media (min-width: 769px) {
  body.home2-page.partner-body .partner-page .hero__title {
    font-size: clamp(2.125rem, 4.2vw, 3rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
  }
  body.home2-page.partner-body .partner-page .hero__title-line:first-child {
    white-space: nowrap !important;
  }
}

/* Mobile: tighter gap under header + card */
@media (max-width: 768px) {
  body.partner-body .main-content {
    padding-top: 92px !important;
  }
  body.home2-page.partner-body .partner-page .hero__card {
    padding-top: 32px !important;
  }

  /* Exactly 2 lines: line1 nowrap, slightly smaller to fit */
  body.home2-page.partner-body .partner-page .hero__title {
    font-size: clamp(1.5rem, 6.4vw, 1.875rem) !important;
    line-height: 1.12 !important;
    margin-bottom: 20px !important;
  }
  body.home2-page.partner-body .partner-page .hero__title-line:first-child {
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
  }
  body.home2-page.partner-body .partner-page .hero__title-line.text-green {
    white-space: nowrap !important;
  }
}

/* === h9: less green, seamless mobile gap under header === */
body.partner-body {
  background:
    radial-gradient(ellipse 70% 45% at 92% 8%, rgba(180, 220, 255, 0.18) 0%, transparent 58%),
    radial-gradient(ellipse 55% 40% at 8% 18%, rgba(195, 225, 200, 0.08) 0%, transparent 52%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(190, 225, 255, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, #fafafa 0%, #ffffff 42%, #f8f9f8 100%) !important;
}
.partner-page .hero__card {
  background:
    radial-gradient(ellipse 68% 55% at 88% 12%, rgba(165, 215, 240, 0.22) 0%, transparent 62%),
    radial-gradient(ellipse 55% 45% at 12% 22%, rgba(195, 220, 200, 0.12) 0%, transparent 58%),
    radial-gradient(ellipse 70% 55% at 78% 80%, rgba(175, 215, 190, 0.10) 0%, transparent 60%),
    linear-gradient(135deg, #f3f5f4 0%, #f5f7f6 45%, #f3f5f4 100%) !important;
}
@media (max-width: 768px) {
  body.partner-body {
    background: #f4f6f5 !important;
    background-attachment: scroll !important;
  }
  body.partner-body .main-content {
    background: #f4f6f5;
  }
  body.home2-page.partner-body .partner-page .hero__card {
    background: linear-gradient(180deg, #f4f6f5 0%, #f2f4f3 100%) !important;
  }
}

/* === h10: mobile left gray wash (less white glare) === */
@media (max-width: 768px) {
  body.partner-body {
    background:
      radial-gradient(ellipse 85% 120% at -8% 35%, rgba(198, 206, 202, 0.72) 0%, rgba(210, 216, 213, 0.35) 38%, transparent 62%),
      radial-gradient(ellipse 60% 80% at 100% 10%, rgba(185, 215, 235, 0.18) 0%, transparent 55%),
      #eef1ef !important;
    background-attachment: scroll !important;
  }
  body.partner-body .main-content {
    background: transparent;
  }
  body.home2-page.partner-body .partner-page .hero__card {
    background:
      radial-gradient(ellipse 75% 100% at -5% 45%, rgba(205, 211, 208, 0.55) 0%, rgba(215, 220, 217, 0.22) 42%, transparent 68%),
      linear-gradient(180deg, #eef1ef 0%, #f0f2f1 55%, #f2f4f3 100%) !important;
  }
}

/* PDF link styled as button trigger */
.partner-page .hero__pdf[data-lead-open] {
  cursor: pointer;
  background: none;
  border: 0;
  font: inherit;
  padding: 0;
  text-align: left;
}
