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

:root {
  --color-bg: #f5f5f0;
  --color-bg-alt: #eaeae4;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #5a5a5a;
  --color-accent: #2d3436;
  --color-accent-light: #636e72;
  --color-primary: #d4a017;
  --color-primary-dark: #b8860b;
  --color-border: #d5d5cf;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 8px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --header-h: 72px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-h);
  transition: box-shadow 0.3s;
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

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

.header__logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--color-accent);
}

.header__nav {
  display: flex;
  gap: 32px;
}

.header__nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s;
  position: relative;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s;
}

.header__nav a:hover { color: var(--color-text); }
.header__nav a:hover::after { width: 100%; }

.header__phone {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-accent);
  transition: color 0.2s;
}

.header__phone:hover { color: var(--color-primary-dark); }

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

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  transition: transform 0.3s, opacity 0.3s;
}

.header__burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.active span:nth-child(2) { opacity: 0; }
.header__burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--color-surface);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
  box-shadow: var(--shadow-lg);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-nav.active {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav a {
  font-size: 1.1rem;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav__phone {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  border-bottom: none !important;
  padding-top: 16px !important;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: none;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover { background: #3d4a4d; }

.btn--white {
  background: #fff;
  color: var(--color-accent);
}

.btn--white:hover { background: #f0f0f0; }

.btn--lg {
  padding: 18px 44px;
  font-size: 1.1rem;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 38px,
      rgba(45,52,54,0.08) 38px,
      rgba(45,52,54,0.08) 40px
    ),
    linear-gradient(135deg, #d5d5cf 0%, #b0b0a8 100%);
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,26,0.7) 0%, rgba(45,52,54,0.5) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 120px 24px 80px;
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  max-width: 600px;
  margin: 0 auto 40px;
  opacity: 0.9;
  line-height: 1.6;
}

.hero__phone-link {
  display: block;
  margin-top: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.hero__phone-link:hover { opacity: 1; }

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

.section--alt {
  background: var(--color-bg-alt);
}

.section__title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 60px;
  color: var(--color-accent);
}

/* ===== ADVANTAGES ===== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.advantage-card {
  background: var(--color-surface);
  padding: 36px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.advantage-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  border-radius: 50%;
  color: var(--color-accent);
}

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

.advantage-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ===== CATALOG ===== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

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

.product-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card__image {
  height: 200px;
  background:
    repeating-linear-gradient(
      90deg,
      #c0c0b8,
      #c0c0b8 6px,
      #a8a8a0 6px,
      #a8a8a0 8px
    );
  position: relative;
}

.product-card__image::after {
  content: 'евро-штакетник';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.product-card__body {
  padding: 28px 24px;
}

.product-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-card__desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.product-card__price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.product-card .btn { width: 100%; }

/* ===== CONDITIONS ===== */
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.condition-card {
  background: var(--color-surface);
  padding: 36px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.3s;
}

.condition-card:hover { transform: translateY(-3px); }

.condition-card--highlight {
  border: 2px solid var(--color-primary);
}

.condition-card__value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.condition-card__label {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.condition-card__note {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

/* ===== STEPS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 56px;
  height: 56px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 20px;
}

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

.step p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ===== TECHNOLOGY ===== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.tech-card {
  background: var(--color-surface);
  padding: 40px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-primary);
  transition: transform 0.3s, box-shadow 0.3s;
}

.tech-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.tech-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-accent);
}

.tech-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== CTA ===== */
.cta {
  background: var(--color-accent);
  padding: 100px 0;
}

.cta__inner {
  text-align: center;
  color: #fff;
}

.cta__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta__subtitle {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 40px;
}

/* ===== FOOTER ===== */
.footer {
  background: #1a1a1a;
  color: #aaa;
  padding: 60px 0 40px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}

.footer__logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.footer__brand p {
  font-size: 0.9rem;
  max-width: 400px;
  line-height: 1.6;
}

.footer__contact a {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  transition: color 0.2s;
}

.footer__contact a:hover { color: var(--color-primary); }

.footer__copy {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  padding-top: 32px;
  border-top: 1px solid #333;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header__nav { display: none; }
  .header__phone { display: none; }
  .header__burger { display: flex; }
  .mobile-nav { display: flex; }

  .section { padding: 64px 0; }
  .section__title { margin-bottom: 40px; }

  .hero__content { padding: 100px 16px 60px; }

  .advantages-grid { grid-template-columns: 1fr 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .conditions-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .tech-grid { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .advantages-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}
