@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #0a0d10;
  --bg-secondary: #12171d;
  --bg-card: rgba(18, 23, 29, 0.65);
  --bg-input: rgba(255, 255, 255, 0.03);
  
  --accent-color: #f5a17f;       /* Теплый лососевый */
  --accent-glow: rgba(245, 161, 127, 0.15);
  --accent-glow-strong: rgba(245, 161, 127, 0.3);
  --accent-light: #ffd2c1;
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(245, 161, 127, 0.5);
  
  --glass-blur: 16px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* Сетки и общие обертки */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, .brand-title {
  font-family: 'Comfortaa', display;
  font-weight: 700;
  letter-spacing: -0.5px;
}

section {
  padding: 100px 0;
  position: relative;
}

/* Glassmorphism утилита */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  border: none;
  gap: 8px;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #000;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--accent-glow-strong);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(var(--glass-blur));
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

/* Навигация */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-fast);
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: rgba(10, 13, 16, 0.8);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: var(--transition-fast);
}

header.scrolled .container {
  height: 60px;
}

.logo {
  font-family: 'Comfortaa', display;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.burger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  flex-direction: column;
  gap: 6px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

/* Герой секция */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 70% 30%, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  height: 100%;
  z-index: 2;
  gap: 40px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero h1 span {
  color: var(--accent-color);
  position: relative;
}

.hero-descr {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-image-container {
  position: relative;
  height: 480px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  position: relative;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.hero-image-wrapper:hover img {
  transform: scale(1.05);
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 13, 16, 0.5), transparent);
}

/* О нас */
.about {
  background-color: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px auto;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

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

.about-content h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--accent-color);
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.about-bullets {
  list-style: none;
  margin-bottom: 32px;
}

.about-bullets li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
  color: var(--text-primary);
  font-weight: 500;
}

.about-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1.1rem;
}

.gallery-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.collage-item {
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  position: relative;
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.collage-item:hover img {
  transform: scale(1.08);
}

.collage-item:nth-child(2) {
  transform: translateY(20px);
}
.collage-item:nth-child(3) {
  transform: translateY(-20px);
}

/* Программа (Lost & Found) */
.program {
  background-color: var(--bg-primary);
}

.program-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.program-card {
  padding: 40px 32px;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.program-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background-color: rgba(245, 161, 127, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid rgba(245, 161, 127, 0.15);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent-color);
  fill: none;
}

.program-card h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

.program-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Тарифы */
.pricing {
  background-color: var(--bg-secondary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

.price-card {
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-normal);
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.price-card.popular {
  border-color: var(--accent-color);
  background: linear-gradient(180deg, rgba(20, 27, 34, 0.8) 0%, rgba(10, 13, 16, 0.8) 100%);
  box-shadow: 0 8px 32px rgba(245, 161, 127, 0.05);
}

.popular-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-color);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 1px;
}

.price-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.price-card .price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
}

.price-card .price span {
  font-size: 1.5rem;
  margin-left: 4px;
}

.price-features {
  list-style: none;
  margin-bottom: 40px;
  flex-grow: 1;
}

.price-features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.price-features li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--accent-color);
  font-weight: bold;
}

.price-card .btn {
  width: 100%;
}

.booking-note {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 48px;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(245, 161, 127, 0.3);
  background-color: rgba(245, 161, 127, 0.02);
}

.booking-note p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.booking-note strong {
  color: var(--accent-color);
}

.booking-note .alert {
  color: #ff6b6b;
  margin-top: 8px;
  font-weight: 600;
}

/* Форма Регистрации */
.registration {
  background-color: var(--bg-primary);
}

.form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px;
}

.form-title {
  text-align: center;
  margin-bottom: 40px;
}

.form-title h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.form-title p {
  color: var(--accent-color);
  font-weight: 500;
}

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

.form-full-width {
  grid-column: 1 / -1;
}

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(245, 161, 127, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

/* Стилизация ползунка возраста */
.range-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.range-val {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.1rem;
}

.range-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-color);
  outline: none;
  margin: 10px 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-color);
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 0 8px var(--accent-glow-strong);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Радиокнопки */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.radio-option {
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.radio-option:hover {
  border-color: rgba(245, 161, 127, 0.3);
}

.radio-option input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  margin-right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.radio-option input:checked ~ .radio-checkmark {
  border-color: var(--accent-color);
}

.radio-checkmark::after {
  content: '';
  width: 10px;
  height: 10px;
  background-color: var(--accent-color);
  border-radius: 50%;
  display: none;
}

.radio-option input:checked ~ .radio-checkmark::after {
  display: block;
}

.radio-option span.opt-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.radio-option input:checked ~ span.opt-text {
  color: var(--text-primary);
}

/* Чекбоксы */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.checkbox-option {
  display: flex;
  align-items: flex-start;
  position: relative;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.checkbox-option input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkbox-checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--text-muted);
  border-radius: 4px;
  margin-right: 12px;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.checkbox-option input:checked ~ .checkbox-checkmark {
  border-color: var(--accent-color);
  background-color: var(--accent-color);
}

.checkbox-checkmark::after {
  content: '✓';
  color: #000;
  font-size: 0.75rem;
  font-weight: bold;
  display: none;
}

.checkbox-option input:checked ~ .checkbox-checkmark::after {
  display: block;
}

/* Кнопка отправки */
.form-submit-container {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.form-submit-container .btn {
  width: 100%;
  max-width: 320px;
}

/* Сообщения об ошибках и успехе */
.error-message {
  color: #ff6b6b;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.form-group.has-error input {
  border-color: #ff6b6b;
}

.form-group.has-error .error-message {
  display: block;
}

/* Отзывы */
.reviews {
  background-color: var(--bg-secondary);
}

.reviews-slider {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.reviews-container {
  position: relative;
  min-height: 250px;
}

.review-slide {
  display: none;
  animation: fadeEffect 0.6s ease-in-out;
}

.review-slide.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.review-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-color);
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-quote {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 24px;
  max-width: 750px;
  position: relative;
}

.review-author {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-color);
}

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

.slider-btn {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: scale(1.05);
}

/* FAQ Аккордеон */
.faq {
  background-color: var(--bg-primary);
}

.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-normal);
  background: var(--bg-card);
}

