@font-face {
  font-family: "Mak";
  src: url("../assets/fonts/mak/mak-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Design tokens from Figma */
:root {
  --color-primary-10: #f1f7fb;
  --color-primary-20: #cee4f6;
  --color-primary-40: #8ec3f4;
  --color-primary-80: #448fd7;
  --color-secondary-40: #75c39f;
  --color-neutral-00: #ffffff;
  --color-neutral-10: #f3f4f6;
  --color-neutral-40: #b0b5bd;
  --color-neutral-80: #717681;
  --color-neutral-100: #23262d;
  --color-attention-20: #e39595;

  --font-display: "Mak", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --container-pad: 16px;
  --section-gap: 32px;
  --title-size: 48px;
  --title-lh: 64px;
  --hero-name-size: 48px;
  --hero-name-lh: 64px;
  --hero-height: 960px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  color: var(--color-neutral-100);
  background: var(--color-neutral-00);
  font-feature-settings: "lnum" 1, "tnum" 1;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section {
  padding: 64px 0;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--title-size);
  line-height: var(--title-lh);
  letter-spacing: -0.01em;
  color: var(--color-neutral-100);
  margin-bottom: var(--section-gap);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: var(--hero-height);
  color: var(--color-neutral-00);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 168px;
  z-index: 1;
  background: linear-gradient(
    -1.9deg,
    rgba(0, 0, 0, 0) 13.93%,
    rgba(26, 28, 25, 0.8) 124.52%
  );
}

.hero__lines {
  position: absolute;
  left: -51px;
  bottom: 0;
  width: calc(100% + 102px);
  max-width: none;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  min-height: var(--hero-height);
  gap: 64px;
  padding: 16px var(--container-pad) 48px;
}

/* Navigation */
.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-nav__title {
  font-weight: 300;
  font-size: 30px;
  line-height: 40px;
  letter-spacing: -0.02em;
}

.header-nav__subtitle {
  font-weight: 800;
  font-size: 16px;
  line-height: 24px;
  opacity: 0.5;
}

.header-nav__burger {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: none;
  border-radius: 12px;
  background: var(--color-primary-40);
  cursor: pointer;
}

.header-nav__menu {
  display: none;
  position: absolute;
  top: 72px;
  right: var(--container-pad);
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 16px;
  background: rgba(35, 38, 45, 0.95);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.header-nav__menu.is-open {
  display: flex;
}

.header-nav__menu a {
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-neutral-10);
  white-space: nowrap;
}

.header-nav__brand .header-nav__subtitle {
  display: none;
}

/* Hero content */
.hero__content {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: auto;
}

.hero__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--hero-name-size);
  line-height: var(--hero-name-lh);
  letter-spacing: -0.01em;
}

.hero__topics {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.hero__topics li {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 500;
  font-size: 14px;
  line-height: 22px;
}

.hero__topic-line {
  flex-shrink: 0;
  width: 48px;
  height: 1px;
  background: var(--color-neutral-00);
}

.hero__contacts-label {
  font-weight: 800;
  font-size: 16px;
  line-height: 24px;
}

.hero__contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Social */
.social-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.social-links__item {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 6px;
}

.social-links__item--whatsapp {
  background: var(--color-secondary-40);
  width: 48px;
  height: 48px;
}

.social-links__item--telegram {
  background: var(--color-primary-40);
  width: 48px;
  height: 48px;
}

.social-links__item--max {
  width: 48px;
  height: 48px;
  padding: 0;
}

.social-links__item--max img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
}

/* ——— About ——— */
.about-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-grid__deco {
  display: none;
}

.about-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--color-primary-10);
  border-radius: 24px;
  padding: 16px 24px;
  overflow: hidden;
}

.about-card__title {
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  margin: 0;
}

.about-card__text {
  font-weight: 500;
  font-size: 14px;
  line-height: 22px;
  margin: 0;
}

.about-card__link {
  font-weight: 800;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-primary-80);
  margin: 0;
}

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

.about-card__row .about-card__text {
  flex: 1;
  min-width: 0;
}

.about-card__figure {
  position: relative;
  flex-shrink: 0;
  pointer-events: none;
}

