:root {
    --navy: #0a1628;
    --navy-mid: #132a4a;
    --navy-light: #1e3a5f;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    -webkit-text-size-adjust: 100%;
}

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

.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    padding: 15px 0;
}

.header-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 165px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    display: block;
}

.logo-text {
    display: none;
}

.nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--navy-mid);
}

.header-phone {
    color: #333;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

a.header-phone:hover {
    color: var(--navy-mid);
}

.btn-consultation {
    background: var(--navy-mid);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-consultation:hover {
    background: var(--navy);
}

.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy-light) 100%);
    color: #fff;
    padding: 80px 0;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #fff;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    color: #fff;
}

.hero-image-block {
    text-align: center;
}

.hero-image.hero-image-bg {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.hero-caption {
    margin-top: 16px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #fff !important;
    text-transform: uppercase;
}

.hero-caption a {
    color: #c9a227;
    text-decoration: none;
}

.hero-caption a:hover {
    text-decoration: underline;
}

.btn-primary {
    background: #fff;
    color: var(--navy);
    border: none;
    padding: 16px 40px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary.shine::before,
.btn-consultation.shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    transition: left 0.6s ease;
}

.btn-primary.shine:hover::before,
.btn-consultation.shine:hover::before {
    left: 100%;
}

.btn-primary.shine:hover,
.btn-consultation.shine:hover {
    animation: shineGlow 2s infinite;
}

@keyframes shineGlow {
    0%, 100% { box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
    50% { box-shadow: 0 5px 25px rgba(255,255,255,0.3), 0 0 30px rgba(255,255,255,0.2); }
}

.hero-note {
    font-size: 14px;
    opacity: 0.9;
    color: #fff;
}

.hero-note_small {
    font-size: 13px;
    opacity: 0.85;
    margin-top: 8px;
}

.stats {
    padding: 60px 0;
    background: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px 16px;
    text-align: center;
}

.stat-item:nth-child(1) {
    grid-column: 1 / 3;
}
.stat-item:nth-child(2) {
    grid-column: 3 / 5;
}
.stat-item:nth-child(3) {
    grid-column: 5 / 7;
}

.stat-item:nth-child(4) {
    grid-column: 2 / 4;
}
.stat-item:nth-child(5) {
    grid-column: 4 / 6;
}

.stat-item {
    padding: 24px 16px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: var(--navy-mid);
    margin-bottom: 12px;
    line-height: 1.2;
    flex-shrink: 0;
}

.stat-label {
    font-size: 14px;
    color: #666;
    line-height: 1.45;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.steps-section {
    padding: 80px 0;
    background: #fff;
}

.steps-list {
    list-style: none;
    padding-left: 0;
    max-width: 800px;
    margin: 0 auto;
    counter-reset: step;
}

.steps-list__item {
    position: relative;
    padding: 1rem 0 1rem 3rem;
    font-size: 18px;
    color: #666;
    line-height: 1.7;
    border-bottom: 1px solid #eee;
}

.steps-list__item:last-child {
    border-bottom: none;
}

.steps-list__item::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 1rem;
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    background: var(--navy-mid);
    color: #fff;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
}

.steps-list__item strong {
    color: #333;
}

.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    color: #fff;
    text-align: center;
}

.section-title_light {
    color: #fff !important;
    margin-bottom: 1rem;
}

.cta-section__text {
    font-size: 20px;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.cta-section .btn-primary {
    background: #fff;
    color: var(--navy);
}

.help-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
    text-align: center;
}

.help-section .section-title {
    margin-bottom: 1rem;
}

.help-text {
    font-size: 19px;
    color: #555;
    max-width: 720px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.help-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    text-align: left;
}

.help-list li {
    position: relative;
    padding: 1.25rem 1.25rem 1.25rem 3.25rem;
    margin: 0;
    font-size: 16px;
    color: #444;
    line-height: 1.6;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-left: 4px solid var(--navy-mid);
    transition: box-shadow 0.2s, transform 0.2s;
}

.help-list li:hover {
    box-shadow: 0 4px 20px rgba(10, 22, 40, 0.12);
    transform: translateY(-2px);
}

.help-list li::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 1.35rem;
    width: 8px;
    height: 8px;
    background: var(--navy-mid);
    border-radius: 50%;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

.why-us {
    padding: 80px 0;
    background: #f8f9fa;
}

.why-us-slider-wrapper {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.why-us-slider {
    overflow: hidden;
    border-radius: 10px;
    width: 100%;
}

.why-us-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 400%;
}

.why-us-item {
    text-align: center;
    padding: 30px;
    flex: 0 0 25%;
    width: 25%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.why-us-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.why-us-item p {
    color: #666;
    line-height: 1.8;
}

.services {
    padding: 40px 0 80px;
    background: #f8f9fa;
}

.services-slider-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.services-slider {
    overflow: hidden;
    border-radius: 10px;
    width: 100%;
}

.services-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 500%;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    flex: 0 0 20%;
    width: 20%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.service-card p {
    color: #666;
    line-height: 1.8;
    flex-grow: 1;
}

.cases {
    padding: 80px 0;
    background: #fff;
}

.cases-slider-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.cases-slider {
    overflow: hidden;
    border-radius: 10px;
    width: 100%;
}

.cases-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 700%;
}

.case-item {
    flex: 0 0 14.2857%;
    width: 14.2857%;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.case-content {
    padding: 30px;
    flex-grow: 1;
    border-left: 4px solid var(--navy-mid);
}

.case-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.case-item p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}

.case-status {
    display: inline-block;
    background: #28a745;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(0,0,0,0.7);
}

.cases-slider-btn,
.cases-slider-prev,
.cases-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cases-slider-btn:hover,
.cases-slider-prev:hover,
.cases-slider-next:hover {
    background: rgba(0,0,0,0.7);
}

.cases-slider-prev { left: -70px; }
.cases-slider-next { right: -70px; }
.why-us-prev { left: -60px; }
.why-us-next { right: -60px; }
.services-prev { left: -60px; }
.services-next { right: -60px; }

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dot.active {
    background: var(--navy-mid);
}

.cases-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.case-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s;
}

