/* ============================================
   ШКОЛА МЕБЕЛЬЩИКА — ПРЕМИАЛЬНЫЙ ЛЕНДИНГ
   Тёмная тема · Минимализм · Высокая конверсия
   ============================================ */

/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* --- RESET & BASE --- */
:root {
  --bg-deep: #0F1115;
  --bg-card: #16181D;
  --bg-card-hover: #1C1F26;
  --bg-glass: rgba(22, 24, 29, 0.7);
  --border-glass: rgba(255,255,255,0.06);
  --border-card: rgba(255,255,255,0.05);
  --text-primary: #FFFFFF;
  --text-secondary: #A1A5B0;
  --text-muted: #6B7080;
  --accent: #F4C430;
  --accent-glow: rgba(244, 196, 48, 0.25);
  --accent-orange: #F08C2E;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 1px 2px rgba(0,0,0,0.3), 0 4px 24px rgba(0,0,0,0.2);
  --shadow-glow: 0 0 60px rgba(244, 196, 48, 0.08);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* --- UTILITY --- */
.section-padding {
  padding: 100px 0;
}
@media (max-width: 768px) {
  .section-padding { padding: 64px 0; }
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid rgba(244,196,48,0.2);
  border-radius: 100px;
  background: rgba(244,196,48,0.05);
}

.section-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.55;
}

/* --- GLASS CARD --- */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.glass-card:hover {
  border-color: rgba(255,255,255,0.12);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* --- CARD BASE --- */
.card-premium {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  height: 100%;
}

.card-premium:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,255,255,0.1);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

/* --- BUTTONS --- */
.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #0F1115;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 36px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.btn-accent:hover {
  color: #0F1115;
  text-decoration: none;
  box-shadow: 0 0 40px var(--accent-glow), 0 8px 32px rgba(244,196,48,0.2);
  transform: translateY(-1px);
}

.btn-accent::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent);
  border-radius: 100px;
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-accent:hover::after { opacity: 1; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.05);
  color: #fff;
  text-decoration: none;
}

/* --- ICON WRAP --- */
.icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(244,196,48,0.08);
  color: var(--accent);
  font-size: 24px;
  flex-shrink: 0;
}

.icon-wrap-lg {
  width: 64px;
  height: 64px;
  font-size: 30px;
  border-radius: var(--radius-md);
}

/* --- HERO --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(244,196,48,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.06;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-image {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.hero-advantages {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-adv-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.05);
}

.hero-adv-item i {
  color: var(--accent);
  font-size: 16px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-cta-note {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 180px;
  line-height: 1.4;
}

/* --- WHY CARDS --- */
.why-card {
  text-align: center;
  padding: 40px 24px;
}

.why-card .icon-wrap-lg {
  margin: 0 auto 20px;
}

.why-card h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.why-card p {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0;
}

/* --- COMPARISON TABLE --- */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
}

.compare-table td {
  padding: 12px 20px;
  font-size: 15px;
}

.compare-table .col-label {
  color: var(--text-secondary);
  font-weight: 500;
  width: 40%;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: rgba(255,255,255,0.02);
}

.compare-table .col-us {
  background: rgba(244,196,48,0.06);
  color: #fff;
  font-weight: 600;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.compare-table .col-them {
  background: rgba(255,255,255,0.02);
  color: var(--text-muted);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.compare-header {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- TIMELINE --- */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), rgba(244,196,48,0.1));
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  z-index: 1;
}

.timeline-item.active .timeline-dot {
  background: var(--accent);
  color: #0F1115;
}

.timeline-content h5 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0;
}

/* --- GALLERY MASONRY --- */
.gallery-grid {
  columns: 3;
  column-gap: 16px;
}

@media (max-width: 992px) { .gallery-grid { columns: 2; } }
@media (max-width: 576px) { .gallery-grid { columns: 1; } }

