/* ==========================================
   INTERNAL PAGES STYLES (Glassmorphism UI)
   ========================================== */

:root {
    --color-green-dark: #1E4E44;
    --color-yellow-accent: #FFF176;
    --color-bg-gray: #f4f7f6;
    --color-text-main: #2c3e50;
    --color-white: #ffffff;    
    --color-bg-overlay: rgba(12, 35, 30, 0.35);
    --color-header-bg: rgba(42, 102, 89, 0.45);
    --color-card-bg: rgba(30, 78, 68, 0.25);
    --color-card-hover: rgba(30, 78, 68, 0.55);
    --color-text: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.85);
}

html {
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    overflow: visible !important;
}

body.theme-rental {
    font-family: Arial, sans-serif;
    background: url('../img/bg/bg_internet.webp') center center / cover no-repeat fixed;
    position: relative;
    color: var(--color-text-main);
}

body.theme-rental::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 35, 30, 0.25);
    z-index: -1;
}

/* ==========================================
   HEADER
   ========================================== */

.rental-header {
    width: 100%;
    display: flex;
    align-items: center;
    background: rgba(42, 102, 89, 0.45);
    position: sticky;
    top: 0;
    left: 0;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-height: 80px;
    padding: 24px 24px;
    z-index: 100;
    box-sizing: border-box;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Логотип слева, центрированный блок по центру */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.logo-back-link {
    text-decoration: none;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 2;
}

.logo-frame {
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    /* Убрали absolute, margin-left и margin-bottom */
}

.header-logo {
    height: 30px;
    width: 30px;
    object-fit: contain;
}

.nav-center-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px; 
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding-left: 0;
    padding-right: 0;
}

.back-btn {
    color: #FFF176;
    text-decoration: none;
    font-weight: 800;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 0;
    margin-right: 0;
    transition: transform 0.2s;
    line-height: 1;
}

.back-btn:hover {
    transform: translateX(-4px);
}

.rental-header h1 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 800;
    color: #FFF176;
    line-height: 1.1;
    padding-bottom: 0;
    white-space: nowrap; /* Не дает заголовку переноситься */
}

/* ==========================================
   MAIN CONTENT & CARDS CONTAINER
   ========================================== */
.categories-container {
    width: 100%;
    max-width: 650px;
    margin: 20px auto 40px auto;
    padding: 0 16px 50px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
}

/* ==========================================
   INTRO & REFERRAL BANNER STYLES
   ========================================== */

.intro-card {    
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    gap: 16px;
    background-color: var(--color-card-bg);
    border-radius: 16px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.intro-card h2 {
    margin: 0;
    color: var(--color-yellow-accent);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.intro-card p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #ffffff;
}

/* Tip highlight box */
.tip-box {
    background: rgba(255, 241, 118, 0.12);
    border-left: 4px solid var(--color-yellow-accent);
    padding: 12px 16px;
    border-radius: 0 10px 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.92rem;
    color: #ffffff;
}

.tip-box i {
    color: var(--color-yellow-accent);
    font-size: 1.2rem;
    margin-top: 2px;
}

/* Referral Banner Box */
.referral-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 241, 118, 0.18) 0%, rgba(30, 78, 68, 0.6) 100%);
    border: 1px solid var(--color-yellow-accent);
    border-radius: 14px;
    padding: 20px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.referral-badge {
    position: absolute;
    top: -12px;
    right: 16px;
    background: var(--color-yellow-accent);
    color: var(--color-green-dark);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.referral-banner h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.referral-banner h3 i {
    color: var(--color-yellow-accent);
}

.referral-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 6px;
}

.referral-btn {
    background: var(--color-yellow-accent);
    color: var(--color-green-dark);
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    padding: 12px 22px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 241, 118, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.referral-btn:hover {
    transform: translateY(-2px);
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.referral-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

/* Glassmorphic Category Card */
.category-card {
    background-color: var(--color-card-bg);
    border-radius: 16px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    padding: 1.5rem 1.5rem;
}

.category-card:hover {
    transform: translateY(-3px);
    background-color: var(--color-card-hover);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.category-card h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.category-card p {
    margin-bottom: 1.25rem;
    line-height: 1.5;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #ffffff;
}

/* Header icon area inside card */
.card-image-placeholder {
    background: rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 55px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: var(--color-yellow-accent);
    font-size: 1.6rem;
}

/* Card Content Area */
.card-content {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* ==========================================
   CHECKBOX FEATURE BADGES STYLES
   ========================================== */

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 6px 0 10px 0;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
}

.feature-badge i {
    color: #4CAF50;
    /* Зеленый цвет для чекбокса */
    font-size: 0.9rem;
}

/* Для выделенных бейджей в реферальном блоке */
.feature-badge.feature-highlight {
    background: rgba(255, 241, 118, 0.15);
    border-color: rgba(255, 241, 118, 0.4);
    color: #FFF176;
}

.feature-badge.feature-highlight i {
    color: #FFF176;
    /* Золотистый чекбокс для акцента */
}

.category-card h2 {
    margin: 0 0 10px 0;
    color: var(--color-yellow-accent);
    font-size: 1.35rem;
    font-weight: 800;
}

.category-card p {
    margin: 0 0 16px 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text-muted);
    font-weight: 400;
}

/* Badges */
.badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 0 16px 0 12px;
    color: var(--color-green-dark);
}

.badge-best {
    background-color: var(--color-yellow-accent);
}

.badge-flex {
    background-color: #a3e6de;
}

/* Actions Row */
.card-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
    gap: 12px;
    flex-wrap: wrap;
}

.explore-link {
    color: var(--color-yellow-accent);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

/* External Link Button */
.insurance-info-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.insurance-info-btn i {
    color: var(--color-yellow-accent);
}

.insurance-info-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--color-yellow-accent);
    color: var(--color-yellow-accent);
}

/* Footer Section with complementary glass blending style */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 52px;
    height: auto;
    padding: 20px 50px;
    position: fixed;
    bottom: 0;
    left: 0;
    font-size: 0.9rem;
    background-color: rgba(30, 78, 68, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.logo-footer img {
    height: 32px;
    width: auto;
    display: block;
}

.footer-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.logo-footer img {
    height: 36px;
    width: auto;
    display: block;
}

.footer-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex: 2;
}

.footer-center a {
    color: #FFF176;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

.footer-center a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-center p {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
}

.footer-socials {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: #ffffff;
    opacity: 0.85;
    transition: transform 0.2s, opacity 0.2s;
}

.social-icon:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 600px) {
    .rental-header h1 {
        font-size: 1.4rem;
    }

    .back-btn {
        font-size: 1.5rem;
    }

    .logo-frame {
        width: 42px;
        height: 42px;
    }

    .header-logo {
        width: 24px;
        height: 24px;
    }

    .categories-container {
        padding: 0 12px;
        margin-top: 15px;
    }

    /* Adjust footer for small screens */
    footer {
        flex-direction: column;
        gap: 12px;
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .footer-left,
    .footer-center,
    .footer-socials {
        justify-content: center;
        flex: unset;
    }

    .logo-footer img {
        height: 2rem;
    }

    footer a {
        margin-right: 10px;
    }
}