/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Scroll Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.animate-left {
  transform: translateX(-30px);
}

.animate-on-scroll.animate-left.animated {
  transform: translateX(0);
}

.animate-on-scroll.animate-right {
  transform: translateX(30px);
}

.animate-on-scroll.animate-right.animated {
  transform: translateX(0);
}

.animate-on-scroll.animate-scale {
  transform: scale(0.9);
}

.animate-on-scroll.animate-scale.animated {
  transform: scale(1);
}

/* Stagger animation delays for children */
.stagger-children > *:nth-child(1) {
  transition-delay: 0s;
}
.stagger-children > *:nth-child(2) {
  transition-delay: 0.1s;
}
.stagger-children > *:nth-child(3) {
  transition-delay: 0.2s;
}
.stagger-children > *:nth-child(4) {
  transition-delay: 0.3s;
}
.stagger-children > *:nth-child(5) {
  transition-delay: 0.4s;
}
.stagger-children > *:nth-child(6) {
  transition-delay: 0.5s;
}
.stagger-children > *:nth-child(7) {
  transition-delay: 0.6s;
}
.stagger-children > *:nth-child(8) {
  transition-delay: 0.7s;
}
.stagger-children > *:nth-child(9) {
  transition-delay: 0.8s;
}

/* Scroll Animation Hidden/Visible States */
.animate-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

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

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .animate-hidden {
    opacity: 1;
    transform: none;
  }
}

:root {
  --blue: #0066ff;
  --blue-dark: #0052cc;
  --dark: #1a1a2e;
  --dark-bg: #0f1629;
  --gray: #6b7280;
  --gray-light: #f5f5f7;
  --gray-border: #e5e7eb;
  --white: #ffffff;
  --yellow: #ffcc00;
}

body {
  font-family:
    "Manrope",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--dark);
  line-height: 1.5;
  background: var(--white);
  font-size: clamp(13px, 1.2vw, 16px);
  overflow-x: hidden;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 80px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 1.2vw, 14px) clamp(20px, 2.5vw, 32px);
  border-radius: clamp(6px, 0.8vw, 10px);
  font-weight: 600;
  font-size: clamp(13px, 1.2vw, 16px);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  font-family: inherit;
  text-decoration: none;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  position: relative;
  overflow: hidden;
}

.btn--primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.6s ease,
    height 0.6s ease;
}

.btn--primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn--primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn--outline:hover {
  background: var(--blue);
  color: var(--white);
}

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

.btn--small {
  padding: clamp(8px, 1vw, 12px) clamp(16px, 2vw, 24px);
  font-size: clamp(16px, 1.1vw, 14px);
}

.btn--large {
  padding: clamp(14px, 1.5vw, 20px) clamp(28px, 3vw, 40px);
  font-size: clamp(14px, 1.3vw, 18px);
}

.btn--full {
  width: 100%;
}

.link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
}

.link:hover {
  text-decoration: underline;
}

/* Section Title */
.section-title {
  font-size: clamp(20px, 2.5vw, 36px);
  font-weight: 800;
  text-align: left;
  margin-bottom: clamp(30px, 4vw, 60px);
  letter-spacing: 0.3px;
}

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

.section-subtitle {
  text-align: center;
  color: var(--gray);
  margin-top: clamp(-25px, -3vw, -30px);
  margin-bottom: clamp(30px, 4vw, 50px);
  font-size: clamp(13px, 1.2vw, 16px);
}

/* Tags */
.tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.tag--blue {
  background: var(--blue);
  color: var(--white);
}

.tag--white {
  background: var(--white);
  color: var(--gray);
  border: 1px solid var(--gray-border);
}

/* Promo banner (above topbar) — одна строка */
.promo-banner {
  position: relative;
  z-index: 1002;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f1629 50%, #152238 100%);
  color: var(--white);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 204, 0, 0.35);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.promo-banner__inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.5vw, 18px);
  width: max-content;
  min-width: min-content;
  margin: 0 auto;
  padding: 0 clamp(8px, 2vw, 16px);
}

.promo-banner__dates {
  flex-shrink: 0;
  font-size: clamp(9px, 1.1vw, 11px);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}

.promo-banner__headline {
  flex-shrink: 0;
  font-size: clamp(10px, 1.35vw, 16px);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.promo-banner__driving {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 12px;
  flex-shrink: 0;
}

.promo-banner__driving-label {
  font-size: clamp(9px, 1.15vw, 12px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.92);
}

.promo-banner__prices {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.promo-banner__prices li {
  font-size: clamp(9px, 1.15vw, 12px);
  font-weight: 600;
  white-space: nowrap;
}

.promo-banner__prices li:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
}

/* Topbar */
.topbar {
  background: var(--dark-bg);
  padding: 8px 0;
  position: relative;
  z-index: 1001;
}

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

.topbar__locations {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.topbar__location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.topbar__location svg {
  opacity: 0.7;
  flex-shrink: 0;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar__phones {
  display: flex;
  gap: 16px;
}

.topbar__phone {
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  transition: opacity 0.2s;
}

.topbar__phone:hover {
  opacity: 0.9;
}

.topbar__sdo-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition:
    border-color 0.2s,
    background 0.2s;
}

.topbar__sdo-btn:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.topbar__socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.85);
  transition:
    color 0.2s,
    background 0.2s;
}

.topbar__social:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.topbar__social svg {
  width: 16px;
  height: 16px;
}

.topbar__social--2gis {
  padding: 4px;
}

.topbar__social--2gis img {
  display: block;
  width: 18px;
  height: 18px;
}

/* Header */
.header {
  background: var(--white);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--gray-border);
}

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

.header__left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  text-decoration: none;
}

.logo__image {
  width: 300px;
  height: auto;
  margin: auto;
}

.footer__logo-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__logo-image {
  width: 200px;
  height: auto;
}

.footer__logo-info {
  font-size: 12px;
  color: var(--gray);
  font-weight: 500;
  line-height: 1.4;
  max-width: 220px;
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
}

.footer__logo-info li {
  margin-bottom: 4px;
}

.footer__logo-info li:last-child {
  margin-bottom: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo--with-info {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.logo__info {
  font-size: 11px;
  color: var(--gray);
  font-weight: 500;
  white-space: nowrap;
}

.hero-wrapper .logo__info {
  color: rgba(255, 255, 255, 0.7);
}

.nav__sdo-btn {
  background: var(--blue);
  color: var(--white) !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
}

.nav__sdo-btn:hover {
  background: var(--blue-dark);
}

.logo__icon {
  display: flex;
  flex-direction: column;
  background: var(--blue);
  color: var(--white);
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.logo__text {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: 1px;
}

.header__phones {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  transition:
    color 0.2s,
    transform 0.2s;
  position: relative;
}

.nav__item::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.3s ease;
}

.nav__item:hover {
  color: var(--blue);
}

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

.nav__item svg {
  opacity: 0.5;
}

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

.header__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__locations {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header__location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray);
}

.header__location svg {
  opacity: 0.5;
  flex-shrink: 0;
}

.header__phone {
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  font-size: 14px;
}

/* Burger Button */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hero-wrapper .header__burger span {
  background: var(--white);
}

.header__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
}

.header__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 0 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 999;
  flex-direction: column;
  gap: 20px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease,
    padding 0.4s ease;
  pointer-events: none;
}

.mobile-menu.active {
  max-height: min(90vh, 800px);
  opacity: 1;
  padding: 20px;
  pointer-events: auto;
  overflow-y: auto;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu__link {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-border);
}

.mobile-menu__link:last-child {
  border-bottom: none;
}

.mobile-menu__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 10px;
}

.mobile-menu__locations {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu__location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray);
}

.mobile-menu__socials {
  display: flex;
  gap: 12px;
}

