/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    scroll-margin-top: 30px;
}

h1, h2, h3 {
    margin-bottom: 20px;
    color: #4a4a4a;
}

p {
    margin-bottom: 15px;
}

/* Плавная прокрутка для якорных ссылок */
html {
    scroll-behavior: smooth;
}

/* Скрыть элементы для скринридеров */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Стили основного сайта */
.hero {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    text-align: center;
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,197.3C1248,203,1344,149,1392,122.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center bottom;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-avatar {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    position: relative;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.online-status {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 25px;
    height: 25px;
    background-color: #4cd964;
    border: 3px solid white;
    border-radius: 50%;
    z-index: 2;
}

.status-text {
    position: absolute;
    bottom: -25px;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    white-space: nowrap;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-button {
    display: inline-block;
    background-color: #ff6b6b;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    border: none;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
}

.cta-button:hover {
    background-color: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.technology {
    background-color: white;
}

.technology-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.tech-image {
    max-width: 600px;
    margin: 30px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tech-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Стили поп-ап конфигуратора */
.configurator-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.configurator-overlay.active {
    display: flex;
}

.configurator-modal {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.close-configurator {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-configurator:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #333;
}

/* Прогресс-бар конфигуратора */
.progress-container {
    position: relative;
    width: 100%;
    height: 6px;
    background: #f0f0f0;
}

.progress-bar {
    width: 100%;
    height: 100%;
    background: #e0e0e0;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    width: 0%;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 50px 50px;
    animation: moveStripes 2s linear infinite;
}

@keyframes moveStripes {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

.progress-text {
    position: absolute;
    top: -30px;
    right: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6e8efb;
}

/* Экраны конфигуратора */
.config-screen {
    display: none;
    padding: 40px;
    max-height: 80vh;
    overflow-y: auto;
}

.config-screen.active {
    display: block;
}

.config-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.config-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    position: relative;
    border-radius: 50%;
    border: 4px solid #6e8efb;
    overflow: hidden;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
}

.config-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.config-content h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.config-content p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.privacy-note {
    font-size: 0.95rem;
    color: #888;
    font-style: italic;
}

/* Стили для ползунков характера */
.slider-container {
    margin-bottom: 25px;
    text-align: left;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.character-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
    transition: background 0.3s ease;
}

.character-slider:hover {
    background: #d0d0d0;
}

.character-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #6e8efb;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.character-slider::-webkit-slider-thumb:hover {
    background: #5a7dfa;
    transform: scale(1.1);
}

.character-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #6e8efb;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.character-slider::-moz-range-thumb:hover {
    background: #5a7dfa;
    transform: scale(1.1);
}

.slider-value {
    text-align: center;
    margin-top: 8px;
    font-weight: 600;
    color: #6e8efb;
    font-size: 0.95rem;
}

/* Стили для чекбоксов и радио-кнопок */
.option-group {
    text-align: left;
    margin: 30px 0;
}

.option-item {
    margin-bottom: 15px;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.option-item:hover {
    background-color: #e9ecef;
    border-color: #6e8efb;
    transform: translateY(-2px);
}

.option-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    margin: 0;
}

.option-item input[type="checkbox"],
.option-item input[type="radio"] {
    display: none;
}

.checkmark,
.radiomark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radiomark {
    border-radius: 50%;
}

.option-item input:checked + .checkmark {
    background: #6e8efb;
    border-color: #6e8efb;
}

.option-item input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.option-item input:checked + .radiomark {
    background: #6e8efb;
    border-color: #6e8efb;
}

.option-item input:checked + .radiomark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* Кнопки конфигуратора */
.config-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto 0;
    background-color: #6e8efb;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(110, 142, 251, 0.3);
    min-width: 200px;
    min-height: 44px;
}

.config-button:hover:not(:disabled) {
    background-color: #5a7dfa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(110, 142, 251, 0.4);
}

.config-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.config-button.primary {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    font-size: 1.2rem;
    padding: 18px 45px;
}

.config-button i {
    margin-right: 10px;
    font-size: 1.2em;
}

/* Финальный экран */
.final-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    border-radius: 50%;
    border: 4px solid #6e8efb;
    overflow: hidden;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
}

.final-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.success-checkmark {
    font-size: 4rem;
    color: #4cd964;
    margin-bottom: 20px;
}

/* Экраны загрузки */
.loading-screen .config-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(110, 142, 251, 0.3);
    border-radius: 50%;
    border-top-color: #6e8efb;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 25px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-message {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
    min-height: 2em;
}

.loading-message-container {
    position: relative;
    height: 3.5em;
    margin-bottom: 25px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-message-container .loading-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
    text-align: center;
    padding: 0 10px;
    box-sizing: border-box;
    line-height: 1.4;
}

.loading-message-container .loading-message.active {
    opacity: 1;
    transform: translateY(0);
}

/* ПРОГРЕСС-БАРЫ ЗАГРУЗКИ - ИСПРАВЛЕННЫЕ */
.loading-progress {
    width: 100%;
    max-width: 300px;
    margin-top: 20px;
}

.loading-progress .progress-bar {
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.loading-progress .progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.progress-percent {
    font-size: 1rem;
    font-weight: 600;
    color: #6e8efb;
    text-align: center;
}

/* Улучшения доступности для фокуса */
.cta-button:focus,
.config-button:focus,
.character-slider:focus,
.option-item:focus-within,
.close-configurator:focus,
.lang-btn:focus {
    outline: 2px solid #6e8efb;
    outline-offset: 2px;
}

/* Стили для преимуществ */
.benefits {
    background-color: #f8f9fa;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-item {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-align: center;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 2.5rem;
    color: #6e8efb;
    margin-bottom: 15px;
}

.benefit-item h3 {
    color: #6e8efb;
    margin-bottom: 15px;
}

/* Стили для отзывов */
.testimonials {
    background-color: white;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 50px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-item {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-item::before {
    content: """;
    font-size: 4rem;
    color: #6e8efb;
    position: absolute;
    top: -10px;
    left: 10px;
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    border: 2px solid #6e8efb;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: bold;
    color: #6e8efb;
    text-align: right;
}

/* Стили для FAQ */
.faq {
    background-color: white;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.faq-question {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #4a4a4a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #6e8efb;
}

.faq-answer {
    display: none;
    padding-top: 10px;
    color: #666;
}

.faq-answer.active {
    display: block;
}

.faq-answer ul, .faq-answer ol {
    margin: 15px 0;
    padding-left: 25px;
}

.faq-answer li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.faq-answer strong {
    color: #6e8efb;
    font-weight: 600;
}

.faq-support {
    margin-top: 40px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #6e8efb;
}

.faq-support p {
    margin-bottom: 10px;
}

/* Новый футер */
footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section {
    text-align: left;
}

.footer-section h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #6e8efb;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-menu a:hover {
    color: white;
    padding-left: 8px;
    text-decoration: none;
}

.footer-menu a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #6e8efb;
}

.footer-menu a:hover::before {
    left: -10px;
    opacity: 1;
}

.support-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

.support-info p {
    margin-bottom: 12px;
}

.support-info strong {
    color: white;
    font-weight: 600;
}

.telegram-support-link {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
}

.telegram-support-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.telegram-support-link i {
    margin-right: 8px;
    font-size: 1.2rem;
    color: #0088cc;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Анимация для FAQ */
.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* Адаптивность для новых секций */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-section:nth-child(3) {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-item,
    .testimonial-item {
        padding: 20px;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 12px 0;
    }
    
    .faq-support {
        padding: 20px;
        margin-top: 30px;
    }
    
    .hero {
        min-height: 100vh;
        padding: 60px 0;
        display: flex;
        align-items: center;
    }
    
    .hero-content {
        padding: 20px 0;
    }
    
    .hero-avatar {
        width: 140px;
        height: 140px;
        margin-bottom: 25px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 25px;
        line-height: 1.5;
    }
    
    .cta-button {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    /* Конфигуратор на мобильных */
    .configurator-modal {
        width: 95%;
        max-height: 95vh;
        margin: 10px;
    }
    
    .config-screen {
        padding: 25px 20px;
    }
    
    .config-content h2 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .config-content p {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    /* Исправление прогресс-бара загрузки */
    .loading-progress {
        margin-top: 20px;
    }
    
    .loading-message-container {
        height: 4em;
        margin-bottom: 20px;
    }
    
    .loading-message {
        font-size: 1.1rem;
        line-height: 1.4;
        padding: 0 10px;
    }
    
    /* Исправление радио-кнопок */
    .radiomark {
        border-radius: 50% !important;
    }
    
    .option-item label {
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section:nth-child(3) {
        grid-column: span 1;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-menu a:hover {
        padding-left: 0;
    }
    
    .footer-menu a:hover::before {
        display: none;
    }
    
    .telegram-support-link {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.6rem;
    }
    
    .hero-avatar {
        width: 120px;
        height: 120px;
    }
    
    .configurator-modal {
        margin: 5px;
        border-radius: 15px;
    }
    
    .config-screen {
        padding: 20px 15px;
    }
    
    .slider-container {
        margin-bottom: 20px;
    }
    
    .option-item {
        padding: 12px 15px;
        margin-bottom: 12px;
    }
    
    .loading-message-container {
        min-height: 5em;
        margin-bottom: 25px;
    }
    
    .loading-message-container .loading-message {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .unsubscribe-container {
        margin: 40px 15px;
        padding: 20px 15px;
    }
    
    .unsubscribe-icon {
        font-size: 3rem;
    }
    
    .unsubscribe-title {
        font-size: 1.4rem;
    }
    
    .unsubscribe-instruction {
        padding: 15px;
    }
    
    .unsubscribe-instruction ol {
        margin-left: 15px;
        padding-left: 0;
    }
    
    .unsubscribe-instruction li {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .unsubscribe-instruction code {
        font-size: 1rem;
        padding: 3px 8px;
        min-height: auto;
    }
}

/* Исправление радио-кнопок */
.radiomark {
    border-radius: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.option-item input:checked + .radiomark {
    background: #6e8efb;
    border-color: #6e8efb;
}

.option-item input:checked + .radiomark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* Гарантия что чекбоксы круглые */
.radiomark,
.option-item input[type="radio"] + .radiomark {
    border-radius: 50% !important;
}

/* Улучшение скролла на мобильных */
.config-screen {
    -webkit-overflow-scrolling: touch;
}

/* Исправление кнопки закрытия на мобильных */
@media (max-width: 768px) {
    .close-configurator {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Улучшение отзывчивости изображений */
.hero-avatar img,
.config-avatar img,
.final-avatar img,
.testimonial-avatar img {
    max-width: 100%;
    height: auto;
}

/* Предотвращение масштабирования на мобильных */
@media (max-width: 768px) {
    input[type="range"] {
        transform: scale(1);
    }
}

/* iOS-specific fixes */
@supports (-webkit-touch-callout: none) {
    /* Улучшаем кликабельность на iOS */
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
    
    .support-link {
        padding: 10px 0;
        display: inline-block;
    }
    
    .lang-btn {
        cursor: pointer;
    }
    
    /* Предотвращаем масштабирование при двойном тапе */
    * {
        -webkit-tap-highlight-color: rgba(0,0,0,0);
    }
}

/* RTL поддержка для арабского и других языков справа налево */
[dir="rtl"] .footer-section h3::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .footer-menu a:hover {
    padding-left: 0;
    padding-right: 8px;
}

[dir="rtl"] .footer-menu a::before {
    content: '←';
    left: auto;
    right: -15px;
}

[dir="rtl"] .footer-menu a:hover::before {
    left: auto;
    right: -10px;
}

[dir="rtl"] .faq-question i {
    margin-left: 0;
    margin-right: 10px;
}

[dir="rtl"] .benefit-icon,
[dir="rtl"] .config-button i,
[dir="rtl"] .telegram-support-link i {
    margin-left: 0;
    margin-right: 0;
}

/* Улучшение доступности для пользователей с ограниченными возможностями */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Высокий контраст для доступности */
@media (prefers-contrast: high) {
    .hero {
        background: linear-gradient(135deg, #4a6cf7, #8a5ce8);
    }
    
    .cta-button {
        background-color: #ff3333;
    }
    
    .benefit-item {
        border: 2px solid #6e8efb;
    }
}

/* Темная тема для пользователей с предпочтением темной темы */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .technology,
    .benefits,
    .testimonials,
    .faq {
        background-color: #2d2d2d;
    }
    
    .benefit-item,
    .testimonial-item,
    .faq-support {
        background-color: #3d3d3d;
    }
    
    h1, h2, h3 {
        color: #e0e0e0;
    }
    
    .configurator-modal {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .config-content h2,
    .config-content p {
        color: #e0e0e0;
    }
    
    .option-item {
        background-color: #3d3d3d;
    }
    
    .option-item label {
        color: #e0e0e0;
    }
}