/* ===== Design tokens ===== */
:root {
  --color-navy: #0d1a45;
  --color-gold: #a17924;
  --color-gold-50: rgba(161, 121, 36, 0.5);
  --color-bg: #f6f6f6;
  --color-white: #ffffff;
  --color-text: #272727;
  --color-black: #000000;
  --color-placeholder: #d9d9d9;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-sm: 10px;
  --container-max: 1728px;
  --container-pad: clamp(16px, 5.8vw, 100px);
  --section-inner-pad: clamp(20px, 4vw, 45px);
  --nav-mobile-bp: 768px;
  --font-main: 'Inter', sans-serif;
  --font-accent: 'Montserrat', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --transition: 0.25s ease;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font-main);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.4;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.is-menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ===== Utilities ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.text-gold {
  color: var(--color-gold);
}

.section {
  padding: clamp(48px, 6vw, 80px) 0;
}

.section-title {
  font-size: clamp(36px, 4.3vw, 74px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-navy);
  text-transform: uppercase;
}

.section-title--center {
  text-align: center;
}

.section-ornament {
  width: min(290px, 100%);
  height: auto;
  aspect-ratio: 290 / 19;
  margin-top: 24px;
  opacity: 0.5;
  object-fit: cover;
}

.section-ornament--center {
  margin-left: auto;
  margin-right: auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 449px;
  padding: 41px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: clamp(18px, 1.4vw, 24px);
  font-weight: 500;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  border: 3px solid transparent;
  transition: opacity var(--transition), transform var(--transition);
}

.btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}

.btn--outline {
  background: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.btn--outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

/* ===== Hero (Figma 2002:2 — 1728×898) ===== */
.hero {
  background: var(--color-bg);
}

.hero__canvas {
  padding-top: 28px;
  padding-bottom: 47px;
}

/* меню — 1528×77 */
.hero__menu {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 77px;
  margin-bottom: 12px;
  padding: 0 36px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
}

.hero__menu-logo img {
  height: 56px;
  width: auto;
}

.hero__menu-nav {
  display: flex;
  gap: 23px;
  font-size: 16px;
  color: var(--color-text);
}

.hero__menu-nav a:hover {
  color: var(--color-gold);
}

.hero__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hero__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
}

/* основная область — 1528×753 */
.hero__main {
  position: relative;
  width: 100%;
  aspect-ratio: 1528 / 753;
}

