@font-face {
    font-family: 'ProximaNova';
    src: url("ProximaNova-Regular.ttf");
}

@font-face {
    font-family: 'ProximaNovaBold';
    src: url("ProximaNova-Bold.ttf");
}

body {
    font: normal 18px/110% ProximaNova;
}
.main-container {
    max-width: 1440px;
    margin: 0 auto;
}  .callback__text {
        background-color: #e8f5e9;
        border-radius: 15px;
        padding: 40px;
        margin-top: 20px;
    }
.container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    max-width: 1128px;
    padding: 0;
}
.header {
    background: #F1F4FB;
    color: #2F3441;
    margin-bottom: 110px;
    position: relative;
}
.header__bg {
    right: 0;
    background: url(hero.png) no-repeat right bottom;
    position: absolute;
    width: 660px;
    height: 649px;
    bottom: 0;
}

.header__wrap {
    background: url(hero.png) no-repeat 600px bottom;
    padding: 70px 0;
}

.header__logo {
    font: normal 21px/22px ProximaNova;
    margin-bottom: 40px;
}

.header__logo span {
    color: #F1361D;
}

.header__title1 {
    font: normal 50px/100% ProximaNovaBold;
    margin-bottom: 25px;
}

.header__title2 {
    font: normal 30px/110% ProximaNova;
    margin-bottom: 20px;
}

.header__title3 {
    font: normal 18px/110% ProximaNova;
    margin-bottom: 40px;
}

.menu {

}

.menu a {
    text-decoration: none;
    color: #2F3441;
    margin-right: 20px;
    font: normal 23px ProximaNova;
}

.menu a:hover {
    color: #F1361D;
}

.btn-trud2, .btn-trud2:hover {
    background: #F1361D;
    color: #fff;
}

.btn-trud3, .btn-trud3:hover {
    background: #F1361D;
    color: #fff;
    line-height: 28px;
    padding: 0 20px;
}

.btn-trud4, .btn-trud4:hover {
    border: solid 1px #F1361D;
    color: #000;
    line-height: 28px;
    padding: 0 20px;
}

.section2 {
    background: #F1F4FB;    padding-top: 80px;
    padding-bottom: 80px;
}

h1 {
    font: normal 55px/100% ProximaNova;
}

h2 {
    font: normal 45px/110% ProximaNova;
}

h3 {
    font: normal 40px/110% ProximaNova;
}

h4 {
    font: normal 36px/110% ProximaNova;
}

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

ul li {
    font: normal 20px/130% ProximaNova;
    background: url(mark.png) 0px 3px no-repeat;
    padding-left: 40px;
    margin-bottom: 20px;
}

.splide ul li {
    background: none;
    margin-right: 0;
    width: 277px;
}
.col-lg-9 {
    width: 70%;
    margin-left: 50px;
}
col-lg-9 ul li {
    font-size: 24px;
    margin-bottom: 15px;
}

.reestr {
    background: url(reestr.png) no-repeat right bottom #F1361D;
    color: #fff;
    border-radius: 15px;
    padding: 40px 30px;margin-bottom: 83px;
}
.reestr ul {
    max-width: 55%;
}
.section2-text {
    font-size: 24px;
    line-height: 120%;
}
.form {
    background: #E8EBF3;
    border-radius: 15px;
    padding: 30px 30px 15px;
}

.screen {
    max-width: 100%;
    border-radius: 15px;
    border: 1px solid #D6D6D6;
    box-shadow: -2.74px 8.21px 18.25px 0px #0000001A;
}

.video {
    position: relative;
    width: 100%;
    height: 690px;
    overflow: hidden;
    padding: 40px 0;
    color: #fff;
    box-shadow: 0 0 0 400px rgba(0, 0, 0, 0.5) inset;
}
.video h2 {
    font-size: 55px;
    margin-top: 40px;
}
.video .container {

}

#video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video__text {
    backdrop-filter: blur(30px);
    border-radius: 15px;
    max-width: 500px;
    position: absolute;
    right: 0;
    bottom: -430px;
    padding: 20px;
}

.video__text-title {
    font: normal 28px/110% ProximaNova;
}

.content {
    position: relative;
    z-index: 1;
    color: white;
}

.face {
    font: normal 15px/115% ProximaNova;
}

