@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Montserrat-SemiBold.woff2') format('woff2');
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg-primary: #1d1d35;
  --color-bg-secondary: #1d1d34;
  --color-accent: #9bc256;
  --color-accent-red: #e90b32;
  --color-accent-blue: #0399E4;
  --color-text-primary: #fff;
  --color-border: #3a4055;
  --font-family: 'Montserrat', sans-serif;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: 
    linear-gradient(160.37deg, rgba(29, 29, 53, 0) 32%, rgba(155, 194, 86, 0.6) 100%),
    linear-gradient(90deg, rgba(29, 29, 52, 1) 0%, rgba(29, 29, 52, 1) 100%);
}

/* Header */
.header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
}

.header__wrapper {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.logo {
  display: block;
  width: 107px;
  height: 40px;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Hero */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 48px 16px;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
}

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.hero__title {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

/* Advantages */
.advantages {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.advantages__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.advantages__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--color-accent);
  border-radius: 6px;
}

/* CTA */
.cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta__text {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 12px 24px;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border-radius: 99px;
  transition: opacity 0.2s ease;
  background-color: var(--color-accent-red);
  color: var(--color-text-primary);
}

.btn:hover {
  opacity: 0.9;
}

.btn:active {
  opacity: 0.8;
}

.btn svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.btn.blue {
  background-color: var(--color-accent-blue);
}

/* Hero Image */
.hero__image {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  width: 640px;
  max-width: 100%;
}

.hero__picture {
  display: block;
  width: 100%;
  max-width: 640px;
}

.hero__picture img {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive - Tablet */
@media (max-width: 1440px) {
  .header {
    padding: 12px 80px;
  }

  .hero {
    padding: 48px 80px;
  }
}

@media (max-width: 1200px) {
  .header {
    padding: 12px 40px;
  }

  .hero {
    padding: 32px 40px;
  }

  .hero__title {
    font-size: 36px;
  }

  .hero__image {
    width: 500px;
  }

  .hero__image-container {
    width: 420px;
    height: 420px;
    border-radius: 20px;
  }

  .hero__door {
    top: 50px;
    width: 240px;
  }

  .hero__key-badge {
    top: 240px;
    left: 170px;
  }
}

@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    gap: 24px;
    padding: 24px 40px;
  }

  .hero__content {
    order: 1;
    gap: 16px;
  }

  .hero__image {
    order: 2;
  }

  .hero__picture img {
    border-radius: 13px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .page {
    background: linear-gradient(180deg, #1D1D35 39.77%, rgba(155, 194, 86, 0.60) 100%), linear-gradient(0deg, #1D1D35 0%, #1D1D35 100%), var(--surface-secondary, #F1F4FB);
  }

  .header {
    padding: 8px 16px;
  }

  .hero {
    padding: 24px 16px;
    justify-content: flex-start;
  }

  .hero__content {
    order: 1;
  }

  .hero__title {
    font-size: 28px;
  }

  .advantages {
    gap: 12px;
  }

  .cta__buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero__image {
    order: 2;
    align-self: center;
  }
}

@media (max-width: 375px) {
  .hero__image {
    width: 100%;
    max-width: 343px;
    height: auto;
    aspect-ratio: 1;
  }
}
