/* --- Global Styles & Reset --- */
:root {
  --primary: #6366f1;
  --secondary: #a855f7;
  --dark: #0f172a;
  --light: #f8fafc;
  --gray: #64748b;
  --glass: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.1);
  --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--dark);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
  /* Aurora Background */
  background-image:
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.15) 0px, transparent 50%);
}

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

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

/* --- Header --- */
.header {
  padding: 20px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray);
}

.nav__link:hover {
  color: var(--light);
  transform: translateY(-2px);
}

.nav__btn {
  background: var(--primary);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
}

.nav__btn:hover {
  background: var(--secondary);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

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

.burger span {
  width: 24px;
  height: 2px;
  background: var(--light);
  transition: var(--transition);
}

/* --- Footer --- */
.footer {
  background: rgba(2, 6, 23, 0.5);
  padding: 100px 0 40px;
  border-top: 1px solid var(--border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer__title {
  font-family: "Syne", sans-serif;
  margin-bottom: 24px;
  font-size: 1.1rem;
}

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

.footer__list a {
  color: var(--gray);
  font-size: 0.9rem;
}

.footer__list a:hover {
  color: var(--primary);
  padding-left: 8px;
}

.footer__contact-link {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--light);
}

.footer__address {
  font-size: 0.85rem;
  color: var(--gray);
}

.footer__bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  color: var(--gray);
  font-size: 0.8rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav {
    display: none;
  }
  .burger {
    display: flex;
  }

  .nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--dark);
    padding: 40px;
    border-bottom: 1px solid var(--border);
  }

  .nav.active .nav__list {
    flex-direction: column;
    gap: 20px;
  }
}

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

/* --- Styles for Policy Pages (Step 5 Preview) --- */
.pages {
  padding: 160px 0 100px;
}
.pages h1 {
  font-family: "Syne", sans-serif;
  font-size: 3rem;
  margin-bottom: 40px;
}
.pages h2 {
  margin: 30px 0 15px;
}
.pages p {
  margin-bottom: 15px;
  color: var(--gray);
}

/* --- Hero & Bento Grid --- */
.hero {
  padding: 140px 0 60px;
}

.hero__bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, minmax(200px, auto));
  gap: 20px;
}

.bento-item {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  opacity: 0; /* Для анимации JS */
  transform: translateY(30px);
}

.hero__main {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  width: fit-content;
}

