/* ========== Header ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: var(--space-4);
}

.header__backdrop {
  display: none;
}

.header__wrap {
  position: relative;
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: var(--header-h);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-full);
  width: 100%;
}

.header__left {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-width: 0;
}

.header__menu {
  display: flex;
  align-items: center;
}

.header__menu-foot {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px 18px;
}

.nav a {
  font-size: 15px;
  white-space: nowrap;
  opacity: 0.92;
  transition: opacity 0.15s, color 0.15s, background 0.15s;
}

.nav a:hover {
  opacity: 1;
  color: var(--color-bg-brand);
}

.header__right {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-shrink: 0;
}

.header__phone {
  white-space: nowrap;
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #9a9a9a;
  transition: color 0.15s ease;
}

.socials a:hover {
  color: var(--social-hover, #fff);
}

.socials a[aria-label="Telegram"] {
  --social-hover: #2aabee;
}

.socials a[aria-label="MAX"] {
  --social-hover: #4f46e5;
}

.socials svg {
  width: 24px;
  height: 24px;
  display: block;
}

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
}

.burger:hover {
  background: rgba(255, 255, 255, 0.1);
}

.burger span {
  display: block;
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.burger span:nth-child(1) {
  top: 15px;
}

.burger span:nth-child(2) {
  top: 21px;
}

.burger span:nth-child(3) {
  top: 27px;
}

.header.is-open .burger span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.header.is-open .burger span:nth-child(2) {
  opacity: 0;
}

.header.is-open .burger span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

.header.is-open .burger {
  background: rgba(255, 157, 0, 0.18);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: var(--space-5) 0 var(--space-7);
}

.hero__panel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 161px;
  min-height: 485px;
  padding: var(--space-8);
  border-radius: var(--radius-brand-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
  width: 560px;
  max-width: 100%;
  flex-shrink: 0;
}

.hero__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  width: 100%;
}

.hero__text-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 100%;
}

.hero__title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  line-height: var(--lh-tight);
}

.hero__title-accent {
  color: var(--color-bg-brand);
}

.hero__text {
  font-size: 16px;
  line-height: var(--lh-tight);
  color: var(--color-text-primary);
}

.hero__offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__offers li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.hero__offers-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-bg-brand);
  line-height: 1.2;
}

.hero__offers-label {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.3;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Layers: glow (3) → base (2) → photo (1 / front) */
.hero__glow {
  position: absolute;
  left: 316px;
  top: -161px;
  width: 1000px;
  height: 1001px;
  max-width: none;
  object-fit: fill;
  z-index: 1;
}

.hero__photo-base {
  position: absolute;
  left: 640px;
  top: -90px;
  width: 640px;
  height: 640px;
  max-width: none;
  object-fit: cover;
  z-index: 2;
}

.hero__photo {
  position: absolute;
  left: 680px;
  bottom: 0;
  top: auto;
  width: 500px;
  height: calc(100% - 12px);
  max-width: none;
  object-fit: cover;
  object-position: center bottom;
  z-index: 3;
}

/* Placeholder 3D visual — photo layers kept in assets for restore */
.hero__panel--placeholder {
  gap: 161px;
}

.hero__panel--placeholder .hero__media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 48%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero__panel--placeholder .hero__media picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.hero__panel--placeholder .hero__visual {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ========== Sections common ========== */
.section {
  position: relative;
  padding: var(--space-section) 0;
  overflow: visible;
  isolation: isolate;
}

/* Figma Decor/Glow: 466×466, left 854 / top -80 in 1280 frame (pad 64 → +790 from container) */
.section__glow {
  position: absolute;
  width: 466px;
  height: 466px;
  top: -80px;
  left: calc(
    50% - min(100% - (var(--page-pad) * 2), var(--container)) / 2 + 790px
  );
  z-index: 0;
  pointer-events: none;
  opacity: 0.12;
  background: radial-gradient(
    circle,
    #ff9d00 0%,
    rgba(255, 157, 0, 0.45) 32%,
    rgba(255, 157, 0, 0) 68%
  );
  /* Figma asset inset ~-53% */
  transform: scale(2.07);
  transform-origin: center center;
}

.section > .container {
  position: relative;
  z-index: 1;
}

.section__head {
  margin-bottom: 40px;
}

/* About */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.pain-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 136px;
}

