:root {
  --primary: #0a2540;
  --secondary: #00d4ff;
  --accent: #ff6200;
  --background: #f8f9fa;
  --text: #1a1a1a;
  --white: #ffffff;
  --shadow: 0 8px 24px rgba(10, 37, 64, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.narrow {
  max-width: 620px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 999;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(10, 37, 64, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  text-decoration: none;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
}

.logo img {
  display: block;
  height: 42px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
}

.menu-toggle {
  display: none;
}

.section {
  min-height: 100vh;
  padding: 6.5rem 0 4rem;
  display: flex;
  align-items: center;
}

.hero {
  min-height: 100vh;
  background:
    linear-gradient(rgba(10, 37, 64, 0.72), rgba(10, 37, 64, 0.72)),
    url("./assets/hero.jpg") center / cover no-repeat;
  color: var(--white);
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  margin-bottom: 1rem;
}

.hero p {
  max-width: 720px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.section-title {
  text-align: center;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  margin: 0 0 2rem;
  text-transform: uppercase;
  color: var(--primary);
}

.section-title.light {
  color: var(--white);
}

.section-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  background: var(--accent);
  margin: 0.7rem auto 0;
}

.section-light {
  background: var(--white);
}

.section-alt {
  background: #f0f4f8;
}

.section-dark {
  background:
    linear-gradient(rgba(10, 37, 64, 0.78), rgba(10, 37, 64, 0.78)),
    url("./assets/reviews.jpg") center / cover no-repeat;
  color: var(--white);
}

.section-black {
  background:
    linear-gradient(rgba(17, 17, 17, 0.78), rgba(17, 17, 17, 0.78)),
    url("./assets/unsubscribe.jpg") center / cover no-repeat;
  color: var(--white);
}

.section-legal {
  background: #eef2f5;
}

#statistics.section-light {
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
    url("./assets/statistics.jpg") center / cover no-repeat;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.about-copy p {
  color: #4a4a4a;
  line-height: 1.7;
}

.image-frame {
  border-radius: 12px;
  min-height: 260px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.image-frame img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

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

.service-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card h3 {
  color: #008db0;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 24px rgba(10, 37, 64, 0.15);
}

.carousel {
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s ease-in-out;
}

.review {
  min-width: 100%;
  text-align: center;
  padding: 0.5rem 0.25rem;
}

.review h3 {
  color: var(--secondary);
}

.stars {
  color: gold;
  letter-spacing: 0.2em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}

.stat-box {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1rem;
}

.stat-number {
  margin: 0;
  font-size: 2.5rem;
  color: var(--accent);
  font-weight: 700;
}

.chart-wrap {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.legal-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.2rem;
  line-height: 1.7;
  color: #3e4a57;
}

.legal-image {
  margin-bottom: 1rem;
  min-height: 200px;
}

.contact-image {
  margin-bottom: 1rem;
  min-height: 240px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form input,
.form textarea {
  width: 100%;
  border: 1px solid #d5dde6;
  border-radius: 8px;
  padding: 0.85rem;
  font: inherit;
}

.form input:focus,
.form textarea:focus {
  outline: 2px solid rgba(0, 212, 255, 0.35);
  border-color: var(--secondary);
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
  text-decoration: none;
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

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

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

.feedback {
  margin: 0;
  min-height: 1.2rem;
  font-size: 0.95rem;
  color: #2f6b2f;
}

.feedback.light {
  color: #8be7ff;
}

footer {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 1rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .about-grid,
  .services-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: block;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: var(--white);
    border-radius: 6px;
    padding: 0.45rem 0.7rem;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 0.8rem;
  }

  .nav-links.open {
    display: flex;
  }
}
