/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables */
:root {
    --primary-color: #F15C01;
    --secondary-color: #FDAA05;
    --text-color: #ffffff;
    --background-color: #000000;
}

/* Base styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
    color: var(--text-color);
}

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header styles */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: var(--background-color);
    z-index: 100;
    height: 80px;
}

.header__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Используйте space-between для равномерного распределения */
    position: relative;
}

.header__menu {
    flex: 1;
}

.menu__list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
    margin: 0;
    padding: 10px;
    list-style: none;
    flex-wrap: nowrap; /* Убедитесь, что элементы не переносятся на следующий ряд */
}

.menu__list li:nth-child(5) {
    margin: 0 30px;
}

.menu__list li:last-child {
    margin-right: 120px;
}

.menu__link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    outline: none;
}

.menu__link:hover {
    color: var(--primary-color);
}

.menu__close {
    display: none;
}
@media (max-width: 768px) {
    .menu__body.active .menu__close {
        display: block;
    }
}

.header__logo {
    display: flex;
    align-items: center;
    height: 32px;
}

.header__logo img {
    max-width: 100px;
    height: auto;
    object-fit: contain;
}

/* .header__right {
    position: absolute;
    right: 20px;
} */
.header__right {
    /* Уберите position: absolute; */
    margin-left: 20px; /* Добавьте отступ, если нужно */
}

.header__button {
    width: 103px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text-color);
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 8px;
    background-image:
        linear-gradient(var(--background-color), var(--background-color)),
        linear-gradient(to right, var(--primary-color), var(--secondary-color));
    background-origin: border-box;
    background-clip: content-box, border-box;
    transition: all 0.3s ease;
}

.header__button:hover {
    opacity: 0.8;
}

.menu__icon {
    display: none;
}


.hero {
    padding-top: 80px;
    padding-bottom: 30px;
    background-color: var(--background-color);
    position: relative;
    margin-bottom: 0;
    z-index: 2;
    margin-bottom: -5vh; 
}

.hero__container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    /* align-items: center;  */
    align-items: stretch;
    justify-content: space-between;
   
    min-height: 500px;
    gap: 30px; 
    padding: 0 20px;
}

.hero__content {
    flex: 1 1 50%;
    min-width: 0; /* <-- Наша защита от сжатия */
    display: flex;
    flex-direction: column;
    z-index: 2;
    position: relative;
}

.hero__title {
    font-family: 'Kanit', sans-serif;
    font-size: clamp(2rem, 0.775rem + 5.225vw, 6rem); /* 32px to 96px */
    font-weight: 700;
    line-height: 85%;
    margin-top: clamp(24px, 8vw, 80px);
    margin-bottom: 30px;
    width: 140%;
}

.hero__subtitle {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 24px;
    /* margin-bottom: clamp(2.5rem, -2.55rem + 20.94vw, 9.375rem);  */
    margin-bottom: clamp(32px, 6vw, 80px);
    opacity: 0.9;
    width: 140%;
   
    text-wrap: balance;
    hyphens: auto;
}

.hero__button {
    background: linear-gradient(45deg, #F15C01 0%, #FDAA05 100%);
    color: #000000;
    width: 394px;
    /* width: auto; */
    /* height: auto; */
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 600;
    font-family: 'Libre Franklin', sans-serif;
    cursor: pointer;
    transition: opacity 0.3s ease;
    text-decoration: none;
    /* Добавляем, так как это ссылка */
    display: inline-flex;
    /* Добавляем для правильного выравнивания текста */
    align-items: center;
    /* Центрируем текст по вертикали */
    justify-content: center;
    /* Центрируем текст по горизонтали */
    white-space: nowrap;
}

.hero__button:hover {
    opacity: 0.9;
}

.hero__image {
    flex: 1 1 50%;
   
}

.hero__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
     
}

.menu__icon {
    display: none;
}


/* Добавим общее правило для всех элементов */
* {
    box-sizing: border-box;
}

