/* --- ГЛОБАЛЬНЫЕ СТИЛИ --- */
:root {
  --color-bg: #ffffff;
  --color-text: #0a0a0a;
  --color-accent: #2141ff; /* Яркий синий "Technical Blue" */
  --color-border: #000000;
  --color-muted: #666666;
  --font-main: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

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

ul {
  list-style: none;
}

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

/* --- ТИПОГРАФИКА (EDITORIAL) --- */
h1,
h2,
h3,
.logo__text {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-weight: 500;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: transparent;
  transition: var(--transition);
  position: relative;
}

.btn--outline:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

/* --- ХЕДЕР --- */
.header {
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

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

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

.logo__img {
  width: 32px;
  height: 32px;
}

.logo__text {
  font-size: 1.25rem;
  letter-spacing: -0.05em;
}

.header__nav {
  display: flex;
}

.header__menu {
  display: flex;
  gap: 40px;
}

.header__link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

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

.header__link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: var(--transition);
}

.header__link:hover::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.burger {
  display: none;
  background: none;
  border: none;
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
}

/* --- ФУТЕР --- */
.footer {
  border-top: 1px solid var(--color-border);
  padding-top: 80px;
  margin-top: 100px;
}

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

.footer__title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.footer__link {
  font-size: 0.875rem;
  margin-bottom: 12px;
  display: inline-block;
}

.footer__link:hover {
  padding-left: 5px;
  color: var(--color-accent);
}

.footer__contact-info li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.footer__contact-info svg {
  width: 18px;
  color: var(--color-accent);
}

.footer__bottom {
  border-top: 1px solid #eee;
  padding: 30px 40px;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-muted);
  font-family: var(--font-mono);
}

/* Адаптивность для футера */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .header__menu,
  .btn--outline {
    display: none;
  }
  .burger {
    display: block;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* Стили для текстовых страниц (Stage 5 preview) */
.pages {
  padding: 100px 0;
}
.pages h1 {
  font-size: 3rem;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
}
.pages h2 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 20px;
}
.pages p {
  margin-bottom: 20px;
  color: var(--color-muted);
}
.pages ul {
  margin-bottom: 20px;
  list-style: square;
  padding-left: 20px;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  padding: 120px 0 100px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.hero__grid-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
}

.hero__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  margin-bottom: 30px;
}

.hero__label-dot {
  width: 6px;
  height: 6px;
  background: #00ff00;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ff00;
}

.hero__title {
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 0.9;
  margin-bottom: 30px;
  letter-spacing: -0.04em;
}

.text-accent {
  color: var(--color-accent);
  font-style: italic;
}

.hero__description {
  max-width: 500px;
  font-size: 1.125rem;
  margin-bottom: 40px;
}

.hero__btns {
  display: flex;
  align-items: center;
  gap: 30px;
}

.btn--primary {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn--link {
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.hero__stats {
  position: absolute;
  right: 40px;
  bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  border-left: 1px solid var(--color-border);
  padding-left: 30px;
}

.stat-item__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2rem;
  line-height: 1;
}

.stat-item__text {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-muted);
}

@media (max-width: 768px) {
  .hero__stats {
    position: static;
    margin-top: 60px;
    flex-direction: row;
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding: 30px 0 0;
  }
}

/* --- СЕКЦІЯ КУРСИ --- */
.courses {
  padding: 100px 0;
  border-bottom: 1px solid var(--color-border);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 80px;
  gap: 40px;
}

.section-num {
  color: var(--color-accent);
  font-size: 1.5rem;
  vertical-align: top;
  margin-right: 10px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 4rem);
  max-width: 600px;
}

.section-subtitle {
  max-width: 350px;
  font-size: 0.875rem;
  color: var(--color-muted);
  padding-bottom: 10px;
}

.courses__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  border-left: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
}

.course-card {
  padding: 40px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.course-card:hover {
  background-color: #f9f9f9;
}

.course-card__top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.course-card__tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 2px 8px;
  border: 1px solid var(--color-border);
}

.course-card__duration {
  font-size: 0.75rem;
  color: var(--color-muted);
  text-transform: uppercase;
}

.course-card__title {
  font-size: 1.75rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.course-card__text {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

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

.course-card__price {
  font-family: var(--font-mono);
  font-weight: 700;
}

.course-card__btn {
  width: 50px;
  height: 50px;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.course-card:hover .course-card__btn {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
  transform: rotate(90deg);
}

.course-card__bg-icon {
  position: absolute;
  bottom: -20px;
  right: -10px;
  font-size: 8rem;
  font-family: var(--font-mono);
  font-weight: 900;
  opacity: 0.03;
  pointer-events: none;
  transition: var(--transition);
}

.course-card:hover .course-card__bg-icon {
  transform: scale(1.1);
  opacity: 0.05;
}

@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- СЕКЦИЯ ЭКОСИСТЕМА (BENTO GRID) --- */
.ecosystem {
  padding: 100px 0;
  border-bottom: 1px solid var(--color-border);
  background-color: #fafafa;
}

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

.bento-item {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.bento-item:hover {
  box-shadow: 10px 10px 0px var(--color-accent);
  transform: translate(-5px, -5px);
}

.bento-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.bento-item__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--color-muted);
  letter-spacing: 0.1em;
}

.bento-item__title {
  font-size: 1.5rem;
  line-height: 1.1;
  margin-bottom: 15px;
}

.bento-item__text {
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* Модификаторы размеров */
.bento-item--large {
  grid-column: span 2;
  grid-row: span 2;
}

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

.bento-item--cta {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.bento-item--cta .bento-item__text {
  color: rgba(255, 255, 255, 0.8);
}

.bento-item--cta .btn--outline {
  border-color: #fff;
  color: #fff;
}

.bento-item--cta .btn--outline:hover {
  background: #fff;
  color: var(--color-accent);
}

/* Декор элементы */
.bento-item__img {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  opacity: 0.1;
  filter: grayscale(1);
}

.bento-item__icon-box {
  align-self: flex-end;
}

.icon-pulse {
  color: var(--color-accent);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
}

.bento-item__tags {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.bento-item__tags span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  border: 1px solid #ddd;
  padding: 2px 8px;
}

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

@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .bento-item--large,
  .bento-item--medium {
    grid-column: span 1;
  }
}

/* --- СЕКЦИЯ МЕНТОРЫ --- */
.mentors {
  padding: 100px 0;
  border-bottom: 1px solid var(--color-border);
}

.mentors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 60px;
}

.mentor-card {
  position: relative;
  border: 1px solid #eee;
  padding: 20px;
  transition: var(--transition);
}

.mentor-card:hover {
  border-color: var(--color-accent);
  background: #fcfcfc;
}

.mentor-card__image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  margin-bottom: 25px;
  background: #f0f0f0;
}

.mentor-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: var(--transition);
}

