:root {
  --primary: #c8102e;
  --primary-dark: #9f0f26;
  --accent: #ffb703;
  --dark: #111827;
  --text: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f8fafc;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

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

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.logo-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  font-size: 24px;
  font-weight: 800;
}

.logo-text {
  display: grid;
  line-height: 1.25;
}

.logo-text strong {
  color: var(--dark);
  font-size: 18px;
}

.logo-text small {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--dark);
  font-weight: 600;
}

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

.lang-switch {
  display: flex;
  gap: 6px;
}

.lang-btn {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 700;
}

.lang-btn.active,
.lang-btn:hover {
  color: var(--white);
  border-color: var(--primary);
  background: var(--primary);
}

.menu-toggle {
  display: none;
  border: none;
  background: var(--primary);
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 22px;
}

.hero {
  padding: 92px 0;
  background:
    radial-gradient(circle at top right, rgba(200, 16, 46, 0.18), transparent 32%),
    linear-gradient(135deg, #fff5f6 0%, #ffffff 48%, #f1f5f9 100%);
}

.hero-grid,
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: var(--dark);
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 12px;
  color: var(--dark);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.hero-subtitle {
  max-width: 760px;
  color: var(--dark);
  font-size: 20px;
  font-weight: 700;
}

.hero-cert {
  color: var(--muted);
  font-size: 17px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 14px 28px rgba(200, 16, 46, 0.24);
}

.hero-card,
.contact-card,
.product-card,
.stats {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 36px;
  min-height: 260px;
  display: grid;
  align-content: center;
  gap: 12px;
}

.hero-card span {
  color: var(--primary);
  font-weight: 800;
}

.hero-card strong {
  color: var(--dark);
  font-size: 30px;
  line-height: 1.2;
}

.section {
  padding: 84px 0;
}

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

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 55px rgba(17, 24, 39, 0.16);
}

.product-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 14px;
  color: var(--primary);
  background: #fff1f2;
  font-weight: 900;
}

.product-card h3 {
  color: var(--dark);
  font-size: 22px;
}

.stats {
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.stats div {
  padding: 20px;
  border-radius: 20px;
  background: var(--bg);
}

.stats strong {
  display: block;
  color: var(--primary);
  font-size: 30px;
  line-height: 1.1;
}

.stats span {
  color: var(--muted);
  font-weight: 700;
}

.contact-card {
  padding: 38px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  background: linear-gradient(135deg, #ffffff 0%, #fff5f6 100%);
}

.contact-info p {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.contact-info strong {
  color: var(--dark);
}

.contact-info a {
  color: var(--primary);
  font-weight: 800;
}

.footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--dark);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer p {
  margin: 0;
}

body[dir="rtl"] {
  font-family: Arial, sans-serif;
}

@media (max-width: 900px) {
  .nav-links,
  .lang-switch {
    display: none;
  }

  .nav-links.open,
  .lang-switch.open {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .menu-toggle {
    display: block;
  }

  .hero-grid,
  .about-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .hero,
  .section {
    padding: 58px 0;
  }

  .product-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .logo-text small {
    display: none;
  }

  .hero-card,
  .contact-card,
  .product-card,
  .stats {
    border-radius: 22px;
  }
}
