/* ---------- RESET ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #2c2c2c;
    background-color: #fff;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.text-center {
    text-align: center;
}

.red {
    color: #e11a21;
}

/* ---------- КНОПКИ ---------- */
.btn {
    display: inline-block;
    background-color: #e11a21;
    color: #fff;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn:hover {
    background-color: #b01218;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #e11a21;
    color: #e11a21;
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: #e11a21;
    color: #fff;
}

.btn-block {
    width: 100%;
}

/* ---------- ВЕРХНЯЯ СЕРАЯ ПОЛОСА ---------- */
.top-bar {
    background: #f5f5f5;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    color: #333;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.top-bar__item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar__item i {
    color: #e11a21;
    width: 20px;
}

/* ---------- НАВИГАЦИЯ (ТЁМНАЯ, КАК ФУТЕР) ---------- */
.nav-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s;
}

.nav-bar.dark {
    background: #1a1a1a;
    border-bottom-color: #333;
}

.nav-bar.dark .logo-text,
.nav-bar.dark .nav-menu a,
.nav-bar.dark .question,
.nav-bar.dark .nav-contacts {
    color: #ccc;
}

.nav-bar.dark .nav-menu a:hover {
    color: #e11a21;
}

.nav-bar.dark .social-icons a {
    background: #333;
    color: #ccc;
}

.nav-bar.dark .social-icons a:hover {
    background: #e11a21;
    color: #fff;
}

.nav-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.nav-logo img {
    height: 40px;
}

.logo-text {
    font-weight: 600;
    font-size: 18px;
}

.nav-menu ul {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.nav-menu a {
    font-weight: 500;
    color: #2c2c2c;
}

.nav-contacts {
    display: flex;
    align-items: center;
    gap: 10px;
}

.question {
    color: #e11a21;
    font-weight: bold;
}

.social-icons {
    display: flex;
    gap: 8px;
}

.social-icons a {
    background: #f0f0f0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e11a21;
}

/* ---------- ЗАГОЛОВКИ СЕКЦИЙ ---------- */
.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    text-align: center;
}

/* ---------- ГЛАВНЫЙ БАННЕР ---------- */
.hero-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #fff 60%, #f9f0f0 100%);
}

.hero-section .container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    color: #555;
    margin-bottom: 30px;
}

.hero-buttons {
    margin-bottom: 30px;
}

.hero-features {
    display: flex;
    gap: 30px;
    font-weight: 500;
}

.hero-features i {
    color: #e11a21;
    margin-right: 8px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

/* ---------- ЛОГОТИПЫ ПЛАТЁЖНЫХ СИСТЕМ ---------- */
.payment-logos-section {
    padding: 40px 0;
    background: #fafafa;
}

.payment-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.payment-logos img {
    height: 80px;
    object-fit: contain;
    transition: 0.3s;
}

.payment-logos img:hover {
    transform: scale(1.05);
}

/* ---------- ТАЙМЛАЙН 3 КОЛОНКИ (картинки увеличены) ---------- */
.timeline-section {
    padding: 60px 0;
    position: relative;
}

.timeline-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    background: #e11a21;
    height: 0;
    transition: height 0.3s ease;
    top: 0;
    z-index: 1;
}

.timeline-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.timeline-col {
    flex: 1;
    display: flex;
    justify-content: center;
}

.timeline-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    padding: 20px;
    width: 90%;
    text-align: center;
    transition: 0.3s;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Обёртка для картинки, чтобы заполняла всю ширину */
.timeline-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.timeline-card:hover .timeline-img-wrapper img {
    transform: scale(1.02);
}

.timeline-card h3 {
    font-size: 24px;
    margin: 15px 0 10px;
    color: #e11a21;
}

.timeline-card p {
    font-size: 16px;
    color: #444;
}

.timeline-point {
    width: 70px;
    height: 70px;
    background: #e11a21;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 28px;
    z-index: 3;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Чередование */
.timeline-row.reverse .left {
    order: 1;
}
.timeline-row.reverse .center {
    order: 2;
}
.timeline-row.reverse .right {
    order: 3;
}

.timeline-button {
    margin-top: 20px;
}

/* ---------- О СЕРВИСЕ ---------- */
.about-section {
    padding: 60px 0;
    background: #f0f0f0;
}

.about-section .container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.about-content {
    flex: 1;
}

.about-content p {
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
    text-align: center;
}

/* ---------- ФОРМА (картинка растянута) ---------- */
.form-section {
    padding: 60px 0;
    background: #2c2c2c;
    color: #fff;
}

.form-section .container {
    display: flex;
    align-items: stretch;
    gap: 40px;
    flex-wrap: wrap;
}

.form-content {
    flex: 1;
}

.form-content .section-title {
    color: #fff;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ddd;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #555;
    border-radius: 6px;
    background: #fff;
    font-size: 16px;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #e11a21;
    outline: none;
    box-shadow: 0 0 0 3px rgba(225,26,33,0.3);
}

.form-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

/* ---------- ПРЕИМУЩЕСТВА ---------- */
.profit-section {
    padding: 60px 0;
    background: #fafafa;
}

.profit-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

.profit-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
    flex: 1;
    min-width: 250px;
    transition: 0.3s;
}