.mobile-menu__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--gray-border);
  color: #000;
}

.mobile-menu__social:hover {
  background: var(--blue);
  color: var(--white);
}

.mobile-menu__phones {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-menu__phones a {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
}

@media (max-width: 1200px) {
  .topbar__locations {
    display: flex;
  }

  .topbar__socials,
  .topbar__sdo-btn {
    display: none;
  }

  .topbar__inner {
    flex-wrap: wrap;
    gap: 8px;
  }

  .topbar__location span {
    font-size: 11px;
  }

  .nav,
  .header__right {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .header__inner {
    justify-content: space-between;
  }

  .header__left {
    flex: 0 0 auto;
    gap: 16px;
  }

  .logo__image {
    width: 200px !important;
  }
}

@media (max-width: 480px) {
  .header__left {
    justify-content: space-between;
    width: 100%;
  }

  .logo__info {
    display: block;
    font-size: 10px;
    white-space: normal;
    line-height: 1.3;
  }

  .logo--with-info {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Hero Wrapper */
.hero-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  z-index: 100;
}

.hero-wrapper .hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-wrapper .hero__bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgb(0 0 0 / 90%) 0%,
    rgb(0 0 0 / 70%) 50%,
    rgb(0 0 0 / 90%) 100%
  );
  z-index: 1;
}

.hero__bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

@media (max-width: 768px) {
  .hero__bg-video {
    display: none !important;
  }
}

.hero-wrapper .header {
  position: relative;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-wrapper .header .logo__text {
  color: var(--white);
}

.hero-wrapper .header .nav__item {
  color: var(--white);
}

.hero-wrapper .header .header__location {
  color: rgba(255, 255, 255, 0.7);
}

.hero-wrapper .header .header__phone {
  color: var(--white);
}

.hero-wrapper .promo-banner {
  border-bottom-color: rgba(255, 204, 0, 0.4);
}

.hero-wrapper .topbar {
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero */
.hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 64px);
}

.hero__content {
  max-width: 100%;
  flex: 1;
  padding: clamp(40px, 6vw, 80px) 0;
  overflow: hidden;
  min-width: 0;
  padding-bottom: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__video {
  flex-shrink: 0;
  width: min(100%, clamp(280px, 50vw, 720px));
  padding: 14px;
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1201px) {
  .hero__video {
    margin-top: 50px;
  }
}

.hero__video::before,
.hero__video::after {
  content: "";
  position: absolute;
  border-radius: clamp(16px, 1.6vw, 24px);
  pointer-events: none;
}

.hero__video::before {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 12px 40px rgba(0, 0, 0, 0.5);
}

.hero__video::after {
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero__video-frame {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  border-radius: clamp(10px, 1vw, 16px);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
}

.hero__video-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
  pointer-events: none;
}

.hero__video-el,
.hero__video-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__video-fallback {
  z-index: 0;
}

.hero__video-el {
  z-index: 1;
}

@media (max-width: 1200px) {
  .hero__video {
    width: min(100%, 400px);
    align-self: center;
  }

  .hero__video-frame {
    aspect-ratio: 16 / 9;
    flex: none;
  }

  .hero__content > .btn {
    align-self: center;
  }
}

@media (max-width: 768px) {
  .hero__video {
    width: min(100%, 340px);
    padding: 10px;
  }

  .hero .container {
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .hero__video {
    width: 100%;
    max-width: 300px;
    padding: 8px;
  }

  .hero__content > .btn {
    width: 100%;
    min-width: unset;
    max-width: 300px;
    align-self: center;
  }
}

.hero__title {
  font-size: clamp(24px, 3.5vw, 48px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: clamp(16px, 2vw, 24px);
  animation: fadeInUp 0.8s ease forwards;
}

.hero__text {
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(13px, 1.2vw, 18px);
  line-height: 1.7;
  margin-bottom: clamp(20px, 2.5vw, 32px);
  max-width: 600px;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero__content > .btn {
  width: 300px;
  min-width: 300px;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.hero__stats-carousel {
  flex: 1 1 100%;
  margin-top: clamp(20px, 2.5vw, 36px);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  animation: fadeInUp 0.8s ease 0.6s forwards;
  opacity: 0;
  margin-bottom: clamp(20px, 2.5vw, 36px);
}

.hero__stats-track {
  display: flex;
  gap: clamp(12px, 1.5vw, 20px);
  transition: transform 0.5s ease;
  width: max-content;
}

.hero__stat {
  backdrop-filter: blur(10px);
  border-radius: clamp(12px, 1.2vw, 18px);
  padding: clamp(16px, 2vw, 28px);
  min-width: clamp(160px, 18vw, 200px);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-align: left;
}

.hero__stat:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero__stat--blue {
  background: linear-gradient(
    135deg,
    rgba(0, 102, 255, 0.4) 0%,
    rgba(0, 82, 204, 0.2) 100%
  );
  border: 1px solid rgba(0, 102, 255, 0.3);
}

.hero__stat--purple {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.4) 0%,
    rgba(109, 40, 217, 0.2) 100%
  );
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.hero__stat--green {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.4) 0%,
    rgba(22, 163, 74, 0.2) 100%
  );
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.hero__stat--orange {
  background: linear-gradient(
    135deg,
    rgba(249, 115, 22, 0.4) 0%,
    rgba(234, 88, 12, 0.2) 100%
  );
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.hero__stat--cyan {
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.4) 0%,
    rgba(8, 145, 178, 0.2) 100%
  );
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.hero__stat--pink {
  background: linear-gradient(
    135deg,
    rgba(236, 72, 153, 0.4) 0%,
    rgba(219, 39, 119, 0.2) 100%
  );
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.hero__stat-value {
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.hero__stat-value span {
  color: inherit;
  opacity: 0.7;
}

.hero__stat-label {
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 600;
  color: var(--white);
  margin-top: 4px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero__stat-text {
  font-size: clamp(10px, 1vw, 14px);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.hero__stats-nav {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.hero__stats-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.hero__stats-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
}

/* Programs */
.programs {
  padding: clamp(50px, 7vw, 100px) 0;
}

.programs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(16px, 2vw, 30px);
}

.programs__grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.program-card {
  background: var(--gray-light);
  border-radius: clamp(12px, 1.2vw, 20px);
  padding: clamp(20px, 2.5vw, 32px);
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 2vw, 24px);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.program-card__content {
  flex: 1;
}

.program-card__image {
  flex-shrink: 0;
  width: clamp(100px, 12vw, 160px);
  height: clamp(100px, 12vw, 160px);
  border-radius: clamp(10px, 1vw, 14px);
  overflow: hidden;
  align-self: center;
}

.program-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.program-card__tags {
  display: flex;
  gap: clamp(8px, 1vw, 12px);
  margin-bottom: clamp(12px, 1.5vw, 20px);
  flex-wrap: wrap;
}

.program-card__title {
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 700;
  margin-bottom: clamp(10px, 1.2vw, 16px);
}

.program-card__title span {
  font-weight: 400;
  color: var(--gray);
}

.program-card__desc {
  font-size: clamp(12px, 1.1vw, 15px);
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: clamp(16px, 2vw, 26px);
}

.program-card__footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.program-card__price {
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}

.program-card__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.program-card__link {
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.program-card__link:hover {
  text-decoration: underline;
}

.program-card--hidden {
  display: none;
}

.programs__grid.programs__grid--expanded .program-card--hidden {
  display: flex;
}

.programs__grid--expanded .program-card--hidden {
  display: flex !important;
}

.programs__more {
  display: flex;
  justify-content: center;
  margin-top: clamp(30px, 4vw, 50px);
}

.programs__more-btn {
  min-width: 200px;
}

.programs__more--hidden {
  display: none;
}

/* Steps */
.steps-section {
  padding: clamp(50px, 7vw, 100px) 0;
  background: var(--white);
}

.steps-section__title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.steps-section__subtitle {
  color: var(--gray);
  margin-bottom: clamp(30px, 4vw, 50px);
  font-size: clamp(14px, 1.3vw, 18px);
}

.steps__wrapper {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  flex: 1;
}

.step-card--wide::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: 323px;
  height: 100%;
  background: url("img/car-hero.png") no-repeat right bottom;
  background-size: cover;
  pointer-events: none;
}

.step-card {
  background: var(--gray-light);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.step-card:hover .step-card__number {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  transition: all 0.3s ease;
}

.step-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.step-card__number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gray-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--gray);
  flex-shrink: 0;
  background: #fff;
}

.step-card__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--dark);
}

.step-card__title--large {
  font-size: 22px;
}

.step-card__text {
  font-size: 18px;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.step-card__actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.btn--outline-dark {
  background: transparent;
  color: var(--dark);
  border-color: var(--gray-border);
}

.btn--outline-dark:hover {
  background: var(--gray-light);
  border-color: var(--gray);
}

/* Wide step card (4th step) */
.step-card--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
}

.step-card--wide .step-card__content {
  flex: 1;
}

.step-card--wide .step-card__text {
  margin-bottom: 0;
}

.step-card--wide .step-card__images img {
  max-width: 150px;
  height: auto;
  object-fit: contain;
}

.step-card--wide .step-card__number {
  position: absolute;
  top: 24px;
  right: 40px;
}

@media (max-width: 1200px) {
  .steps__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-card--wide {
    grid-column: 1 / -1;
  }

  .step-card--wide::after {
    bottom: 100%;
  }
}

@media (max-width: 768px) {
  .steps__grid {
    grid-template-columns: 1fr;
  }

  .step-card--wide {
    flex-direction: column;
    padding: 24px;
  }

  .step-card--wide::after {
    bottom: 100%;
  }

  .step-card--wide .step-card__image {
    margin-right: 0;
    margin-top: 20px;
    max-width: 100%;
  }

  .step-card--wide .step-card__number {
    right: 24px;
  }
}

@media (max-width: 768px) {
  .step-card--wide::after {
    bottom: 0;
    top: 40%;
    left: 0;
    background-size: contain;
  }
}

@media (max-width: 480px) {
  .step-card--wide::after {
    left: 25%;
    top: 55%;
    width: 200px;
    background-position: 100%;
    background-size: contain;
  }
}

/* Special Offers */
.special-offers {
  padding: clamp(50px, 7vw, 100px) 0;
  background: #0099ff;
}

.special-offers__title {
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: clamp(30px, 4vw, 50px);
  letter-spacing: 0.5px;
}

.special-offers__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.special-offers__left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.special-offers__left .special-card--large {
  flex: 1;
}

.special-offers__right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Special Card Base */
.special-card {
  border-radius: 24px;
  padding: clamp(24px, 3vw, 36px);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.special-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.special-card__heading {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.25;
}

.special-card__heading--large {
  font-size: clamp(22px, 2.5vw, 32px);
}

.special-card__desc {
  font-size: clamp(13px, 1.2vw, 16px);
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.special-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: #1a1a1a;
  color: var(--white);
  border: none;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.special-card__btn:hover {
  background: #333;
  transform: translateY(-2px);
}

.special-card__btn--blue {
  background: #0066ff;
  padding: 16px 32px;
  font-size: 15px;
}

.special-card__btn--blue:hover {
  background: #0052cc;
}

/* Pink Card - Student Discount */
.special-card--pink {
  background: #ffe4e6;
}

.special-card--large {
  display: flex;
  align-items: flex-start;
  min-height: 380px;
}

.special-card--large .special-card__content {
  flex: 1;
  padding-bottom: 20px;
}

.special-card--large .special-card__image {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 500px;
  padding: 20px;
}

.special-card--large .special-card__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 20px;
}

/* Beige Card - Installment */
.special-card--beige {
  background: #fff8dc;
}

/* Green Card - Refer Friend */
.special-card--green {
  background: #d4edda;
}

/* Purple Card - Loyalty */
.special-card--purple {
  background: #e8e0f0;
}

/* Cyan Card - Free First Lesson */
.special-card--cyan {
  background: #e0ffff;
}

.special-card--full {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.special-card--full .special-card__content {
  flex: 1;
}

.special-card--full .special-card__desc {
  margin-bottom: 0;
  max-width: 800px;
}

/* Responsive */
@media (max-width: 900px) {
  .special-offers__grid {
    grid-template-columns: 1fr;
  }

  .special-card--large {
    min-height: 320px;
  }

  .special-card--large .special-card__image {
    width: 45%;
    max-width: 300px;
  }

  .special-card--full {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .special-card--full .special-card__desc {
    margin-bottom: 0;
  }
}

@media (max-width: 600px) {
  .special-card--large {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
  }

  .special-card--large .special-card__image {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-top: 20px;
  }
}

/* Reviews */
.reviews {
  padding: clamp(50px, 7vw, 100px) 0;
}

.reviews__2gis-wrap {
  text-align: center;
  margin-bottom: 24px;
}

.reviews__2gis-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--gray-light);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}

.reviews__2gis-badge:hover {
  background: var(--white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.reviews__2gis-logo {
  width: 28px;
  height: 28px;
}

.reviews__2gis-rating {
  font-weight: 700;
  font-size: 18px;
  color: var(--blue);
}

.reviews__2gis-count {
  font-size: 14px;
  color: var(--gray);
}

.reviews__2gis-arrow {
  margin-left: 4px;
  color: var(--blue);
  font-size: 16px;
}

.reviews__wrapper {
  position: relative;
}

.reviews__slider {
  overflow: hidden;
}

.reviews__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: clamp(16px, 2vw, 24px);
  transition: transform 0.4s ease;
}

.review-card {
  flex: 0 0 auto;
  width: 320px;
  min-width: 260px;
  background: var(--gray-light);
  border-radius: 16px;
  padding: 20px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.review-card__info {
  flex: 1;
}

.review-card__name {
  font-weight: 600;
  font-size: 14px;
  display: block;
  margin-bottom: 4px;
}

.review-card__rating {
  color: var(--yellow);
  font-size: 13px;
  letter-spacing: 2px;
}

.review-card__source {
  width: 24px;
  height: 24px;
}

.review-card__text {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 12px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  transition:
    line-clamp 0.2s,
    -webkit-line-clamp 0.2s;
}

.review-card--expanded .review-card__text {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  display: block;
}

.review-card__expand-btn {
  background: none;
  border: none;
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.review-card__expand-btn:hover {
  text-decoration: underline;
}

.review-card--expanded .review-card__expand-btn {
  display: none;
}

.reviews__nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.reviews__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  background: var(--white);
  color: var(--blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.reviews__arrow--active,
.reviews__arrow:hover:not(:disabled) {
  background: var(--blue);
  color: var(--white);
}

.reviews__arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.reviews__cta {
  text-align: center;
  margin-top: 30px;
}

.reviews__cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* About */

.about .container .section-title,
.faq .container .section-title,
.reviews .container .section-title,
.addresses .container .section-title,
.contacts-admin .container .section-title {
  text-align: center;
}

.about {
  padding: clamp(50px, 7vw, 100px) 0;
  background: var(--white);
}

.about__content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 30px);
  align-items: stretch;
}

@media (max-width: 768px) {
  .about__content {
    grid-template-columns: 1fr;
  }
}

.about__certification {
  position: relative;
}

.certification-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: clamp(16px, 2vw, 24px);
  padding: clamp(30px, 3vw, 40px);
  color: var(--white);
  position: relative;
  overflow: hidden;
  height: 100%;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.certification-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.certification-card--blue {
  background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
}

.certification-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 20px;
}

.certification-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.certification-card__title {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  margin-bottom: 12px;
}

.certification-card__text {
  font-size: clamp(13px, 1.2vw, 15px);
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.95;
}

.certification-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  transition: all 0.3s;
}

.certification-card__link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(4px);
}

.certification-card__badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  opacity: 0.1;
}

.about__text p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about__text p strong {
  color: var(--dark);
}

.about__instructors {
  display: flex;
  flex-direction: column;
}

.about__instructors-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.instructors-stack {
  position: relative;
  width: 340px;
  height: 340px;
  margin: 0 auto;
}

.instructor-card {
  position: absolute;
  width: 230px;
  height: 260px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  left: calc(var(--i) * 22px);
  bottom: calc(var(--i) * 15px);
  z-index: calc(5 - var(--i));
  transform: rotate(calc(var(--i) * 3deg));
}

.instructor-card:hover {
  transform: rotate(0deg) translateY(-20px) scale(1.05);
  z-index: 10;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.instructor-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instructor-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.instructor-card__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.instructor-card__role {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* Gallery */
.gallery {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  background: #0a0a0a;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.gallery__grid {
  display: flex;
  gap: 0;
  width: max-content;
  animation: galleryScroll 80s linear infinite;
}

.gallery__grid:hover {
  animation-play-state: paused;
}

@keyframes galleryScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.gallery__item {
  width: 180px;
  height: 200px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  border-radius: 0;
}

/* Внутренняя тень для gallery__item */
.gallery__item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 2;
}

/* Полупрозрачный оверлей для gallery__item */
.gallery__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.gallery__item:hover::before {
  opacity: 0;
}

.gallery__item:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 30px rgba(0, 102, 255, 0.3);
  z-index: 10;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

/* Gallery Popup */
.gallery-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.gallery-popup--active {
  display: flex;
}

.gallery-popup__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.gallery-popup__content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
}

.gallery-popup__image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.gallery-popup__close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s;
}

.gallery-popup__close:hover {
  transform: scale(1.2);
}

/* Video Lessons Section */
.video-lessons {
  padding: 60px 0 80px;
  background: var(--gray-light);
}

.video-lessons__subtitle {
  text-align: center;
  margin: -10px 0 40px;
  color: var(--gray);
  font-size: 1.1rem;
}

.video-lessons__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.video-lessons__item {
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.video-lessons__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.video-lessons__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.video-lessons__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-lessons__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(0, 102, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.2s, transform 0.2s;
}

.video-lessons__item:hover .video-lessons__play {
  background: rgba(0, 102, 255, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-lessons__title {
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

/* Video Popup */
.video-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.video-popup--active {
  display: flex;
}

.video-popup__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.video-popup__content {
  position: relative;
  z-index: 1;
  width: 90vw;
  max-width: 900px;
  aspect-ratio: 16/9;
}

.video-popup__player {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.video-popup__player video,
.video-popup__player iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-popup__close {
  position: absolute;
  top: -45px;
  right: 0;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s;
}

.video-popup__close:hover {
  transform: scale(1.2);
}

/* Application Popup */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.popup.active {
  opacity: 1;
  visibility: visible;
}

.popup__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  cursor: pointer;
}

.popup__container {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 24px;
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.popup.active .popup__container {
  transform: translateY(0) scale(1);
}

.popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--gray-light);
  border-radius: 50%;
  font-size: 24px;
  color: var(--gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.popup__close:hover {
  background: var(--gray-border);
  color: var(--dark);
  transform: rotate(90deg);
}

.popup__content {
  padding: 40px;
}

.popup__header {
  text-align: center;
  margin-bottom: 30px;
}

.popup__title {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.popup__subtitle {
  font-size: 15px;
  color: var(--gray);
}

.popup__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.popup__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.popup__field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

.popup__field input,
.popup__field select {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid var(--gray-border);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  background: var(--white);
}

.popup__field input:focus,
.popup__field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.popup__field input::placeholder {
  color: var(--gray);
}

.popup__field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
}

.popup__submit {
  margin-top: 10px;
  padding: 18px;
  font-size: 16px;
}

.popup__privacy {
  text-align: center;
  font-size: 12px;
  color: var(--gray);
  margin-top: 5px;
}

.popup__privacy a {
  color: var(--blue);
  text-decoration: none;
}

.popup__privacy a:hover {
  text-decoration: underline;
}

/* Success State */
.popup__success {
  display: none;
  padding: 60px 40px;
  text-align: center;
}

.popup__success.active {
  display: block;
  animation: scaleIn 0.4s ease;
}

.popup__content.hidden {
  display: none;
}

.popup__success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  animation: pulse 1s ease infinite;
}

.popup__success-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.popup__success-text {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 24px;
}

.popup__success-btn {
  min-width: 160px;
}

@media (max-width: 600px) {
  .popup__content {
    padding: 30px 24px;
  }

  .popup__title {
    font-size: 20px;
  }

  .popup__success {
    padding: 40px 24px;
  }
}

/* Social */
.social {
  padding: clamp(40px, 5vw, 70px) 0;
  background: var(--gray-light);
}

.social__title {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 30px;
}

.social__grid {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.social__item svg {
  width: 60px;
  height: 60px;
  padding: 16px;
  border-radius: 14px;
}

.social__item span {
  font-size: 12px;
  color: var(--gray);
  font-weight: 500;
}

.social__item--telegram svg {
  background: #0088cc;
}

.social__item--whatsapp svg {
  background: #25d366;
}

.social__item--youtube svg {
  background: #ff0000;
}

.social__item--ok svg {
  background: #ee8208;
}

/* FAQ */
.faq {
  padding: clamp(50px, 7vw, 100px) 0;
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  border: 1px solid var(--gray-border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq__item--active {
  border-color: var(--blue);
}

.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--white);
  border: none;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.2s;
}

.faq__item--active .faq__question {
  background: var(--blue);
  color: var(--white);
}

.faq__icon {
  font-size: 20px;
  font-weight: 300;
  width: 24px;
  text-align: center;
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background: var(--white);
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
}

.faq__answer--visible {
  max-height: 300px;
  padding: 0 20px 18px;
}

.faq__answer p {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.6;
  padding-top: 10px;
}

/* Addresses */
.addresses {
  padding: clamp(50px, 7vw, 100px) 0;
  background: var(--gray-light);
}

.addresses__tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.addresses__tab {
  padding: 10px 18px;
  border-radius: 25px;
  border: 1px solid var(--gray-border);
  background: var(--white);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.addresses__tab:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.addresses__tab--active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.addresses__tab--active:hover {
  color: var(--white);
}

.addresses__panel {
  display: none;
}

.addresses__panel--active {
  display: block;
}

.addresses__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: clamp(20px, 3vw, 40px);
  background: var(--white);
  border-radius: clamp(12px, 1.5vw, 20px);
  padding: clamp(20px, 3vw, 40px);
}

.addresses__subtitle {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.addresses__text {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 6px;
  line-height: 1.5;
}

.addresses__text strong {
  color: var(--dark);
}

.addresses__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  margin: 16px 0;
}

.addresses__phone a {
  color: var(--blue);
  text-decoration: none;
  transition: opacity 0.2s;
}

.addresses__phone a:hover {
  opacity: 0.7;
}

.addresses__schedule {
  margin-top: 20px;
}

.addresses__schedule p {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 4px;
}

.addresses__schedule p strong {
  color: var(--dark);
}

.addresses__info .btn {
  margin-top: 20px;
}

.addresses__map {
  border-radius: 12px;
  overflow: hidden;
  min-height: 300px;
  background: var(--gray-light);
}

.addresses__map iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
}

.dg-widget-mount {
  min-height: 300px;
}

.dg-widget-fallback {
  margin: 0;
  padding: 24px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--dark);
}

.dg-widget-fallback a {
  color: var(--blue);
}

/* Contact */
.contact {
  padding: clamp(50px, 7vw, 100px) 0;
}

.contact__wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: clamp(30px, 4vw, 50px);
  background: var(--gray-light);
  border-radius: clamp(16px, 2vw, 24px);
  padding: clamp(30px, 4vw, 50px);
  align-items: center;
}

.contact__title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
}

.contact__subtitle {
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 15px;
}

.contact__text {
  color: var(--gray);
  font-size: 13px;
  margin-bottom: 30px;
}

.contact__illustration {
  position: relative;
  width: 200px;
  height: 120px;
}

.contact__car {
  width: 180px;
}

.contact__car img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.contact__questions {
  position: absolute;
  top: -20px;
  right: 0;
  display: flex;
  gap: 8px;
}

.contact__questions span {
  width: 32px;
  height: 32px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.contact__form {
  background: var(--white);
  border-radius: 16px;
  padding: 30px;
}

.contact__field {
  margin-bottom: 20px;
}

.contact__field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.contact__field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.contact__field input:focus {
  outline: none;
  border-color: var(--blue);
}

/* Footer */
.footer {
  background: var(--dark-bg);
  color: var(--white);
  padding: 50px 0 30px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(30px, 4vw, 50px);
  margin-bottom: clamp(30px, 4vw, 50px);
}

.footer__logo {
  display: flex;
  flex-direction: column;
  background: var(--blue);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.5px;
  width: fit-content;
  margin-bottom: 8px;
}

.footer__logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__phone {
  display: block;
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.footer__phone--secondary {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.footer__email {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 16px;
}

.footer__newsletter-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.footer__newsletter-form {
  display: flex;
  gap: 8px;
}

.footer__newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s;
}

.footer__newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer__newsletter-input:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(255, 255, 255, 0.15);
}

.footer__newsletter-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  border: none;
  border-radius: 8px;
  color: var(--white);
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
}

.footer__newsletter-btn:hover {
  background: var(--blue-dark);
  transform: translateX(4px);
}

.footer__socials {
  display: flex;
  gap: 10px;
}

.footer__social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: background 0.2s;
}

.footer__social-icon svg {
  width: 20px;
  height: 20px;
}

.footer__social-icon:hover {
  background: var(--blue);
}

.footer__heading {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 13px;
  transition:
    color 0.2s,
    transform 0.2s;
  display: inline-block;
}

.footer__links a:hover {
  color: var(--white);
  transform: translateX(5px);
}

.footer__col--brand {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  color: var(--blue);
  font-weight: 800;
  font-size: 36px;
  line-height: 1;
  text-align: right;
  letter-spacing: 2px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer__bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
}

.footer__bottom a:hover {
  color: #fff;
}

.footer__disclaimer {
  text-align: right;
}

/* Large Screens */
@media (min-width: 1400px) {
  .header {
    font-size: 20px;
  }

  .header__phone {
    font-size: 18px;
  }

  .header__location {
    font-size: 16px;
  }

  .nav__item {
    font-size: 18px;
  }

  body {
    font-size: 18px;
  }

  .section-subtitle {
    font-size: 20px;
  }

  .hero__title {
    font-size: 52px;
  }

  .hero__text {
    font-size: 20px;
  }

  .program-card__title {
    font-size: 24px;
  }

  .program-card__desc {
    font-size: 17px;
  }

  .btn {
    font-size: 18px;
  }

  .about__text p {
    font-size: 16px;
  }

  .footer {
    font-size: 18px;
  }
}

/* Responsive */

@media (max-width: 1200px) {
  .hero .container {
    flex-direction: column;
  }

  .hero__content {
    text-align: center;
  }

  .hero__text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__stats-nav {
    justify-content: center;
  }

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

@media (max-width: 900px) {
  .step-card__title {
    font-size: 16px;
  }

  .step-card__text {
    font-size: 14px;
  }

  .instructors-stack {
    width: 280px;
    height: 280px;
  }

  .instructor-card {
    width: 180px;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .hero__stats-track {
    gap: 10px;
  }

  .hero__stat {
    min-width: 140px;
    padding: 14px;
  }

  .program-card {
    flex-direction: column-reverse;
  }

  .program-card__image {
    width: 100%;
    height: 90px;
  }

  .programs__grid--3 {
    grid-template-columns: 1fr;
  }

  .certification-card__badge {
    display: none;
  }

  .social__grid {
    flex-wrap: wrap;
  }

  .addresses__tabs {
    justify-content: center;
  }

  .faq__question {
    font-size: 15px;
    padding: 14px 16px;
  }

  .faq__answer p {
    font-size: 14px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__disclaimer {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero__title {
    font-size: 22px;
  }

  .hero__stat {
    min-width: 130px;
    padding: 12px;
  }

  .hero__stat-value {
    font-size: 20px;
  }

  .hero__stat-label {
    font-size: 11px;
  }

  .hero__stat-text {
    font-size: 10px;
  }

  .section-title {
    font-size: 18px;
  }

  .step-card__actions {
    flex-direction: column;
  }

  .step-card__actions .btn {
    width: 100%;
  }

  .instructors-stack {
    width: 220px;
    height: 220px;
  }

  .instructor-card {
    width: 150px;
    height: 170px;
    left: calc(var(--i) * 15px);
    bottom: calc(var(--i) * 10px);
  }

  .instructor-card__name {
    font-size: 13px;
  }

  .instructor-card__role {
    font-size: 10px;
  }

  .review-card__text {
    font-size: 14px;
  }

  .addresses__tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .addresses__tab {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .review-card {
    width: 260px;
    min-width: 240px;
  }

  .logo__image {
    width: 160px !important;
  }

  .footer__col--brand {
    justify-content: flex-start;
  }

  .special-card__heading {
    font-size: 18px;
  }

  .special-card__desc {
    font-size: 13px;
  }

  .special-card__btn {
    padding: 12px 20px;
    font-size: 13px;
  }

  .program-card__title {
    font-size: 18px;
  }

  .step-card__title {
    font-size: 15px;
  }

  .reviews__2gis-badge {
    flex-direction: column;
    gap: 6px;
    padding: 10px 16px;
  }

  .reviews__2gis-rating {
    font-size: 16px;
  }

  .reviews__2gis-count {
    font-size: 12px;
  }
}

/* ===== ABOUT PAGE STYLES ===== */

/* Hero Wrapper for Pages */
.hero-wrapper--page {
  min-height: auto;
  padding-bottom: 60px;
}

/* Page Hero */
.page-hero {
  padding: 80px 0 40px;
  position: relative;
  z-index: 1;
}

.page-hero__content {
  text-align: center;
}

.breadcrumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumbs a:hover {
  color: #fff;
}

.breadcrumbs span:last-child {
  color: #fff;
}

@media (max-width: 768px) {
  .breadcrumbs {
    font-size: 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .breadcrumbs {
    font-size: 11px;
    gap: 6px;
    margin-bottom: 15px;
  }
}

.page-hero__title {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* About Intro Section */
.about-intro {
  padding: 80px 0;
  background: #fff;
}

.about-intro__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-intro__lead {
  font-size: 22px;
  line-height: 1.6;
  color: #1a1a2e;
  margin-bottom: 30px;
  font-weight: 500;
}

.about-intro__highlight {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: linear-gradient(135deg, #e8f4ff 0%, #f0f8ff 100%);
  border-radius: 16px;
  margin-bottom: 30px;
  border-left: 4px solid #0066ff;
}

.about-intro__highlight-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: #0066ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-intro__highlight-icon svg {
  stroke: #fff;
}

.about-intro__highlight p {
  font-size: 18px;
  line-height: 1.5;
  color: #1a1a2e;
  margin: 0;
}

.about-intro__slogan {
  font-size: 32px;
  font-weight: 800;
  color: #0066ff;
  text-transform: uppercase;
}

.about-intro__stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-intro__stat {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4a 100%);
  padding: 24px 30px;
  border-radius: 16px;
  text-align: center;
}

.about-intro__stat-value {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 5px;
}

.about-intro__stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* About History Section */
.about-history__content .section-title {
  text-align: center;
}

.about-history {
  padding: 80px 0;
  background: #f8f9fb;
}

.about-history__text {
  max-width: 900px;
  margin: 0 auto;
}

.about-history__text p {
  font-size: 17px;
  line-height: 1.8;
  color: #4a4a4a;
  margin-bottom: 24px;
}

.about-history__text p:last-child {
  margin-bottom: 0;
}

/* Legal document content */
.legal-doc {
  max-width: 900px;
  margin: 0 auto;
}

.legal-doc h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-top: 40px;
  margin-bottom: 20px;
}

.legal-doc h2:first-child {
  margin-top: 0;
}

.legal-doc p {
  font-size: 17px;
  line-height: 1.8;
  color: #4a4a4a;
  margin-bottom: 16px;
}

.legal-doc p:last-of-type {
  margin-bottom: 0;
}

.legal-doc ul {
  margin: 16px 0 24px 20px;
  padding: 0;
  list-style: disc;
}

.legal-doc li {
  font-size: 17px;
  line-height: 1.8;
  color: #4a4a4a;
  margin-bottom: 8px;
}

.legal-doc a {
  color: #0066ff;
  text-decoration: underline;
}

.legal-doc a:hover {
  color: #0052cc;
}

.legal-doc__links {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-border);
}

@media (max-width: 768px) {
  .legal-doc h2 {
    font-size: 18px;
    margin-top: 32px;
    margin-bottom: 16px;
  }

  .legal-doc p,
  .legal-doc li {
    font-size: 15px;
    line-height: 1.7;
  }

  .legal-doc__links {
    margin-top: 32px;
    padding-top: 24px;
  }

  .about-history {
    padding: 50px 0;
  }

  .about-history__text p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 18px;
  }
}

@media (max-width: 480px) {
  .about-history {
    padding: 40px 0;
  }

  .about-history__text p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
  }
}

/* About Features Section */
.about-features {
  padding: 80px 0;
  background: #fff;
}

.about-features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.about-feature-card {
  padding: 30px;
  background: #f8f9fb;
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.about-feature-card:hover {
  background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.2);
}

.about-feature-card:hover .about-feature-card__icon svg {
  stroke: #fff;
}

.about-feature-card:hover .about-feature-card__title,
.about-feature-card:hover .about-feature-card__text {
  color: #fff;
}

.about-feature-card__icon {
  margin-bottom: 20px;
}

.about-feature-card__icon svg {
  stroke: #0066ff;
  transition: stroke 0.3s;
}

.about-feature-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.about-feature-card__text {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  transition: color 0.3s;
}

/* About Quote Section */
.about-quote {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4a 100%);
}

.about-quote__content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-quote__text {
  font-size: 24px;
  line-height: 1.7;
  color: #fff;
  font-style: italic;
  position: relative;
  padding: 0 40px;
}

.about-quote__text::before,
.about-quote__text::after {
  content: '"';
  font-size: 80px;
  font-family: Georgia, serif;
  color: rgba(0, 102, 255, 0.3);
  position: absolute;
  line-height: 1;
}

.about-quote__text::before {
  left: 0;
  top: -20px;
}

.about-quote__text::after {
  right: 0;
  bottom: -40px;
}

/* About Training Section */
.about-training {
  padding: 80px 0;
  background: #fff;
}

.about-training__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 800px;
  margin: 0 auto 30px;
}

.about-training__item {
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, #f8f9fb 0%, #fff 100%);
  border-radius: 20px;
  border: 2px solid #e5e7eb;
}

.about-training__icon {
  margin-bottom: 20px;
}

.about-training__icon svg {
  stroke: #0066ff;
}

.about-training__title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.about-training__text {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.5;
}

.about-training__note {
  text-align: center;
  font-size: 14px;
  color: #9ca3af;
  font-style: italic;
}

/* Teachers Section */
.teachers {
  padding: 80px 0;
  background: #f8f9fb;
}

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

.teacher-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.teacher-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.teacher-card__name {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.teacher-card__role {
  font-size: 14px;
  color: #0066ff;
  font-weight: 600;
  margin-bottom: 20px;
  display: block;
}

.teacher-card__subjects {
  list-style: none;
  padding: 0;
  margin: 0;
}

.teacher-card__subjects li {
  font-size: 14px;
  color: #6b7280;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  padding-left: 20px;
  position: relative;
}

.teacher-card__subjects li:last-child {
  border-bottom: none;
}

.teacher-card__subjects li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #0066ff;
  border-radius: 50%;
}

/* About Contact Section */
.about-contact {
  padding: 60px 0;
  background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
}

.about-contact__content {
  text-align: center;
}

.about-contact__wish {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 30px;
}

.about-contact__info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.about-contact__address {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 18px;
}

.about-contact__address svg {
  stroke: #fff;
}

.about-contact__phones {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.about-contact__phones a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: opacity 0.3s;
}

.about-contact__phones a:hover {
  opacity: 0.8;
}

/* Nav active state */
.nav__item--active a,
.nav__item--active span {
  color: #0066ff;
}

.mobile-menu__link--active {
  color: #0066ff;
}

/* About page responsive */
@media (max-width: 1024px) {
  .about-intro__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-intro__stats {
    flex-direction: row;
    justify-content: center;
  }

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

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

@media (max-width: 768px) {
  .page-hero__title {
    font-size: 32px;
  }

  .about-intro__lead {
    font-size: 18px;
  }

  .about-intro__slogan {
    font-size: 24px;
  }

  .about-intro__stats {
    flex-direction: column;
  }

  .about-intro__stat {
    padding: 20px;
  }

  .about-intro__stat-value {
    font-size: 28px;
  }

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

  .about-quote__text {
    font-size: 18px;
    padding: 0 20px;
  }

  .about-training__grid {
    grid-template-columns: 1fr;
  }

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

  .about-contact__wish {
    font-size: 22px;
  }

  .about-contact__info {
    flex-direction: column;
    gap: 20px;
  }

  .about-contact__phones {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-hero__title {
    font-size: 26px;
  }

  .about-intro__highlight {
    flex-direction: column;
    text-align: center;
  }

  .about-intro__highlight-icon {
    margin: 0 auto;
  }

  .about-feature-card {
    padding: 20px;
  }

  .teacher-card {
    padding: 20px;
  }

  .teacher-card__name {
    font-size: 18px;
  }
}

/* ===== DROPDOWN MENU ===== */
.nav__item--dropdown {
  position: relative;
}

.nav__item--dropdown > svg {
  transition: transform 0.3s ease;
}

.nav__item--dropdown:hover > svg {
  transform: rotate(180deg);
}

.nav__dropdown {
  position: absolute;
  top: 120%;
  left: 0;
  min-width: 280px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 10000;
}

.nav__item--dropdown:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown a {
  display: block;
  padding: 10px 20px;
  color: var(--dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav__dropdown a:hover {
  background: var(--gray-light);
  color: var(--blue);
}

.nav__dropdown a.active {
  color: var(--blue);
  background: rgba(0, 102, 255, 0.05);
}

/* Hero wrapper dropdown fix */
.hero-wrapper .nav__dropdown {
  background: rgba(255, 255, 255, 0.98);
}

.hero-wrapper .nav__dropdown a {
  color: var(--dark);
}

.hero-wrapper .nav__dropdown a:hover {
  color: var(--blue);
}

/* ===== PROGRAM DETAIL PAGE ===== */
.program-detail {
  padding: 60px 0 80px;
  background: var(--white);
}

.program-detail__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.program-detail__tags {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.program-detail__title {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 24px;
  line-height: 1.3;
}

.program-detail__description {
  margin-bottom: 30px;
}

.program-detail__description p {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 16px;
}

.program-detail__section {
  margin-bottom: 30px;
}

.program-detail__section h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

.program-detail__list {
  list-style: none;
  padding: 0;
}

.program-detail__list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--gray);
  line-height: 1.5;
}

.program-detail__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
}

.program-detail__list li strong {
  color: var(--dark);
}

.program-detail__prices {
  margin-bottom: 30px;
}

.program-detail__prices h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

.price-table {
  background: var(--gray-light);
  border-radius: 12px;
  overflow: hidden;
}

.price-table__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-border);
}

.price-table__row:last-child {
  border-bottom: none;
}

.price-table__row span {
  font-size: 15px;
  color: var(--gray);
}

.price-table__price {
  font-weight: 700;
  color: var(--dark) !important;
}

/* Program Sidebar */
.program-detail__sidebar {
  position: sticky;
  top: 100px;
}

.program-price-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4a 100%);
  border-radius: 20px;
  padding: 30px;
  color: var(--white);
  margin-bottom: 20px;
}

