/* ============================================
   АДАПТИВНЫЕ СТИЛИ ДЛЯ ПЛАНШЕТОВ И МОБИЛЬНЫХ
   ============================================ */

/* Планшеты (768px - 1024px) */
@media (max-width: 1024px) {
    /* Header */
    .header__container__nav__overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .header__container__nav__overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .header__container__nav__list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--color-black-light);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 40px 40px;
        gap: 30px;
        transition: right 0.3s ease;
        z-index: 1000;
        border-left: 2px solid var(--color-gold);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
    }

    .header__container__nav__list.active {
        right: 0;
    }

    .header__container__nav__burger {
        display: flex;
    }

    .header__container__logo__social {
        display: none;
    }

    /* Home Section */
    .home__title {
        font-size: 36px;
    }

    .home__subtitle {
        font-size: 20px;
    }

    .home__text {
        font-size: 16px;
    }

    .home__dice {
        display: none;
    }

    /* Games Section */
    .games__container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* About Section */
    .about__content {
        flex-direction: column;
        gap: 40px;
    }

    .about__image {
        flex: 1;
        max-width: 100%;
    }

    .about__image__img {
        margin: 0;
        width: 100%;
    }

    .about__right {
        padding: 0;
    }

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

    .about__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* CTA Section */
    .section--cta .container {
        justify-content: center;
        flex-direction: column;
    }

    .cta {
        max-width: 100%;
        padding: 40px 30px;
    }

    .cta__title {
        font-size: 32px;
    }

    .cta__sale {
        font-size: 28px;
        position: relative;
        bottom: auto;
        left: auto;
        margin-bottom: 20px;
    }

    .cta__sale strong {
        font-size: 36px;
    }

    /* Masters Section */
    .masters {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .masters__dice {
        display: none;
    }

    /* FAQ Section */
    .faq {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Pricing Section */
    .pricing {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .pricing__card--featured {
        transform: scale(1);
        grid-column: span 2;
    }

    .pricing__card--featured:hover {
        transform: translateY(-5px);
    }

    /* Gallery Section */
    .gallery__grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 200px;
    }

    .gallery__item--large {
        grid-column: span 2;
        grid-row: span 2;
    }

    /* Contacts Section */
    .contacts__info {
        position: relative;
        width: 100%;
        left: auto;
        top: auto;
        transform: none;
        margin: 0 auto 30px;
        max-width: 500px;
    }

    .contacts__map__container {
        height: 300px;
    }

    /* Footer */
    .footer__content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    /* Header */
    .header {
        padding: 15px 0;
    }

    .header__container {
        padding: 0 15px;
    }

    .header__container__logo__image {
        height: 28px;
    }

    .header__container__logo__text {
        height: 18px;
        font-size: 22px;
    }

    .header__container__nav__overlay {
        width: 100%;
    }

    .header__container__nav__list {
        width: 100%;
        right: -100%;
    }

    /* Section Titles */
    .section__title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .section {
        padding: 40px 0;
    }

    /* Home Section */
    .section--home {
        padding: 80px 0 0;
        min-height: 100vh;
        height: auto;
        background-attachment: scroll;
    }

    .home__inner {
        margin-bottom: 60px;
    }

    .home__title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .home__subtitle {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .home__text {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .home__button {
        padding: 14px 24px;
        font-size: 16px;
        width: 100%;
        justify-content: center;
    }

    /* Games Section */
    .games__title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .games__container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .games__container__card__content__title {
        font-size: 20px;
    }

    .games__container__card__content__description {
        font-size: 14px;
    }

    /* About Section */
    .about__content {
        gap: 30px;
    }

    .about__intro__text {
        font-size: 16px;
        line-height: 1.7;
    }

    .about__features {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
        margin-bottom: 40px;
    }

    .about__features__card {
        padding: 25px;
    }

    .about__features__card__icon {
        font-size: 40px;
    }

    .about__features__card__title {
        font-size: 20px;
    }

    .about__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin: 0 0 30px;
    }

    .about__stats__item__number {
        font-size: 36px;
    }

    .about__stats__item__label {
        font-size: 14px;
    }

    /* CTA Section */
    .section--cta {
        background-attachment: scroll;
    }

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

    .cta__sale {
        font-size: 24px;
        text-align: center;
    }

    .cta__sale strong {
        font-size: 32px;
    }

    .cta__title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .cta__description {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .cta__form__input {
        padding: 12px 16px;
        font-size: 14px;
    }

    .cta__form__button {
        padding: 12px 24px;
        font-size: 15px;
    }

    /* Masters Section */
    .section--masters {
        padding: 60px 20px 40px;
    }

    .masters {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 40px;
    }

    .masters__card {
        padding: 20px;
    }

    .masters__card__header {
        gap: 15px;
    }

    .masters__card__portrait__image {
        width: 100px;
        height: 100px;
    }

    .masters__card__name {
        font-size: 20px;
    }

    .masters__card__class {
        font-size: 14px;
    }

    .masters__card__exp {
        font-size: 13px;
    }

    .masters__card__stats {
        padding: 12px;
    }

    .masters__card__stats__item {
        font-size: 13px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .masters__card__stats__item__value {
        text-align: left;
    }

    .masters__card__description p {
        font-size: 14px;
    }

    /* FAQ Section */
    .faq__accordion__header {
        padding: 15px 20px;
        font-size: 15px;
    }

    .faq__accordion__header__icon {
        font-size: 32px;
    }

    .faq__accordion__content {
        padding: 0 20px;
    }

    .faq__accordion__content.active {
        padding: 0 20px 20px;
    }

    .faq__accordion__content__text {
        font-size: 14px;
        padding-top: 12px;
    }

    /* Pricing Section */
    .pricing {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pricing__card {
        padding: 30px 20px;
    }

    .pricing__card--featured {
        grid-column: span 1;
        padding: 40px 25px;
    }

    .pricing__card__title {
        font-size: 20px;
    }

    .pricing__card__price__amount {
        font-size: 40px;
    }

    .pricing__card__price__currency {
        font-size: 20px;
    }

    .pricing__card--featured .pricing__card__title {
        font-size: 22px;
    }

    .pricing__card--featured .pricing__card__price__amount {
        font-size: 48px;
    }

    .pricing__card--featured .pricing__card__price__currency {
        font-size: 24px;
    }

    /* Gallery Section */
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
        gap: 10px;
    }

    .gallery__item--large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gallery__item--tall {
        grid-row: span 2;
    }

    .gallery__item__fairy {
        height: 100px;
        left: 10px;
    }

    .gallery__item__overlay {
        padding: 20px 15px 15px;
    }

    .gallery__item__title {
        font-size: 16px;
    }

    /* Contacts Section */
    .contacts {
        margin-top: 60px;
    }

    .contacts__info {
        padding: 20px;
        margin-bottom: 20px;
    }

    .contacts__info .title_h3 {
        font-size: 24px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .contacts__info__address {
        font-size: 14px;
    }

    .contacts__info__contact__link {
        font-size: 14px;
    }

    .contacts__map__container {
        height: 250px;
    }

    /* Footer */
    .footer {
        padding: 30px 0;
    }

    .footer__content {
        gap: 15px;
    }

    .footer__logo {
        gap: 10px;
    }

    .footer__logo__image {
        width: 32px;
        height: 32px;
    }

    .footer__logo__text {
        height: 20px;
    }

    .footer__copyright {
        font-size: 12px;
    }

    /* Modal */
    .modal__content {
        padding: 30px 20px;
        margin: 20px;
        max-width: calc(100% - 40px);
    }

    .modal__title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .modal__description {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .modal__form__input,
    .modal__form__select,
    .modal__form__textarea {
        padding: 12px 16px;
        font-size: 15px;
    }

    .modal__form__submit {
        padding: 14px 24px;
        font-size: 16px;
    }

    .modal__close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 28px;
    }

    /* Lightbox */
    .lightbox__content {
        max-width: 95vw;
        padding: 20px;
    }

    .lightbox__image {
        max-height: 80vh;
    }

    .lightbox__caption {
        font-size: 16px;
        margin-top: 15px;
    }

    .lightbox__close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 36px;
    }

    .lightbox__prev,
    .lightbox__next {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }

    .lightbox__prev {
        left: 10px;
    }

    .lightbox__next {
        right: 10px;
    }
}

/* Маленькие мобильные устройства (до 480px) */
@media (max-width: 480px) {
    /* Header */
    .header__container__logo__text {
        font-size: 18px;
    }

    /* Home Section */
    .home__title {
        font-size: 24px;
    }

    .home__subtitle {
        font-size: 16px;
    }

    .home__text {
        font-size: 14px;
    }

    /* Section Titles */
    .section__title {
        font-size: 28px;
    }

    .games__title {
        font-size: 28px;
    }

    /* Games Section */
    .games__container__card__content {
        padding: 15px;
    }

    .games__container__card__content__title {
        font-size: 18px;
    }

    .games__container__card__content__info {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    /* About Section */
    .about__stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .about__stats__item__number {
        font-size: 32px;
    }

    /* CTA Section */
    .cta__title {
        font-size: 24px;
    }

    .cta__sale {
        font-size: 20px;
    }

    .cta__sale strong {
        font-size: 28px;
    }

    /* Masters Section */
    .masters__card__header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .masters__card__header__info {
        align-items: center;
        text-align: center;
    }

    /* Pricing Section */
    .pricing__card__price__amount {
        font-size: 36px;
    }

    .pricing__card--featured .pricing__card__price__amount {
        font-size: 42px;
    }

    /* Gallery Section */
    .gallery__grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .gallery__item--large,
    .gallery__item--tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    /* Contacts Section */
    .contacts__info {
        padding: 15px;
    }

    .contacts__info .title_h3 {
        font-size: 20px;
    }

    .contacts__info__social {
        gap: 10px;
    }

    .contacts__info__social__link {
        width: 36px;
        height: 36px;
    }

    .contacts__info__social__icon {
        width: 18px;
        height: 18px;
    }
}

