/* ============================================================
   NARXOZ COLLEGE — CAREER CENTER
   UX/UI–refined spacing, sizing, responsive layout
   ============================================================ */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  color: #111;
  line-height: 1.6;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; height: auto; }

/* ---------- Design tokens ---------- */
:root {
  --red:        #d20000;
  --red-dark:   #be0000;
  --black:      #111;
  --gray-bg:    #f4f4f4;
  --gray-mid:   #a9a9a9;
  --white:      #ffffff;

  /* spacing scale */
  --sp-xs:  8px;
  --sp-s:  16px;
  --sp-m:  24px;
  --sp-l:  40px;
  --sp-xl: 64px;
  --sp-2xl:96px;

  /* content widths */
  --max-w:      1200px;
  --max-w-text:  720px;

  /* section vertical rhythm */
  --section-gap: clamp(56px, 8vw, 112px);

  /* card radius */
  --r-s:  12px;
  --r-m:  20px;
  --r-l:  32px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: min(100%, var(--max-w));
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

/* ---------- HEADER ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000;
  height: clamp(64px, 9vw, 96px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-m);
  padding-inline: clamp(16px, 4vw, 40px);
}

.header .logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header .logo img {
  width: clamp(120px, 14vw, 186px);
  height: auto;
}

.header h1 {
  color: #fff;
  font-size: clamp(22px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.07em;
  text-transform: uppercase;
  text-align: center;
}

.lang {
  display: flex;
  gap: var(--sp-xs);
  flex-shrink: 0;
}

.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 36px;
  border: 1.5px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.18s, color 0.18s;
  padding-inline: var(--sp-s);
}

.lang a:hover { background: #fff; color: #000; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: clamp(280px, 50vw, 600px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

/* ВИДЕО */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* ОВЕРЛЕЙ ПОВЕРХ ВИДЕО */
.hero__overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--sp-xl) clamp(16px, 4vw, 48px);
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%);
  display: flex;
  justify-content: flex-end;
}

.hero__overlay {
  width: 100%;
  padding: var(--sp-xl) clamp(16px, 4vw, 48px);
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%);
  display: flex;
  justify-content: flex-end;
}

.video-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-s);
  background: transparent;
  border: none;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(18px, 3vw, 30px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  cursor: pointer;
  padding: 0;
}

.video-btn span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(40px, 6vw, 56px);
  height: clamp(40px, 6vw, 56px);
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  font-size: clamp(16px, 2.5vw, 24px);
  backdrop-filter: blur(4px);
}

/* ---------- SECTION base ---------- */
.section {
  padding-block: var(--section-gap);
}

.section > h2 {
  font-size: clamp(28px, 5.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.07em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 48px);
  line-height: 1.05;
}

.section > p {
  max-width: var(--max-w-text);
  margin-inline: auto;
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.65;
  text-align: center;
  color: #333;
}

.section-note {
  max-width: var(--max-w-text);
  margin-inline: auto;
  margin-top: var(--sp-l);
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.6;
  text-align: center;
  color: #555;
}

/* ---------- INTRO ---------- */
.intro {
  background: #f4f4f4;
  padding: clamp(72px, 8vw, 120px) clamp(16px, 4vw, 48px);
}

.intro__inner {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px);
  background: #fff;
  border-radius: 28px;
  border-left: 6px solid var(--red);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.07);
}

