:root {
  --primary: #1a3a5c;
  --primary-light: #2c5a82;
  --primary-dark: #0f2440;
  --accent: #e8a87c;
  --accent-light: #f2c4a8;
  --accent-dark: #d18b5a;
  --bg: #f7f5f2;
  --bg-card: #ffffff;
  --bg-alt: #efeae4;
  --text: #2d2a26;
  --text-secondary: #6b6560;
  --text-light: #9c9690;
  --border: #e0d9d2;
  --shadow-sm: 0 2px 8px rgba(26, 58, 92, 0.06);
  --shadow-md: 0 4px 20px rgba(26, 58, 92, 0.1);
  --shadow-lg: 0 8px 40px rgba(26, 58, 92, 0.14);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px rgba(26, 58, 92, 0.12);
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #6ba3d6;
    --primary-light: #8bbde8;
    --primary-dark: #4a87b8;
    --accent: #e8a87c;
    --accent-light: #f2c4a8;
    --accent-dark: #d18b5a;
    --bg: #121418;
    --bg-card: #1c1f26;
    --bg-alt: #232730;
    --text: #e8e4df;
    --text-secondary: #a8a29c;
    --text-light: #7a756f;
    --border: #2e333d;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(28, 31, 38, 0.78);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--accent);
}

ul, ol {
  list-style: none;
}

/* ==================== HEADER ==================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: background var(--transition), box-shadow var(--transition);
}

header nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

header nav > a:first-child {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.04em;
  white-space: nowrap;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

header nav > a:first-child::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

header nav > a:first-child:hover::after {
  transform: scaleX(1);
}

header nav > a:first-child:hover {
  color: var(--accent);
}

header nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

header nav ul li a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  position: relative;
  transition: all var(--transition);
}

header nav ul li a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(232, 168, 124, 0.12), rgba(26, 58, 92, 0.08));
  opacity: 0;
  transform: scale(0.85);
  transition: all var(--transition);
}

header nav ul li a:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

header nav ul li a:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* ==================== MAIN ==================== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

section {
  margin-bottom: 72px;
  scroll-margin-top: 84px;
}

section h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 28px;
  padding-bottom: 14px;
  position: relative;
  letter-spacing: 0.02em;
}

section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 64px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
}

section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 12px;
  letter-spacing: 0.01em;
}

section p {
  margin-bottom: 14px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.9;
}

section strong {
  color: var(--primary);
  font-weight: 700;
}

/* ==================== HERO ==================== */
#hero {
  position: relative;
  margin: 32px 0 72px;
  padding: 72px 48px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #1a3a5c 0%, #2c5a82 40%, #3d7ab5 70%, #e8a87c 100%);
  background-size: 200% 200%;
  animation: heroGradient 12s ease infinite;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  color: #fff;
}

#hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 168, 124, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

#hero p {
  font-size: 1rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.88);
  max-width: 800px;
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
}

#hero strong {
  color: #ffe4c4;
  font-weight: 700;
}

/* ==================== BRAND ==================== */
#brand {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}

#brand:hover {
  box-shadow: var(--shadow-md);
}

#brand address {
  font-style: normal;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-top: 20px;
  border-left: 4px solid var(--accent);
}

#brand address p {
  margin-bottom: 6px;
  font-size: 0.9rem;
}

#brand address p:last-child {
  margin-bottom: 0;
}

/* ==================== PRODUCTS ==================== */
#products {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

#products:hover {
  box-shadow: var(--shadow-md);
}

/* ==================== ADVANTAGES ==================== */
#advantages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

#advantages h2 {
  grid-column: 1 / -1;
}

#advantages h3 {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px 28px 20px;
  margin: 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

#advantages h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

#advantages h3:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

#advantages h3:hover::before {
  transform: scaleX(1);
}

#advantages h3 + p {
  background: var(--bg-card);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 0 28px 28px;
  margin-top: -20px;
  border: 1px solid var(--border);
  border-top: none;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

#advantages h3:hover + p {
  box-shadow: var(--shadow-lg);
}

/* ==================== SOLUTIONS ==================== */
#solutions {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

#solutions:hover {
  box-shadow: var(--shadow-md);
}

