/* ================================================================
   ROOT ПЕРЕМЕННЫЕ
   ================================================================ */
:root {
    --bg-dark: #455A44;
    --card-light: #E8F5E9;
    --accent-lime: #9CCC65;
    --btn-green: #8BC34A;
    --btn-yes: #4CAF50;
    --btn-no: #f44336;
    --text-black: #212121;
    --text-white: #FFFFFF;
    --text-gray: #616161;
    --text-light-gray: #9e9e9e;
    --footer-link: #CFD8DC;
    --footer-text: #B0BEC5;
    --card-border: #2E7D32;
    --shadow-green: rgba(46, 125, 50, 0.25);
    --primary-red: #982030;
    --primary-red-dark: #6b1522;
    --primary-red-light: #ddbfc3;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Be Vietnam Pro', sans-serif;
    background: #fff8f7;
    color: var(--text-black);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
}

/* ================================================================
   СТРАНИЦА ТАРИФОВ
   ================================================================ */
.pricing-page {
    max-width: 1200px;
    width: 100%;
    margin: 30px auto 60px;
    padding: 0 20px;
    flex: 1;
}

.pricing-hero {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-hero h1 {
    font-size: 40px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.pricing-hero p {
    font-size: 18px;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
}

/* ================================================================
   ПЕРЕКЛЮЧАТЕЛЬ (ПАКИ / ПОДПИСКА)
   ================================================================ */
.toggle-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.toggle-container {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: 9999px;
    background: #f1f1f1;
    border: 1px solid #e5e5e5;
}

.toggle-btn {
    padding: 8px 28px;
    min-height: 40px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: #888;
}

.toggle-btn.active {
    background: white;
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #ddd;
}

.toggle-btn:not(.active):hover {
    color: #555;
}

/* ================================================================
   КАРТОЧКИ ПАКЕТОВ
   ================================================================ */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.package-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px 25px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.package-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.12);
}

.package-card.popular {
    border-color: #982030;
    background: #fff8f7;
    transform: scale(1.03);
}

.package-card.popular:hover {
    transform: scale(1.04) translateY(-6px);
}

.package-badge {
    display: inline-block;
    background: #e8e8e8;
    color: #555;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    align-self: center;
}

.package-card.popular .package-badge {
    background: #982030;
    color: white;
}

.package-savings {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
    align-self: center;
}

.package-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #1a1a1a;
}

.package-price {
    margin-bottom: 20px;
}

.package-price .price {
    font-size: 36px;
    font-weight: 800;
    color: #1a1a1a;
}

.package-price .old-price {
    font-size: 18px;
    color: #aaa;
    text-decoration: line-through;
    margin-left: 8px;
}

.package-price .per-card {
    display: block;
    font-size: 14px;
    color: #888;
    margin-top: 4px;
}

.package-price .per-card-small {
    display: block;
    font-size: 12px;
    color: #aaa;
    margin-top: 2px;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    text-align: left;
    flex: 1;
}

.package-features li {
    padding: 6px 0;
    font-size: 14px;
    color: #444;
}

.btn-buy {
    border: 0.5px solid black;
    display: block;
    padding: 14px;
    border-radius: 50px;
    background: #f0f0f0;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-buy:hover {
    background: #e0e0e0;
}

.btn-buy.btn-primary {
    background: #982030;
    color: white;
}

.btn-buy.btn-primary:hover {
    background: #7a1825;
    transform: scale(1.02);
}

/* ================================================================
   ПОДПИСКА (карточка в том же стиле)
   ================================================================ */
.subscription-card-style {
    border-color: #982030 !important;
    background: #fff8f7 !important;
    transform: scale(1.03);
}

.subscription-card-style:hover {
    transform: scale(1.04) translateY(-6px);
}

.subscription-note-card {
    font-size: 12px;
    color: #999;
    margin: 5px 0 15px;
    text-align: center;
}

/* ================================================================
   ТАБЛИЦА СРАВНЕНИЯ
   ================================================================ */
.comparison-table-wrapper {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    overflow-x: auto;
}

