/* =====================================================
   ACTIVEBOX — Redesigned CSS
   ===================================================== */

/* ===== CSS Variables ===== */
:root {
  --clr-bg-dark:    #0d0d1a;
  --clr-bg-medium:  #1a1a2e;
  --clr-surface:    #f8f9fc;
  --clr-white:      #ffffff;
  --clr-primary:    #e84545;
  --clr-primary-h:  #c73333;
  --clr-text-dark:  #111827;
  --clr-text-muted: #6b7280;
  --clr-text-light: #f9fafb;
  --clr-border:     #e5e7eb;

  --font-heading: 'Raleway', sans-serif;
  --font-body:    'Inter', sans-serif;

  --section-py: 100px;
  --container-max: 1140px;
  --radius: 12px;
  --transition: 0.3s ease;
}

/* ===== Base Reset ===== */
html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--clr-text-dark);
  background: var(--clr-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

a {
  text-decoration: none;
}

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

p {
  line-height: 1.7;
}

ul {
  list-style: none;
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

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

.btn--primary:hover {
  background: var(--clr-primary-h);
  border-color: var(--clr-primary-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 69, 69, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--clr-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--outline:hover {
  background: var(--clr-white);
  color: var(--clr-text-dark);
  border-color: var(--clr-white);
  transform: translateY(-2px);
}

/* ===== Section Header ===== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--clr-primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--clr-text-dark);
  line-height: 1.15;
}

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

.section-divider {
  width: 56px;
  height: 4px;
  background: var(--clr-primary);
  margin: 18px auto 22px;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--clr-text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-subtitle--light {
  color: rgba(255, 255, 255, 0.65);
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.10s; }
.reveal--delay-2 { transition-delay: 0.20s; }
.reveal--delay-3 { transition-delay: 0.30s; }
.reveal--delay-4 { transition-delay: 0.40s; }

/* =====================================================
   HEADER
   ===================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 22px 0;
  transition: padding 0.4s ease, box-shadow 0.4s ease;
}

/* Псевдоэлемент для frosted-glass эффекта.
   backdrop-filter НЕ на самом хедере — иначе Chrome создаёт
   fixed-positioning containing block и nav "съедается" внутрь хедера. */
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
  z-index: -1;
  pointer-events: none;
}

.header.scrolled {
  padding: 14px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

.header.scrolled::before {
  background: rgba(13, 13, 26, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clr-white);
  cursor: pointer;
  transition: opacity var(--transition);
  line-height: 1;
}

.header__logo:hover {
  opacity: 0.82;
}

.header__logo span {
  color: var(--clr-primary);
}

/* ===== Nav ===== */
.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.78);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-primary);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav__link:hover {
  color: var(--clr-white);
}

.nav__link:hover::after {
  width: 100%;
}

/* ===== Burger ===== */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  z-index: 1001;
}

.burger__line {
  width: 26px;
  height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: all 0.4s ease;
  transform-origin: center;
  display: block;
}

.burger.open .burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open .burger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger.open .burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--clr-bg-dark) url('../img/intro-bg.jpg') center / cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 13, 26, 0.92) 0%,
    rgba(13, 13, 26, 0.72) 50%,
    rgba(232, 69, 69, 0.12) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  padding: 0 24px;
}

.hero__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--clr-primary);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  color: var(--clr-white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.hero__typed-wrapper {
  font-size: clamp(1.1rem, 2.8vw, 1.7rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 28px;
  min-height: 2.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.hero__typed {
  color: var(--clr-primary);
  font-weight: 600;
}

.hero__cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--clr-primary);
  border-radius: 1px;
  animation: cursorBlink 0.8s step-end infinite;
  margin-left: 2px;
  vertical-align: middle;
  flex-shrink: 0;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero__text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero__btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.hero__scroll-arrow {
  width: 18px;
  height: 18px;
  border-right: 2px solid rgba(255, 255, 255, 0.35);
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
  transform: rotate(45deg);
  animation: scrollBounce 1.6s ease infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0);   opacity: 0.4; }
  50%       { transform: rotate(45deg) translateY(5px); opacity: 1;   }
}

/* =====================================================
   FEATURES
   ===================================================== */
.features {
  padding: var(--section-py) 0;
  background: var(--clr-white);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.features__item {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 40px 28px 36px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
}

.features__item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.09);
  border-color: var(--clr-primary);
}

