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

:root {
  --bg: #0a0a0f;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0f0f5;
  --text-secondary: #8a8a9a;
  --accent: #f5c518;
  --accent-glow: rgba(245, 197, 24, 0.15);
  --green: #25d366;
  --green-dark: #1da851;
  --vk-blue: #0077ff;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Unbounded', 'Inter', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.lightbox-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

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

ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === Animations === */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* === Header === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 0;
  transition: background var(--transition), backdrop-filter var(--transition);
}

.header.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.header__logo-icon { font-size: 24px; }

.header__logo-text {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.header__nav {
  display: flex;
  gap: 24px;
}

.header__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.header__nav a:hover { color: var(--text); }

.header__phone {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent);
  color: #000;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.header__phone:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--accent-glow);
}

.header__phone-icon { font-size: 16px; }

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 20px 60px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10, 10, 15, 0.45) 0%, rgba(10, 10, 15, 0.6) 50%, rgba(10, 10, 15, 0.95) 100%),
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(245, 197, 24, 0.08) 0%, transparent 60%);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-glow);
  border: 1px solid rgba(245, 197, 24, 0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #ffd54f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

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

.hero__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero__trust-item { text-align: center; }

.hero__trust-number {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
}

.hero__trust-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero__trust-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 11px;
  animation: float 2s ease-in-out infinite;
}

.hero__scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: rotate(45deg);
}

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

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn--primary {
  background: var(--accent);
  color: #000;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--max {
  background: linear-gradient(135deg, #6c5ce7, #a855f7);
  color: #fff;
}

.btn--max:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.3);
}

.btn--vk {
  background: var(--vk-blue);
  color: #fff;
}

.btn--vk:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 119, 255, 0.2);
}

.btn__icon { font-size: 18px; }

.btn__icon-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

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

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.text-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #ffd54f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Services === */
.services {
  padding: 100px 0;
}

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

.service-card {
  padding: 32px 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition);
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(245, 197, 24, 0.2);
  transform: translateY(-4px);
}

.service-card__icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.service-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-card__text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === How It Works === */
.how {
  padding: 100px 0;
}

.how__steps {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.how__step {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.how__step:last-child { border-bottom: none; }

.how__step-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  flex-shrink: 0;
}

.how__step-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.how__step-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === Prices === */
.prices {
  padding: 100px 0;
}

.prices__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

.price-card {
  padding: 32px 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  transition: all var(--transition);
  position: relative;
}

.price-card:hover {
  transform: translateY(-4px);
}

.price-card--featured {
  background: rgba(245, 197, 24, 0.05);
  border-color: rgba(245, 197, 24, 0.3);
  transform: scale(1.03);
}

.price-card--featured:hover {
  transform: scale(1.03) translateY(-4px);
}

.price-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--accent);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-card__header {
  margin-bottom: 20px;
}

.price-card__icon {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
}

.price-card__title {
  font-size: 18px;
  font-weight: 700;
}

.price-card__price {
  margin-bottom: 24px;
}

.price-card__from {
  font-size: 14px;
  color: var(--text-secondary);
}

.price-card__amount {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
}

.price-card__features {
  text-align: left;
  margin-bottom: 24px;
}

.price-card__features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  padding-left: 20px;
  position: relative;
}

.price-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

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

.prices__note {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.prices__note p { margin-bottom: 8px; }
.prices__note p:last-child { margin-top: 12px; color: var(--accent); font-weight: 600; }

.prices__conditions {
  display: inline-block;
  text-align: left;
  margin-bottom: 4px;
}

.prices__conditions li {
  padding: 2px 0;
  padding-left: 16px;
  position: relative;
}

.prices__conditions li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* === About === */
.about {
  padding: 100px 0;
}

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

.about__photo {
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16/10;
}

.about__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.about__content .section-label { margin-bottom: 8px; }
.about__content .section-title { text-align: left; margin-bottom: 24px; }

.about__text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about__quote {
  padding: 20px 24px;
  background: var(--accent-glow);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 18px;
  font-weight: 600;
  font-style: italic;
  color: var(--accent);
  margin: 24px 0;
}

.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about__feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.about__feature-icon { font-size: 16px; }

/* === Gallery === */
.gallery {
  padding: 100px 0;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 900px;
  margin: 0 auto;
}

.gallery__item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 3/2;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.3s ease;
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery__overlay span {
  padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.05em;
}

.gallery__item:hover .gallery__overlay { opacity: 1; }
.gallery__item:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overscroll-behavior: contain;
}

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

