/* ========================================
   VRSchoolFest UA — Main Stylesheet
   ======================================== */

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

/* ---- CSS Custom Properties ---- */
:root {
  --bg-dark:        #0B1628;
  --bg-dark-2:      #111F3D;
  --bg-light:       #F0F4FF;
  --bg-white:       #FFFFFF;
  --color-primary:  #1D4ED8;
  --color-primary-h:#2563EB;
  --color-accent:   #06B6D4;
  --color-orange:   #F97316;
  --color-orange-h: #EA6C0A;
  --text-dark:      #0F172A;
  --text-muted:     #64748B;
  --text-light:     #F8FAFF;
  --text-light-dim: #CBD5E1;
  --border-light:   #E2E8F0;
  --border-dark:    #1E3A6E;
  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --max-w:          1160px;
  --font-head:      'Montserrat', sans-serif;
  --font-body:      'Inter', sans-serif;
  --shadow:         0 4px 24px rgba(11,22,40,0.18);
  --shadow-card:    0 2px 16px rgba(11,22,40,0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- Utility ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-title {
  font-family: var(--font-head);
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
}

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

.section-desc {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 600px;
}

.section-desc.light { color: var(--text-light-dim); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--text-light);
  border-color: var(--color-primary);
}
.btn-primary:hover { background: var(--color-primary-h); border-color: var(--color-primary-h); }

.btn-accent {
  background: var(--color-accent);
  color: var(--text-dark);
  border-color: var(--color-accent);
}
.btn-accent:hover { background: #0891B2; border-color: #0891B2; }

.btn-orange {
  background: var(--color-orange);
  color: var(--text-light);
  border-color: var(--color-orange);
}
.btn-orange:hover { background: var(--color-orange-h); border-color: var(--color-orange-h); }

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border-color: var(--text-light-dim);
}
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ---- Placeholder images ---- */
.photo-placeholder {
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.photo-placeholder::after {
  content: 'Фото';
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.photo-placeholder.dark {
  background: var(--bg-dark-2);
}
.photo-placeholder.dark::after { color: var(--border-dark); }


/* ========================================
   1. HEADER / HERO
   ======================================== */
.site-header {
  background: var(--bg-dark);
  padding: 0;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-dark);
}

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

.header-logo img.logo-svg {
  width: 56px;
  height: auto;
  flex-shrink: 0;
}

.header-logo .brand-name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

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

.header-contact-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-dark-2);
  border: 1px solid var(--border-dark);
  border-radius: 40px;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-light);
}
.header-contact-pill img { width: 18px; height: 18px; }

.hero-section {
  padding: 80px 0 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6,182,212,0.15);
  border: 1px solid rgba(6,182,212,0.3);
  border-radius: 40px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-light);
  margin-bottom: 20px;
}

.hero-title .accent { color: var(--color-accent); }
.hero-title .orange { color: var(--color-orange); }

.hero-desc {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-light-dim);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-dark);
}

.stat-item .stat-num {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}
.stat-item .stat-label {
  font-size: 13px;
  color: var(--text-light-dim);
  margin-top: 4px;
}

.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 400px;
}

.hero-photo-main {
  grid-column: 1 / 3;
  grid-row: 1;
  height: 220px;
}

.hero-photo-sm {
  height: 160px;
}


/* ========================================
   2. ABOUT SECTION
   ======================================== */
.about-section {
  padding: 80px 0;
  background: var(--bg-white);
}

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

.about-image-wrap {
  position: relative;
}

.about-main-photo {
  width: 100%;
  height: 360px;
}

.about-badge-float {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--color-primary);
  color: var(--text-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.about-badge-float .num {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 800;
  color: var(--color-accent);
}
.about-badge-float .lbl {
  font-size: 13px;
  color: var(--text-light-dim);
  margin-top: 2px;
}

.about-content .section-desc { margin: 16px 0 28px; }

.about-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-dark);
}
.about-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  margin-top: 7px;
}


/* ========================================
   3. SERVICES SECTION
   ======================================== */
.services-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.services-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}
.services-header .section-desc { margin: 12px auto 0; }

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

.service-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}

.service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}


/* ========================================
   4. HOW IT WORKS SECTION
   ======================================== */
.how-section {
  padding: 80px 0;
  background: var(--bg-dark);
}

.how-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}
.how-header .section-desc { margin: 12px auto 0; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(12.5% + 26px);
  right: calc(12.5% + 26px);
  height: 2px;
  background: var(--border-dark);
  z-index: 0;
}

.step-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-dark-2);
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-accent);
  margin: 0 auto 20px;
}

.step-item h3 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 8px;
}

.step-item p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-light-dim);
}


/* ========================================
   5. PRODUCTS / PACKAGES SECTION
   ======================================== */
.products-section {
  padding: 80px 0;
  background: var(--bg-white);
}