.features__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.features__icon img {
  max-width: 100%;
  max-height: 100%;
}

.features__title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-text-dark);
  margin-bottom: 14px;
}

.features__text {
  font-size: 14px;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* =====================================================
   STATS
   ===================================================== */
.stats {
  padding: 80px 0;
  background: var(--clr-bg-medium);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stats__item {
  text-align: center;
  padding: 28px 16px;
  border-radius: var(--radius);
  transition: transform var(--transition);
}

.stats__item:hover {
  transform: scale(1.06);
}

.stats__number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--clr-primary);
  line-height: 1;
}

.stats__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 12px;
}

/* =====================================================
   WORKS
   ===================================================== */
.works-section {
  background: #0a0a12;
  padding-top: 80px;
  padding-bottom: 0;
}

.works__filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 9px 22px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: var(--clr-white);
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.works__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.works__item--hidden {
  display: none;
}

.works__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.works__item:hover .works__img {
  transform: scale(1.09);
}

.works__overlay {
  position: absolute;
  inset: 0;
  background: rgba(232, 69, 69, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  padding: 20px;
}

.works__item:hover .works__overlay {
  opacity: 1;
}

.works__title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-white);
  margin-bottom: 6px;
  text-align: center;
}

.works__desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

/* =====================================================
   TEAM
   ===================================================== */
