/* ===============================
   СТИЛИ ДЛЯ САЙТА «СИСТЕМА»
   Версия 1.0
   Цвета: тёмно-синий (#0b2b4f), золотой (#c9a03d), красный (#c0392b)
   =============================== */

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

:root {
    --primary-dark: #0b2b4f;
    --primary-gold: #c9a03d;
    --accent-red: #c0392b;
    --gray-light: #f5f7fc;
    --gray-mid: #64748b;
    --white: #ffffff;
    --shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.02);
    --shadow-hover: 0 20px 30px -12px rgba(0,0,0,0.15);
}

body {
    font-family: 'Roboto', 'Montserrat', system-ui, -apple-system, sans-serif;
    background: var(--gray-light);
    color: #1e2a3e;
    line-height: 1.5;
}

a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    flex-wrap: wrap;
}
.logo a {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}
.logo span {
    color: var(--primary-gold);
}
.nav {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}
.nav a {
    color: var(--primary-dark);
    font-weight: 500;
}
.nav a:hover {
    color: var(--primary-gold);
}
.nav .btn-outline {
    border: 2px solid var(--primary-gold);
    padding: 6px 16px;
    border-radius: 30px;
}
.nav .btn-outline:hover {
    background: var(--primary-gold);
    color: white;
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary-dark);
}
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a4a7a 100%);
    color: white;
    padding: 60px 0;
    border-radius: 0 0 30px 30px;
    margin-bottom: 40px;
}
.hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.hero-text {
    flex: 1;
}
.hero-text h1 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero-text .gold {
    color: var(--primary-gold);
}
.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: bold;
    transition: 0.2s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}
.btn-primary {
    background: var(--accent-red);
    color: white;
}
.btn-primary:hover {
    background: #a82315;
    transform: translateY(-2px);
}
.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}
.hero-stats {
    flex: 0.8;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    padding: 30px;
    border-radius: 30px;
    text-align: center;
}
.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-gold);
}
.expertise {
    padding: 40px 0;
    background: white;
}
.expertise-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    text-align: center;
}
.expertise-item {
    flex: 1;
    background: var(--gray-light);
    padding: 30px 20px;
    border-radius: 24px;
}
.expertise-item .number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-gold);
}
.features {
    padding: 60px 0;
    background: white;
    text-align: center;
}
.section-title {
    font-size: 32px;
    margin-bottom: 50px;
    color: var(--primary-dark);
}
.features-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}
.feature-card {
    background: var(--gray-light);
    padding: 30px 20px;
    border-radius: 24px;
    flex: 1;
    min-width: 220px;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.calculator {
    background: var(--gray-light);
    padding: 60px 0;
    text-align: center;
}
.calc-box {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 30px;
    box-shadow: var(--shadow);
}
.calc-box input {
    width: 100%;
    padding: 12px;
    margin: 10px 0 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
}
.calc-result {
    background: var(--primary-dark);
    color: white;
    padding: 15px;
    border-radius: 20px;
    margin-top: 20px;
}
.services {
    padding: 60px 0;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.story {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.story:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.story .title {
    font-size: 1.3rem;
    margin-bottom: 15px;
}
.service-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-red);
    margin: 15px 0;
}
.story .btn {
    display: inline-block;
    background: var(--primary-dark);
    color: white;
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: bold;
}
.story .btn:hover {
    background: var(--primary-gold);
    color: var(--primary-dark);
}
.cases {
    padding: 60px 0;
    background: white;
}
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.case-item {
    background: var(--gray-light);
    border-radius: 20px;
    padding: 20px;
    transition: 0.2s;
}
.case-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.faq {
    padding: 60px 0;
    background: var(--gray-light);
}
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: white;
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
}
.faq-question {
    padding: 18px 20px;
    font-weight: bold;
    background: var(--primary-dark);
    color: white;
    cursor: pointer;
    position: relative;
}
.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 24px;
}
.faq-item.active .faq-question::after {
    content: '-';
}
.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
    color: #333;
}
.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 300px;
}
.callback {
    background: var(--primary-dark);
    color: white;
    padding: 60px 0;
    text-align: center;
}
.callback-form {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 30px;
}
.callback-form input, .callback-form textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 30px;
    border: none;
}
.site-footer {
    background: #0a1c2c;
    color: #aaa;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 40px;
}
.cookie-notice {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    margin: 0 auto;
    background: #1e293b;
    backdrop-filter: blur(10px);
    color: #f1f5f9;
    padding: 20px 24px;
    border-radius: 20px;
    z-index: 9999;
    border: 1px solid rgba(201,160,61,0.3);
}
.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.cookie-btn {
    padding: 8px 18px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}
