/* =========================================================
   Screen 07 — «Финальная конверсия» (dark studio, real form)
   ========================================================= */

.s07 {
  --form-w: clamp(420px, 41vw, 590px);
  padding: clamp(56px, 5.6vw, 80px) 0 clamp(48px, 5.6vw, 80px);
  background: #0a0b0e;
  color: #fff;
}
.s07__scene {
  position: absolute;
  z-index: 0;
  inset: 0;
  margin: 0;
  overflow: hidden;
}
.s07__scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.s07__scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 58% 58% at 78% 45%, rgba(169, 13, 29, .20) 0%, rgba(77, 7, 16, .10) 52%, rgba(9, 10, 13, 0) 100%),
    radial-gradient(ellipse 82% 82% at 55% 18%, rgba(84, 75, 67, .10) 0%, rgba(11, 12, 15, 0) 100%),
    linear-gradient(180deg, rgba(9, 10, 13, 0) 54%, rgba(9, 10, 13, .78) 100%),
    linear-gradient(90deg, rgba(9, 10, 13, .74) 0%, rgba(9, 10, 13, .50) 43%, rgba(9, 10, 13, .36) 64%, rgba(9, 10, 13, .58) 100%);
  pointer-events: none;
}

.s07__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--form-w);
  column-gap: clamp(40px, 5.2vw, 75px);
  align-items: stretch;
}
.s07__inner::before {
  content: "";
  position: absolute;
  left: calc(100% - var(--form-w) - clamp(40px, 5.2vw, 75px) / 2);
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: rgba(255, 255, 255, .12);
}

/* — copy — */
.s07__copy {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  max-width: 600px;
}
.s07__title {
  margin: clamp(22px, 2.8vw, 40px) 0 clamp(22px, 3vw, 44px);
  max-width: 10em;
  font-size: clamp(32px, 4.1vw, 59px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.s07__lead { max-width: 560px; font-size: clamp(15.5px, .6vw + 12px, 20.5px); color: rgba(255, 255, 255, .70); }
.s07__own { margin-top: clamp(36px, 6vw, 92px); }
.s07__own strong { display: block; font-size: clamp(18px, .6vw + 14px, 22px); font-weight: 700; line-height: 1.3; }
.s07__own span { display: block; margin-top: 8px; font-size: clamp(15px, .4vw + 12px, 17px); line-height: 1.45; color: rgba(255, 255, 255, .58); text-wrap: pretty; }
.s07__tags {
  margin: auto 0 0;
  padding-top: 40px;
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .52);
}

/* — form panel — */
.s07__panel-wrap { position: relative; container: panel / inline-size; }
.s07__panel-wrap::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -14px;
  top: 18px;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: rgba(227, 27, 43, .16);
  transform: rotate(-1.2deg);
  transform-origin: 50% 50%;
}
.lead-form {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  height: 100%;
  padding: clamp(24px, 7.5cqw, 44px) clamp(20px, 6.8cqw, 40px) clamp(20px, 5.4cqw, 32px);
  border-left: clamp(4px, 1cqw, 6px) solid var(--red);
  border-radius: 8px;
  background: linear-gradient(135deg, #fbf9f4 0%, #f2eee7 65%, #e7e2da 100%);
  color: var(--ink-2);
  box-shadow: -8px 12px 48px rgba(56, 3, 6, .48), 0 40px 80px -30px rgba(0, 0, 0, .6);
}
.screen--dark .lead-form__rubric { color: rgba(23, 23, 25, .56); font-size: clamp(10px, 2.2cqw, 13px); }
.lead-form__rubric::before { width: clamp(27px, 5.8cqw, 34px); }
.lead-form__title {
  margin: clamp(22px, 7cqw, 44px) 0 clamp(8px, 2.5cqw, 14px);
  max-width: 9.5em;
  font-size: clamp(22px, 5.9cqw, 35px);
  line-height: 1.14;
  letter-spacing: -.03em;
}
.lead-form__sub { margin: 0; font-size: clamp(13.5px, 3cqw, 17.5px); color: rgba(23, 23, 25, .60); }

.field { display: block; margin-top: clamp(22px, 5.6cqw, 34px); }
.field__label {
  display: block;
  margin-bottom: clamp(10px, 2.4cqw, 14px);
  font-size: clamp(10px, 2cqw, 12px);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
}
.field__box { position: relative; }
.field__area {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: clamp(124px, 30cqw, 176px);
  padding: clamp(14px, 3.4cqw, 22px) clamp(16px, 3.9cqw, 23px);
  border: 1px solid rgba(23, 23, 25, .13);
  border-radius: 5px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: clamp(16px, 3.7cqw, 22px);
  line-height: 1.4;
  resize: vertical;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field__area::placeholder { color: rgba(23, 23, 25, .45); }
.field__plus {
  position: absolute;
  right: 12px;
  bottom: 14px;
  width: 12px;
  height: 12px;
  pointer-events: none;
  color: var(--red);
}
.field__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 6px 0 10px;
  border: 0;
  border-bottom: 1px solid rgba(23, 23, 25, .22);
  border-radius: 0;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: clamp(16px, 3.4cqw, 20px);
  line-height: 1.3;
  transition: border-color .15s ease;
}
.field__input::placeholder { color: rgba(23, 23, 25, .42); }
.field__area:focus-visible, .field__input:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-color: rgba(23, 23, 25, .4);
}

