/* Медиазапросы для адаптивности */

/* (до 1400px) */
@media (max-width: 1600.98px) {
    .container {
        padding: 0 15px;
    }
    .nav__link {
        font-size: 14px;
    }
    .btn {
        font-size: 16px;
    }
    .catalog__card-buttons {
        display: block;
    }
    .catalog__card-buttons .btn {
        margin-bottom: 10px;
    }
}

/* Планшеты (до 1200px) */
@media (max-width: 1600px) {
    .callback .container {
        padding: 0 165px;
    }
}
@media (max-width: 1199.98px) {
    .container {
        padding: 0 50px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .main-frame__title {
        font-size: 28px;
    }
    
    .callback__title {
        font-size: 60px;
    }
    
    .a4-section__title {
        font-size: 40px;
    }
    .nav__link {
        font-size: 10px;
        padding: 0px 5px;
    }
    .phone__number, .email__address {
        font-size: 12px;
    }
    
}

/* Планшеты (до 992px) */
@media (max-width: 991.98px) {
    .container {
        padding: 0 30px;
    }
    
    .header__container {
        flex-wrap: wrap;
    }
    
    .header__nav {
        order: 3;
        width: 100%;
        margin-top: 20px;
        flex-wrap: wrap;
    }
    
    .header__contacts {
        flex-direction: row;
        gap: 20px;
    }
    
    .main-frame__content {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .main-frame__image-wrapper {
        height: 400px;
    }
    
    .main-frame__image--1 {
        width: 400px;
        height: 350px;
    }
    
    .main-frame__image--2 {
        width: 60%;
        height: 350px;
    }
    
    .komu__items,
    .catalog__items,
    .materials__items,
    .sellers__items {
        gap: 30px;
    }
    
    .callback__title {
        font-size: 50px;
    }
    
    .callback__text {
        font-size: 30px;
    }
    
    .a4-section__title {
        font-size: 35px;
    }
    
    .photos__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer__copyright-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .header__burger {
        display: flex;
    }
    
    .header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #FAFAFA;
        flex-direction: column;
        width: 100%;
        padding: 20px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .header__nav.active {
        display: flex;
    }
    
    .header {
        padding: 10px 0px;
    }
    
    .email__address {
        line-height: 35px;
    }
    
    .nav__link {
        line-height: 30px;
    }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 767.98px) {
    .main-frame__content__map {
        padding-left: 0;
    }
    .main-frame-contacts-page .row {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
    #map {
        width: 100% !important;
        height: 500px !important;
    }
    .container {
        padding: 0 20px;
    }
    
    .header {
        padding: 15px 0;
    }
    
    .header__container {
        flex-wrap: wrap;
    }
    
    .header__left {
        flex: 1;
        align-items: center;
        gap: 15px;
    }
    
    .header__contacts-mobile {
        position: relative;
        padding-right: 65px;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    a.link-telegram {
        width: 40px;
        height: 40px;
    }
    a.link-telegram img {
        width: 40px;
        height: 40px;
    }

    
    .header__contacts-mobile .phone,
    .header__contacts-mobile .email {
        flex-direction: row;
        gap: 8px;
    }
    
    .header__contacts-mobile .email {
        padding-left: 30px;
    }
    
    .header__contacts-mobile .phone__icon {
        width: 24px;
        height: 24px;
    }
    
    .header__contacts-mobile .phone__number,
    .header__contacts-mobile .email__address {
        font-size: 13px;
    }
    
    .header__right {
        display: flex;
        align-items: center;
    }
    
    .header__contacts {
        display: none;
    }
    
    .nav__link {
        line-height: 1.5;
        padding: 0px;
        border-bottom: 1px solid #EBEBEB;
    }
    
    .nav__link:hover {
        border-bottom: 1px solid #EBEBEB;
        background-color: transparent;
    }
    
    .nav__link:hover::after {
        display: none;
    }
    
    .phone__number,
    .email__address {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 20px;
    }
    
    .main-frame {
        padding: 50px 0;
    }
    
    .main-frame__title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .main-frame__tags {
        gap: 10px;
        margin-bottom: 30px;
    }
    
    .tag {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .main-frame__text p {
        font-size: 18px;
    }
    
    .main-frame__buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-frame__image-wrapper {
        height: 300px;
    }
    
    .main-frame__image--1 {
        width: 280px;
        height: 250px;
        top: 25px;
    }
    
    .komu,
    .catalog,
    .materials,
    .sellers,
    .callback,
    .a4-section,
    .faq,
    .steps,
    .photos {
        padding: 50px 0;
    }
    
    .sellers {
        min-height: auto;
        padding-top: 250px;
    }
    
    .sellers__overlay {
        padding: 40px 20px;
    }
    
    .sellers__boxes {
        display: none;
    }
    
    .sellers__content {
        width: 100%;
    }
    
    .komu__card,
    .catalog__card,
    .materials__card,
    .sellers__card {
        padding: 30px 20px;
    }
    
    .catalog__card-title,
    .materials__title,
    .sellers__card-title {
        font-size: 22px;
    }
    
    .catalog__card-description,
    .materials__text,
    .sellers__card-features li {
        font-size: 18px;
    }
    
    .catalog__card-buttons {
        display: block;
    }
    
    .catalog__card-buttons .btn,
    .catalog__card-buttons a.btn {
        display: inline-block;
        width: auto;
        margin-bottom: 5px;
    }
    
    .callback {
        border-radius: 30px;
        margin: 30px 0;
    }
    
    .callback__content {
        padding: 50px 15px;
    }
    
    .callback__title {
        font-size: 35px;
        margin-bottom: 20px;
    }
    
    .callback__text {
        font-size: 22px;
        margin-bottom: 30px;
    }
    
    .a4-section {
        border-radius: 30px;
        margin: 30px 0;
    }
    
    .a4-section__content {
        padding: 50px 35px;
    }
    
    .a4-section__title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .a4-section__description {
        font-size: 20px;
    }
    
    .a4-section__features li {
        font-size: 18px;
    }
    
    .a4-section__buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .faq__question-text {
        font-size: 20px;
        margin-bottom: 0;
    }
    
    .faq__answer p {
        font-size: 20px;
    }
    
    .steps__card {
        padding: 20px;
    }
    
    .steps__title,
    .steps__text {
        font-size: 20px;
    }
    
    .photos__grid {
        grid-template-columns: 1fr;
    }
    
    .photos__item:first-child,
    .photos__item:nth-child(4),
    .photos__item:nth-child(9) {
        grid-row: span 1;
    }
    
    .photos__item:nth-child(9) {
        grid-column: span 1;
    }
    
    .photos__play-icon {
        width: 80px;
        height: 80px;
    }
    
    .footer {
        padding: 50px 0 30px;
    }
    
    .footer__content {
        gap: 20px;
    }
    
    .footer__nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .dropdown-menu-navbar {
        display: block !important;
        position: relative;
        background: none;
        border: none;
        text-transform: uppercase;
        font-size: 0.8rem;
    }
    img.img-catalog {
        width: 50%;
        margin-left: 25%;
    }
    
    .callback__img {
        width: 50%;
    }
}

/* Маленькие мобильные устройства (до 576px) */
@media (max-width: 575.98px) {
    .main-frame__content__map {
        padding-left: 0;
    }
    .main-frame-contacts-page .row {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
    #map {
        width: 100% !important;
        height: 500px !important;
    }
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 18px;
    }
    
    .btn {
        padding: 15px 30px;
        font-size: 18px;
    }
    
    .main-frame__title {
        font-size: 18px;
    }
    
    .main-frame__text p {
        font-size: 16px;
    }
    
    .main-frame__image-wrapper {
        height: 250px;
    }
    
    .main-frame__image--1 {
        width: 200px;
        height: 180px;
    }
    
    .komu__icon,
    .materials__icon {
        width: 60px;
        height: 60px;
    }
    
    .komu__title,
    .materials__title {
        font-size: 18px;
    }
    
    .komu__text,
    .materials__text {
        font-size: 16px;
    }
    
    .catalog__card-title {
        font-size: 20px;
    }
    
    .catalog__card-description {
        font-size: 16px;
    }
    
    .catalog__card-features li {
        font-size: 16px;
    }
    
    .callback__title {
        font-size: 28px;
    }
    
    .callback__text {
        font-size: 18px;
    }
    
    .a4-section__title {
        font-size: 24px;
    }
    
    .a4-section__description {
        font-size: 18px;
    }
    
    .a4-section__features li {
        font-size: 16px;
    }
    
    .sellers__title {
        font-size: 28px;
    }
    
    .sellers__subtitle {
        font-size: 18px;
    }
    
    .sellers__card-title {
        font-size: 20px;
    }
    
    .sellers__card-features li {
        font-size: 14px;
    }
    
    .faq__question-text {
        font-size: 18px;
    }
    
    .faq__answer p {
        font-size: 18px;
    }
    
    .steps__title,
    .steps__text {
        font-size: 18px;
    }
    
    .footer__description {
        font-size: 12px;
    }
    
    .footer__copyright-text,
    .footer__link {
        font-size: 16px;
    }
}

/* Очень маленькие устройства (до 400px) */
@media (max-width: 399.98px) {
    .main-frame__content__map {
        padding-left: 0;
    }
    .main-frame-contacts-page .row {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
    #map {
        width: 100% !important;
        height: 500px !important;
    }
    .main-frame__image-wrapper {
        height: auto;
    }
    
    .main-frame__image--1 {
        width: 150px;
        height: 140px;
    }
    
    .tag {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 16px;
    }
}

/* Адаптивные изображения */
img {
    max-width: 100%;
    height: auto;
}

/* Адаптивные видео */
video {
    max-width: 100%;
    height: auto;
}

/* Улучшение читаемости на маленьких экранах */
@media (max-width: 767.98px) {
    body {
        font-size: 16px;
    }
    
    p {
        margin-bottom: 15px;
    }
    
    h1, h2, h3 {
        margin-bottom: 20px;
    }
    .logo__img {
        height: 25px;
    }
    .catalog__card--hit {
        padding-top: 80px;
    }
    .a4-section__image {
        text-align: center;
    }
    .a4-section__img {
        max-width: 91%;
        margin-bottom: -50px;
        height: auto;
    }
    .video-block {
        margin-bottom: 30px;
    }
    .video-block,
    .photo_item_small .photos__img,
    .photo_item_medium .photos__img,
    .photo_item_long .photos__img,
    .photo_item_full .photos__img {
        height: 333px;
    }
    
    
    .main-frame__image--2 {
        position: relative;
        width: 70%;
        margin-left: 15%;
        height: 300px;
        top: auto;
        margin-bottom: 100px;
        border-radius: 35px;
    }
}