.intro__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.intro h2 {
  margin-bottom: 20px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.intro p {
  max-width: 900px;
  font-size: clamp(16px, 1.8vw, 22px);
  line-height: 1.65;
  color: #2b2b2b;
}

/* ---------- VALUES GRID ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(16px, 2vw, 28px);
  width: min(100%, var(--max-w));
  margin-inline: auto;
  margin-bottom: var(--sp-l);
  padding-inline: clamp(16px, 4vw, 48px);
}

.values-grid article {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: clamp(28px, 4vw, 44px) var(--sp-m);
  border-radius: 28px;
  background: linear-gradient(145deg, #e00000 0%, #b80000 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-m);
  box-shadow: 0 24px 50px rgba(210, 0, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.values-grid article::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 27px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.values-grid article::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -30%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(255,255,255,0.22), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.values-grid article:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 70px rgba(210, 0, 0, 0.32);
}

.values-grid article:hover::after {
  opacity: 1;
}

.values-grid article img {
  position: relative;
  z-index: 2;
  width: clamp(56px, 7vw, 82px);
  height: clamp(56px, 7vw, 82px);
  object-fit: contain;
  padding: 14px;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.18);
  filter: brightness(0) invert(1);
}

.values-grid article span {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

/* ---------- TIMELINE ---------- */
.timeline {
  position: relative;
  display: flex; /* вместо grid */
  gap: clamp(24px, 3vw, 40px);

  overflow-x: auto; /* ключевое */
  padding: clamp(60px, 6vw, 90px) clamp(16px, 4vw, 48px);

  width: 100%;
}

/* скрываем скролл (премиум) */
.timeline::-webkit-scrollbar {
  display: none;
}
.timeline {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ГОРИЗОНТАЛЬНАЯ ЛИНИЯ */
.timeline::before {
  content: "";
  position: absolute;

  top: 38px;
  left: 0;
  width: 100%;
  height: 2px;

  background: linear-gradient(to right, transparent, var(--red), transparent);
  opacity: 0.4;
}

/* КАРТОЧКА */
.timeline article {
  flex: 0 0 260px; /* фикс ширины */
  min-width: 260px;

  position: relative;
  padding: 28px 24px;
  border-radius: 22px;

  background: #fff;
  box-shadow: 0 20px 50px rgba(0,0,0,0.06);
  transition: all 0.25s ease;

  border-top: 3px solid var(--red);
}

/* HOVER */
.timeline article:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.12);
}

/* ТОЧКА */
.timeline article::before {
  content: "";
  position: absolute;

  top: -32px;
  left: 28px;

  width: 14px;
  height: 14px;
  border-radius: 50%;

  background: var(--red);
  box-shadow: 0 0 0 6px rgba(210,0,0,0.15);
}

/* ДАТА */
.timeline article b {
  display: block;
  color: var(--red);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 800;
  margin-bottom: 8px;
}

/* ТЕКСТ */
.timeline article p {
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.6;
  color: #444;
}

/* АДАПТИВ */
@media (max-width: 1024px) {
  .timeline {
    gap: 24px;
    padding: 60px 20px;
  }

  .timeline article {
    flex: 0 0 240px;
    min-width: 240px;
  }
}

@media (max-width: 640px) {
  .timeline {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    width: 100%;
    padding: 60px 16px;
  }

  .timeline::-webkit-scrollbar {
    display: none;
  }

  .timeline {
    scrollbar-width: none;
  }

  /* линия длинная, едет вместе с карточками */
  .timeline::before {
    top: 36px;
    left: 16px;
    width: 1100px;
    height: 2px;
  }

  .timeline article {
    flex: 0 0 240px;
    min-width: 240px;
  }

  .timeline article::before {
    top: -30px;
    left: 24px;
  }
}

/* ---------- STATS ---------- */
.stats-marquee {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(210, 0, 0, 0.10), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f6f6f6 100%);
  padding-block: clamp(70px, 8vw, 120px);
}

.stats-marquee::before,
.stats-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  width: clamp(80px, 12vw, 180px);
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.stats-marquee::before {
  left: 0;
  background: linear-gradient(to right, #fff 0%, transparent 100%);
}

.stats-marquee::after {
  right: 0;
  background: linear-gradient(to left, #fff 0%, transparent 100%);
}

.stats-track {
  display: flex;
  width: max-content;
  gap: clamp(22px, 3vw, 42px);
  animation: statsMove 24s linear infinite;
  will-change: transform;
}

.stats-track article {
  position: relative;
  overflow: hidden;
  width: clamp(300px, 28vw, 430px);
  min-height: 210px;
  flex-shrink: 0;
  padding: clamp(28px, 3vw, 40px);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(210, 0, 0, 0.14);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.07);
  backdrop-filter: blur(12px);
}

.stats-track article::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), #ff4d4d, var(--red));
}

