/* ===== VARIABLES ===== */
:root {
  --primary: #2D6A4F;
  --primary-light: #40916C;
  --primary-dark: #1B4332;
  --accent: #D4A373;
  --accent-light: #E9C8A4;
  --dark: #1B1B1B;
  --dark-800: #2A2A2A;
  --gray-600: #6B7280;
  --gray-400: #9CA3AF;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --light: #F8F9FA;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

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

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

/* ===== SECTION HEADERS ===== */
.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.section__tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(45, 106, 79, 0.08);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 16px;
}
.section__subtitle {
  font-size: 17px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.header.scrolled {
  background: rgba(255,255,255,0.95);
  border-bottom-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  flex-shrink: 0;
}
.logo__icon { display: flex; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-weight: 700; font-size: 16px; letter-spacing: -0.3px; }
.logo__sub { font-weight: 400; font-size: 13px; color: var(--gray-600); }
.logo--light { color: var(--white); }
.logo--light .logo__sub { color: rgba(255,255,255,0.6); }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-800);
  position: relative;
  padding: 4px 0;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: var(--transition);
}
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }
.nav__link:hover { color: var(--primary); }

/* Header Phone */
.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}
.header__phone:hover { color: var(--primary-dark); }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 40%, #40916C 70%, #52B788 100%);
}
.hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.2) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(255,255,255,0.15) 0%, transparent 45%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 80px;
}
.hero__badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}
.hero__title--accent {
  color: var(--accent-light);
}
.hero__desc {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  max-width: 500px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Visual Cards */
.hero__visual {
  position: relative;
  display: flex;
  gap: 16px;
  justify-content: center;
  padding: 20px;
}
.hero__card {
  width: 160px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--white);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero__card:hover { transform: translateY(-8px); }
.hero__card--1 { transform: translateY(30px); }
.hero__card--2 { transform: translateY(-10px); }
.hero__card--3 { transform: translateY(50px); }
.hero__card--1:hover { transform: translateY(22px); }
.hero__card--2:hover { transform: translateY(-18px); }
.hero__card--3:hover { transform: translateY(42px); }
.hero__card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.hero__card span {
  display: block;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  text-align: center;
}

/* Hero Scroll Indicator */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}
.hero__scroll span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: rgba(255,255,255,0.8);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -50%; }
  100% { top: 100%; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--white);
  color: var(--primary-dark);
}
.btn--primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.btn--outline {
  border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--white);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

/* ===== ABOUT ===== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__content .section__tag { margin-bottom: 12px; }
.about__content .section__title { text-align: left; margin-bottom: 24px; }
.about__text {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 16px;
}
.about__stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}
.stat { text-align: center; }
.stat__number {
  display: block;
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}
.stat__label {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.4;
}

/* About Image */
.about__image { position: relative; }
.about__img-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about__img-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}
.about__float-card {
  position: absolute;
  bottom: -20px;
  left: -30px;
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floatCard 3s ease-in-out infinite;
}
.about__float-card strong {
  display: block;
  font-size: 14px;
  color: var(--dark);
}
.about__float-card span {
  font-size: 12px;
  color: var(--gray-600);
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== BRANDS ===== */
.brands__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.brand-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.brand-card__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.brand-card__name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}
.brand-card__desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 16px;
}
.brand-card__count {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(45, 106, 79, 0.08);
  padding: 4px 12px;
  border-radius: 100px;
}

/* ===== CATALOG ===== */
.catalog__filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  transition: var(--transition);
}
.filter-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Product Grid */
.catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Product Card */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product-card.hidden {
  display: none;
}
.product-card__img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-card__img img {
  transform: scale(1.08);
}
.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--white);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 100px;
}
.product-card__body {
  padding: 20px;
}
.product-card__category {
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  display: block;
}
.product-card__name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}
.product-card__desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
}
.product-card__volume {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 500;
}
.product-card__price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
}

/* ===== ADVANTAGES ===== */
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.adv-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.adv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.adv-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(45, 106, 79, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}
.adv-card__title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.adv-card__desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ===== CONTACTS ===== */
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  min-height: 420px;
}
.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-item__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(45, 106, 79, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.contact-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-item p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
}
.contact-item a {
  color: var(--primary);
  font-weight: 500;
}
.contact-item a:hover { color: var(--primary-dark); }

.contacts__map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 380px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding-top: 60px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer__brand p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
}
.footer__links h4,
.footer__contact h4 {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer__links a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
}
.footer__links a:hover { color: var(--white); }
.footer__contact p,
.footer__contact a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
}
.footer__contact a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ===== FAB (Floating Action Button) ===== */
.fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(45, 106, 79, 0.4);
  z-index: 900;
  transition: var(--transition);
  animation: fabPulse 2s ease-in-out infinite;
}
.fab:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
  animation: none;
}
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(45, 106, 79, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(45, 106, 79, 0.6); }
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal--right {
  transform: translateX(30px);
}
.reveal--delay {
  transition-delay: 0.2s;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__desc { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { display: none; }
  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about__content .section__title { text-align: center; }
  .about__content .section__tag { display: block; text-align: center; }
  .about__float-card { left: 20px; }
  .brands__grid { grid-template-columns: repeat(2, 1fr); }
  .advantages__grid { grid-template-columns: repeat(2, 1fr); }
  .contacts__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 32px 24px;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    border-bottom: 1px solid var(--gray-200);
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav__link {
    font-size: 16px;
    padding: 14px 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--gray-100);
  }
  .header__phone { display: none; }
  .burger { display: flex; }
  .hero { min-height: auto; padding-top: 72px; padding-bottom: 40px; }
  .hero__inner { padding-top: 60px; padding-bottom: 60px; }
  .hero__title { font-size: 32px; }
  .about__stats { gap: 24px; }
  .stat__number { font-size: 32px; }
  .brands__grid { grid-template-columns: 1fr; }
  .catalog__grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
  .advantages__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { padding: 14px 24px; }
  .about__stats { flex-direction: column; gap: 20px; align-items: center; }
  .catalog__filters { gap: 6px; }
  .filter-btn { padding: 8px 16px; font-size: 13px; }
}
