.page-template-template-cooperation {
  --coop-ink: #20242d;
  --coop-muted: #667085;
  --coop-line: #e5e7eb;
  --coop-soft: #f3f5f7;
  --coop-panel: #eceff3;
  --coop-button: #252b3a;
  --coop-max: 1240px;
  background: #fff;
  color: var(--coop-ink);
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
}

.page-template-template-cooperation #primary.content-area,
.page-template-template-cooperation-php #primary.content-area {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
}

.cooperation-page {
  width: min(100% - 48px, var(--coop-max));
  margin: 0 auto;
  padding: 30px 0 78px;
}

.cooperation-page section {
  margin: 0 0 clamp(58px, 7vw, 92px);
}

.cooperation-hero {
  overflow: hidden;
  border-radius: 8px;
  background: var(--coop-panel);
  padding: clamp(24px, 3.5vw, 44px);
}

.cooperation-hero__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.cooperation-hero__title {
  max-width: 980px;
  margin: 0 auto clamp(24px, 3vw, 38px);
  text-align: center;
  color: var(--coop-ink);
  font-size: clamp(30px, 3.4vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}

.cooperation-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.cooperation-hero__grid--text-only {
  grid-template-columns: 1fr;
}

.cooperation-hero__grid--text-only .cooperation-hero__content {
  max-width: 760px;
  margin: 0 auto;
  align-items: center;
  text-align: center;
}

.cooperation-hero__media {
  position: relative;
  min-height: clamp(340px, 36vw, 500px);
}

.cooperation-hero__image {
  overflow: hidden;
  border-radius: 6px;
  background: #dfe3e8;
}

.cooperation-hero__image img,
.cooperation-cert__image img,
.cooperation-form__image img,
.cooperation-projects__pic {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cooperation-hero__image--main {
  position: absolute;
  inset: 0 14% 13% 0;
}

.cooperation-hero__image--secondary {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  aspect-ratio: 4 / 3;
  border: 10px solid var(--coop-panel);
}

.cooperation-hero__image--main:only-child {
  inset: 0;
}

.cooperation-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  max-width: 430px;
}

.cooperation-hero__text {
  color: #374151;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.65;
}

.cooperation-hero__text p {
  margin: 0 0 16px;
}

.cooperation-hero__text p:last-child {
  margin-bottom: 0;
}

.cooperation-hero__btn,
.bono-cooperation-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--coop-button);
  border-radius: 0;
  background: var(--coop-button);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.cooperation-hero__btn {
  padding: 11px 26px;
  font-size: 14px;
  font-weight: 600;
}

.cooperation-hero__btn:hover,
.bono-cooperation-form__submit:hover {
  border-color: #111827;
  background: #111827;
  color: #fff;
  transform: translateY(-1px);
}

.cooperation-advantages__title,
.cooperation-cert__title,
.cooperation-projects__title,
.cooperation-form__title {
  margin: 0;
  color: var(--coop-ink);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

.cooperation-advantages__title {
  max-width: 1050px;
  margin-bottom: clamp(28px, 3.5vw, 44px);
  font-size: clamp(27px, 3vw, 44px);
}

.cooperation-advantages__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 34px;
}

.cooperation-advantages__item,
.cooperation-cert__badge,
.cooperation-cert__feature {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: start;
}

.cooperation-advantages__icon,
.cooperation-cert__badge-icon,
.cooperation-cert__feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #2f3748;
}

.cooperation-advantages__icon img,
.cooperation-cert__badge-icon img,
.cooperation-cert__feature-icon img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.cooperation-advantages__icon svg,
.cooperation-cert__badge-icon svg,
.cooperation-cert__feature-icon svg {
  width: 32px;
  height: 32px;
}

.cooperation-advantages__item-title,
.cooperation-cert__badge-title {
  margin: 0 0 7px;
  color: var(--coop-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.cooperation-advantages__item-text,
.cooperation-cert__badge-text,
.cooperation-cert__feature-text,
.cooperation-cert__text,
.cooperation-form__text {
  margin: 0;
  color: var(--coop-muted);
  font-size: 15px;
  line-height: 1.55;
}

.cooperation-cert {
  border-radius: 8px;
  background: var(--coop-panel);
  padding: clamp(26px, 4vw, 48px);
}

.cooperation-cert__main {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(280px, 1fr) minmax(280px, .9fr);
  gap: clamp(24px, 3.4vw, 48px);
  align-items: center;
}

.cooperation-cert__image {
  overflow: hidden;
  aspect-ratio: 1 / 1.05;
  border-radius: 6px;
  background: #fff;
}

.cooperation-cert__title {
  margin-bottom: 14px;
  font-size: clamp(30px, 3.2vw, 48px);
}

.cooperation-cert__badges {
  display: grid;
  gap: 22px;
}

.cooperation-cert__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 34px;
  margin-top: clamp(28px, 3.5vw, 42px);
  padding-top: clamp(24px, 3vw, 34px);
  border-top: 1px solid rgba(32, 36, 45, .12);
}

.cooperation-projects__title {
  margin-bottom: clamp(24px, 3vw, 34px);
  text-align: center;
  font-size: clamp(30px, 3vw, 48px);
}

.cooperation-projects__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.cooperation-projects__card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 360px;
  border-radius: 6px;
  background: #d7dbe0;
  color: #fff;
  text-decoration: none;
}