.stats-track article::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(210, 0, 0, 0.08);
}

.stats-track article b {
  position: relative;
  z-index: 2;
  display: block;
  margin-bottom: 18px;
  color: var(--red);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.95;
}

.stats-track article span {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 360px;
  color: #202020;
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.55;
  letter-spacing: -0.02em;
}

@keyframes statsMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 680px) {
  .stats-marquee {
    padding-block: 56px;
  }

  .stats-track {
    animation-duration: 18s;
  }

  .stats-track article {
    width: 280px;
    min-height: 190px;
  }
}

/* ---------- APPLY FORM ---------- */
.apply-section {
  position: relative;
  background: linear-gradient(180deg, #f4f4f4 0%, #ffffff 100%);
  padding-block: clamp(80px, 8vw, 120px);
}

/* контейнер формы */
.apply-form {
  position: relative;
  width: min(100%, 920px);
  margin-inline: auto;

  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: clamp(14px, 2vw, 24px);

  padding: clamp(20px, 3vw, 28px);
  border-radius: 28px;

  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(16px);

  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 30px 80px rgba(0,0,0,0.08);
}

/* INPUT */
.apply-form input {
  height: clamp(54px, 6vw, 70px);
  border-radius: 18px;
  border: 1px solid transparent;

  background: #f1f1f1;
  padding-inline: 18px;

  font-family: 'Montserrat', sans-serif;
  font-size: clamp(15px, 1.6vw, 18px);
  color: #111;

  transition: all 0.2s ease;
}

/* placeholder */
.apply-form input::placeholder {
  color: #999;
}

/* focus эффект */
.apply-form input:focus {
  outline: none;
  background: #fff;
  border: 1px solid var(--red);
  box-shadow: 0 0 0 4px rgba(210,0,0,0.12);
}

/* BUTTON */
.apply-form button {
  position: relative;
  height: clamp(54px, 6vw, 70px);
  padding-inline: clamp(28px, 3vw, 44px);

  border-radius: 18px;
  border: none;

  background: linear-gradient(135deg, var(--red), #ff3a3a);
  color: #fff;

  font-family: 'Montserrat', sans-serif;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;

  cursor: pointer;
  white-space: nowrap;

  box-shadow: 0 18px 40px rgba(210,0,0,0.35);

  transition: all 0.25s ease;
}

/* hover */
.apply-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 60px rgba(210,0,0,0.45);
}

/* click */
.apply-form button:active {
  transform: scale(0.97);
}

/* mobile */
@media (max-width: 680px) {
  .apply-form {
    grid-template-columns: 1fr;
  }
}
/* ---------- PEOPLE GRID ---------- */
.people-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: clamp(24px, 3vw, 40px);

  width: min(100%, var(--max-w));
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}
.profile-grid article h3 {
  font-size: clamp(23px, 1vw, 20px) !important;
  line-height: 1.10;
  letter-spacing: -0.02em;

  overflow-wrap: anywhere;
  word-break: break-word;
}
/* CARD */
.people-grid article {
  display: flex;
  flex-direction: column;
  height: 100%;

  border-radius: 30px;
  overflow: hidden;
  background: #fff;

  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.people-grid article:hover {
  transform: translateY(-7px);
  box-shadow: 0 36px 95px rgba(0, 0, 0, 0.13);
}

/* IMAGE */
.people-grid article img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: 50% 20%;
}

