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

:root {
  --bg:        #0a0a0f;
  --bg-card:   #13131a;
  --bg-card2:  #1a1a24;
  --border:    rgba(255,255,255,0.07);
  --border-h:  rgba(255,255,255,0.15);
  --text:      #f0f0f5;
  --muted:     #8888aa;
  --accent:    #7c5cfc;
  --accent2:   #a78bfa;
  --accent3:   #38bdf8;
  --gold:      #f59e0b;
  --radius:    16px;
  --radius-sm: 8px;
  --shadow:    0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(124,92,252,0.2);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ===== TYPOGRAPHY ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--accent2) 0%, var(--accent3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent2);
}

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

.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 60px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(124,92,252,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(124,92,252,0.5);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  border-radius: 100px;
  border: 1px solid var(--border-h);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-ghost:hover {
  border-color: var(--accent2);
  color: var(--accent2);
  background: rgba(124,92,252,0.08);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  transition: all 0.3s ease;
}
.header.scrolled {
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-icon {
  font-size: 22px;
  background: linear-gradient(135deg, var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo-text em {
  font-style: normal;
  color: var(--muted);
  font-weight: 400;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  margin-left: auto;
}
.nav-links a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: 100px;
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--border); }

.btn-nav {
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(124,92,252,0.3);
}
.btn-nav:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(124,92,252,0.5); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,92,252,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,92,252,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,92,252,0.15) 0%, transparent 70%);
  top: -100px; left: -100px;
}
.hero-glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(56,189,248,0.1) 0%, transparent 70%);
  bottom: -50px; right: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 60px;
  padding-bottom: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(124,92,252,0.1);
  border: 1px solid rgba(124,92,252,0.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent2);
  margin-bottom: 32px;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent2);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.stat strong {
  display: block;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat span { font-size: 13px; color: var(--muted); }
.stat-divider { width: 1px; height: 40px; background: var(--border-h); }

/* ===== STYLES SECTION ===== */
.styles-section { padding: 120px 0; }

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

.style-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}
.style-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,92,252,0.06), transparent);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.style-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(124,92,252,0.2);
}
.style-card:hover::before { opacity: 1; }

.style-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent2);
  opacity: 0.5;
  margin-bottom: 16px;
}

.style-icon-wrap {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124,92,252,0.1);
  border-radius: 12px;
  margin-bottom: 18px;
  color: var(--accent2);
  transition: all 0.3s;
}
.style-card:hover .style-icon-wrap {
  background: rgba(124,92,252,0.2);
  color: var(--accent3);
}

.style-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.style-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.style-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.style-tags span {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--muted);
}

.style-request {
  width: 100%;
  padding: 11px 16px;
  background: transparent;
  border: 1px solid var(--border-h);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  text-align: left;
}
.style-request:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ===== DESIGNERS ===== */
.designers-section {
  padding: 120px 0;
  background: linear-gradient(180deg, transparent, rgba(124,92,252,0.04) 50%, transparent);
}

/* ===== SLIDER ===== */
.designers-slider-wrap {
  position: relative;
}

.designers-slider-overflow {
  overflow: hidden;
  border-radius: 24px;
}

.designers-grid {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.designer-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
}

.slider-arrows {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

.slider-arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-h);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  flex-shrink: 0;
}
.slider-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(124,92,252,0.4);
}
.slider-arrow:disabled {
  opacity: 0.3;
  pointer-events: none;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-h);
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  padding: 0;
}
.slider-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--accent);
}

@media (max-width: 1100px) {
  .designer-card { flex: 0 0 calc((100% - 24px) / 2); }
}
@media (max-width: 640px) {
  .designer-card { flex: 0 0 100%; }
}