/* панели — 754×753, gap 20px */
.hero__panel {
  position: absolute;
  top: 0;
  height: 100%;
  width: 49.346%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero__panel--left {
  left: 0;
  background: var(--color-white);
  z-index: 1;
}

.hero__panel--right {
  left: 50.654%;
  background: var(--color-navy);
  z-index: 1;
  overflow: visible;
}

.hero__texture {
  position: absolute;
  top: 0;
  width: 45.755%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

/* Белая панель: текстура справа, видна левая часть → орёл смотрит влево (от центра) */
.hero__texture--light {
  right: 0;
  opacity: 0.5;
}

.hero__texture--light img {
  position: absolute;
  width: 200.63%;
  height: 101%;
  left: -0.04%;
  top: -1%;
  max-width: none;
}

/* Синяя панель: текстура слева, видна правая часть → орёл смотрит вправо (от центра) */
.hero__texture--dark {
  left: 0;
  opacity: 0.04;
}

.hero__texture--dark img {
  position: absolute;
  width: 200.09%;
  height: 100.62%;
  left: -99.5%;
  top: -0.62%;
  max-width: none;
}

.hero__texture--in-media {
  display: none;
}

/* текст — Figma 2002:17: x136 y195, 660×597 */
.hero__text {
  position: absolute;
  z-index: 3;
  left: 2.356%;
  top: 10.358%;
  width: 43.194%;
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: 120px;
  align-items: flex-start;
}

.hero__lead {
  width: 100%;
  height: 55px;
  margin: 0;
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.45px;
  color: var(--color-black);
}

.hero__lead strong {
  font-weight: 800;
}

/* Frame 3 — 660×200 */
.hero__title-wrap {
  width: 100%;
  min-height: 200px;
  flex-shrink: 0;
}

.hero__title {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  font-size: 58px;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
}

.hero__title-line {
  display: block;
}

@media (min-width: 1025px) {
  .hero__title-line {
    white-space: nowrap;
  }
}

.hero__title-line--navy {
  color: var(--color-navy);
}

.hero__title-line--gold {
  color: var(--color-gold);
}

/* Frame 42 — 660×102 */
.hero__info {
  position: relative;
  width: 100%;
  height: 102px;
  flex-shrink: 0;
  background: var(--color-white);
  border: 1px dashed var(--color-gold-50);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero__info-text {
  position: absolute;
  left: 25px;
  top: 25px;
  width: calc(100% - 130px);
  max-width: 509px;
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.45px;
  color: var(--color-black);
}

.hero__info-icon-bg {
  position: absolute;
  right: 18px;
  top: 16px;
  width: 67px;
  height: 68px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__info-icon-bg img {
  width: 58px;
  height: 53px;
  object-fit: contain;
}

/* карты — Figma 2011:113, внутри синей панели */
.hero__cards-wrap {
  position: absolute;
  z-index: 1;
  left: -7.04%;
  top: 7.69%;
  width: 94.03%;
  height: 95.35%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero__cards {
  position: relative;
  width: 75.79%;
  max-width: none;
  transform: rotate(22.56deg);
  opacity: 0.8;
}

/* телефон — Figma 2010:112, внутри синей панели */
.hero__phone {
  position: absolute;
  z-index: 2;
  left: 33.03%;
  top: 11.03%;
  width: 59.95%;
  height: 88%;
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
}

/* ===== How it works ===== */
.how__inner {
  display: grid;
  grid-template-columns: minmax(200px, 496px) 1fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}

.how__heading {
  position: sticky;
  top: 24px;
}

.how__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.how-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.how-card--outlined {
  border: 1px solid var(--color-gold-50);
}

.how-card__title {
  font-size: clamp(24px, 2.2vw, 38px);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-navy);
  letter-spacing: -0.95px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.step {
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: 12px 16px 12px 22px;
  font-size: clamp(15px, 1.05vw, 18px);
  letter-spacing: -0.45px;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.step__text {
  flex: 1;
  min-width: 0;
}

.step__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 53px;
}

.step__icon .icon--checkmark {
  width: 40px;
  height: auto;
}

.step__num {
  color: var(--color-gold);
  font-size: clamp(22px, 1.7vw, 30px);
  margin-right: 4px;
  flex-shrink: 0;
}

/* ===== Why us ===== */
.why__grid {
  display: grid;
  grid-template-columns: minmax(280px, 754px) 1fr;
  gap: clamp(20px, 2.5vw, 40px);
  margin-top: clamp(32px, 4vw, 56px);
  align-items: start;
}

.why__photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  max-height: 556px;
}

.why__benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.benefit-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 31px;
  min-height: 118px;
}

.benefit-card--wide {
  grid-column: 1 / -1;
}

.benefit-card__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-card__icon .icon--checkmark {
  width: 36px;
  height: auto;
}

.benefit-card p {
  font-size: clamp(15px, 1.05vw, 18px);
  letter-spacing: -0.45px;
}

/* ===== Companies (Figma 2020:84) ===== */
.companies__card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 80px) clamp(24px, 3vw, 48px) 0;
  overflow: hidden;
  min-height: calc(clamp(200px, 21vw, 255px) + clamp(560px, 48vw, 821px));
}

.companies__grid {
  max-width: calc(100% - min(520px, 40%) - clamp(16px, 2vw, 48px));
  margin-top: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(32px, 4vw, 48px);
}

.companies__features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 31px;
  min-height: 118px;
}

.feature-card--sm {
  flex: 1 1 calc(33% - 14px);
  min-width: 260px;
}

.feature-card--md {
  flex: 1 1 calc(40% - 14px);
  min-width: 300px;
}

.feature-card--lg {
  flex: 1 1 100%;
}

.feature-card__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--color-navy);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card__icon img {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.icon {
  display: block;
  flex-shrink: 0;
}

.feature-card p {
  font-size: clamp(15px, 1.05vw, 18px);
  letter-spacing: -0.45px;
}

/* Figma 2021:213 — 599×821, top/bottom привязаны к карточке */
.companies__image {
  position: absolute;
  top: clamp(200px, 21vw, 255px);
  right: clamp(24px, 3vw, 48px);
  bottom: 0;
  width: min(599px, 40%);
  overflow: hidden;
  pointer-events: none;
}

.companies__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ===== Reviews ===== */
.reviews__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.reviews__arrows {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.reviews__arrow {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.reviews__arrow:hover {
  opacity: 1;
}

.reviews__arrow img {
  width: 109px;
  height: 9px;
}

.reviews__arrow--prev img {
  transform: scaleX(-1);
}

.reviews__slider {
  overflow: hidden;
  margin: 0 calc(-1 * var(--container-pad));
  padding: 0 var(--container-pad);
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
}

.reviews__slider.is-dragging {
  cursor: grabbing;
}

.reviews__slider.is-dragging .reviews__track {
  transition: none;
}

.reviews__track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
  will-change: transform;
}

.review-card {
  flex: 0 0 clamp(260px, 21vw, 367px);
  height: clamp(360px, 30vw, 511px);
  background: var(--color-placeholder);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

.review-card__placeholder {
  font-size: clamp(32px, 3.2vw, 55px);
  color: #bbb;
  letter-spacing: -1.375px;
  transform: rotate(-48.82deg);
  user-select: none;
}

.reviews__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.reviews__dot {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  border: none;
  background: var(--color-gold-50);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}

.reviews__dot--active {
  background: var(--color-gold);
  transform: scale(1.05);
}

/* ===== CTA ===== */
.cta__card {
  position: relative;
  background: var(--color-navy);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 6vw, 104px) clamp(24px, 4vw, 48px);
  text-align: center;
  overflow: hidden;
}

.cta__pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.03;
  pointer-events: none;
}

.cta__title {
  position: relative;
  font-size: clamp(28px, 3.7vw, 64px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-white);
  text-transform: uppercase;
  max-width: 1452px;
  margin: 0 auto;
}

.cta__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(30px, 4vw, 70px);
  display: block;
  line-height: 0.5;
}

