:root {
    --accent: #0056b3;
    --accent-dark: #004494;
    --text-main: #333333;
    --text-light: #666666;
    --bg-body: #f8f9fa;
    --bg-white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --radius: 8px;
    --transition: all 0.3s ease;
    --font-main: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid var(--accent);
    cursor: pointer;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

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

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    text-transform: uppercase;
}

.logo span { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    position: relative;
}

.nav-links a:hover { color: var(--accent); }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { width: 100%; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-block {
    text-align: right;
}

.phone-number {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
}

.phone-desc {
    font-size: 0.75rem;
    color: var(--text-light);
    display: block;
}

.mobile-menu-btn { display: none; font-size: 1.5rem; color: var(--text-main); cursor: pointer; }

.hero {
    padding-top: 140px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, #ffffff 0%, #eef2f6 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,86,179,0.05) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main);
}

.hero-text h1 span { color: var(--accent); }

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

.features {
    background: var(--bg-white);
    padding: 60px 0;
    margin-top: -50px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #e6f0fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-text h3,
.feature-text h4 { font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.feature-text p { font-size: 0.85rem; color: var(--text-light); }

.section { padding: 100px 0; }

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(0, 86, 179, 0.15);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 25px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.card-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.card-price {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 15px;
}

.card-link {
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.card-link:hover { gap: 10px; }

.blog-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(0, 86, 179, 0.1);
}
.blog-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.blog-card-title a { color: inherit; }
.blog-card-title a:hover { color: var(--accent); }
.blog-card-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
}
.blog-card-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}
.blog-single-date {
    display: block;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 8px;
}
.blog-single-content .content-text {
    max-width: 720px;
    line-height: 1.8;
}

.form-section {
    background: var(--accent);
    color: #fff;
    border-radius: 20px;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.form-text { flex: 1; }
.form-text h2 { font-size: 2rem; margin-bottom: 15px; }
.form-text p { opacity: 0.9; margin-bottom: 0; }

.form-wrapper {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.input-group { margin-bottom: 15px; }

.custom-input {
    width: 100%;
    padding: 14px;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

.custom-input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #bbb; }
.footer-links a:hover { color: #fff; }

.footer-contacts p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #bbb;
}
.footer-contacts i { color: var(--accent); }

.copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #777;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    border-radius: var(--radius);
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 3000;
    animation: toastIn 0.3s ease;
    max-width: 90%;
}
.toast.success { background: #28a745; color: #fff; }
.toast.error { background: #dc3545; color: #fff; }

.quiz-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 30px;
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow);
}
.quiz-step { display: block; }
.quiz-step.hidden { display: none; }
.quiz-q {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-main);
}
.quiz-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.quiz-opt {
    padding: 14px 24px;
    background: var(--bg-body);
    border: 2px solid #e0e0e0;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.quiz-opt:hover {
    border-color: var(--accent);
    background: rgba(0, 86, 179, 0.06);
    color: var(--accent);
}
.quiz-result {
    font-size: 1.15rem;
    margin-bottom: 24px;
    color: var(--text-main);
}

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

@media (max-width: 992px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-container { flex-direction: column; text-align: center; }
    .hero-text p { margin: 0 auto 30px; }
    .hero-buttons { justify-content: center; }
    .hero-image { display: none; }
    .form-section { flex-direction: column; text-align: center; padding: 40px 20px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-contacts p { justify-content: center; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        gap: 15px;
        text-align: center;
    }
    .nav-links.active { display: flex; }
    .header-actions { display: none; }
    .mobile-menu-btn { display: block; }
    .features-grid { grid-template-columns: 1fr; }
    .hero { padding-top: 100px; }
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
}
.modal-overlay.open { display: flex; opacity: 1; }

.modal-window {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 1.5rem;
}

.page-hero {
    padding-top: 140px;
    padding-bottom: 60px;
    background: linear-gradient(135deg, #ffffff 0%, #eef2f6 100%);
}
.page-hero h1 { font-size: 2.2rem; margin-bottom: 10px; }
.page-hero p { color: var(--text-light); font-size: 1.05rem; }

.privacy-section { margin-bottom: 40px; }
.privacy-section h2 { font-size: 1.5rem; margin-bottom: 15px; color: var(--accent); }
.privacy-section p { margin-bottom: 12px; color: var(--text-light); }

.contacts-list { list-style: none; }
.contacts-list li { margin-bottom: 20px; display: flex; align-items: flex-start; gap: 15px; }
.contacts-list i { color: var(--accent); margin-top: 4px; }
.contacts-list a { color: var(--accent); font-weight: 600; }
