@font-face {
  font-family: Gilroy;
  src: url("assets/fonts/Gilroy-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Gilroy;
  src: url("assets/fonts/Gilroy-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Gilroy;
  src: url("assets/fonts/Gilroy-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #db3207;
  --red-dark: #64000e;
  --muted: rgba(255, 255, 255, 0.78);
  --line: rgba(255, 255, 255, 0.22);
  --font: Gilroy, system-ui, sans-serif;
  --side: 100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font);
  background: #050505;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.hero__media picture {
  position: absolute;
  inset: 0;
  display: block;
}

.hero__fold {
  display: contents;
}

.hero__visual {
  display: none;
}

.hero__visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Лёгкий градиент — слева и так тёмная стена, почти не закрываем */
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.28) 0%,
      transparent 100px
    ),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.22) 0%,
      rgba(0, 0, 0, 0.08) 32%,
      transparent 48%
    );
}

.section--next {
  background: #050505;
  min-height: 320px;
}

.header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px var(--side);
  background: rgba(21, 20, 27, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 48px;
  width: auto;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 35px;
}

.nav a {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s;
}

.nav a:hover {
  color: #fff;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
}

.phone svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 22px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 500;
  border: 2px solid transparent;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn--header {
  padding: 10px 16px;
  font-size: 17px;
}

.btn--main {
  padding: 15px 22px;
  font-size: 17px;
}

.btn--primary {
  background: var(--red);
  color: #fff;
}

.btn--primary:hover {
  background: var(--red-dark);
}

.btn__arrow {
  flex: 0 0 auto;
  display: block;
  width: 20px;
  height: 20px;
}

.btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn--outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.hero__body {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 8px 130px;
}

.hero__copy {
  padding-bottom: 0;
}

.hero__copy h1 {
  font-size: 80px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero__copy p {
  max-width: 640px;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 22px;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
}

.compare {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.compare__card {
  width: 200px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.55);
}

.compare__card figcaption {
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}

.compare__card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.trust {
  display: flex;
  align-items: stretch;
  max-width: none;
  padding: 0;
}

.trust__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
}

.trust__item:first-child {
  padding-left: 0;
}

.trust__item + .trust__item {
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.trust__icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  color: #fff;
  display: block;
  overflow: visible;
}

.trust__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}

.trust__text b {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
}

.trust__text span {
  font-size: 15px;
  font-weight: 400;
  color: #fff;
}

.trust__title-mob,
.trust__sub-mob {
  display: none;
}

.trust__item--pay {
  display: none;
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.mobile-bar {
  display: none;
}

@media (max-width: 1100px) {
  .nav {
    gap: 20px;
  }

  .hero__body {
    padding: 8px 40px;
  }

  .header {
    padding: 16px 40px;
  }
}

@media (max-width: 980px) {
  .nav,
  .header__actions {
    display: none;
  }

  .burger {
    display: flex;
  }

  .header {
    grid-template-columns: 1fr auto;
    padding: 12px 16px;
    background: transparent;
    backdrop-filter: none;
    flex: 0 0 auto;
  }

  .logo img {
    height: 40px;
  }

  .hero {
    height: auto;
    min-height: 0;
    max-height: none;
    padding-bottom: 24px;
    overflow: visible;
    background: #15141b;
  }

  .hero__media {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 0;
    overflow: hidden;
  }

  .hero__media picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
  }

  .hero__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
  }

  .hero__veil {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(21, 20, 27, 0.55) 0%, transparent 18%),
      linear-gradient(0deg, #15141b 0%, rgba(21, 20, 27, 0.75) 10%, transparent 28%);
  }

  .hero__body {
    flex: 0 0 auto;
    min-height: 0;
    align-items: stretch;
    padding: 0 16px;
  }

  .hero__copy {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    padding-bottom: 0;
  }

  /* Первый экран: шапка + этот блок = 100dvh */
  .hero__fold {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 64px);
    min-height: calc(100dvh - 64px);
    max-height: calc(100dvh - 64px);
    box-sizing: border-box;
    padding-bottom: 12px;
  }

  .hero__copy h1 {
    font-size: clamp(26px, 7.5vw, 32px);
    margin-top: 30px;
    margin-bottom: 8px;
    flex: 0 0 auto;
  }

  .hero__copy p {
    font-size: 13px;
    line-height: 1.4;
    max-width: none;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
    flex: 0 0 auto;
  }

  .compare {
    display: none;
  }

  .hero__visual {
    display: block;
    flex: 1 1 auto;
    min-height: 80px;
    margin: 0;
    width: auto;
  }

  .hero__cta {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 0;
    margin-top: auto;
  }

  .btn--main {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border-radius: 12px;
  }

  .trust {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 20px;
  }

  .trust__item,
  .trust__item:first-child {
    padding: 10px 10px;
    gap: 8px;
    border: none;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
  }

  .trust__item + .trust__item {
    border-left: none;
  }

  .trust__item--pay {
    display: flex;
  }

  .trust__icon {
    width: 22px;
    height: 22px;
  }

  .trust__text b {
    font-size: 13px;
  }

  .trust__text span {
    font-size: 11px;
    opacity: 0.9;
  }

  .trust__title-desk,
  .trust__sub-desk {
    display: none;
  }

  .trust__title-mob,
  .trust__sub-mob {
    display: block;
  }

  .mobile-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    align-items: center;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(21, 20, 27, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(110%);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .mobile-bar.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-bar__call {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
  }

  .mobile-bar__cta {
    flex: 1;
    height: 52px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 15px;
  }

  .mobile-bar__cta .btn__arrow {
    width: 16px;
    height: 16px;
  }
}