.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: all var(--transition);
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay span {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

/* --- LIGHTBOX --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  transition: all var(--transition);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  padding: 28px;
}

.testimonial-stars {
  color: var(--accent);
  font-size: 15px;
  margin-bottom: 12px;
}

.testimonial-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(244,196,48,0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
}

.testimonial-name {
  font-weight: 600;
  font-size: 15px;
}

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

/* --- FAQ ACCORDION --- */
.faq-accordion .card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md) !important;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-accordion .card-header {
  background: transparent;
  border: none;
  padding: 0;
}

.faq-accordion .btn-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  text-align: left;
  text-decoration: none;
  border: none;
  background: transparent;
  transition: all var(--transition);
}

.faq-accordion .btn-link:hover {
  text-decoration: none;
  color: var(--accent);
}

.faq-accordion .btn-link i {
  transition: transform var(--transition);
  font-size: 20px;
  color: var(--text-muted);
}

.faq-accordion .btn-link[aria-expanded="true"] i {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-accordion .card-body {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* --- PRICING --- */
.pricing-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 44px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.pricing-price {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 16px 0 8px;
}

.pricing-currency {
  font-size: 24px;
  font-weight: 600;
  vertical-align: super;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 28px 0 32px;
  text-align: left;
  display: inline-block;
}

.pricing-features li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li i {
  color: var(--accent);
  font-size: 18px;
}

/* --- FINAL CTA --- */
.final-cta-section {
  position: relative;
  overflow: hidden;
}

.final-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(244,196,48,0.06) 0%, transparent 70%);
}

.final-cta-image {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* --- FOOTER --- */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 40px 0;
  font-size: 14px;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.site-footer a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  font-size: 18px;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: #0F1115;
}

/* --- STICKY MOBILE CTA --- */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px 16px;
  background: rgba(15,17,21,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.06);
}

@media (max-width: 768px) {
  .sticky-mobile-cta { display: block; }
}

.sticky-mobile-cta .btn-accent {
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
}

/* --- SCROLL ANIMATIONS --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* --- NAVBAR --- */
.navbar-premium {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
}

.navbar-premium.scrolled {
  background: rgba(15,17,21,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 10px 0;
}

.navbar-brand-premium {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #fff !important;
  letter-spacing: -0.02em;
}

.navbar-brand-premium span {
  color: var(--accent);
}

.nav-link-premium {
  color: var(--text-secondary) !important;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px !important;
  transition: color var(--transition);
}

.nav-link-premium:hover {
  color: #fff !important;
}

/* --- MAP --- */
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: none;
}

/* --- ADVANTAGES GRID --- */
.adv-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.adv-card .icon-wrap {
  margin-top: 2px;
}

.adv-card h5 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.adv-card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

/* --- AFTER COURSE CARDS --- */
.after-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
}

.after-card i {
  color: var(--accent);
  font-size: 22px;
  flex-shrink: 0;
}

.after-card span {
  font-weight: 600;
  font-size: 16px;
}

/* --- FOR WHOM --- */
.for-whom-card {
  padding: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.for-whom-card h5 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.for-whom-card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

/* --- CURRICULUM GRID --- */
.curriculum-card {
  padding: 24px 20px;
  text-align: center;
}

.curriculum-card .icon-wrap {
  margin: 0 auto 14px;
}

.curriculum-card h6 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.curriculum-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* --- RESPONSIVE FINE-TUNING --- */
@media (max-width: 992px) {
  .hero-section {
    min-height: auto;
    padding: 100px 0 60px;
  }
  .hero-image {
    margin-top: 40px;
    max-height: 400px;
  }
}

@media (max-width: 576px) {
  .pricing-card {
    padding: 32px 24px;
  }
  .pricing-price {
    font-size: 44px;
  }
  .card-premium {
    padding: 24px;
  }
}
/* --- TOAST --- */
.custom-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1C1F26;
  color: #fff;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  z-index: 99999;
  border: 1px solid rgba(244,196,48,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.custom-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .custom-toast {
    bottom: 90px;
    left: 16px;
    right: 16px;
    transform: translateY(20px);
    text-align: center;
    border-radius: var(--radius-md);
  }
  .custom-toast.show {
    transform: translateY(0);
  }
}