/* ======== ОБЩИЕ СТИЛИ И ПЕРЕМЕННЫЕ ======== */
:root {
    --primary-color: #f3a600; /* Фирменный желтый/золотой */
    --dark-blue: #0d1b3f; /* Темно-синий для фона и текста */
    --secondary-blue: #1a2952; /* Чуть светлее синий для карточек */
    --text-color: #333;
    --text-light: #f1f1f1;
    --background-light: #f8f9fa;
    --border-color: #e0e0e0;
    --font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: #fff;
    line-height: 1.6;
}

body.locked {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3 {
    font-weight: 600;
}

/* Анимация появления */
.animated {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animated.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hide {
    display: none!important;
}

/* ======== СТИЛИ КОМПОНЕНТОВ ======== */
.btn {
    padding: 12px 28px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #e09800;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 166, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--dark-blue);
    border: 2px solid var(--dark-blue);
}

.btn-secondary:hover {
    background-color: var(--dark-blue);
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: 600;
    padding: 10px 24px;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 38px;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

/* ======== HEADER ======== */
.header {
    background-color: #fff;
    /*padding: 15px 0;*/
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F8B427;
    padding: 43px 75px;
    clip-path: polygon(0 0, 100% 0%, 77% 100%, 0% 100%);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-blue);
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    transition: 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.btn-wrapper .btn-primary {
    font-size: 16px;
    font-weight: 700;
    padding: 14px 28px 14px;
    border-radius: 5px;
    color: var(--text-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--dark-blue);
    margin: 5px 0;
    transition: 0.4s;
}

/* ======== HERO SECTION ======== */
.hero {
    background-color: var(--background-light);
    padding: 80px 0;
}

.hero-container {
    display: flex;
    /*align-items: center;*/
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 42px;
    line-height: 1.3;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    color: #444;
}

.hero-features {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    border-left: 3px solid var(--primary-color);
    padding-left: 20px;
}

.feature-item strong {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-blue);
}

.feature-item span {
    font-size: 15px;
    color: #666;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    flex-basis: 45%;
}

.hero-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ======== ABOUT (Бизнес-модель) ======== */
.about {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.about-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    background-color: rgba(243, 166, 0, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-title {
    font-size: 20px;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.card-text {
    font-size: 15px;
    color: #555;
}

/* ======== FINANCIALS (Финансовая модель и калькулятор) ======== */
.financials {
    background-color: var(--background-light);
    padding: 100px 0;
}

.financials-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: flex-start;
}

.breakdown-title, .calculator-title {
    font-size: 24px;
    color: var(--dark-blue);
    margin-bottom: 30px;
}

.chart {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.bar-segment {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.bar-segment:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
    z-index: 2;
}

.cost {
    background-color: #6c757d;
}

.company-profit {
    background-color: var(--secondary-blue);
}

.investor-profit {
    background-color: var(--primary-color);
}

.bar-label {
    text-align: center;
    opacity: 1;
}

.bar-label strong {
    display: block;
    font-size: 24px;
}

.bar-label span {
    font-size: 14px;
    font-weight: 400;
}

.chart-caption {
    margin-top: 20px;
    font-size: 15px;
    color: #555;
    text-align: center;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* НОВЫЕ СТИЛИ КАЛЬКУЛЯТОРА */
.investment-calculator {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 16px;
    color: #555;
}

#amount-display {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-color) 0%, #ddd 0%);
    border-radius: 5px;
    outline: none;
    transition: background 0.2s;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #fff;
    cursor: pointer;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.term-options {
    display: flex;
    background-color: #eee;
    border-radius: 10px;
    padding: 5px;
}

.term-radio-label {
    flex: 1;
}

.term-radio {
    text-align: center;
    padding: 12px 5px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #555;
}

.term-radio-input {
    display: none;
}

.term-radio-input:checked + .term-radio {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.calculator-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.result-box {
    background-color: var(--background-light);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.result-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.result-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-blue);
}

.result-box.total {
    background-color: var(--secondary-blue);
}

.result-box.total .result-label {
    color: #a9b3ce;
}

.result-box.total .result-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-full {
    width: 100%;
    margin-top: 30px;
}


/* ======== DOCUMENTS ======== */
.documents {
    padding: 100px 0;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.doc-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.doc-icon {
    height: 64px;
    margin-bottom: 20px;
}

.doc-title {
    font-size: 20px;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.doc-description {
    font-size: 15px;
    color: #555;
    margin-bottom: 25px;
    flex-grow: 1;
}

.doc-card .btn {
    margin-top: auto;
}

/* ======== WHY US / GUARANTEES ======== */
.why-us {
    background-color: var(--dark-blue);
    padding: 100px 0;
    color: #fff;
}

.why-us .section-title, .why-us .section-subtitle {
    color: #fff;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-us-card {
    background-color: var(--secondary-blue);
    padding: 30px;
    border-radius: 12px;
    border-top: 4px solid var(--primary-color);
}

.why-us-card .card-title {
    color: #fff;
    font-size: 20px;
    margin-bottom: 15px;
}

.why-us-card .card-text {
    color: var(--text-light);
    font-size: 15px;
}

/* ======== STEPS (Как начать) ======== */
.steps {
    padding: 100px 0;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 5%;
    right: 5%;
    height: 2px;
    background-color: var(--border-color);
    z-index: -1;
}

.step-item {
    flex-basis: 30%;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.step-title {
    font-size: 20px;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.step-text {
    font-size: 15px;
    color: #555;
}

/* ======== TEAM ======== */
.team {
    padding: 100px 0;
    background-color: var(--background-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-card {
    text-align: center;
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-name {
    font-size: 20px;
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.team-role {
    font-size: 15px;
    color: var(--primary-color);
    font-weight: 500;
}

/* ======== FAQ ======== */
.faq {
    padding: 100px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item summary {
    font-size: 18px;
    font-weight: 600;
    padding: 20px 0;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 30px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 5px;
    font-size: 24px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding-bottom: 20px;
    font-size: 16px;
    color: #555;
    line-height: 1.7;
}

/* ======== CTA (Финальный призыв) ======== */
.cta {
    background-image: linear-gradient(rgba(13, 27, 63, 0.9), rgba(13, 27, 63, 0.9)), url('https://images.unsplash.com/photo-1579546929518-9e396f3cc809?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-attachment: fixed;
    padding: 100px 0;
    color: #fff;
    text-align: center;
}

.cta .section-title, .cta .section-subtitle {
    color: #fff;
}

.cta-form .form-content {
    display: flex;
    gap: 20px;
    max-width: 800px;
    margin: 40px auto 0;
}

.cta-form input,
.cta-form textarea {
    flex: 1;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #4a5a82;
    background-color: rgba(26, 41, 82, 0.5);
    color: #fff;
    font-size: 16px;
}

.cta-form input::placeholder,
.cta-form textarea::placeholder {
    color: #a9b3ce;
    font-family: Arial;
    font-size: 16px;
}

/* ======== FOOTER ======== */
.footer {
    background-color: var(--dark-blue);
    color: var(--text-light);
    padding: 60px 0 30px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-top .footer-col:first-child p {
    margin-top: 20px;
}

.footer-top a {
    color: #a9b3ce;
    text-decoration: none;
    margin-bottom: 30px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
}

.footer-col p {
    font-size: 14px;
    color: #a9b3ce;
    margin-bottom: 20px;
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer a {
    color: #a9b3ce;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--primary-color);
}

.footer i {
    margin-right: 10px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid #4a5a82;
    font-size: 14px;
    color: #a9b3ce;
}

.footer-bottom a {
    color: #a9b3ce;
    text-decoration: none;
}

.footer-links ul {
    display: flex;
    align-items: center;
    column-gap: 20px;
}

.footer-links ul li {
    list-style-type: none;
}


/* ======== АДАПТИВНЫЕ СТИЛИ ======== */
@media (max-width: 992px) {
    .hamburger {
        display: block;
    }

    .header-nav.mobile {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 350px;
        height: 100vh;
        padding: 0 40px 0 10px;
        background: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: left 0.4s ease;
    }

    .header-nav .nav-list {
        display: none;
    }

    .header-nav.mobile .nav-list {
        display: block;
        margin-top: 40px;
    }

    .header-nav.mobile .nav-list li {
        width: 230px;
        margin-bottom: 25px;
        padding-bottom: 10px;
        border-bottom: 1px solid;
    }

    .header-nav.mobile .btn-wrapper {
        display: block;
        margin-top: 50px;
    }

    .header-nav.mobile .hamburger.active {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .header-nav.mobile .hamburger.active .bar1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .header-nav.mobile .hamburger.active .bar2 {
        opacity: 0;
    }

    .header-nav.mobile .hamburger.active .bar3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        flex-basis: auto;
        width: 100%;
        max-width: 500px;
        margin-top: 40px;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .financials-grid {
        grid-template-columns: 1fr;
    }

    .profit-breakdown {
        margin-bottom: 40px;
    }

    .documents-grid {
        grid-template-columns: 1fr;
    }

    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-container {
        flex-direction: column;
        gap: 40px;
    }

    .steps-container::before {
        display: none;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .cta-form {
        flex-direction: column;
    }

    /*.footer-grid {*/
    /*    grid-template-columns: repeat(2, 1fr);*/
    /*}*/
}

@media (max-width: 768px) {
    .header .btn-wrapper {
        display: none;
    }
    .cta-form .form-content {
        flex-direction: column;
    }
    .footer-top,
    .footer-bottom {
        display: block;
    }
    .footer-top .footer-col:not(:first-child) {
        margin-top: 40px;
    }
    .footer-bottom .footer-links {
        margin-top: 10px;
    }
}


@media (max-width: 576px) {
    .section-title {
        font-size: 30px;
    }

    .hero .hero-container,
    .hero .hero-features {
        display: block;

    }



    .hero-title {
        font-size: 32px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }

    /*.footer-grid {*/
    /*    grid-template-columns: 1fr;*/
    /*    text-align: center;*/
    /*}*/

    .logo {
        font-size: 20px;
    }

    .calculator-results {
        grid-template-columns: 1fr;
    }
}