.about-card__ill {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Card 1 — mobile: text + ill in a row; desktop: ill below text */
.about-card__figure--1 {
  width: 142px;
  height: 148px;
}

.about-card__figure--1 .about-card__ill {
  width: 148px;
  height: 140px;
  margin: 4px auto 0;
  transform: scaleY(-1) rotate(180deg);
}

/* Card 2 */
.about-card__figure--2 {
  width: 135px;
  height: 152px;
}

/* Card 3 — education */
.about-card--3 {
  justify-content: flex-end;
}

.about-card__edu-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.about-card__edu-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.about-card__figure--3 {
  width: 60px;
  height: 79px;
}

.about-card__figure--3 .about-card__ill {
  width: 60px;
  height: 79px;
}

/* Card 4 — learning */
.about-card--4 .about-card__row--learning {
  align-items: flex-end;
}

.about-card--4 .about-card__title {
  flex: 1;
  min-width: 0;
}

.about-card__figure--4 {
  display: none;
}

/* ——— Diplomas ——— */
.section--diplomas {
  display: none;
  padding-top: 24px;
  padding-bottom: 24px;
}

.diplomas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0;
}

.diploma {
  position: relative;
  margin: 0;
  height: 459px;
}

.diploma__circle {
  position: absolute;
  left: 95px;
  top: 79.5px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--color-primary-10);
}

.diploma__frame {
  position: relative;
  border: 1px solid var(--color-primary-20);
  border-radius: 32px;
  padding: 24px;
  background: var(--color-neutral-00);
  height: 100%;
}

.diploma__frame img {
  width: 100%;
  height: 411px;
  object-fit: cover;
  border-radius: 8px;
}

/* ——— Consultations ——— */
.section--consultations {
  padding-top: 24px;
  padding-bottom: 24px;
}

.consultations {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.consultations__row {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.info-circles {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  width: 100%;
}

.info-circle {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 268px;
  height: 268px;
  padding: 20px 18px 0;
  border: 1px solid var(--color-primary-20);
  border-radius: 50%;
  text-align: center;
}

.info-circle p {
  font-weight: 500;
  font-size: 14px;
  line-height: 22px;
  max-width: 264px;
}

.info-circle__deco {
  width: 36px;
  height: auto;
  margin-bottom: 12px;
}

.info-circle__deco--bottom {
  margin-top: 12px;
  margin-bottom: 0;
  transform: rotate(180deg);
}

.info-circle__icon {
  position: absolute;
  top: 67px;
  left: 50%;
  transform: translateX(-50%);
}

.info-circle__icon--dual {
  display: flex;
  gap: 4px;
}

.price-cards {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.price-card {
  position: relative;
  background: var(--color-primary-10);
  border-radius: 24px;
  padding: 24px;
  padding-top: 56px;
  min-height: 120px;
}

.price-card__duration {
  position: absolute;
  top: -14px;
  right: 24px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--color-neutral-100);
  text-align: right;
}

.price-card__num {
  font-size: 100px;
  line-height: 1;
}

.price-card__unit {
  font-size: 34px;
  line-height: 68px;
  padding-bottom: 8px;
}

.price-card__sub {
  position: absolute;
  top: 105px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 34px;
  font-weight: 300;
}

.price-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 48px;
}

.price-card__label {
  font-weight: 400;
  font-size: 14px;
  line-height: 16px;
  color: var(--color-primary-80);
}

.price-card__price {
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  color: var(--color-secondary-40);
}

.price-card__old {
  font-weight: 800;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-attention-20);
  text-decoration: line-through;
}

.price-card--package {
  padding-top: 100px;
  min-height: 200px;
}

/* ——— Methods ——— */
.section--methods {
  padding: 0;
}

.methods {
  display: flex;
  flex-direction: column;
  min-height: 750px;
}

.methods__left {
  position: relative;
  flex: 1;
  padding: 80px var(--container-pad) 48px;
  overflow: hidden;
}

.methods__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.methods__content {
  position: relative;
  z-index: 1;
  max-width: 100%;
}

.methods__title {
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  margin-bottom: 36px;
  max-width: 615px;
}