.lead-form__submit { margin-top: clamp(24px, 6.8cqw, 40px); }
.lead-form .cta { max-width: none; height: clamp(66px, 13cqw, 78px); }
.lead-form .cta[disabled],
.lead-form .cta[aria-disabled="true"] {
  opacity: .62;
  cursor: not-allowed;
  filter: none;
  transform: none;
  box-shadow: 0 8px 0 rgba(67, 0, 9, .14);
}
.lead-form .cta { border: 0; width: 100%; cursor: pointer; font-family: inherit; }

.lead-form__note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: clamp(18px, 4.4cqw, 28px) 0 0;
  font-size: clamp(12.5px, 2.5cqw, 14.5px);
  color: rgba(23, 23, 25, .62);
}
.lead-form__note::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.lead-form__status { margin: 14px 0 0; font-size: clamp(13.5px, 2.8cqw, 15.5px); line-height: 1.4; }
.lead-form__status[hidden] { display: none; }
.lead-form__status--error { color: #b3101f; }
.lead-form__status--ok { color: var(--ink-2); font-weight: 700; }
.lead-form__retry { margin-left: 8px; color: var(--red); font: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.lead-form.is-sent .field, .lead-form.is-sent .lead-form__submit { display: none; }

/* =========================================================
   Stacked states
   ========================================================= */
@media (max-width: 899px) {
  .s07 { padding: clamp(36px, 6vw, 48px) 0 clamp(40px, 6vw, 56px); }
  .s07__inner { grid-template-columns: minmax(0, 1fr); row-gap: 34px; }
  .s07__inner::before { display: none; }
  .s07__copy { min-height: 0; max-width: 640px; }
  .s07__title { max-width: 12em; font-size: clamp(32px, 6vw, 46px); }
  .s07__own { margin-top: 28px; }
  .s07__tags { display: none; }
  .s07__panel-wrap { max-width: 560px; }
  .s07__panel-wrap::before { left: -5px; top: 8px; transform: rotate(-.8deg); }
  .lead-form { height: auto; }
}
@media (max-width: 599px) {
  .s07 { padding: 28px 0 44px; }
  .s07__title { margin: 16px 0 18px; font-size: 32px; line-height: 1.2; letter-spacing: -.03em; max-width: none; }
  .s07__lead { font-size: 15.5px; }
  .s07__own { display: none; }
  .s07__inner { row-gap: 28px; }
  .s07__panel-wrap { max-width: none; }
  .lead-form { border-radius: 7px; }
  .lead-form__title { max-width: none; }
}