.comparison-table-wrapper h2 {
    text-align: center;
    margin: 0 0 25px 0;
    font-size: 28px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th {
    background: #f8f8f8;
    padding: 14px 20px;
    text-align: center;
    font-weight: 600;
    color: #333;
}

.comparison-table td {
    padding: 14px 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr.highlight td {
    background: #fff8f7;
}

.comparison-table .old-price-small {
    color: #aaa;
    text-decoration: line-through;
    font-size: 13px;
    margin-left: 5px;
}

.savings-badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
}

.highlight-green {
    color: #2e7d32;
    font-weight: 700;
}

.btn-small {
    padding: 8px 20px;
    border-radius: 30px;
    background: #f0f0f0;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-small:hover {
    background: #e0e0e0;
}

.btn-small.btn-primary {
    background: #982030;
    color: white;
}

.btn-small.btn-primary:hover {
    background: #7a1825;
}

/* ================================================================
   ПОДПИСКА — ЦЕНТРИРОВАНИЕ
   ================================================================ */
#subscriptionSection .packages-grid {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    grid-template-columns: unset !important;
}

#subscriptionSection .package-card {
    max-width: 380px !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* ================================================================
   АНИМАЦИИ
   ================================================================ */
.pricing-section {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================================
   АДАПТИВНОСТЬ
   ================================================================ */

/* Планшеты (1024px) */
@media (max-width: 1024px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .pricing-hero h1 {
        font-size: 32px;
    }

    .package-card.popular {
        transform: scale(1);
    }

    .package-card.popular:hover {
        transform: translateY(-4px);
    }

    .subscription-card-style {
        transform: scale(1);
    }

    .subscription-card-style:hover {
        transform: translateY(-4px);
    }

    #subscriptionSection .package-card {
        max-width: 100% !important;
    }

    .comparison-table {
        min-width: 500px;
    }
}

/* Телефоны (768px) */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .pricing-page {
        padding: 0 16px;
        margin: 20px auto 30px;
    }

    .pricing-hero h1 {
        font-size: 28px;
    }

    .pricing-hero p {
        font-size: 15px;
        padding: 0 10px;
    }

    .toggle-btn {
        padding: 8px 20px;
        font-size: 14px;
        min-height: 36px;
    }

    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-bottom: 30px;
    }

    .package-card {
        padding: 20px 16px 18px;
        border-radius: 16px;
        width: 100%;
    }

    .package-card.popular {
        transform: scale(1);
    }

    .package-card.popular:hover {
        transform: translateY(-4px);
    }

    .package-price .price {
        font-size: 28px;
    }

    .package-price .old-price {
        font-size: 14px;
    }

    .package-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .package-features li {
        font-size: 13px;
        padding: 4px 0;
    }

    .package-badge {
        font-size: 11px;
        padding: 3px 12px;
        margin-bottom: 10px;
    }

    .package-savings {
        font-size: 11px;
        padding: 3px 8px;
        margin-bottom: 8px;
    }

    .btn-buy {
        padding: 10px;
        font-size: 14px;
    }

    .subscription-card-style {
        transform: scale(1);
    }

    .subscription-card-style:hover {
        transform: translateY(-4px);
    }

    #subscriptionSection .package-card {
        max-width: 100% !important;
    }

    .comparison-table-wrapper {
        padding: 16px;
    }

    .comparison-table {
        font-size: 13px;
        min-width: 450px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 12px;
    }

    .comparison-table-wrapper h2 {
        font-size: 22px;
        margin-bottom: 16px;
    }

    /* Футер */
    .footer {
        padding: 30px 20px;
        border-radius: 12px 12px 0 0;
    }

    .footer-links {
        gap: 15px;
    }

    .footer-links a {
        font-size: 13px;
    }

    .footer-info p {
        font-size: 12px;
    }
}