.mentor-card:hover .mentor-card__img {
  filter: grayscale(0);
  transform: scale(1.05);
}

.mentor-card__tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  text-transform: uppercase;
  z-index: 2;
}

/* Эффект сканера */
.mentor-card__scanner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  box-shadow: 0 0 15px var(--color-accent);
  opacity: 0;
  z-index: 3;
  pointer-events: none;
}

.mentor-card:hover .mentor-card__scanner {
  animation: scan 2s linear infinite;
  opacity: 1;
}

@keyframes scan {
  0% {
    top: 0%;
  }
  50% {
    top: 100%;
  }
  100% {
    top: 0%;
  }
}

.mentor-card__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 10px;
}

.mentor-card__name {
  font-size: 1.5rem;
}

.mentor-card__location {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-muted);
}

.mentor-card__stats {
  margin-bottom: 20px;
}

.mentor-card__stats li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
}

.mentor-card__stats span {
  color: var(--color-muted);
}

.mentor-card__bio {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.6;
}

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

/* --- СЕКЦИЯ ОБ АВТОРЕ/ШКОЛЕ (BRUTALISM) --- */
.about {
  padding: 120px 0;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.about__big-title {
  font-size: clamp(4rem, 15vw, 12rem);
  line-height: 0.8;
  margin-top: 20px;
  margin-bottom: 80px;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.text-filled {
  color: var(--color-accent);
  -webkit-text-stroke: 2px var(--color-border);
  text-shadow: 5px 5px 0px var(--color-border);
}

.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 100px;
  align-items: start;
}

.about__subtitle {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.about__text {
  font-size: 1.125rem;
  color: var(--color-muted);
  margin-bottom: 25px;
  max-width: 600px;
}

.about__badge {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 15px 25px;
  border: 2px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-top: 20px;
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about__stat-card {
  border: 1px solid var(--color-border);
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: var(--transition);
}

.about__stat-card:hover {
  background: #000;
  color: #fff;
}

.about__stat-card--accent {
  grid-column: span 2;
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.about__stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.about__stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Бегущая строка */
.about__marquee {
  margin-top: 100px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
  display: flex;
  overflow: hidden;
}

.about__marquee-inner {
  display: flex;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
}

.about__marquee-inner span {
  padding-right: 50px;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 1024px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

@media (max-width: 768px) {
  .about__big-title {
    font-size: 4rem;
  }
  .about__stats {
    grid-template-columns: 1fr;
  }
  .about__stat-card--accent {
    grid-column: span 1;
  }
}

/* --- СЕКЦИЯ КОНТАКТОВ --- */
.contact {
  padding: 100px 0;
  background-color: #fcfcfc;
}

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

.contact__title {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  margin-bottom: 30px;
}

.contact__description {
  color: var(--color-muted);
  margin-bottom: 40px;
  max-width: 450px;
}

.contact__meta {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.meta-item {
  display: flex;
  gap: 15px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.meta-item__label {
  color: var(--color-muted);
}

/* ФОРМА */
.form {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 40px;
  position: relative;
}

.form__group {
  margin-bottom: 25px;
}

.form__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--color-accent);
}

.form__input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
  font-family: var(--font-main);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.form__input:focus {
  border-bottom-color: var(--color-accent);
}

.form__error {
  color: #ff3b30;
  font-size: 0.75rem;
  display: none;
  margin-top: 5px;
  font-family: var(--font-mono);
}

/* Кастомные чекбоксы */
.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.custom-checkbox input {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
  position: relative;
  margin-top: 2px;
}

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

.custom-checkbox input:checked + .checkmark::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-text a {
  text-decoration: underline;
  color: var(--color-accent);
}

.btn--full {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* Сообщения */
.form-message {
  display: none;
  padding: 30px;
  border: 1px solid var(--color-accent);
  background: #f0f7ff;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.form-message--success {
  color: var(--color-accent);
}

.form-message i {
  margin-bottom: 15px;
  width: 40px;
  height: 40px;
}

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

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

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 20px;
  right: 20px;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 20px;
  z-index: 9999;
  transition: all 0.5s ease;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

.cookie-popup__text {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* --- СТИЛИ ДЛЯ СТРАНИЦ ПОЛИТИК (.pages) --- */
.pages {
  padding: 120px 0;
  min-height: 80vh;
}

.pages h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 40px;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 20px;
}

.pages h2 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
}

.pages p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--color-muted);
}

.pages ul {
  margin-bottom: 30px;
  list-style: none;
  padding-left: 0;
}

.pages li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pages li::before {
  content: "→";
  color: var(--color-accent);
}

.pages strong {
  color: var(--color-text);
}

.pages a {
  color: var(--color-accent);
  text-decoration: underline;
}