.pain-card p {
  font-size: 15px;
  font-weight: 500;
  line-height: var(--lh-tight);
}

.pain-card--cta {
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: var(--radius-brand-sm);
  background: var(--color-bg-brand);
  color: var(--color-text-on-brand);
  text-align: center;
  transition: background 0.2s ease;
}

.pain-card--cta:hover {
  background: var(--color-bg-brand-hover);
}

.pain-card--cta__label {
  font-size: 18px;
  font-weight: 400;
  line-height: var(--lh-tight);
}

.roles {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.roles__title {
  font-size: 22px;
  font-weight: 500;
}

.roles__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Process */
.antithesis {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: 28px 32px;
  border-radius: var(--radius-brand-md);
  margin-bottom: 32px;
}

.antithesis__text {
  min-width: 0;
}

.antithesis__text p + p {
  margin-top: 8px;
}

.antithesis strong {
  color: var(--color-bg-brand);
  font-weight: 600;
}

.antithesis .btn {
  flex-shrink: 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.process-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 160px;
}

.process-card__num {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-bg-brand);
  line-height: 1;
}

.process-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.process-card p {
  font-size: 15px;
  font-weight: 500;
  line-height: var(--lh-tight);
}

/* Terms / Contacts shared glass panel — Figma brand-radius */
.terms-panel,
.contacts-panel {
  display: flex;
  flex-direction: column;
  padding: var(--space-8);
  border-radius: var(--radius-brand-lg);
  box-shadow: var(--shadow-soft);
}

.contacts-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.contacts-panel__glow {
  position: absolute;
  right: -600px;
  bottom: -600px;
  width: 1500px;
  height: 1500px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.14;
  background: radial-gradient(
    circle,
    rgb(255, 157, 0) 0%,
    rgba(255, 157, 0, 0.45) 32%,
    rgba(255, 157, 0, 0) 88%
  );
}

.contacts-panel > :not(.contacts-panel__glow) {
  position: relative;
  z-index: 1;
}

.section__head--terms,
.section__head--contacts {
  margin-bottom: 0;
}

.section__head--terms .section-lead,
.section__head--contacts .section-lead {
  margin-top: var(--space-4);
}

.terms-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: 40px;
  border-radius: var(--radius-brand-md);
  margin-top: 40px;
}

.terms-hero__text {
  min-width: 0;
}

.terms-hero__label {
  color: var(--color-text-primary);
  font-size: 16px;
  line-height: 1.2;
  margin: 0 0 12px;
}

.terms-hero__price {
  margin: 0;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  color: var(--color-bg-brand);
  line-height: 1;
}

.terms-hero__cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-4);
  flex-shrink: 0;
  width: max-content;
  max-width: 100%;
}

.terms-hero__cta .btn {
  width: 100%;
}

.terms-hero__caption {
  margin: 0;
  white-space: nowrap;
}

.terms-hero__caption-rest {
  color: var(--color-text-muted);
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.terms-card__label {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0 0 8px;
}

.terms-card__value {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

/* Cases */
.section-lead--accent {
  color: var(--color-bg-brand);
  font-weight: 500;
}

.section__head--cases .section-lead {
  margin-top: 12px;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.cases-grid--more {
  margin-top: 0;
}

.cases-more-title {
  margin: 40px 0 20px;
  font-size: 24px;
  font-weight: 600;
  line-height: var(--lh-tight);
}

.case-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  min-height: 0;
}

.case-card--featured {
  min-height: 280px;
}

.case-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.case-card__metric-wrap {
  min-width: 0;
}

.case-card__top .icon-badge {
  flex-shrink: 0;
  background: #121212;
}

.case-card__metric {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-bg-brand);
  line-height: 1.1;
}

.case-card__hint {
  font-size: 12px;
  line-height: 1.3;
  color: var(--color-text-muted);
  margin-top: 6px;
}

.case-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.case-card--featured .case-card__body {
  margin-top: 0;
}

.case-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.case-card__meta {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.case-card__result {
  margin: 0;
  margin-top: auto;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
}

.mid-cta {
  display: flex;
  justify-content: center;
  padding: 40px 0 0;
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: 40px;
}

.benefit-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 120px;
}

.benefit-card p {
  font-size: 16px;
  font-weight: 500;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
}

.faq-item {
  border-radius: var(--radius-brand-sm);
  padding: 0 20px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 500;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--color-bg-brand);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 18px;
  color: var(--color-text-muted);
  line-height: var(--lh-body);
  padding-right: 28px;
}

