/* Подключение шрифтов */
/* Подключение шрифта Bebas Neue Cyrillic */
@font-face {
    font-family: 'Bebas Neue Cyrillic';
    src: url('../fonts/BebasNeueCyrillicSubset.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Переменные */
:root {
    --container-width: 1200px;
    --container-padding: 20px;
    
    --color-primary: #2d4a7c;
    --color-primary-light: #4a6ba8;
    --color-bg-dark: #1a2332;
    --color-bg-light: #d4d9e3;
    --color-text-light: #ffffff;
    --color-text-dark: #2d4a7c;
    
    --btn-gradient: linear-gradient(135deg, #3d5fa8 0%, #2a4580 100%);
}

/* Базовые стили */
body {
    font-family: 'Bebas Neue Cyrillic', sans-serif;
    overflow-x: hidden;
    background-color: var(--color-bg-dark);
    background-image: url('../images/background.webp');
    background-size: 100% 100%;
    background-attachment: scroll;
    background-repeat: no-repeat;
    background-position: top center;
    color: var(--color-text-light);
    min-height: 100vh;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Кнопки */
.btn {
    font-family: 'Bebas Neue Cyrillic', sans-serif;
    font-size: 24px;
    letter-spacing: 1px;
    padding: 19px 30px;
    border-radius: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 297px;
    height: 74px;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    box-shadow: 0px 4px 20.2px 0px rgba(85, 98, 183, 0.8),
                inset 0px 0px 15.6px 0px rgba(255, 255, 255, 0.3);
    color: #ffffff;
    position: relative;
    background: linear-gradient(180deg, rgba(72, 89, 207, 1) 0%, rgba(21, 37, 147, 1) 100%);
}

.btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/text-texture.png'),
                      linear-gradient(180deg, rgba(72, 89, 207, 1) 0%, rgba(21, 37, 147, 1) 100%),
                      linear-gradient(180deg, rgba(85, 98, 183, 1) 0%, rgba(38, 43, 81, 1) 100%);
    background-size: 200px 200px, 100% 100%, 100% 100%;
    background-repeat: repeat, no-repeat, no-repeat;
    background-blend-mode: multiply, normal, normal;
    border-radius: 11px;
    z-index: 0; opacity:0.35; mix-blend-mode:overlay;
}

.btn--primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.25);
    mix-blend-mode: overlay;
    border-radius: 11px;
    z-index: -1;
    pointer-events: none;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0px 6px 24px 0px rgba(85, 98, 183, 1),
                inset 0px 0px 15.6px 0px rgba(255, 255, 255, 0.4);
}

.btn--primary:active {
    transform: translateY(0);
}

/* ========== HEADER ========== */
.header {
    padding: 20px 0 10px;
}

.header__logo {
    max-width: 500px;
    height: auto;
}

.header__logo img {
    width: 100%;
    height: auto;
    max-height: 142px;
    object-fit: contain;
}

/* ========== HERO SECTION ========== */
.hero {
    padding: 40px 0 60px;
}

.hero__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero__text {
    flex: 1;
    max-width: 550px;
}

.hero__title {
    font-size: 131px;
    line-height: 0.84;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 400;
    color: #c1c7dd;
}

.hero__subtitle {
    font-size: 31px;
    line-height: 1.2;
    letter-spacing: 3%;
    margin-bottom: 35px;
    opacity: 0.85;
}

.hero__features {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
}

.hero__feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 25px;
}

.hero__feature + .hero__feature {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 25px;
}

.hero__feature-icon {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
}

.hero__feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero__feature-text {
    display: flex;
    flex-direction: column;
    position: relative;
}

.hero__feature-title {
    font-size: 24px;
    letter-spacing: 3%;
    line-height: 1;
}

.hero__feature-desc {
    font-size: 13px;
    letter-spacing: 3%;
    opacity: 0.8;
}

.hero__price {
    margin-bottom: 30px;
}

.hero__price-value {
    font-size: 36px;
    letter-spacing: 3%;
    line-height: 0.88;
    margin-bottom: 3px;
    font-weight: 400;
    color: #717CC8;
}