/* Маленькие телефоны (480px) */
@media (max-width: 480px) {
    .pricing-page {
        padding: 0 12px;
        margin: 15px auto 25px;
    }

    .pricing-hero h1 {
        font-size: 24px;
    }

    .pricing-hero p {
        font-size: 14px;
    }

    .toggle-container {
        gap: 3px;
        padding: 3px;
    }

    .toggle-btn {
        padding: 6px 14px;
        font-size: 12px;
        min-height: 30px;
    }

    .packages-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 25px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .package-card {
        padding: 22px 18px 20px;
        border-radius: 16px;
        max-width: 100%;
    }

    .package-card.popular {
        transform: scale(1);
    }

    .package-card.popular:hover {
        transform: translateY(-4px);
    }

    .package-price .price {
        font-size: 32px;
    }

    .package-price .old-price {
        font-size: 16px;
        margin-left: 6px;
    }

    .package-price .per-card {
        font-size: 13px;
        margin-top: 3px;
    }

    .package-price .per-card-small {
        font-size: 11px;
    }

    .package-card h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .package-features li {
        font-size: 14px;
        padding: 5px 0;
    }

    .package-badge {
        font-size: 11px;
        padding: 4px 14px;
        margin-bottom: 10px;
    }

    .package-savings {
        font-size: 11px;
        padding: 3px 10px;
        margin-bottom: 8px;
    }

    .btn-buy {
        padding: 12px;
        font-size: 15px;
        border-radius: 30px;
    }

    .subscription-card-style {
        transform: scale(1);
    }

    .subscription-card-style:hover {
        transform: translateY(-4px);
    }

    #subscriptionSection .package-card {
        max-width: 100% !important;
        padding: 20px 16px;
    }

    .comparison-table-wrapper {
        padding: 12px;
    }

    .comparison-table-wrapper h2 {
        font-size: 18px;
    }

    .comparison-table {
        font-size: 12px;
        min-width: 360px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 8px 10px;
    }

    .btn-small {
        padding: 5px 12px;
        font-size: 11px;
    }

    .subscription-note-card {
        font-size: 11px;
        margin: 4px 0 10px;
    }

    /* Футер */
    .footer {
        padding: 25px 16px;
        border-radius: 10px 10px 0 0;
    }

    .footer-links {
        gap: 10px;
        flex-direction: column;
        align-items: center;
    }

    .footer-links a {
        font-size: 13px;
    }

    .footer-info p {
        font-size: 12px;
    }
}

/* Очень маленькие телефоны (377px) */
@media (max-width: 377px) {
    .pricing-page {
        padding: 0 10px;
        margin: 10px auto 20px;
    }

    .pricing-hero h1 {
        font-size: 20px;
    }

    .pricing-hero p {
        font-size: 13px;
    }

    .toggle-btn {
        padding: 5px 12px;
        font-size: 11px;
        min-height: 26px;
    }

    .packages-grid {
        gap: 12px;
    }

    .package-card {
        padding: 18px 14px 16px;
        border-radius: 14px;
    }

    .package-price .price {
        font-size: 28px;
    }

    .package-price .old-price {
        font-size: 14px;
    }

    .package-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .package-features li {
        font-size: 13px;
        padding: 4px 0;
    }

    .package-badge {
        font-size: 10px;
        padding: 3px 10px;
        margin-bottom: 8px;
    }

    .package-savings {
        font-size: 10px;
        padding: 2px 8px;
        margin-bottom: 6px;
    }

    .btn-buy {
        padding: 10px;
        font-size: 13px;
    }

    .comparison-table {
        font-size: 11px;
        min-width: 300px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 6px 8px;
    }

    .comparison-table-wrapper h2 {
        font-size: 16px;
    }

    /* Футер */
    .footer {
        padding: 20px 12px;
        border-radius: 8px 8px 0 0;
    }

    .footer-links {
        gap: 6px;
    }

    .footer-links a {
        font-size: 12px;
    }

    .footer-info p {
        font-size: 11px;
    }
}

/* ================================================================
   ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ КАРТОЧЕК-ПРЕИМУЩЕСТВ ПОДПИСКИ
   ================================================================ */
.subscription-benefit-card {
    background: #fafafa;
    border-color: transparent;
    justify-content: center;
    align-items: center;
}

.subscription-benefit-card:hover {
    border-color: #982030;
    background: #fff8f7;
}

.benefit-icon-large {
    font-size: 48px;
    margin-bottom: 12px;
}

.benefit-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* ================================================================
   ФУТЕР
   ================================================================ */
.footer {
    width: 100%;
    padding: 40px 20px;
    text-align: center;
    background-color: var(--primary-red);
    border-radius: 20px 20px 0 0;
    margin-top: auto;
    clear: both;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.footer-info p {
    margin: 5px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}





/* ============================================================
   НАВИГАЦИЯ (ВЕРХНЕЕ МЕНЮ)
   ============================================================ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fefcfb;
    padding: 5px 50px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 99;
    flex-wrap: wrap;
    width: 100%;
}

.logo img {
    height: 45px;
    width: auto;
    border-radius: 5px;
    object-fit: contain;
    margin: 5px;
}

/* Оверлей для затемнения */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.overlay.active {
    display: block;
}

/* Центральные ссылки навигации */
.nav-links {
    display: flex;
    gap: 5px;
    position: absolute;   
    left: 34%;
    transform: translateX(-50%);
}

.nav-links a {
    color: black;
    text-decoration: none;
    font-size: 20px;
    padding: 8px 13px;
    transition: all 0.3s ease;
    border-radius: 25px;
    font-weight: 540;
    font-family: 'Playfair Display', serif;
}

.nav-links a:hover {
    color: #94162C;
    transform: translateY(-2px);
}

.nav-links a.active {
    color: #94162C;
}

.spacer {
    width: 150px;
}

/* Кнопка для открытия категорий на мобилках — скрыта на десктопе */
.sidebar-toggle {
    display: none;
}

/* ============================================================
   ПРАВАЯ ЧАСТЬ МЕНЮ
   ============================================================ */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    margin-left: auto;
}

