@import url("./reset.css");
@import url("./variables.css");
@import url("./animations.css");

@import url("./layout/header.css");
@import url("./layout/navigation.css");
@import url("./layout/footer.css");

@import url("./components/buttons.css");
@import url("./components/cards.css");
@import url("./components/carousel.css");
@import url("./components/forms.css");
@import url("./components/modal.css");

@import url("./pages/home.css");
@import url("./pages/about.css");
@import url("./pages/lessons.css");
@import url("./pages/achievements.css");
@import url("./pages/reviews.css");
@import url("./pages/contacts.css");
@import url("./pages/privacy.css");
@import url("./components/registration-modal.css");

@import url("./responsive.css");


/* =========================================================
   GLOBAL
========================================================= */

body {
  min-width: 320px;

  color: var(--color-black);
  background: var(--color-white);

  font-family: var(--font-main);
}

body.menu-open {
  overflow: hidden;
}

.container {
  width: min(calc(100% - 40px), var(--container-width));
  margin-inline: auto;
}

.section {
  padding-block: 96px;
}

.section__label {
  margin: 0 0 24px;

  color: #d6ad00;

  font-size: 13px;
  font-weight: 800;

  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section__title {
  max-width: 850px;

  font-size: clamp(34px, 5vw, 68px);

  line-height: 0.98;
  letter-spacing: -0.04em;
}

.section__text {
  max-width: 700px;

  margin-top: 22px;

  color: var(--color-gray);

  font-size: clamp(17px, 2vw, 21px);
}

.placeholder-page {
  min-height: 100vh;

  display: grid;
  align-items: center;

  padding-block: 80px;

  background:
    linear-gradient(
      120deg,
      rgba(247, 208, 0, 0.16),
      transparent 38%
    ),
    var(--color-light);
}

.placeholder-page__back {
  display: inline-block;

  margin-bottom: 48px;

  font-weight: 800;
  text-decoration: none;
}

.placeholder-page__back:hover {
  color: var(--color-yellow-dark);
}

.site-header__inner {
  min-height: 104px;
}


/* =========================================================
   CHESSHOME — HOME PAGE
========================================================= */

.home-about,
.home-programs,
.home-reviews {
  background: #f6f5f1;
  color: #0b0b0b;
}


/* =========================================================
   ABOUT
========================================================= */

.home-about {
  padding: 120px 0;
}

.home-about__grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(420px, 0.8fr);

  gap: 120px;

  /*
   * ВАЖНО:
   * раньше здесь было align-items: end,
   * поэтому правый текст уезжал вниз.
   */
  align-items: start;
}

.home-about__title,
.section-heading__title {
  margin: 0;

  font-size: clamp(46px, 5vw, 76px);

  line-height: 0.96;
  letter-spacing: -0.045em;
}

.home-about__content {
  max-width: 560px;

  /*
   * Правый текст начинается визуально
   * примерно на уровне первой строки
   * большого заголовка слева.
   */
  padding-top: 52px;
}

.home-about__content p {
  margin: 0 0 32px;

  color: #6f6f6f;

  font-size: 19px;
  line-height: 1.65;
}


/* =========================================================
   TEXT LINK
========================================================= */

.text-link {
  display: inline-flex;
  align-items: center;

  gap: 14px;

  color: #111;

  font-size: 15px;
  font-weight: 700;

  text-decoration: none;

  transition:
    gap 0.25s ease,
    opacity 0.25s ease;
}

.text-link:hover {
  gap: 20px;
}

.text-link--light {
  color: #fff;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(420px, 0.8fr);

  gap: 120px;

  align-items: start;

  margin-bottom: 70px;
}

.section-heading__description,
.section-heading__side {
  max-width: 430px;

  /*
   * Выравниваем правую колонку
   * с большим заголовком слева.
   */
  padding-top: 52px;
}

.section-heading__description,
.section-heading__side p {
  color: #777;

  font-size: 17px;
  line-height: 1.6;
}