.about {
    position: relative;
    width: 100%;
    margin-top: -1px;
    min-height: 1011px;
    margin-bottom: 12px;
    background-image: url('../img/Pictures/горн.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}
.about::before {
    content: "";
    position: absolute;
    inset: 0; /* top: 0; right: 0; bottom: 0; left: 0; */
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    /* Можно просто background: rgba(0,0,0,0.5); для равномерного затемнения */
    z-index: 1;
    pointer-events: none; /* чтобы не мешал кликам */
  }
.about__container {
    max-width: 1440px;
    margin: 0 auto;
}

.about__content {
    position: relative;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 100%;
    max-width: 581px;
    height: auto;
    overflow: hidden;
    padding: 20px;
}

.about__text {
    display: block;
    width: 100%;
    height: auto;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 20px;
    line-height: 1.5;
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

.masterclass {
    background-color: #ffffff;
    padding: 50px 0 50px;
    margin-top: 12px;
    position: relative;
    z-index: 2;
}

.masterclass__container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
  
    
}

.masterclass__card {
    display: flex;
    width: 100%;
    gap: 40px;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
   
   
}

.masterclass__card:last-child {
    margin-bottom: 0;
    /* Убираем отступ у последней карточки */
}

.masterclass__card.expanded {
    align-items: stretch;
    margin-bottom: 30px;
}


.card__image {
    width: 50%;
    height: 386px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card__content {
    width: 50%;
    height: 386px;
    padding: 48px 67px;
    display: flex;
    flex-direction: column;
    background-color: #F15C01;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    
}

.card__content-wrapper {
    width: 385px;
    height: auto;
    min-height: 289px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

.masterclass__card:nth-child(2) .card__content {
    background-color: #CD9764;
}

.masterclass__card:nth-child(3) .card__content {
    background-color: #D9722B;
}

.masterclass__card:nth-child(4) .card__content {
    background-color: #C77368;
}

.card__title {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    margin: 0;
    line-height: 115%;
}

.card__description {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 16px;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Ограничение в 2 строки */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.card__details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 16px;
    color: #000000;
    margin-bottom: 6px;
}

.card__details p {
    margin: 0;
}

.card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.card__price {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    margin: 0;
}

.card__footer a {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 16px;
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
}

.card__footer a:hover {
    opacity: 0.8;
}

.card__arrow {
    width: 385px;
    height: 2px;
    background-color: #000000;
    position: relative;
    margin: 6px 0;
}

.long-arrow {
    height: 1px;
}

.card__arrow::after {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-left: 8px solid #000000;
    border-bottom: 6px solid transparent;

}

.card__full-description {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 14px;
    color: #000000;
    margin: 6px 0;
    line-height: 120%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

.card__full-description.expanded {
    -webkit-line-clamp: unset;
    display: block;
    height: auto;
    max-height: none;
}


.card__link {
    color: var(--text-color);
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
    font-size: 12px;
}

.card__link:hover {
    opacity: 0.8;
}


.master {
    background-color: #ffffff;
    padding: 50px 0;
}

.master__container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 121px;
    /* Отступ между текстом и картинкой */
    padding-bottom: 40px;
}

.master__content {
    width: 45%;
    height: 457px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* Отступ между эементами */
}

.master__title {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #000000;
}

.master__text {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #000000;
}

.master__arrow {
    width: 393px;
    height: 1px;
    background-color: #000000;
    position: relative;
    margin: 6px 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Добавляем выравнивание по правому краю */
}

.master__arrow::after {
    content: '';
    position: relative;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-left: 8px solid #000000;
    border-bottom: 6px solid transparent;
    margin-right: -4px;
    /* Добавляем небольшой отступ справа */
}

.master__title+.master__arrow {
    height: 2px;
}

.master__subtitle {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #000000;
}

.master__image {
    width: 571px;
    height: 697px;
}

.master__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    /* Добавляем скругление углов как у карточек */
}

.gallery {
    width: 100%;
    background-color: #ffffff;
    margin-top: 30px;
}

.gallery__container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    gap: 40px; /* увеличь gap для воздуха */
    padding: 0 20px;
}

.gallery__main {
    width: 50%; /* или flex: 2 1 0; */
    min-width: 500px;
    height: 700px; /* подбери по макету */
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.gallery__main::before {
    content: '';
    position: absolute;
    width: 40%;         /* ширина эллипса — 40% от ширины блока */
    height: 40%;        /* высота эллипса — 40% от высоты блока */
    left: 10%;          /* сдвиг от левого края */
    top: 15%;           /* сдвиг от верхнего края */
    background: #165AC9;
    border-radius: 50%;
    filter: blur(60px); /* можно уменьшить для мобильных */
    opacity: 0.7;       /* чуть прозрачнее для мягкости */
    z-index: 1;
}

.gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.gallery__text {

    position: absolute;
    top: 20%; /* или другое подходящее значение */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;/* или max-width: 80%; */
    min-width: 200px; 
    margin: 0;
    padding: 10px 10px 0 10px;
    z-index: 2;
    text-align: left;
    box-sizing: border-box;
}

.gallery__text p {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-color);
    margin: 0;
}

.gallery__side {
    flex: 1 1 0;

    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery__image {
    /* width: 510px;
    height: 376px;
    overflow: hidden;
    border-radius: 12px; */
    width: 100%;
    height: 220px; /* подбери по макету */
    border-radius: 12px;
    overflow: hidden;
}

.gallery__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}


.contact {
    background-color: #1D3494;
    position: relative;
    width: 100%;
    min-height: 875px;
    margin-top: 100px;
    overflow: visible;
    margin-bottom: 0;
    padding-bottom: 0;
    
}

.contact__bg-image {
    position: absolute;
    left: 0;
    top: 0;
    width: 40vw;
    height: 100%;
    max-height: 640px;
    background-image: url('../img/Pictures/подвал.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;

}

/* === Контактная форма: современная адаптивная структура === */
.contact__container {
  display: flex;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 0;
  position: relative;
}

.contact__form-wrapper {
  display: flex;
  gap: 24px;
  max-width: 650px;
  width: 100%;
  background: #D9D9D9;
  border-radius: 16px;
  padding: 32px;
  flex: 1 1 0;
  min-width: 320px;
  box-sizing: border-box;
}

.contact__media-container {
  width: 168px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact__fields-container {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 16px;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.contact__info {  
    min-width: 320px;
    max-width: 420px;
    height: auto;
    padding: 0 20px;
    position: absolute;
    right: 24px;
    top: -70px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}



.contact__blue-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 21px;
    height: 100%;
    /* Высота как у формы */
    background-color: #1D3494;
    z-index: 2;
    border-top-left-radius: 16px;
    /* Скругление как у формы */
    border-bottom-left-radius: 16px;
}

.contact__image-text {
    width: 168px;
    height: 115px;
    display: block;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 14px;
    color: #000000;
    line-height: auto;
}

.contact__small-image {
    width: 158px;
    height: 237px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    /* Отступ между картинкой и текстом */
}

.contact__description {
    font-size: 14px;
    color: #000000;        
}

/* Контейнер для полей формы */
.contact__fields-container {
    max-width: 100%;
    margin: 0 auto;
    padding-left: 40px; /* Добавляем отступ слева, чтобы сдвинуть контент вправо */
}

.contact__form-title {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 20px;
    font-weight: 600;
    /* Добавляем semi-bold */
    color: #000000;
    margin-bottom: 30px;
    line-height: 1.3;
}

.contact__input,
.contact__textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    color: #000000;
}

.contact__input::placeholder,
.contact__textarea::placeholder {
    color: #666666;
}

.contact__input:focus,
.contact__textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    color: #000000;
}

.contact__textarea {
    height: 120px;
    /* Высота текстовой области */
    resize: none;
    /* Запрещаем изменение размера */
    border: 1px solid #161616;
    /* Стандартная рамка */
    border-radius: 8px;
    /* Скругление углов */

}

.contact__textarea:focus {
    border: 1px solid var(--primary-color);
    /* Изменяем цвет рамки при фокусе */
}

/* Нижняя линия для полей ввода */
.contact__input {
    border-bottom: 1px solid #161616;
    /* Нижняя линия для поля ввода */
}

.contact__input:focus {
    border-bottom: 2px solid var(--secondary-color);
    /* Изменяем цвет нижней линии при фокусе */
}

.contact__button {
    background: linear-gradient(45deg, #F15C01 0%, #FDAA05 100%);
    color: #000000;
    /* Меняем цвет текста на черный */
    width: 100%;
    height: 69px;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 600;
    /* Добвляем semi-bold */
    font-family: 'Libre Franklin', sans-serif;
    cursor: pointer;
    transition: opacity 0.3s;
}

.contact__button:hover {
    opacity: 0.9;
    /* Меняем эффект при наведении */
}

.contact__checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-family: 'Libre Franklin', sans-serif;
}

.contact__logo {
    width: 336px;
    /* margin-bottom: 20px; */
}

.contact__text {
    width: auto;
    max-width: 100%;
    margin-bottom: 40px;
}

.contact__details {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 30px;
}

.contact__column-left,
.contact__column-right,
.contact__phone-group,
.contact__location-group {
    display: flex;
    flex-direction: column;
    /* Вертикальное расположение */
}

/* Группируем телефон и локацию */
.contact__phone,
.contact__location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFFFFF;
    font-size: 18px;
    line-height: 1.5;
    white-space: nowrap;
}

/* Группируем регион и адрес */
.contact__region,
.contact__address {
    color: #CB8604;
    font-size: 14px;
    margin-top: 4px;
    margin-left: 32px;
    white-space: nowrap;
    /* Зпрещем перенос */
}

.contact__social {
    display: flex;
    gap: 17px;
    margin: 20px 0;
    /* Убираем отрицательный margin-left */
    justify-content: flex-start;
    /* Выравниваем по левому краю */
    width: auto;
    /* Убраем 100% ширину */

}

.social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: opacity 0.3s ease;
}

.social__link:hover {
    opacity: 0.8;
}

.icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    vertical-align: middle;
    flex-shrink: 0;
    /* Предотвращаем сжатие иконки */

}

.icon-phone {
    background: url('../img/icons/phone.svg') no-repeat center;
    background-size: contain;
}

.icon-location {
    background: url('../img/icons/location.svg') no-repeat center;
    background-size: contain;
}