/* ============================================================
   ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКОВ (ВЫПАДАЮЩИЙ)
   ============================================================ */
.language-switcher {
    position: relative;
    display: inline-block;
}

/* Кнопка текущего языка */
.lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f5f0ef;
    border: none;
    padding: 6px 12px 6px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    font-family: inherit;
}

.lang-current:hover {
    background: #ece5e3;
}

.lang-current .lang-flag {
    font-size: 16px;
}

.lang-current .lang-code {
    font-weight: 600;
    color: #333;
}

.lang-current .lang-arrow {
    font-size: 10px;
    color: #999;
    transition: transform 0.3s ease;
}

.lang-current.active .lang-arrow {
    transform: rotate(180deg);
}

/* Выпадающий список языков */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.25s ease;
    border: 1px solid #f0ecea;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Скроллбар для выпадающего списка */
.lang-dropdown::-webkit-scrollbar {
    width: 4px;
}
.lang-dropdown::-webkit-scrollbar-track {
    background: transparent;
}
.lang-dropdown::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}
.lang-dropdown::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/* Пункты выпадающего списка */
.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    font-size: 14px;
}

.lang-option:hover {
    background: #f8f2f0;
    color: #982030;
}

.lang-option.active {
    background: #f8f2f0;
    color: #982030;
    font-weight: 600;
}

.lang-option .lang-flag {
    font-size: 18px;
    flex-shrink: 0;
}

.lang-option .lang-name {
    flex: 1;
}

.lang-option .lang-code-small {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    background: #f5f0ef;
    padding: 2px 8px;
    border-radius: 12px;
}

.lang-option.active .lang-code-small {
    background: #f0e5e2;
    color: #982030;
}

/* Анимация при открытии */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.lang-dropdown.open {
    animation: slideDown 0.2s ease forwards;
}

/* ============================================================
   АВТОРИЗАЦИЯ
   ============================================================ */
.auth-buttons {
    display: flex;
    align-items: center;
}

.btn-login {
    padding: 8px 22px;
    background: transparent;
    color: #333;
    border: 2px solid #ddd;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    border-color: #982030;
    color: #982030;
    transform: translateY(-2px);
}

/* Меню пользователя (авторизован) */
.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    background: transparent;
    border: 0px;
}

.user-btn.active .user-arrow {
    transform: rotate(180deg);
}

.user-avatar {
    font-size: 18px;
}

.user-name {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-arrow {
    font-size: 10px;
    color: #999;
    transition: transform 0.3s ease;
}

/* Выпадающее меню пользователя */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid #f0ecea;
}

.user-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.user-dropdown a:hover {
    background: #f8f2f0;
    color: #982030;
}

.user-dropdown hr {
    margin: 6px 16px;
    border: none;
    border-top: 1px solid #f0ecea;
}

.user-dropdown .logout-link {
    color: #dc3545;
}

.user-dropdown .logout-link:hover {
    background: #fff5f5;
    color: #c62828;
}

/* Кнопка "Создать открытку" */
.btn-create-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #982030;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(152, 32, 48, 0.25);
}

.btn-create-card .btn-icon {
    font-size: 16px;
}

.btn-create-card:hover {
    background: #6b1522;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(152, 32, 48, 0.35);
}

.btn-create-card:active {
    transform: translateY(0px);
}

/* ============================================================
   БУРГЕР-МЕНЮ — СКРЫТО НА ДЕСКТОПЕ
   ============================================================ */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 100;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #982030;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.pipi {
    height: 35px;
}
















/* ================================================================
   КНОПКА "ПОДПИСАТЬСЯ" (btn-buys)
   ================================================================ */
