/* Стили для страницы aboutus */
.aboutus-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(15px, 2vw, 30px) clamp(10px, 1.5vw, 20px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Хлебные крошки */
.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #e84118;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #333;
    font-weight: 600;
}

/* Основной контент на всю ширину */
.aboutus-content-full {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    flex: 1;
}

.aboutus-content-full h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    color: #2c3e50;
    margin-bottom: 0.5rem;
    text-align: center;
    line-height: 1.3;
    border-bottom: 2px solid #e84118;
    padding-bottom: 0.5rem;
}

.aboutus-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #e84118;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

.aboutus-intro {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
}

.aboutus-intro p {
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
    margin: 0 0 1rem 0;
}

.aboutus-intro p:last-child {
    margin-bottom: 0;
}

/* Секция с реферальной программой */
.aboutus-policy-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.policy-item {
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left: 4px solid #e84118;
}

.policy-item h2 {
    color: #e84118;
    font-size: 1.3rem;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.policy-item h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem 0;
    display: flex;
    align-items: center;
}

.policy-item h3:before {
    content: "•";
    color: #e84118;
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.step {
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
}

.step:last-child {
    margin-bottom: 0;
}

.policy-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin: 0 0 1rem 0;
}

.policy-item ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.policy-item li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 0.5rem;
}

.policy-item li:before {
    content: "✓";
    color: #e84118;
    font-weight: bold;
    position: absolute;
    left: -1.2rem;
}

.policy-item strong {
    color: #2c3e50;
    font-weight: 600;
    background-color: #fff9e6;
    padding: 0 0.2rem;
}

.policy-item a {
    color: #e84118;
    text-decoration: none;
    font-weight: 500;
}

.policy-item a:hover {
    text-decoration: underline;
}

/* Секция призыва к действию */
.cta-section {
    background: linear-gradient(135deg, #fff9e6 0%, #f55900 100%);
    border-left: 4px solid #fdcb6e;
    text-align: center;
}

.cta-section h2 {
    color: #d63031;
}

/* Контактная информация */
.contact-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid #e84118;
    margin: 1.5rem 0 0 0;
    text-align: center;
}

.contact-info h3 {
    color: #e84118;
    margin: 0 0 0.8rem 0;
    font-size: 1.1rem;
    border-bottom: none;
}

.contact-info p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.contact-info a {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Навигация */
.page-links.referral-navigation {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 2px solid #e9ecef;
    width: 100%;
}

.nav-buttons-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.2rem;
    border: 2px solid #e84118;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    min-height: 44px;
}

.prev-button {
    color: #e84118;
    background: white;
    justify-self: start;
}

.home-button {
    color: white;
    background: #e84118;
    border-color: #e84118;
    justify-self: center;
    min-width: 120px;
}

.next-button {
    color: white;
    background: #e84118;
    border-color: #e84118;
    justify-self: end;
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 65, 24, 0.3);
}

.prev-button:hover {
    background: #e84118;
    color: white;
}

.next-button:hover {
    background: #c23616;
    border-color: #c23616;
    color: white;
}

.home-button:hover {
    background: #c23616;
    border-color: #c23616;
    color: white;
}

/* АДАПТИВНОСТЬ */

/* Планшеты */
@media screen and (max-width: 1024px) {
    .referral-content-full {
        max-width: 900px;
    }

    .policy-item {
        padding: 1.2rem;
    }
}

/* Большие мобильные */
@media screen and (max-width: 768px) {
    .referral-content-full {
        max-width: 100%;
    }

    .policy-item {
        padding: 1rem;
    }

    /* Навигация для планшетов */
    .nav-buttons-container {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        max-width: 300px;
    }

    .nav-button {
        width: 100%;
        justify-self: center;
    }
}

/* Мобильные устройства */
@media screen and (max-width: 480px) {
    .referral-page {
        padding: 10px;
    }

    .breadcrumb {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .referral-content-full h1 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .referral-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .referral-intro {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .referral-intro p {
        font-size: 0.9rem;
    }

    .policy-item {
        padding: 0.9rem;
    }

    .policy-item h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .policy-item h3 {
        font-size: 1rem;
        margin: 1rem 0 0.5rem 0;
    }

    .step {
        margin-bottom: 1.2rem;
    }

    .policy-item p,
    .policy-item li {
        font-size: 0.9rem;
    }

    .contact-info {
        padding: 1rem;
    }

    /* Навигация для мобильных */
    .referral-navigation {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .nav-buttons-container {
        gap: 0.6rem;
    }

    .nav-button {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        min-height: 40px;
    }

    .home-button {
        min-width: 100px;
    }
}

/* Очень маленькие мобильные */
@media screen and (max-width: 360px) {
    .referral-content-full h1 {
        font-size: 1.2rem;
    }

    .referral-subtitle {
        font-size: 1rem;
    }

    .policy-item h2 {
        font-size: 1.1rem;
    }

    .policy-item {
        padding: 0.8rem;
    }

    .nav-button {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Улучшенная поддержка касаний */
@media (hover: none) and (pointer: coarse) {
    .nav-button:hover {
        transform: none;
        box-shadow: none;
    }

    .nav-button:active {
        transform: translateY(-1px);
    }
}

/* Анимации для лучшего UX */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.policy-item {
    animation: fadeIn 0.5s ease-out;
}

.policy-item:nth-child(2) {
    animation-delay: 0.1s;
}

.policy-item:nth-child(3) {
    animation-delay: 0.2s;
}

.cta-section {
    animation-delay: 0.3s;
}