
:root {
    --primary-color: #D91656;
    --primary-light: #FF4D87;
    --primary-dark: #B3003D;
    --secondary-color: #333333;
    --border-color: #e0e0e0;
    --text-light: #666666;
    --card-color: #F6F8FA;
}

/* ========== ОСНОВНАЯ СЕТКА ========== */
.page-layout {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 30px !important;
    margin: 20px 0 !important;
}


/* КОНТЕНТ - занимает всё остальное пространство */
.content-column {
    flex: 1 !important;
    min-width: 0 !important;
}


/* ========== ЭЛЛИПСНОЕ МЕНЮ ДЛЯ ТАБОВ ========== */
.ellipse-tabs-container {
    margin-bottom: 30px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ellipse-tabs-container::-webkit-scrollbar {
    display: none;
}

.ellipse-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    background: rgba(217, 22, 86, 0.05);
    padding: 8px;
    border-radius: 50px;
    width: fit-content;
    min-width: 100%;
}

.ellipse-tab {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.ellipse-tab:hover {
    background: rgba(217, 22, 86, 0.1);
    color: var(--primary-color);
}

.ellipse-tab.active {
    background: var(--primary-color);
    color: white;
}

/* ========== ОСНОВНОЙ БЛОК ========== */
#main-block {
    background: white;
    border-radius: 12px;
    padding: 40px;
}

.page-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

/* ========== ДИЗАЙН ФОРМЫ 50/50 С ФОТОГРАФИЕЙ ========== */
.form-split {
    display: flex;
    gap: 0;
    margin-top: 30px;
    background: var(--card-color);
    border-radius: 16px;
    overflow: hidden;
}

.form-split-content {
    flex: 1;
    padding: 40px;
    background: white;
}

.form-split-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    background-color: var(--card-color);
}

.form-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Стили для формы */
.form-container {
    width: 100%;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 14px;
    margin-bottom: 4px;
}

.optional-label {
    font-weight: normal;
    color: #999;
    font-size: 12px;
    margin-left: 5px;
}

.form-group .form-control {
    width: 100%;
    height: 42px;
    padding: 0 16px;
    font-size: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    box-sizing: border-box;
    line-height: normal;
}

.form-group textarea.form-control {
    height: auto;
    min-height: 100px;
    padding: 12px 16px;
}

.form-group .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-group.has-error .form-control {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.02);
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    color: white;
    height: 48px;
    padding: 0 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    width: 100%;
    border: 2px solid var(--primary-color);
    line-height: 44px;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.user-agreement {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
}

.user-agreement a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.user-agreement a:hover {
    text-decoration: underline;
}

.alert {
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
}

.alert-success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #27ae60;
}

.alert-warning {
    background: rgba(241, 196, 15, 0.1);
    border: 1px solid rgba(241, 196, 15, 0.3);
    color: #d35400;
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    color: #2980b9;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.g-recaptcha {
    margin: 10px 0;
    display: flex;
    justify-content: center;
    transform: scale(0.95);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1200px) {
    .sidebar-column {
        flex: 0 0 250px;
        min-width: 250px;
    }
    
    .ellipse-tab {
        min-width: 180px;
        padding: 10px 20px;
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    .page-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .sidebar-column {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
    }
    
    #main-block {
        padding: 30px;
    }
    
    .form-split {
        flex-direction: column;
    }
    
    .form-split-image {
        height: 300px;
        order: -1;
    }
    
    .form-split-content {
        padding: 30px;
    }
    
    .ellipse-tabs {
        flex-wrap: wrap;
        border-radius: 20px;
    }
    
    .ellipse-tab {
        flex: 1 1 auto;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    #main-block {
        padding: 20px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .ellipse-tabs-container {
        margin-bottom: 20px;
    }
    
    .ellipse-tab {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .form-split-content {
        padding: 25px;
    }
    
    .form-split-image {
        height: 250px;
    }
    
    .form-group {
        margin-bottom: 14px;
    }
    
    .form-group .form-control {
        height: 40px;
        font-size: 14px;
    }
    
    .btn-primary {
        height: 44px;
        font-size: 15px;
        line-height: 40px;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 24px;
    }
    
    .form-split-content {
        padding: 20px;
    }
    
    .form-split-image {
        height: 200px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group label {
        font-size: 13px;
        margin-bottom: 3px;
    }
    
    .form-group .form-control {
        height: 38px;
        padding: 0 14px;
        font-size: 14px;
    }
    
    .btn-primary {
        height: 42px;
        font-size: 14px;
        line-height: 38px;
    }
    
    .g-recaptcha {
        transform: scale(0.85);
    }
}
