:root {
    --drone-blue: #8bbcdc;
    --accent-blue: #4fc3f7;
    --robot-gold: #ddb537;
    --dark-bg: #2c3e50;
    --light-bg: #f8f9fa;
    --border-color: #e1e5eb;
    --text-dark: #333;
    --text-light: #666;
    --success: #28a745;
    --shadow: 0 5px 20px rgba(0,0,0,0.08);

    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    color: #0f172a;
    line-height: 1.6;
}

.feedback-container {
    max-width: 1200px;
    margin: 100px auto;
    width: 100%;
    background: white;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    padding: 48px;
    animation: fadeIn 0.5s ease-out;
    border: 1px solid #f1f5f9;
}

.feedback-container .article-image {
    margin: -48px -48px 20px -48px;
    border-radius: 38px 38px 0 0;
    height: auto;
}

.agreements-title {
    margin-bottom: 16px;
    color: #334155; 
    font-weight: 600; 
    display: flex; 
    align-items: center; 
    gap: 8px;
}

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

/* Заголовок */
.header {
    text-align: center;
    margin-bottom: 48px;
}

.header h1 {
    color: var(--dark-bg);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.header p {
    font-size: 1.2em;
    color: #475569;
    font-weight: 400;
}

.navbar {
    background: var(--dark-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 179, 0, 0.2);
}

/* Выбор ОС */
.os-selection {
    margin-bottom: 48px;
}

.os-title {
    font-size: 1.1em;
    color: #334155;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.os-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.os-card {
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.os-card:hover {
    border-color: #3b82f6;
    background: #f8fafc;
    transform: translateY(-2px);
}

.os-card.selected {
    border-color: #3b82f6;
    background: #f0f9ff;
    border-width: 1.5px;
}

.os-card i {
    font-size: 44px;
    margin-bottom: 16px;
}

.os-card .fa-windows {
    color: #00a4ef;
}

.os-card .fa-linux {
    color: #f97316;
}

.os-card .fa-apple {
    color: #64748b;
}

.os-card h3 {
    font-size: 1.25em;
    color: #0f172a;
    margin-bottom: 8px;
    font-weight: 600;
}

.os-card p {
    color: #64748b;
    font-size: 0.9em;
    margin-bottom: 4px;
}

.os-card .check-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    color: #3b82f6;
    font-size: 1.1em;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.os-card.selected .check-icon {
    opacity: 1;
}

/* Форма */
.form-section {
    background: #f8fafc;
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid #e2e8f0;
}

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

.form-group label {
    display: block;
    font-size: 0.95em;
    color: #334155;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-size: 1em;
    transition: color 0.2s ease;
}

.input-wrapper input, .input-wrapper select {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1em;
    transition: all 0.2s ease;
    background: white;
    font-family: inherit;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.input-wrapper input:hover {
    border-color: #94a3b8;
}

.input-wrapper:focus-within i {
    color: #3b82f6;
}

.input-wrapper input.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.error-message {
    color: #ef4444;
    font-size: 0.85em;
    margin-top: 8px;
    margin-left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Соглашения */
.agreements {
    margin-bottom: 32px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 4px 0;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #3b82f6;
    border-radius: 6px;
}

.checkbox-item .checkbox-text {
    color: #334155;
    line-height: 1.5;
    flex: 1;
    font-size: 0.95em;
}

.checkbox-item .checkbox-text a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.checkbox-item .checkbox-text a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Кнопка скачивания */
.submit-btn {
    width: 100%;
    padding: 18px 30px;
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #1e293b;
}

.submit-btn:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

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

.submit-btn i {
    font-size: 1.1em;
}

.submit-btn.loading {
    opacity: 0.9;
    cursor: not-allowed;
    background: #334155;
}

.submit-btn.loading i {
    animation: spin 0.8s linear infinite;
}

.form-select {
  width: 100%;
  padding: 10px 16px;
  appearance: none;
}

.chevron {
  position: absolute;
  right: 12px; /* Отступ от правого края — вот твой контроль */
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

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

/* Уведомление об успехе */
.success-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    color: #0f172a;
    padding: 20px 28px;
    border-radius: 20px;
    box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 16px;
    animation: slideIn 0.3s ease-out;
    z-index: 1000;
    border: 1px solid #e2e8f0;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.success-notification i {
    font-size: 1.5em;
    color: #10b981;
}

.success-notification.hide {
    animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideOut {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 28px;
    padding: 40px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.2);
    border: 1px solid #f1f5f9;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h2 {
    color: #0f172a;
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #64748b;
    transition: color 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.modal-close:hover {
    color: #ef4444;
    background: #f1f5f9;
}

.modal-body {
    color: #334155;
    line-height: 1.7;
}

.modal-body h3 {
    color: #0f172a;
    margin: 28px 0 12px;
    font-size: 1.2em;
    font-weight: 600;
}

.modal-body p {
    margin-bottom: 16px;
    color: #475569;
}

/* Футер */
footer {
    background: rgba(10, 25, 41, 0.9);
    border-top: 1px solid rgba(79, 195, 247, 0.1);
    color: #ecf0f1;
}

.footer-column h4 {
    color: var(--accent-blue);
}

.footer-column a, .footer-column div {
    color: rgba(224, 247, 250, 0.8);
}

.footer-column a:hover {
    color: var(--accent-blue);
}

.footer-info {
    margin-top: 32px;
    text-align: center;
    color: #64748b;
    font-size: 0.9em;
    border-top: 1px solid #e2e8f0;
    padding-top: 28px;
}

.footer-info a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.footer-info a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Badge */
.version-badge {
    display: inline-block;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.8em;
    color: #475569;
    margin-top: 8px;
    font-weight: 500;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.2em;
    }

    .os-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .os-card {
        display: flex;
        align-items: center;
        text-align: left;
        padding: 20px;
    }

    .os-card i {
        margin-bottom: 0;
        margin-right: 16px;
        font-size: 36px;
    }

    .os-card .check-icon {
        position: relative;
        top: auto;
        right: auto;
        margin-left: auto;
    }
}

@media (max-width: 1024px) {

    .form-section {
        padding: 24px;
    }

    .page-content {
        padding: 8px;
    }

    .feedback-container {
        padding: 14px;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .header p {
        font-size: 1em;
    }

    .submit-btn {
        font-size: 1em;
        padding: 16px;
    }

    .modal-content {
        padding: 24px;
    }
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Стили для ссылок */
.legal-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
}

.legal-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.legal-links a:hover {
    color: #3b82f6;
}

.legal-links i {
    font-size: 0.9em;
}