.hero__title {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero__title span {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__text {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 600px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  padding: 16px 32px;
  border-radius: 16px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.btn--primary {
  background: var(--primary);
  color: white;
}
.btn--primary:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn--secondary {
  background: transparent;
  border: 1px solid var(--border);
}
.btn--secondary:hover {
  background: var(--border);
}

.hero__stats {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero__stat-val {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: "Syne", sans-serif;
  color: var(--secondary);
}

.hero__info {
  grid-column: span 2;
}

.hero__info h3 {
  font-family: "Syne", sans-serif;
  margin-bottom: 12px;
}

.hero__check {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4ade80;
}

.hero__image {
  grid-column: span 2;
  padding: 0;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero__overlay-text {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 12px;
  backdrop-filter: blur(5px);
}

/* Адаптивность Bento */
@media (max-width: 992px) {
  .hero__bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero__main {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .hero__bento {
    grid-template-columns: 1fr;
  }
  .hero__main,
  .hero__stats,
  .hero__info,
  .hero__image {
    grid-column: span 1;
  }
}

/* --- Strategy Section (Editorial Style) --- */
.strategy {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.strategy__header {
  margin-bottom: 80px;
}

.strategy__label {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.strategy__title {
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  max-width: 800px;
  line-height: 1.1;
}

.strategy__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0; /* Убираем стандартные отступы для стиля таблицы */
  border-left: 1px solid var(--border);
}

.strategy__item {
  padding: 40px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.strategy__item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.strategy__number {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 40px;
}

.strategy__subtitle {
  font-family: "Syne", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.strategy__text {
  color: var(--gray);
  font-size: 1rem;
}

.strategy__footer {
  margin-top: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.strategy__note {
  font-size: 0.9rem;
  color: var(--gray);
  max-width: 400px;
  font-style: italic;
}

.strategy__link {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: "Syne", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.strategy__link i {
  transition: var(--transition);
}

.strategy__link:hover {
  color: var(--primary);
}

.strategy__link:hover i {
  transform: translateX(10px);
}

/* Адаптивность для Strategy */
@media (max-width: 992px) {
  .strategy__grid {
    grid-template-columns: 1fr;
  }
  .strategy__item {
    border-left: 1px solid var(--border);
  }
}

/* --- Mentorship Section (Fluid & Organic) --- */
.mentorship {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.blob-bg {
  position: absolute;
  top: 50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.1) 0%,
    transparent 70%
  );
  filter: blur(60px);
  z-index: -1;
  animation: pulseBlob 10s infinite alternate;
}

@keyframes pulseBlob {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-50px, 30px) scale(1.1);
  }
}

.mentorship__container {
  display: flex;
  align-items: center;
  gap: 80px;
}

.mentorship__content {
  flex: 1;
}

.mentorship__title {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 30px;
}

.mentorship__title span {
  color: var(--secondary);
}

.mentorship__text {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 40px;
}

.mentorship__features {
  margin-bottom: 50px;
}

.mentorship__feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  font-weight: 500;
}

.mentorship__feature-item i {
  color: var(--primary);
}

/* Кнопка аморфной формы */
.organic-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px;
  font-weight: 700;
  color: white;
  z-index: 1;
}

.organic-btn__shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  fill: var(--primary);
  z-index: -1;
  transition: var(--transition);
}

.organic-btn:hover .organic-btn__shape {
  fill: var(--secondary);
  transform: scale(1.05) rotate(2deg);
}

/* Визуал с clip-path */
.mentorship__visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.organic-image-container {
  position: relative;
  width: 100%;
  max-width: 450px;
}

.organic-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  /* Аморфная форма картинки */
  clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
  border-radius: 40px; /* Смягчаем углы */
}

.organic-badge {
  position: absolute;
  top: -20px;
  right: -20px;
  background: white;
  color: var(--dark);
  padding: 15px 25px;
  border-radius: 100px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: rotate(10deg);
}

/* Адаптивность */
@media (max-width: 992px) {
  .mentorship__container {
    flex-direction: column;
    text-align: center;
  }
  .mentorship__feature-item {
    justify-content: center;
  }
  .mentorship__visual {
    order: -1;
  }
}

/* --- Skills Section (Tech / Utilitarian) --- */
.skills {
  padding: 100px 0;
  background-color: var(--dark);
  position: relative;
  /* Сетка на фоне */
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 50px 50px;
}

.tech-header {
  margin-bottom: 60px;
}

.tech-header__meta {
  font-family: "Monaco", "Consolas", monospace;
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.tech-header__title {
  font-family: "Syne", sans-serif;
  font-size: 2.5rem;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.tech-header__line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

.skills__wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

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

.skill-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border);
  padding: 30px;
  position: relative;
  transition: var(--transition);
}

.skill-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
}

.skill-card__corner {
  position: absolute;
  top: 5px;
  right: 10px;
  color: var(--gray);
  font-family: monospace;
}

.skill-card__code {
  font-family: "Monaco", "Consolas", monospace;
  font-size: 0.75rem;
  color: var(--gray);
  display: block;
  margin-bottom: 15px;
}

.skill-card__name {
  font-family: "Syne", sans-serif;
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.skill-card__desc {
  font-size: 0.9rem;
  color: var(--gray);
}

/* Tech Sidebar Box */
.tech-box {
  border: 1px solid var(--primary);
  border-radius: 4px;
  overflow: hidden;
}

.tech-box__header {
  background: var(--primary);
  color: white;
  padding: 8px 15px;
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 700;
}

.tech-box__body {
  padding: 20px;
  font-size: 0.9rem;
  color: var(--light);
}

.tech-box__list {
  margin-top: 15px;
  font-family: monospace;
  color: #4ade80;
}

/* Адаптивность */
@media (max-width: 992px) {
  .skills__wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .skills__grid {
    grid-template-columns: 1fr;
  }
}

/* --- Insights Section (Paper & Collage) --- */
.insights {
  padding: 100px 0;
  background-color: #f4f1ea; /* Цвет старой бумаги */
  color: #2d2d2d;
  position: relative;
  overflow: hidden;
}

.insights__intro {
  text-align: center;
  margin-bottom: 60px;
}

.insights__title {
  font-family: "Syne", sans-serif;
  font-size: 3.5rem;
  color: var(--dark);
}

.insights__collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start;
}

.post-card {
  background: #fff;
  padding: 20px;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: var(--transition);
}

/* Эффект скотча */
.post-card__tape {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 30px;
  background: rgba(255, 255, 200, 0.6);
  backdrop-filter: blur(2px);
  border: 1px dashed rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.post-card--1 {
  transform: rotate(-2deg);
}
.post-card--2 {
  transform: rotate(3deg);
  margin-top: 40px;
}
.post-card--3 {
  transform: rotate(-1deg);
}

.post-card:hover {
  transform: scale(1.02) rotate(0deg);
  z-index: 10;
  box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.1);
}

.post-card__img {
  width: 100%;
  height: 200px;
  background: #eee;
  margin-bottom: 20px;
  overflow: hidden;
  filter: sepia(0.3); /* Ретро эффект */
}

.post-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__heading {
  font-family: "Syne", sans-serif;
  font-size: 1.4rem;
  line-height: 1.2;
  margin-bottom: 15px;
}

.post-card__excerpt {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 20px;
}

.post-card__link {
  font-weight: 700;
  color: var(--primary);
  text-decoration: underline;
}

.post-card__tag {
  display: inline-block;
  background: var(--dark);
  color: white;
  padding: 4px 10px;
  font-size: 0.7rem;
  margin-bottom: 10px;
}

/* Адаптивность */
@media (max-width: 992px) {
  .insights__collage {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .insights__collage {
    grid-template-columns: 1fr;
  }
  .post-card {
    transform: none !important;
    margin-top: 0 !important;
  }
}

/* --- Contact Section --- */
.contact {
  padding: 100px 0;
  background: var(--dark);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
}

.contact__title {
  font-family: "Syne", sans-serif;
  font-size: 3rem;
  margin-bottom: 20px;
}

.contact__title span {
  color: var(--primary);
}

.contact__meta {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact__meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray);
}

/* Form Styles */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: white;
  font-family: inherit;
  transition: var(--transition);
}

.form__input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
}

.form__error {
  color: #ef4444;
  font-size: 0.8rem;
  display: none;
  margin-top: 5px;
}

/* Captcha & Checkbox Styles */
.captcha-checkbox,
.privacy-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9rem;
}