.hero__price-desc {
    font-size: 36px;
    letter-spacing: 3%;
    line-height: 0.88;
    font-weight: 400;
    color: #c1c7dd;
}

.hero__btn {
    font-size: 19px;
    padding: 16px 45px;
}

.hero__image {
    flex-shrink: 0;
    width: 676px;
    max-width: 676px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image img {
    width: 100%;
    max-width: 676px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

/* ========== CALCULATOR SECTION ========== */
.calculator {
    padding: 50px 0;
}

.calculator__wrapper {
    background-color: #e5e5ed;
    border-radius: 15px;
    padding: 45px 40px;
    position: relative;
    overflow: hidden;
}

.calculator__wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.calculator__wrapper > * {
    position: relative;
    z-index: 1;
}

.calculator__title {
    font-size: 63px;
    line-height: 1.1;
    letter-spacing: 3%;
    text-align: center;
    color: #2d4a7c;
    margin-bottom: 45px;
    text-transform: uppercase;
    font-weight: 400;
}

.calculator__grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: start;
}

.calculator__feature {
    color: #2d4a7c;
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: flex-start;
}

.calculator__feature-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.calculator__feature-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.calculator__feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.calculator__feature-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calculator__feature-title {
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #333750;
    font-weight: 400;
}

.calculator__feature-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
    opacity: 0.8;
    font-weight: 400;
}

.calculator__input-wrapper {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 50px 60px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15), 
                0px 4px 8px rgba(0, 0, 0, 0.1),
                inset 0px 1px 0px rgba(255, 255, 255, 0.5);
    min-width: 450px;
}

.calculator__input-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/text-texture.png');
    background-size: 200px 200px;
    background-repeat: repeat;
    opacity: 0.15;
    border-radius: 15px;
    pointer-events: none;
    z-index: 0;
}

.calculator__input-wrapper > * {
    position: relative;
    z-index: 1;
}

.calculator__label {
    font-size: 24px;
    line-height: 1;
    letter-spacing: 1px;
    color: #2d3748;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-weight: 400;
}

.calculator__input {
    width: 100%;
    max-width: 400px;
    padding: 25px 25px;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    font-family: 'Bebas Neue Cyrillic', sans-serif;
    font-size: 16px;
    letter-spacing: 3%;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.9);
    color: #2d3748;
    text-align: center;
    box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.05);
    font-weight: 400;
    transition: all 0.3s ease;
}

.calculator__input:focus {
    outline: none;
    border-color: #4a6ba8;
    box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.05),
                0px 0px 0px 3px rgba(74, 107, 168, 0.1);
}

.calculator__input::placeholder {
    color: rgba(45, 55, 72, 0.4);
    text-align: center;
}

.calculator__form-state,
.calculator__result {
    width: 100%;
    max-width: 400px;
}

.calculator__result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 170px;
    padding: 24px 20px;
    margin-bottom: 25px;
    border: 2px solid #d1d5db;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.calculator__result-number {
    font-family: 'Bebas Neue Cyrillic', sans-serif;
    font-size: 88px;
    line-height: 0.9;
    color: #1f3fb0;
    flex: 0 0 auto;
}

.calculator__result-text {
    font-family: 'Bebas Neue Cyrillic', sans-serif;
    font-size: 30px;
    line-height: 0.95;
    color: #1f3fb0;
    text-transform: uppercase;
}

.calculator__result-income {
    display: none;
}

/* ========== ABOUT SECTION ========== */
.about {
    padding: 60px 0;
    text-align: center;
}

.about__title {
    font-family: 'Bebas Neue Cyrillic', sans-serif;
    font-size: 52px;
    line-height: 0.84;
    letter-spacing: 3%;
    margin-bottom: 50px;
    text-transform: uppercase;
    font-weight: 400;
    text-align: center;
    color: #ECF0FF;
}

.about__features {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    padding: 50px 0;
    border-top: 3px solid rgba(236, 240, 255, 0.3);
    border-bottom: 3px solid rgba(236, 240, 255, 0.3);
}

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