/* TEXT */
.people-grid article h3 {
  padding: 22px 22px 6px;
  color: #111;
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.people-grid article b {
  display: block;
  padding: 0 22px;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
}

.people-grid article p {
  flex-grow: 1;
  padding: 0 22px 24px;
  color: #444;
  font-size: 14px;
  line-height: 1.6;
}

/* RED SECTION */
.red-section {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.18), transparent 28%),
    radial-gradient(circle at 90% 15%, rgba(255, 255, 255, 0.10), transparent 24%),
    linear-gradient(135deg, #d20000 0%, #990000 100%);
  color: #fff;
}

.red-section > h2 {
  color: #fff;
}

.red-section .subtitle {
  text-align: center;
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.78);
  margin-top: calc(-1 * var(--sp-m));
  margin-bottom: var(--sp-l);
}

/* WHITE CARDS INSIDE RED SECTION */
.people-grid--white article {
  background: rgba(255, 255, 255, 0.96);
}

.people-grid--white article h3 {
  color: #111;
}

.people-grid--white article b {
  color: var(--red);
}

.people-grid--white article p {
  color: #444;
}

.people-grid--center {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 40px);
}

.people-grid--center article {
  width: min(280px, 100%);
  flex: 0 0 auto;
}

/* ADAPTIVE */
@media (max-width: 1180px) {
  .people-grid {
    grid-template-columns: repeat(2, minmax(260px, 320px));
  }
}

@media (max-width: 680px) {
  .people-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .people-grid article img {
    height: 240px;
  }
}

/* ---------- DIRECTOR ---------- */
/* ===== DIRECTOR — ULTRA PREMIUM ===== */
.director {
  position: relative;
  padding-block: clamp(90px, 10vw, 140px);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(210,0,0,.12), transparent 40%),
    radial-gradient(900px 500px at 110% 10%, rgba(210,0,0,.08), transparent 35%),
    linear-gradient(180deg, #f7f7f7 0%, #ffffff 100%);
}

/* subtle glow behind card */
.director::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 20% 50%, rgba(210,0,0,.12), transparent 60%);
  pointer-events: none;
}

/* ===== LAYOUT ===== */
.director-card {
  position: relative;
  display: grid;
  grid-template-columns: clamp(260px, 30vw, 380px) 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;

  width: min(100%, var(--max-w));
  margin-inline: auto;
  padding: clamp(20px, 3vw, 28px);

  border-radius: 36px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(0,0,0,0.06);

  box-shadow:
    0 40px 120px rgba(0,0,0,0.10),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

/* glass highlight */
.director-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 35px;
  border: 1px solid rgba(255,255,255,0.4);
  pointer-events: none;
}

/* ===== IMAGE ===== */
.director-image {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.25);
}

/* red ambient glow */
.director-image::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(210,0,0,.35), transparent 60%);
  opacity: .35;
  z-index: 0;
}

/* glossy sweep */
.director-image::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -40%;
  width: 60%;
  height: 300%;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%);
  transform: rotate(20deg);
  transition: .6s;
}

.director-image:hover::after {
  top: 120%;
}

.director-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.director-image:hover img {
  transform: scale(1.06);
}

/* ===== CONTENT ===== */
.director-content h3 {
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.05;
  margin-bottom: 10px;
}

.director-content b {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(210,0,0,.08);
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 22px;
}

.director-content p {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.75;
  color: #333;
  max-width: 640px;
}

/* ===== LOGOS ===== */
.partner-logos {
  display: flex;
  gap: 18px;
  margin-top: 34px;
  flex-wrap: wrap;
}

/* logo card */
.logo-card {
  position: relative;
  width: 110px;
  height: 100px;
  border-radius: 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);

  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 18px 50px rgba(0,0,0,0.1);

  transition: all .3s ease;
}

/* shine effect */
.logo-card::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -40%;
  width: 60%;
  height: 300%;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.6) 50%, transparent 60%);
  transform: rotate(20deg);
  transition: .6s;
}

.logo-card:hover::after {
  top: 120%;
}