.face__pic {
    background-position: center top 15px;
    background-repeat: no-repeat;
    background-color: #7C859B;
    background-size: cover;
    margin: 0 auto 10px;
    border-radius: 15px;
    height: 312px;
    width: 270px;
}

.face__title {
    font: normal 22px/110% ProximaNova;
    margin-bottom: 10px;
}

.app {
    display: flex;
}

.app__search {
    background: #F1F4FB;
    border-radius: 10px;
    padding: 10px 20px;
    display: flex;
}

.app__search input {
    border: none;
    background: none;
    color: #7C859B;
    font: normal 18px/110% ProximaNova;
    width: 100%;
}

.app__menu {
    min-width: 350px;
    width: 350px;
    background: #2A3244;
    border-radius: 15px;
    padding: 10px;
    margin-right: 20px;
}

.app__body {
    width: 100%;
}

.app__menu a {
    display: block;
    padding: 0 10px;
    text-decoration: none;
    background: #36425C;
    border-radius: 10px;
    line-height: 50px;
    color: #fff;
    margin-bottom: 10px;
}

.app__menu a:hover {
    background: #FA4E38;
}

.app__menu a span {
    float: right;
}

a.app__menu-selected {
    background: #FA4E38;
}

.app__teaser {
    background: #F1F4FB;
    padding: 20px;
    border-radius: 15px;
    font: normal 16px/105% ProximaNova;
}

.app__teaser:hover {
    background: #36425C;
    color: #fff;
}
.app__teaser:hover .btn-trud4 {
    color: #fff;
}

.app__calendar {
    color: #F1361D;
    font: normal 13px/110% ProximaNova;
    margin-bottom: 10px;
}

.app__clock {
    color: #7C859B;
    font: normal 13px/110% ProximaNova;
}

.app__book {
    color: #867EF7;
    font: normal 13px/110% ProximaNova;
    margin-bottom: 10px;
}


.tabs {
    border: 1px solid #033730;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 30px;
}

.progs {
    font: normal 30px/90% ProximaNova;
    color: #F1361D
}

.progs span {
    font: normal 90px/95% ProximaNova;

}

.tab {
    color: #033730;
    font: normal 16px / 20px ProximaNova;
    cursor: pointer;
    height: 37px;
    width: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.tab--active {
    cursor: default;
    pointer-events: none;
    background: #033730;
    color: white;
}

.profile {
    background: #F4F4F4;
    padding: 30px;
}

.footer {
    background: #393939;
    color: #fff;
    padding: 20px 0;
    font: normal 13px/16px ProximaNova;
}

.footer a {
    color: #fff;
}

.footer__call {
    font: bold 18px/22px ProximaNova;
}

@media screen and (max-width: 992px) {
    .menu {
        display: block;
    }

    .menu a {
        text-align: center;
        display: block;
    }

    .header__bg {
        background: none;
    }

    .header__title1 {
        font: normal 31px/35px ProximaNova;
    }

    .header__title2 {
        font: normal 36px/45px ProximaNova;
    }
    .reestr {
        background: #F1361D;
    }
    .reestr ul {
        max-width: 100%;
    }
}

@media screen and (max-width: 576px) {
    .video__text {
        bottom: -400px;
    }
}

/* Блок с карточками */
:root {
    --color-primary: #f1361d;
    --color-secondary: #2f3441;
    --color-bg-dark: #2a3244;
    --color-bg-medium: #36425c;
    --color-bg-light: #f1f4fb;
    --color-text-dark: #2f3441;
    --color-text-gray: #7c859b;
    --color-purple: #867ef7;
    --color-white: #ffffff;
    --color-bg-hero: #f5f6fa;
}

.training-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background: var(--color-white);
}
.feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.check-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.feature-item p {
    font-size: 23px;
    line-height: 1.25;
    color: var(--color-text-dark);
}

.programs-section {
    max-width: 1128px;
    width: 100%;
    margin-bottom: 80px;
}

.programs-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
}

.programs-title h2 {
    font-size: 45px;
    line-height: 1.2;
    font-weight: 400;
    color: var(--color-text-dark);
    max-width: 900px;
}

.programs-count {
    text-align: right;
    color: var(--color-primary);
    flex-shrink: 0;
}

