* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #FED6BC;
    --bg-secondary: #fce8d8;
    --bg-tertiary: #fae0ca;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --border: #e8c9b0;
    --success: #34c759;
    --error: #ff3b30;
    
    /* Glass effect colors */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero Section (главная страница) */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    background: var(--bg-primary);
    position: relative;
}

.hero-content {
    max-width: 980px;
    text-align: left;
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease-out;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 60px 50px;
    box-shadow: 0 8px 32px var(--glass-shadow);
}

.hero-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 24px;
    color: var(--text-primary);
    line-height: 1.05;
    animation: slideUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.75rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 500;
    line-height: 1.4;
    animation: slideUp 0.8s ease-out 0.1s both;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.6;
    max-width: 680px;
    font-weight: 500;
    animation: slideUp 0.8s ease-out 0.2s both;
}

.cta-button {
    display: inline-block;
    padding: 14px 28px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-size: 1.0625rem;
    font-weight: 400;
    border-radius: 980px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
    animation: slideUp 0.8s ease-out 0.3s both;
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.cta-button:active {
    transform: scale(0.98);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Container (страница доноса) */
.container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 80px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.6s ease-out;
}

main {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px var(--glass-shadow);
}

header {
    text-align: left;
    margin-bottom: 60px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 32px;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0;
}

.back-link {
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 32px;
    transition: color 0.2s ease;
    font-size: 0.9375rem;
    font-weight: 400;
}

.back-link:hover {
    color: var(--accent);
}

h1 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.05;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    font-weight: 500;
}

main {
    flex: 1;
    margin-bottom: 60px;
}

form {
    margin-bottom: 30px;
}

textarea {
    width: 100%;
    min-height: 320px;
    padding: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.0625rem;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.6;
}

textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15), 0 8px 24px var(--glass-shadow);
}

textarea::placeholder {
    color: var(--text-secondary);
}

button {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    border: none;
    border-radius: 980px;
    color: white;
    font-size: 1.0625rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
}

button:hover {
    background: var(--accent-hover);
    transform: scale(1.01);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.4);
}

button:active {
    transform: scale(0.99);
}

button:disabled {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
}

.status {
    padding: 16px 20px;
    border-radius: 12px;
    text-align: left;
    margin-top: 20px;
    animation: slideUp 0.3s ease-out;
}

.status.success {
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.2);
    color: var(--success);
}

.status.error {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.2);
    color: var(--error);
}

.hidden {
    display: none;
}

footer {
    text-align: left;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 400;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0;
}

.main-footer {
    position: absolute;
    bottom: 40px;
    left: 40px;
    text-align: left;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 400;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
        letter-spacing: -1px;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.0625rem;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .container {
        padding: 40px 20px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .hero-content {
        text-align: left;
    }
    
    .main-footer {
        left: 20px;
        bottom: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group.toggle-group {
        justify-content: flex-start;
    }
    
    .file-preview-image {
        max-width: 150px;
        max-height: 150px;
    }
}

/* Новые стили для формы */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.form-group {
    flex: 1;
}

.form-group.toggle-group {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

input[type="text"] {
    width: 100%;
    padding: 14px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.0625rem;
    font-family: inherit;
    margin-bottom: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15), 0 8px 24px var(--glass-shadow);
}

input[type="text"]::placeholder {
    color: var(--text-secondary);
}

/* Toggle переключатель */
.toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 26px;
    background: var(--bg-secondary);
    border-radius: 13px;
    transition: background 0.3s;
    border: 1px solid var(--border);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider {
    background: var(--accent);
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle-text {
    font-size: 0.9375rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Поля контактов */
#contactFields {
    margin-bottom: 20px;
}

#contactFields input {
    margin-bottom: 15px;
}

/* Загрузка файлов */
.file-upload-section {
    margin-bottom: 20px;
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
    font-size: 1rem;
}

.file-upload-label:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: var(--accent);
}

.file-upload-icon {
    font-size: 1.2rem;
}

.file-upload-text {
    font-weight: 500;
}

.file-preview {
    margin-top: 15px;
}

.file-preview-item {
    position: relative;
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 15px;
}

.file-preview-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 12px;
    border: 1px solid var(--border);
    object-fit: cover;
}

.file-remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--error);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.file-remove-btn:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

.file-name {
    margin-top: 5px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
    word-break: break-all;
}

/* Модальное окно предупреждения */
.warning-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.warning-modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
    text-align: center;
}

.warning-modal-content h2 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.warning-modal-content p {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 30px;
    text-align: left;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.warning-modal-content .agree-button,
.warning-modal-content .cancel-button {
    width: auto;
    min-width: 150px;
    padding: 12px 24px;
    border-radius: 980px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.warning-modal-content .agree-button {
    background: var(--accent);
    color: white;
}

.warning-modal-content .agree-button:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.warning-modal-content .cancel-button {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.warning-modal-content .cancel-button:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .warning-modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .warning-modal-content h2 {
        font-size: 1.5rem;
    }
    
    .warning-modal-content p {
        font-size: 1rem;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .warning-modal-content .agree-button,
    .warning-modal-content .cancel-button {
        width: 100%;
        margin: 0;
    }
}