.program-price-card__price {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.program-price-card__duration {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 15px;
  opacity: 0.8;
}

.program-price-card__note {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 12px;
}

.program-price-card__prices-link {
  margin-top: 12px;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.program-price-card__prices-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

/* Страница «Цены» */
.prices-page {
  padding: 48px 0 80px;
}

.prices-page__intro {
  margin-bottom: 32px;
  max-width: 720px;
}

.prices-page__date {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 16px;
}

.prices-page__note {
  margin-top: 20px;
  padding: 18px 22px;
  background: var(--gray-light);
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--dark);
}

.prices-page__note a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.prices-page__note a:hover {
  text-decoration: underline;
}

.prices-page__section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin: 40px 0 16px;
}

.prices-page__section-title:first-of-type {
  margin-top: 0;
}

.prices-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid var(--gray-border);
}

.prices-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--white);
}

.prices-table th,
.prices-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--gray-border);
}

.prices-table thead th {
  background: var(--gray-light);
  font-weight: 700;
  color: var(--dark);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.prices-table tbody tr:last-child td {
  border-bottom: none;
}

.prices-table__name {
  color: var(--gray);
  line-height: 1.45;
}

.prices-table__name strong {
  color: var(--dark);
  font-weight: 600;
}

.prices-table__price {
  white-space: nowrap;
  font-weight: 700;
  color: var(--dark);
  text-align: right;
}

.prices-table__muted {
  color: var(--gray);
  font-size: 13px;
}

@media (max-width: 640px) {
  .prices-table {
    font-size: 13px;
  }

  .prices-table th,
  .prices-table td {
    padding: 10px 10px;
  }
}

.program-benefits {
  background: var(--gray-light);
  border-radius: 20px;
  padding: 24px;
}

.program-benefits h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark);
}