.logo-card img {
  width: 75%;
  object-fit: contain;
}

/* accent */
.logo-accent {
  background: #086b4f;
  box-shadow: 0 25px 60px rgba(210,0,0,0.35);
}

.logo-accent img {
  width: 82%;
  filter: none;
  background: transparent;
}

/* hover */
.logo-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 30px 70px rgba(0,0,0,0.18);
}

/* ===== MOBILE ===== */
@media (max-width: 640px) {
  .director-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .director-image {
    max-width: 300px;
    margin-inline: auto;
  }

  .partner-logos {
    justify-content: center;
  }
}
/* ---------- EVENTS ---------- */
.events {
  background: linear-gradient(135deg, #ffffff 0%, #ffd6d6 60%, #ff5a5a 100%);
  padding-bottom: 60px;
}

/* СЛАЙДЕР FULL WIDTH */
.events-slider-full {
  position: relative;
  width: 100%;
  height: clamp(380px, 45vw, 620px);
  overflow: hidden;
}

/* убираем ограничения контейнера */
.events-slider-full img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  transform: scale(1.05);
  animation: fadeSlider 12s infinite;
}

.events-slider-full img:nth-child(1) { animation-delay: 0s; }
.events-slider-full img:nth-child(2) { animation-delay: 4s; }
.events-slider-full img:nth-child(3) { animation-delay: 8s; }

/* ТЕКСТ */
.events-text {
  width: min(100%, var(--max-w));
  margin-inline: auto;
  padding: clamp(30px, 5vw, 60px) clamp(16px, 4vw, 48px);
}

.events-text p {
  max-width: 900px;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: #111;
  margin-bottom: 24px;
}

.events-text b {
  font-weight: 800;
  color: #000;
}

/* АНИМАЦИЯ */
@keyframes fadeSlider {
  0% { opacity: 0; transform: scale(1.05); }
  8% { opacity: 1; }
  30% { opacity: 1; transform: scale(1); }
  38% { opacity: 0; }
  100% { opacity: 0; }
}

/* MOBILE */
@media (max-width: 640px) {
  .events-slider-full {
    height: 300px;
  }

  .events-text p {
    font-size: 18px;
    line-height: 1.2;
  }
}   

/* ---------- PROFILE GRID ---------- */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: clamp(20px, 3vw, 32px);
  width: min(100%, var(--max-w));
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

.profile-grid article {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: clamp(28px, 4vw, 42px);
  border-radius: 30px;

  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,0.22), transparent 30%),
    linear-gradient(135deg, #e00000 0%, #a80000 100%);

  color: #fff;
  box-shadow: 0 26px 70px rgba(210, 0, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.profile-grid article::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 29px;
  border: 1px solid rgba(255,255,255,0.22);
  pointer-events: none;
}

.profile-grid article::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}

.profile-grid article:hover {
  transform: translateY(-8px);
  box-shadow: 0 36px 95px rgba(210, 0, 0, 0.35);
}

.profile-grid article h3 {
  position: relative;
  z-index: 2;
  margin-bottom: 14px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  line-height: 1.1;
}

.profile-grid article p {
  position: relative;
  z-index: 2;
  max-width: 340px;
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.6;
  color: rgba(255,255,255,0.88);
}

@media (max-width: 1024px) {
  .profile-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 640px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}   
/* ---------- CONTACTS ---------- */
.contacts-section {
  background: linear-gradient(135deg, #d20000 0%, #8f0000 100%);
  color: #fff;
}

.contacts-section h2 {
  color: #fff;
}

.contacts-card {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;

  width: min(100%, var(--max-w));
  margin: 40px auto 0;
  padding-inline: clamp(16px, 4vw, 48px);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 18px 24px;
  border-radius: 22px;

  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);

  color: #fff;
  text-decoration: none;

  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
  transition: 0.25s ease;
}

.contact-item:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.2);
}