.footer {
    background: #1D3494;
    width: 100%;
    max-width: none;
    margin: 0;
    margin-top: 0;
    padding: 0 0 20px 0;
    padding-left: 0;
    padding-right: 0;
    left: unset;
    transform: none;
  }

.footer__container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer__list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 48px;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.footer__link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.footer__link:hover {
    color: #fff;
}

.footer__copyright {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
}

@media (max-width: 600px) {
    .footer__list {
        flex-direction: column;
        gap: 16px;
    }
    .contact__form {
        gap: 6px;
      }
}



/* Media queries */
@media (max-width: 991px) {
    .hero__title {
        width: 120%;
    }

    .hero__subtitle {
        font-size: 20px;
    }
    
}

@media (max-width: 768px) {
    .menu__icon {
        display: block;
        width: 30px;
        height: 18px;
        position: relative;
        cursor: pointer;
        z-index: 5;
    }

    .menu__icon span,
    .menu__icon::before,
    .menu__icon::after {
        position: absolute;
        left: 0;
        height: 2px;
        width: 100%;
        background-color: var(--text-color);
        transition: all 0.3s ease;
    }

    .menu__icon::before {
        content: "";
        top: 0;
    }

    .menu__icon::after {
        content: "";
        bottom: 0;
    }

    .menu__icon span {
        top: 50%;
        transform: translateY(-50%);
    }

    .header__container {
        justify-content: space-between;
        padding: 0 20px;
    }

    .menu__icon {
        order: 3;
        margin-left: auto;
        position: absolute;
        right: 20px;
    }

    .header__right {
        position: static;
        order: 1;
    }

    .header__menu {
        order: 3;
    }

    .menu__list {
        gap: 20px;
    }

    .menu__link {
        text-align: center;
        /* Центрируем текст внутри ссылки */
    }

    .header__logo {
        display: none;
    }
}

@media (max-width: 1024px) {
    .hero__container {
        min-height: 0;
        margin: 0 auto;
        padding: 0 20px;
    }
   

    .hero__title {
        width: 140%;
        margin-top: clamp(20px, 10vw, 60px);
       
    }

    .hero__subtitle {
        font-size: 20px;
        margin-bottom: clamp(28px, 8vw, 60px);
    }

    .hero__button {
        padding: 15px 30px;
        /* max-width: 340px; */
       
        font-size: 16px;
    }

    .hero__image {
        width: 50%;
       height: auto;
          
    }
    .hero__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .menu__list {
        gap: 30px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 60px;
    }
   
    .hero__image {
       
        width: 100%;
   
    }
    .hero__image img {
        display: block;
      }
    .hero__button {
        width: auto;      
        font-size: 16px;
        padding: 12px 15px;
        white-space: nowrap;
    }
    .hero__container {
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    .hero__content {
        
        height: auto;
        min-height: 300px;
        justify-content: flex-end;
    }
    .hero__subtitle {
        
        margin-bottom: clamp(24px, 10vw, 45px); 
        text-wrap: balance;
        hyphens: auto;
    }
    .hero__title {
        
        margin-top: clamp(12px, 8vw, 40px);
       
    }
}
@media (max-width: 700px) {
    .hero__container {
        position: relative;
        display: block; /* или flex-direction: column, если нужно */
      }
    .hero__content {
        position: relative;
        z-index: 2;
        width: 100%;
        display: flex;
        padding: 0 16px; /* подбери под свой макет */
        box-sizing: border-box;
        color: #fff; /* если нужен белый текст */
        /* можно добавить фон с прозрачностью, если текст плохо читается */
        /* background: rgba(0,0,0,0.5); */
      }
    .hero__title {
        font-size: 36px;
        margin-top: clamp(12px, 6vw, 32px);
        text-align: left;
      }
      .hero__subtitle {
        width: 140%;   
        text-align: left;
        font-size: 17px;
        margin-bottom: clamp(20px, 8vw, 36px);
    }
    .hero__button {
        width: auto;
       
        margin-left: 0;
        margin-right: auto;
        /* или просто margin: 0; */
        box-sizing: border-box;
      }
      .hero__image {
        position: absolute;
        top: 0;
        right: 0;
        width: 50%;
        height: auto;
        z-index: 1;
        pointer-events: none;
      }
      .hero__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
      }
     
  }


@media (max-width: 480px) {
    .hero {
        padding-bottom: 0;
    }
    .hero__title {
        font-size: 32px;
        margin-top: clamp(8px, 6vw, 24px);
    }

    .hero__subtitle {
        font-size: 15px;
        margin-bottom: clamp(18px, 8vw, 32px);
        width: 100%;
    }

    .hero__content {
        padding-top: 40px;
       
    }
    .hero__button  {
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
      }
      .hero__button:hover {
        opacity: 100%;
      }
    .hero__image {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 80%;   
        max-width: 300px;      
        z-index: 1;
       
    }
    .hero__image img {
        padding-top: 10px;
    }
}

@media (max-width: 320px) {
    .hero {
        padding-top: 60px;
    }
    .hero__content {
        padding-left: 8px;
        padding-right: 8px;
        box-sizing: border-box;
      }
    .hero__image {
        top: 0; /* прижимаем картинку ровно под header */
        transform: none; /* сбрасываем transform */
      }
      .hero__title {
        width: 100%;
        max-width: 100%;
        text-align: left; 
        word-break: break-word;
        hyphens: auto;
      }
    }

@media (max-width: 1024px) {
    .about {
        min-height: 800px;
        /* Уменьшаем минимальную высоту */
        padding: 40px 0;
        /* Добавляем отступы сверху и снизу */
    }
    
}

@media (max-width: 768px) {
    .about {
        min-height: 800px;
        margin-bottom: 12px;
        /* Увеличиваем отступ между секциями */
    }

    .about__content {
        padding: 60px 20px;

    }

    .about__text {
        font-size: 18px;
    }  
}

@media (max-width: 480px) {
    .about {
        height: auto;       
        padding: 0;
        min-height: 400px;
        /* Установливаем минимальную высоту для еще меньших экранов */
        margin-top: 0;
        background-position: center 80%;
    }
   
    .about__content {
        position: absolute;
        /* Изменяем на relative, чтобы избежать наложения */
        top: 0;
        /* Установливаем top на 0, чтобы контент не смещался */
        right: 0;
        /* Установливаем right на 0, чтобы контент не смещался */
        width: 100%;
        /* Установливаем ширину на 100% для адаптивности */
        height: auto;
        /* Установливаем высоту на auto, чтобы контент подстраивался */
        padding: 20px;
        /* Добавляем отступы, если необходимо */
    }

    .about__text {
        font-size: 14px;
        /* Уменьшаем размер шрифта для меньшего экрана */
        padding-top: 100px;
    }
}

@media (max-width: 1200px) {
    .masterclass__card {
        width: 100%;
        flex-direction: column;
        gap: 20px;
    }

    .card__image,
    .card__content {
        width: 100%;
        max-width: 800px;
        /* Ограничиваем максимальную ширину */
    }

    .card__content-wrapper {
        width: 100%;
        /* Контент занимает всю ширину */
        padding: 0 20px;
    }

    .card__arrow.long-arrow {
        width: 100%;
        /* Стрелки тоже на всю ширину */
    }
}