.lightbox__content {
  width: 90vw;
  max-width: 900px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform, opacity;
}

.lightbox__img {
  width: 100%;
  height: 70vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox.active .lightbox__img {
  animation: lightboxIn 0.3s ease;
}

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

.lightbox__caption {
  margin-top: 16px;
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
}

.lightbox__counter {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  z-index: 201;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition);
}

.lightbox__close:hover { opacity: 0.7; }

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 201;
}

.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(255, 255, 255, 0.2); }

/* === CTA === */
.cta {
  padding: 100px 0;
}

.cta__inner {
  text-align: center;
  padding: 64px 32px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(245, 197, 24, 0.08) 0%, transparent 60%),
    var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  margin-bottom: 12px;
}

.cta__subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.cta__phones {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.cta__phone-main,
.cta__phone-secondary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.cta__phone-main {
  background: var(--accent);
  color: #000;
}

.cta__phone-main:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.cta__phone-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.cta__phone-secondary:hover {
  border-color: var(--accent);
}

.cta__phone-icon { font-size: 24px; }

.cta__phone-number {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.cta__phone-label {
  font-size: 12px;
  opacity: 0.7;
}

.cta__messengers {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cta__address {
  font-size: 14px;
  color: var(--text-secondary);
}

/* === Footer === */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* === Mobile Fixed CTA === */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  gap: 8px;
}

.mobile-cta__call,
.mobile-cta__wa {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
}

.mobile-cta__call {
  background: var(--accent);
  color: #000;
}

.mobile-cta__wa {
  background: var(--vk-blue);
  color: #fff;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .prices__grid { grid-template-columns: repeat(2, 1fr); }
  .price-card--featured { grid-column: span 2; }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
}

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

  .header__phone-text { display: none; }

  .header__phone {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
  }

  .hero { padding: 100px 20px 80px; }
  .hero__title { margin-bottom: 16px; }

  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn--lg { width: 100%; max-width: 320px; justify-content: center; }

  .hero__trust { gap: 16px; }
  .hero__trust-number { font-size: 20px; }

  .hero__scroll-hint { display: none; }

  .services,
  .how,
  .prices,
  .about,
  .gallery,
  .cta { padding: 64px 0; }

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

  .how__step { gap: 16px; }
  .how__step-number { font-size: 36px; }

  .prices__grid { grid-template-columns: 1fr; }
  .price-card--featured {
    grid-column: auto;
    transform: none;
  }
  .price-card--featured:hover { transform: translateY(-4px); }

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

  .about__content .section-title { text-align: center; }
  .about__photo { aspect-ratio: 16/10; }

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

  .gallery__grid { grid-template-columns: 1fr 1fr; gap: 6px; }

  .lightbox__prev,
  .lightbox__next { display: none; }

  .lightbox__caption { font-size: 14px; padding: 0 16px; }

  .cta__inner { padding: 40px 20px; }
  .cta__phones { flex-direction: column; align-items: center; }
  .cta__phone-main, .cta__phone-secondary { width: 100%; max-width: 320px; }

  .mobile-cta { display: flex; }

  .footer { padding-bottom: 90px; }
  .footer__inner { justify-content: center; text-align: center; }
}

@media (max-width: 380px) {
  .hero__title { font-size: 32px; }
  .section-title { font-size: 26px; }
}
