/* --- ОБЩИЕ СТИЛИ И ПЕРЕМЕННЫЕ --- */

:root {
    --bg-color: #F9F9F9;
    --text-color: #111111;
    --font-main: 'Onest', sans-serif;
    --accent-red: #EE4238;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Вспомогательные классы шрифтов */
.weight-light {
    font-weight: 500;
}

.weight-black {
    font-weight: 900;
}

.font-italic {
    font-style: italic;
}

/* Акцентная звёздочка для обязательных полей */
.req {
    color: var(--accent-red);
    font-weight: 700;
}

/* --- НАВБАР (HEADER) --- */

.navbar {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    top: 0;
    left: 0;
    background-color: var(--bg-color);
    z-index: 1000;
}

.navbar-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 100px;
    padding-right: 100px;
}

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

.navbar-link {
    font-size: 18px;
    font-weight: 800;
}

/* --- HERO СЕКЦИЯ СТРАНИЦЫ ДЕМО --- */

.demo-hero {
    padding-top: 70px;
    padding-bottom: 40px;
}

.demo-hero-title {
    font-size: 48px;
    line-height: 1;
    text-align: center;
    letter-spacing: -2px;
    color: var(--text-color);
    margin-bottom: 30px;
}

.demo-hero-description {
    max-width: 580px;
    margin: 0 auto;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
    color: var(--text-color);
}

/* --- БОЛЬШОЙ АКЦЕНТНЫЙ ЗАГОЛОВОК (STATEMENT) --- */

.demo-statement-section {
    padding-bottom: 120px;
}

.demo-statement-title {
    font-size: 75px;
    letter-spacing: -7px;
    line-height: 1;
    text-align: center;
    color: var(--text-color);
    text-transform: uppercase;
}

/* Обертка для SVG внутри строки */
.statement-svg-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin: 0 4px;
    position: relative;
    top: -4px;
}

.statement-svg-wrapper svg {
    height: 0.88em;
    width: auto;
    display: block;
}

/* --- СЕКЦИЯ С ФОРМОЙ И ПОДЗАГОЛОВКОМ «ХОЧЕШЬ С НАМИ?» --- */

.demo-form-section {
    padding-bottom: 120px;
}

.form-title {
    font-size: 48px;
    line-height: 1;
    text-align: center;
    color: var(--text-color);
    text-transform: uppercase;
    margin-bottom: 50px;
}

/* Обертка для выделения «С НАМИ?» */
.form-title-highlight {
    position: relative;
    display: inline-block;
    padding: 0 8px;
}

.form-title-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 50px);
    height: calc(100% + 28px);
    z-index: 1;
    pointer-events: none;
}

/* Стилизация белой карточки формы */
.demo-form {
    max-width: 780px;
    margin: 0 auto;
    background-color: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 16px;
    padding: 24px;
}

/* Скрытое поле для ловушки ботов */
.form-honeypot {
    display: none !important;
    position: absolute;
    left: -9999px;
}

/* Сетка полей формы */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group--full {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #E2E2E2;
    background-color: #FBFBFB;
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--text-color);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-input::placeholder {
    color: #9E9E9E;
    font-weight: 400;
}

.form-input:focus {
    border-color: #111111;
    background-color: #FFFFFF;
    outline: none;
}

