/*! Варяг — Landing Page Styles */

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
  --color-primary: #1a2e1a;
  --color-primary-light: #2d4a2d;
  --color-primary-dark: #0f1a0f;
  --color-accent: #c8a415;
  --color-accent-hover: #a88a10;
  --color-dark: #1a1a1a;
  --color-dark-gray: #2a2a2a;
  --color-gray: #666;
  --color-light-gray: #e0e0e0;
  --color-white: #ffffff;
  --color-bg: #f5f5f0;
  --color-bg-dark: #1a2e1a;

  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Roboto', sans-serif;

  --header-height: 70px;

  --transition: 0.3s ease;

  --container-width: 1200px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

::selection {
  background: var(--color-accent);
  color: var(--color-white);
}

::-moz-selection {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-white);
}

.section__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.section--dark .section__title {
  color: var(--color-white);
}

.section__subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-gray);
  margin-bottom: 50px;
}

.section--dark .section__subtitle {
  color: rgba(255, 255, 255, 0.7);
}

/* Fade-in animation for sections */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-dark);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(200, 164, 21, 0.4);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--outline:hover {
  background-color: var(--color-white);
  color: var(--color-dark);
  transform: translateY(-2px);
}

.btn--outline-dark {
  background-color: transparent;
  color: var(--color-dark);
  border-color: var(--color-dark);
}

.btn--outline-dark:hover {
  background-color: var(--color-dark);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(26, 46, 26, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  transition: background-color var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background-color: rgba(15, 26, 15, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  z-index: 1001;
}

.header__logo-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 3px;
}

.header__nav {
  display: flex;
  align-items: center;
}

.header__nav-list {
  display: flex;
  gap: 30px;
}

.header__nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 0;
  position: relative;
  transition: color var(--transition);
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition);
}

.header__nav-link:hover,
.header__nav-link.active {
  color: var(--color-accent);
}

.header__nav-link:hover::after,
.header__nav-link.active::after {
  width: 100%;
}

/* Burger */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

.header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  transition: all var(--transition);
  transform-origin: center;
}

.header__burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
}

.header__burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary-dark);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(45, 74, 45, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(45, 74, 45, 0.3) 0%, transparent 60%),
    linear-gradient(180deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 26, 15, 0.8) 0%,
    rgba(26, 46, 26, 0.6) 50%,
    rgba(15, 26, 15, 0.8) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 20px 80px;
  max-width: 900px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 4px;
  line-height: 1.2;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero__subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
  line-height: 1.6;
}

.hero__subtitle--accent {
  color: var(--color-accent);
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.hero__actions {
  margin-top: 30px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   About
   ========================================================================== */

.about__text {
  max-width: 800px;
  margin: 0 auto;
}

.about__text p {
  margin-bottom: 16px;
  color: #444;
  line-height: 1.8;
}

.about__lead {
  font-size: 1.15rem;
  color: var(--color-dark) !important;
  line-height: 1.7;
}

/* ==========================================================================
   Program
   ========================================================================== */

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

.program__card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  transition: all var(--transition);
}

.program__card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-6px);
  border-color: var(--color-accent);
}

.program__includes {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.program__include-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.program__include-label {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent);
  white-space: nowrap;
}

.program__modules-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  color: var(--color-accent);
  margin-bottom: 30px;
}

.program__card-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.4;
  margin-bottom: 12px;
  line-height: 1;
}

.program__card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: var(--color-white);
}

.program__card-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* ==========================================================================
   Gallery / Carousel
   ========================================================================== */

.gallery {
  background-color: var(--color-primary-dark);
}

.gallery__carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
}

.gallery__track {
  display: flex;
  transition: transform 0.5s ease;
}

.gallery__slide {
  min-width: 100%;
  position: relative;
}

.gallery__slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px 16px;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-white);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.gallery__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 2;
}

.gallery__btn:hover {
  background: var(--color-accent);
  color: var(--color-dark);
  transform: translateY(-50%) scale(1.1);
}

.gallery__btn--prev {
  left: 12px;
}

.gallery__btn--next {
  right: 12px;
}

.gallery__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.gallery__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

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

.gallery__dot.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* ==========================================================================
   Conditions
   ========================================================================== */

.conditions__intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
}

.conditions__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.conditions__main {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 36px 30px;
}

.conditions__highlight {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.conditions__highlight-amount {
  display: block;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 2px;
  line-height: 1.2;
}

.conditions__highlight-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 6px;
}

