/* ===== ОСНОВНЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

body.modal-open {
    overflow: hidden;
}

/* ===== ШАПКА САЙТА ===== */
.container {
    width: 100%;
    height: 79px;
    background-color: rgba(222, 104, 38, 0.70);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.left-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

#pip {
    width: 131px;
    height: 53px;
    background: url('Logo.png') center / contain no-repeat;
    background-color: transparent;
}

.textlogo {
    color: #000;
    font-family: 'Moul', sans-serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -0.3px;
}

/* ===== КНОПКИ ШАПКИ ===== */
.buttons-container {
    display: flex;
    gap: 15px;
}

.bxod, .registr {
    width: 147px;
    height: 49px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.bxod:hover, .registr:hover {
    transform: scale(1.05);
}

.bxod {
    border: 1px solid #DE6826;
    background: #FFF;
}

.registr {
    background: #DE6826;
}

.bxodc, .registrc {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.bxodc {
    color: #DE6826;
}

.registrc {
    color: #FFF;
}

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    padding: 20px 0;
    justify-content: center;
    align-items: flex-start;
}

.modal-content {
    background-color: #fff;
    margin: 20px auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 450px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#registerModal .modal-content {
    max-height: 90vh;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #DE6826;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #c55a20;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.9);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close:hover {
    color: #000;
    background: rgba(255, 255, 255, 1);
}

/* ===== ФОРМЫ ===== */
.modal h2 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    color: #DE6826;
    font-family: 'Montserrat', sans-serif;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #DE6826;
    box-shadow: 0 0 0 2px rgba(222, 104, 38, 0.1);
}

.password-hint {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* ===== КНОПКИ ФОРМ ===== */
.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #DE6826;
    color: white;
    border: none;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #c55a20;
}

/* ===== СОЦИАЛЬНЫЕ КНОПКИ ===== */
.social-login-full {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.social-btn-full {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
}

.social-btn-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.google-btn {
    color: #757575;
    border-color: #dadce0;
}

.google-btn:hover {
    background-color: #f8f9fa;
    border-color: #dadce0;
}

.yandex-btn {
    color: #FF0000;
    border-color: #FF0000;
}

.yandex-btn:hover {
    background-color: #fff0f0;
    border-color: #FF0000;
}

.vk-btn {
    color: #0077FF;
    border-color: #0077FF;
}

.vk-btn:hover {
    background-color: #f0f7ff;
    border-color: #0077FF;
}

.social-btn-full i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* ===== РАЗДЕЛИТЕЛЬ ===== */
.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
    color: #666;
    font-size: 14px;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
    z-index: -1;
}

.divider span {
    background: white;
    padding: 0 10px;
}

/* ===== СОГЛАШЕНИЕ ===== */
.agreement-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.agreement-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.agreement-container input[type="checkbox"] {
    display: none;
}

.agreement-checkmark {
    min-width: 18px;
    height: 18px;
    border: 2px solid #DE6826;
    border-radius: 3px;
    margin-right: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    background: white;
}

.agreement-container input[type="checkbox"]:checked + .agreement-checkmark {
    background: #DE6826;
}

.agreement-container input[type="checkbox"]:checked + .agreement-checkmark::after {
    content: "✓";
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.agreement-text {
    color: #333;
}

.agreement-link {
    color: #DE6826;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.agreement-link:hover {
    color: #c55a20;
    text-decoration: underline;
}

/* ===== УСЛОВИЯ И ПОЛИТИКА ===== */
.terms-content, .privacy-content {
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
}

.terms-section, .privacy-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.terms-section:last-child, .privacy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.terms-section h3, .privacy-section h3 {
    color: #DE6826;
    margin-bottom: 10px;
    font-size: 18px;
}

.terms-section p, .privacy-section p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.terms-section ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

.terms-section li {
    margin-bottom: 5px;
    line-height: 1.5;
}

.rights-table, .usage-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.table-row {
    display: flex;
    border-bottom: 1px solid #eee;
}

.table-cell {
    padding: 12px;
    flex: 1;
    text-align: left;
}

.table-cell.header {
    background-color: #f8f9fa;
    font-weight: 700;
    color: #DE6826;
}

.usage-table .table-row:first-child {
    background-color: #f8f9fa;
    border-bottom: 2px solid #DE6826;
}

.agree-terms-btn, .agree-privacy-btn {
    width: 100%;
    padding: 12px;
    background-color: #DE6826;
    color: white;
    border: none;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.agree-terms-btn:hover, .agree-privacy-btn:hover {
    background-color: #c55a20;
}

/* ===== ФОРМА РЕГИСТРАЦИИ ===== */
#registerForm {
    display: flex;
    flex-direction: column;
}

#registerForm .submit-btn {
    margin-top: auto;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .table-row {
        flex-direction: column;
    }
    
    .table-cell {
        padding: 8px;
    }
    
    .usage-table .table-row:first-child {
        flex-direction: row;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 2% auto;
        padding: 20px;
        max-height: 95vh;
    }
    
    .agreement-text {
        font-size: 13px;
    }
    
    .buttons-container {
        gap: 10px;
    }
    
    .bxod, .registr {
        width: 120px;
        height: 40px;
    }
    
    .bxodc, .registrc {
        font-size: 16px;
    }
}