/* Contacts */
.contacts-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  margin-top: 40px;
  align-items: start;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: var(--radius-brand-md);
}

.form__bonus {
  margin: 0;
  padding-bottom: 4px;
  color: var(--color-text-primary);
}

.form__hint {
  margin: 0;
  text-align: center;
}

.field__optional {
  color: var(--color-text-muted);
  font-weight: 400;
  opacity: 0.8;
}

.contacts-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contacts-aside__title {
  font-size: 18px;
  font-weight: 600;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-list dt {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.contact-list dd {
  margin: 0;
  font-size: 16px;
}

.contact-list a:hover {
  color: var(--color-bg-brand);
}

/* Footer */
.footer {
  padding: var(--space-section) 0 28px;
  border-top: 1px solid var(--color-border-subtle);
  margin-top: var(--space-7);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: var(--space-7) var(--space-6);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--color-border-subtle);
}

.footer__brand-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 320px;
}

.footer__tagline {
  margin: 0;
  font-size: 14px;
  line-height: var(--lh-body);
  color: var(--color-text-muted);
}

.footer__offer {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-primary);
}

.footer__offer span {
  color: var(--color-bg-brand);
  font-weight: 600;
}

.footer__col-title {
  margin: 0 0 var(--space-4);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-text-primary);
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__nav a {
  font-size: 15px;
  color: var(--color-text-muted);
  transition: color 0.15s ease;
}