.team {
  padding: var(--section-py) 0;
  background: var(--clr-surface);
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team__item {
  background: var(--clr-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.team__item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.team__img-wrap {
  overflow: hidden;
}

.team__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team__item:hover .team__img {
  transform: scale(1.05);
}

.team__info {
  padding: 22px 18px 20px;
}

.team__name {
  display: block;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--clr-text-dark);
  margin-bottom: 4px;
}

.team__prof {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-primary);
  margin-bottom: 14px;
}

.team__desc {
  font-size: 13px;
  color: var(--clr-text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

/* ===== Social ===== */
.social {
  display: flex;
  gap: 7px;
}

.social__item {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  transition: all var(--transition);
}

.social__item:hover {
  border-color: var(--clr-primary);
  background: var(--clr-primary);
}

.social__item:hover img {
  filter: brightness(0) invert(1);
}

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonials {
  padding: var(--section-py) 0;
  background: var(--clr-bg-dark);
}

.testimonials__slider {
  min-height: 260px;
}

.testimonial__slide {
  display: none;
  gap: 56px;
  align-items: center;
  animation: fadeSlide 0.5s ease;
}

.testimonial__slide.active {
  display: flex;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.testimonial__avatar {
  flex-shrink: 0;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  user-select: none;
}

.t-avatar--1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.t-avatar--2 { background: linear-gradient(135deg, #f57f7f, #c73333); }
.t-avatar--3 { background: linear-gradient(135deg, #43b89c, #2d7d6b); }

.testimonial__content {
  flex: 1;
}

.testimonial__quote {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-style: italic;
  color: var(--clr-text-light);
  line-height: 1.7;
  margin-bottom: 22px;
  font-family: Georgia, 'Times New Roman', serif;
}

.testimonial__author {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--clr-primary);
}

.testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}

.testimonials__btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: var(--clr-white);
  font-size: 18px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonials__btn:hover {
  border-color: var(--clr-primary);
  background: var(--clr-primary);
}

.testimonials__dots {
  display: flex;
  gap: 8px;
}

.testimonials__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.testimonials__dot.active {
  background: var(--clr-primary);
  transform: scale(1.35);
}

/* =====================================================
   FAQ
   ===================================================== */
.faq {
  padding: var(--section-py) 0;
  background: var(--clr-white);
}

.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq__item {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq__item.open {
  border-color: var(--clr-primary);
}

.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 26px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--clr-text-dark);
  cursor: pointer;
  text-align: left;
  gap: 16px;
  transition: background var(--transition), color var(--transition);
}

.faq__question:hover {
  background: rgba(232, 69, 69, 0.04);
}

.faq__item.open .faq__question {
  color: var(--clr-primary);
}

.faq__icon {
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
  color: var(--clr-text-muted);
  transition: transform 0.35s ease, color var(--transition);
  user-select: none;
}

.faq__item.open .faq__icon {
  transform: rotate(45deg);
  color: var(--clr-primary);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq__item.open .faq__answer {
  max-height: 400px;
}

.faq__answer-inner {
  padding: 0 26px 22px;
  font-size: 14px;
  color: var(--clr-text-muted);
  line-height: 1.75;
}

.faq__answer-inner code {
  font-family: 'Courier New', monospace;
  background: var(--clr-surface);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--clr-primary);
}

/* =====================================================
   CONTACT
   ===================================================== */
.contact {
  padding: var(--section-py) 0;
  background: var(--clr-surface);
}

.contact__form {
  max-width: 680px;
  margin: 0 auto;
}

.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 20px;
}

.contact__row .form-group {
  margin-bottom: 0;
}

.form-group:last-of-type {
  margin-bottom: 26px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--clr-text-dark);
  background: var(--clr-white);
  border: 2px solid var(--clr-border);
  border-radius: 10px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #adb5bd;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 4px rgba(232, 69, 69, 0.10);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
}

.form-error {
  font-size: 12px;
  color: #ef4444;
  font-weight: 500;
  min-height: 16px;
  line-height: 1;
}

.contact__form .btn {
  width: 100%;
  border-radius: 10px;
  padding: 16px;
  font-size: 15px;
}

.contact__success {
  display: none;
  text-align: center;
  padding: 48px 32px;
  background: var(--clr-white);
  border-radius: var(--radius);
  border: 2px solid #22c55e;
  max-width: 680px;
  margin: 0 auto;
}

.contact__success.visible {
  display: block;
}

.contact__success-icon {
  font-size: 52px;
  color: #22c55e;
  line-height: 1;
  margin-bottom: 18px;
}

.contact__success h3 {
  font-size: 22px;
  color: var(--clr-text-dark);
  margin-bottom: 10px;
}

.contact__success p {
  color: var(--clr-text-muted);
}

/* =====================================================
   CTA / DOWNLOAD
   ===================================================== */
.cta {
  padding: 88px 0;
  background: var(--clr-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.cta::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.cta__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.cta__subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.cta .btn--outline {
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--clr-white);
  position: relative;
  z-index: 1;
}

.cta .btn--outline:hover {
  background: var(--clr-white);
  color: var(--clr-primary);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--clr-bg-medium);
  padding: 72px 0 36px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer__grid > div {
  text-align: center;
}

.footer__title {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--clr-white);
  margin-bottom: 20px;
}

.footer__text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  transition: all var(--transition);
}

.footer__social-link:hover {
  border-color: var(--clr-primary);
  background: var(--clr-primary);
}

.footer__social-link img {
  filter: brightness(0) invert(0.7);
  transition: filter var(--transition);
}

.footer__social-link:hover img {
  filter: brightness(0) invert(1);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 26px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.32);
}

.footer__bottom a {
  color: rgba(20, 231, 231, 0.8);
  transition: color var(--transition);
}

.footer__bottom a:hover {
  color: #14e7e7;
}

/* =====================================================
   BACK TO TOP
   ===================================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 900;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: var(--clr-white);
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(232, 69, 69, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease, background var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--clr-primary-h);
  transform: translateY(-3px);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* ≤ 1100px */
@media (max-width: 1100px) {
  .works__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ≤ 992px */
@media (max-width: 992px) {
  :root { --section-py: 72px; }

  .nav {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: rgba(13, 13, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.4s ease, visibility 0.4s;
    z-index: 999;
  }

  .nav.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: all;
  }

  .nav__link {
    font-size: 16px;
    letter-spacing: 0.12em;
  }

  .burger {
    display: flex;
  }

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

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

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

  .testimonial__slide.active {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
  }

  .testimonial__avatar {
    width: 140px;
    height: 140px;
    font-size: 2rem;
  }
}

/* ===== Nav overlay ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.nav-overlay.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* ≤ 768px */
@media (max-width: 768px) {
  .hero__title {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .contact__row {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ≤ 576px */
@media (max-width: 576px) {
  :root { --section-py: 56px; }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .works__grid {
    grid-template-columns: 1fr;
  }

  .team__grid {
    grid-template-columns: 1fr;
  }

  .hero__btns {
    flex-direction: column;
    align-items: center;
  }

  .hero__btns .btn {
    width: 100%;
    max-width: 280px;
  }

  .back-to-top {
    bottom: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .section-header {
    margin-bottom: 44px;
  }

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

/* ≤ 400px */
@media (max-width: 400px) {
  .stats__grid {
    grid-template-columns: 1fr 1fr;
  }

  .filter-btn {
    padding: 7px 14px;
    font-size: 11px;
  }
}