.about__feature-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.about__feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about__feature-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: Arial, sans-serif;
    font-size: 15.81px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    color: #ECF0FF;
}

/* ========== CONTACT SECTION ========== */
.contact {
    padding: 50px 0;
}

.contact__wrapper {
    background-color: #e5e5ed;
    border-radius: 15px;
    padding: 45px 60px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.contact__wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.contact__wrapper::after {
    content: "";
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 311px;
    height: 311px;
    background-image: url('../images/Union.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.contact__wrapper > * {
    position: relative;
    z-index: 1;
}

.contact__title {
    font-size: 47px;
    line-height: 1.1;
    letter-spacing: 1px;
    text-align: center;
    color: #2d4a7c;
    margin-bottom: 35px;
    text-transform: uppercase;
    font-weight: 400;
}

.contact__form {
    width: 100%;
}

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

.contact__field {
    display: flex;
    flex-direction: column;
}

.contact__row + .contact__field {
    margin-top: 20px;
}

.contact__label {
    font-size: 14px;
    letter-spacing: 1px;
    color: #2d4a7c;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 400;
}

.contact__input {
    padding: 14px 20px;
    border: 2px solid rgba(45, 74, 124, 0.15);
    border-radius: 8px;
    font-family: 'Bebas Neue Cyrillic', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.8);
    color: #2d4a7c;
    transition: all 0.3s ease;
}

.contact__input:focus {
    outline: none;
    border-color: #4a6ba8;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0px 0px 0px 3px rgba(74, 107, 168, 0.1);
}

.contact__input::placeholder {
    color: rgba(45, 74, 124, 0.4);
}

.contact__btn {
    width: 100%;
    margin-top: 20px;
}

/* ========== FOOTER ========== */
.footer {
    padding: 60px 0 50px;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 60px;
    min-height: 250px;
}

.footer__info {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 0;
}

.footer__title {
    font-size: 44px;
    line-height: 1.1;
    letter-spacing: 1px;
    margin-bottom: 0;
    text-transform: uppercase;
}

.footer__text {
    font-size: 16px;
    letter-spacing: 3%;
    opacity: 0.8;
}

.footer__socials {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    flex: 1;
    align-items: stretch;
}

.footer__social {
    text-align: center;
    background: rgba(22, 30, 50, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 25px 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.25),
                inset 0px 1px 0px rgba(255, 255, 255, 0.05);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer__social-title {
    font-size: 26px;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer__social-btn {
    min-width: 120px;
    width: 100%;
    max-width: 250px;
    text-decoration: none;
    display: inline-flex;
    font-size: 16px;
    padding: 14px 16px;
    height: auto;
    text-transform: none;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.08;
}


.footer__social-btn:hover {
    transform: translateY(-2px);
}

/* Анимация появления секций */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero, .calculator, .about, .contact, .footer {
    animation: fadeInUp 0.6s ease-out;
}

/* ========== ADAPTIVE ========== */

/* Планшеты */
@media (max-width: 1024px) {
    :root {
        --container-padding: 30px;
    }
    
    .header__logo {
        max-width: 350px;
    }
    
    .hero__title {
        font-size: 60px;
    }
    
    .hero__content {
        gap: 30px;
        flex-direction: column;
    }
    
    .hero__text, .hero__image {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
        display: flex;
    }
    
    .hero__image {
        justify-content: center;
        max-width: 500px;
        width: 100%;
        margin: 0 auto;
    }
    
    .calculator__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calculator__input-wrapper {
        grid-column: span 2;
    }
    
    .calculator__feature--last {
        grid-column: auto;
    }
}


@media (max-width: 768px) {
    body {
        background-image: url('../images/background-mobile.webp');
        background-size: cover;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    :root {
        --container-padding: 20px;
    }

    .header__logo {
        margin: 0 auto;
        display: flex;
        justify-content: center;
        max-width: 350px;
    }
    
    .hero__content {
        flex-direction: column;
        gap: 30px;
    }
    
    .hero__text {
        text-align: left;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero__title {
        font-size: 50px;
        line-height: 0.84;
        text-align: left;
    }
    
    .hero__subtitle {
        font-size: 18px;
        text-align: left;
    }
    
    .hero__features {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 20px;
    }

    .hero__feature {
        padding-right: 0;
    }

    .hero__feature + .hero__feature {
        border-left: none;
        padding-left: 0;
    }

    .hero__feature-title {
        font-size: 22px;
    }

    .hero__price-value {
        font-size: 24px;
    }
    
    .hero__btn {
        width: 100%;
        margin-top: 10px;
    }

    .hero__image {
        display: none;
    }
    
    .calculator {
        padding: 180px 0 50px;
        position: relative;
    }

    .calculator::before {
        content: '';
        position: absolute;
        top: -40px;
        left: calc(50% - 24px);
        transform: translateX(-50%);
        width: 326px;
        height: 298px;
        background-image: url('../images/coin.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        z-index: 10;
        filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
        pointer-events: none;
    }

    .calculator__wrapper {
        padding: 80px 20px 30px;
        position: relative;
        z-index: 1;
    }
    
    .calculator__title {
        font-size: 22px;
        margin-bottom: 20px;
        line-height: 1.1;
    }
    
    .calculator__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .calculator__input-wrapper {
        grid-column: 1;
        order: -1;
        margin-bottom: 30px;
        min-width: auto;
        width: 100%;
        padding: 25px 15px;
        margin-left: auto;
        margin-right: auto;
    }

    .calculator__label {
        font-size: 18px;
        line-height: 1.2;
    }

    .calculator__input {
        padding: 15px;
        font-size: 14px;
        margin-bottom: 20px;
    }

    .calculator__btn {
        font-size: 18px;
        padding: 14px 20px;
        height: auto;
    }

    .calculator__result {
        min-height: 120px;
        gap: 10px;
        padding: 18px 14px;
        margin-bottom: 20px;
    }

    .calculator__result-number {
        font-size: 56px;
    }

    .calculator__result-text {
        font-size: 20px;
    }
    
    .calculator__feature {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 15px;
    }

    .calculator__feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .about__title {
        font-size: 24px;
        margin-bottom: 40px;
    }
    
    .about__features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px 18px;
        align-items: start;
    }

    .about__feature {
        flex-direction: row;
        align-items: flex-start;
        width: auto;
        min-width: 0;
        gap: 10px;
    }

    .about__feature-icon {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .about__feature-text {
        font-size: 14px;
        line-height: 1.05;
        gap: 2px;
    }
    
    .contact__wrapper {
        padding: 30px 20px;
    }
    
    .contact__wrapper::after {
        display: none;
    }
    
    .contact__title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .contact__row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .footer__content {
        flex-direction: column;
        gap: 40px;
    }

    .footer__info {
        text-align: left;
        width: 100%;
    }

    .footer__title {
        font-size: 36px;
    }
    
    .footer__socials {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .footer__social {
        text-align: center;
        background: rgba(22, 30, 50, 0.4);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 18px 16px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer__social:first-child {
        grid-column: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 18px 16px;
    }

    .footer__social:first-child .footer__social-title {
        margin-bottom: 12px;
        font-size: 22px;
    }

    .footer__social-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .footer__social-btn {
        width: 100%;
        max-width: 280px;
        font-size: 15px;
        padding: 12px 16px;
        min-width: 0;
    }

    .footer__social:first-child .footer__social-btn {
        width: 100%;
        min-width: 0;
    }
}

.form-status{margin-top:16px;font-size:18px;line-height:1.3;min-height:24px;color:#c1c7dd}


@media (max-width: 768px) {
    .calculator .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .footer__social-btn {
        overflow-wrap: break-word;
    }
}


@media (max-width: 420px) {
    .about__features {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 420px) {
    :root {
        --container-padding: 16px;
    }

    .hero__btn,
    .contact__btn,
    .footer__social-btn {
        width: 100%;
    }

    .contact__wrapper,
    .calculator__wrapper {
        padding-left: 16px;
        padding-right: 16px;
    }
}