.contact-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.phone-icon {
  background: url(https://codia-f2c.s3.us-west-1.amazonaws.com/image/2026-04-29/S968kWdboV.png)
    no-repeat center / contain;
}

.mail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.contact-text {
  font-size: clamp(15px, 1.7vw, 20px);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .contact-item {
    width: 100%;
    justify-content: center;
  }

  .contact-text {
    white-space: normal;
    text-align: center;
  }
}



/* ---------- Utility: inner section containers ---------- */
.section:not(.stats-grid) > .container { /* passthrough */ }

/* sections that need full-bleed background but constrained content */
.intro > * { max-width: var(--max-w); margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px); }

/* ---------- Campus tour placeholder gap ---------- */
.section.campus { padding-block: var(--section-gap); }

/* ---------- Focus / accessibility ---------- */
.tour-section {
  background: #f4f4f4;
}

/* CARD */
.tour-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 70px); /* ← фикс: была пропущена ; */

  width: min(100%, var(--max-w));
  margin-inline: auto;
  padding: clamp(28px, 4vw, 48px);

  border-radius: 34px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0,0,0,0.1);
}

/* TEXT */
.tour-content h2 {
  margin-bottom: 16px;
}

.tour-content p {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.6;
  color: #333;
  margin-bottom: 28px;
}

/* BUTTON */
.tour-btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 16px;

  background: linear-gradient(135deg, #d20000, #ff3b3b);
  color: #fff;

  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;

  box-shadow: 0 18px 50px rgba(210,0,0,0.35);
  transition: 0.25s ease;
}

.tour-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 70px rgba(210,0,0,0.45);
}

/* PREVIEW (сайт внутри сайта) */
.tour-preview {
  position: relative;
  display: block;
  height: clamp(260px, 28vw, 360px);
  border-radius: 26px;
  overflow: hidden;

  box-shadow: 0 28px 80px rgba(0,0,0,0.2);
  transition: 0.3s ease;
}

.tour-preview:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 120px rgba(0,0,0,0.3);
}

/* iframe масштабируем как мини-браузер */
.tour-preview iframe {
  width: 140%;
  height: 140%;
  border: none;

  transform: scale(0.72);
  transform-origin: top left;

  pointer-events: none; /* кликаем по всей карточке */
}

/* overlay с CTA */
.tour-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(2px);

  opacity: 0;
  transition: 0.3s ease;
}

.tour-preview:hover .tour-overlay {
  opacity: 1;
}

.tour-overlay span {
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(255,255,255,0.9);

  font-weight: 700;
  color: #000;
}

/* MOBILE */
@media (max-width: 768px) {
  .tour-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .tour-btn {
    margin-inline: auto;
  }

  .tour-preview {
    height: 300px;
  }
}


.map-full-section {
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: #f4f4f4;
}

.map-full-section > div {
  width: 100% !important;
  height: 420px !important;
}



.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);

  padding: 14px 24px;
  border-radius: 16px;

  background: linear-gradient(135deg, #d20000, #ff3b3b);
  color: #fff;

  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;

  box-shadow: 0 20px 60px rgba(210,0,0,0.35);

  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.error {
  background: linear-gradient(135deg, #ff3b3b, #8f0000);
  box-shadow: 0 20px 60px rgba(255,0,0,0.35);
}

/* ===== DOCUMENTS ===== */
.documents-section {
  background: #f4f4f4;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;

  width: min(100%, var(--max-w));
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

.doc-card {
  display: flex;
  align-items: center;
  gap: 16px;

  padding: 20px;
  border-radius: 20px;

  background: #fff;
  text-decoration: none;
  color: #111;

  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  transition: 0.25s ease;
}

.doc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.12);
}

.doc-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;

  background: #d20000;
  color: #fff;

  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.1em;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 10px 30px rgba(210,0,0,0.3);
}
.doc-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.doc-info span {
  font-size: 13px;
  color: #777;
}