.btn-buys {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border-radius: 50px;
    background: #982030;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Be Vietnam Pro', sans-serif;
    text-align: center;
    margin-top: auto;
}

.btn-buys:hover {
    background: #7a1825;
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(152, 32, 48, 0.3);
}

.btn-buys:active {
    transform: scale(0.98);
}









/* ============================================================
   АДАПТАЦИЯ ПЕРЕКЛЮЧАТЕЛЯ ЯЗЫКОВ ДЛЯ ТЕЛЕФОНОВ
   ============================================================ */

/* Планшеты и маленькие ноутбуки */
@media (max-width: 1024px) {
    .lang-current {
        padding: 4px 10px;
        font-size: 12px;
    }

    .lang-current .lang-code {
        font-size: 11px;
    }

    .lang-current .lang-arrow {
        font-size: 8px;
    }

    .lang-dropdown {
        min-width: 160px;
    }

    .lang-option {
        padding: 8px 14px;
        font-size: 13px;
    }

    .lang-option .lang-flag {
        font-size: 16px;
    }
}











/* Телефоны (768px и меньше) */
@media (max-width: 768px) {
    .language-switcher {
        position: relative;
    }

    .lang-current {
        padding: 4px 8px;
        font-size: 11px;
        border-radius: 14px;
        gap: 4px;
    }

    .lang-current .lang-code {
        font-size: 10px;
    }

    .lang-current .lang-arrow {
        font-size: 7px;
    }

    .lang-dropdown {
        position: absolute;
        top: calc(100% + 4px);
        right: 0;
        left: auto;
        min-width: 150px;
        max-height: 300px;
        border-radius: 12px;
        padding: 6px 0;
        transform: translateY(-10px) scale(0.95);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        border: 1px solid #f0ecea;
        background: white;
        /* Убираем всё лишнее */
        width: auto;
        bottom: auto;
    }

    .lang-dropdown::after {
        display: none; /* Убираем iOS-полоску */
    }

    .lang-dropdown.open {
        transform: translateY(0) scale(1);
        opacity: 1;
        visibility: visible;
    }

    /* Убираем затемнение фона */
    .lang-dropdown.open::before {
        display: none;
    }

    .lang-option {
        padding: 8px 14px;
        font-size: 13px;
        gap: 8px;
        border-bottom: none;
        justify-content: flex-start;
    }

    .lang-option .lang-flag {
        font-size: 16px;
    }

    .lang-option .lang-name {
        font-size: 13px;
    }

    .lang-option .lang-code-small {
        font-size: 10px;
        padding: 1px 8px;
    }
}

/* Маленькие телефоны (480px и меньше) */
@media (max-width: 480px) {
    .lang-current {
        padding: 3px 6px;
        font-size: 10px;
        border-radius: 12px;
        gap: 3px;
    }

    .lang-current .lang-code {
        font-size: 9px;
    }

    .lang-current .lang-arrow {
        font-size: 6px;
    }

    .lang-dropdown {
        min-width: 130px;
        max-height: 250px;
        padding: 4px 0;
        border-radius: 10px;
        right: -10px; /* Смещаем, чтобы не вылезало за экран */
    }

    .lang-option {
        padding: 6px 12px;
        font-size: 12px;
        gap: 6px;
    }

    .lang-option .lang-flag {
        font-size: 14px;
    }

    .lang-option .lang-name {
        font-size: 12px;
    }

    .lang-option .lang-code-small {
        font-size: 9px;
        padding: 1px 6px;
    }
}

/* Очень маленькие телефоны (377px и меньше) */
@media (max-width: 377px) {
    .lang-current {
        padding: 2px 5px;
        font-size: 8px;
        border-radius: 10px;
        gap: 2px;
    }

    .lang-current .lang-code {
        font-size: 8px;
    }

    .lang-current .lang-arrow {
        font-size: 5px;
    }

    .lang-dropdown {
        min-width: 110px;
        max-height: 200px;
        padding: 4px 0;
        border-radius: 8px;
        right: -5px;
    }

    .lang-option {
        padding: 5px 10px;
        font-size: 11px;
        gap: 5px;
    }

    .lang-option .lang-flag {
        font-size: 12px;
    }

    .lang-option .lang-name {
        font-size: 11px;
    }

    .lang-option .lang-code-small {
        font-size: 8px;
        padding: 0px 5px;
    }
}





































/* ============================================================
   АДАПТАЦИЯ МЕНЮ ДЛЯ ПЛАНШЕТОВ И ТЕЛЕФОНОВ
   ============================================================ */