.cookie-accept-all { background: #27ae60; color: white; }
.cookie-accept-necessary { background: #f39c12; color: white; }
.cookie-reject { background: #e74c3c; color: white; }
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}
.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    position: relative;
}
.modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
}
@media (max-width: 768px) {
    .nav { display: none; }
    .mobile-menu-btn { display: block; }
    .cases-grid { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 32px; }
}
@media (max-width: 480px) {
    .hero-text h1 { font-size: 28px; }
}
/* ========== СТИЛИ ДЛЯ МОДАЛЬНОЙ ФОРМЫ (СРОЧНЫЙ ВОПРОС) ========== */
.modal-content .quick-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 10px;
}

.modal-content .form-field {
    text-align: left;
}

.modal-content .form-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.9rem;
}

.modal-content .form-field input,
.modal-content .form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: 0.2s;
    background: #fff;
}

.modal-content .form-field input:focus,
.modal-content .form-field textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(201, 160, 61, 0.2);
}

.modal-content .consent-field {
    margin: 5px 0;
}

.modal-content .checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: normal;
    color: #2c3e50;
}

.modal-content .checkbox-label input {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary-gold);
}

.modal-content .submit-btn {
    width: 100%;
    background: var(--accent-red);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 5px;
}

.modal-content .submit-btn:hover {
    background: #a82315;
    transform: translateY(-2px);
}

.modal-content .form-status {
    margin-top: 12px;
    text-align: center;
    font-size: 0.85rem;
    min-height: 40px;
}

.modal-footer-note {
    margin-top: 20px;
    font-size: 0.75rem;
    color: #6c757d;
    text-align: center;
}

.modal-footer-note a {
    color: var(--primary-gold);
    text-decoration: underline;
}
/* ========== СТИЛИ ДЛЯ МОДАЛЬНОЙ ФОРМЫ (СРОЧНЫЙ ВОПРОС) ========== */
.quick-modal-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 15px;
}

.quick-modal-form .form-row {
    text-align: left;
}

.quick-modal-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.9rem;
}

.quick-modal-form input,
.quick-modal-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    transition: 0.2s;
}

.quick-modal-form input:focus,
.quick-modal-form textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(201, 160, 61, 0.2);
}

.quick-modal-form .consent-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 5px 0;
}

.quick-modal-form .consent-row input {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--primary-gold);
}

.quick-modal-form .consent-label {
    margin: 0;
    font-weight: normal;
    font-size: 0.85rem;
    cursor: pointer;
    color: #2c3e50;
}

.quick-modal-form .consent-label a {
    color: var(--primary-gold);
    text-decoration: underline;
}

.quick-modal-form .submit-btn {
    width: 100%;
    background: var(--accent-red);
    border: none;
    padding: 12px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 5px;
}

.quick-modal-form .submit-btn:hover {
    background: #a82315;
    transform: translateY(-2px);
}

.quick-modal-form .form-status {
    margin-top: 10px;
    text-align: center;
    font-size: 0.85rem;
    min-height: 40px;
}

.modal-footer-note {
    margin-top: 20px;
    font-size: 0.75rem;
    color: #6c757d;
    text-align: center;
}

.modal-footer-note a {
    color: var(--primary-gold);
    text-decoration: underline;
}