:root {
  --primary: #990000;
  --primary-light: #b30000;
  --accent: #7f7f7f;
  --text: #1f1f1f;
  --muted: #6f6f6f;
  --background: #f8f8f8;
  --surface: #ffffff;
  --border: #e7e7e7;
  --shadow: 0 20px 45px rgba(153, 0, 0, 0.12);
  --radius: 22px;
  --radius-sm: 14px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
}

.section--alt {
  background: linear-gradient(135deg, #fbfdff 0%, #f3f7fc 100%);
}

.section-heading {
  max-width: 740px;
  margin-bottom: 2.5rem;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #7F7F7F;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.eyebrow--light {
  color: rgba(255,255,255,0.8);
}

h1,
h2,
h3 {
  font-family: 'Poppins', sans-serif;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--primary);
}

h1 {
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  font-weight: 800;
}

.hero h1 {
  background: linear-gradient(90deg, #ffffff 0%, #f6e8e8 35%, #e8dcdc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(1.8rem, 2.3vw, 2.5rem);
}

h3 {
  font-size: 1.15rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.45rem;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: 0 16px 36px rgba(30, 136, 229, 0.25);
}

.btn--secondary {
  background: rgba(255,255,255,0.15);
  color: white;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.24);
}

.btn--light {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow);
}

.btn--small {
  padding: 0.7rem 1rem;
}

.site-nav .btn--primary {
  color: #ffffff;
}

.site-nav .btn--primary:hover {
  color: #7F7F7F;
}

.loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: grid;
  place-items: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
}

.loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.loader__ring {
  width: 64px;
  height: 64px;
  border: 4px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(227, 235, 245, 0.8);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px rgba(10, 61, 145, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
}

.brand__logo {
  height: 48px;
  width: auto;
  display: block;
}

.brand__logo--footer {
  height: 56px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.site-nav a {
  color: var(--text);
  font-weight: 500;
  transition: color 0.25s ease;
}

.site-nav a:hover {
  color: var(--primary-light);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.3rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  margin: 4px 0;
  transition: 0.3s ease;
}

.hero {
  padding: 4rem 0 5rem;
  background: linear-gradient(140deg, #600000 0%, #990000 35%, #b30000 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: auto -8% -20% auto;
  width: 360px;
  height: 360px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  filter: blur(8px);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__text {
  font-size: 1.05rem;
  max-width: 680px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.6rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero__badges span {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 0.88rem;
}

.hero__visual img {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.about__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

.about__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.about__cards article,
.timeline,
.service-card,
.training-card,
.portfolio-card,
.testimonial-card,
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about__cards article {
  padding: 1.2rem;
}

.about__cards h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.about__sidebar {
  display: grid;
  gap: 1rem;
}

.timeline {
  padding: 1.3rem;
}

.timeline ul {
  padding-left: 1rem;
  margin: 0;
  color: var(--muted);
}

.timeline li + li {
  margin-top: 0.8rem;
}

.services-grid,
.training-grid,
.portfolio-grid {
  display: grid;
  gap: 1.3rem;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0,1fr));
}

.service-card,
.training-card {
  padding: 1.35rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover,
.training-card:hover,
.portfolio-card:hover,
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(10, 61, 145, 0.16);
}

.service-card__icon {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.training-grid {
  grid-template-columns: repeat(4, minmax(0,1fr));
}

.link-btn {
  color: var(--primary-light);
  font-weight: 600;
  display: inline-flex;
  margin-top: 0.7rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: white;
  color: var(--muted);
  cursor: pointer;
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.portfolio-grid {
  grid-template-columns: repeat(2, minmax(0,1fr));
}

.portfolio-card {
  overflow: hidden;
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.portfolio-card__content {
  padding: 1.1rem 1.2rem 1.3rem;
}

.portfolio-card.is-hidden {
  display: none;
}

.client-slider {
  overflow: hidden;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--border);
  padding: 1.25rem 0;
}

.client-track {
  display: flex;
  gap: 2rem;
  align-items: center;
  width: max-content;
  animation: scroll 20s linear infinite;
}

.client-track span {
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: #f4f8fc;
  color: var(--primary);
  font-weight: 600;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.testimonial-slider {
  position: relative;
  min-height: 340px;
}

.testimonial-card {
  display: none;
  padding: 1.6rem;
  text-align: center;
}

.testimonial-card.active {
  display: block;
}

.testimonial-card img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
}

.testimonial-card p {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.testimonial-card span {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

.testimonial-source {
  margin-top: 0.6rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.testimonial-source a {
  color: var(--primary-light);
  font-weight: 600;
}

.testimonial-source-label {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.testimonial-link {
  display: inline-flex;
  margin-top: 0.35rem;
  color: var(--primary-light);
  font-weight: 600;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c4d5eb;
  cursor: pointer;
}

.dot.active {
  background: var(--primary-light);
}

.stats-section {
  padding: 3rem 0 5.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1.2rem;
}

.stat {
  text-align: center;
  background: linear-gradient(135deg, rgba(153,0,0,0.94) 0%, rgba(179,0,0,0.95) 100%);
  color: white;
  padding: 1.6rem;
  border-radius: var(--radius);
}

.stat strong {
  display: block;
  font-size: 2rem;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 0.25rem;
}

.cta {
  padding: 0 0 5rem;
}

.cta__wrap {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border-radius: 30px;
  padding: 2.2rem 2.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.cta__wrap h2 {
  color: #7F7F7F;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
}

.contact-list {
  padding-left: 1rem;
  color: var(--muted);
}

.map-wrapper {
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.map-frame {
  width: 100%;
  min-height: 260px;
  border: 0;
  display: block;
  background: #f4f4f4;
}

.map-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--primary-light);
  font-weight: 600;
}

.contact-form {
  padding: 1.4rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.85rem;
  color: var(--primary);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fbff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(30,136,229,0.2);
  border-color: var(--primary-light);
}

.form-status {
  min-height: 1.5rem;
  color: var(--primary-light);
  margin-top: 0.8rem;
}

.site-footer {
  background: #990000;
  color: rgba(255,255,255,0.85);
  padding: 4rem 0 1.2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.8fr 0.8fr;
  gap: 1.4rem;
}

.site-footer h3 {
  color: white;
  margin-bottom: 0.9rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li + li {
  margin-top: 0.55rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.3rem;
  margin-top: 1.8rem;
  border-top: 1px solid rgba(255,255,255,0.16);
}

.social-links {
  display: flex;
  gap: 0.6rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: grid;
  place-items: center;
}

.back-to-top {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: white;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--right {
  transform: translateX(26px);
}

.reveal--right.is-visible {
  transform: translateX(0);
}

.ripple {
  animation: ripple 0.6s linear;
}

@keyframes ripple {
  from { transform: scale(0.96); opacity: 0.6; }
  to { transform: scale(1.05); opacity: 1; }
}

@media (max-width: 980px) {
  .services-grid,
  .training-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .about__grid,
  .contact-grid,
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .about__cards {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: flex-start;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    padding: 1rem;
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .services-grid,
  .training-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta__wrap,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
