﻿.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.85);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(10, 15, 13, 0.06);
  backdrop-filter: blur(16px) saturate(180%);
  transition: var(--transition);
}

.site-header:hover {
  box-shadow: 0 8px 30px rgba(10, 15, 13, 0.1);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0;
  color: var(--color-ink);
  transition: var(--transition);
}

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

.brand img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--color-primary-dark);
  border: 2px solid rgba(34, 197, 94, 0.2);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.25);
  transition: var(--transition);
}

.brand:hover img {
  transform: rotate(5deg) scale(1.05);
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.35);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  font-weight: 600;
  font-size: 0.98rem;
}

.site-nav a {
  position: relative;
  padding: 0.4rem 0;
  color: var(--color-ink-soft);
  transition: var(--transition);
}

.site-nav a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-nav a:hover {
  color: var(--color-primary);
  transform: translateY(-1px);
}

.site-nav a.is-active {
  color: var(--color-primary-dark);
}

.site-nav a:hover::before,
.site-nav a.is-active::before {
  width: 100%;
}

.nav-toggle {
  display: none;
  border: none;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #ffffff;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
}

.nav-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.1);
}

.nav-toggle:active {
  transform: scale(0.97);
}

main {
  display: block;
  flex: 1;
}

.hero {
  padding-top: clamp(3.6rem, 5vw, 6rem);
  padding-bottom: clamp(0.3rem, 0.6vw, 0.8rem);
}

.hero + section {
  padding-top: clamp(0.4rem, 0.8vw, 1rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 1;
}

.hero p {
  font-size: 1.05rem;
  color: var(--color-ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.badge {
  border: 1px solid rgba(15, 20, 18, 0.12);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  color: var(--color-ink-soft);
  box-shadow: 0 12px 30px rgba(15, 20, 18, 0.08);
}

.hero-visual {
  background: linear-gradient(150deg, #0e1d16 0%, #0c3425 55%, #0a1f18 100%);
  border-radius: var(--radius-xl);
  padding: 2rem;
  color: #f2fff7;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-visual::before,
.hero-visual::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.65;
  pointer-events: none;
}

.hero-visual::before {
  inset: -30% 60% auto -20%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(202, 255, 106, 0.55) 0%, transparent 65%);
}

.hero-visual::after {
  inset: auto -10% -20% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(27, 185, 123, 0.45) 0%, transparent 70%);
}

.hero-visual-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.4rem;
  margin-top: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.2rem;
}

.section-title h1,
.section-title h2 {
  font-size: clamp(2.1rem, 3vw, 2.9rem);
  line-height: 1.08;
}

.section-title p {
  max-width: 460px;
  color: var(--color-slate);
}

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

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.site-footer {
  padding: 1.8rem 0 1.4rem;
  background: #0c1512;
  color: #f2fff7;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 12px;
}

.footer-links a {
  display: block;
  margin-bottom: 0.4rem;
  color: rgba(242, 255, 247, 0.85);
}

.footer-links-list {
  margin-top: 0.8rem;
}

.footer-note {
  margin-top: 1rem;
  color: rgba(242, 255, 247, 0.7);
}

.footer-bottom {
  margin-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1rem;
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  color: rgba(242, 255, 247, 0.75);
}

@media (max-width: 900px) {
  .site-nav {
    position: absolute;
    right: 1.5rem;
    top: 4.5rem;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.96);
    padding: 1.5rem;
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    min-width: 220px;
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .site-header .container {
    padding: 0.85rem 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-title {
    flex-direction: column;
    align-items: flex-start;
  }
}