/* =========================================================
   CHESS DIVIDER
========================================================= */

.home-chess-divider {
    position: relative;

    overflow: hidden;

    padding: 0;

    background: #f6f5f1;
}

.home-chess-divider__inner {
    display: flex;
    align-items: center;

    gap: 24px;
}

.home-chess-divider__line {
    height: 2px;

    flex: 1;

    background: var(--color-yellow, #f7d000);
}

.home-chess-divider__pieces {
    display: flex;
    align-items: flex-end;
    justify-content: center;

    gap: clamp(8px, 1.5vw, 18px);

    color: transparent;

    font-family:
        "Times New Roman",
        serif;

    font-size: clamp(28px, 3vw, 48px);
    line-height: 1;

    -webkit-text-stroke:
        1.5px
        var(--color-yellow, #f7d000);

    text-shadow:
        0 0 18px rgba(247, 208, 0, 0.12);

}

.home-chess-divider__pieces span:nth-child(1) {
    font-size: 0.72em;
}

.home-chess-divider__pieces span:nth-child(2) {
    font-size: 0.84em;
}

.home-chess-divider__pieces span:nth-child(3) {
    font-size: 0.92em;
}

.home-chess-divider__pieces span:nth-child(4) {
    font-size: 1em;
}

.home-chess-divider__pieces span:nth-child(5) {
    font-size: 1.08em;
}

.home-chess-divider__pieces span:nth-child(6) {
    font-size: 1.14em;
}

/* =========================================================
   PROGRAMS
========================================================= */

.home-programs {
  padding: 130px 0;
}

.program-cards {
  border-top: 1px solid #d9d9d5;
}

.program-card {
  display: grid;

  grid-template-columns:
    90px
    1fr
    auto;

  gap: 35px;

  align-items: center;

  min-height: 180px;

  padding: 35px 0;

  color: #111;
  text-decoration: none;

  border-bottom: 1px solid #d9d9d5;

  transition:
    padding 0.25s ease,
    background 0.25s ease;
}

.program-card:hover {
  padding-left: 20px;
  padding-right: 20px;

  background: #fff;
}

.program-card__number {
  color: #d6ad00;

  font-size: 14px;
  font-weight: 800;
}

.program-card__content h3 {
  margin: 0 0 10px;

  font-size: 32px;

  letter-spacing: -0.03em;
}

.program-card__content p {
  max-width: 600px;

  margin: 0;

  color: #777;

  line-height: 1.6;
}

.program-card__arrow {
  display: flex;

  width: 54px;
  height: 54px;

  align-items: center;
  justify-content: center;

  border: 1px solid #ccc;
  border-radius: 50%;

  font-size: 20px;
}

.home-programs__footer {
  margin-top: 45px;
}

.button--dark {
  color: #fff;
  background: #111;
}


/* =========================================================
   PHILOSOPHY
========================================================= */

.home-philosophy {
  position: relative;

  overflow: hidden;

  padding: 150px 0;

  color: #fff;

  background:
    radial-gradient(
      circle at 75% 25%,
      rgba(255, 213, 0, 0.08),
      transparent 35%
    ),
    #080909;
}

.home-philosophy__inner {
  position: relative;
}

.home-philosophy__quote {
  display: block;

  height: 75px;

  color: #ffd500;

  font-family: Georgia, serif;
  font-size: 110px;

  line-height: 1;
}

.home-philosophy__title {
  max-width: 1000px;

  margin: 15px 0 45px;

  font-size: clamp(54px, 6vw, 94px);

  line-height: 0.98;
  letter-spacing: -0.05em;
}

.home-philosophy__caption {
  margin: 0;

  color: #8e8e8e;

  font-size: 13px;
  font-weight: 700;

  letter-spacing: 0.18em;
}


/* =========================================================
   ACHIEVEMENTS
========================================================= */

.home-achievements {
  padding: 130px 0;

  color: #fff;
  background: #0b0c0c;
}

.section-heading--dark .section-heading__title {
  color: #fff;
}

.section-heading__side .text-link {
  margin-top: 18px;
}

.achievement-preview {
  position: relative;

  display: grid;

  grid-template-columns:
    120px
    1fr
    auto;

  gap: 30px;

  align-items: end;

  min-height: 350px;

  padding: 55px;

  overflow: hidden;

  color: #fff;

  text-decoration: none;

  border: 1px solid #292929;
  border-radius: 30px;

  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 213, 0, 0.13),
      transparent 35%
    ),
    #101111;

  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.achievement-preview:hover {
  transform: translateY(-5px);

  border-color: rgba(255, 213, 0, 0.45);
}

.achievement-preview__number {
  align-self: start;

  color: #ffd500;

  font-size: 14px;
  font-weight: 800;
}

.achievement-preview__content span {
  color: #ffd500;

  font-size: 12px;
  font-weight: 800;

  letter-spacing: 0.15em;
}

.achievement-preview__content h3 {
  max-width: 700px;

  margin: 15px 0 20px;

  font-size: clamp(38px, 4vw, 64px);

  line-height: 1;
  letter-spacing: -0.04em;
}

.achievement-preview__content p {
  margin: 0;

  color: #888;
}

.achievement-preview__arrow {
  display: flex;

  width: 65px;
  height: 65px;

  align-items: center;
  justify-content: center;

  border: 1px solid #3b3b3b;
  border-radius: 50%;

  font-size: 24px;
}


/* =========================================================
   REVIEWS
========================================================= */

.home-reviews {
  padding: 130px 0;
}

.review-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 24px;
}