.cooperation-projects__image {
  position: absolute;
  inset: 0;
}

.cooperation-projects__image:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .08) 18%, rgba(0, 0, 0, .7) 100%);
}

.cooperation-projects__pic {
  transition: transform .55s ease;
}

.cooperation-projects__card:hover .cooperation-projects__pic {
  transform: scale(1.045);
}

.cooperation-projects__content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  display: grid;
  gap: 8px;
}

.cooperation-projects__author {
  font-size: 14px;
  line-height: 1.2;
  opacity: .88;
}

.cooperation-projects__name {
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 700;
  line-height: 1.12;
}

.cooperation-projects__footer {
  margin-top: 28px;
  text-align: center;
}

.cooperation-projects__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 28px;
  border: 1px solid #c8cdd5;
  color: var(--coop-ink);
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease;
}

.cooperation-projects__btn:hover {
  border-color: var(--coop-ink);
  background: var(--coop-soft);
  color: var(--coop-ink);
}

.cooperation-form {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  gap: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--coop-soft);
}

.cooperation-form__content {
  padding: clamp(28px, 4vw, 54px);
}

.cooperation-form__content:only-child {
  grid-column: 1 / -1;
}

.cooperation-form__title {
  max-width: 560px;
  margin-bottom: 16px;
  font-size: clamp(30px, 3.1vw, 48px);
}

.cooperation-form__text {
  max-width: 560px;
  margin-bottom: 26px;
}

.cooperation-form__image {
  min-height: 100%;
  background: #dde1e6;
}

.cooperation-form__shortcode .wpcf7,
.bono-cooperation-form-wrap {
  max-width: 100%;
}

.bono-cooperation-form {
  display: grid;
  gap: 14px;
}

.bono-cooperation-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bono-cooperation-form__field {
  margin: 0;
}

.bono-cooperation-form__field input,
.bono-cooperation-form__field textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid #d5dae2;
  border-radius: 0;
  background: #fff;
  color: var(--coop-ink);
  font-size: 15px;
  line-height: 1.4;
  padding: 0 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.bono-cooperation-form__field textarea {
  min-height: 132px;
  padding: 15px 16px;
  resize: vertical;
}

.bono-cooperation-form__field input:focus,
.bono-cooperation-form__field textarea:focus {
  border-color: #8b95a7;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(37, 43, 58, .08);
}

.bono-cooperation-form__field input::placeholder,
.bono-cooperation-form__field textarea::placeholder {
  color: #9aa3b2;
}

.bono-cooperation-form__consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin: 2px 0 4px;
  color: #596273;
  font-size: 13px;
  line-height: 1.45;
}

.bono-cooperation-form__consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--coop-button);
}

.bono-cooperation-form__consent a {
  color: #344054;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bono-cooperation-form__submit {
  width: fit-content;
  min-height: 50px;
  padding: 0 34px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.bono-cooperation-form__notice {
  margin-bottom: 14px;
  padding: 11px 14px;
  border-radius: 2px;
  font-size: 14px;
}

.bono-cooperation-form__notice.is-success {
  border: 1px solid #c8e5cd;
  background: #edf8ef;
  color: #1f5e2d;
}

.bono-cooperation-form__notice.is-error {
  border: 1px solid #f2c6c6;
  background: #fff0f0;
  color: #7b2222;
}

body.page-template-template-cooperation .craft-footer {
  margin-top: 0;
  background: #f5f5f5;
  color: var(--coop-ink);
}

body.page-template-template-cooperation .craft-footer__inner {
  display: grid;
  grid-template-columns: minmax(180px, 1.05fr) repeat(3, minmax(145px, .78fr)) minmax(190px, .9fr);
  gap: 30px;
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding: 56px 0 36px;
}

body.page-template-template-cooperation .craft-footer__brand img {
  max-width: 122px;
  height: auto;
}

body.page-template-template-cooperation .craft-footer__brand-name {
  color: var(--coop-ink);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
}

body.page-template-template-cooperation .craft-footer h3 {
  margin: 0 0 14px;
  color: var(--coop-ink);
  font-size: 14px;
  font-weight: 700;
}

body.page-template-template-cooperation .craft-footer a,
body.page-template-template-cooperation .craft-footer p {
  color: #555;
  font-size: 13px;
  line-height: 1.8;
  text-decoration: none;
}

body.page-template-template-cooperation .craft-footer a:hover {
  color: var(--coop-ink);
}

body.page-template-template-cooperation .craft-footer__list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.page-template-template-cooperation .craft-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

body.page-template-template-cooperation .craft-footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border: 1px solid #d8d8d8;
  padding: 0 10px;
  line-height: 1;
}

body.page-template-template-cooperation .craft-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding: 0 0 34px;
  color: #777;
}

body.page-template-template-cooperation .craft-footer__bottom a,
body.page-template-template-cooperation .craft-footer__bottom span {
  font-size: 12px;
}

