:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --primary: #ea580c;
  --primary-soft: #ffedd5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

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

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

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

.page-header {
  background: white;
  border-bottom: 1px solid var(--line);
}

.hero {
  background:
    linear-gradient(135deg, rgba(234, 88, 12, 0.96), rgba(249, 115, 22, 0.88)),
    radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 30%);
  color: white;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-main {
  color: var(--text);
}

.hero .brand-main {
  color: white;
}

.brand-accent {
  color: #fdba74;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-inline-start: auto;
}

.nav-links a {
  color: inherit;
  font-weight: 600;
  font-size: 0.96rem;
  opacity: 0.95;
}

.nav-links a:hover {
  opacity: 1;
}

.hero-content {
  padding: 4rem 0 4.5rem;
}

.hero-content h1 {
  margin: 0.7rem 0 1rem;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.2;
  max-width: 900px;
}

.hero-content p {
  max-width: 760px;
  font-size: 1.05rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.page-intro {
  padding: 1.2rem 0 2rem;
}

.page-intro h1 {
  margin: 0.7rem 0 0.75rem;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.2;
}

.page-intro p {
  margin: 0;
  max-width: 780px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.hero .badge {
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.92rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border-radius: 14px;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-secondary {
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1px solid rgba(255,255,255,0.18);
}

.page-header .btn-secondary,
.section .btn-secondary,
.footer .btn-secondary {
  background: white;
  color: var(--text);
  border: 1px solid var(--line);
}

.section {
  padding: 4rem 0;
}

.section-muted {
  background: #f1f5f9;
}

.section h2 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card,
.feature-card,
.article-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.25rem;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
  transition: 0.2s ease;
}

.card h3,
.feature-card h3,
.article-card h3,
.card h2,
.feature-card h2,
.article-card h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.08rem;
}

.card p,
.feature-card p,
.article-card p {
  margin: 0;
  color: var(--muted);
}

.card-link,
.feature-link,
.timeline-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-link:hover .card,
.feature-link:hover .feature-card,
.timeline-link:hover .timeline-item {
  transform: translateY(-2px);
  transition: 0.2s ease;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  border-color: #fdba74;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.article-card:hover {
  transform: translateY(-2px);
  transition: 0.2s ease;
  border-color: #fdba74;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.post-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  border-color: #fdba74;
}

.post-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.post-card-content {
  padding: 18px;
}

.post-card h2 {
  font-size: 1.1rem;
  margin: 10px 0 8px;
  line-height: 1.6;
}

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

.timeline {
  display: grid;
  gap: 0.9rem;
}

.timeline-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  transition: 0.2s ease;
}

.timeline-item strong {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  flex-shrink: 0;
}

.footer {
  border-top: 1px solid var(--line);
  background: white;
}

.footer-row {
  padding: 1.2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .grid.three,
  .grid.two,
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .nav,
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    margin-inline-start: 0;
    justify-content: flex-start;
  }

  .hero-content {
    padding: 3rem 0 3.4rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1rem, 1120px);
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .btn {
    width: 100%;
  }

  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }
}
