/* ============================================================
   ПРОБИЗНЕС-ЛАЙТ — Modern Business Card Website
   Style Sheet
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --color-primary:    #E8A020;
  --color-primary-dk: #c8881a;
  --color-dark:       #1a1f2e;
  --color-dark-2:     #242b3d;
  --color-dark-3:     #2e3650;
  --color-text:       #2d3748;
  --color-text-muted: #718096;
  --color-bg:         #f7f8fc;
  --color-bg-alt:     #eef0f6;
  --color-white:      #ffffff;
  --color-border:     #e2e8f0;

  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 8px 30px rgba(0,0,0,0.12);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.18);

  --transition: 0.3s ease;
  --max-width:  1200px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  /* scroll-behavior: smooth; removed to prevent conflicts with JS scroll and mobile issues */
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

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

/* ---- Section Helpers ---- */
.section { padding: 100px 0; }

.section-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(232,160,32,0.4);
  border-radius: 100px;
  background: rgba(232,160,32,0.08);
}
.section-label.center { display: block; text-align: center; margin-left: auto; margin-right: auto; width: fit-content; }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-title.center { text-align: center; }

.section-subtitle {
  font-size: 17px;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 60px;
}
.section-subtitle.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-dark);
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-dk);
  border-color: var(--color-primary-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 160, 32, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.6);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn--large { padding: 18px 44px; font-size: 17px; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 20px 0;
}

.header.scrolled {
  background: rgba(26, 31, 46, 0.98); /* Increased opacity for visibility without blur if needed */
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  padding: 12px 0;
}

/* Optimization for mobile scroll */
@media (max-width: 768px) {
  .header.scrolled {
    backdrop-filter: none; /* Disable heavy blur on mobile to prevent "hanging" */
    background: rgba(26, 31, 46, 1); /* Solid background for clarity */
  }
}

/* Mobile Menu Overlay */
.nav-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7); /* Darker for better contrast */
  backdrop-filter: blur(4px);
  z-index: 998; /* Under the header but above content */
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  pointer-events: none;
}

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

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.logo__icon { flex-shrink: 0; }
.logo__text {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 1px;
}
.logo__text span { color: var(--color-primary); }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav__link {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 14px; right: 14px;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 2px;
}
.nav__link:hover { color: var(--color-white); }
.nav__link:hover::after { transform: scaleX(1); }

.header__phone {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  padding: 10px 20px;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  flex-shrink: 0;
}
.header__phone:hover {
  background: var(--color-primary);
  color: var(--color-dark);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-dark);
  overflow: hidden;
}

/* Animated gradient background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(232,160,32,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(46,54,80,0.8) 0%, transparent 70%),
    linear-gradient(135deg, #1a1f2e 0%, #242b3d 50%, #1a2a3a 100%);
  z-index: 0;
}

/* Grid pattern overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26,31,46,0.6) 0%, transparent 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 120px 24px 80px;
}

.hero__label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 20px;
  padding: 6px 16px;
  border: 1px solid rgba(232,160,32,0.4);
  border-radius: 100px;
  background: rgba(232,160,32,0.08);
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero__subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero__scroll-hint span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  position: relative;
}
.hero__scroll-hint span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 2px;
  animation: scrollHint 2s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.3; transform: translateX(-50%) translateY(10px); }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats {
  background: var(--color-primary);
  padding: 0;
}

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

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
  border-right: 1px solid rgba(255,255,255,0.2);
  transition: background var(--transition);
}
.stats__item:last-child { border-right: none; }
.stats__item:hover { background: rgba(0,0,0,0.08); }

.stats__number {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1;
  margin-bottom: 6px;
}

.stats__label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(26,31,46,0.75);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--color-white); }

.about__header {
  margin-bottom: 60px;
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__desc {
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about__details {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about__detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--color-text);
  font-weight: 500;
}

.about__detail-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* About image card */
.about__image-wrap { 
  position: relative;
  width: 100%;
}

.about__image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-dark);
  width: 100%;
  aspect-ratio: 16 / 10;
}

.about__svg {
  width: 100%;
  height: 100%;
  display: block;
}

.about__badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--color-primary);
  color: var(--color-dark);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about__badge-num {
  display: block;
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}
.about__badge-text {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--color-bg); }

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

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  width: 94px;
  height: 94px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card__icon svg { width: 100%; height: 100%; }

.service-card__title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.service-card__desc {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================================
   ADVANTAGES
   ============================================================ */
.advantages { background: var(--color-dark); }
.advantages .section-label { color: var(--color-primary); }
.advantages .section-title { color: var(--color-white); }

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.adv-card {
  background: var(--color-dark-2);
  padding: 44px 36px;
  transition: background var(--transition);
  position: relative;
}
.adv-card:hover { background: var(--color-dark-3); }

.adv-card__num {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 16px;
  transition: opacity var(--transition);
}
.adv-card:hover .adv-card__num { opacity: 0.5; }

.adv-card__title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
}