/* ==================== CASES ==================== */
#cases {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

#cases:hover {
  box-shadow: var(--shadow-md);
}

#cases blockquote {
  position: relative;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 28px 28px 28px 56px;
  margin: 20px 0;
  border-left: 4px solid var(--accent);
  transition: transform var(--transition), box-shadow var(--transition);
}

#cases blockquote::before {
  content: "\201C";
  position: absolute;
  top: 12px;
  left: 20px;
  font-size: 3rem;
  color: var(--accent);
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.6;
}

#cases blockquote:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

#cases blockquote p {
  margin: 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* ==================== NEWS ==================== */
#news article {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px 28px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

#news article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--primary-light));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

#news article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}

#news article:hover::before {
  transform: scaleY(1);
}

#news article h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

#news article time {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 10px;
  font-weight: 500;
}

#news article p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

/* ==================== ARTICLES ==================== */
#articles article {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px 28px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

#articles article::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light), var(--accent));
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

#articles article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

#articles article:hover::after {
  transform: scaleX(1);
}

#articles article h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

#articles article time {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 10px;
  font-weight: 500;
}

#articles article p {
  font-size: 0.92rem;
  margin-bottom: 12px;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-dark);
  padding: 4px 0;
  position: relative;
  transition: color var(--transition), gap var(--transition);
}

#articles article a::after {
  content: "\2192";
  transition: transform var(--transition);
}

#articles article a:hover {
  color: var(--primary);
  gap: 8px;
}

#articles article a:hover::after {
  transform: translateX(2px);
}

/* ==================== HOWTO ==================== */
#howto {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

#howto:hover {
  box-shadow: var(--shadow-md);
}

#howto ul,
#howto ol {
  padding-left: 0;
  margin: 12px 0 20px;
}

#howto ul li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), padding-left var(--transition);
}

#howto ul li:last-child {
  border-bottom: none;
}

#howto ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  transition: transform var(--transition);
}

#howto ul li:hover {
  background: var(--bg-alt);
  padding-left: 36px;
  border-radius: var(--radius-sm);
}

#howto ul li:hover::before {
  transform: scale(1.3);
}

#howto ol {
  counter-reset: howto-counter;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#howto ol li {
  position: relative;
  padding: 18px 20px 18px 64px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  counter-increment: howto-counter;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: 1px solid transparent;
}

#howto ol li::before {
  content: counter(howto-counter);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

#howto ol li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
  background: var(--bg-card);
  border-color: var(--accent-light);
}

#howto ol li:hover::before {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(232, 168, 124, 0.4);
}

#howto ol li strong {
  color: var(--primary);
  font-weight: 700;
}

/* ==================== FAQ ==================== */
#faq details {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}

#faq details[open] {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}

#faq details:hover {
  border-color: var(--accent);
}

#faq summary {
  padding: 20px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  transition: color var(--transition), background var(--transition);
  user-select: none;
}

#faq summary::-webkit-details-marker {
  display: none;
}

#faq summary::before {
  content: "+";
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  transition: transform var(--transition), background var(--transition);
  line-height: 1;
}

#faq details[open] summary::before {
  content: "\2212";
  transform: rotate(180deg);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

#faq summary:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

#faq details p {
  padding: 0 28px 24px 66px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--text-secondary);
  animation: faqFadeIn 0.3s ease;
}

@keyframes faqFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== CONTACT ==================== */
#contact {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

#contact:hover {
  box-shadow: var(--shadow-md);
}

#contact address {
  font-style: normal;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-top: 16px;
  border-left: 4px solid var(--primary);
}

#contact address p {
  margin-bottom: 6px;
  font-size: 0.9rem;
}

#contact address p:last-child {
  margin-bottom: 0;
}

/* ==================== SITEMAP ==================== */
#sitemap {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

#sitemap nav ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}

#sitemap nav ul li a {
  display: block;
  padding: 10px 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  transition: all var(--transition);
  border: 1px solid transparent;
}

#sitemap nav ul li a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary);
}

/* ==================== FOOTER SECTION ==================== */
#footer {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 0;
}

#footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
}

#footer ul li a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 4px 0;
  position: relative;
  transition: color var(--transition);
}

