/* ---------- Блоки для продаж: оффер, цены, этапы, FAQ, кейсы, плавающая кнопка ---------- */

/* hero: оффер под заголовком */
h1.head__header {
    font-weight: 300;
}

.hero-sub {
    margin-top: 40px;
    max-width: 620px;
    font-size: 20px;
    line-height: 140%;
    color: #c9c9c9;
    letter-spacing: -0.01em;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    margin-bottom: 36px;
    max-width: 680px;
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1000px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
}

.hero-points li::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff4444;
    flex-shrink: 0;
}

/* кнопка на первом экране: ширина по тексту — фиксированная была рассчитана на «Обсудить проект» */
.head__content-button {
    width: fit-content;
    align-self: flex-start;
    height: clamp(52px, 3.4vw, 65px);
    font-size: clamp(15px, 0.95vw, 18px);
    padding: 0 40px;
    white-space: nowrap;
    letter-spacing: -0.01em;
    color: #000;
    transition: background 0.2s;
}

.head__content-button:hover {
    background: #ff5555;
}

/* поле телефона: крупнее и аккуратнее (было 11–18px в зависимости от ширины экрана) */
.contact-form-input {
    font-size: clamp(18px, 1.25vw, 22px);
    font-weight: 400;
    letter-spacing: 0.03em;
    padding-left: 32px;
    padding-right: 24px;
    border-color: rgba(255, 255, 255, 0.6);
    transition: border-color 0.2s, background 0.2s;
}

.contact-form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.contact-form-input:focus {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.06);
}

/* баннер cookies */
.cookie-banner {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 2000;
    display: none;
    flex-direction: column;
    gap: 16px;
    width: min(520px, calc(100% - 48px));
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    background: rgba(17, 17, 17, 0.97);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 14px;
    line-height: 150%;
}

.cookie-banner.is-open {
    display: flex;
}

.cookie-banner__text a {
    color: #ff6b6b;
    text-decoration: underline;
}

.cookie-banner__settings {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cookie-banner__settings[hidden],
.cookie-btn[hidden] {
    display: none;
}

.cookie-opt {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #b5b5b5;
    cursor: pointer;
}

.cookie-opt input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #ff4444;
    flex-shrink: 0;
}