/* Блок капчи по центру */
.form-security {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

.smart-captcha {
    height: 52px;
    width: auto;
}

/* Дисклеймер согласия */
.form-disclaimer {
    margin-top: 24px;
    font-size: 13px;
    font-weight: 400;
    color: #666666;
    line-height: 1.4;
    text-align: center;
}

.form-disclaimer a {
    color: var(--text-color);
    text-decoration: underline;
}

/* Кнопка отправки */
.form-submit-wrapper {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.form-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 23px;
    background-color: var(--text-color);
    color: #FFFFFF;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.form-submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* =========================================================
   СООБЩЕНИЯ УСПЕХА / ОШИБКИ ФОРМЫ
========================================================= */

.form-message {
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    animation: formMsgIn 0.35s ease;
}

.form-message[hidden] {
    display: none;
}

.form-message__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-message__icon svg {
    display: block;
}

.form-message__body {
    flex: 1;
    min-width: 0;
    padding-top: 6px;
}

.form-message__title {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 3px;
    letter-spacing: -0.01em;
}

.form-message__text {
    display: block;
    font-size: 13.5px;
    font-weight: 450;
    opacity: 0.92;
}

.form-message--success {
    background: linear-gradient(135deg, #F0FAF3 0%, #E8F7ED 100%);
    border: 1px solid #C6E8D0;
    color: #176B32;
    box-shadow: 0 4px 18px rgba(30, 122, 56, 0.08);
}

.form-message--success .form-message__icon {
    background: #1E7A38;
    color: #fff;
}

.form-message--error {
    background: linear-gradient(135deg, #FFF5F4 0%, #FDECEA 100%);
    border: 1px solid #F0C4BF;
    color: #B01E16;
    box-shadow: 0 4px 18px rgba(194, 42, 32, 0.08);
}

.form-message--error .form-message__icon {
    background: var(--accent-red);
    color: #fff;
}

@keyframes formMsgIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* --- СЕКЦИЯ FAQ (АККОРДЕОН) --- */

.faq-section {
    padding-bottom: 120px;
}

.faq-list {
    max-width: 1100px;
    margin: 0 auto;
    border-top: 1px solid #E5E5E5;
}

.faq-item {
    border-bottom: 1px solid #E5E5E5;
}

.faq-question {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question-text {
    font-size: 22px;
    font-weight: 900;
    line-height: 1.25;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: -0.3px;
}

/* Иконка: плюс → крестик */
.faq-icon {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-left: 24px;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--text-color);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.faq-icon::before {
    width: 18px;
    height: 2px;
}

.faq-icon::after {
    width: 2px;
    height: 18px;
}

.faq-item.is-open .faq-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.faq-item.is-open .faq-icon::after {
    transform: translate(-50%, -50%) rotate(45deg);
}

/* Плавное раскрытие: grid 0fr → 1fr */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease, opacity 0.3s ease;
    opacity: 0;
}

.faq-item.is-open .faq-answer {
    grid-template-rows: 1fr;
    opacity: 1;
}

.faq-answer > * {
    overflow: hidden;
    min-height: 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: #444444;
    max-width: none;
    padding-bottom: 0;
    transition: padding-bottom 0.35s ease;
}

.faq-item.is-open .faq-answer > * {
    padding-bottom: 28px;
}

/* --- ПОДВАЛ (FOOTER) --- */

.footer {
    background-color: #EFEFEF;
    padding-top: 38px;
    padding-bottom: 40px;
    display: flex;
}

.footer .container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.footer-main {
    display: flex;
    justify-content: space-between;
}

.footer-description {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
}

.social-icons {
    margin-top: 60px;
    display: flex;
    gap: 6px;
}

.social-icons a {
    display: block;
}

.footer-column-right {
    margin-right: 280px;
}

.footer-title {
    font-size: 18px;
    font-weight: 800;
}

.footer-link {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 400;
    color: #666666;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

.bot {
    margin-top: 0px;
}

.bot, .mail {
    font-size: 14px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 40px;
}

.footer-legal,
.footer-copy {
    font-size: 12px;
    font-weight: 400;
    color: #666666;
}

.footer-copy .footer-link {
    display: inline;
    margin-top: 0;
}

/* --- МОБИЛЬНАЯ АДАПТАЦИЯ (<= 768px) --- */

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

    .navbar-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    .demo-hero {
        padding-top: 60px;
        padding-bottom: 40px;
    }

    .demo-hero-title {
        font-size: 32px;
        line-height: 1.15;
        margin-bottom: 20px;
    }

    .demo-hero-description {
        font-size: 14px;
        line-height: 1.4;
    }

    .demo-statement-section {
        padding-bottom: 70px;
    }

    .demo-statement-title {
        font-size: 32px;
        letter-spacing: -2px;
        line-height: 1.15;
    }

    .statement-svg-wrapper {
        top: -2px;
    }

    .form-title {
        font-size: 34px;
        margin-bottom: 35px;
    }

    .form-title-highlight svg {
        width: calc(100% + 30px);
        height: calc(100% + 20px);
    }

    .demo-form {
        padding: 24px 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-submit-btn {
        width: 100%;
        height: 48px;
    }

    .demo-form-section {
        padding-bottom: 80px;
    }

    .form-message {
        padding: 14px 14px;
        gap: 10px;
    }

    .form-message__icon {
        width: 32px;
        height: 32px;
    }

    .form-message__body {
        padding-top: 4px;
    }

    .faq-section {
        padding-bottom: 80px;
    }

    .faq-list {
        max-width: 100%;
    }

    .faq-question {
        padding: 20px 0;
    }

    .faq-question-text {
        font-size: 17px;
    }

    .faq-answer > * {
        font-size: 14px;
    }

    .faq-item.is-open .faq-answer > * {
        padding-bottom: 20px;
    }

    .footer .container {
        gap: 40px;
    }

    .footer-main, .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .footer-column-right {
        margin-right: 0;
    }

    .footer-bottom {
        gap: 20px;
        text-align: left;
        font-size: 14px;
        margin-top: 0;
    }

    .pc {
        display: none;
    }
}