.review-card {
  display: flex;
  flex-direction: column;

  min-height: 350px;

  padding: 45px;

  border: 1px solid #e2e1dc;
  border-radius: 28px;

  background: #fff;
}

.review-card__stars {
  margin-bottom: 40px;

  color: #d6ad00;

  letter-spacing: 4px;
}

.review-card__text {
  max-width: 580px;

  margin: 0 0 50px;

  font-size: 25px;

  line-height: 1.45;
  letter-spacing: -0.02em;
}

.review-card__author {
  display: flex;
  flex-direction: column;

  gap: 5px;

  margin-top: auto;
}

.review-card__author strong {
  font-size: 15px;
}

.review-card__author span {
  color: #888;

  font-size: 13px;
}


/* =========================================================
   CTA
========================================================= */

.home-cta {
  padding: 100px 0;

  background: #f6f5f1;
}

.home-cta__box {
  display: flex;

  justify-content: space-between;
  align-items: flex-end;

  gap: 60px;

  padding: 70px;

  color: #fff;

  border-radius: 32px;

  background:
    radial-gradient(
      circle at 85% 30%,
      rgba(255, 213, 0, 0.12),
      transparent 35%
    ),
    #090a0a;
}

.home-cta__content h2 {
  margin: 0 0 25px;

  font-size: clamp(48px, 5vw, 78px);

  line-height: 0.98;
  letter-spacing: -0.045em;
}

.home-cta__content > p:last-child {
  max-width: 520px;

  margin: 0;

  color: #999;

  font-size: 17px;
  line-height: 1.6;
}