.program-benefits ul {
  list-style: none;
  padding: 0;
}

.program-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--gray);
  line-height: 1.4;
}

.program-benefits li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Other Programs Section */
.other-programs {
  padding: 60px 0 80px;
  background: var(--gray-light);
}

/* CTA Section */
.cta-section {
  padding: 60px 0;
  background: var(--gray-light);
}

.cta-card {
  background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
  border-radius: 24px;
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-card__content {
  flex: 1;
}

.cta-card__title {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.cta-card__text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 500px;
}

.cta-card .btn--primary {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}

.cta-card .btn--primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* ===== INFO PAGE STYLES ===== */
.info-section {
  padding: 60px 0 80px;
  background: var(--white);
}

.info-tabs {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.info-tabs__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 100px;
}

.info-tabs__btn {
  display: block;
  width: 100%;
  padding: 14px 18px;
  text-align: left;
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.2s;
  font-family: inherit;
}

.info-tabs__btn:hover {
  background: var(--gray-light);
  color: var(--dark);
}

.info-tabs__btn--active {
  background: var(--blue);
  color: var(--white);
}

.info-tabs__btn--active:hover {
  background: var(--blue-dark);
  color: var(--white);
}

.info-tabs__panel {
  display: none;
}

.info-tabs__panel--active {
  display: block;
}

.info-tabs__panel h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 30px;
}