/* Планшеты и маленькие ноутбуки (до 1000px) */
@media (max-width: 1000px) {
    .navbar {
        position: sticky;
        top: 0;
        z-index: 99;
        background: #fefcfb;
        padding: 8px 20px;
        width: 100%;
    }

    .burger-menu {
        display: flex;
    }

    .nav-links {
        position: static;
        transform: none;
        display: flex !important;
        gap: 10px;
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 0px;
        font-family: 'Playfair Display', serif;
    }

    .nav-links a {
        padding: 8px 12px;
        font-size: 20px;
        font-family: 'Playfair Display', serif;
    }

    .spacer {
        display: none;
    }

    .main-container {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 240px;
        height: 100vh;
        background: #FAFAF9;
        z-index: 1000;
        transition: left 0.3s ease;
        display: block;
    }

    .sidebar.active {
        left: 0;
    }
}

/* Телефоны (до 768px) */
@media (max-width: 768px) {
    .spacer {
        display: none;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 260px;
        height: 100vh;
        background: #FAFAF9;
        z-index: 1000;
        transition: left 0.3s ease;
        display: block;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .sidebar.active {
        left: 0;
    }

    .nav-links {
        gap: 5px;
    }

    .nav-links a {
        font-size: 16px;
        padding: 6px 10px;
    }

    .navbar-right {
        gap: 8px;
    }

    .btn-create-card {
        padding: 8px 16px;
        font-size: 12px;
    }

    .btn-login {
        padding: 6px 14px;
        font-size: 12px;
    }

    .lang-current {
        font-size: 12px;
        padding: 4px 10px;
    }

    .logo img {
        height: 35px;
    }

    .pipi {
        height: 28px;
    }
}

/* Маленькие телефоны (до 595px) */
@media (max-width: 595px) {
    .nav-links a {
        font-size: 16px;
        font-family: 'Playfair Display', serif;
    }

    .navbar-right {   
        gap: 5px;  
    }

    .btn-create-card {
        gap: 8px;
        padding: 10px 15px;
        font-size: 12px;
    }

    .btn-login {
        padding: 8px 15px;
        font-size: 12px;
    }

    .lang-current {
        gap: 6px;
        padding: 6px 12px 6px 10px;
        font-size: 12px; 
    }

    .logo img {
        height: 35px;
        width: auto;
        border-radius: 5px;
        object-fit: contain;
        margin: 5px;
    }
}

/* Маленькие телефоны (до 478px) */
@media (max-width: 478px) {
    .navbar {
        padding: 10px;
    }

    .navbar-right {   
        gap: 5px;  
    }

    .btn-create-card {
        gap: 8px;
        padding: 8px 10px;
        font-size: 10px;
    }

    .user-btn {
        gap: 3px;
        padding: 8px 5px 8px 5px;
        font-size: 10px;
        max-width: 85px;
    }

    .btn-login {
        padding: 7px 10px;
        font-size: 10px;
    }

    .lang-current {
        gap: 3px;
        padding: 6px 10px 6px 8px;
        font-size: 10px; 
    }

    .logo img {
        height: 28px;
        width: auto;
        border-radius: 5px;
        object-fit: contain;
        margin: 5px;
    }

    .pipi {
        height: 27px;
    }

    .nav-links {
        gap: 3px;
        margin-top: 3px;
    }

    .nav-links a {
        font-size: 13px;
        padding: 4px 8px;
    }
}

/* Очень маленькие телефоны (до 377px) */
@media (max-width: 377px) {
    .navbar {
        padding: 6px 8px;
    }

    .logo img {
        height: 20px;
    }

    .nav-links {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 5px;
    }

    .nav-links a {
        font-size: 13px;
        padding: 4px 8px;
    }

    .navbar-right {
        gap: 4px;
    }

    .btn-create-card {
        padding: 5px 8px;
        font-size: 8px;
        gap: 1px;
    }

    .user-btn {
        gap: 2px;
        padding: 3px 3px 3px 3px;
        font-size: 8px;
        max-width: 70px;
    }

    .btn-login {
        padding: 5px 8px;
        font-size: 8px;
    }

    .lang-current {
        padding: 4px 6px;
        font-size: 8px;
        gap: 2px;
    }

    .lang-current .lang-arrow {
        font-size: 7px;
    }

    .pipi {
        height: 22px;
    }
}