@media (max-width: 768px) {
    .masterclass__container {
        padding: 20px 15px;
    }

    .masterclass__card {
        flex-direction: column;
        width: 100%;
    }

    .card__image {
        width: 100%;
        height: 200px;
    }

    .card__content {
        width: 100%;
        height: auto;
        padding: 50px 50px;
    }

    .card__content-wrapper {
        /* width: 100%; */
        /* На всю ширину */
        max-width: 100%;
        /* Ограничиваем максимальную ширину */
        padding: 0;
    }

    .card__arrow,
    .card__arrow.long-arrow {
        width: 100%;
        /* Стрелки на всю ширину контейнера */
        max-width: 100%;
    }

    .card__title {
        font-size: 16px;
        width: 100%;
    }

    .card__full-description {
        font-size: 14px;
        width: 100%;
    }

    .card__details {
        font-size: 14px;
        width: 100%;
    }

    .card__price {
        font-size: 16px;
    }

    .card__footer {
        width: 100%;
    }

    .card__footer a {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .card__content {
        padding: 40px 40px;
    }

    .card__image {
        height: 180px;
    }

    /* .card__content-wrapper {
        width: 100%;
    } */

    .card__title {
        font-size: 14px;
    }

    .card__full-description,
    .card__details,
    .card__footer a {
        font-size: 12px;
    }
}

@media (max-width: 1024px) {
    .master__container {
        gap: 50px;
        padding: 0 20px;
        align-items: center;
        /* Центрируем по вертикали */
    }

    .master__content {
        width: 100%;
        max-width: 500px;
        display: flex;
        /* Добавляем flex для контента */
        flex-direction: column;
        justify-content: center;
        /* Центрируем содержимое */
    }

    .master__image {
        display: flex;
        /* Добавляем flex для изображения */
        align-items: center;
        justify-content: center;
    }

    .master__arrow {
        width: 100%;
        max-width: 393px;
    }

    .master__title {
        font-size: 28px;
    }

    .master__subtitle {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .master {
        padding: 30px 0;
    }

    .masterclass {
        padding: 0 0 30px;
    }

    .master__container {
        flex-direction: column;
        gap: 30px;

        justify-content: center;
        /* Добавляем центрирование по горизонтали */
    }

    .master__content {
        text-align: left;
        padding: 0 15px;
        width: 100%;
        height: auto;
        order: 1;
        display: flex;
        /* Добавляем flex */
        flex-direction: column;
        align-items: center;
        /* Центрируем содержимое */
    }

    .master__image {
        width: 100%;
        height: auto;
        max-width: 400px;
        margin: 0 auto;
        order: 2;
        display: flex;
        /* Добавляем flex */
        align-items: center;
        justify-content: center;
    }
}

.master__image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    /* Меняем на contain */
}

.master__arrow {
    width: 100%;
    /* Стрелки на всю ширину */
    max-width: 100%;
}

@media (max-width: 480px) {
    .master {
        padding: 30px 0;
    }

    .master__container {
        padding: 0 15px;
        gap: 20px;
    }

    .master__content {
        padding: 0;
        margin-top: 20px;
    }

    .master__image {
        width: 100%;
        height: 250px;
        /* Фиксированная высота для картинки */
        max-width: 100%;
    }

    .master__image img {
        width: 100%;
        height: 100%;

    }

    .master__title {
        font-size: 20px;
    }

    .master__subtitle {
        font-size: 16px;
    }

    .master__text {
        font-size: 14px;
    }

    .master__arrow {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .gallery__container {
        width: 100%;
        height: auto;
        padding: 0 20px;
    }

    .gallery__main {
        width: 50%;
        height: auto;
    }

    .gallery__side {
        width: 50%;
    }

    .gallery__text {
        /* width: 60%;
        height: auto;
        margin: 140px 50px; */
        width: 90%;      
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        font-size: 18px;
        padding: 10px;
      
    }

    .gallery__text p {
        font-size: 18px;
    }

    .gallery__image {
        width: 100%;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .gallery__container {
        flex-direction: column;
        padding: 0 15px;
        gap: 20px;
    }

    .gallery__main {
        width: 100%;
        height: 500px;
    }

    .gallery__text {
        width: 98%;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        font-size: 16px;
        padding: 16px 24px;
    }

    .gallery__text p {
        font-size: 16px;
    }

    .gallery__side {
        width: 100%;
    }

    .gallery__image {
        width: 100%;
        height: 250px;
    }
    .gallery__main::before {
        width: 60%;
        height: 30%;
        left: 20%;
        top: 10%;
        filter: blur(40px);
        opacity: 0.8;
      }
}
@media (max-width: 600px) {
    .gallery__text {
        width: 95%;
        padding: 8px 4px;
        font-size: 15px;
    }
    .gallery__text p {
      font-size: 14px;
      padding: 0 4px;
    }
  }
  
@media (max-width: 480px) {
    .gallery__main {
        min-width: 0;
        width: 100%;
    }

    .gallery__text {   
        width: 96%;
        left: 50%;
        top: 10%;
        transform: translateX(-50%);
        padding: 8px 2vw;
        box-sizing: border-box;
        word-break: break-word;
        overflow-wrap: break-word;
        font-size: 14px;
        margin: 0;
    }

    .gallery__text p {
        font-size: 14px;
        padding: 20px;
    }

    .gallery__image {
        height: 200px;
    }
    .gallery__main::before {
        width: 80%;
        height: 25%;
        left: 10%;
        top: 8%;
        filter: blur(30px);
        opacity: 0.85;
      }
}
@media (max-width: 400px) {
    .gallery__text {
      
      top: 10%;
      font-size: 14px;
      
    }
    .gallery__text p {
      font-size: 13px;
      padding: 0 2px;
    }
  }
@media (max-width: 1024px) {
    .contact {
        min-height: 600px; /* Настраиваем минимальную высоту, если необходимо */
        padding-bottom: 50px;
    }

    .contact__bg-image {
        width: 100%; /* Позволяем изображению занимать полную ширину */
        height: 100%; /* Высота автоматически подстраивается */
        /* max-width: 528px; */
    }

    .contact__container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
       
    }

    .contact__content {
        width: 100%;
        padding: 40px 20px;
    }

    .contact__form-wrapper {
        width: 100%;
        margin: 0 auto;
        padding: 30px;
        height: auto;
        gap: 40px;
        justify-content: center;

    }

    .contact__media-container {
        width: 100%;
        max-width: 168px;
        height: auto;
      
    }

    .contact__fields-container {
        width: 100%;
        /* max-width: 394px; */
        height: auto;
    }

    .contact__image-text {
        width: 100%;
        max-width: 168px;
        height: auto;
    }

    .contact__small-image {
        width: 100%;
        max-width: 158px;
        height: auto;
    }

    .contact__blue-line {
        height: 100%;
    }

    .contact__info {
        position: relative;
        right: 0;
        padding: 30px 20px;
        margin: 40px auto 0 auto;
        max-width: 500px;   /* Ограничиваем ширину */
        width: 100%;
        text-align: center; /* Центрируем текст */
        box-sizing: border-box;
        
      }
      .contact__details {
        align-items: center; /* Центрируем иконки и текст */
        text-align: left;    /* Если нужно выровнять текст иконок по левому краю */
        gap: 18px;
        margin-bottom: 30px;
      }
      .contact__logo {
        display: block;
        margin: 0 auto 20px auto; /* по центру и отступ снизу */
        max-width: 200px;         /* или другое подходящее значение */
        height: auto;
      }

   
   
}
/* Стили для экранов 1024px */
@media (max-width: 1024px) {
    .footer {
        max-width: 100%;
        padding: 0 20px;
    }

    .footer__container {
        width: 100%;
        display: flex;
        align-items: center;
        padding: 0 20px;
    }

    .footer__list {
        display: flex;
        align-items: center;
        gap: 24px;
        text-align: center;
        margin-top: 0; /* Убираем верхний отступ у списка */
        margin-bottom: 30px;
    }
    .footer__link:hover {
        color: #FFFFFF;
    }
    .footer__list,
    .footer__developer,
    .footer__copyright {
      font-size: 15px;
    }
    .footer__copyright {
        text-align: center;
        margin-top: 20px;
    }
}
@media (max-width: 900px) {
    .footer__list {
      font-size: 13px;
      gap: 12px;
      flex-wrap: wrap;
      justify-content: center;
    }
  }
  
  @media (max-width: 600px) {
    .footer__list {
      font-size: 12px;
      gap: 8px;
      flex-direction: column;
      align-items: center;
    }
  }

@media (max-width: 768px) {
    .contact {
       
        height: auto; /* Убедитесь, что высота адаптируется к содержимому */
    }

    .contact__content {
        padding: 30px 15px;    
    }

    .contact__form-wrapper {
        flex-direction: column;
        padding: 20px;
        gap: 30px;
    }

    .contact__form-title {
        text-align: center;
    }

    .contact__media-container {
        flex-direction: row;
        /* Устанавливаем направление на строку */
        text-align: left;
        justify-content: center;
    }

    .contact__fields-container {
        max-width: 100%;
        padding: 0 20px;
        width: 100%;
    }

    /* Центрируем элементы внутри формы */
    .contact__form {
        width: 100%;
        max-width: auto;
        margin: 0 auto;
    }

    .contact__form-title {
        text-align: center;
        width: 100%;
    }

    /* Делаем поля ввода на всю ширину контейнера */
    .contact__input,
    .contact__textarea {
        width: 100%;
    }

    /* Центрируем чекбокс и кнопку */
    .contact__checkbox {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .contact__button {
        margin: 0 auto;
    }

    .contact__image-text {
        margin-left: 20px;
        /* Добавим отступ между изображением и текстом */
        flex: 1;
    }

    .contact__small-image {
        max-width: 100%;
        /* Убедимся, что изображение адаптивно */
        height: auto;
        /* Сохраняем пропорции изображения */
        flex-shrink: 0;
        /* Запретить уменьшение изображения */
        margin-bottom: 0;
    }

    .contact__description {
        text-align: center;
        max-width: 280px;
        margin: 0 auto;
        text-align: left;
    }

    .contact__info {
        width: 100%;
        margin-left: auto;
        margin-top: 50px;
    }

    .contact__text {
        width: 100%;
        text-align: center;
    }

    .contact__details {
        flex-direction: column;
        /* Устанавливаем направление на колонку */
        align-items: center;
        /* Центрируем элементы по горизонтали */
        gap: 20px;
        margin-top: 70px;
    }

    .contact__social {
        justify-content: center;
        margin-top: 30px;
        /* Отступ сверху для социальных ссылок */
        margin-left: 0;
    }

    .contact__blue-line {
        display: none;
    }

    .contact__logo {
        width: 236px;
        display: block;
        margin: 0 auto 20px auto;
    }

    .footer {
        width: 100%;
        /* margin-left: 0;
        margin-top: 50px;
        margin-bottom: 50px; */
    }

    .footer__container {
        margin-right: 0;
    }

    .footer__list {
        flex-direction: row;
        /* Явно указываем строчное расположение */
        flex-wrap: wrap;
        /* Разрешаем перенос на мобильных */
        white-space: normal;
        /* Разрешаем перенос текста на мобильных */
    }
    
}


@media (max-width: 480px) {
    
    .contact__content {
        padding: 20px 10px;
    }

    .contact__form-wrapper {
        padding: 15px;
        gap: 20px;
    }

    .contact__form-title {
        font-size: 16px;
        text-align: center;
        margin-bottom: 20px;
    }

    .contact__media-container {
        flex-direction: column;
        /* Устанавливаем направление на колонку */
        text-align: center;
        /* Центрируем текст */
        padding: 0; /* Убираем паддинг */
    }

    .contact__image-text {
        margin-left: 0;
        /* Убираем отступ для текстового блока */
        text-align: center;
        /* Центрируем текст */
        padding-top: 10px;
    }

    .contact__blue-line {
        display: none;
    }

    .contact__small-image {
        max-width: 100%;
        /* Установите максимальную ширину для изображения */
        height: auto;
        /* Сохраняем пропорции изображения */
    }

    .contact__description {
        font-size: 12px;
        max-width: 180px;
        text-align: center;
    }

    .contact__fields-container {
        padding: 0 10px;
    }

    .contact__input,
    .contact__textarea {
        font-size: 14px;
    }

    .contact__button {
        font-size: 16px;
        padding: 10px 20px;
    }


    .contact__logo {
        padding: 10px;
    }

    .contact__text {
        font-size: 16px;
        padding: 10px;
        text-align: center;
        margin-right: 0;
    }

    .contact__details {
        align-items: center;
        /* Центрируем элементы по горизонтали */
        padding: 10px;
    }

    .contact__region,
    .contact__address {
        font-size: 12px;
    }

    .contact__social {
        margin-left: 0;
        /* Убираем смещение */
        text-align: center;
        /* Центрируем текст внутри */
    }

    .footer__container {
        margin-right: 0;
    }

}
@media (max-width: 320px) {
    .hero__button {
        font-size: 14px;
        width: 100%;
        height: auto;
    }
}
/* Стили для контейнера регистрации */
.registration__container {
    max-width: 400px;
    /* Максимальная ширина контейнера */
    margin: 0 auto;
    /* Центрируем контейнер по горизонтали */
    padding: 20px;
    /* Отступы внутри контейнера */
    border: 1px solid #ccc;
    /* Рамка вокруг контейнера */
    border-radius: 8px;
    /* Закругленные углы */
    background-color: #f9f9f9;
    /* Цвет фона */
}

/* Стили для заголовка */
.registration__title {
    text-align: center;
    /* Центрируем заголовок */
    margin-bottom: 20px;
    color: #131313;
}

/* Стили для формы */
.registration__form {
    display: flex;
    flex-direction: column;
    /* Располагаем элементы в столбец */
}

/* Стили для полей ввода */
.registration__input {
    margin-bottom: 15px;
    /* Отступ снизу для каждого поля */
    padding: 10px;
    /* Внутренние отступы */
    border: 1px solid #ccc;
    /* Рамка вокруг полей */
    border-radius: 8px;
    /* Закругленные углы */
    font-size: 16px;
    /* Размер шрифта */

}

.registration__input:focus {
    outline: none;
    /* Убираем стандартный контур */
    border-bottom: 2px solid var(--secondary-color);
    /* Цвет нижней границы при фокусе */
}

/* Стили для кнопки */
.registration__button {
    padding: 10px;
    /* Внутренние отступы */
    background: linear-gradient(45deg, #F15C01 0%, #FDAA05 100%);
    /* Градиент фона */
    color: rgb(0, 0, 0);
    /* Цвет текста */
    border: none;
    /* Убираем рамку */
    border-radius: 8px;
    /* Закругленые углы */
    cursor: pointer;
    /* Указатель при наведении */
    font-size: 16px;
    /* Размер шрифта */
    transition: background 0.3s;
    /* Плавный переход для изменения фона */
}

/* Стили для кнопки при наведении */
.registration__button:hover {
    background: linear-gradient(45deg, #FDAA05 0%, #F15C01 100%);
    /* Изменение градиента при наведении */
}

.back-button,
.back-link {
    display: inline-block;
    /* Делаем элемент блочным для отступов */
    margin-top: 20px;
    /* Отступ сверху */
    padding: 10px 15px;
    /* Внутренние отступы */
    background-color: #C77368;
    /* Цвет фона */
    color: rgb(0, 0, 0);
    /* Цвет текста */
    text-decoration: none;
    /* Убираем подчеркивание */
    border-radius: 8px;
    /* Закругленные углы */
    cursor: pointer;
    /* Указатель при наведении */
    text-align: center;
    /* Центрируем текст */
    width: 100%;
    /* Задаем ширину кнопки */
}

.back-button:hover,
.back-link:hover {
    background-color: #0056b3;
    /* Темнее при наведении */
}

.contact__info {
    /* width: 367px; */
    height: auto;
    padding: 0 20px;
    position: absolute;
    right: 68px;
    top: -70px;
    z-index: 3;
    display: flex;
    flex-direction: column;
}

/* Добавляем медиа-запрос для промежуточного разрешения */
@media (max-width: 1200px) {
    .contact__info {
        position: relative;
        width: 100%;
        /* max-width: 367px; */
        right: auto;
        top: 0;
        margin: 0 auto;
        padding: 20px;
       
    }

    .contact__form-wrapper {
        margin: 50px auto 0;
        /* Добавляем отступ сверху для формы */
    }
}





@media (max-width: 992px) {
    .contact__info {
        width: 100%;
        /* max-width: 367px; */
        right: auto;
        top: 0;
        margin: 0 auto;
        padding: 20px;
    }

    .contact__form-wrapper {
        margin: 50px auto 0;
        /* Добавляем отступ сверху для формы */
    }
    /* Стили для планшетов в альбомной ориентации */
}

@media (max-width: 768px) {
    /* Стили для планшетов в портретной ориентации */
}

@media (max-width: 576px) {
    .contact__info {
        width: 100%;
        max-width: 100%;
        right: auto;
        top: 0;
        margin: 0 auto;
        padding: 20px;
    }

    .contact__form-wrapper {
        margin: 50px auto 0;
        width: 100%;
        max-width: 100%;
        padding: 20px;
    }
    /* Стили для мобильных устройств */
}

/* Возвращаем стили для формы */
.contact__form-wrapper {
    background: #D9D9D9;
    border-radius: 16px;
    padding: 30px;
    width: 695px;
    height: auto;
    margin-left: 50px;
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    justify-content: center;
}

/* Добавляем медиа-запрос для адаптации формы */
@media (max-width: 1200px) {
    .contact__form-wrapper {
        width: 100%;       
        margin: 50px auto 0;
        padding: 20px; 
       
    }
}




@media (min-width: 1600px) {
  .footer {
    max-width: 1850px;
  }
}

/* Стили для экранов 1440px и больше */
@media (min-width: 1440px) {
    .footer {
        width: 100%;
    }

    .footer__container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer__list {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 43px;
    }
}



/* Убираем outline для всех ссылок */
a {
    outline: none;
}

/* Убираем outline для меню */
.menu__link {
    outline: none;
}

/* Для сохранения доступности добавим другой стиль при фокусе */
.menu__link:focus-visible {
    outline: none;
    text-decoration: underline;
    /* или */
    color: var(--primary-color);
}

@media (max-width: 1024px) {

    /* Если нужно будет скорректировать отступы формы */
    .contact__form-wrapper {
        padding: 30px;
        gap: 40px; /* Можно уменьшить gap между элементами если нужно */
    }
}

@media (max-width: 768px) {
    .contact__fields-container {
        max-width: 100%;
        padding: 0 20px;
        width: 100%;
    }

    .contact__form {
        width: 100%;
    }

    .contact__input,
    .contact__textarea {
        width: 100%;
        box-sizing: border-box;
    }

    .contact__form-wrapper {
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
    }
    
}

.document-wrapper {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: #ffffff;
    color: #000000;
}

.document-wrapper h1 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #000000;
}

.document-wrapper h2 {
    font-size: 20px;
    margin: 25px 0 15px;
    color: #000000;
}

.document-content {
    line-height: 1.6;
    margin-bottom: 30px;
}

.document-content p {
    margin-bottom: 15px;
    color: #333333;
}

.back-button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(45deg, #F15C01 0%, #FDAA05 100%);
    color: #000000;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 30px;
}

.back-button:hover {
    opacity: 0.9;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    .document-wrapper {
        padding: 15px;
        margin: 20px auto;
    }

    .document-wrapper h1 {
        font-size: 20px;
    }

    .document-wrapper h2 {
        font-size: 18px;
    }
}

.contact__button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.contact__button:hover {
    opacity: 0.9;
}

.contact__input:invalid,
.contact__textarea:invalid {
    border-color: #F15C01;
}

.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #F15C01 0%, #FDAA05 100%);
    padding: 20px;
}

.success-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.success-logo {
    max-width: 150px;
    margin-bottom: 30px;
}

.success-content h1 {
    color: #333;
    margin-bottom: 20px;
}

.success-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.success-details {
    font-size: 14px;
    color: #888;
    margin: 20px 0;
}

.back-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, #F15C01 0%, #FDAA05 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 20px;
    transition: opacity 0.3s;
}

.back-button:hover {
    opacity: 0.9;
}

@media (max-width: 480px) {
    .success-content {
        padding: 30px 20px;
    }
    
    .success-content h1 {
        font-size: 24px;
    }
}

/* Стили для кнопки во время загрузки */
.contact__button.loading {
    background: linear-gradient(45deg, #F15C01 0%, #FDAA05 100%);
    opacity: 0.8;
    position: relative;
    color: #000000;
}

/* Анимация спиннера */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0,0,0,0.3);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 0.8s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Стили для успешной отправки */
.contact__button.success {
    background: linear-gradient(45deg, #28a745 0%, #34ce57 100%);
    color: #000000;
}

/* Стили для индикатора загрузки */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #F15C01;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Обновленные стили для хедера */
@media (max-width: 1024px) {
    .menu__list {
        gap: 30px; /* Уменьшаем отступы между пунктами меню */
    }

    .menu__list li:last-child {
        margin-right: 60px; /* Уменьшаем отступ справа */
    }
}

@media (max-width: 938px) {
    .header__container {
        justify-content: space-between; /* Меняем выравнивание */
    }

    .menu__list {
        gap: 20px; /* Еще уменьшаем отступы */
    }

    .menu__list li:last-child {
        margin-right: 30px;
    }

    .menu__link {
        font-size: 14px; /* Уменьшаем размер шрифта */
    }

    .header__button {
        width: 90px; /* Уменьшаем ширину кнопки */
        font-size: 14px;
    }
   
}
@media (max-width: 950px) {
    .menu__list {
        gap: 30px; /* Уменьшаем отступы между пунктами меню */
    }

    .menu__list li:last-child {
        margin-right: 60px; /* Уменьшаем отступ справа */
    }
   
}

@media (max-width: 768px) {
    .header {
        height: 60px; /* Уменьшаем высоту хедера */
    }

    .menu__body {
        position: fixed; 
        width: 65%; /* Ширина меню 65% */
        height: 100%;
        top: 60px;
        left: -100%;
        background-color: rgba(0, 0, 0, 0.9); /* Прозрачный черный фон (0.8 - уровень непрозрачности) */
        padding: 20px;
        transition: left 0.3s;
        overflow: auto;

    }

    .menu__body.active {
        left: 0;
    }

    .menu__list {
        flex-direction: column;
        align-items: flex-start; /* Выровнять по левому краю */
        gap: 30px;
        padding: 20px 0;
    }

    /* Стили для логотипа в мобильном меню */
    .menu__list li:nth-child(5) {
        margin: 20px 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .menu__list li:nth-child(5) .header__logo {
        width: 120px; /* Фиксированная ширина для логотипа */
        display: flex;
        justify-content: center;
    }

    /* Стили для пункта "Зарегистрироваться" */
    .menu__list li:last-child {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .menu__list li:last-child .menu__link {
        display: inline-block;
        padding: 10px 20px;
        background: linear-gradient(45deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        border-radius: 8px;
        color: #000000;
        font-weight: 500;
    }

    .menu__link {
        font-size: 14px;
        padding: 10px 0;
        display: block;
        width: 100%;
        text-align: center;
    }
   
}
@media (min-width: 1024px) {
    .menu__close {
        display: none; /* Скрываем крестик на десктопе */
    }
}

.social__link {
    transition: opacity 0.3s ease;
}

.social__link:hover {
    opacity: 0.8;
}

.social__link svg {
    transition: transform 0.3s ease;
}

.social__link:hover svg {
    transform: scale(1.1);
}

@media (min-width: 1600px) {
  .masterclass__container {
    max-width: 1850px; /* Можно чуть больше, если хочется ещё шире */
    margin: 0 auto;
    gap: 40px;
  }
  .masterclass__card {
    width: 1920px; /* Увеличиваем ширину карточки */
    /* gap: 40px;     */
  }
  .card__image {
    width: 50%;
    height: 650px;
  }
  .card__content {
    width: 50%;
    height: 650px;
    padding: 100px 100px;
  }
  .card__content-wrapper {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    gap: 24px;
  }
  .card__title {
    font-size: 2.7em;
    line-height: 1.35;
  }
  .card__description,
  .card__full-description,
  .card__details,
  .card__footer a {
    font-size: 1.3em;
    line-height: 1.35;
  }
  .card__price {
    font-size: 2em;
  }
  .card__link {
    font-size: 1.2em;
    font-weight: 600;
    letter-spacing: 0.5px;
  }
  .card__arrow,
  .card__arrow.long-arrow {
    width: 100%;
    max-width: 100%;
  }
  .masterclass {
    margin-top: 40px; /* или больше, если хочется ещё больше воздуха */
  }
}

@media (min-width: 1600px) {
  .header__container,
  .hero__container {
    max-width: 1850px;
    width: 100vw;
    margin: 0 auto;
    padding: 0 20px;
  }
  .hero {
    padding-top: 120px;
  }
  .hero__content {
    max-width: 1100px;
    /* padding-top: 120px; */
  }
  .hero__title {
    font-size: 110px;
    line-height: 1.05;
  }
  .hero__subtitle {
    font-size: 32px;
    margin-bottom: clamp(64px, 7vw, 160px);
  }
  .hero__button {
    width: 480px;
    height: 80px;
    font-size: 28px;
  }
  .hero__image {
    width: 50%;
  }
}

@media (min-width: 1600px) {
  .header {
    width: 100%;
    min-width: 0;
    left: 0;
    right: 0;
    padding: 0 20px;
  }
  .header__container {
    max-width: 1850px;
    width: 100%;
    margin: 0 auto;
    /* padding-left: 60px;
    padding-right: 60px; */
    padding: 0 20px;
    /* Можно увеличить gap между элементами, если нужно */
  }
  .menu__list {
    gap: 48px;
  }
  .header__right {
    margin-left: 40px;
  }
}

@media (min-width: 1600px) {
  .menu__link {
    font-size: 22px;
    padding: 12px 0;
  }
  .menu__list {
    gap: 48px;
  }
  .header__button {
    font-size: 20px;
    width: 130px;
    height: 40px;
    padding: 0 24px;
  }
  .header__logo img {
    max-width: 140px;
  }
}

@media (min-width: 1600px) {
  .header__button {
    background: transparent !important; /* убираем заливку */
    color: #fff;
    border: 2px solid #FDAA05; /* или твой фирменный цвет */
    box-shadow: none;
    font-size: 20px;
    width: 130px;
    height: 40px;
    padding: 0 24px;
    border-radius: 8px;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
  }
  .header__button:hover {
    background: #FDAA05;
    color: #000;
    border-color: #FDAA05;
  }
}

@media (min-width: 1600px) {
  .about__text {
    font-size: 32px;
    line-height: 1.5;
  }
  .about__content {
    max-width: 900px; /* если хочешь, чтобы текст был шире */
    padding: 40px;
  }
}

@media (min-width: 1600px) {
  .master__title {
    font-size: 48px;
  }
  .master__subtitle {
    font-size: 32px;
  }
  .master__text {
    font-size: 24px;
    line-height: 1.6;
  }
}

@media (min-width: 1600px) {
  .master__image {
    width: 700px;
    height: 850px;
    max-width: none;
    max-height: none;
  }
  .master__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (min-width: 1600px) {
  .master__container {
    gap: 260px; /* Было 180px, теперь больше */
    max-width: 1850px;
    width: 90vw;
    margin: 0 auto;
    padding-left: 60px;
    padding-right: 60px;
    
  }
}

@media (min-width: 1600px) {
  .master__content {
    width: 900px;   /* Было 600px, теперь шире */
    max-width: 1000px;
  }
}

@media (min-width: 1600px) {
  .master__container {
    align-items: flex-start;
  }
}

@media (min-width: 1600px) {
  .master__container {
    max-width: 2100px; /* Было 1850px, теперь больше */
    width: 95vw;
  }
}

@media (min-width: 1600px) {
  .master__content {
    width: 800px;
    max-width: 900px;
  }
  .master__container {
    gap: 180px; /* Было 260px */
  }
}

@media (min-width: 1600px) {
  .gallery__container {
    max-width: 1850px;
    width: 100vw;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 0;
  }
  .gallery__main {
    /* увеличь ширину пропорционально, чтобы занять место */
    width: 1050px; /* например, если нужно, подбери под свои фото */
    margin-right: 50px;
    height: 940px;
  }
  .gallery__image {
    width: 800px;
    height: 280px;
  }
  .gallery__text {
    width: 700px;
    font-size: 32px;
    margin-top: 120px;
    margin-left: 30px;
  }
  .gallery__text p {
    font-size: 32px;
    line-height: 1.5;
  }
}

@media (min-width: 1600px) {
  .gallery__side {
    gap: 50px;
  }
}


@media (min-width: 1600px) {
  .contact__media-container {
    width: 220px;
  }
}

@media (min-width: 1600px) {
  .contact__form-title {
    font-size: 32px;
  }
  .contact__input,
  .contact__textarea {
    font-size: 22px;
    padding: 18px;
  }
  .contact__button {
    font-size: 24px;
    height: 80px;
  }
}

@media (min-width: 1600px) {
  .contact__logo {
    width: 400px;
  }
}

@media (min-width: 1600px) {
    .footer {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        left: unset;
        transform: none;
        padding: 0 60px 40px 60px;
      }
      .footer__container {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
      }
  .footer__list {
    display: flex;
    justify-content: center;
    gap: 64px;
    width: 100%;
    margin-bottom: 20px;
  }
  .footer__copyright {
    text-align: center;
    width: 100%;
    margin-top: 10px;
  }
}

@media (min-width: 1600px) {
  .footer__link {
    font-size: 22px;
    letter-spacing: 0.5px;
  }
  .footer__copyright {
    font-size: 18px;
    margin-top: 40px;
  }
  .footer {
    margin-top: 0;
    padding-bottom: 60px;
  }
}

@media (min-width: 1600px) {
  .contact__description {
    font-size: 20px;
    line-height: 1.5;
  }
}

@media (min-width: 1600px) {
  .contact__checkbox label,
  .contact__checkbox a {
    font-size: 18px;
    line-height: 1.4;
  }
}

@media (min-width: 1600px) {
  .contact__checkbox input[type="checkbox"] {
    width: 24px;
    height: 24px;
    accent-color: #1D3494; /* Цвет чекбокса, если поддерживается */
    margin-right: 10px;
    vertical-align: middle;
  }
}

@media (min-width: 1600px) {
  .contact__form-wrapper {
    align-items: flex-start;
  }
}



@media (min-width: 1600px) {
  .contact__media-container {
    height: auto;
    min-height: 0;
  }
}

@media (min-width: 1600px) {
  .contact__logo {
    margin: 0 auto 20px auto; 
    display: block;
  }
  .contact__text {
    max-width: 600px; 
    width: 100%;
    margin: 0 auto 40px auto;
    text-align: center;
  }
}

@media (min-width: 1600px) {
  .contact__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 0;
  }
  .contact__logo {
    align-self: center;
    display: block;
    margin: -60px auto 20px auto;
    z-index: 2;
    position: relative;
  }
  .contact__text,
  .contact__details,
  .contact__social {
    align-self: flex-start;
    text-align: left;
    width: 100%;
    margin-left: 0;
    padding-left: 0;
  }
  .contact__details {
    font-size: 24px;
    gap: 24px;
  }
  .contact__phone,
  .contact__location {
    font-size: 24px;
    gap: 12px;
  }
  .contact__region,
  .contact__address {
    font-size: 18px;
    margin-top: 6px;
    margin-left: 36px;
  }
  .contact__social {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
    margin: 24px 0 0 0;
    width: 100%;
  }
  .contact__social svg {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    transition: transform 0.2s;
  }
  .contact__social a:hover svg {
    transform: scale(1.15);
  }
} 

@media (min-width: 1600px) {
  .contact {
    padding-bottom: 100px;
    /* max-width: 1850px;   
    width: 100%;
    margin: 0 auto; */
    
  }
}

@media (min-width: 1600px) {
  .contact__form-wrapper {
    flex: 1 1 0;
    min-width: 320px;
    max-width: 50%;
    width: 100%;
    padding: 40px 40px;
    box-sizing: border-box;
    gap: 40px;
  }
  .contact__container {
    display: flex;
    gap: 60px;
    max-width: 1850px;
    width: 100%;
    margin: 0 auto;
    align-items: flex-start;
  }
  .contact__info {
    flex: 1 1 0;
    min-width: 300px; /* чтобы контакты не сжимались слишком сильно */
    max-width: 35%;
    width: 100%;
    padding: 40px 40px 0 40px;
    font-size: 22px;
    padding-left: 40px;
    align-items: flex-start; /* выравнивание по левому краю */
    text-align: left;
  }
}

@media (min-width: 1600px) {
  .contact__logo {
    display: block;
    max-width: 320px;
    width: 100%;
    margin: -40px auto 20px auto;
    align-self: center;
    height: auto;
  }
}
@media (min-width: 1600px) {
    .contact__bg-image {
      max-height: 825px;
    }
  }

/* === Медиазапросы === */
@media (max-width: 1200px) {
  .contact__container {
    gap: 32px;
    padding: 40px 16px 0;
    max-width: 1000px;
  }
  .contact__form-wrapper {
    width: 100%;
    padding: 30px;
  }
  .contact__media-container {
    flex-basis: 150px;
  }
  .contact__info {
    max-width: 700px;
    width: 100%;
    margin: 40px auto 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
  }
  .contact__details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-bottom: 30px;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 900px) {
  .contact__container {
    flex-direction: column;
    gap: 24px;
    padding: 24px 8px 0;
  }
  .contact__form-wrapper {
    /* flex-direction: column; */
    max-width: 100%;
    padding: 40px;
    gap: 24px;
  }
  .contact__media-container {
    flex-basis: auto;
    width: 100%;
    align-items: flex-start;
  }
 
}

@media (max-width: 950px) {
    .header__container {
        justify-content: space-between;
        padding: 0 10px;
    }
    .menu__list {
        gap: 20px;
        
    }
    .header__logo img {
        max-width: 70px;
    }
    .header__right {
        margin-left: 10px;
    }
}

@media (max-width: 1200px) and (min-width: 769px) {
    .menu__link {
        font-size: 14px;
    }
    .header__logo img {
        max-width: 70px;
    }
    .header__button {
        font-size: 14px;
        width: 90px;
        height: 28px;
       
    }
    .menu__list li:last-child {
        margin-right: 30px;
    }
}

.footer__developer {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    text-align: center;
    margin-top: 5px;
}
.footer__developer a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}
.footer__developer a:hover {
    color: #fff;
    text-decoration: underline;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 0;
    cursor: pointer;
    color: #1D3494;
    transition: color 0.2s;
}
.faq-question:hover {
    color: #F15C01;
}
.faq-answer {
    display: none;
    padding: 0 0 12px 0;
    color: #222;
    font-size: 15px;
}
.faq-item.active .faq-answer {
    display: block;
}

@media (max-width: 1599px) {
  .contact__form-wrapper {
    max-width: 620px; /* Слегка уменьшаем форму, чтобы появился зазор */
  }
}

/* @media (min-width: 1600px) {
  .hero__title {
    line-height: 1.1;
    margin-top: clamp(16px, 1.5vw, 40px);
  }
} */





