/* --- Variables & Theme (Cyberpunk/Neon + Rounded) --- */
:root {
  --bg-dark: #050a14;
  --bg-card: #0f1623;
  --primary: #00f3ff; /* Neon Cyan */
  --secondary: #bc13fe; /* Neon Purple */
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --radius-xl: 30px;
  --radius-btn: 50px;

  --font-head: "Orbitron", sans-serif;
  --font-body: "Montserrat", sans-serif;

  --glow-primary: 0 0 20px rgba(0, 243, 255, 0.4);
  --glow-secondary: 0 0 20px rgba(188, 19, 254, 0.4);

  --container-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn--glow {
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  color: #fff;
  box-shadow: var(--glow-secondary);
}

.btn--glow:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.6);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 20px;
}

.header__container {
  background: rgba(15, 22, 35, 0.85);
  backdrop-filter: blur(12px);
  height: var(--header-height);
  border-radius: var(--radius-btn);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-main);
}

.header__logo-icon {
  color: var(--primary);
  filter: drop-shadow(0 0 5px var(--primary));
}

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

.header__list {
  display: flex;
  gap: 30px;
}

.header__link {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 5px 0;
}

.header__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--primary);
}

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

.header__link:hover {
  color: var(--primary);
  text-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
}

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

.header__burger-line {
  width: 25px;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 5px;
  transition: 0.3s;
}

/* --- Main Placeholder --- */
.main {
  padding-top: 140px; /* Space for fixed header */
  min-height: 60vh;
}

/* --- Footer --- */
.footer {
  background: var(--bg-card);
  padding: 80px 0 20px;
  margin-top: 100px;
  border-top-left-radius: 60px;
  border-top-right-radius: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer__logo-text {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
  margin-bottom: 20px;
}

.footer__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  max-width: 300px;
}

.footer__badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(188, 19, 254, 0.1);
  border: 1px solid var(--secondary);
  border-radius: 20px;
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(188, 19, 254, 0.2);
}

.footer__title {
  font-family: var(--font-head);
  color: var(--text-main);
  margin-bottom: 25px;
  font-size: 1.2rem;
}

.footer__link {
  display: block;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer__link:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer__contacts-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer__icon {
  color: var(--secondary);
  min-width: 20px;
}

.footer__bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #555;
  font-size: 0.85rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    flex-direction: column;
    justify-content: center;
    transition: 0.4s ease;
    padding-bottom: 100px; /* offset for visual balance */
  }

  .header__nav.active {
    right: 0;
  }

  .header__list {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
  }

  .header__link {
    font-size: 1.5rem;
  }

  .header__burger {
    display: flex;
    z-index: 1001;
  }

  /* Burger animation when active */
  .header__burger.active .header__burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .header__burger.active .header__burger-line:nth-child(2) {
    opacity: 0;
  }
  .header__burger.active .header__burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

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

@media (max-width: 600px) {
  .footer__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__contact-item {
    justify-content: center;
  }

  .header__container {
    padding: 0 15px;
  }
}
/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-height); /* Offset for fixed header */
}

/* Canvas Background */
.hero__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: radial-gradient(circle at center, #0f1623 0%, #050a14 100%);
}

/* Background Glow Blobs */
.hero__glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 2;
  opacity: 0.4;
  animation: floatGlow 10s infinite alternate;
}

.hero__glow--1 {
  top: -100px;
  left: -100px;
  background: var(--primary);
}

.hero__glow--2 {
  bottom: -100px;
  right: -100px;
  background: var(--secondary);
  animation-delay: -5s;
}