.info-table {
  background: var(--gray-light);
  border-radius: 16px;
  overflow: hidden;
}

.info-table__row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  border-bottom: 1px solid var(--gray-border);
}

.info-table__row:last-child {
  border-bottom: none;
}

.info-table__label {
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.02);
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

.info-table__value {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--gray);
  line-height: 1.5;
}

.info-content {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray);
}

.info-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin: 30px 0 16px;
}

.info-content h3:first-child {
  margin-top: 0;
}

.info-content ul {
  padding-left: 24px;
  margin-bottom: 20px;
}

.info-content ul li {
  margin-bottom: 8px;
}

.info-content p {
  margin-bottom: 16px;
}

.info-documents {
  list-style: none;
  padding: 0;
}

.info-documents li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--gray-light);
  border-radius: 10px;
  margin-bottom: 10px;
  transition: all 0.2s;
}

.info-documents li:hover {
  background: rgba(0, 102, 255, 0.05);
}

.info-documents li a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.info-documents li a:hover {
  color: var(--blue);
}

/* ===== CONTACTS PAGE STYLES ===== */
.contacts-page {
  padding: 60px 0 80px;
  background: var(--white);
}

.contacts-page__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contacts-page__info h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}

.contacts-page__desc {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 40px;
}

.contacts-page__items {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
}