.case-dot.active {
    background: var(--navy-mid);
}

.reviews {
    padding: 80px 0;
    background: #f8f9fa;
}

.reviews-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.review-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.review-text {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.review-author {
    font-weight: 600;
    color: #333;
}

.footer {
    background: var(--navy);
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.footer-nav a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.footer-domain {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #c9a227;
}

.footer-info h3 {
    margin-bottom: 20px;
    font-size: 24px;
}

.footer-info p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-legal {
    margin-top: 16px;
    font-size: 14px;
    opacity: 0.95;
}

.footer-info a {
    color: #fff;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

.footer-phone {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    overflow: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #000;
}

.modal-content h2 {
    margin-bottom: 10px;
    color: #333;
}

.modal-subtitle {
    color: #666;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    color: #333;
}

.form-group input:focus {
    outline: none;
    border-color: var(--navy-mid);
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    cursor: pointer;
    color: #333;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
}

.quiz-modal {
    max-width: 600px;
}

.quiz-container {
    position: relative;
    min-height: 400px;
}

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
}

.quiz-step h2 {
    margin-bottom: 30px;
    color: #333;
}

.quiz-subtitle {
    color: #666;
    margin-bottom: 20px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quiz-option {
    padding: 15px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-align: left;
    transition: all 0.3s;
    color: #333;
}

.quiz-option:hover {
    background: #e9ecef;
    border-color: var(--navy-mid);
}

.quiz-option.selected {
    background: var(--navy-mid);
    color: #fff;
    border-color: var(--navy-mid);
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn-back,
.btn-next {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-back {
    background: #f8f9fa;
    color: #333;
}

.btn-back:hover {
    background: #e9ecef;
}

.btn-next {
    background: var(--navy-mid);
    color: #fff;
}

.btn-next:hover {
    background: var(--navy);
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--navy-mid);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.scroll-top.visible {
    display: flex;
}

.scroll-top:hover {
    background: var(--navy);
    transform: translateY(-3px);
}

.form-success h3 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 24px;
}

.form-success p {
    color: #666;
    line-height: 1.8;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
        width: 100%;
        max-width: 100%;
    }

    .hero-title,
    .hero-subtitle,
    .section-title,
    .help-text,
    .why-us-item h3,
    .why-us-item p,
    .service-card h3,
    .service-card p,
    .case-item h3,
    .case-item p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-image-block {
        order: -1;
    }

    .hero-title {
        font-size: 22px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 15px;
        line-height: 1.45;
    }

    .hero-caption {
        font-size: 20px;
    }

    .nav {
        display: none;
    }

    .header-phone {
        display: none;
    }

    .header-main-content {
        justify-content: space-between;
    }

    .logo-img {
        height: 85px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item:nth-child(1),
    .stat-item:nth-child(2),
    .stat-item:nth-child(3),
    .stat-item:nth-child(4),
    .stat-item:nth-child(5) {
        grid-column: auto;
    }

    .stat-item {
        min-height: auto;
    }

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

    .why-us-slider-wrapper,
    .services-slider-wrapper,
    .cases-slider-wrapper {
        max-width: 100%;
        padding: 0 48px;
        overflow: visible;
    }

    .cases-slider-prev,
    .why-us-prev,
    .services-prev {
        left: 8px !important;
        right: auto !important;
        width: 40px;
        height: 40px;
        font-size: 24px;
        z-index: 15;
    }

    .cases-slider-next,
    .why-us-next,
    .services-next {
        left: auto !important;
        right: 8px !important;
        width: 40px;
        height: 40px;
        font-size: 24px;
        z-index: 15;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .why-us-item,
    .service-card {
        padding: 24px 16px;
    }
}

@media (max-width: 480px) {
    html, body {
        min-width: 0;
    }
    .hero-title {
        font-size: 20px;
    }
}
