/* ============================================================
   ABOUT PAGE — Redesigned with editorial / Dribbble aesthetic
   Design tokens from brand config
   ============================================================ */

:root {
  --font: 'Neighbor', sans-serif;
  --font-accent: 'DreamingOutloadScript', sans-serif;
  --font-label: 'Oswald', sans-serif;
  --font-cyrillic: "AktivGroteskCd", sans-serif;

  --turquoise: #ccdee5;
  --dark-turquoise: #2b555b;
  --white: #fcfcfc;
  --graphite: #242424;
  --dark-blue: #0f2d38;
  --gray: #6B7280;
  --light-gray: #E2E8F0;
}

/* ─── WRAPPER ─────────────────────────────────────────────── */
.wrapper {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

/* ─── SECTION 1 — HERO SPLIT ─────────────────────────────── */
.about-section {
  width: 100%;
  padding: 6rem 6rem 0;
  display: flex;
  justify-content: space-between;
  position: relative;
}

/* Subtle vertical rule decorating the left edge */
.about-section::before {
  content: '';
  position: absolute;
  left: 3rem;
  top: 6rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--dark-turquoise) 0%, transparent 100%);
  opacity: 0.25;
}

@media screen and (max-width: 850px) {
  .about-section {
    padding: 72px 1.5rem 0;
  }

  .about-section::before {
    display: none;
  }
}

.about-content {
  display: grid;
  grid-template-columns: 55fr 42fr;
  gap: 6rem;
  width: 100%;
}

@media screen and (max-width: 850px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ─── LEFT: TEXT COLUMN ───────────────────────────────────── */
.about-text {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-top: 1rem;
}

/* Small label above the big title */
.about-text::before {
  content: 'ПРО НАС';
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--dark-turquoise);
  text-transform: uppercase;
}

@media screen and (max-width: 850px) {
  .about-text {
    gap: 1.5rem;
  }
}

.about-title {
  font-family: var(--font);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--graphite);
  margin: 0;
  /* Tight optical crop */
  letter-spacing: -0.02em;
}

/* Accent word inside the title gets the teal marker treatment */
.about-title em {
  font-style: normal;
  position: relative;
  display: inline-block;
  color: var(--dark-turquoise);
}

.about-title em::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background: var(--turquoise);
  border-radius: 2px;
}

@media screen and (max-width: 850px) {
  .about-title {
    font-size: 2.6rem;
  }
}

.about-description {
  font-family: var(--font-cyrillic);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: var(--gray);
  font-weight: 400;
  margin: 0;
  max-width: 58ch;
}

@media screen and (max-width: 850px) {
  .about-description {
    font-size: 1rem;
  }
}

.about-description__text__big {
  display: block;
  font-family: var(--font);
  color: var(--graphite);
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  font-weight: 500;
  line-height: 1.3;
  margin-top: 0.5rem;
}

@media screen and (max-width: 850px) {
  .about-description__text__big {
    font-size: 1.6rem;
  }
}

/* Highlighted pill inside the big text */
.highlighted-text {
  display: inline;
  background-color: var(--dark-turquoise);
  color: var(--white);
  padding: 3px 12px 5px;
  border-radius: 100px;
  font-family: var(--font);
  font-weight: 500;
  font-size: inherit;
  line-height: inherit;
}

@media screen and (max-width: 850px) {
  .highlighted-text {
    padding: 2px 10px 4px;
  }
}

/* ─── RIGHT: IMAGE COLUMN ─────────────────────────────────── */
.about-image {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  position: relative;
}

/* Decorative floating chip behind the image */
.about-image::before {
  content: '';
  position: absolute;
  top: -2rem;
  right: -1.5rem;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: var(--turquoise);
  opacity: 0.35;
  z-index: 0;
}