.faq-item:hover {
  border-color: rgba(245, 161, 127, 0.3);
}

.faq-question {
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-question h3 {
  font-size: 1.05rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-primary);
  padding-right: 16px;
}

.faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--text-secondary);
  transition: var(--transition-normal);
}

.faq-icon::before {
  width: 14px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 14px;
}

.faq-item.active .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-item.active .faq-icon::before {
  background-color: var(--accent-color);
}

.faq-item.active {
  border-color: var(--accent-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1); /* Переход для сворачивания */
}

.faq-answer-inner {
  padding: 0 32px 24px 32px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  transition: max-height 0.35s cubic-bezier(1, 0, 1, 0); /* Переход для разворачивания */
}

.faq-item.active .faq-answer-inner {
  border-top-color: var(--border-color);
}

/* Футер */
footer {
  background-color: #050608;
  padding: 64px 0 32px 0;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-church {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: var(--transition-fast);
  text-decoration: none;
}

.social-link:hover {
  background-color: var(--accent-color);
  color: #000;
  transform: translateY(-3px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Галерея */
.gallery {
  background-color: var(--bg-secondary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 12px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  cursor: pointer;
  position: relative;
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-item--tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  display: block;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 16, 0);
  transition: background var(--transition-normal);
}

.gallery-item:hover::after {
  background: rgba(10, 13, 16, 0.25);
}

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

/* Лайтбокс */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 8, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-md);
  object-fit: contain;
  border: 1px solid var(--border-color);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(18, 23, 29, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 1.2rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  top: 20px;
  right: 20px;
  font-size: 1.6rem;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

@media screen and (max-width: 768px) {
  .gallery-desktop-only {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .gallery-item--wide {
    grid-column: span 2;
  }

  .gallery-item--tall {
    grid-row: span 1;
  }
}

@media screen and (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .gallery-item--wide {
    grid-column: span 1;
  }
}

/* Страница Спасибо */
.thankyou-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at 50% 50%, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.thankyou-panel {
  max-width: 600px;
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(245, 161, 127, 0.1);
  border: 2px solid var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  color: var(--accent-color);
  animation: pulse 2s infinite;
}

.success-icon svg {
  width: 40px;
  height: 40px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 161, 127, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(245, 161, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 161, 127, 0); }
}

.thankyou-panel h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.thankyou-panel p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.tg-btn-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.tg-btn-container .btn {
  width: 100%;
}

/* Адаптивность */
@media screen and (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    padding-top: 120px;
    padding-bottom: 60px;
    height: auto;
    text-align: center;
    gap: 60px;
  }

  .hero-content {
    align-items: center;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-image-container {
    height: 380px;
  }

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

  .gallery-collage {
    order: 2;
  }

  .collage-item {
    height: 180px;
    transform: none !important;
  }

  .gallery-collage {
    gap: 12px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }

  .price-card.popular {
    transform: scale(1);
  }

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

@media screen and (max-width: 768px) {
  section {
    padding: 70px 0;
  }

  .nav-links {
    display: none;
    z-index: 999;
  }

  .nav-links.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    gap: 0;
  }

  .nav-links.mobile-open li {
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links.mobile-open li:last-child {
    border-bottom: none;
    padding-top: 16px;
  }

  .nav-links.mobile-open a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
  }

  /* Подложка при открытом меню */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: 80px;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }

  .nav-overlay.active {
    display: block;
  }

  .burger {
    display: flex;
  }

  /* Hero на мобильном: убираем flex-центровку, прибиваем к верху с отступом под шапку */
  .hero {
    height: auto;
    min-height: 100svh;
    align-items: flex-start;
  }

  .hero .container {
    padding-top: 100px;
    padding-bottom: 60px;
  }

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

  .form-wrapper {
    padding: 32px 24px;
  }

  .footer-content {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }
}