.button--large {
  padding: 20px 30px;

  white-space: nowrap;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

  .home-about,
  .home-programs,
  .home-achievements,
  .home-reviews {
    padding: 90px 0;
  }


  /* ABOUT */

  .home-about__grid {
    grid-template-columns: 1fr;

    gap: 40px;
  }

  /*
   * На планшете правая колонка уже идёт
   * под левой, поэтому отступ больше
   * не нужен.
   */
  .home-about__content {
    padding-top: 0;
  }


  /* SECTION HEADINGS */

  .section-heading {
    align-items: flex-start;
    flex-direction: column;

    gap: 25px;
  }

  .section-heading__description,
  .section-heading__side {
    padding-top: 0;
  }


  /* PROGRAMS */

  .program-card {
    grid-template-columns:
      60px
      1fr
      auto;
  }


  /* CTA */

  .home-cta__box {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

  .home-about,
  .home-programs,
  .home-achievements,
  .home-reviews {
    padding: 70px 0;
  }

  .home-philosophy {
    padding: 90px 0;
  }


  /* TYPOGRAPHY */

  .section__label {
    margin-bottom: 16px;

    font-size: 11px;
  }

  .home-about__title,
  .section-heading__title {
    font-size: 42px;
  }

  .home-about__content p {
    font-size: 16px;
  }


  /* PROGRAMS */

  .program-card {
    grid-template-columns:
      40px
      1fr;

    gap: 15px;

    min-height: auto;

    padding: 28px 0;
  }

  .program-card:hover {
    padding-left: 0;
    padding-right: 0;

    background: transparent;
  }

  .program-card__content h3 {
    font-size: 25px;
  }

  .program-card__content p {
    font-size: 14px;
  }

  .program-card__arrow {
    display: none;
  }


  /* PHILOSOPHY */

  .home-philosophy__quote {
    height: 55px;

    font-size: 80px;
  }

  .home-philosophy__title {
    font-size: 48px;
  }


  /* ACHIEVEMENTS */

  .achievement-preview {
    display: block;

    min-height: 330px;

    padding: 30px;

    border-radius: 22px;
  }

  .achievement-preview__number {
    margin-bottom: 70px;
  }

  .achievement-preview__content h3 {
    font-size: 38px;
  }

  .achievement-preview__arrow {
    display: none;
  }


  /* REVIEWS */

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

  .review-card {
    min-height: 300px;

    padding: 30px;
  }

  .review-card__text {
    font-size: 21px;
  }


  /* CTA */

  .home-cta {
    padding: 60px 0;
  }

  .home-cta__box {
    padding: 35px 28px;

    border-radius: 24px;
  }

  .home-cta__content h2 {
    font-size: 43px;
  }

  .home-cta__action,
  .home-cta__action .button {
    width: 100%;
  }

  .home-cta__action .button {
    justify-content: center;

    text-align: center;
  }
}

/* =========================================
   HOME REVIEWS — MOBILE
========================================= */

@media (max-width: 600px) {

    .home-reviews .section-heading {
        display: flex;
        flex-direction: column;
        align-items: flex-start;

        gap: 24px;
    }

    .home-reviews .section-heading > div {
        width: 100%;
        min-width: 0;
    }

    .home-reviews .section__label {
        margin-bottom: 14px;
    }

    .home-reviews .section-heading__title {
        width: 100%;
        max-width: none;

        margin: 0;

        font-size: clamp(42px, 12vw, 58px);
        line-height: 0.95;
        letter-spacing: -0.045em;
    }

    .home-reviews .section-heading > .text-link {
        position: static;

        margin: 0;
    }

}

@media (max-width: 700px) {

    /* =========================================
       ОБЩЕЕ ИСПРАВЛЕНИЕ SECTION HEADING
    ========================================= */

    .section-heading {
        display: flex;
        flex-direction: column;
        align-items: flex-start;

        gap: 22px;

        margin-bottom: 44px;
    }

    .section-heading > div,
    .section-heading__description,
    .section-heading__side {
        width: 100%;
        max-width: none;

        padding-top: 0;
    }

    .section-heading__description,
    .section-heading__side p {
        margin: 0;

        font-size: 16px;
        line-height: 1.55;
    }

    .section-heading__side {
        display: flex;
        flex-direction: column;

        align-items: flex-start;

        gap: 16px;
    }

    .section-heading__side .text-link {
        margin-top: 0;
    }

}

@media (max-width: 700px) {

    .home-chess-divider__inner {
        gap: 12px;
    }

    .home-chess-divider__pieces {
        gap: 6px;

        font-size: 27px;

        -webkit-text-stroke: 1px
            var(--color-yellow, #f7d000);
    }

}