@media (max-height: 700px) {
    .modal-content {
        margin: 10px auto;
        max-height: calc(100vh - 20px);
    }
    
    #registerModal .modal-content {
        padding: 20px 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .social-btn-full {
        padding: 10px;
        font-size: 13px;
    }
}

@media (max-height: 600px) {
    .modal-content {
        margin: 5px auto;
        max-height: calc(100vh - 10px);
    }
    
    #registerModal .modal-content {
        padding: 15px 10px;
    }
    
    .modal h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group input {
        padding: 10px;
    }
    
    .submit-btn {
        padding: 10px;
    }
}

@media (max-height: 500px) {
    .social-login-full {
        margin-bottom: 10px;
    }
    
    .divider {
        margin: 10px 0;
    }
    
    .agreement-box {
        margin: 15px 0;
        padding: 10px;
    }
}

/* ===== ГЛАВНАЯ СЕКЦИЯ ===== */
.hero {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    text-align: center;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #4a5568;
    margin-bottom: 40px;
    line-height: 1.6;
}

.btn-primary {
    background: #DE6826;
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #c55a20;
    transform: translateY(-2px);
}

/* ===== ПРЕИМУЩЕСТВО ===== */
.benefit {
    padding: 60px 20px;
    background: white;
}

.container-sm {
    max-width: 1000px;
    margin: 0 auto;
}

.benefit-content {
    text-align: center;
}

.benefit-text h2 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 600;
}

.benefit-text p {
    font-size: 1.125rem;
    color: #4a5568;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== ВОЗМОЖНОСТИ ===== */
.features {
    padding: 80px 20px;
    background: #f7fafc;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 50px;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.feature-item {
    background: white;
    padding: 40px 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.375rem;
    color: #2d3748;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-item p {
    color: #4a5568;
    line-height: 1.5;
    font-size: 1rem;
}

/* ===== ДЛЯ РЕПЕТИТОРОВ ===== */
.for-tutors {
    padding: 60px 20px;
    background: white;
    text-align: center;
}

.tutors-content h2 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 600;
}

.tutors-content p {
    font-size: 1.125rem;
    color: #4a5568;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== СВЯЗЬ ===== */
.contact {
    padding: 80px 20px;
    background: #f7fafc;
    text-align: center;
}

.contact-content h2 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-content p {
    font-size: 1.125rem;
    color: #4a5568;
    margin-bottom: 30px;
}

.telegram-btn {
    background: #0088cc;
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.telegram-btn:hover {
    background: #0077b5;
    transform: translateY(-2px);
    color: white;
}

.telegram-btn i {
    font-size: 1.25rem;
}

/* ===== ФУТЕР ===== */
.footer {
    background: #2d3748;
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.footer-content p {
    color: #a0aec0;
    margin: 0;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .benefit-text h2,
    .tutors-content h2,
    .contact-content h2 {
        font-size: 1.75rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-item {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 20px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .btn-primary {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .telegram-btn {
        padding: 14px 25px;
        font-size: 1rem;
    }

    .feature-item {
        padding: 25px 15px;
        min-height: 220px;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-item h3 {
        font-size: 1.25rem;
    }
}