@media (max-width: 1024px) {
  .cooperation-page {
    width: min(100% - 36px, var(--coop-max));
  }

  .cooperation-hero__grid,
  .cooperation-cert__main,
  .cooperation-form {
    grid-template-columns: 1fr;
  }

  .cooperation-hero__content {
    max-width: none;
  }

  .cooperation-cert__features,
  .cooperation-projects__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cooperation-form__image {
    min-height: 420px;
  }

  body.page-template-template-cooperation .craft-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .cooperation-page {
    width: min(100% - 28px, 560px);
    padding-top: 20px;
    padding-bottom: 52px;
  }

  .cooperation-page section {
    margin-bottom: 52px;
  }

  .cooperation-hero {
    padding: 20px;
  }

  .cooperation-hero__title {
    text-align: left;
    font-size: clamp(28px, 8vw, 38px);
  }

  .cooperation-hero__media {
    min-height: 360px;
  }

  .cooperation-hero__image--main {
    inset: 0 0 22% 0;
  }

  .cooperation-hero__image--secondary {
    width: 58%;
  }

  .cooperation-advantages__list,
  .cooperation-cert__features,
  .cooperation-projects__grid,
  .bono-cooperation-form__row {
    grid-template-columns: 1fr;
  }

  .cooperation-projects__card {
    min-height: 340px;
  }

  .cooperation-form__content {
    padding: 24px;
  }

  .cooperation-form__image {
    min-height: 320px;
  }

  .cooperation-hero__btn,
  .cooperation-projects__btn,
  .bono-cooperation-form__submit {
    width: 100%;
  }

  body.page-template-template-cooperation .craft-footer__inner,
  body.page-template-template-cooperation .craft-footer__bottom {
    width: min(100% - 32px, 560px);
  }

  body.page-template-template-cooperation .craft-footer__inner {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }
}

@media (max-width: 430px) {
  .cooperation-page {
    width: min(100% - 24px, 430px);
  }

  .cooperation-hero,
  .cooperation-cert,
  .cooperation-form__content {
    padding: 18px;
  }

  .cooperation-hero__media {
    min-height: 300px;
  }

  .cooperation-advantages__item,
  .cooperation-cert__badge,
  .cooperation-cert__feature {
    grid-template-columns: 38px 1fr;
    gap: 12px;
  }

  .cooperation-advantages__icon,
  .cooperation-cert__badge-icon,
  .cooperation-cert__feature-icon {
    width: 38px;
    height: 38px;
  }
}

/* B2B pages final pass: denser premium rhythm, aligned with supplied references. */
.cooperation-page {
  padding-top: 8px;
  padding-bottom: 50px;
}

.cooperation-page section {
  margin: 34px 0;
}

.cooperation-hero {
  padding: 30px 34px;
  border-radius: 4px;
  background: #dfe4e7;
}

.cooperation-hero__title,
.cooperation-advantages__title,
.cooperation-page .home-projects__title,
.cooperation-form__title {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.cooperation-hero__title {
  margin-bottom: 24px;
}

.cooperation-hero__grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 18px 28px;
  align-items: center;
}

.cooperation-hero__media {
  grid-template-columns: 1.1fr .82fr;
  gap: 12px;
}

.cooperation-hero__image--main,
.cooperation-hero__image--secondary {
  min-height: 0;
}

.cooperation-hero__image img {
  aspect-ratio: 4 / 3;
}

.cooperation-hero__content {
  justify-content: center;
  padding-top: 0;
}

.cooperation-hero__text {
  font-size: 16px;
}

.cooperation-hero__btn {
  min-height: 48px;
  padding: 0 28px;
  background: #2e3448;
}

.cooperation-advantages__title {
  max-width: 1180px;
  font-size: clamp(25px, 2.2vw, 35px);
}

.cooperation-advantages__list {
  gap: 24px 42px;
}

.cooperation-advantages__item {
  grid-template-columns: 54px minmax(0, 1fr);
}

.cooperation-advantages__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f4f5f4;
}

.cooperation-cert {
  padding: 26px 34px;
  background: #f0f1ef;
}

.cooperation-cert__features {
  padding: 22px 0 0;
  background: transparent;
}

.cooperation-page .home-projects__title {
  margin-bottom: 20px;
  font-size: clamp(25px, 2.4vw, 36px);
}

.cooperation-page .home-projects__grid {
  gap: 20px;
}

.cooperation-page .home-projects__image {
  aspect-ratio: 16 / 10;
}

.cooperation-form {
  background: #f4f5f4;
}

.cooperation-form__content {
  padding: 34px 32px;
}

.cooperation-form__image img {
  aspect-ratio: 1 / 1;
}

@media (max-width: 1024px) {
  .cooperation-hero__media {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .cooperation-page section {
    margin: 26px 0;
  }

  .cooperation-hero {
    padding: 18px;
  }

  .cooperation-hero__grid,
  .cooperation-hero__media {
    grid-template-columns: 1fr;
  }

  .cooperation-advantages__item {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .cooperation-cert {
    padding: 18px;
  }

  .cooperation-form__content {
    padding: 22px 18px;
  }
}
