@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Play:wght@400;700&display=swap');

@font-face {
    font-family: 'Furore';
    src: url('fonts/Furore/Furore.woff2') format('woff2'),
        url('fonts/Furore/Furore.woff') format('woff'),
        url('fonts/Furore/Furore.ttf') format('truetype'),
        url('fonts/Furore/Furore.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-title: 'Furore', sans-serif;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Play', sans-serif;
    --color-base: #dddcf0;
    --color-primary: #ff00ff;
    --bg-dark: #0a0019;
    --bg-purple: rgba(150, 0, 255, 0.1);
    --bg-pink-dark-purple: linear-gradient(90deg, #C800C8 0%, #9600FF 100%);
}

body {
    background: var(--bg-dark);
    font-family: var(--font-primary);
}

h1 {
    font-size: 80px;
    color: var(--color-base);
    text-transform: uppercase;
    font-family: var(--font-title);
}

.title {
    font-family: var(--font-title);
    color: var(--color-primary);
    font-size: 48px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

a,
a:hover {
    color: var(--color-primary);
}

.but {
    font-family: var(--font-secondary);
    font-size: 22px;
    background: var(--bg-pink-dark-purple);
    color: var(--color-base);
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 10px;
}

.but:hover {
    color: var(--color-base);
}

.text-primary {
    color: var(--color-primary) !important;
}

/* Навигация */
.navbar {
    padding: 30px 0 20px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.nav-link {
    color: var(--color-base);
    margin: 0 10px;
    transition: all 0.3s ease;
}

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

.link {
    color: var(--color-primary);
    text-decoration: none;
}

/* Секция героя */
.hero {
    padding: 150px 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-height: 800px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/AI-Manager.png');
    /* background-size: cover; */
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
    z-index: -1;
}

.ellipse1 {
    position: absolute;
    width: 1287px;
    height: 800px;
    top: 0;
    left: 0;
    background: url(img/Ellipse1.png);
    z-index: -2;
}

.ellipse2 {
    position: absolute;
    width: 1042px;
    height: 800px;
    top: 0;
    right: -350px;
    background: url(img/Ellipse2.png);
    z-index: -2;
}

.ellipse3 {
    position: absolute;
    width: 1288px;
    height: 2040px;
    top: -990px;
    left: 0;
    background: url(img/Ellipse3.png);
    z-index: -2;
}

.ellipse3-1 {
    position: absolute;
    width: 1281px;
    height: 1282px;
    top: -300px;
    left: calc(50% - 641px);
    background: url(img/Ellipse3-1.png);
    z-index: -2;
}

/* Карточки возможностей */
#features {
    background: var(--bg-purple);
}

#features .container {
    margin-top: -130px;
}

.feature-card {
    position: relative;
    min-height: 172px;
    background: linear-gradient(to top left, rgba(65, 40, 100, 0.5), rgba(30, 15, 60, 0.5));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(115, 106, 173, 0.4);
    border-radius: 20px;
    color: var(--color-base);
    padding: 40px 20px;
    isolation: isolate;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-card h3 {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    width: 100%;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.card-content {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-icon i {
    color: var(--primary);
    font-size: 1.5rem;
}

/* Стоимость */
.pricing-card {
    background: linear-gradient(to top left, rgba(65, 40, 100, 0.5), rgba(30, 15, 60, 0.5));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(115, 106, 173, 0.4);
    color: var(--color-base);
    isolation: isolate;
    gap: 16px;
    border-radius: 1rem;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid #9600FF;
}

.pricing-row-1 {
    display: flex;
    justify-content: space-between;
}

.pricing-label {
    background: url(img/flag-bg.png);
    width: 168px;
    height: 56px;
    display: flex;
    align-items: center;
    padding-left: 20px;
    color: var(--color-base);
    font-family: var(--font-secondary);
    font-size: 20px;
    font-weight: bold;
}

#pricing,
#documentation {
    position: relative;
}

#documentation {
    overflow: hidden;
}

.price {
    font-family: var(--font-title);
    font-size: 3rem;
}

.price .period {
    font-family: var(--font-primary);
    font-size: 1.5rem;
}

.price .rub {
    font-weight: bold;
    display: inline-block;
    transform: scaleX(1.2);
}

.price-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-txt {
    font-family: var(--font-primary);
    font-size: 20px;
    max-width: 740px;
    margin-bottom: 0;
}

section {
    padding: 80px 0;
}

/* Карточки документации */
.lead {
    font-family: var(--font-primary);
    font-size: 22px;
    color: var(--color-base);
    line-height: 1.3;
    max-width: 980px;
}

.doc-card {
    position: relative;
    background: url(img/folder-bg.png);
    background-size: contain;
    width: 473px;
    height: 356px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 47px;
}

.doc-card-1-parent {
    display: flex;
    justify-content: flex-end;
}

.doc-card-1 {
    transform: rotate(-6deg);
}

.doc-card-2 {
    transform: rotate(8deg);
}


.doc-title {
    font-family: var(--font-primary);
    font-size: 24px;
    color: var(--color-base);
    text-align: left;
}

.download-btn {
    background: none;
    border: none;
    position: absolute;
    right: 60px;
    bottom: 50px;
}

.download-btn img {
    transform: rotate(6deg);
}

/* Контакты */

#contact {
    background-color: var(--bg-purple);
}

#contact .but {
    padding: 12px 40px;
    border: none;
}

input,
textarea {
    border: none !important;
    color: var(--color-base) !important;
    padding-top: 100px !important;
    font-family: var(--font-secondary);
}

textarea {
    height: 120px;
    resize: none !important;
}

::placeholder {
    color: rgba(220, 220, 240, 0.4) !important;
    display: none;
}

/* Простое решение для MDBootstrap form-outline */
.form-outline {
    position: relative;
    background-color: #2d1858;
    border-radius: 8px;

}

/* Увеличиваем отступ сверху для текста в поле */
.form-outline .form-control {
    padding-top: 20px !important;
    padding-bottom: 6px !important;
    font-size: 22px !important;
    color: var(--color-base) !important;
}

/* Позиционируем лейбл внутри поля */
.form-outline .form-label {
    position: absolute;
    top: 11px !important;
    left: 1rem;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: 18px;
}

/* Показываем лейбл, когда поле в фокусе или заполнено */
.form-outline .form-control:focus~.form-label,
.form-outline .form-control:not(:placeholder-shown)~.form-label,
.form-outline.active .form-label {
    opacity: 1;
}

/* Удаление границ и эффектов */
.form-outline,
.form-outline.focused,
.form-outline.active,
.form-outline .form-control,
.form-outline .form-control:focus,
.form-outline .form-control.active {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Отключение подчеркивания и заливки нотча */
.form-notch,
.form-notch-leading,
.form-notch-middle,
.form-notch-trailing {
    display: none !important;
}

/* Кастомные стили для чекбокса */
.form-check {
    display: flex;
}

.form-check-input {
    width: 20px;
    height: 20px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 2px;
}

.form-check-input:checked {
    background-color: #2c6dee;
    border-color: #2c6dee;
}

.form-check-label {
    padding-left: 5px;
    color: rgba(255, 255, 255, 0.7);
}

.form-check-label a {
    color: #2c6dee;
}

/* Стили для кастомного чекбокса */
.custom-checkbox-wrapper {
    margin-top: 15px;
    display: flex;
    align-items: flex-start;
}

.custom-checkbox {
    position: relative;
    padding-left: 33px;
    padding-bottom: 25px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
}

.custom-checkbox .invalid-feedback {
    position: absolute;
    bottom: 0;
    line-height: 13px;
}

.checkmark {
    position: absolute;
    top: 8px;
    left: 0;
    height: 20px;
    width: 20px;
    /* background-color: #8f2bab; */
    border: 1px solid var(--color-base);
    border-radius: 3px;
}

.custom-checkbox input:checked~.checkmark:after {
    content: "";
    position: absolute;
    display: block;
    left: 5px;
    top: 3px;
    width: 8px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    font-size: 14px;
    line-height: 1.5;
}

.custom-checkbox a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

/* Стили для футера */
.footer {
    background-color: var(--bg-purple);
    padding: 40px 0;
    color: #fff;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    max-height: 60px;
}

.footer-contacts {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
}

.footer-phone,
.footer-email {
    color: var(--color-base);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-secondary);
    font-size: 22px;
}

.footer-phone:hover,
.footer-email:hover {
    color: var(--color-base);
}

.copyright {
    font-size: 22px;
    color: var(--color-base);
    margin-top: 20px;
    font-family: var(--font-secondary);
}

/* Стилизации тоста */
.pricing-icon {
    cursor: pointer;
}

#pricingToastContainer {
    position: absolute;
    top: 20px;
    right: 100px;
    text-align: center;
}

