/* --- Global Reset & Variables --- */
:root {
  --bg-dark: #0a0b10;
  --text-light: #f4f4f9;
  --accent-holo: linear-gradient(135deg, #a8c0ff 0%, #fbc2eb 100%);
  --aurora-1: rgba(128, 153, 255, 0.15);
  --aurora-2: rgba(224, 128, 255, 0.15);
  --bento-gap: 20px;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3,
.logo__text {
  font-family: "Outfit", sans-serif;
}

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

/* --- Aurora Background Effect --- */
body::before,
body::after {
  content: "";
  position: fixed;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

body::before {
  background: var(--aurora-1);
  top: -10%;
  left: -10%;
}

body::after {
  background: var(--aurora-2);
  bottom: -10%;
  right: -10%;
}

/* --- Header --- */
.header {
  padding: 20px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-light);
}

.logo__text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav__link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  font-weight: 400;
  transition: var(--transition);
}

.nav__link:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav__link--cta {
  background: var(--accent-holo);
  color: #000;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
}

.nav__link--cta:hover {
  transform: scale(1.05) rotate(-1deg);
  box-shadow: 0 10px 20px rgba(168, 192, 255, 0.3);
}

.header__burger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* --- Footer --- */
.footer {
  padding: 100px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 100px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
}

.footer__title {
  margin-bottom: 25px;
  font-size: 1.1rem;
  color: #fff;
}

.footer__list {
  list-style: none;
}

.footer__list li {
  margin-bottom: 12px;
}

.footer__list a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.footer__list a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer__contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 15px;
}

.footer__bottom {
  margin-top: 80px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.3);
}

/* --- Mobile Adaptability --- */
@media (max-width: 992px) {
  .header__nav {
    display: none; /* Here logic for burger menu will be added */
  }
  .header__burger {
    display: block;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --- Hero & Bento Grid --- */
.hero {
  padding: 160px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: var(--bento-gap);
}

.bento-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
  transition: var(--transition);
}

.bento-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
}

.bento-item--main {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(
    circle at top left,
    rgba(168, 192, 255, 0.1),
    transparent
  );
}

.bento-item--info {
  grid-column: span 2;
}

.bento-item--accent {
  grid-column: span 1;
  background: var(--accent-holo);
  color: #000;
}

.bento-item--visual {
  grid-column: span 1;
  padding: 0;
}

/* --- Typography & Elements --- */
.hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 24px;
}

.text-gradient {
  background: var(--accent-holo);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn--holo {
  background: var(--accent-holo);
  color: #000;
  margin-top: 20px;
  width: fit-content;
}

.bento-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: #a8c0ff;
}

.bento-badge {
  background: rgba(0, 0, 0, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  display: inline-block;
}

/* --- Section Styling --- */
.section {
  padding: 100px 0;
}

.section-tag {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: #a8c0ff;
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 50px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  padding: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.02);
}

.feature-card__icon {
  color: #a8c0ff;
  margin-bottom: 20px;
}

/* --- Animation Classes --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Mobile --- */
@media (max-width: 992px) {
  .hero__bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .bento-item--main {
    grid-column: span 2;
    grid-row: span 1;
  }
}

/* --- Дополнительные стили Bento --- */
.section-bento {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--bento-gap);
}

.bento-item--visual-large {
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-img-full {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  margin-top: 20px;
  opacity: 0.7;
}

.bento-item--quote {
  background: rgba(168, 192, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.quote-icon {
  font-size: 4rem;
  font-family: serif;
  color: #a8c0ff;
  line-height: 1;
  margin-bottom: -10px;
}

/* --- Lifestyle Grid --- */
.lifestyle-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--bento-gap);
}

.bento-item--wide {
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.03),
    rgba(168, 192, 255, 0.05)
  );
}

/* --- Education Block --- */
.bento-item--edu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: #111218;
  padding: 60px;
}

.edu-icon-bg {
  width: 150px;
  height: 150px;
  color: rgba(168, 192, 255, 0.1);
  float: right;
}

@media (max-width: 768px) {
  .section-bento,
  .lifestyle-grid,
  .bento-item--edu {
    grid-template-columns: 1fr;
  }
  .bento-item--edu {
    padding: 30px;
  }
}

/* --- Contact Form --- */
.contact-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: rgba(255, 255, 255, 0.02);
  padding: 60px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.contact-form input {
  width: 100%;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  transition: var(--transition);
}

.contact-form input:focus {
  outline: none;
  border-color: #a8c0ff;
  background: rgba(255, 255, 255, 0.08);
}

.error-msg {
  color: #ff8080;
  font-size: 0.75rem;
  display: none;
  margin-top: 5px;
  padding-left: 5px;
}

.form-group.invalid input {
  border-color: #ff8080;
}
.form-group.invalid .error-msg {
  display: block;
}

/* Custom Checkbox */
.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.custom-checkbox input {
  display: none;
}

.checkmark {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  position: relative;
  transition: var(--transition);
}

.custom-checkbox input:checked + .checkmark {
  background: var(--accent-holo);
  border-color: transparent;
}

.custom-checkbox input:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  color: #000;
  font-weight: bold;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.success-message {
  display: none;
  text-align: center;
  margin-top: 20px;
  padding: 20px;
  background: rgba(168, 192, 255, 0.1);
  border-radius: 12px;
  color: #a8c0ff;
}

/* --- Cookie Popup --- */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 20px;
  right: 20px;
  background: rgba(15, 16, 22, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 20px;
  z-index: 2000;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  max-width: 500px;
}

.cookie-popup.is-active {
  bottom: 20px;
}

/* --- Styles for Policy Pages --- */
.pages {
  padding: 160px 0 100px;
}

.pages h1 {
  font-size: 3rem;
  margin-bottom: 40px;
  background: var(--accent-holo);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pages h2 {
  font-size: 1.8rem;
  margin: 40px 0 20px;
  color: #fff;
}
.pages p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}
.pages ul {
  margin-bottom: 20px;
  list-style: none;
}
.pages li {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}
.pages li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #a8c0ff;
}
.pages a {
  color: #a8c0ff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.pages a:hover {
  border-bottom-color: #a8c0ff;
}