.cta__ornament {
  position: relative;
  width: min(257px, 100%);
  height: auto;
  aspect-ratio: 257 / 17;
  margin: 36px auto;
  opacity: 0.5;
}

.cta__buttons {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 24px;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-black);
  padding: clamp(48px, 6vw, 80px) 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.footer__logo img {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 23px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
}

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

.footer__copy {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== Responsive ===== */
@media (max-width: 1400px) {
  .hero__title {
    font-size: clamp(42px, 3.8vw, 58px);
  }

  .hero__text {
    gap: clamp(64px, 8vw, 120px);
  }
}

@media (max-width: 1200px) {
  .hero__lead,
  .hero__info-text {
    font-size: 16px;
  }
}

@media (max-width: 1024px) {
  .hero__main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    aspect-ratio: auto;
    min-height: 0;
  }

  .hero__panel {
    position: relative;
    top: auto;
    left: auto;
    height: auto;
    width: 100%;
    overflow: hidden;
  }

  .hero__panel--left {
    display: none;
  }

  .hero__panel--right {
    order: 2;
    aspect-ratio: 4 / 3;
    min-height: 280px;
    overflow: hidden;
  }

  .hero__text {
    order: 1;
    position: static;
    width: 100%;
    max-width: none;
    gap: 32px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
  }

  .hero__lead {
    height: auto;
  }

  .hero__title-wrap {
    min-height: 0;
    height: auto;
  }

  .hero__title {
    font-size: clamp(28px, 7vw, 48px);
  }

  .hero__info {
    height: auto;
    min-height: 102px;
    padding: 20px 90px 20px 20px;
  }

  .hero__info-text {
    position: static;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .hero__info-icon-bg {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
  }

  .hero__cards-wrap {
    left: 0;
    top: 0;
    width: min(72%, 320px);
    height: 100%;
  }

  .hero__cards {
    width: 88%;
  }

  .hero__phone {
    left: auto;
    right: 6%;
    bottom: 0;
    top: auto;
    width: 54%;
    height: 94%;
    transform: none;
    object-position: center bottom;
  }

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

  .how__heading {
    position: static;
  }

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

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

  .companies__card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-bottom: clamp(32px, 4vw, 48px);
  }

  .companies__grid {
    max-width: none;
    padding-bottom: 0;
    order: 2;
  }

  .companies__image {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 599 / 821;
    margin: 0 auto clamp(24px, 4vw, 32px);
    order: 1;
  }

  .companies__image img {
    object-fit: cover;
    object-position: center top;
  }
}

@media (max-width: 768px) {
  .hero__burger {
    display: flex;
  }

  .hero__menu {
    position: relative;
    padding: 0 20px;
  }

  .hero__menu-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 100;
  }

  .hero__menu-nav.is-open {
    display: flex;
  }

  .hero__panel--right {
    min-height: 300px;
  }

  .hero__phone {
    width: 58%;
  }

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

  .benefit-card--wide {
    grid-column: auto;
  }

  .feature-card--sm,
  .feature-card--md,
  .feature-card--lg {
    flex: 1 1 100%;
    min-width: 0;
  }

  .reviews__header {
    flex-direction: column;
  }

  .cta__buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    max-width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border-width: 2px;
  }
}

@media (max-width: 480px) {
  .hero__info {
    padding: 20px 84px 20px 16px;
  }

  .hero__info-icon-bg {
    right: 12px;
    width: 60px;
    height: 60px;
  }

  .hero__info-icon-bg img {
    width: 48px;
    height: 44px;
  }

  .hero__cards {
    display: none;
  }
}