.captcha-box {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-radius: 6px;
  position: relative;
  transition: var(--transition);
}

.captcha-checkbox input,
.privacy-checkbox input {
  display: none;
}

.captcha-checkbox input:checked + .captcha-box {
  background: var(--primary);
  border-color: var(--primary);
}

.captcha-checkbox input:checked + .captcha-box::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}

.form__button {
  background: var(--primary);
  color: white;
  padding: 18px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.form__button:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

.form__message {
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  display: none;
  margin-top: 15px;
}

.form__message--success {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid #4ade80;
  color: #4ade80;
}

@media (max-width: 992px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

/* --- Cookie Pop-up --- */
.cookie-popup {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 400px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(15px);
  border: 1px solid var(--primary);
  padding: 24px;
  border-radius: 20px;
  z-index: 9999;
  display: none; /* Скрыт по умолчанию */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.cookie-popup--active {
  display: block;
  animation: slideUp 0.5s ease;
}

.cookie-popup__text {
  font-size: 0.9rem;
  color: var(--light);
  margin-bottom: 16px;
  line-height: 1.4;
}
.cookie-popup__btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

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

/* --- Styles for Policy Pages (privacy.php, etc.) --- */
.pages {
  padding: 160px 0 100px;
  background: var(--dark);
  min-height: 80vh;
}
.pages h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 40px;
  color: var(--primary);
}
.pages h2 {
  font-family: "Syne", sans-serif;
  font-size: 1.8rem;
  margin: 40px 0 20px;
  color: var(--secondary);
}
.pages p {
  margin-bottom: 20px;
  color: var(--gray);
  font-size: 1.1rem;
}
.pages ul {
  margin-bottom: 20px;
  padding-left: 20px;
}
.pages li {
  margin-bottom: 10px;
  color: var(--gray);
  position: relative;
  list-style: disc;
}
.pages a {
  color: var(--primary);
  text-decoration: underline;
}

.form__agreement {
  margin: 10px 0 20px;
}

.checkbox__container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.4;
}

.checkbox__container input {
  display: none; /* Прячем дефолтный чекбокс */
}

.checkbox__checkmark {
  width: 20px;
  min-width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  position: relative;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.05);
}

/* Состояние при клике */
.checkbox__container input:checked + .checkbox__checkmark {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox__container input:checked + .checkbox__checkmark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.checkbox__text a {
  color: var(--primary);
  text-decoration: underline;
  transition: var(--transition);
}

.checkbox__text a:hover {
  color: var(--secondary);
}
