/* ===== Variables ===== */
:root {
  --burgundy: #7B1E3A;
  --burgundy-dark: #5C1529;
  --burgundy-light: #9B2E52;
  --accent: #C0392B;
  --dark: #1A1A2E;
  --dark-soft: #2D2D44;
  --gray-100: #F8F9FA;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-500: #6C757D;
  --gray-700: #495057;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.header--scrolled {
  border-bottom-color: var(--gray-200);
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--burgundy);
  color: var(--white);
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 10px;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo__text strong {
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--burgundy);
}

.logo__text small {
  font-size: 0.65rem;
  color: var(--gray-500);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav a:hover {
  color: var(--burgundy);
  background: rgba(123, 30, 58, 0.06);
}

.nav__cta {
  background: var(--burgundy) !important;
  color: var(--white) !important;
  margin-left: 8px;
}

.nav__cta:hover {
  background: var(--burgundy-dark) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  transform: scale(1.02);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(26, 26, 46, 0.92) 0%,
    rgba(26, 26, 46, 0.78) 35%,
    rgba(92, 21, 41, 0.55) 65%,
    rgba(123, 30, 58, 0.35) 100%
  );
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 60px) 24px 80px;
  max-width: 720px;
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  color: #FF8FAB;
}

.hero__desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

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

.btn--primary:hover {
  background: var(--burgundy-dark);
  border-color: var(--burgundy-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(123, 30, 58, 0.35);
}

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

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

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

/* ===== Sections ===== */
.section {
  padding: 100px 0;
}

.section--alt {
  background: var(--gray-100);
}

.section--dark {
  background: var(--dark);
  color: var(--white);
}

.section__header {
  margin-bottom: 56px;
}

.section__header--center {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--burgundy);
  margin-bottom: 12px;
}

.section__tag--light {
  color: #FF8FAB;
}

.section__header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section__subtitle {
  color: var(--gray-500);
  font-size: 1.05rem;
}

.section--dark .section__subtitle {
  color: rgba(255, 255, 255, 0.6);
}

/* ===== About ===== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__text p {
  color: var(--gray-700);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about__stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

.about__stats li {
  display: flex;
  flex-direction: column;
}

.about__stats strong {
  font-size: 2rem;
  font-weight: 800;
  color: var(--burgundy);
  line-height: 1;
}

.about__stats span {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 4px;
}

.about__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card__icon {
  width: 48px;
  height: 48px;
  background: rgba(123, 30, 58, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--burgundy);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ===== Split sections ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split__content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.split__content p {
  color: var(--gray-700);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--gray-700);
  font-size: 0.95rem;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  background: var(--burgundy);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}

.visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.visual-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.visual-card__label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--burgundy);
}

/* ===== Features ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.feature:hover {
  box-shadow: var(--shadow);
  border-color: transparent;
}

.feature__num {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(123, 30, 58, 0.15);
  line-height: 1;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature p {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* ===== Brands carousel ===== */
.brands-carousel {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.brands-carousel__track {
  display: flex;
  width: max-content;
  animation: brands-scroll 30s linear infinite;
}

.brands-carousel:hover .brands-carousel__track {
  animation-play-state: paused;
}

.brands-carousel__slide {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 0 24px;
}

.brands-carousel__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 80px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transition: var(--transition);
}

.brands-carousel__item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.brands-carousel__item img {
  max-width: 140px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: var(--transition);
}

.brands-carousel__item--color img {
  filter: none;
  opacity: 1;
}

.brands-carousel__item--color {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.3);
}

.brands-carousel__item--color:hover {
  background: var(--white);
}

.brands-carousel__item:hover img {
  opacity: 1;
}

@keyframes brands-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brands-carousel__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 24px;
  }

  .brands-carousel__slide[aria-hidden="true"] {
    display: none;
  }

  .brands-carousel {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* ===== Advantages ===== */
.advantages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.advantage {
  padding: 32px 24px;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.advantage:hover {
  box-shadow: var(--shadow);
  border-color: transparent;
  transform: translateY(-2px);
}

.advantage__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.advantage h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.advantage p {
  font-size: 0.88rem;
  color: var(--gray-500);
}

/* ===== Contact ===== */
.contact {
  max-width: 560px;
  margin: 0 auto;
}

.contact__info h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.contact__info > p {
  color: var(--gray-700);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.contact__item:hover {
  border-color: var(--burgundy);
  box-shadow: var(--shadow);
}

.contact__item svg {
  width: 24px;
  height: 24px;
  color: var(--burgundy);
  flex-shrink: 0;
}

.contact__item span {
  display: flex;
  flex-direction: column;
}

.contact__item strong {
  font-size: 0.95rem;
}

.contact__item small {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.contact__form {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__group--full {
  grid-column: 1 / -1;
}

.form__group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
}

.form__group input,
.form__group textarea {
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--gray-100);
}

.form__group input:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--burgundy);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(123, 30, 58, 0.1);
}

.form__group textarea {
  resize: vertical;
  min-height: 100px;
}

.contact__form .btn {
  grid-column: 1 / -1;
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.logo--footer .logo__text strong {
  color: var(--white);
}

.logo--footer .logo__text small {
  color: rgba(255, 255, 255, 0.5);
}

.footer__copy {
  font-size: 0.85rem;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

.footer__links a:hover {
  color: var(--white);
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .brands-carousel__slide {
    gap: 32px;
  }

  .brands-carousel__item {
    width: 150px;
    height: 70px;
    padding: 12px 16px;
  }
}

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

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: var(--transition);
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav a {
    padding: 14px 16px;
    font-size: 1rem;
  }

  .nav__cta {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
  }

  .about,
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split--reverse .split__visual {
    order: -1;
  }

  .cards,
  .features,
  .advantages {
    grid-template-columns: 1fr;
  }

  .about__stats {
    gap: 24px;
  }

  .brands-carousel__slide {
    gap: 24px;
  }

  .brands-carousel__item {
    width: 130px;
    height: 64px;
  }

  .contact__form {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 480px) {
  .about__stats {
    flex-direction: column;
    gap: 20px;
  }
}
