/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  color: #ffffff;
  background: #1d1d1d;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(29, 29, 29, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 80px;
  transition: background 0.3s;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-img {
  width: 150px;
  height: auto;
}

.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #cc2f06;
}

.nav-link--expo {
  font-weight: 600;
}

.nav-social {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-social a {
  display: flex;
  align-items: center;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.nav-social a:hover {
  opacity: 1;
}

/* MAX: белая PNG-иконка */
.nav-social a[aria-label="Написать в MAX"] img,
.footer-social a[aria-label="Написать в MAX"] img {
  width: 30px;
  height: 30px;
  max-width: none;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

/* Burger */
.burger {
  display: none;
  position: relative;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.burger span {
  display: block;
  position: absolute;
  width: 100%;
  height: 3px;
  background: #cc2f06;
  left: 0;
  transition: 0.25s ease-in-out;
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2),
.burger span:nth-child(3) { top: 8px; }
.burger span:nth-child(4) { top: 16px; }

.burger.open span:nth-child(1) { top: 8px; width: 0; left: 50%; }
.burger.open span:nth-child(2) { transform: rotate(45deg); }
.burger.open span:nth-child(3) { transform: rotate(-45deg); }
.burger.open span:nth-child(4) { top: 8px; width: 0; left: 50%; }

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 998;
}

.mobile-menu-overlay.active {
  display: block;
}

/* ===== HERO ===== */
.hero {
  background: #1d1d1d;
  min-height: 840px;
  padding-top: 80px;
  position: relative;
  overflow: visible;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 124px 80px 80px;
  display: flex;
  align-items: flex-start;
  position: relative;
  min-height: calc(840px - 80px);
  overflow: visible;
}

.hero-text {
  flex: 0 0 55%;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 54px;
  font-weight: 400;
  line-height: 1.55;
  color: #ffffff;
  margin-bottom: 50px;
}

.hero-title strong {
  font-weight: 400;
}

.hero-features {
  color: #848484;
  font-size: 26px;
  line-height: 1.55;
}

.hero-features p {
  margin-bottom: 0;
}

.hero-images {
  position: absolute;
  right: 0;
  top: 124px;
  width: 55%;
  height: calc(100% - 124px);
  overflow: visible;
}

.hero-img-main {
  position: absolute;
  left: -245px;
  bottom: 0;
  display: block;
  max-width: none;
  width: calc(100% + 245px);
  height: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: right center;
  transform: scale(0.92);
  transform-origin: right bottom;
}

/* ===== MARQUEE ===== */
.marquee {
  height: 70px;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.marquee-red {
  background: #cc2f06;
}

.marquee-dark {
  background: #1d1d1d;
}

.marquee-track {
  display: flex;
  align-items: center;
  height: 100%;
}

.marquee-content {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  animation: marquee-scroll 20s linear infinite;
  padding-right: 20px;
}

.marquee-content span {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #ffffff;
}

.marquee-content .dot {
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== CHECKLIST SECTION ===== */
.checklist-section {
  background: #ffffff;
  padding: 120px 40px;
}

.checklist-title {
  text-align: center;
  color: #000000;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 40px;
}

.checklist {
  max-width: 600px;
  margin: 0 auto;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  color: #000000;
  font-size: 18px;
  font-weight: 400;
}

.check-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ===== TEXT BLOCK ===== */
.text-block {
  background: #ebebeb;
  padding: 60px 40px;
}

.text-block-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.text-block p {
  font-size: 30px;
  line-height: 1.55;
  color: #000000;
  font-weight: 400;
}

/* ===== FEATURES CARDS ===== */
.features-section {
  padding: 105px 0;
  background: #ffffff;
}

.features-grid {
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  padding: 0 20px;
}

.feature-card {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  min-height: 400px;
  cursor: pointer;
}

.feature-card-large {
  grid-row: span 2;
}

.feature-card-wide {
  grid-column: span 2;
  min-height: 350px;
}

.feature-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.feature-card:hover .feature-card-bg {
  transform: scale(1.05);
}

.feature-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.50), rgba(255,255,255,0));
  z-index: 1;
}

.feature-card-text {
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: 30px;
  z-index: 2;
  color: #ffffff;
}

.feature-card-text p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}

/* ===== COVER SECTIONS ===== */
.cover-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.50);
}

.cover-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 40px;
}

.cover-content h2 {
  font-size: 52px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 30px;
  line-height: 1.3;
}

.cover-content p {
  font-size: 22px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.6;
  opacity: 0.9;
}

.cover-arrow {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce-arrow 2s ease-in-out infinite;
}