.cookie-opt b {
    display: block;
    color: #fff;
    font-weight: 500;
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* «Принять» и «Только необходимые» одинаково заметны — требование регуляторов ЕС */
.cookie-btn {
    flex: 1 1 auto;
    padding: 12px 18px;
    border: 1px solid #ff4444;
    border-radius: 1000px;
    background: #ff4444;
    color: #000;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.cookie-btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

/* информация RODO под формами */
.form-legal {
    width: 100%;
    margin-top: 12px;
    max-width: 420px;
    font-size: 12px;
    line-height: 145%;
    color: rgba(255, 255, 255, 0.55);
}

.form-legal a {
    color: inherit;
    text-decoration: underline;
}

.contact__form .form-legal {
    color: rgba(255, 255, 255, 0.75);
}

/* ссылки на политику в подвале */
.footer__policy {
    gap: 20px;
    flex-wrap: wrap;
}

.footer__policy a {
    cursor: pointer;
}

.price-note {
    margin-top: 40px;
    text-align: center;
    font-size: 14px;
    color: #8a8a8a;
}

@media screen and (max-width: 767px) {
    .cookie-banner {
        left: 12px;
        bottom: 12px;
        width: calc(100% - 24px);
        padding: 20px;
    }
}

/* сообщение формы (вместо alert) */
.form-message {
    width: 100%;
    margin-top: 12px;
    font-size: 14px;
    line-height: 140%;
    color: #ffb3b3;
}

.form-message:empty {
    display: none;
}

.form-message a {
    color: #fff;
    text-decoration: underline;
}

/* подписи в формах */
.popup-sub,
.contact-sub {
    margin-top: 20px;
    margin-bottom: 28px;
    max-width: 420px;
    font-size: 16px;
    line-height: 145%;
    color: #b5b5b5;
}

.contact-sub {
    color: #e2e2e2;
}

/* цены */
.price-tag {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px 0 24px;
    color: #fff;
}

.price-tag__from {
    font-size: 18px;
    color: #979797;
}

.price-tag__value {
    font-size: 48px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
}

.price-tag__term {
    width: 100%;
    margin-top: 6px;
    font-size: 15px;
    color: #979797;
}

/* средняя (красная) карточка: белый текст вместо чёрного — на тёмно-красном он не читался */
.price__block-name-black,
.price__block-descr-black,
.price__block-text-black {
    color: #fff;
}

.price__block-name-black {
    border-bottom-color: rgba(255, 255, 255, 0.25);
}

.price__block-descr-black {
    color: rgba(255, 255, 255, 0.85);
}

.price__block-text-black {
    font-weight: 500;
}

.price__block-popular {
    margin-left: auto;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 1000px;
    background: #fff;
}

.price-tag--dark,
.price-tag--dark .price-tag__value {
    color: #fff;
}

.price-tag--dark .price-tag__from,
.price-tag--dark .price-tag__term {
    color: rgba(255, 255, 255, 0.8);
}

/* этапы работы */
.process-inner {
    margin-top: 160px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 44px;
}

.section-head h2 {
    font-size: 50px;
    line-height: 90%;
    color: #fff;
    max-width: 520px;
}

.section-head h2 span {
    color: #95979f;
}

.section-head p {
    max-width: 480px;
    font-size: 16px;
    line-height: 156%;
    text-align: right;
    color: #aeaeae;
}

.process__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 80px;
}

.process__step {
    display: flex;
    flex-direction: column;
    min-height: 320px;
    padding: 36px 32px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    background: linear-gradient(to bottom, #121212, #1c1c1c);
}

.process__step:nth-child(2) {
    border-color: #ff4444;
}

.process__num {
    font-size: 16px;
    color: #ff4444;
}

.process__name {
    margin-top: auto;
    font-size: 28px;
    line-height: 105%;
    color: #fff;
}

.process__text {
    margin-top: 16px;
    font-size: 15px;
    line-height: 150%;
    color: #aeaeae;
}

/* FAQ */
.faq-inner {
    margin-top: 160px;
    margin-bottom: 160px;
}

.faq__list {
    margin-top: 80px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.faq__item {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.faq__item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 32px 0;
    font-size: 26px;
    line-height: 120%;
    color: #fff;
    cursor: pointer;
    list-style: none;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary::after {
    content: "+";
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ff4444;
    color: #000;
    font-size: 26px;
    transition: transform 0.25s;
}

.faq__item[open] summary::after {
    transform: rotate(45deg);
}

.faq__item p {
    max-width: 820px;
    padding-bottom: 32px;
    font-size: 17px;
    line-height: 160%;
    color: #b5b5b5;
}

/* окно кейса */
.case-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.case-modal.is-open {
    display: flex;
}

.case-modal__box {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(1200px, 100%);
    max-height: 100%;
    overflow: hidden;
    border-radius: 30px;
    background: #111;
}

.case-modal__img {
    width: 100%;
    min-height: 0;
    flex: 1;
    object-fit: cover;
    object-position: top;
}

.case-modal__bar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 32px;
}

.case-modal__name {
    font-size: 28px;
    color: #fff;
}

.case-modal__descr {
    margin-top: 6px;
    font-size: 15px;
    line-height: 140%;
    color: #aeaeae;
}

.case-modal__cta {
    margin-left: auto;
    flex-shrink: 0;
    padding: 20px 32px;
    border: none;
    border-radius: 1000px;
    background: #ff4444;
    font-family: inherit;
    font-size: 17px;
    font-weight: 500;
    color: #000;
    cursor: pointer;
}

.case-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

/* плавающая кнопка Telegram */
.tg-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px 14px 16px;
    border-radius: 1000px;
    background: #ff4444;
    color: #000;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(255, 68, 68, 0.35);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}

.tg-float.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.tg-float svg {
    width: 22px;
    height: 22px;
}

@media screen and (max-width: 1439px) {
    .process__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process__step {
        min-height: 260px;
    }
}

@media screen and (max-width: 999px) {
    .hero-sub {
        margin-top: 28px;
        font-size: 17px;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .section-head p {
        text-align: left;
    }
}

@media screen and (max-width: 767px) {
    .hero-sub {
        margin-top: 24px;
        font-size: 16px;
        white-space: normal;
    }

    .head__content-button-mobile {
        align-self: center;
        padding: 0 28px;
    }

    /* на телефоне плашки перекрывают ноутбук — оффер уже есть в подзаголовке и кнопке */
    .hero-points {
        display: none;
    }

    /* украинский заголовок шире экрана телефона */
    html[lang="uk"] .head__header,
    html[lang="pl"] .head__header {
        font-size: 40px;
    }

    .price-tag__value {
        font-size: 40px;
    }

    .process-inner,
    .faq-inner {
        margin-top: 100px;
    }

    .faq-inner {
        margin-bottom: 100px;
    }

    .section-head h2 {
        font-size: 36px;
    }

    .process__grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 40px;
    }

    .process__step {
        min-height: 0;
        padding: 28px 24px;
    }

    .process__name {
        margin-top: 40px;
        font-size: 24px;
    }

    .faq__list {
        margin-top: 40px;
    }

    .faq__item summary {
        padding: 24px 0;
        font-size: 19px;
    }

    .faq__item summary::after {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .faq__item p {
        font-size: 15px;
    }

    .case-modal {
        padding: 12px;
    }

    .case-modal__bar {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        gap: 16px;
    }

    .case-modal__cta {
        margin-left: 0;
    }

    .tg-float {
        right: 16px;
        bottom: 16px;
    }
}