.contacts-page__item {
  display: flex;
  gap: 20px;
}

.contacts-page__icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contacts-page__icon svg {
  stroke: var(--white);
}

.contacts-page__item-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.contacts-page__item-content a,
.contacts-page__item-content p {
  display: block;
  font-size: 15px;
  color: var(--gray);
  text-decoration: none;
  margin-bottom: 4px;
  transition: color 0.2s;
}

.contacts-page__item-content a:hover {
  color: var(--blue);
}

.contacts-page__social h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

.contacts-page__social-links {
  display: flex;
  gap: 12px;
}

.contacts-page__social-links .social__item {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: transform 0.2s;
}

.contacts-page__social-links .social__item:hover {
  transform: translateY(-3px);
}

.contacts-page__social-links .social__item svg {
  width: 24px;
  height: 24px;
}

.contacts-page__form-wrapper {
  background: var(--gray-light);
  border-radius: 24px;
  padding: 40px;
}

.contacts-page__form-wrapper h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.contacts-page__form-wrapper > p {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 30px;
}

.contacts-page__field {
  margin-bottom: 20px;
}

.contacts-page__field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.contacts-page__field input,
.contacts-page__field textarea {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid var(--gray-border);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  background: var(--white);
}

.contacts-page__field input:focus,
.contacts-page__field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.contacts-page__field textarea {
  resize: vertical;
  min-height: 100px;
}