#pricingInfoToast {
    background: linear-gradient(to top left, rgba(65, 40, 100, 0.5), rgba(30, 15, 60, 0.5));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(115, 106, 173, 0.4);
    border-radius: 20px;
    color: var(--color-base);
    max-width: 400px;
    margin: 0 auto;
    display: inline-block;
    text-align: left;
}

#pricingInfoToast .toast-body {
    color: white;
    font-size: 14px;
    line-height: 1.5;
    padding: 13px;
}

.invalid-feedback {
    margin-top: -1.1rem;
}

/* Стили для кнопки бургер-меню */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(221, 220, 240, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-toggler {
    border-color: rgba(221, 220, 240, 0.5) !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(150, 0, 255, 0.25) !important;
}

@media (max-width: 1200px) {
    .price-info {
        display: flex;
        flex-direction: column;
    }

    .price-button {
        margin-top: 50px;
    }

    .doc-card-1-parent,
    .doc-card-2-parent {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 992px) {

    h1,
    h2,
    .title {
        font-size: 60px;
    }

    .feature-card {
        flex-direction: column;
        padding: 20px;
    }
}

@media (max-width: 767px) {

    h1,
    h2,
    .title {
        font-size: 50px;
    }

    .footer-logo {
        justify-content: center;
        margin-bottom: 30px;
    }

    .footer-contacts {
        justify-content: center;
    }

    .copyright {
        text-align: center;
    }
}

@media (max-width: 576px) {

    h1,
    h2,
    .title {
        font-size: 30px;
    }

    .but {
        padding: 12px 35px;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .price {
        font-size: 2rem;
    }
}

@media (max-width: 510px) {
    #pricingToastContainer {
        top: 100px;
        right: 10px;
    }

    #pricingInfoToast {
        max-width: 100% !important;
        width: 300px !important;
        background: linear-gradient(to top left, rgba(65, 40, 100, 0.8), rgba(30, 15, 60, 0.8));
    }

    section {
        padding: 50px 0;
    }

    .doc-card {
        transform: rotate(0deg);
        max-width: 100%;
        background-size: contain;
        background-repeat: no-repeat;
        align-items: flex-start;
        padding-top: 120px;
        padding-left: 50px;
        padding-right: 50px;
    }

    .doc-title {
        font-size: 18px;
    }

    .download-btn {
        top: 40vw;
    }
}

@media (max-width: 420px) {
    .doc-card {
        padding-top: 80px;
        padding-left: 30px;
        padding-right: 20px;
        height: 280px;
    }

    .doc-title {
        font-size: 16px;
    }

    .download-btn {
        top: 45vw;
        right: 40px;
    }
}

@media (max-width: 350px) {
    .but {
        padding: 10px 20px;
        font-size: 20px;
    }

    .doc-card {
        padding-top: 70px;
        padding-left: 20px;
        padding-right: 10px;
    }

    .download-btn {
        top: 40vw;
        right: 30px;
    }
}