.count-number {
    font-size: 85px;
    line-height: 0.95;
    font-weight: 400;
}

.count-label {
    font-size: 27px;
    line-height: 0.9;
}

/* ========= ОСНОВНОЙ ГРИД - единая структура ========= */
/* 
            Создаем единый grid, где:
            - Строка 1: поиск (занимает всю ширину)
            - Строка 2: сайдбар + верхние карточки (2 колонки)
            - Строка 3: нижние карточки (3 колонки, начинаются под сайдбаром)
        */

.programs-main-grid {
    display: grid;
    grid-template-columns: calc((100% - 60px)/3) 1fr;
    gap: 30px;
    /* align-items: start; */
}

/* Поиск растягивается на всю ширину */
.search-wrapper {
    grid-column: 1 / -1;
    margin-bottom: 30px;
}

.search-box {
    position: relative;
}

.search-input {
    width: 100%;
    background: var(--color-bg-hero);
    border: none;
    border-radius: 15px;
    padding: 10px 50px 13px 20px;
    font-size: 18px;
    color: var(--color-text-gray);
    outline: none;
}

.search-input::placeholder {
    color: var(--color-text-gray);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    pointer-events: none;
}

/* Sidebar - первая колонка, растягивается по высоте контента */
.categories-sidebar {
    background: var(--color-bg-dark);
    border-radius: 15px;
    padding: 9px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    
}

.category-btn {
    width: 100%;
    background: var(--color-bg-medium);
    border: none;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--color-white);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.15;
}

.category-btn:hover {
    background: #3d4a67;
    transform: translateX(2px);
}

.category-btn.active {
    background: var(--color-primary);
}

.category-name {
    flex: 1;
    font-weight: 500;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-count {
    flex-shrink: 0;
}

/* Вторая колонка - контент */
.content-area {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Верхний грид — 2 колонки (первые 4 карточки) */
.grid-top {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    flex-grow: 1;
}

/* Нижний грид — 3 колонки, будет расположен под сайдбаром 
           так как сайдбар находится в первой колонке, а этот блок - новая строка в общем гриде */
.grid-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
    
}

/* Когда карточек нет в нижнем гриде — скрываем */
.grid-bottom:empty {
    display: none;
}

/* Program Card */
.program-card {
    background: var(--color-bg-light);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s ease;
    max-height: 260px;
}

.program-card:hover {
    background: var(--color-bg-dark);
}

.program-card:hover .program-title,
.program-card:hover .certificate-type span,
.program-card:hover .btn-secondary {
    color: var(--color-white);
}

.program-card:hover .certificate-type svg path,
.program-card:hover .meta-item.duration svg path {
    stroke: var(--color-white);
}

.program-card:hover .meta-item.duration span {
    color: var(--color-white);
}

.program-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.program-image {
    width: 82px;
    height: 70px;
    object-fit: contain;
    flex-shrink: 0;
}

.card-meta {
    display: flex;
    flex-direction: column;
    gap: 7px;
    align-items: flex-end;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.15;
}

.meta-item svg {
    width: 15px;
    height: 15px;
}

.start-date {
    color: var(--color-primary);
}

.duration {
    color: var(--color-text-gray);
}

.program-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
}

.certificate-type {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-purple);
    line-height: 1.15;
}

.certificate-type svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.program-title {
    font-size: 15px;
    line-height: 1.05;
    font-weight: 400;
    color: var(--color-text-dark);
    margin: 0;
    transition: color 0.3s ease;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-primary,
.btn-secondary {
    padding: 4px 19px;
    border-radius: 5px;
    font-size: 15px;
    line-height: 1.25;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--color-primary);
    font-weight: 600;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0px 0px 24px 0px rgba(241, 54, 29, 0.25);
}

.btn-primary:hover {
    background: #e02f17;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-dark);
    font-weight: 400;
}

.btn-secondary:hover {
    background: rgba(241, 54, 29, 0.05);
    transform: translateY(-1px);
}

