/* tablet */

@media (max-width: 1500px) {
  .container {
    width: 1360px !important;
  }
  .kt-card__main-btn {
    position: relative;
    z-index: 2;
    max-width: 100%;
    width: auto;
    align-self: flex-start;
  }

  .kt-btn__center {
    white-space: normal;
    word-break: break-word;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 10px;
  }

  .kt-btn {
    position: relative;
    max-width: 100%;
  }
}

@media (max-width: 1280px) {
  .kt_info_block {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 24px 20px 0 20px;
    align-items: stretch;
    height: auto;
  }
}

@media (min-width: 1024px) and (max-width: 1440px) {
  .kt-team {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
    margin-top: 57px;
    margin-bottom: 59px;
  }

  .kt-team__photo {
    position: relative;
    width: 100%;
    padding-top: 56%;
    position: relative;
  }

  .kt-team__photo {
    position: relative;
    width: 100%;
    padding-top: 84%;
    /* убираем лишнее дублирование position */
  }

  /* Фоновая подложка — на всю высоту родителя */
  .kt-team__photo::before {
    content: "";
    position: absolute;
    left: -4%;
    top: 0; /* было -7%, теперь прижали к верху */
    width: 108%;
    height: 100%; /* было 162px, теперь на всю высоту */
    background-image: url("../assets/images/block7/team_bg.png");
    background-size: 100% 100%;
    filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.24));
    backdrop-filter: blur(5.5px);
    z-index: 1;
  }

  /* Фото — прибито к самому низу */
  .kt-team__photo img {
    position: absolute;
    display: block;
    left: 50%;
    transform: translateX(-50%);
    bottom: 16px; /* было 18px — теперь ровно к низу */
    z-index: 3;
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 1025px) {
  .kt-tasks__row-top .kt-task-card__bottom {
    flex-direction: row;
    align-items: center;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    align-content: stretch;
  }
  .kt-tasks__row-bottom .kt-task-card__bottom {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    align-content: stretch;
  }

  .font-h1 {
    font-size: 42px;
  }

  .kt-banner-text {
    font-weight: 900;
    font-size: 52.2819px;
    line-height: 63px;
    margin-right: 0;
  }

  .kt-banner-arrows img {
    width: 90px;
    height: 74px;
  }

  .kt-banner-icon img {
    width: 92px;
    height: 92px;
  }

  .kt-university-banner {
    max-width: 779px;
  }
  .two-blocks-row {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start; /* карточки прижаты влево, как в макете */
    margin-top: 0;
    gap: 12px;
  }

  .info-card {
    flex: none;
    width: 100%; /* было min-width: 100% */
    max-width: 622px;
    min-height: auto;
    padding: 30px 25px;
  }

  .info-card.info_two_card {
    max-width: 545px;
  }

  .info-text {
    font-weight: 700;
    font-size: 28px;
    color: #ededed;
  }

  .info-card.info_two_card {
    max-width: 545px;
  }

  .font-h2 {
    font-style: normal;
    font-weight: 500;
    font-size: 28px;
    line-height: 100%;
  }
  .categories-section {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-small,
  .card-large {
    grid-column: span 1;
  }

  /* последняя карточка на всю ширину */
  .category-card:last-child {
    grid-column: 1 / -1;
  }

  .consultation-text {
    font-style: normal;
    font-weight: 400;
    font-size: 36px;
    line-height: 43px;
  }

  .btn-red {
    font-size: 14px;
    line-height: 19px;
    padding: 0;
  }

  .award-text,
  .award-text-runet {
    font-size: 32px;
    line-height: 40px;
  }

  .award-card-1 {
    flex: 0 0 488px;
    padding: 0 24px;
  }

  .awards-section {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
  }

  .stat-item {
    font-size: 28px;
    line-height: 26px;
    position: relative;
  }

  .stat_inner {
    padding-bottom: 60px;
    margin-top: 52px;
  }

  .stats-row {
    gap: 42px;
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .font-h1 {
    font-style: normal;
    font-weight: 250;
    font-size: 42px;
    line-height: 50px;
    text-transform: uppercase;
  }

  .red-line-vertical {
    height: auto;
  }
  .kt-skills-block {
    max-width: 822px;
  }

  .kt-text-glass {
    font-size: 28px;
    width: auto;
  }

  .kt-text-red-border {
    font-size: 28px;
    width: auto;
  }

  .kt-arrow {
    display: block;
  }

  .kt-skills-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    align-content: stretch;
  }

  .kt-skills-grid__item {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* шаг растягивается на всю ширину ячейки */
  .kt-skills-grid__item .kt-skill-step {
    flex: 1;
    min-width: 0;
  }
  .kt-skill-step {
    align-items: flex-start;
    width: auto;
  }
  /* стрелка после каждого шага */
  .kt-skills-grid__item::after {
    content: "";
    flex-shrink: 0;
    width: 18px;
    height: 10px;
    background: url("/assets/block3/arrow.svg") no-repeat center / contain;
    opacity: 0.5;
  }

  /* у последнего шага стрелка не видна, но место занимает,
   чтобы его ширина не отличалась от остальных */
  .kt-skills-grid__item:last-child::after {
    visibility: hidden;
  }

  .kt-skill-step .step-text {
    font-weight: 500;
    font-size: 22px;
    line-height: 130%;
    color: #ffffff;
  }

  .kt-green-badge {
    font-style: normal;
    font-weight: 500;
    font-size: 28px;
  }

  .checklist_block {
    max-width: 922px;
    padding-left: 118px;
    padding-right: 118px;
  }

  .kt-today-header {
    font-style: normal;
    font-weight: 500;
    font-size: 22px;
    line-height: 130%;
    width: auto;
  }

  .kt-today-content {
    width: auto;
  }
  .kt-today-blue {
    width: auto;
    font-style: normal;
    font-weight: 400;
    font-size: 36px;
    line-height: 43px;
    text-align: center;
    text-transform: inherit;
  }

  .kt-stats-section {
    margin: 0;
  }

  .kt-stats-section .kt-stats-header {
    margin-left: 40px;
  }

  .kt-footer-text {
    font-size: 28px;
    line-height: 32px;
  }

  .kt-footer {
    max-width: 552px;
  }

  .kt-tool-card .tool-text {
    font-weight: 400;
    font-size: 20px;
  }

  section.kt_cards_inner {
    margin-top: 130px;
  }

  .header-section {
    margin-bottom: 71px;
  }

  .kt_info_block {
    padding: 0 0 0 0;
    margin-bottom: 220px;
    padding: 40px;
  }

  .kt-card__list-text {
    font-style: normal;
    font-weight: 500;
    font-size: 22px;
    line-height: 130%;
  }

  .kt-cards {
    grid-template-columns: repeat(2, minmax(0, 460px));
    justify-content: center;
    gap: 20px;
    padding-bottom: 100px;
  }

  /* третья карточка — на всю ширину ряда, по центру */
  .kt-card:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: 460px;
  }

  /* третья карточка — на всю ширину ряда, по центру */
  .kt-card:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 460px;
  }

  .before_line_after.second_after {
    margin-bottom: -5px;
  }

  .kt-btn__center {
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 16px;
    padding: 16px 16px;
  }

  .kt-btn__center:after {
    content: "";
    position: absolute;
    right: -9px;
    top: 0;
    width: 10px;
    height: 100%;
    background: url("/assets/button_right.svg");
    background-repeat: no-repeat;
  }

  .card-title {
    font-style: normal;
    font-weight: 400;
    font-size: 36px;
    line-height: 43px;
  }

  .card-link {
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
  }

  .info-tooltip {
    right: -20px;
    top: -15px;
  }

  .kt-stats-header h2 {
    font-style: normal;
    font-weight: 400;
    font-size: 44px;
    line-height: 53px;
  }

  .kt-card {
    flex: none;
  }

  .kt-card__photo {
    max-width: 100%;
    height: auto;
    width: 100%;
    margin: 0 0 0 0;
    border-radius: 0;
    left: 0;
    top: 0;
  }

  .tasks_inner {
    padding-top: 120px;
    padding-bottom: 120px;
  }

  .kt-task-card__bottom {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: stretch;
    align-content: stretch;
    padding-top: 24px;
  }

  .kt-btn {
    display: block;
  }

  .kt-task-card__tags {
    margin-bottom: 33px;
  }

  .kt-task-card--blue .kt-task-card__desc {
    flex: none !important;
  }

  .kt-task-card--green .kt-task-card__desc {
    flex: none;
  }

  .kt-task-card__desc {
    flex: none;
  }

  .kt-steps {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    gap: 0;
    flex-wrap: wrap;
    max-width: 650px;
  }

  .kt-step {
    margin-bottom: 40px;
  }

  .kt-step__arrow {
    margin-top: auto;
    margin-bottom: 40px;
  }

  .kt-participant {
    margin-top: 60px;
    margin-bottom: 32px;
  }

  .kt-check-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    width: 100%;
    flex-wrap: wrap;
  }

  .kt-check-main {
    flex: none;
  }

  .kt-error-block {
    width: auto;
    max-width: 100%;
    min-height: auto;
  }

  .kt-teachers-banner__text {
    font-style: normal;
    font-weight: 250;
    font-size: 41px;
    line-height: 49px;
  }

  .kt-team {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 11.36px;
    width: 100%;
    margin-top: 57px;
    margin-bottom: 59px;
  }

  .kt-team__member {
    margin-top: 50px;
  }

  section.kt_result_inner {
    background: #242333;
    position: relative;
    padding-top: 100px;
  }

  .kt-result {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: stretch;
  }

  .kt-result__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: stretch;
  }

  .kt-result__row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: stretch;
  }

  .kt-result__desc {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    align-content: stretch;
  }

  .kt-pro__letter {
    flex-direction: row;
    padding: 40px;
  }

  .kt-certificate {
    flex-direction: row;
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    align-content: stretch;
  }

  .kt-pro {
    margin-bottom: 46px;
    padding-bottom: 20px;
    padding: 80px 185px;
  }

  .kt-form-section__badges {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    align-content: stretch;
  }

  .kt-form-section .kt-result__header h1 {
    font-style: normal;
    font-weight: 250;
    font-size: 42px;
    line-height: 50px;
  }

  .kt-result__header.center {
    justify-content: flex-start;
  }
  .kt-form-section__badges {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: stretch;
    justify-content: flex-start;
    width: 100%;
  }

  .kt-form__button-center {
    padding: 25px 40px;
  }
}