.conditions__extra {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 36px 30px;
}

.conditions__priority {
  text-align: center;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 50px;
  line-height: 1.8;
}

.conditions__priority strong {
  display: block;
  font-size: 1.3rem;
  color: var(--color-accent);
  margin-top: 4px;
}

.conditions__extra-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent);
  margin-bottom: 24px;
  text-align: center;
}

.conditions__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.conditions__item {
  padding: 10px 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

/* Responsive conditions */
@media (max-width: 768px) {
  .conditions__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .conditions__highlight-amount {
    font-size: 2.4rem;
  }

  .conditions__main,
  .conditions__extra {
    padding: 24px 20px;
  }

}

@media (max-width: 480px) {
  .conditions__highlight-amount {
    font-size: 2rem;
  }

  .conditions__item {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   How to Enroll
   ========================================================================== */

.enroll__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.enroll__step {
  text-align: center;
  position: relative;
}

.enroll__step-number {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.enroll__step-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.enroll__step p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

.enroll__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Contacts
   ========================================================================== */

.contacts__grid {
  max-width: 600px;
}

.contacts__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.contacts__item-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: var(--color-primary);
  color: var(--color-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contacts__item h3 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-gray);
  margin-bottom: 4px;
}

.contacts__item a {
  color: var(--color-dark);
  font-size: 1.1rem;
  font-weight: 500;
}

.contacts__item a:hover {
  color: var(--color-accent-hover);
}

.contacts__item p {
  font-size: 1rem;
  color: #555;
}

.contacts__socials {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.contacts__social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  transition: all var(--transition);
  padding: 12px;
  border-radius: 8px;
  background: rgba(26, 46, 26, 0.06);
}

.contacts__social-link:hover {
  background: var(--color-primary);
  color: var(--color-accent);
  transform: translateY(-3px);
}

.contacts__social-link span {
  font-size: 0.8rem;
  font-weight: 500;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background-color: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 30px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 3px;
}

.footer__copy {
  font-size: 0.85rem;
}

.footer__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer__phone {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
  white-space: nowrap;
}

.footer__phone:hover {
  color: var(--color-accent);
}

.footer__right {
  display: flex;
  gap: 12px;
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition);
}

.footer__social:hover {
  background: var(--color-accent);
  color: var(--color-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   Responsive: Tablet (< 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
  .program__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section__title {
    font-size: 2rem;
  }

  .hero__title {
    font-size: 2.8rem;
  }
}

/* ==========================================================================
   Responsive: Mobile (< 768px)
   ========================================================================== */

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .section {
    padding: 60px 0;
  }

  .section__title {
    font-size: 1.8rem;
  }

  /* Mobile nav */
  .header__burger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-primary-dark);
    padding: 100px 30px 30px;
    transition: right var(--transition);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
  }

  .header__nav.open {
    right: 0;
  }

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

  .header__nav-link {
    display: block;
    padding: 16px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .header__nav-link::after {
    display: none;
  }

  /* Hero */
  .hero__title {
    font-size: 2rem;
    letter-spacing: 2px;
  }

  .hero__content {
    padding: 100px 16px 60px;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__subtitle--accent {
    font-size: 1.1rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 300px;
  }

  /* About */
  /* Program */
  .program__includes {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
  }

  .program__grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .program__card {
    padding: 20px 16px;
  }

  /* Enroll */
  .enroll__steps {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .enroll__cta {
    flex-direction: column;
    align-items: center;
  }

  .enroll__cta .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Gallery */
  .gallery__btn {
    width: 40px;
    height: 40px;
  }

  .gallery__btn--prev {
    left: 8px;
  }

  .gallery__btn--next {
    right: 8px;
  }

  .gallery__caption {
    font-size: 0.95rem;
    padding: 30px 16px 12px;
  }

  /* Contacts */
  .contacts__socials {
    justify-content: flex-start;
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__left {
    flex-direction: column;
    gap: 8px;
  }
}

/* ==========================================================================
   Responsive: Small Mobile (< 480px)
   ========================================================================== */

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.6rem;
  }

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

  .section__title {
    font-size: 1.5rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .contacts__socials {
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .header,
  .hero__overlay,
  .hero__actions,
  .footer__right {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 20px 0;
  }

  .hero__title {
    color: #000 !important;
    font-size: 1.5rem;
    text-shadow: none;
  }

  .hero__subtitle {
    color: #333 !important;
  }

  .section {
    padding: 30px 0;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }
}