.methods__list-wrap {
  position: relative;
  padding-left: 48px;
}

.methods__side {
  position: absolute;
  left: 0;
  top: 0;
  width: 54px;
  height: 495px;
}

.methods__list li {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--color-primary-20);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
}

.methods__list li span {
  flex-shrink: 0;
  width: 26px;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  text-align: center;
  color: var(--color-primary-40);
  letter-spacing: -0.01em;
}

.methods__more {
  margin-top: 16px;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-primary-40);
}

.methods__right {
  display: none;
  position: relative;
  background: var(--color-neutral-10);
}

/* ——— Footer ——— */
.footer {
  position: relative;
  padding-top: 24px;
  overflow: hidden;
}

.footer__bubble {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 333px;
  height: auto;
  pointer-events: none;
}

.footer__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 0 var(--container-pad) 24px;
  max-width: 1920px;
  margin: 0 auto;
  width: 100%;
  border-radius: 32px 32px 0 0;
}

.footer__brand--desktop {
  display: none;
}

.footer__brand--mobile {
  text-align: center;
}

.footer__name--mobile {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.01em;
  color: var(--color-primary-40);
}

.footer__copy {
  display: flex;
  justify-content: center;
  gap: 4px;
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  color: var(--color-neutral-80);
  margin-top: 4px;
}

.footer__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer__nav a {
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
}