/* mobile */
@media (max-width: 767px) {
  .kt-tasks__row-bottom .kt-task-card__bottom {
    flex-wrap: wrap;
  }
  .kt-tasks__row-top .kt-task-card__bottom {
    flex-wrap: wrap;
  }

  .kt-task-card--green .kt-task-card__desc {
    flex: auto;
  }

  .kt-task-card--red .kt-task-card__desc {
    flex: auto;
  }

  .font-h1 {
    text-transform: math-auto;
  }

  .container {
    padding: 0 14px;
  }

  .font-h1 {
    font-style: normal;
    font-weight: 400;
    font-size: 36px;
    line-height: 43px;
  }

  .kt-university-banner .kt-banner-arrows {
    display: none;
  }

  .kt-banner-icon img {
    width: 49px;
    height: 49px;
  }

  .kt-university-banner {
    flex-direction: row;
    text-align: center;
    max-width: 100%;
    min-height: auto;
    padding: 7px 16px;
    gap: 0;
  }

  .info-text {
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 130%;
  }

  .info-card {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    padding: 15px;
  }

  .categories-section {
    grid-template-columns: repeat(1, 1fr);
  }

  .card-title {
    font-size: 28px;
  }

  .kt-banner-icon {
    width: 49px;
    height: 49px;
  }

  .kt-banner-text {
    font-style: normal;
    font-weight: 900;
    font-size: 26px;
    line-height: 34px;
    text-transform: uppercase;
  }

  .kt-cards {
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 20px;
    padding-bottom: 60px;
  }

  .kt-card,
  .kt-card:nth-child(3) {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
    max-width: 100%; /* ← на мобильных не ограничиваем 460 */
    min-width: 0;
  }

  .kt_info_block {
    padding: 10px;
    margin-bottom: 40px;
  }

  .kt-card {
    flex: none;
    width: 100%;
    max-width: 460px;
  }

  .consultation-text {
    font-style: normal;
    font-weight: 500;
    font-size: 25px;
    line-height: 100%;
    text-align: center;
    width: 100%;
  }

  .consultation-section {
    margin-top: 20px;
    padding: 32px 17px;
  }

  .awards-section {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    align-content: stretch;
  }

  .award-text,
  .award-text-runet {
    font-style: normal;
    font-weight: 500;
    font-size: 23px;
    line-height: 100%;
    text-transform: math-auto;
  }

  .award-card-1 {
    flex: none;
    padding: 0 24px;
  }

  .award-card-2 {
    flex: none;
    min-height: 122px;
    display: flex;
    align-items: center;
    padding-right: 4px;
    gap: 24px;
  }

  .award-card-3 {
    max-width: 100%;
  }

  .award-card-3 img {
    max-width: 100%;
  }
  .kt-benefit-card {
    background-size: contain;
  }
  .card-title {
    text-transform: unset;
  }

  .stat-dot {
    display: block;
  }

  .stat-item {
    font-size: 28px;
    line-height: 26px;
    position: relative;
    text-transform: math-auto;
  }

  .stats-row {
    gap: 16px;
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .before_line_after::before {
    content: "";
    display: block;
    width: 254px;
    height: 3px;
    background: #c42237;
    margin: 0 auto;
  }

  .kt-badge {
    font-size: 18px;
  }

  .kt-text-glass {
    font-style: normal;
    font-weight: 500;
    font-size: 22px;
    line-height: 130%;
    text-align: center;
    display: inline-block;
  }

  .kt-2016-content {
    display: block;
    width: 100%;
    margin-top: 10px;
  }

  .kt-text-red-border {
    display: inline-block;
    font-style: normal;
    font-weight: 500;
    font-size: 22px;
    line-height: 130%;
  }

  .kt-skills-block h3 {
    font-weight: 500;
    font-size: 28px;
    line-height: 100%;
    color: hsl(0, 0%, 100%);
  }

  .kt-skills-block {
    max-width: 100%;
  }

  .kt_right_block2 .kt-year {
    font-size: 50px;
    line-height: 60px;
  }

  .kt_right_block2 {
    margin-left: 175px;
  }

  .kt-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0 6px;
    background: #ffffff;
    border-radius: 4px;
    font-weight: 500;
    font-size: 22px;
    line-height: 29px;
    color: #171717;

    white-space: normal; /* ← разрешаем перенос */
    max-width: 100%; /* ← не вылезаем за контейнер */
    box-sizing: border-box; /* ← padding входит в ширину */
    text-align: center; /* ← центрируем текст по центру при переносе */
    word-break: break-word; /* ← если одно длинное слово — рвём */
    overflow-wrap: anywhere; /* ← современный аналог, лучше работает */
    height: auto; /* ← высота подстраивается под 2 строки */
    text-transform: math-auto;
  }

  .kt-timeline {
    overflow: hidden;
  }

  .kt-green-badge {
    font-style: normal;
    font-weight: 500;
    font-size: 22px;
    line-height: 130%;
  }

  .checklist_block {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: stretch;
  }

  .kt-year {
    font-style: normal;
    font-weight: 900;
    font-size: 50px;
    line-height: 60px;
    text-align: center;
  }

  .kt_title_block3 {
    margin-right: unset;
    margin-top: -30px;
  }

  .kt-today-header {
    font-style: normal;
    font-weight: 500;
    font-size: 22px;
    line-height: 130%;
    text-align: center;
  }

  .kt-today-blue {
    font-style: normal;
    font-weight: 500;
    font-size: 22px;
    line-height: 130%;
    text-align: center;
  }

  .kt-stats-header h2 {
    font-style: normal;
    font-weight: 400;
    font-size: 34px;
    line-height: 43px;
  }

  .kt-stats-section .kt-stats-header {
    margin-left: 0;
  }

  .kt-footer-text {
    font-style: normal;
    font-weight: 500;
    font-size: 26px;
    line-height: 100%;
    text-align: center;
  }

  .kt-card__desc {
    font-style: normal;
    font-weight: 500;
    font-size: 28px;
    line-height: 100%;
    color: #ffffff;
  }

  .kt-card__title {
    font-style: normal;
    font-weight: 250;
    font-size: 40px;
    line-height: 48px;
    text-transform: uppercase;
    color: #ffffff;
  }

  .kt-card__list-text {
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
  }

  .kt_info_block {
    padding: 10px;
  }

  .kt-pro__title {
    margin-top: 20px;
  }
  .kt-pro {
    background-size: contain;
    background-repeat: no-repeat;
  }
  .kt-btn__center {
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 19px;
    padding: 15px 16px;
  }

  .tasks_inner {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .kt-task-card__bottom {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    align-content: stretch;
    padding-top: 24px;
  }

  .header-section {
    margin-bottom: 20px;
  }
  .kt-task-card__bottom {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    align-content: stretch;
    padding-top: 24px;
  }

  .font-h1 {
    font-style: normal;
    font-weight: 400;
    font-size: 30px;
    line-height: 43px;
  }

  .kt-check-main__title {
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    color: #ffffff;
    flex: none;
    order: 0;
    flex-grow: 0;
  }

  .kt-steps {
    max-width: 100%;
  }

  .kt-check-main {
    display: flex;
    flex-direction: column;
    /* остальное как было */
    flex: auto;
  }

  .kt-check-main__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px;

    width: 100%; /* ← растягиваем на всю ширину родителя */
    min-width: 0; /* ← разрешаем сжиматься */
  }

  .kt-team {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11.36px;
    width: 100%;
    margin-top: 57px;
    margin-bottom: 59px;
  }

  .kt-team__member {
    margin-top: 120px;
  }

  .kt-start__row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: stretch;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    align-content: stretch;
  }

  .kt_start_bottom_inner {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    align-content: stretch;
  }

  .kt-start__icon {
    width: 52px;
    height: 165px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .kt-start__icon img {
    max-width: 100%;
  }

  .kt-start__free {
    font-weight: 250;
    font-size: 40px;
    line-height: 48px;
    text-transform: uppercase;
    color: #ededed;
    margin-left: 0;
  }

  .kt-start__bottom {
    order: 2;
  }

  .kt-start__free {
    order: 1;
    font-size: 36px;
    margin-bottom: 20px;
  }

  .kt-start .kt-start__icon {
    display: none;
  }

  .learning_inner {
    padding-top: 100px;
  }

  .kt-certificate {
    flex-direction: row;
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: stretch;
    margin-left: auto;
    text-align: center;
  }

  .kt-pro__letter {
    padding: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    align-content: stretch;
    max-width: 100%;
  }

  .kt-pro__checklist {
    max-width: 100%;
  }

  .kt-pro {
    padding: 0;
  }

  .kt-form-section .kt-result__header h1 {
    font-style: normal;
    font-weight: 250;
    font-size: 32px;
    line-height: 50px;
  }

  .kt-badge-item {
    padding: 12px 16px;
    width: auto;
  }

  .kt-teachers-banner__text {
    font-style: normal;
    font-weight: 250;
    font-size: 30px;
    line-height: 38px;
  }

  .kt_form_inner {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .kt_left_block {
    position: relative;
    margin-left: -190px;
    margin-top: -10px;
  }

  .kt-year {
    font-style: normal;
    font-weight: 900;
    font-size: 50px;
    line-height: 60px;
    text-align: right;
  }
}