#footer ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

#footer ul li a:hover {
  color: var(--accent-dark);
}

#footer ul li a:hover::after {
  transform: scaleX(1);
}

/* ==================== FOOTER ==================== */
footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: rgba(255, 255, 255, 0.8);
  padding: 48px 24px 36px;
  text-align: center;
  margin-top: 0;
}

footer p {
  font-size: 0.85rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

footer nav a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

footer nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

footer nav a:hover {
  color: var(--accent-light);
}

footer nav a:hover::after {
  transform: scaleX(1);
}

/* ==================== SCROLL ANIMATIONS ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

section {
  animation: fadeInUp 0.7s ease both;
}

#hero {
  animation: heroGradient 12s ease infinite, scaleIn 0.8s ease both;
}

#brand {
  animation-delay: 0.05s;
}

#products {
  animation-delay: 0.1s;
}

#advantages h3 {
  animation: fadeInUp 0.6s ease both;
}

#advantages h3:nth-child(2) { animation-delay: 0.05s; }
#advantages h3:nth-child(3) { animation-delay: 0.1s; }
#advantages h3:nth-child(4) { animation-delay: 0.15s; }
#advantages h3:nth-child(5) { animation-delay: 0.2s; }

#news article {
  animation: fadeInUp 0.6s ease both;
}

#news article:nth-child(2) { animation-delay: 0.05s; }
#news article:nth-child(3) { animation-delay: 0.1s; }
#news article:nth-child(4) { animation-delay: 0.15s; }
#news article:nth-child(5) { animation-delay: 0.2s; }
#news article:nth-child(6) { animation-delay: 0.25s; }

#articles article {
  animation: fadeInUp 0.6s ease both;
}

#articles article:nth-child(2) { animation-delay: 0.04s; }
#articles article:nth-child(3) { animation-delay: 0.08s; }
#articles article:nth-child(4) { animation-delay: 0.12s; }
#articles article:nth-child(5) { animation-delay: 0.16s; }
#articles article:nth-child(6) { animation-delay: 0.2s; }
#articles article:nth-child(7) { animation-delay: 0.24s; }
#articles article:nth-child(8) { animation-delay: 0.28s; }
#articles article:nth-child(9) { animation-delay: 0.32s; }
#articles article:nth-child(10) { animation-delay: 0.36s; }
#articles article:nth-child(11) { animation-delay: 0.4s; }

#faq details {
  animation: fadeInUp 0.5s ease both;
}

#faq details:nth-child(2) { animation-delay: 0.03s; }
#faq details:nth-child(3) { animation-delay: 0.06s; }
#faq details:nth-child(4) { animation-delay: 0.09s; }
#faq details:nth-child(5) { animation-delay: 0.12s; }
#faq details:nth-child(6) { animation-delay: 0.15s; }
#faq details:nth-child(7) { animation-delay: 0.18s; }
#faq details:nth-child(8) { animation-delay: 0.21s; }
#faq details:nth-child(9) { animation-delay: 0.24s; }
#faq details:nth-child(10) { animation-delay: 0.27s; }
#faq details:nth-child(11) { animation-delay: 0.3s; }
#faq details:nth-child(12) { animation-delay: 0.33s; }
#faq details:nth-child(13) { animation-delay: 0.36s; }
#faq details:nth-child(14) { animation-delay: 0.39s; }
#faq details:nth-child(15) { animation-delay: 0.42s; }
#faq details:nth-child(16) { animation-delay: 0.45s; }

/* ==================== RESPONSIVE ==================== */
@media (min-width: 640px) {
  #advantages {
    grid-template-columns: 1fr 1fr;
  }

  #advantages h2 {
    grid-column: 1 / -1;
  }

  #advantages h3:nth-child(2) {
    grid-column: 1;
  }

  #advantages h3:nth-child(3) {
    grid-column: 2;
  }

  #advantages h3:nth-child(4) {
    grid-column: 1;
  }

  #advantages h3:nth-child(5) {
    grid-column: 2;
  }
}