@keyframes bounce-arrow {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== WHY US ===== */
.why-us-section {
  background: #ffffff;
  padding: 120px 40px;
}

.why-us-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.why-us-label {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 30px;
}

.why-us-text {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.4;
  color: #000000;
}

.why-us-text strong {
  color: #000000;
}

.why-us-text .accent {
  color: #cc2f06;
  font-weight: 700;
}

.accent-link {
  color: #cc2f06;
  text-decoration: underline;
  font-weight: 700;
  transition: opacity 0.3s;
}

.accent-link:hover {
  opacity: 0.8;
}

/* ===== CONTACTS CTA ===== */
.contacts-section {
  position: relative;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.contacts-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.contacts-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 0 40px;
}

.contacts-title {
  font-size: 40px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 20px;
}

.contacts-descr {
  font-size: 22px;
  color: #000000;
  margin-bottom: 40px;
  line-height: 1.5;
}

.cta-button {
  display: inline-block;
  padding: 16px 40px;
  background: #cc2f06;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  border-radius: 100px;
  transition: background 0.3s, transform 0.3s;
}

.cta-button:hover {
  background: #b32905;
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
  background: #171717;
  padding: 15px 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.footer-logo img {
  height: 40px;
  width: auto;
}

.footer-text {
  text-align: center;
  flex: 1;
}

.footer-text p {
  font-size: 14px;
  color: #ffffff;
  line-height: 1.5;
}

.footer-social {
  display: flex;
  gap: 8px;
  align-items: center;
}

.footer-social a {
  display: flex;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-social a:hover {
  opacity: 1;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */

@media screen and (max-width: 1199px) {
  .hero {
    min-height: 670px;
  }

  .hero-content {
    padding: 71px 42px 40px;
    min-height: calc(670px - 80px);
  }

  .hero-title {
    font-size: 44px;
    line-height: 1.4;
  }

  .hero-features {
    font-size: 24px;
  }

  .why-us-text {
    font-size: 42px;
  }

  .cover-content h2 {
    font-size: 44px;
  }
}

@media screen and (max-width: 980px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(29, 29, 29, 0.98);
    flex-direction: column;
    padding: 30px 40px;
    gap: 25px;
    z-index: 999;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-social {
    display: none;
  }

  .burger {
    display: block;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    flex-direction: column;
    padding: 30px 36px 40px;
    min-height: auto;
  }

  .hero-text {
    flex: none;
    width: 100%;
  }

  .hero-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .hero-features {
    font-size: 16px;
  }

  .hero-images {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    height: auto;
    margin-top: 30px;
  }

  .hero-img-main {
    position: relative;
    left: auto;
    width: 100%;
    height: auto;
    max-height: none;
    transform: none;
  }

  .text-block p {
    font-size: 22px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card-large {
    grid-row: span 1;
  }

  .feature-card-wide {
    grid-column: span 1;
  }

  .feature-card {
    min-height: 300px;
  }

  .cover-content h2 {
    font-size: 32px;
  }

  .cover-content p {
    font-size: 18px;
  }

  .cover-section {
    background-attachment: scroll;
  }

  .why-us-text {
    font-size: 28px;
  }

  .contacts-title {
    font-size: 28px;
  }

  .contacts-descr {
    font-size: 18px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 15px;
    padding: 15px 0;
  }

  .footer-text {
    order: 2;
  }

  .footer-social {
    order: 3;
  }
}

@media screen and (max-width: 639px) {
  .hero-content {
    padding: 31px 38px 30px;
  }

  .hero-title {
    font-size: 30px;
    line-height: 1.35;
  }

  .hero-features {
    font-size: 14px;
  }
}

@media screen and (max-width: 479px) {
  .nav-container {
    padding: 0 20px;
  }

  .hero-content {
    padding: 47px 4px 30px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-features {
    font-size: 16px;
  }

  .checklist-section {
    padding: 60px 20px;
  }

  .checklist li {
    font-size: 16px;
    gap: 12px;
  }

  .text-block p {
    font-size: 20px;
  }

  .features-section {
    padding: 60px 0;
  }

  .feature-card {
    min-height: 250px;
  }

  .cover-content h2 {
    font-size: 28px;
  }

  .cover-content p {
    font-size: 16px;
  }

  .why-us-section {
    padding: 60px 20px;
  }

  .why-us-text {
    font-size: 22px;
  }

  .contacts-section {
    height: 450px;
  }

  .contacts-title {
    font-size: 24px;
  }

  .contacts-descr {
    font-size: 16px;
  }

  .cta-button {
    padding: 14px 30px;
    font-size: 14px;
  }
}