.contacts-page__privacy {
  text-align: center;
  font-size: 12px;
  color: var(--gray);
  margin-top: 16px;
}

.contacts-page__privacy a {
  color: var(--blue);
  text-decoration: none;
}

.contacts-admin {
  padding: clamp(40px, 6vw, 80px) 0;
  background: var(--gray-light);
}

.contacts-admin .section-title {
  margin-bottom: clamp(24px, 4vw, 48px);
}

/* Главная: меньше отступ между секцией «Контакты» и блоком администратора */
.addresses:has(+ .contacts-admin) {
  padding-bottom: clamp(24px, 3.5vw, 40px);
}

.addresses + .contacts-admin {
  padding-top: clamp(12px, 2vw, 20px);
}

.contacts-admin__card {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  background: var(--white);
  border-radius: clamp(16px, 2vw, 24px);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.contacts-admin__photo-wrap {
  border-radius: clamp(12px, 1.5vw, 20px);
  overflow: hidden;
  background: var(--gray-light);
}

.contacts-admin__photo {
  display: block;
  width: 100%;
  height: auto;
}

.contacts-admin__body p {
  font-size: clamp(15px, 1.1vw, 16px);
  line-height: 1.65;
  color: var(--gray);
  margin: 0 0 1em;
}

.contacts-admin__body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .contacts-admin__card {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .contacts-admin__photo-wrap {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* Responsive for new pages */
@media (max-width: 1024px) {
  .program-detail__grid {
    grid-template-columns: 1fr;
  }

  .program-detail__sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .info-tabs {
    grid-template-columns: 1fr;
  }

  .info-tabs__nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .info-tabs__btn {
    flex: 0 0 auto;
    padding: 10px 16px;
    font-size: 13px;
  }

  .contacts-page__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ===== INFO PAGE STYLES ===== */
.info-section {
  padding: 80px 0;
  background: #f8fafc;
}

.info-tabs {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.info-tabs__nav {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 24px 0;
}

.info-tabs__btn {
  padding: 16px 24px;
  text-align: left;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  font-family: inherit;
}

.info-tabs__btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.info-tabs__btn--active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.info-tabs__btn--active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #0066ff;
  border-radius: 0 4px 4px 0;
}

.info-tabs__content {
  padding: 40px;
}

.info-tabs__panel {
  display: none;
}

.info-tabs__panel--active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.info-tabs__panel h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f0f0f0;
}

.info-table {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.info-table__row {
  display: grid;
  grid-template-columns: 280px 1fr;
  border-bottom: 1px solid #f0f0f0;
}

.info-table__row:last-child {
  border-bottom: none;
}

.info-table__label {
  font-weight: 600;
  color: #64748b;
  font-size: 14px;
}

.info-table__value {
  padding: 16px;
  color: #1a1a2e;
  font-size: 15px;
  line-height: 1.6;
}

.info-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 24px 0 16px;
}

.info-content h3:first-child {
  margin-top: 0;
}

.info-content p {
  color: #475569;
  line-height: 1.7;
  margin-bottom: 12px;
}

.info-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.info-content ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: #475569;
  line-height: 1.6;
}

.info-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: #0066ff;
  border-radius: 50%;
}

.info-documents {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-documents li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #f8fafc;
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.info-documents li:hover {
  background: #f0f7ff;
  transform: translateX(4px);
}

.info-documents li::before {
  display: none;
}

.info-documents a {
  color: #1a1a2e;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.info-documents a:hover {
  color: #0066ff;
}

.info-documents svg {
  flex-shrink: 0;
}

/* Info page responsive */
@media (max-width: 1024px) {
  .info-tabs {
    grid-template-columns: 1fr;
  }

  .info-tabs__nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 16px;
    gap: 8px;
  }

  .info-tabs__btn {
    padding: 12px 16px;
    font-size: 13px;
    border-radius: 8px;
  }

  .info-tabs__btn--active::before {
    display: none;
  }

  .info-tabs__btn--active {
    background: #0066ff;
    color: #fff;
  }

  .info-tabs__content {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .nav__dropdown {
    display: none;
  }

  .program-detail__title {
    font-size: 24px;
  }

  .program-detail__sidebar {
    grid-template-columns: 1fr;
  }

  .cta-card {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }

  .cta-card__text {
    max-width: none;
  }

  .info-section {
    padding: 40px 0;
  }

  .info-tabs__nav {
    flex-direction: column;
    padding: 12px;
  }

  .info-tabs__btn {
    padding: 14px 16px;
    font-size: 14px;
    border-radius: 10px;
  }

  .info-tabs__content {
    padding: 20px;
  }

  .info-tabs__panel h2 {
    font-size: 22px;
    margin-bottom: 24px;
  }

  .info-table__row {
    grid-template-columns: 1fr;
  }

  .info-table__label {
    border-bottom: none;
    padding-bottom: 8px;
  }

  .info-table__value {
    padding-top: 0;
  }
}

/* ===== ADAPTIVE 1200px - 1680px ===== */
@media (min-width: 1201px) and (max-width: 1680px) {
  /* Header Adaptive */
  .header {
    padding: 10px 0;
  }

  .header__left {
    gap: 24px;
  }

  .logo__image {
    width: 220px;
  }

  .nav {
    gap: 16px;
  }

  .nav__item {
    font-size: 13px;
  }

  .header__right {
    gap: 16px;
  }

  .header__locations {
    gap: 2px;
  }

  .header__location {
    font-size: 11px;
  }

  .header__location svg {
    width: 14px;
    height: 14px;
  }

  .header__phones {
    gap: 2px;
  }

  .header__phone {
    font-size: 13px;
  }

  .header__right .btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  /* Programs Section Adaptive */
  .programs {
    padding: clamp(40px, 5vw, 80px) 0;
  }

  .programs__grid {
    gap: clamp(14px, 1.5vw, 24px);
  }

  .programs__grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .program-card {
    padding: clamp(16px, 2vw, 26px);
    gap: clamp(12px, 1.5vw, 20px);
    border-radius: clamp(10px, 1vw, 16px);
  }

  .program-card__tags {
    gap: 8px;
    margin-bottom: clamp(10px, 1.2vw, 16px);
  }

  .tag {
    padding: 5px 12px;
    font-size: 11px;
  }

  .program-card__title {
    font-size: clamp(14px, 1.4vw, 18px);
    margin-bottom: clamp(8px, 1vw, 12px);
  }

  .program-card__desc {
    font-size: clamp(11px, 1vw, 13px);
    margin-bottom: clamp(12px, 1.5vw, 20px);
    line-height: 1.5;
  }

  .program-card__image {
    width: clamp(80px, 9vw, 120px);
    height: clamp(80px, 9vw, 120px);
    border-radius: clamp(8px, 0.8vw, 12px);
  }

  .program-card__footer {
    gap: 10px;
  }

  .program-card__price {
    font-size: 18px;
  }

  .program-card__actions {
    gap: 12px;
  }

  .program-card__actions .btn--small {
    padding: 8px 16px;
    font-size: 12px;
  }

  .program-card__link {
    font-size: 12px;
  }

  .section-title {
    font-size: clamp(18px, 2vw, 28px);
    margin-bottom: clamp(24px, 3vw, 45px);
  }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  padding: 16px 24px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.cookie-banner--hidden {
  transform: translateY(100%);
  opacity: 0;
}

.cookie-banner__content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  min-width: 200px;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.cookie-banner__text a {
  color: #0066ff;
  text-decoration: underline;
}

.cookie-banner__text a:hover {
  color: #3385ff;
}

.cookie-banner__btn {
  flex-shrink: 0;
  padding: 10px 24px;
  background: #0066ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-sizing: border-box;
}

.cookie-banner__btn:hover {
  background: #0052cc;
}

@media (max-width: 600px) {
  .cookie-banner__content {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner__btn {
    align-self: flex-end;
  }
}

/* ===== CRM Form Popup ===== */
.crm-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.crm-popup--active {
  visibility: visible;
  opacity: 1;
}

.crm-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.crm-popup__modal {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px 32px;
  width: 90%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.crm-popup__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: #9ca3af;
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.crm-popup__close:hover {
  color: #111827;
  background: #f3f4f6;
}

@media (max-width: 600px) {
  .crm-popup__modal {
    padding: 40px 16px 24px;
    border-radius: 12px;
    max-height: 95vh;
  }
}