@media (min-width: 900px) {
  main {
    padding: 0 32px 100px;
  }

  section {
    margin-bottom: 88px;
  }

  section h2 {
    font-size: 2rem;
  }

  #hero {
    padding: 88px 64px;
  }

  #hero h1 {
    font-size: 2.6rem;
  }

  #hero p {
    font-size: 1.05rem;
  }

  #brand,
  #products,
  #solutions,
  #cases,
  #howto,
  #contact,
  #sitemap,
  #footer {
    padding: 48px 48px;
  }

  #news article,
  #articles article {
    padding: 32px 36px;
  }
}

@media (min-width: 1100px) {
  #advantages {
    grid-template-columns: repeat(4, 1fr);
  }

  #advantages h2 {
    grid-column: 1 / -1;
  }

  #advantages h3:nth-child(2) {
    grid-column: 1 / 3;
  }

  #advantages h3:nth-child(3) {
    grid-column: 3 / 5;
  }

  #advantages h3:nth-child(4) {
    grid-column: 1 / 3;
  }

  #advantages h3:nth-child(5) {
    grid-column: 3 / 5;
  }
}

@media (max-width: 768px) {
  header nav {
    padding: 0 16px;
    height: auto;
    min-height: 60px;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  header nav > a:first-child {
    font-size: 1.15rem;
  }

  header nav ul {
    width: 100%;
    justify-content: flex-start;
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  header nav ul::-webkit-scrollbar {
    display: none;
  }

  header nav ul li a {
    font-size: 0.8rem;
    padding: 5px 10px;
    white-space: nowrap;
  }

  main {
    padding: 0 16px 60px;
  }

  section {
    margin-bottom: 48px;
    scroll-margin-top: 100px;
  }

  section h2 {
    font-size: 1.35rem;
    margin-bottom: 20px;
  }

  section h3 {
    font-size: 1.05rem;
  }

  #hero {
    margin: 20px 0 48px;
    padding: 40px 24px;
    border-radius: var(--radius-lg);
  }

  #hero h1 {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }

  #hero p {
    font-size: 0.9rem;
    line-height: 1.85;
  }

  #brand,
  #products,
  #solutions,
  #cases,
  #howto,
  #contact,
  #sitemap,
  #footer {
    padding: 28px 20px;
    border-radius: var(--radius-md);
  }

  #brand address,
  #contact address {
    padding: 18px 20px;
  }

  #advantages h3 {
    padding: 22px 22px 16px;
  }

  #advantages h3 + p {
    padding: 0 22px 22px;
  }

  #news article,
  #articles article {
    padding: 22px 20px;
  }

  #news article h3,
  #articles article h3 {
    font-size: 1rem;
  }

  #howto ol li {
    padding: 16px 16px 16px 56px;
  }

  #howto ol li::before {
    left: 14px;
    width: 28px;
    height: 28px;
    font-size: 0.78rem;
  }

  #faq summary {
    padding: 16px 20px;
    font-size: 0.9rem;
  }

  #faq details p {
    padding: 0 20px 20px 58px;
    font-size: 0.85rem;
  }

  #sitemap nav ul {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 6px;
  }

  #sitemap nav ul li a {
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  footer {
    padding: 36px 16px 28px;
  }

  footer p {
    font-size: 0.78rem;
  }

  footer nav {
    gap: 6px 16px;
  }

  footer nav a {
    font-size: 0.78rem;
  }
}

@media (max-width: 400px) {
  #hero {
    padding: 32px 18px;
  }

  #hero h1 {
    font-size: 1.3rem;
  }

  #hero p {
    font-size: 0.85rem;
  }

  #brand,
  #products,
  #solutions,
  #cases,
  #howto,
  #contact,
  #sitemap,
  #footer {
    padding: 22px 16px;
  }

  section h2 {
    font-size: 1.2rem;
  }
}

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  #hero {
    animation: none;
    background: linear-gradient(135deg, #1a3a5c 0%, #2c5a82 40%, #3d7ab5 70%, #e8a87c 100%);
  }
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ==================== PRINT ==================== */
@media print {
  header,
  footer,
  #hero {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }

  #hero h1,
  #hero p {
    color: #000 !important;
  }

  section {
    animation: none !important;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }

  a {
    color: #000 !important;
    text-decoration: underline !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}