.products-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.products-header .section-desc { margin: 12px auto 0; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (min-width: 900px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  background: var(--bg-white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card.featured {
  border-color: var(--color-primary);
  position: relative;
}

.product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--color-orange);
  color: var(--text-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.product-photo {
  width: 100%;
  height: 160px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.product-photo.dark-ph { background: var(--bg-dark-2); color: var(--border-dark); }

.product-body {
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.product-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.product-features li {
  font-size: 13px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

.product-price {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.product-price span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.product-cta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.product-cta .btn {
  flex: 1;
  justify-content: center;
  padding: 11px 12px;
  font-size: 13px;
}


/* ========================================
   6. BENEFITS SECTION
   ======================================== */
.benefits-section {
  padding: 80px 0;
  background: var(--bg-dark);
}

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

.benefits-content .section-desc { margin: 16px 0 36px; }

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

.benefit-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.benefit-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-dark-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.benefit-icon img { width: 26px; height: 26px; }

.benefit-text h4 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 4px;
}

.benefit-text p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-light-dim);
}

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

.benefits-photos .photo-placeholder { height: 190px; }
.benefits-photos .photo-placeholder:first-child {
  grid-column: 1 / 3;
  height: 220px;
}


/* ========================================
   7. FOR WHOM SECTION
   ======================================== */
.audience-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.audience-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}
.audience-header .section-desc { margin: 12px auto 0; }

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

.audience-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 0;
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.audience-photo { height: 180px; width: 100%; }

.audience-body {
  padding: 24px 22px 22px;
}

.audience-body h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.audience-body p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}


/* ========================================
   8. SAFETY SECTION
   ======================================== */
.safety-section {
  padding: 80px 0;
  background: var(--bg-white);
}

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

.safety-photo { width: 100%; height: 380px; }

.safety-content .section-desc { margin: 16px 0 32px; }

.safety-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.safety-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  border: 1px solid var(--border-light);
}

.safety-card img { width: 32px; height: 32px; margin-bottom: 12px; }

.safety-card h4 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.safety-card p {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
}


/* ========================================
   9. FAQ SECTION
   ======================================== */
.faq-section {
  padding: 80px 0;
  background: var(--bg-dark);
}

.faq-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.faq-intro .section-desc { margin: 16px 0 28px; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-dark);
  padding: 20px 0;
}

.faq-item:first-child { border-top: 1px solid var(--border-dark); }

.faq-question {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  cursor: pointer;
}

.faq-toggle span {
  width: 12px;
  height: 2px;
  background: var(--color-accent);
  position: relative;
  display: block;
}
.faq-toggle span::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 12px;
  background: var(--color-accent);
  top: -5px;
  left: 5px;
}
.faq-item.open .faq-toggle span::after { display: none; }

.faq-answer {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-light-dim);
  margin-top: 12px;
  display: none;
}
.faq-item.open .faq-answer { display: block; }


/* ========================================
   10. GALLERY / PHOTO SECTION
   ======================================== */
.gallery-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.gallery-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}
.gallery-header .section-desc { margin: 12px auto 0; }

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

.gallery-grid .photo-placeholder:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1;
}
.gallery-grid .photo-placeholder:nth-child(2) {
  grid-column: 3 / 4;
  grid-row: 1;
}
.gallery-grid .photo-placeholder:nth-child(3),
.gallery-grid .photo-placeholder:nth-child(4),
.gallery-grid .photo-placeholder:nth-child(5) {
  grid-row: 2;
}


/* ========================================
   CONTACTS SECTION
   ======================================== */
.contacts-section {
  padding: 80px 0;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-dark);
}

.contacts-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}
.contacts-header .section-desc { margin: 12px auto 0; }

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.contact-card {
  background: var(--bg-dark-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.contact-card img {
  width: 40px;
  height: 40px;
}

.contact-card .c-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.contact-card .c-value {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.3;
}

.contact-card .c-sub {
  font-size: 13px;
  color: var(--text-light-dim);
}

.contact-card a { color: var(--text-light); }
.contact-card a:hover { color: var(--color-accent); }

.contacts-cta {
  text-align: center;
  padding: 40px;
  background: var(--bg-dark-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-dark);
}

.contacts-cta h3 {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 8px;
}

.contacts-cta p {
  font-size: 15px;
  color: var(--text-light-dim);
  margin-bottom: 24px;
}

.contacts-cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: #070E1C;
  padding: 32px 0;
  border-top: 1px solid var(--border-dark);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo img { width: 36px; height: auto; }
.footer-logo .brand { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--text-light); }
.footer-logo .brand span { color: var(--color-accent); }

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.footer-links a:hover { color: var(--color-accent); }


/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
  .hero-section { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image-wrap { order: -1; }
  .about-badge-float { right: 0; bottom: -14px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid::before { display: none; }
  .benefits-inner { grid-template-columns: 1fr; }
  .benefits-photos { display: none; }
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .safety-inner { grid-template-columns: 1fr; }
  .safety-photo { display: none; }
  .faq-inner { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-grid .photo-placeholder:nth-child(1) { grid-column: 1 / 3; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .safety-cards { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .header-contact-pill { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .photo-placeholder:nth-child(1) { grid-column: 1; }
  .hero-cta { flex-direction: column; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .contacts-cta-btns { flex-direction: column; align-items: center; }
}

/* ---- Center Alignment for Blocks (index only) ---- */
.center-align {
  text-align: center;
}

.center-align h2, .center-align h3 {
  margin-left: auto;
  margin-right: auto;
}

.services-grid.center-align, .products-grid.center-align,
.gallery-grid.center-align, .audience-grid.center-align {
  justify-items: center;
}