.adv-card__desc {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, #d4891a 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta__title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.cta__text {
  font-size: 17px;
  color: rgba(26,31,46,0.8);
  margin-bottom: 40px;
  line-height: 1.7;
}

.cta .btn--primary {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-white);
}
.cta .btn--primary:hover {
  background: var(--color-dark-3);
  border-color: var(--color-dark-3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ============================================================
   CONTACTS
   ============================================================ */
.contacts { background: var(--color-bg); }

.contacts__desc {
  font-size: 16px;
  color: var(--color-text);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 768px) {
  .contacts__desc {
    font-size: 15px;
    margin-bottom: 32px;
    line-height: 1.5;
    max-width: 85%;
    word-spacing: 0.05em;
  }
}

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

.contact-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.contact-card__icon {
  width: 52px;
  height: 52px;
  background: rgba(232,160,32,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: background var(--transition);
}
.contact-card__icon svg { width: 24px; height: 24px; }
.contact-card:hover .contact-card__icon { background: rgba(232,160,32,0.2); }

.contact-card__title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.contact-card__value {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  display: block;
  margin-bottom: 8px;
  line-height: 1.5;
}
.contact-card__value--link {
  color: var(--color-primary);
  transition: color var(--transition);
  white-space: normal;
}
.contact-card__value--link:hover { color: var(--color-primary-dk); }

.contact-card__note {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Legal */
.legal {
  text-align: center;
  padding: 24px;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  border: none;
  font-size: 14px;
  color: #000;
  font-family: var(--font-head);
  font-weight: 500;
}

.legal__text {
  display: block;
}

.legal__separator {
  display: inline;
  margin: 0 8px;
}

@media (max-width: 768px) {
  .legal {
    padding: 16px 12px;
    font-size: 12px;
  }
  
  .legal__text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    line-height: 1.6;
  }
  
  .legal__separator {
    display: none;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-dark);
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.logo--footer .logo__text { font-size: 16px; }

.footer__copy {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
}

.footer__copy-line1 {
  display: inline;
}

.footer__copy-line2 {
  display: inline;
}

.footer__separator {
  display: inline;
  margin: 0 4px;
}

@media (max-width: 768px) {
  .footer__copy {
    margin-left: 0;
    justify-content: center;
    flex-direction: column;
    gap: 0;
  }
  
  .footer__copy-line1 {
    display: block;
    text-align: center;
  }
  
  .footer__copy-line2 {
    display: block;
    text-align: center;
  }
}

.footer__links {
  display: flex;
  gap: 20px;
}
.footer__link {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-head);
  font-weight: 600;
  transition: color var(--transition);
}
.footer__link:hover { color: var(--color-primary); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(232,160,32,0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--color-primary-dk);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(232,160,32,0.5);
}
.back-to-top svg { width: 22px; height: 22px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }
.fade-in-delay-6 { transition-delay: 0.6s; }

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

/* Tablet: ≤ 1024px */
@media (max-width: 1024px) {
  .about__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about__image-wrap { max-width: 500px; margin: 0 auto; }

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

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

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

/* Mobile: ≤ 768px */
@media (max-width: 768px) {
  .section { padding: 72px 0; }

  /* Header */
  .header__phone { display: none; }
  .burger { display: flex; }

  .nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 31, 46, 0.99);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transform: translateX(-100%);
    transition: transform var(--transition), visibility var(--transition);
    z-index: 999;
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
  }
  .nav.open { 
    transform: translateX(0); 
    visibility: visible;
    pointer-events: auto;
  }

  .nav__link {
    font-size: 22px;
    padding: 14px 24px;
  }
  .nav__link::after { display: none; }

  /* Hero */
  .hero__content { padding: 100px 24px 60px; }
  .hero__title { font-size: clamp(32px, 8vw, 52px); }
  .hero__subtitle { font-size: 16px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { text-align: center; justify-content: center; }

  /* Stats */
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .stats__item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.2); }
  .stats__item:nth-last-child(-n+2) { border-bottom: none; }
  /* Исправление: принудительный разделитель для 3-го блока, чтобы отделить его от 4-го */
  .stats__item:nth-child(3) { border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important; }

  /* Services */
  .services__grid { grid-template-columns: 1fr; }

  /* Advantages */
  .advantages__grid { grid-template-columns: 1fr; }

  /* Contacts */
  .contacts__grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__copy { margin-left: 0; }

  /* Back to top */
  .back-to-top { bottom: 20px; right: 20px; }
}

/* Small mobile: ≤ 480px */
@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr; }
  .stats__item { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .stats__item:last-child { border-bottom: none; }
}
