/* ================================================================
   MOBILE STYLES — Аптечка+ (Apte4ka Plus)
   Breakpoint: < 768px, base width: 360px
   ================================================================ */

/* === LOGO VISIBILITY === */
.site-header__logo--mobile {
    display: none;
}

/* === MOBILE MENU OVERLAY === */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: #9ea93e;
    z-index: 99;
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0.35s;
    visibility: hidden;
}

.mobile-menu.is-open {
    transform: translateX(0);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0s;
    visibility: visible;
}


.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-menu__nav a {
    font-family: 'Tenor Sans', sans-serif;
    font-size: 32px;
    color: #ffffff;
    text-transform: uppercase;
}

.mobile-menu__nav a:hover {
    color: #9ea93e;
}

.mobile-menu__socials {
    display: flex;
    gap: 16px;
    margin-top: auto;
    padding-top: 48px;
}

/* === HAMBURGER BUTTON === */
.hamburger-btn {
    display: none;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    background: none;
}

@media (max-width: 767px) {

    /* === LAYOUT === */
    .site-container {
        justify-content: center;
    }

    .site-inner {
        width: 100%;
        zoom: unset;
    }

    .section,
    .reviews-section,
    .faq-section,
    .blog-section {
        width: 100%;
    }

    .section-inner,
    .section-inner--narrow,
    .reviews-section__inner,
    .faq-section__inner,
    .blog-section__inner {
        width: 100%;
        padding: 0 16px;
    }

    /* === HEADER === */
    .site-header {
        width: 100%;
        height: 72px;
        position: sticky;
        top: 0;
		  border-bottom: none;
    }

    .site-header__inner {
        padding: 0 16px;
        justify-content: space-between;
        transition: background 0.35s ease;
    }

    .site-header__right {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-left: 0;
    }

    .site-header__logo--desktop {
        display: none;
    }

    .site-header__logo--mobile {
        display: flex;
    }

    .site-header__logo--mobile img {
        height: 40px;
        width: auto;
    }

    .site-header__logo-text {
        display: block;
		  font-size: 36px;
    }

    .site-header__nav {
        display: none;
    }

    .site-header__socials {
        display: flex;
        gap: 8px;
    }

    .site-header__social-btn--desktop {
        display: none;
    }

    .site-header__socials .site-header__social-btn {
        width: 36px;
        height: 36px;
    }

    .hamburger-btn {
        display: flex;
        width: 50px;
        height: 50px;
        background-color: #9ea93e;
        border-radius: 50%;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .hamburger-btn.is-rotated {
        transform: rotate(-90deg);
    }

    /* Хедер при открытом меню */
    .mobile-menu.is-open ~ .site-container .site-header__inner {
        background: #9ea93e;
        transition: background 0.35s ease;
    }

    .mobile-menu.is-open ~ .site-container .site-header__logo-text {
        color: #ffffff;
    }

    .mobile-menu.is-open ~ .site-container .site-header__logo--mobile img {
        filter: brightness(0) invert(1);
    }

    /* === HERO === */
    .hero {
        width: 100%;
        height: calc(100dvh - 72px);
        border-radius: 0;
    }

    .hero__content {
        padding: 0 16px 40px;
        align-items: flex-start;
    }

    .hero__title {
        font-size: 52px;
        text-align: left;
    }

    .hero__subtitle {
        font-size: 16px;
        margin-bottom: 24px;
        text-align: center;
    }

    .hero__buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .btn {
        width: 100% !important;
        font-size: 18px;
        height: 52px;
    }

    /* === SECTION TITLES === */
    .section-title__heading {
        font-size: 28px;
    }

    .section-title__subtitle {
        font-size: 16px;
    }

    /* === TRUST === */
    .trust {
        width: 100%;
    }

    .trust__row {
        flex-direction: column;
        align-items: start;
		  gap: 5px;
		  margin-bottom: 5px;
    }

    .trust__badge {
        font-size: 14px;
    }

    /* === HOW STEPS === */
    .how-steps {
        flex-direction: column;
        align-items: center;
    }

    .how-step {
        width: 100%;
    }

    /* === PRODUCT CATEGORIES === */
    .product-categories {
        flex-direction: column;
        align-items: center;
    }

    .product-category-card {
        width: 100%;
        height: 280px;
    }

	 .product-category-card:last-child {
        width: 100%;
        height: auto;
    }

    /* === CALCULATOR === */
    .calculator {
        width: 100vw;
        margin-left: -16px;
        flex-direction: column;
        padding: 24px 16px;
        box-sizing: border-box;
    }

    .calculator__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .calculator__bottom {
        flex-direction: column;
        gap: 24px;
    }

	 .calculator__details {
		  padding: 0 28px;
	 }

    .calculator__cta .btn {
        white-space: normal;
        text-align: start;
        height: auto;
        padding: 10px 32px;
    }

    .calculator__price {
        font-size: 32px;
    }

    /* === PROHIBITED === */
    .prohibited__items {
        flex-direction: column;
        align-items: start;
    }

    .prohibited__badge {
        font-size: 16px;
        width: auto;
        justify-content: start;
		  padding: 10px 20px;
    }

    /* === PARTNERS === */
    .partners__tabs {
        flex-direction: column;
        align-items: center;
    }

    .partners__tab {
        font-size: 16px;
        width: 100%;
        justify-content: center;
		  padding: 10px 20px;
    }

    /* === INSTAGRAM === */
    .section-gap--hero {
        display: none;
    }

    .instagram-grid-wrapper {
        width: 100%;
        max-height: none;
        overflow: visible;
    }

    .instagram-grid {
        columns: 1;
    }

    .instagram-grid__item:not(:first-child) {
        display: none;
    }

    .instagram-grid__item {
        width: 100%;
        aspect-ratio: 4 / 3;
    }

    .instagram-grid__item {
        margin-bottom: 8px;
    }

    /* === CTA === */
    .cta-section {
        width: 100%;
        padding: 32px 16px;
        border-radius: 0;
    }

    .cta-section__buttons {
        flex-direction: column;
    }

    /* === REVIEWS SLIDER === */
    .reviews-section {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .reviews-slider {
        width: 100%;
    }

    .reviews-page {
        display: contents;
    }

    .review-card {
        width: calc(100vw - 32px);
        flex-shrink: 0;
    }

    .review-card__title {
        font-size: 24px;
    }
	 
	 .slider-dots {
		  gap: 10px;
	 }

    .google-bar {
        flex-direction: column;
        height: auto;
        padding: 16px;
        gap: 8px;
    }

    .google-bar__rating {
        font-size: 28px;
    }

    .google-bar__count {
        width: auto;
        text-align: center;
    }

    /* === FAQ === */
    .faq-section {
        padding: 32px 0;
    }

    .faq-columns {
        grid-template-columns: 1fr;
		  gap: 12px;
    }

    /* === BLOG CARDS === */
    .blog-section {
        padding: 32px 0;
    }

    .blog-cards--archive {
        grid-template-columns: 1fr;
    }

    .blog-cards--archive .blog-card--big {
        grid-column: span 1 !important;
        height: 260px;
    }

    .blog-cards--archive .blog-card--big .blog-card--big__desc {
        display: none;
    }

    .blog-cards--archive .blog-card--big .blog-card--big__title {
        font-size: 21px !important;
    }

    .blog-card__title {
        font-size: 20px;
    }

    /* === BLOG DETAIL === */
    .blog-slider {
        width: 100%;
        height: auto;
    }

    .blog-slider__track {
        height: 250px;
    }

    .article-content {
        width: 100%;
        padding: 24px 16px;
    }

    .article-content h2 {
        font-size: 24px;
    }

    .article-content p {
        font-size: 16px;
    }

    /* === PRODUCTS GRID === */
    .products-grid {
        grid-template-columns: repeat(1, 1fr);
        width: 100%;
        gap: 12px;
        padding: 0 16px;
    }

    .product-card {
        width: 100%;
    }

    .product-card__image-wrap {
        width: 100%;
        height: 180px;
    }

    /* === TESTIMONIALS GRID === */
    .testimonials-grid {
        grid-template-columns: 1fr;
        width: 100%;
        padding: 0;
    }

    /* === FILTER TABS — dropdown на мобилке === */
    .filter-tabs {
        position: relative;
        flex-direction: column;
        background: #9ea93e;
        border-radius: 10px;
        overflow: hidden;
        gap: 0;
        padding: 0;
        margin: 0 16px 16px;
    }

    .filter-tab {
        display: none;
        width: 100%;
        padding: 14px 16px;
        font-size: 16px;
        color: #ffffff;
        background: none;
        border: none;
        text-align: center;
        flex-shrink: 0;
    }

    /* Активный таб — всегда виден, играет роль «заголовка» dropdown */
    .filter-tab--active {
        display: flex;
        justify-content: center;
        align-items: center;
        border-bottom: none;
        cursor: pointer;
        order: -1;
        position: relative;
    }

    .filter-tab--active::after {
        content: '▾';
        font-size: 18px;
        line-height: 1;
        transition: transform 0.25s ease;
        position: absolute;
        right: 16px;
    }

    /* Открытое состояние */
    .filter-tabs.is-open .filter-tab {
        display: flex;
        align-items: center;
    }

    .filter-tabs.is-open .filter-tab--active {
        border-bottom: none;
    }

    .filter-tabs.is-open .filter-tab--active::after {
        transform: rotate(180deg);
    }

    /* === FOOTER === */
    .site-footer {
        width: 100%;
        padding-top: 32px;
    }

    .site-footer__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 0 16px;
    }

    .site-footer__header img {
        order: -1;
    }

    .site-footer__title {
        font-size: 36px;
    }

    .site-footer__columns {
        width: 100%;
        flex-direction: column;
        padding: 30px 16px;
        gap: 24px;
    }

    .site-footer__col-title {
        font-size: 28px;
        word-break: break-word;
    }

    .site-footer__bottom {
        width: 100%;
        flex-direction: column;
        gap: 16px;
        padding: 24px 16px;
        text-align: center;
    }

    .site-footer__payment {
        flex-wrap: wrap;
        justify-content: center;
        order: 1;
    }

    .site-footer__copyright {
        order: 2;
    }

    .site-footer__delivery {
        order: 3;
    }

    .site-footer__legal {
        justify-content: center;
    }

	 .site-footer__copyright-links {
		  justify-content: center;
	 }

    /* === GAPS REDUCTION === */
    .section-gap--72 { height: 32px !important; }
    .section-gap--74 { height: 32px !important; }
    .section-gap--102 { height: 48px !important; }

    /* === IMPRESSUM === */
    .impressum-inner {
        padding: 0 16px;
    }

    .impressum-block--text {
        width: 100%;
    }

    .impressum-heading {
        font-size: 20px;
    }

    .impressum-heading--large {
        font-size: 16px;
    }

    .impressum-subheading {
        font-size: 18px;
    }

    /* Disable card hover effects on mobile */
    .product-category-card:hover,
    .product-card:hover,
    .blog-card--big:hover,
    .review-card:hover,
    .blog-card:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Zoom for very small screens */
@media (max-width: 359px) {
    .site-inner {
        zoom: calc(100vw / 360);
    }
}