.show-more {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.btn-show-more {
    padding: 4px 37px;
    border: 1px solid var(--color-primary);
    background: transparent;
    border-radius: 5px;
    font-size: 15px;
    color: var(--color-text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-show-more:hover {
    background: rgba(241, 54, 29, 0.05);
    transform: translateY(-1px);
}

/* ========= АДАПТИВ ========= */
@media screen and (max-width: 1024px) {
    .hero-section {
        padding: 80px 24px 80px;
    }

    .programs-section {
        padding: 0 24px;
    }

    .hero-content {
        flex-direction: column;
        gap: 40px;
    }

    .hero-title h1 {
        width: 100%;
        font-size: 36px;
    }

    .programs-header {
        flex-direction: column;
        gap: 20px;
    }

    .programs-title h2 {
        font-size: 36px;
    }

    .count-number {
        font-size: 70px;
    }

    .count-label {
        font-size: 24px;
    }

    .programs-main-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .categories-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        padding: 15px;
    }

    .category-btn {
        width: auto;
        flex: 1 1 calc(33.333% - 10px);
        min-width: 150px;
    }

    .grid-top {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-bottom {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .hero-section {
        padding: 60px 20px;
    }

    .programs-section {
        padding: 0 20px 40px;
    }

    .hero-title h1 {
        font-size: 32px;
    }

    .feature-item p {
        font-size: 18px;
    }

    .programs-title h2 {
        font-size: 28px;
    }

    .count-number {
        font-size: 60px;
    }

    .count-label {
        font-size: 20px;
    }

    .categories-sidebar {
        flex-direction: column;
        align-self: start;
    }

    .category-btn {
        width: 100%;
        min-width: auto;
        font-size: 16px;
        padding: 12px;
    }

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

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

    .program-card {
        padding: 16px;
    }

    .card-actions {
        gap: 10px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .hero-section {
        padding: 40px 16px;
    }

    .programs-section {
        padding: 0 16px 30px;
    }

    .hero-title h1 {
        font-size: 28px;
    }

    .programs-title h2 {
        font-size: 24px;
    }

    .count-number {
        font-size: 50px;
    }

    .count-label {
        font-size: 18px;
    }

    .program-card .card-header {
        flex-direction: column;
        gap: 12px;
    }

    .program-image {
        width: 100%;
        height: auto;
        max-height: 100px;
        object-fit: contain;
    }

    .card-meta {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }
}

/* faq */

/* ── Page wrapper — exact left/top margins from SVG ── */
.faq {
    max-width: 1440px;
    margin: 0 auto;
    padding: 90px 157px 55px;
  }

  /* ── Title: 40px / weight 400 ── */
  .faq__title {
    font-size: 40px;
    font-weight: 400;
    line-height: 1;
    color: #2F3441;
    letter-spacing: -0.2px;
    margin-bottom: 30px;margin-top: 80px;
  }

  /* ── List: no borders, no markers ── */
  .faq__list {
    list-style: none;
    padding-bottom: 50px;
  }

  /* ── Item ── */
  .faq__item {
    background: none;
    padding-left: 0;
  }

  /* ── Button: 28px / weight 600 / row height 52px ── */
  .faq__btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 5px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
  }

  .faq__btn:focus-visible {
    outline: 2px solid #2F3441;
    outline-offset: 3px;
    border-radius: 2px;
  }

  .faq__question {
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    color: #2F3441;
    letter-spacing: -0.1px;
  }

  /* ── Arrow: exact shape from SVG, rotates 90° CW on open ── */
  .faq__arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    color: #2F3441;
    /* icon is 7×18px at SVG scale — scale up proportionally */
    width: 12px;
    height: 20px;
  }

  .faq__arrow svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  /* Rotate 90° clockwise → arrow points down */
  .faq__item.is-open .faq__arrow {
    transform: rotate(90deg);
  }

  /* ── Accordion panel — CSS grid trick, no JS height needed ── */
  .faq__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.36s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .faq__item.is-open .faq__panel {
    grid-template-rows: 1fr;
  }

  .faq__panel-inner {
    overflow: hidden;
  }

  /* ── Answer text ── */
  .faq__answer {
    padding: 8px 0 24px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: #5a6070;
    max-width: 760px;
  }

  .faq__answer p + p {
    margin-top: 10px;
  }

  .faq__answer ul {
    margin: 10px 0 10px 20px;
    list-style: disc;
  }

  .faq__answer li {
    margin-bottom: 5px;
  }

  .faq__answer strong {
    font-weight: 600;
    color: #2F3441;
  }