.footer__dot {
  display: none;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer__contacts-label {
  display: none;
}

.footer .social-links {
  gap: 48px;
}

.footer .social-links__item--whatsapp,
.footer .social-links__item--telegram {
  width: 36px;
  height: 36px;
}

/* ——— 1024px ——— */
@media (min-width: 1024px) {
  :root {
    --container-pad: 32px;
    --section-gap: 48px;
  }

  .header-nav__burger {
    display: none;
  }

  .header-nav__menu {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .header-nav__menu a {
    font-size: 16px;
    line-height: 24px;
  }

  .header-nav__brand .header-nav__subtitle {
    display: block;
  }

  .header-nav {
    align-items: flex-start;
    padding: 32px 0 8px;
  }

  .hero__inner {
    gap: 100px;
    padding-top: 0;
  }

  .hero__contacts {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .hero .social-links__item--whatsapp,
  .hero .social-links__item--telegram {
    width: 36px;
    height: 36px;
  }

  .section--diplomas {
    display: block;
  }

  .section {
    padding-left: 0;
    padding-right: 0;
  }

  .section .container {
    padding-left: 32px;
    padding-right: 32px;
  }

  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 32px;
    align-items: stretch;
  }

  .about-grid__deco {
    display: block;
    position: absolute;
    left: 50%;
    top: 137px;
    transform: translateX(-50%);
    width: min(541px, 72%);
    z-index: 1;
    pointer-events: none;
  }

  .about-card--1 {
    grid-column: 1;
    grid-row: 1;
    height: 100%;
  }

  .about-card--2 {
    grid-column: 2;
    grid-row: 1;
    min-height: 349px;
    height: 100%;
  }

  .about-card--3 {
    grid-column: 1;
    grid-row: 2;
    height: 100%;
  }

  .about-card--4 {
    grid-column: 2;
    grid-row: 2;
    height: 100%;
    padding-top: 64px;
    padding-bottom: 64px;
  }

  /* Card 1: text on top, illustration below — fills row height */
  .about-card--1 {
    display: flex;
    flex-direction: column;
  }

  .about-card--1 .about-card__row {
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  .about-card--1 .about-card__figure--1 {
    flex: 1;
    width: 100%;
    min-height: 221px;
    height: auto;
    padding: 0 69px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .about-card--1 .about-card__figure--1 .about-card__ill {
    width: 222px;
    height: 209px;
    margin: 0;
  }

  /* Card 2: illustration inside card, bottom-right */
  .about-card--2 {
    display: flex;
    flex-direction: column;
  }

  .about-card--2 .about-card__row {
    flex: 1;
    flex-direction: column;
    position: relative;
    min-height: 200px;
  }

  .about-card--2 .about-card__text {
    max-width: 100%;
    padding-right: 0;
  }

  .about-card--2 .about-card__figure--2 {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: min(188px, calc(100% - 16px));
    height: min(212px, 55%);
    max-height: 212px;
  }

  .about-card--2 .about-card__figure--2 .about-card__ill {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right bottom;
  }

  /* Card 3 */
  .about-card--3 {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .about-card__figure--3 {
    width: 81px;
    height: 107px;
  }

  .about-card__figure--3 .about-card__ill {
    width: 81px;
    height: 107px;
  }

  /* Card 4: text + plant in one row */
  .about-card--4 {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .about-card--4 .about-card__row--learning {
    align-items: center;
    height: 100%;
  }

  .about-card__figure--4 {
    display: block;
    width: 227px;
    height: 96px;
    flex-shrink: 0;
  }

  .about-card__figure--4 .about-card__ill {
    width: 227px;
    height: 96px;
  }

  .consultations__row--top {
    flex-direction: row;
    align-items: center;
    padding-left: 40px;
  }

  .consultations__row--bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .info-circles {
    flex-direction: row;
  }

  .price-cards {
    flex-direction: row;
    flex: 1;
    max-width: calc(100% - 332px);
  }

  .price-card {
    flex: 1;
    max-width: 340px;
  }

  .price-card--package {
    max-width: 711px;
    width: 100%;
    flex: none;
  }

  .methods__right {
    display: block;
    flex: 0 0 50%;
    width: 50%;
    height: 750px;
    min-height: 750px;
    overflow: hidden;
  }

  .methods {
    flex-direction: row;
    width: 100%;
  }

  .methods__left {
    flex: 0 0 50%;
    width: 50%;
    padding: 80px 32px;
  }

  .methods__photo-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
  }

  .methods__photo {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 750px;
    object-fit: cover;
    object-position: center 25%;
  }

  .methods__quote {
    position: absolute;
    top: 52px;
    left: 46px;
    z-index: 2;
    display: flex;
    gap: 0;
    max-width: 324px;
    color: var(--color-neutral-00);
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    pointer-events: none;
  }

  .methods__quote img {
    flex-shrink: 0;
    width: 54px;
    margin-right: -24px;
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 var(--container-pad) 24px;
  }

  .footer__brand--desktop {
    display: block;
  }

  .footer__brand--mobile {
    display: none;
  }

  .footer__name {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 64px;
    line-height: 80px;
    letter-spacing: -0.01em;
    color: var(--color-neutral-40);
  }

  .footer__copy {
    justify-content: flex-start;
  }

  .footer__right {
    align-items: flex-end;
    width: auto;
  }

  .footer__nav {
    flex-direction: row;
    gap: 16px;
  }

  .footer__nav a {
    font-size: 16px;
    line-height: 24px;
  }

  .footer__dot {
    display: block;
    width: 6px;
    height: 6px;
    border: 1px solid var(--color-primary-40);
    border-radius: 2px;
  }

  .footer__contacts {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .footer__contacts-label {
    display: block;
    font-weight: 800;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-primary-80);
    text-align: right;
    max-width: 615px;
  }
}

/* ——— 1280px ——— */
@media (min-width: 1280px) {
  :root {
    --container-pad: 56px;
  }

  .methods__left {
    padding-left: 56px;
    padding-right: 56px;
  }

  .methods__title {
    padding-left: 177px;
  }

  .methods__list-wrap {
    margin-left: 177px;
  }
}

/* ——— 1440px ——— */
@media (min-width: 1440px) {
  :root {
    --title-size: 64px;
    --title-lh: 80px;
    --hero-name-size: 64px;
    --hero-name-lh: 80px;
  }

  .hero__name br {
    display: none;
  }

  .hero__name {
    white-space: nowrap;
  }

  .diplomas {
    gap: 32px;
    padding: 0 96px;
  }
}

/* ——— 1920px ——— */
@media (min-width: 1920px) {
  :root {
    --container-pad: 232px;
  }

  .methods__left {
    padding: 80px 0 80px 233px;
  }

  .methods__title,
  .methods__list-wrap {
    margin-left: 0;
    padding-left: 0;
    max-width: 743px;
  }

}
