/* Partners only: a shared rhythm, readable cards and a lighter enquiry form.
   The page container, artwork, copy and submission script stay independent. */
:root {
  --partners-paper: #f8f6fb;
  --partners-rule: #e5dced;
  --partners-radius: 16px;
}

.hero.hero--collage {
  padding-top: 76px;
  padding-bottom: 76px;
}
.hero .hero-copy { padding-right: 12px; }
.hero .hero-lead { max-width: 550px; line-height: 1.55; }
.hero .actions { gap: 12px; margin-top: 34px; }
.hero .actions .button { flex: 1 1 220px; max-width: 270px; }
.button { border-radius: 8px; }
.button:disabled { cursor: wait; opacity: .7; transform: none; }

.why.section, .audiences.section, .partners.section,
.formats.cooperation, .contact.section {
  padding-top: 72px;
  padding-bottom: 72px;
}
.why.section { background: var(--partners-paper); }
.why .benefits-lead { font-size: 20px; line-height: 1.5; color: #61576b; }
.why .benefits { margin-top: 32px; gap: 16px; }
.why .benefit { border-radius: var(--partners-radius); }
.why .benefit:nth-child(2n) { box-shadow: inset 0 0 0 1px #ede7f2; }
.why .benefit:hover { transform: none; }
@container page (min-width: 1341px) {
  .why .benefit h3 { font-size: 24px; }
}
@container page (min-width: 1101px) and (max-width: 1260px) {
  .why .benefit-brand img { width: 48%; bottom: 12px; }
}

.partners .partners-top h2 { line-height: 1.2; }
.partners .partner-ribbon-controls { margin-top: 20px; }
.partner-ribbon-toggle {
  font: 14px/1.4 Arial, Helvetica, sans-serif;
  border-color: #ffffff70;
  transition: background .18s, border-color .18s;
}
.partner-ribbon-toggle:hover { background: #ffffff14; border-color: #fff; }
.partner-ribbon .partner-logo { border-radius: 14px; }

.audiences--icons { background: #fff; }
.audiences--icons .audience-list { margin-top: 36px; gap: 22px; }
.audiences--icons .audience-copy { padding: 0 2px; }
.audiences--icons .audience h3 {
  font-size: 15px;
  line-height: 1.4;
  margin-top: 18px;
  margin-bottom: 10px;
}
.audiences--icons .audience p { line-height: 1.5; color: #514b59; }

.formats.cooperation { background: var(--partners-paper); }
.cooperation-head > p { font-size: 18px; line-height: 1.55; color: #514b59; }
.cooperation-map { margin-top: 36px; }
.cooperation-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 12px;
  padding: 22px;
  border-radius: var(--partners-radius);
}
.cooperation-card h3 {
  grid-column: 1 / -1;
  margin: 0;
  font-size: clamp(18px, 1.6cqw, 22px);
  line-height: 1.25;
}
.cooperation-card p {
  grid-column: 1;
  max-width: none;
  font-size: 14px;
  line-height: 1.5;
}
.cooperation-card > img {
  position: static;
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  justify-self: end;
  width: 100%;
  height: 94px;
  object-fit: contain;
}
.cooperation-center { border-radius: var(--partners-radius); }
.cooperation-footer { margin-top: 26px; margin-left: 0; }

.contact.section { background: #f1ecf8; }
.contact .contact-head {
  max-width: 1060px;
  margin-inline: auto;
}
.contact-head h2 {
  max-width: 1020px;
  font-size: clamp(28px, 3.25cqw, 46px);
  line-height: 1.18;
}
.contact-head p {
  max-width: 800px;
  margin-top: 20px;
  font: 18px/1.55 Arial, Helvetica, sans-serif;
  color: #51475f;
}
.contact .form {
  max-width: 1060px;
  margin: 32px auto 0;
  padding: 36px;
  border: 1px solid #dfd4ec;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 36px #35204f07;
}
.form .form-grid { gap: 24px; }
.form label { gap: 10px; margin-bottom: 24px; }
.form .field-label, .form .legend-title { font-size: 12px; line-height: 1.5; }
.form input, .form select, .form textarea {
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid #d5ccdf;
  border-radius: 8px;
  background: #fcfbfd;
  font: 16px/1.5 Arial, Helvetica, sans-serif;
}
.form input::placeholder, .form textarea::placeholder { color: #77707e; }
.form input:focus, .form select:focus, .form textarea:focus {
  background: #fff;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px #6d2bd51a;
}
.form input[aria-invalid="true"], .form select[aria-invalid="true"],
.form textarea[aria-invalid="true"] { border-color: #ad302c; }
.form textarea { min-height: 112px; }
.form fieldset { padding-top: 22px; border-color: var(--partners-rule); }
.form legend small {
  font: 15px/1.5 Arial, Helvetica, sans-serif;
  color: #70657c;
}
.form .consent-field {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  margin: 0 0 16px;
  min-height: 48px;
}
.form .consent-field input {
  width: 24px;
  height: 24px;
  min-height: 24px;
  min-width: 24px;
  padding: 0;
  margin: 0;
}
.form .consent-text { font: 15px/1.6 Arial, Helvetica, sans-serif; color: #51475f; }
.form .submit {
  min-width: 250px;
  min-height: 56px;
  background: var(--purple);
  color: #fff;
}
.form .submit:hover { background: #5720b1; }
.form .form-error { font: 16px/1.5 Arial, Helvetica, sans-serif; }
.form .form-error:not(:empty) {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: #fff1f0;
  border-radius: 8px;
}
.contact .success {
  max-width: 1060px;
  margin: 32px auto 0;
  border-radius: 20px;
}
.success p { font: 18px/1.5 Arial, Helvetica, sans-serif; }

@container (max-width: 640px) {
  .form .form-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .form fieldset { border-top: 0; padding-top: 20px; }
  .form legend small { display: block; margin: 8px 0 0; }
  .form .submit { width: 100%; min-width: 0; }
}

@container page (max-width: 1100px) {
  .why.section, .audiences.section, .partners.section,
  .formats.cooperation, .contact.section { padding-block: 56px; }
  .why .benefits { gap: 18px; }
  .audiences--icons .audience-list { gap: 28px 20px; }
  .audiences--icons .audience h3 { font-size: 16px; }
  .cooperation-center {
    width: min(100%, 480px);
    min-height: 0;
    padding: 92px 24px 36px;
  }
  .cooperation-brand { font-size: 48px; }
  .cooperation-business { font-size: 25px; }
  .cooperation-center .cooperation-message { margin-top: 24px; }
  .cooperation-card { grid-template-columns: minmax(0, 1fr) 80px; }
  .cooperation-card h3 { font-size: 21px; }
  .cooperation-card p { font-size: 15px; }
  .cooperation-side .cooperation-card { min-height: 220px; }
  .contact .form { padding: 28px; }
}

@container page (max-width: 899px) {
  .hero.hero--collage { padding-top: 44px; padding-bottom: 0; }
  .hero .hero-copy { padding-right: 0; }
  .hero .hero-lead { max-width: 660px; }
}

@container page (max-width: 650px) {
  .why .benefit, .why .benefit:nth-child(n+4) { min-height: 0; }
  /* The duck keeps its raised position without an empty lower tail. */
  .why .benefit-brand { grid-template-rows: auto 280px; }
  .why .benefit-brand .benefit-art { min-height: 280px; }
  .why .benefit-brand img { bottom: 55px; }
}

@container page (max-width: 600px) {
  .why.section, .audiences.section, .partners.section,
  .formats.cooperation, .contact.section { padding-block: 44px; }
  .hero .hero-lead { font-size: 17px; line-height: 1.5; }
  .hero .actions { margin-top: 26px; }
  .hero .actions .button { width: 100%; max-width: none; justify-content: center; }
  .why .benefits-lead { font-size: 18px; }
  .why .benefits, .audiences--icons .audience-list { margin-top: 26px; }
  .audiences--icons .audience-list { gap: 26px; }
  .audiences--icons .audience h3 { font-size: 18px; margin-top: 14px; }
  .cooperation-head > p { font-size: 17px; }
  .cooperation-map { margin-top: 28px; }
  .cooperation-center { padding: 84px 22px 32px; }
  .cooperation-brand { font-size: clamp(34px, 11cqw, 48px); }
  .cooperation-business { font-size: clamp(18px, 5.5cqw, 24px); }
  .cooperation-center .cooperation-message { font-size: 11px; }
  .cooperation-card { padding: 22px; gap: 14px; grid-template-columns: minmax(0, 1fr) 72px; }
  .cooperation-side .cooperation-card { min-height: 0; }
  .cooperation-card p { font-size: 16px; }
  .cooperation-card > img { height: 90px; }
  .contact-head h2 { font-size: clamp(22px, 5.95cqw, 34px); line-height: 1.25; }
  .contact-head p { font-size: 17px; margin-top: 16px; }
  .contact .form { padding: 22px 18px; margin-top: 26px; border-radius: 16px; }
  .form .field-label, .form .legend-title { font-size: 12px; }
  .form .consent-text { font-size: 15px; }
  .contact .success { padding: 32px 22px; border-radius: 16px; }
}

@container page (max-width: 360px) {
  .contact-head h2 { font-size: clamp(18px, 5.7cqw, 21px); }
  .cooperation-card { padding: 20px; grid-template-columns: minmax(0, 1fr) 58px; gap: 10px; }
  .cooperation-card h3 { font-size: 19px; }
  .cooperation-card > img { height: 80px; }
  .audiences--icons .audience h3 { font-size: 16px; }
}