@keyframes floatGlow {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/* Content Container */
.hero__container {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
}

/* Glass Card */
.hero__content-card {
  background: rgba(15, 22, 35, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 60px; /* Hyper-rounded requirement */
  padding: 60px 80px;
  text-align: center;
  max-width: 900px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: translateY(20px);
  opacity: 0;
  animation: slideUpFade 1s forwards 0.5s;
}

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typography & Elements */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid var(--primary);
  border-radius: 30px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero__title {
  font-family: var(--font-head);
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 25px;
  color: #fff;
}

.text-gradient {
  background: linear-gradient(90deg, #fff, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
}

.hero__desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__note {
  font-size: 0.85rem;
  color: var(--secondary);
  display: block;
  margin-top: 10px;
  font-weight: 500;
}

/* Actions */
.hero__actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
}

.btn--lg {
  padding: 16px 40px;
  font-size: 1rem;
}

.btn--outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: var(--radius-btn);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* Stats */
.hero__stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-item__num {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.stat-item__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-item__divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .hero__content-card {
    padding: 40px 20px;
    border-radius: 40px;
    margin: 0 10px;
  }

  .hero__title {
    font-size: 2.2rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__stats {
    flex-wrap: wrap;
    gap: 15px;
  }

  .stat-item__divider {
    display: none;
  }
}

/* --- Sections Common --- */
.section {
  padding: 100px 0;
  position: relative;
}

.section--darker {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #02040a 100%);
}

.section-header {
  margin-bottom: 60px;
  max-width: 700px;
}

.section-title {
  font-family: var(--font-head);
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 20px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.text-neon {
  color: var(--primary);
  text-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

/* --- Bento Grid (Methodology) --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 250px);
  gap: 20px;
}

.bento-card {
  background: rgba(15, 22, 35, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 40px; /* Hyper-rounded */
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card:hover {
  background: rgba(15, 22, 35, 0.8);
  border-color: rgba(0, 243, 255, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(-5px);
}

/* Grid Areas */
.bento-card--large {
  grid-column: span 2;
  grid-row: span 1;
  background: linear-gradient(
    135deg,
    rgba(15, 22, 35, 0.8),
    rgba(0, 243, 255, 0.05)
  );
}

.bento-card--tall {
  grid-column: span 1;
  grid-row: span 2;
  background: linear-gradient(
    180deg,
    rgba(15, 22, 35, 0.8),
    rgba(188, 19, 254, 0.05)
  );
}

.bento-card--wide {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-card--small {
  grid-column: span 1;
  grid-row: span 1;
}

/* Bento Content */
.bento-card__icon {
  color: var(--primary);
  width: 32px;
  height: 32px;
  margin-bottom: 15px;
}

.bento-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #fff;
}

.bento-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Decor Elements */
.bento-card__icon-bg {
  position: absolute;
  right: -20px;
  bottom: -20px;
  color: rgba(255, 255, 255, 0.03);
  transform: rotate(-15deg);
}
.bento-card__icon-bg i {
  width: 150px;
  height: 150px;
}

.tech-badge {
  margin-top: auto;
  background: var(--secondary);
  color: #fff;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 700;
  align-self: flex-start;
  display: inline-block;
}

/* Code Animation in Tall Card */
.code-lines span {
  display: block;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
  border-radius: 4px;
  animation: pulseWidth 2s infinite;
}
.code-lines span:nth-child(1) {
  width: 60%;
  animation-delay: 0s;
}
.code-lines span:nth-child(2) {
  width: 80%;
  animation-delay: 0.5s;
}
.code-lines span:nth-child(3) {
  width: 40%;
  animation-delay: 1s;
}

@keyframes pulseWidth {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* --- Program Stack (Programs) --- */
.program-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.program-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50px; /* Capsule shape */
  padding: 0 40px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  overflow: hidden;
}

.program-card__header {
  display: flex;
  align-items: center;
  height: 100px; /* Fixed height for collapsed state */
  position: relative;
  z-index: 2;
}

.program-card__num {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.1);
  margin-right: 30px;
}

.program-card__title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: #fff;
  flex-grow: 1;
  transition: color 0.3s;
}

.program-card__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

/* Body hidden by max-height trick */
.program-card__body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  padding-left: 60px; /* Align with title */
  padding-right: 40px;
}

.program-card__body p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.program-card__tags {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

.program-card__tags li {
  font-size: 0.8rem;
  padding: 6px 14px;
  border: 1px solid rgba(0, 243, 255, 0.2);
  border-radius: 20px;
  color: var(--primary);
}

.program-card__link {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hover States (Interaction without JS) */
.program-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 0 20px rgba(188, 19, 254, 0.15);
}

.program-card:hover .program-card__title {
  color: var(--secondary);
}

.program-card:hover .program-card__arrow {
  background: var(--secondary);
  color: #fff;
  transform: rotate(90deg);
}

.program-card:hover .program-card__body {
  max-height: 200px; /* Expand */
  opacity: 1;
  padding-bottom: 40px;
}

/* Responsive Grid */
@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .bento-card--large,
  .bento-card--wide,
  .bento-card--tall,
  .bento-card--small {
    grid-column: span 1;
    grid-row: span 1;
  }

  .bento-card--tall {
    grid-row: span 2;
  }
}

@media (max-width: 600px) {
  .bento-grid {
    display: flex;
    flex-direction: column;
  }

  .program-card {
    padding: 0 20px;
    border-radius: 30px;
  }

  .program-card__header {
    height: 80px;
  }

  .program-card__title {
    font-size: 1.1rem;
  }

  .program-card__body {
    padding-left: 0;
  }
}

/* --- Contact Section --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-details {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

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

.detail-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  border: 1px solid rgba(0, 243, 255, 0.2);
}

.detail-item h4 {
  font-family: var(--font-head);
  color: #fff;
  margin-bottom: 5px;
}

.detail-item p {
  color: var(--text-muted);
}

/* --- Form Styles --- */
.contact-form-card {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

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

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 15px;
}

.form-input {
  width: 100%;
  padding: 15px 25px;
  background: rgba(5, 10, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-btn); /* 50px */
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.form-input.error {
  border-color: #ff3366;
}

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

.form-input.error + .error-msg {
  display: block;
}

/* Custom Checkbox */
.form-checkbox-group {
  margin-bottom: 20px;
}

.custom-checkbox {
  display: none; /* Hide default */
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  user-select: none;
}

.checkbox-box {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  background: rgba(5, 10, 20, 0.5);
}

/* Checked State */
.custom-checkbox:checked + .checkbox-label .checkbox-box {
  background: var(--primary);
  border-color: var(--primary);
}

.custom-checkbox:checked + .checkbox-label .checkbox-box::after {
  content: "✔";
  color: #000;
  font-size: 14px;
  font-weight: bold;
}

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

.captcha-group {
  background: rgba(255, 255, 255, 0.03);
  padding: 15px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn--full {
  width: 100%;
}

/* Success Message */
.success-message {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  z-index: 10;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  margin-bottom: 20px;
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.5);
}

.success-message h3 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

/* --- Cookie Popup --- */
.cookie-popup {
  position: fixed;
  bottom: -100px; /* Hidden */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background: rgba(15, 22, 35, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--primary);
  padding: 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9999;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: bottom 0.5s ease;
}

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

.cookie-content {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cookie-icon {
  color: var(--primary);
  min-width: 24px;
}

.btn--sm {
  padding: 8px 20px;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* --- Policies Pages Styles (Етап 5.2) --- */
.pages {
  padding: 160px 0 80px;
}

.pages h1 {
  font-family: var(--font-head);
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 40px;
}

.pages h2 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: #fff;
  margin-top: 40px;
  margin-bottom: 20px;
}

.pages p {
  color: var(--text-muted);
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.pages ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.pages li {
  color: var(--text-muted);
  margin-bottom: 10px;
  list-style: disc;
  margin-left: 20px;
}

.pages strong {
  color: #fff;
}

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

@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .cookie-popup {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Mentors Section --- */
.mentors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.mentor-card {
  background: rgba(15, 22, 35, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 40px;
  padding: 30px;
  text-align: center;
  transition: 0.4s ease;
  position: relative;
  overflow: hidden;
}

.mentor-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1);
}

.mentor-card__img-wrapper {
  width: 150px;
  height: 150px;
  margin: 0 auto 25px;
  position: relative;
  border-radius: 50%; /* Круглые аватарки */
  padding: 5px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.mentor-card__img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-card);
  transition: 0.4s;
}

/* Hover Effect: Socials reveal */
.mentor-card__socials {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(5, 10, 20, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  opacity: 0;
  transition: 0.4s;
  transform: scale(0.8);
}

.mentor-card:hover .mentor-card__socials {
  opacity: 1;
  transform: scale(1);
}

.mentor-card__socials a {
  color: #fff;
  transition: 0.3s;
}

.mentor-card__socials a:hover {
  color: var(--primary);
  transform: scale(1.2);
}

.mentor-card__info h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 5px;
}

.mentor-role {
  display: block;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.mentor-card__info p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Blog Section --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.blog-card {
  background: var(--bg-card);
  border-radius: 30px; /* Hyper-rounded */
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--secondary);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(188, 19, 254, 0.15);
}

.blog-card__image {
  height: 200px;
  background: #1a2233;
  position: relative;
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
  opacity: 0.7;
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.1);
  opacity: 1;
}

.blog-card__tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(5, 10, 20, 0.8);
  backdrop-filter: blur(5px);
  color: #fff;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-card__content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__meta {
  display: flex;
  gap: 15px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.blog-card__meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-card__meta i {
  width: 14px;
}

.blog-card__title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 15px;
  line-height: 1.3;
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 25px;
  flex-grow: 1;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.3s;
}

.blog-card__link::after {
  content: "→";
  transition: 0.3s;
}

.blog-card__link:hover::after {
  transform: translateX(5px);
}
