/**
 * @file: corporate.css
 * @description: Стили страницы «Корпоративным клиентам»
 * @dependencies: pageTemplate.tpl (resource id 517), form-b2b.tpl
 * @created: 2026-08-01
 */
.b2b {
  padding: 48px 0 96px;
  color: #202e35;
  font-family: Circe, Arial, sans-serif;
  background: #fff;
}

.b2b-hero {
  max-width: 760px;
}

.b2b-eyebrow {
  margin-bottom: 8px;
  color: #5aa14d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.b2b-title {
  margin: 0;
  color: #202e35;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
}

.b2b-intro {
  margin: 14px 0 0;
  max-width: 640px;
  color: #5c647a;
  font-size: 18px;
  line-height: 1.5;
}

.b2b-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.b2b-button {
  display: inline-flex;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid #5aa14d;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.b2b-button-primary {
  background: #5aa14d;
  color: #fff;
}

.b2b-button-primary:hover {
  background: #4c9140;
  color: #fff;
}

.b2b-button-secondary {
  background: #fff;
  color: #4c9140;
}

.b2b-button-secondary:hover {
  background: #5aa14d;
  color: #fff;
}

.b2b-section {
  margin-top: 72px;
}

.b2b-section-heading {
  margin-bottom: 24px;
}

.b2b-section-heading h2 {
  margin: 0;
  color: #202e35;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

.b2b-section-heading p {
  max-width: 560px;
  margin: 10px 0 0;
  color: #5c647a;
  font-size: 16px;
  line-height: 1.5;
}

.b2b-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.b2b-service {
  display: flex;
  min-height: 100%;
  padding: 28px;
  border: 1px solid #e3e7ef;
  border-radius: 16px;
  background: #f8faf7;
  flex-direction: column;
  color: inherit;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.b2b-service:hover {
  border-color: #b9d8b3;
  transform: translateY(-2px);
  color: inherit;
}

.b2b-service-label {
  margin-bottom: 8px;
  color: #5aa14d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.b2b-service h3 {
  margin: 0;
  color: #202e35;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.b2b-service p {
  margin: 10px 0 0;
  color: #5c647a;
  font-size: 15px;
  line-height: 1.45;
  flex-grow: 1;
}

.b2b-service-more {
  margin-top: 18px;
  color: #4c9140;
  font-size: 14px;
  font-weight: 700;
}

.b2b-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: b2b-step;
}

.b2b-step {
  position: relative;
  min-width: 0;
  padding: 24px 20px;
  border: 1px solid #e3e7ef;
  border-radius: 14px;
  background: #fff;
}

.b2b-step::before {
  display: block;
  margin-bottom: 14px;
  color: #5aa14d;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  counter-increment: b2b-step;
  content: "0" counter(b2b-step);
}

.b2b-step h3 {
  margin: 0;
  color: #202e35;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.b2b-step p {
  margin: 8px 0 0;
  color: #5c647a;
  font-size: 15px;
  line-height: 1.45;
}

.b2b-terms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  padding: 28px 32px;
  border: 1px solid #e3e7ef;
  border-radius: 16px;
  background: #f7f9fb;
}

.b2b-terms li {
  position: relative;
  padding-left: 18px;
  color: #202e35;
  font-size: 16px;
  line-height: 1.45;
  list-style: none;
}

.b2b-terms li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5aa14d;
  content: "";
}

.b2b-terms strong {
  font-weight: 700;
}

.b2b-cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.b2b-case {
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e3e7ef;
  border-radius: 14px;
  background: #fff;
  flex-direction: column;
  color: inherit;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.b2b-case:hover {
  border-color: #b9d8b3;
  transform: translateY(-2px);
  color: inherit;
}

.b2b-case-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #edf1eb;
}

.b2b-case-body {
  display: flex;
  padding: 18px 18px 20px;
  flex-direction: column;
  flex-grow: 1;
}

.b2b-case h3 {
  margin: 0;
  color: #202e35;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.b2b-case p {
  margin: 8px 0 0;
  color: #5c647a;
  font-size: 14px;
  line-height: 1.45;
  flex-grow: 1;
}

.b2b-case-more {
  margin-top: 14px;
  color: #4c9140;
  font-size: 14px;
  font-weight: 700;
}

.b2b-feedback {
  max-width: 920px;
  margin: 72px auto 0;
}

.b2b-designers .b2b-hero {
  max-width: 820px;
}

.b2b-designers-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.b2b-designers-format .b2b-service {
  background: #fff;
}

.b2b-form {
  margin: 0;
  padding: 36px;
  border: 1px solid #e3e7ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(32, 46, 53, 0.06);
}

.b2b-form-title {
  color: #202e35;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
}

.b2b-form-lead {
  margin: 10px 0 0;
  color: #5c647a;
  font-size: 16px;
  line-height: 1.45;
}

.b2b-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.b2b-form-item {
  min-width: 0;
}

.b2b-form > .b2b-form-item {
  margin-top: 22px;
}

.b2b-form-label {
  display: block;
  color: #5c647a;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.b2b-form-label span {
  color: #d84545;
}

.b2b-form-input,
.b2b-form-textarea {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #fff;
  color: #202e35;
  font-family: Circe, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
}

.b2b-form-input {
  min-height: 52px;
}

.b2b-form-textarea {
  min-height: 130px;
  resize: vertical;
}

.b2b-form-input:focus,
.b2b-form-textarea:focus {
  border-color: #5aa14d;
  outline: 3px solid rgba(90, 161, 77, 0.14);
}

.b2b-math {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: #202e35;
  font-size: 16px;
}

.b2b-math .b2b-form-input {
  width: 88px;
  margin-top: 0;
}

.b2b-form-btn {
  min-height: 50px;
  margin-top: 24px;
  padding: 13px 24px;
  border: 0;
  border-radius: 8px;
}

.b2b-form .error {
  display: block;
  margin-top: 8px;
  color: #d84545;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .b2b-steps,
  .b2b-designers-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .b2b-cases {
    grid-template-columns: 1fr;
  }

  .b2b-case {
    flex-direction: row;
  }

  .b2b-case-image {
    width: 42%;
    aspect-ratio: auto;
    min-height: 160px;
    object-fit: cover;
  }

  .b2b-case-body {
    width: 58%;
  }
}

@media (max-width: 720px) {
  .b2b {
    padding: 28px 0 120px;
  }

  .b2b-title {
    font-size: 34px;
  }

  .b2b-intro {
    font-size: 16px;
  }

  .b2b-hero-actions,
  .b2b-button {
    width: 100%;
  }

  .b2b-section {
    margin-top: 52px;
  }

  .b2b-section-heading h2 {
    font-size: 28px;
  }

  .b2b-services,
  .b2b-terms,
  .b2b-steps,
  .b2b-designers-steps,
  .b2b-form-grid {
    grid-template-columns: 1fr;
  }

  .b2b-service,
  .b2b-form {
    padding: 24px 20px;
    border-radius: 12px;
  }

  .b2b-terms {
    padding: 22px 20px;
    gap: 12px;
  }

  .b2b-case {
    flex-direction: column;
  }

  .b2b-case-image,
  .b2b-case-body {
    width: 100%;
  }

  .b2b-case-image {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .b2b-form-title {
    font-size: 24px;
  }

  .b2b-form-btn {
    width: 100%;
  }

  .b2b-feedback {
    margin-top: 52px;
  }
}