.footer__nav a:hover {
  color: var(--color-bg-brand);
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.footer__contacts a,
.footer__contacts span {
  font-size: 15px;
  color: var(--color-text-muted);
}

.footer__contacts a:hover {
  color: var(--color-bg-brand);
}

.footer__socials a:hover {
  color: var(--social-hover, #fff);
}

.footer__socials {
  margin-top: 8px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: var(--space-5);
}

.footer__copy {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__legal a {
  font-size: 13px;
  color: var(--color-text-muted);
}

.footer__legal a:hover {
  color: #fff;
}

@media (max-width: 1100px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand-block {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 800px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Cookie */
.cookie-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 60;
  pointer-events: none;
}

.cookie-wrap .container {
  pointer-events: none;
}

.cookie {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  border-radius: var(--radius-brand-md);
  pointer-events: auto;
}

.cookie.is-visible {
  display: flex;
}

.cookie p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

/* ========== Responsive ========== */

/* Header: full nav only on wide screens */
@media (max-width: 1280px) {
  .header__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .header.is-open .header__backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .header.is-open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
  }

  .header__menu {
    position: fixed;
    left: var(--page-pad);
    right: var(--page-pad);
    top: calc(var(--space-4) + var(--header-h) + 10px);
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border-radius: 24px;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    max-height: calc(100dvh - var(--space-4) - var(--header-h) - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0.22s ease;
  }

  .header.is-open .header__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .header .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
  }

  .header .nav a {
    display: block;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 500;
    opacity: 1;
    color: rgba(255, 255, 255, 0.92);
  }

  .header .nav a:hover,
  .header .nav a:focus-visible {
    background: rgba(255, 157, 0, 0.12);
    color: var(--color-bg-brand);
  }

  .header .nav a[aria-current="page"] {
    background: rgba(255, 157, 0, 0.14);
    color: var(--color-bg-brand);
  }

  .header__menu-foot {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
    padding: 16px 12px 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .header__menu-phone {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.01em;
  }

  .header__menu-phone:hover {
    color: var(--color-bg-brand);
  }

  .header__menu-socials {
    gap: 16px;
  }

  .header__menu-socials a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
  }

  .header__right .socials {
    display: none;
  }

  .burger {
    display: block;
  }

  .header__bar {
    gap: var(--space-4);
    position: relative;
    z-index: 61;
  }

  .header__left {
    gap: var(--space-4);
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 1100px) {
  .section__glow {
    left: auto;
    right: -10%;
    top: 0;
    width: 360px;
    height: 360px;
    transform: scale(1.6);
  }

  .pain-grid,
  .process-grid,
  .cases-grid,
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-card--featured {
    min-height: 0;
  }

  .cases-more-title {
    margin-top: 32px;
    font-size: 22px;
  }

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

  .header__phone {
    display: none;
  }

  .hero__panel {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    padding: 40px 28px 0;
  }

  .hero__copy {
    width: 100%;
    padding-bottom: 24px;
  }

  .hero__offers {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero__offers li {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }

  .hero__media {
    position: relative;
    height: 360px;
    margin: 0 -28px;
    overflow: hidden;
  }

  .hero__panel--placeholder {
    padding-bottom: 0;
  }

  .hero__panel--placeholder .hero__media {
    position: relative;
    inset: auto;
    width: 100%;
    height: 280px;
    margin: 0 auto;
    overflow: hidden;
  }

  .hero__panel--placeholder .hero__visual {
    max-height: 280px;
  }

  .hero__glow {
    left: 50%;
    top: -80px;
    width: min(720px, 140%);
    height: auto;
    aspect-ratio: 1;
    transform: translateX(-50%);
  }

  .hero__photo-base {
    left: 50%;
    top: -40px;
    width: min(420px, 85%);
    height: auto;
    aspect-ratio: 1;
    transform: translateX(-50%);
  }

  .hero__photo {
    left: 50%;
    top: auto;
    bottom: 0;
    width: auto;
    max-width: min(500px, 92%);
    height: 340px;
    transform: translateX(-50%);
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }
}

/* Mid desktop: photo must not overlap copy */
@media (max-width: 1400px) and (min-width: 1101px) {
  .hero__panel {
    gap: 48px;
    min-height: 520px;
  }

  .hero__copy {
    width: min(560px, 46%);
  }

  .hero__photo-base {
    left: auto;
    right: -20px;
    width: 560px;
    height: 560px;
  }

  .hero__photo {
    left: auto;
    right: 8px;
    width: min(460px, 48%);
    height: calc(100% - 12px);
  }

  .hero__glow {
    left: auto;
    right: -120px;
  }
}

@media (max-width: 800px) {
  .antithesis,
  .terms-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .terms-panel,
  .contacts-panel {
    padding: 40px 28px;
    border-radius: 28px 28px 28px 0;
  }

  .terms-hero {
    margin-top: 28px;
    padding: 28px;
    width: 100%;
  }

  .terms-hero__cta {
    width: 100%;
  }

  .terms-hero__caption {
    white-space: normal;
  }

  .header__right .btn {
    display: none;
  }

  .header__bar {
    border-radius: 32px;
    padding: 12px 16px;
  }

  .logo {
    font-size: 20px;
  }

  .hero__panel {
    border-radius: 28px 28px 28px 0;
  }

  .hero__media {
    height: 300px;
  }

  .hero__photo {
    height: 280px;
  }

  .pain-grid,
  .process-grid,
  .cases-grid,
  .benefits-grid,
  .terms-grid {
    grid-template-columns: 1fr;
  }

  .cookie {
    flex-direction: column;
    align-items: stretch;
  }

  .form {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .header__bar {
    border-radius: 40px;
  }

  .terms-panel,
  .contacts-panel {
    padding: 28px 20px;
    border-radius: 20px 20px 20px 0;
  }

  .terms-hero {
    padding: 24px 20px;
  }

  .hero__panel {
    padding: 28px 20px 0;
    border-radius: 20px 20px 20px 0;
  }

  .hero__media {
    margin: 0 calc(var(--page-pad) * -1);
    height: 260px;
  }

  .hero__panel--placeholder .hero__media {
    margin: 0 auto;
    width: 100%;
    height: 220px;
  }

  .hero__panel--placeholder .hero__visual {
    max-height: 220px;
  }

  .hero__photo {
    height: 240px;
  }

  .btn--md {
    width: 100%;
  }

  .hero__cta {
    width: 100%;
  }

  .hero__cta .btn {
    width: 100%;
  }
}