.profit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.profit-card i {
    font-size: 48px;
    color: #e11a21;
    margin-bottom: 20px;
}

.profit-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* ---------- ГАРАНТИИ ---------- */
.guarantee-section {
    padding: 60px 0;
}

.guarantee-section .container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.guarantee-content {
    flex: 1;
}

.guarantee-list {
    margin: 20px 0;
}

.guarantee-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.guarantee-list i {
    color: #e11a21;
    width: 24px;
}

.guarantee-image {
    flex: 1;
    text-align: center;
}

/* ---------- ТРИ ШАГА (лесенка) ---------- */
.steps-section {
    padding: 60px 0;
    background: #fafafa;
}

.steps-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 6px 14px rgba(0,0,0,0.05);
    transition: 0.3s;
    flex: 1;
    min-width: 250px;
}

.step-card:nth-child(1) { transform: translateY(0); }
.step-card:nth-child(2) { transform: translateY(20px); }
.step-card:nth-child(3) { transform: translateY(40px); }

@media (max-width: 768px) {
    .step-card:nth-child(n) { transform: translateY(0); }
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.step-number {
    font-size: 48px;
    font-weight: 800;
    color: #e11a21;
    opacity: 0.6;
    margin-bottom: 10px;
}

.step-card img {
    height: 150px;
    margin: 15px 0;
}

.step-card h3 {
    font-size: 22px;
    margin: 15px 0 5px;
}

.step-time {
    font-weight: 500;
    color: #e11a21;
    margin-top: 10px;
}

/* ---------- КАРУСЕЛЬ ОТЗЫВОВ ---------- */
.testimonial-carousel {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.carousel-slide {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.testimonial-card {
    flex: 0 0 100%;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.testimonial-card .stars {
    color: #f0ad4e;
    font-size: 20px;
    margin-bottom: 15px;
}

.testimonial-card .text {
    font-size: 18px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-card .author {
    font-weight: bold;
    color: #e11a21;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: 0.3s;
}

.carousel-btn:hover {
    background: #e11a21;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.carousel-dots {
    text-align: center;
    margin-top: 20px;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: #e11a21;
    transform: scale(1.2);
}

/* ---------- ФУТЕР ---------- */
.footer-main {
    background: #1a1a1a;
    color: #ccc;
    padding: 50px 0 30px;
}

.footer-main .container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 15px;
}

.footer-contact-title {
    margin: 20px 0 10px;
    font-weight: 600;
}

.footer-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.footer-contacts div {
    margin-bottom: 12px;
}

.footer-contacts i {
    width: 30px;
    color: #e11a21;
}

.footer-map {
    max-width: 100%;
    border-radius: 8px;
}

.map-link {
    display: inline-block;
    margin-top: 10px;
    color: #e11a21;
}

.footer-copyright {
    background: #111;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #aaa;
    margin-top: 30px;
}

/* ---------- КНОПКА "НАВЕРХ" ---------- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #e11a21;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: #b01218;
    transform: translateY(-3px);
}

/* ---------- АДАПТАЦИЯ ---------- */
@media (max-width: 992px) {
    .timeline-row {
        flex-direction: column;
        gap: 20px;
    }
    .timeline-col {
        width: 100%;
    }
    .timeline-card {
        width: 100%;
    }
    .timeline-line {
        left: 20px;
        transform: none;
    }
    .nav-bar .container {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .nav-menu ul {
        justify-content: center;
    }
    .nav-contacts {
        justify-content: center;
    }
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-features {
        justify-content: center;
    }
    .about-section .container,
    .form-section .container,
    .guarantee-section .container {
        flex-direction: column;
        text-align: center;
    }
    .form-content .section-title {
        text-align: center;
    }
    .guarantee-list li {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 26px;
    }
    .hero-content h1 {
        font-size: 32px;
    }
    .payment-logos img {
        height: 50px;
    }
    .step-card img {
        height: 100px;
    }
    .btn {
        padding: 10px 20px;
    }
    .timeline-point {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
    .timeline-img-wrapper {
        height: 150px;
    }
}