.designer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}
.designer-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent3));
  opacity: 0;
  transition: opacity 0.35s;
}
.designer-card:hover {
  border-color: var(--border-h);
  transform: translateY(-6px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.designer-card:hover::after { opacity: 1; }

.designer-card.featured {
  border-color: rgba(245,158,11,0.3);
  background: linear-gradient(135deg, rgba(245,158,11,0.05), var(--bg-card));
}
.designer-card.featured::after {
  opacity: 1;
  background: linear-gradient(90deg, var(--gold), #ef4444);
}

.featured-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.designer-photo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.designer-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: block;
  overflow: hidden;
}

.designer-badge-exp {
  position: absolute;
  bottom: 0; right: -4px;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  white-space: nowrap;
  border: 2px solid var(--bg-card);
}

.designer-info h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.designer-role {
  font-size: 13px;
  color: var(--accent2);
  font-weight: 500;
  margin-bottom: 14px;
}

.designer-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.designer-styles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.designer-styles span {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  background: rgba(124,92,252,0.1);
  border: 1px solid rgba(124,92,252,0.2);
  border-radius: 100px;
  color: var(--accent2);
}

.designer-projects {
  display: flex;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.dp-stat strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.dp-stat small { font-size: 12px; color: var(--muted); }

/* ===== REQUEST SECTION ===== */
.request-section { padding: 120px 0; }

.form-wrapper {
  max-width: 760px;
  margin: 0 auto;
}

.request-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-group:last-of-type { margin-bottom: 0; }

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  transition: all 0.25s;
  outline: none;
  resize: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(136,136,170,0.5); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,92,252,0.15);
  background: var(--bg-card);
}
.form-group select option { background: var(--bg-card2); }

.btn-submit {
  width: 100%;
  margin-top: 28px;
  padding: 18px 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(124,92,252,0.35);
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(124,92,252,0.5);
}
.btn-submit:active { transform: translateY(0); }
.btn-submit.loading { opacity: 0.7; pointer-events: none; }
.btn-arrow { font-size: 20px; transition: transform 0.3s; }
.btn-submit:hover .btn-arrow { transform: translateX(4px); }

.form-note {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
  opacity: 0.7;
}

/* Блок выбранного стиля из карточки */
.selected-style-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(124,92,252,0.12);
  border: 1px solid rgba(124,92,252,0.4);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent2);
  animation: fadeIn 0.3s ease;
}
.selected-style-icon { font-size: 18px; }
.selected-style-box span { flex: 1; }
.clear-style-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.2s;
}
.clear-style-btn:hover { color: var(--text); }

/* Кнопка "Помогите определиться" */
.btn-help-style {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  border: 1px dashed rgba(124,92,252,0.5);
  border-radius: var(--radius-sm);
  color: var(--accent2);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s;
  width: 100%;
  justify-content: center;
}
.btn-help-style::before { content: '✦'; font-size: 12px; }
.btn-help-style:hover {
  background: rgba(124,92,252,0.1);
  border-color: var(--accent2);
  color: var(--accent2);
}
.btn-help-style.active {
  background: rgba(124,92,252,0.15);
  border-style: solid;
  border-color: var(--accent);
  color: var(--accent2);
}

/* Скрытая форма после отправки */
.hidden-form { display: none; }

/* Success state */
.form-success {
  display: none;
  text-align: center;
  padding: 80px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
}
.form-success.visible { display: block; animation: fadeIn 0.5s ease; }
.form-success .btn-ghost { margin-top: 24px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  margin: 0 auto 24px;
  box-shadow: 0 16px 48px rgba(124,92,252,0.4);
}

.form-success h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}
.form-success p { color: var(--muted); line-height: 1.7; }

/* ===== FOOTER ===== */
.footer {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-tagline { font-size: 14px; color: var(--muted); }
.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent2); }
.footer-copy { font-size: 13px; color: rgba(136,136,170,0.5); }

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links, .btn-nav { display: none; }
  .burger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(10,10,15,0.97);
    backdrop-filter: blur(20px);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .nav-links.open a { padding: 14px 20px; border-radius: var(--radius-sm); font-size: 16px; }

  .hero-title { font-size: clamp(38px, 9vw, 64px); }
  .form-row { grid-template-columns: 1fr; }
  .request-form { padding: 32px 24px; }
  .designers-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .styles-section, .designers-section, .request-section { padding: 80px 0; }
  .hero-stats { gap: 24px; }
  .stat-divider { display: none; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .styles-grid { grid-template-columns: 1fr; }
}