.pencil-sign-image {
  position: relative;
  z-index: 1;
  max-width: 100%;
  height: auto;
  border-radius: 2rem;
  /* Slight tilt for editorial feel */
  transform: rotate(1.2deg);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.pencil-sign-image:hover {
  transform: rotate(0deg) scale(1.015);
}

/* ─── SECTION 2 — WHITE CARD ──────────────────────────────── */
.about-section-second {
  position: relative;
  z-index: 10;
  margin-top: 6rem;
  border-radius: 3rem;
  width: 100%;
  padding: 7rem 7rem 7rem;
  background-color: var(--white);
  /* Subtle border instead of flat white flush */
  outline: 1.5px solid var(--light-gray);
  outline-offset: -1px;
}

@media screen and (max-width: 850px) {
  .about-section-second {
    margin-top: 3rem;
    padding: 3rem 1.5rem;
    border-radius: 2rem;
  }
}

.about-container-second {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.about-content-second {
  display: grid;
  grid-template-columns: 48fr 52fr;
  gap: 5rem;
  align-items: center;
}

@media screen and (max-width: 850px) {
  .about-content-second {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ─── IMAGE ───────────────────────────────────────────────── */
.about-image-second {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Stacked frame effect */
.about-image-second::after {
  content: '';
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  border-radius: 1.5rem;
  border: 2px solid var(--turquoise);
  z-index: 0;
}

.students-image {
  position: relative;
  z-index: 1;
  max-width: 100%;
  height: auto;
  border-radius: 1.5rem;
  box-shadow: 0 2rem 4rem rgba(43, 85, 91, 0.12);
}

/* ─── TEXT ────────────────────────────────────────────────── */
.about-text-second {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

@media screen and (max-width: 850px) {
  .about-text-second {
    gap: 1.25rem;
  }
}

.about-title-second {
  font-family: var(--font);
  color: var(--graphite);
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
}

@media screen and (max-width: 850px) {
  .about-title-second {
    font-size: 1.75rem;
  }
}

.about-description-second {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.about-paragraph {
  font-family: var(--font-cyrillic);
  color: var(--gray);
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  line-height: 1.7;
  margin: 0;
}

@media screen and (max-width: 850px) {
  .about-paragraph {
    font-size: 0.95rem;
  }
}

/* Pull-quote style highlight */
.about-highlight {
  display: block;
  font-family: var(--font);
  font-size: clamp(1.15rem, 1.6vw, 1.55rem);
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--dark-turquoise);
  background: color-mix(in srgb, var(--turquoise) 18%, transparent);
  border-radius: 0 1rem 1rem 0;
  color: var(--dark-turquoise);
}

@media screen and (max-width: 850px) {
  .about-highlight {
    font-size: 1.1rem;
  }
}

.about-highlight .black {
  color: var(--graphite);
}

.about-highlight .dark {
  color: var(--dark-blue);
}

/* ─── SECTION 3 — DARK TEAL BAND ─────────────────────────── */
.about-section-third {
  margin-top: -3rem;
  position: relative;
  width: 100%;
  padding: 10rem 6rem 8rem;
  background-color: var(--dark-blue);
  overflow: hidden;
  border-radius: 3rem 3rem 0 0;
}

@media screen and (max-width: 850px) {
  .about-section-third {
    margin-top: -2rem;
    padding: 7rem 1.5rem 4rem;
    border-radius: 2rem 2rem 0 0;
  }
}

/* Texture overlay */
.about-section-third::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('img/about-bg.png');
  mix-blend-mode: overlay;
  background-size: cover;
  opacity: 0.25;
  z-index: 1;
  pointer-events: none;
}

/* Large watermark number, purely decorative */
.about-section-third::before {
  content: '03';
  position: absolute;
  right: 4rem;
  bottom: -2rem;
  font-family: var(--font);
  font-size: 22rem;
  font-weight: 700;
  color: var(--white);
  opacity: 0.03;
  line-height: 1;
  user-select: none;
  z-index: 1;
}

.about-container-third {
  position: relative;
  z-index: 10;
  margin: 0 auto;
  max-width: 1400px;
}

/* ─── HEADER ──────────────────────────────────────────────── */
.about-header-third {
  margin-bottom: 5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media screen and (max-width: 850px) {
  .about-header-third {
    margin-bottom: 3rem;
  }
}

.about-subtitle {
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--turquoise);
  opacity: 0.7;
}

@media screen and (max-width: 850px) {
  .about-subtitle {
    font-size: 0.7rem;
  }
}

.about-main-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 0;
}

@media screen and (max-width: 850px) {
  .about-main-title {
    gap: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
  }
}

.about-main-title span:first-child {
  font-family: var(--font);
  color: var(--white);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

@media screen and (max-width: 850px) {
  .about-main-title span:first-child {
    font-size: 2.6rem;
  }
}

/* Pill highlight inside dark-section heading */
.highlighted-title {
  background-color: var(--turquoise);
  color: var(--dark-blue);
  padding: 0.35rem 1.4rem 0.45rem;
  border-radius: 100px;
  font-family: var(--font);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  display: inline-block;
}

@media screen and (max-width: 850px) {
  .highlighted-title {
    font-size: 2.4rem;
    padding: 0.25rem 1rem 0.35rem;
  }
}

/* ─── THREE-COLUMN GRID ───────────────────────────────────── */
.about-content-third {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 4rem;
  align-items: start;
}

@media screen and (max-width: 850px) {
  .about-content-third {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.about-text-left,
.about-text-right {
  font-family: var(--font-cyrillic);
  color: rgba(252, 252, 252, 0.72);
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  line-height: 1.65;
}

@media screen and (max-width: 850px) {
  .about-text-left,
  .about-text-right {
    font-size: 0.95rem;
  }
}

.about-paragraph-left,
.about-paragraph-right {
  margin: 0;
}

/* ─── CENTER IMAGE ────────────────────────────────────────── */
.about-image-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.learning-image {
  max-width: 34rem;
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
  /* Glow tailored to the dark bg */
  box-shadow:
    0 0 0 1px rgba(204, 222, 229, 0.15),
    0 2rem 5rem rgba(0, 0, 0, 0.45);
  transform: rotate(-1deg);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.learning-image:hover {
  transform: rotate(0deg) scale(1.02);
}

@media screen and (max-width: 850px) {
  .learning-image {
    max-width: 100%;
    transform: none;
  }
}

/* ─── UTILITY: REVEAL ANIMATION ───────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-title,
.about-description,
.about-image,
.about-title-second,
.about-description-second,
.about-main-title,
.about-content-third {
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.about-title          { animation-delay: 0.05s; }
.about-description    { animation-delay: 0.15s; }
.about-image          { animation-delay: 0.25s; }
.about-title-second   { animation-delay: 0.1s; }
.about-description-second { animation-delay: 0.2s; }
.about-main-title     { animation-delay: 0.1s; }
.about-content-third  { animation-delay: 0.25s; }