/* Variables — тёмная тема Liberty */
:root {
    --logo-blue: #2dd4bf;
    --logo-gold: #fbbf24;
    --primary-color: #0f766e;
    --primary-dark: #0d9488;
    --secondary-color: #94a3b8;
    --accent-color: #fbbf24;
    --accent-light: #fcd34d;
    --text-color: #f1f5f9;
    --text-light: #94a3b8;
    --bg-color: #0f172a;
    --bg-color-glass: rgba(15, 23, 42, 0.65);
    --bg-light: #1e293b;
    --bg-light-glass: rgba(30, 41, 59, 0.4);
    --bg-gray: #334155;
    --border-color: rgba(51, 65, 85, 0.6);
    --success-color: #10b981;
    --error-color: #ef4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
    --focus-outline: 3px solid var(--primary-color);
    --focus-outline-offset: 2px;
}

/* Base — типографика и выравнивание */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    position: relative;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.01em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Базовые отступы для текста — ровная вёрстка */
p {
    margin: 0 0 1em;
}

p:last-child {
    margin-bottom: 0;
}

/* Фоновое изображение логотипа - декоративное, не мешает чтению */
body::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90vh, 560px);
    height: min(90vh, 560px);
    background-image: url('../images/logo.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.65) 0%, rgba(15, 23, 42, 0.75) 50%, rgba(15, 23, 42, 0.7) 100%);
    pointer-events: none;
    z-index: -1;
}

/* Убеждаемся, что весь контент находится поверх фонового изображения */
main,
section {
    position: relative;
    z-index: 1;
}

main#main-content {
    display: block;
    overflow-x: hidden;
}

.container {
    position: relative;
    z-index: 1;
}


/* Scroll reveal & back-to-top */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible { opacity: 1; visibility: visible; }

.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    border-radius: 0 0 4px 0;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Container — единая ширина и отступы, без «съезжания» */
.container {
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
}

/* Центрирование текстового контента в секциях */
main .container > .section__title,
main .container > .section__subtitle,
main .container > .economy-block__text {
    margin-left: auto;
    margin-right: auto;
}

/* Header */
.header {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__logo {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}

.header__logo a {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.header__logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

/* Фиксированная высота — устраняет CLS при подгрузке шрифта Manrope (смещение макета) */
.header__logo-titles {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 2.35em; /* 20px*1.2 + 2px + 11px*1.2 ≈ 38px */
}

.header__logo-ru {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.header__logo-en {
    font-size: 11px;
    font-weight: 500;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.header__contacts {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
}

.header__phone {
    font-weight: 600;
    color: var(--text-color);
    font-size: 16px;
}

.header__hours {
    color: var(--text-light);
    font-size: 12px;
}

.header__messengers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.messenger-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-light);
    text-decoration: none;
}

.messenger-link__icon {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
}

.messenger-link--wa .messenger-link__icon {
    background-color: #22c55e;
}

.messenger-link--tg .messenger-link__icon {
    background-color: #0ea5e9;
}

.contact-messengers,
.footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.footer__social .messenger-link {
    font-size: 13px;
}

.error-page {
    text-align: center;
    padding: 80px 0;
}

.error-page__code {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.06em;
}

.error-page__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.error-page__text {
    max-width: 520px;
    margin: 0 auto 24px;
    color: var(--text-light);
}

.header__consult-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.header__consult-btn:hover {
    background: var(--primary-dark);
}

.header__burger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 30px;
    height: 24px;
    padding: 0;
}

.header__burger span {
    width: 100%;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: var(--transition);
}

.header__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.header__burger.active span:nth-child(2) {
    opacity: 0;
}

.header__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.header__nav {
    display: none;
    border-top: 1px solid var(--border-color);
    padding: 15px 0;
}

.header__nav.active {
    display: block;
}

.nav__list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav__list li a {
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 0;
    display: block;
}

.nav__list li a:hover,
.nav__list li a.active {
    color: var(--accent-color);
}

@media (min-width: 1024px) {
    .header__top {
        padding: 20px 0;
    }

    .header__burger {
        display: none;
    }

    .header__nav {
        display: block;
        border-top: none;
        padding: 0;
    }

    .nav__list {
        flex-direction: row;
        gap: 30px;
    }

    .header__contacts {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(160deg, rgba(15, 118, 110, 0.92) 0%, rgba(13, 77, 71, 0.95) 50%, rgba(15, 23, 42, 0.98) 100%);
    color: white;
    padding: 72px 0 80px;
}

/* SEO-интро: ключевые фразы и внутренние ссылки */
.hero-seo-intro {
    padding: 32px 0;
    background: rgba(15, 23, 42, 0.5);
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.hero-seo-intro__text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-light);
    text-align: center;
}

.hero-seo-intro__text a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero-seo-intro__text a:hover {
    color: var(--accent-color);
}

.page-content .link-intext,
.services-offer__cta .link-intext {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.services-offer__cta .link-intext:hover {
    color: var(--accent-color);
}

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

.hero__content {
    text-align: center;
}

.hero__title {
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.28;
    letter-spacing: -0.03em;
}

.hero__subtitle {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 24px;
    opacity: 0.92;
    line-height: 1.5;
}

.hero__trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero__trust li {
    position: relative;
    padding-left: 24px;
    font-size: 15px;
    font-weight: 500;
}

.hero__trust li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 14px;
}

.hero__form {
    background: rgba(15, 23, 42, 0.5);
    padding: 32px;
    border-radius: 8px;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero__form h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: var(--text-color);
}

@media (min-width: 768px) {
    .hero {
        padding: 96px 0 104px;
    }

    .hero__title {
        font-size: 48px;
    }

    .hero__content {
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .hero__title {
        font-size: 56px;
        max-width: 16ch;
    }
}

/* Stats Bar (Social Proof) */
.stats-bar {
    background: rgba(15, 23, 42, 0.6);
    padding: 48px 0;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.stats-bar__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.stats-bar__item {
    text-align: center;
}

.stats-bar__number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.stats-bar__label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 4px;
}

@media (min-width: 768px) {
    .stats-bar__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }

    .stats-bar__number {
        font-size: 42px;
    }
}

.advantages__cta-text {
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--text-light);
}

.services-types__cta-note {
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn--primary {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(15, 118, 110, 0.4);
}

.btn--secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn--secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Focus styles for accessibility */
.btn:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
}

.header__burger:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
}

.popup__close:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
}

/* Forms */
.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-cta-text {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.form__group {
    position: relative;
}

.form__group input,
.form__group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    background: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
}

.form__group input:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form__group input:focus-visible,
.form__group textarea:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
    border-color: var(--primary-color);
}

.form__group input.error,
.form__group textarea.error {
    border-color: var(--error-color);
}

.form__error {
    display: none;
    color: var(--error-color);
    font-size: 12px;
    margin-top: 5px;
}

.form__error.show {
    display: block;
}

.form__agreement {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
}

.form--centered {
    max-width: 500px;
    margin: 0 auto;
}

/* Sections — единая типографика и отступы */
.section__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    text-align: center;
    margin: 0 auto 16px;
    color: var(--text-color);
    letter-spacing: -0.03em;
    line-height: 1.25;
    max-width: 900px;
}

.section__subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.0625rem;
    font-weight: 500;
    margin: 0 auto 48px;
    max-width: 640px;
    line-height: 1.6;
}


/* --- Секции по референсу rabotniki.pro (функционал, цвета Liberty) --- */

/* Какие услуги предоставляем */
.services-offer {
    display: none !important;
    padding: 60px 0;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.services-offer__lead {
    text-align: center;
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.services-offer .section__subtitle {
    margin-bottom: 40px;
}

.services-offer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.services-offer__card {
    background: var(--bg-color-glass);
    padding: 28px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.services-offer__card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.services-offer__card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.services-offer__card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

.services-offer__cta {
    text-align: center;
}

@media (min-width: 768px) {
    .services-offer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-offer__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Экономия блок */
.economy-block {
    padding: 64px 0;
    background: linear-gradient(160deg, rgba(15, 118, 110, 0.25) 0%, transparent 60%);
    border-top: 1px solid var(--border-color);
}

.economy-block .section__title {
    margin-bottom: 20px;
}

.economy-block__text {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 28px;
    color: var(--text-light);
    font-size: 1.0625rem;
    line-height: 1.65;
}

.economy-block .container {
    text-align: center;
}

/* 4 ситуации в бизнесе */
.situations {
    padding: 64px 0;
}

.situations__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
}

.situation-card {
    background: var(--bg-light-glass);
    padding: 28px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.situation-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.situation-card h3,
.situation-card p {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
}

.situation-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
    margin-top: 0;
}

.situation-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.55;
    margin: 0;
}

.situations__cta {
    text-align: center;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .situations__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .situations__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Что произойдёт после заказа (6 шагов) */
.order-steps {
    padding: 64px 0;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.order-steps__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 40px;
}

.order-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg-color-glass);
    padding: 28px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
}

.order-step:hover {
    border-color: var(--primary-color);
}

.order-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: white;
    font-size: 18px;
    font-weight: 800;
    border-radius: 8px;
    margin-bottom: 16px;
}

.order-step h3,
.order-step p {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
}

.order-step h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    margin-top: 0;
}

.order-step p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

.order-steps__cta {
    text-align: center;
    margin-top: 44px;
}

@media (min-width: 768px) {
    .order-steps__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .order-steps__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Тарифы */
.tariffs {
    padding: 64px 0;
}

.tariffs .section__subtitle {
    margin-bottom: 40px;
}

.tariffs__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.tariff-card {
    background: var(--bg-light-glass);
    padding: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.tariff-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-lg);
}

.tariff-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.3;
}

.tariff-card__type {
    font-size: 13px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.tariff-card__price {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.tariff-card__list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    flex-grow: 1;
}

.tariff-card__list li {
    position: relative;
    padding-left: 22px;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 8px;
}

.tariff-card__list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.tariff-card .btn {
    width: 100%;
    margin-top: auto;
}

@media (min-width: 768px) {
    .tariffs__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tariffs__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Почему вы экономите */
.why-save {
    padding: 64px 0;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.why-save__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 40px;
}

.why-save__item {
    background: var(--bg-color-glass);
    padding: 28px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.why-save__item h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.why-save__item p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.55;
    margin: 0;
}

@media (min-width: 768px) {
    .why-save__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .why-save__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* CTA обратный звонок */
.cta-callback {
    padding: 64px 0;
    background: linear-gradient(160deg, rgba(15, 118, 110, 0.35) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-top: 1px solid var(--border-color);
}

.cta-callback__title {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    color: var(--text-color);
    margin-bottom: 24px;
    line-height: 1.3;
}

.cta-callback .container {
    text-align: center;
}

.btn--large {
    padding: 16px 40px;
    font-size: 18px;
}

/* С кем мы работаем */
.we-work-with {
    padding: 64px 0;
}

.we-work-with__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.we-work-with__item {
    background: var(--bg-light-glass);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    transition: var(--transition);
}

.we-work-with__item:hover {
    border-color: var(--primary-color);
    color: var(--accent-color);
}

.we-work-with__cta {
    text-align: center;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .we-work-with__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Promo teaser on main page */
.promo-teaser {
    padding: 64px 0;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.promo-teaser .section__subtitle {
    margin-bottom: 24px;
}

.promo-teaser__cta {
    text-align: center;
}

/* Why Us Section */
.why-us {
    padding: 80px 0;
    background: transparent;
}

.why-us__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.why-us__item {
    background: var(--bg-light-glass);
    padding: 32px;
    border-radius: 8px;
    border: 1px solid rgba(51, 65, 85, 0.4);
    text-align: center;
    transition: var(--transition);
}

.why-us__item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.why-us__icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.why-us__item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.why-us__item p {
    color: var(--text-light);
}

@media (min-width: 768px) {
    .why-us__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .why-us__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Services Types */
.services-types {
    padding: 60px 0;
}

.services-types__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--bg-light-glass);
    padding: 32px;
    border-radius: 8px;
    border: 1px solid rgba(51, 65, 85, 0.4);
    border-left: 4px solid var(--accent-color);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.services-types__cta {
    margin-top: 50px;
    text-align: center;
    padding: 40px;
    background: var(--bg-light-glass);
    border-radius: 12px;
}

.services-types__cta h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-color);
}

@media (min-width: 768px) {
    .services-types__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Work Stages */
.work-stages {
    padding: 60px 0;
    background: var(--bg-light-glass);
}

.work-stages__slider {
    overflow-x: auto;
    padding: 20px 0;
    margin-top: 40px;
}

.work-stages__track {
    display: flex;
    gap: 30px;
    min-width: max-content;
}

.stage-item {
    min-width: 250px;
    background: var(--bg-light-glass);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stage-item__number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stage-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.stage-item p {
    color: var(--text-light);
}

@media (min-width: 1024px) {
    .work-stages__track {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        min-width: auto;
    }

    .work-stages__slider {
        overflow-x: visible;
    }
}

/* Projects Preview */
.projects-preview {
    padding: 60px 0;
}

.projects-preview__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: var(--bg-light-glass);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.project-card p {
    color: var(--text-light);
}

.projects-preview .btn {
    display: block;
    margin: 40px auto 0;
    max-width: 300px;
}

@media (min-width: 768px) {
    .projects-preview__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Regions Section */
.regions {
    padding: 60px 0;
    background: transparent;
}

.regions__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
    margin: 30px 0 20px;
}

.regions__city {
    padding: 10px 20px;
    background: var(--bg-light-glass);
    border-radius: 8px;
    font-weight: 500;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.regions__note {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
}

.faq-section .accordion--faq .accordion__salary-col {
    display: none;
}

.faq-cta {
    text-align: center;
    margin-top: 50px;
}

.faq-cta p {
    margin-bottom: 20px;
    color: var(--text-light);
}

/* Calculator Section */
.calculator {
    padding: 60px 0;
    background: var(--bg-light-glass);
}

.calculator__wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: var(--bg-light-glass);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.calculator__form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.calculator__group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
}

.calculator__group select,
.calculator__group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    background: var(--bg-color);
    color: var(--text-color);
}

.calculator__group select:focus,
.calculator__group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.calculator__result {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.calculator__result-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.calculator__result-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-color);
    color: var(--primary-color);
    margin-bottom: 16px;
}

.calculator__result-value--year {
    font-size: 22px;
    margin-bottom: 20px;
}

.calculator__note {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .calculator__wrap {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .calculator__form {
        grid-template-columns: 1fr;
    }

    .calculator__result {
        padding-top: 0;
        border-top: none;
        border-left: 1px solid var(--border-color);
        padding-left: 40px;
        text-align: left;
    }
}

/* Jobs Page */
.jobs {
    padding: 60px 0;
}

.page-title {
    font-size: 40px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-color);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.jobs-header {
    display: none;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    padding: 20px;
    background: var(--bg-light-glass);
    border-radius: 8px;
    margin-bottom: 30px;
}

.jobs-header h2 {
    font-size: 18px;
    color: var(--text-color);
}

@media (min-width: 768px) {
    .jobs-header {
        display: grid;
    }
}

/* Accordion */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion__item {
    background: var(--bg-light-glass);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 6px;
    overflow: hidden;
    transition: var(--transition);
}

.accordion__item.active {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.accordion__header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    gap: 15px;
    transition: var(--transition);
}

.accordion__header:hover {
    background: rgba(30, 41, 59, 0.6);
}

.accordion__title-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.accordion__title-col h3 {
    font-size: 18px;
    color: var(--text-color);
}

.accordion__salary-col {
    display: none;
}

.salary-range {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.accordion__icon {
    font-size: 24px;
    font-weight: 300;
    color: var(--primary-color);
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion__item.active .accordion__icon {
    transform: rotate(45deg);
}

.accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion__item.active .accordion__content {
    max-height: 1000px;
}

.accordion__body {
    padding: 0 20px 20px 20px;
    color: var(--text-light);
    line-height: 1.8;
}

.accordion__body p {
    margin-bottom: 10px;
}

.accordion__body p:last-child {
    margin-bottom: 0;
}

.accordion__apply {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
}

@media (min-width: 768px) {
    .accordion__header {
        grid-template-columns: 2fr 1fr auto;
    }

    .accordion__salary-col {
        display: block;
    }

    .accordion__title-col h3 {
        font-size: 20px;
    }
}

/* Contact Form Section */
.contact-form-section {
    padding: 60px 0;
    background: var(--bg-light-glass);
}


/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.breadcrumbs a {
    color: var(--text-light);
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--accent-color);
}

.breadcrumbs__sep {
    opacity: 0.6;
}

/* Page Content */
.page-content {
    padding: 60px 0;
    min-height: 60vh;
}

.page-lead {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
    color: var(--text-light);
    font-size: 17px;
    line-height: 1.6;
}

/* Promotions page (акции) */
.promo-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 40px;
}

.promo-card {
    background: var(--bg-light-glass);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    transition: var(--transition);
}

.promo-card:hover {
    box-shadow: var(--shadow-lg);
}

.promo-card__badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.promo-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
    line-height: 1.3;
}

.promo-card p {
    color: var(--text-light);
    line-height: 1.65;
    margin-bottom: 12px;
}

.promo-card p:last-of-type {
    margin-bottom: 20px;
}

.promo-cta-block {
    margin-top: 56px;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.promo-cta-block h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 24px;
}

.promo-steps {
    text-align: left;
    max-width: 520px;
    margin: 0 auto 28px;
    padding-left: 24px;
    color: var(--text-light);
    line-height: 1.7;
}

.promo-steps li {
    margin-bottom: 10px;
}

.promo-cta-block .btn--large {
    margin-top: 8px;
}

/* Services Detail */
.services-detail {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.service-detail-item {
    background: var(--bg-light-glass);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.service-detail-item h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-detail-item p {
    color: var(--text-light);
    line-height: 1.8;
}

.services-cta {
    margin-top: 50px;
    text-align: center;
    padding: 40px;
    background: var(--bg-light-glass);
    border-radius: 12px;
}

.services-cta h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.services-cta p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.project-card-full {
    background: var(--bg-light-glass);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card-full:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-card-full h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.project-client {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.project-card-full p {
    color: var(--text-light);
    line-height: 1.8;
}

.projects-cta {
    margin-top: 50px;
    text-align: center;
    padding: 40px;
    background: var(--bg-light-glass);
    border-radius: 12px;
}

.projects-cta h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.projects-cta p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* About Content */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.about-section {
    background: var(--bg-light-glass);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.about-section h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.about-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-list {
    list-style: disc;
    padding-left: 20px;
    color: var(--text-light);
}

.about-list li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.about-cta {
    margin-top: 50px;
    text-align: center;
    padding: 40px;
    background: var(--bg-light-glass);
    border-radius: 12px;
}

.about-cta h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.about-cta p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Contacts Grid */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contacts-info {
    background: var(--bg-light-glass);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contacts-info h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.8;
}

.contact-item a {
    color: var(--logo-blue);
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--accent-color);
}

.contact-note {
    font-size: 14px;
    margin-top: 5px;
}

.contact-blocks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.contact-block {
    padding: 20px;
    background: var(--bg-light-glass);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.contact-block h3 {
    margin-bottom: 12px;
    font-size: 16px;
}

.contact-block p {
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .contact-blocks {
        grid-template-columns: 1fr 1fr;
    }
}

.contacts-form-wrapper {
    background: var(--bg-light-glass);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contacts-form-wrapper h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.contacts-form-wrapper > p {
    color: var(--text-light);
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Footer */
.footer {
    background: linear-gradient(180deg, rgba(13, 77, 71, 0.9) 0%, rgba(15, 23, 42, 0.98) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    padding: 64px 0 32px;
    margin-top: 80px;
}

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

.footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__col:first-child img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.footer__logo-titles {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer__logo-ru {
    font-size: 18px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.footer__logo-en {
    font-size: 10px;
    font-weight: 500;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.footer__col h3,
.footer__col h4 {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer__col p {
    margin-bottom: 10px;
    opacity: 0.9;
    line-height: 1.8;
}

.footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__col ul li a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer__col ul li a:hover {
    opacity: 1;
    color: var(--accent-light);
}

.footer__col a {
    color: inherit;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.footer__links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer__links a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer__links a:hover {
    opacity: 1;
}

@media (min-width: 768px) {
    .footer__content {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

/* Popup (native <dialog> element) */
.popup:not([open]) {
    display: none;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: auto;
    border: none;
    background: transparent;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup::backdrop {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.popup__content {
    position: relative;
    background: var(--bg-light-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-color);
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2001;
    box-shadow: var(--shadow-lg);
}

.popup__close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 32px;
    color: var(--text-light);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.popup__close:hover {
    color: var(--text-color);
    transform: rotate(90deg);
}

.popup__content h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.popup__b24-form {
    min-height: 380px;
}

.popup__b24-form iframe {
    width: 100%;
    border: none;
    border-radius: 6px;
}

/* Success Message */
.form-success,
.form-error {
    display: none;
    background: var(--success-color);
    color: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

.form-success.show {
    display: block;
}

.form-error {
    background: var(--error-color);
    color: white;
}

.form-error.show {
    display: block;
}

/* Hero Forms - формы в герое (клиенты и кандидаты) */
.hero-forms {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 900px) {
    .hero-forms {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 1100px;
        align-items: flex-start;
    }
}

.hero__form h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 600;
}

/* Hero forms — единый стиль Bitrix24 */
.form-find-staff {
    background: var(--bg-gray);
    padding: 28px;
    border-radius: 8px;
    color: var(--text-color);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.form-find-staff h2 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.form-find-staff h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 600;
}

/* Блок для кандидатов — стиль Bitrix24 в тёмной теме */
.form-find-job {
    background: var(--bg-gray);
    padding: 28px;
    border-radius: 8px;
    color: var(--text-color);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.form-find-job h2 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.form-find-job h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 600;
}

/* Bitrix24 форма для соискателей */
.form-find-job .b24-form-candidates {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 200px;
}

/* Если Bitrix24 подставляет iframe — растягиваем под контейнер */
.form-find-job .b24-form-candidates iframe {
    width: 100% !important;
    min-height: 400px;
    border: none;
}

/* Контейнер формы Bitrix24 и вложенные элементы */
.form-find-job .b24-form-candidates [class*="b24-form"],
.form-find-job .b24-form-candidates form,
.form-find-job .b24-form-candidates .b24-form-container,
.form-find-job .b24-form-candidates > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

/* Поля Bitrix24 — цвета Bitrix24 CRM */
.form-find-job .b24-form-candidates input[type="text"],
.form-find-job .b24-form-candidates input[type="email"],
.form-find-job .b24-form-candidates input[type="tel"],
.form-find-job .b24-form-candidates input[type="number"],
.form-find-job .b24-form-candidates input[type="password"],
.form-find-job .b24-form-candidates select,
.form-find-job .b24-form-candidates textarea {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 14px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 6px !important;
    background: var(--bg-light-glass) !important;
    font-size: 15px !important;
    font-family: inherit !important;
    color: var(--text-color) !important;
    transition: var(--transition) !important;
    box-sizing: border-box !important;
}

.form-find-job .b24-form-candidates input:focus,
.form-find-job .b24-form-candidates select:focus,
.form-find-job .b24-form-candidates textarea:focus {
    outline: none !important;
    border-color: var(--logo-blue) !important;
    background: var(--bg-light-glass) !important;
}

/* Лейблы — стиль Bitrix24 */
.form-find-job .b24-form-candidates label,
.form-find-job .b24-form-candidates .b24-form-field-label,
.form-find-job .b24-form-candidates [class*="label"] {
    display: block !important;
    margin-bottom: 6px !important;
    font-weight: 500 !important;
    color: var(--text-color) !important;
    font-size: 13px !important;
}

/* Кнопка — Bitrix24 cyan */
.form-find-job .b24-form-candidates button[type="submit"],
.form-find-job .b24-form-candidates input[type="submit"],
.form-find-job .b24-form-candidates .b24-form-btn-container button,
.form-find-job .b24-form-candidates [class*="submit"],
.form-find-job .b24-form-candidates [class*="button"]:not([type="button"]),
.form-find-job .b24-form-candidates a[class*="button"] {
    background: var(--primary-color) !important;
    color: white !important;
    padding: 12px 30px !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    width: 100% !important;
    text-align: center !important;
}

.form-find-job .b24-form-candidates button[type="submit"]:hover,
.form-find-job .b24-form-candidates input[type="submit"]:hover,
.form-find-job .b24-form-candidates .b24-form-btn-container button:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(47, 198, 246, 0.35);
}

/* Соглашение — Bitrix24 */
.form-find-job .b24-form-candidates p,
.form-find-job .b24-form-candidates [class*="agreement"],
.form-find-job .b24-form-candidates .b24-form-footer {
    font-size: 12px !important;
    color: var(--text-light) !important;
    margin-top: 10px !important;
    text-align: center !important;
}

/* Группы полей */
.form-find-job .b24-form-candidates [class*="field"],
.form-find-job .b24-form-candidates [class*="form-group"] {
    margin-bottom: 0 !important;
}

/* Заголовок формы Bitrix24 (если есть) */
.form-find-job .b24-form-candidates h4,
.form-find-job .b24-form-candidates [class*="title"] {
    font-size: 16px !important;
    color: var(--text-color) !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
}

/* Bitrix24 форма для клиентов (hero) и партнёров */
.form-find-staff .b24-form-clients,
.form-find-staff .b24-form-partners {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 200px;
}

.form-find-staff .b24-form-clients iframe,
.form-find-staff .b24-form-partners iframe {
    width: 100% !important;
    min-height: 450px;
    border: none;
}

.form-find-staff .b24-form-clients [class*="b24-form"],
.form-find-staff .b24-form-clients form,
.form-find-staff .b24-form-clients .b24-form-container,
.form-find-staff .b24-form-clients > div,
.form-find-staff .b24-form-partners [class*="b24-form"],
.form-find-staff .b24-form-partners form,
.form-find-staff .b24-form-partners .b24-form-container,
.form-find-staff .b24-form-partners > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.form-find-staff .b24-form-clients input[type="text"],
.form-find-staff .b24-form-clients input[type="email"],
.form-find-staff .b24-form-clients input[type="tel"],
.form-find-staff .b24-form-clients input[type="number"],
.form-find-staff .b24-form-clients input[type="password"],
.form-find-staff .b24-form-clients select,
.form-find-staff .b24-form-clients textarea,
.form-find-staff .b24-form-partners input[type="text"],
.form-find-staff .b24-form-partners input[type="email"],
.form-find-staff .b24-form-partners input[type="tel"],
.form-find-staff .b24-form-partners input[type="number"],
.form-find-staff .b24-form-partners input[type="password"],
.form-find-staff .b24-form-partners select,
.form-find-staff .b24-form-partners textarea {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 14px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 6px !important;
    background: var(--bg-light-glass) !important;
    font-size: 15px !important;
    font-family: inherit !important;
    color: var(--text-color) !important;
    transition: var(--transition) !important;
    box-sizing: border-box !important;
}

.form-find-staff .b24-form-clients input:focus,
.form-find-staff .b24-form-clients select:focus,
.form-find-staff .b24-form-clients textarea:focus,
.form-find-staff .b24-form-partners input:focus,
.form-find-staff .b24-form-partners select:focus,
.form-find-staff .b24-form-partners textarea:focus {
    outline: none !important;
    border-color: var(--logo-blue) !important;
    background: var(--bg-light-glass) !important;
}

.form-find-staff .b24-form-clients label,
.form-find-staff .b24-form-clients [class*="label"],
.form-find-staff .b24-form-partners label,
.form-find-staff .b24-form-partners [class*="label"] {
    display: block !important;
    margin-bottom: 6px !important;
    font-weight: 500 !important;
    color: var(--text-color) !important;
    font-size: 13px !important;
}

.form-find-staff .b24-form-clients button[type="submit"],
.form-find-staff .b24-form-clients input[type="submit"],
.form-find-staff .b24-form-clients [class*="submit"],
.form-find-staff .b24-form-clients [class*="button"]:not([type="button"]),
.form-find-staff .b24-form-partners button[type="submit"],
.form-find-staff .b24-form-partners input[type="submit"],
.form-find-staff .b24-form-partners [class*="submit"],
.form-find-staff .b24-form-partners [class*="button"]:not([type="button"]) {
    background: var(--primary-color) !important;
    color: white !important;
    padding: 12px 24px !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
}

.form-find-staff .b24-form-clients button[type="submit"]:hover,
.form-find-staff .b24-form-clients input[type="submit"]:hover,
.form-find-staff .b24-form-partners button[type="submit"]:hover,
.form-find-staff .b24-form-partners input[type="submit"]:hover {
    background: var(--primary-dark) !important;
}

.form-find-staff .b24-form-clients p,
.form-find-staff .b24-form-clients [class*="agreement"],
.form-find-staff .b24-form-clients [class*="footer"],
.form-find-staff .b24-form-partners p,
.form-find-staff .b24-form-partners [class*="agreement"],
.form-find-staff .b24-form-partners [class*="footer"] {
    font-size: 12px !important;
    color: var(--text-light) !important;
}

/* Bitrix24 форма в блоке «Остались вопросы?» (jobs.html) */
.contact-form-section .b24-form-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 200px;
    max-width: 500px;
    margin: 0 auto;
}

.contact-form-section .b24-form-contact iframe {
    width: 100% !important;
    min-height: 400px;
    border: none;
}

.contact-form-section .b24-form-contact [class*="b24-form"],
.contact-form-section .b24-form-contact form,
.contact-form-section .b24-form-contact .b24-form-container,
.contact-form-section .b24-form-contact > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.contact-form-section .b24-form-contact input[type="text"],
.contact-form-section .b24-form-contact input[type="email"],
.contact-form-section .b24-form-contact input[type="tel"],
.contact-form-section .b24-form-contact input[type="number"],
.contact-form-section .b24-form-contact input[type="password"],
.contact-form-section .b24-form-contact select,
.contact-form-section .b24-form-contact textarea {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 14px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 6px !important;
    background: var(--bg-light-glass) !important;
    font-size: 15px !important;
    font-family: inherit !important;
    color: var(--text-color) !important;
    transition: var(--transition) !important;
    box-sizing: border-box !important;
}

.contact-form-section .b24-form-contact input:focus,
.contact-form-section .b24-form-contact select:focus,
.contact-form-section .b24-form-contact textarea:focus {
    outline: none !important;
    border-color: var(--logo-blue) !important;
    background: var(--bg-light-glass) !important;
}

.contact-form-section .b24-form-contact label,
.contact-form-section .b24-form-contact .b24-form-field-label,
.contact-form-section .b24-form-contact [class*="label"] {
    display: block !important;
    margin-bottom: 6px !important;
    font-weight: 500 !important;
    color: var(--text-color) !important;
    font-size: 13px !important;
}

.contact-form-section .b24-form-contact button[type="submit"],
.contact-form-section .b24-form-contact input[type="submit"],
.contact-form-section .b24-form-contact .b24-form-btn-container button,
.contact-form-section .b24-form-contact [class*="submit"],
.contact-form-section .b24-form-contact [class*="button"]:not([type="button"]),
.contact-form-section .b24-form-contact a[class*="button"] {
    background: var(--primary-color) !important;
    color: white !important;
    padding: 12px 30px !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    width: 100% !important;
    text-align: center !important;
}

.contact-form-section .b24-form-contact button[type="submit"]:hover,
.contact-form-section .b24-form-contact input[type="submit"]:hover,
.contact-form-section .b24-form-contact .b24-form-btn-container button:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(47, 198, 246, 0.35);
}

.contact-form-section .b24-form-contact p,
.contact-form-section .b24-form-contact [class*="agreement"],
.contact-form-section .b24-form-contact .b24-form-footer,
.contact-form-section .b24-form-contact [class*="footer"] {
    font-size: 12px !important;
    color: var(--text-light) !important;
    margin-top: 10px !important;
    text-align: center !important;
}

.contact-form-section .b24-form-contact [class*="field"],
.contact-form-section .b24-form-contact [class*="form-group"] {
    margin-bottom: 0 !important;
}

.contact-form-section .b24-form-contact h4,
.contact-form-section .b24-form-contact [class*="title"] {
    font-size: 16px !important;
    color: var(--text-color) !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
}

/* Bitrix24 форма для клиентов (contacts.html) */
.contacts-form-wrapper .b24-form-clients {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 200px;
}

.contacts-form-wrapper .b24-form-clients iframe {
    width: 100% !important;
    min-height: 400px;
    border: none;
}

.contacts-form-wrapper .b24-form-clients [class*="b24-form"],
.contacts-form-wrapper .b24-form-clients form,
.contacts-form-wrapper .b24-form-clients .b24-form-container,
.contacts-form-wrapper .b24-form-clients > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.contacts-form-wrapper .b24-form-clients input[type="text"],
.contacts-form-wrapper .b24-form-clients input[type="email"],
.contacts-form-wrapper .b24-form-clients input[type="tel"],
.contacts-form-wrapper .b24-form-clients input[type="number"],
.contacts-form-wrapper .b24-form-clients input[type="password"],
.contacts-form-wrapper .b24-form-clients select,
.contacts-form-wrapper .b24-form-clients textarea {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 14px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 6px !important;
    background: var(--bg-light-glass) !important;
    font-size: 15px !important;
    font-family: inherit !important;
    color: var(--text-color) !important;
    transition: var(--transition) !important;
    box-sizing: border-box !important;
}

.contacts-form-wrapper .b24-form-clients input:focus,
.contacts-form-wrapper .b24-form-clients select:focus,
.contacts-form-wrapper .b24-form-clients textarea:focus {
    outline: none !important;
    border-color: var(--logo-blue) !important;
    background: var(--bg-light-glass) !important;
}

.contacts-form-wrapper .b24-form-clients label,
.contacts-form-wrapper .b24-form-clients .b24-form-field-label,
.contacts-form-wrapper .b24-form-clients [class*="label"] {
    display: block !important;
    margin-bottom: 6px !important;
    font-weight: 500 !important;
    color: var(--text-color) !important;
    font-size: 13px !important;
}

.contacts-form-wrapper .b24-form-clients button[type="submit"],
.contacts-form-wrapper .b24-form-clients input[type="submit"],
.contacts-form-wrapper .b24-form-clients .b24-form-btn-container button,
.contacts-form-wrapper .b24-form-clients [class*="submit"],
.contacts-form-wrapper .b24-form-clients [class*="button"]:not([type="button"]),
.contacts-form-wrapper .b24-form-clients a[class*="button"] {
    background: var(--primary-color) !important;
    color: white !important;
    padding: 12px 30px !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    width: 100% !important;
    text-align: center !important;
}

.contacts-form-wrapper .b24-form-clients button[type="submit"]:hover,
.contacts-form-wrapper .b24-form-clients input[type="submit"]:hover,
.contacts-form-wrapper .b24-form-clients .b24-form-btn-container button:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(47, 198, 246, 0.35);
}

.contacts-form-wrapper .b24-form-clients p,
.contacts-form-wrapper .b24-form-clients [class*="agreement"],
.contacts-form-wrapper .b24-form-clients .b24-form-footer,
.contacts-form-wrapper .b24-form-clients [class*="footer"] {
    font-size: 12px !important;
    color: var(--text-light) !important;
    margin-top: 10px !important;
    text-align: center !important;
}

.contacts-form-wrapper .b24-form-clients [class*="field"],
.contacts-form-wrapper .b24-form-clients [class*="form-group"] {
    margin-bottom: 0 !important;
}

.contacts-form-wrapper .b24-form-clients h4,
.contacts-form-wrapper .b24-form-clients [class*="title"] {
    font-size: 16px !important;
    color: var(--text-color) !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
}

/* Форма партнёров — скролл (если нужен) */
.form-advanced {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.form-advanced::-webkit-scrollbar {
    width: 6px;
}

.form-advanced::-webkit-scrollbar-track {
    background: var(--bg-light-glass);
    border-radius: 3px;
}

.form-advanced::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.form-advanced::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Поля формы партнёров — стиль Bitrix24 (как у кандидатов) */
.form-find-staff .form__group label {
    font-size: 13px;
    color: var(--text-color);
    font-weight: 500;
}

.form-find-staff .form__group select,
.form-find-staff .form__group input {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 15px;
    background: var(--bg-color);
    color: var(--text-color);
}

.form-find-staff .form__group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-color: var(--bg-color);
    padding-right: 40px;
}

.form-find-staff .form__group select:focus,
.form-find-staff .form__group input:focus {
    border-color: var(--logo-blue);
    background-color: var(--bg-color);
}

.form-find-staff .form__group select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232dd4bf' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.form-find-staff .form button[type="submit"],
.form-find-staff .btn--primary {
    background: var(--primary-color) !important;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
}

.form-find-staff .form button[type="submit"]:hover,
.form-find-staff .btn--primary:hover {
    background: var(--primary-dark) !important;
    box-shadow: 0 2px 8px rgba(47, 198, 246, 0.35);
}

.form-find-staff .form__agreement {
    font-size: 12px;
    color: var(--text-light);
}

.form__group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
}

.form__group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    background: var(--bg-light-glass);
    color: var(--text-color);
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232dd4bf' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.form__group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form__group select:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
    border-color: var(--primary-color);
}

.form__group select.error {
    border-color: var(--error-color);
}

.form__group select option {
    padding: 10px;
}

/* Advantages Section */
.advantages {
    padding: 60px 0;
    background: var(--bg-light-glass);
}

.advantages__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.advantage-item {
    background: var(--bg-light-glass);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.advantage-item__icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--logo-blue) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    padding: 15px;
}

.advantage-item__icon svg {
    width: 100%;
    height: 100%;
}

.advantage-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 600;
}

.advantage-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.advantages__cta {
    text-align: center;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .advantages__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .advantages__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Innovations Section */
.innovations {
    padding: 60px 0;
    background: var(--bg-light-glass);
}

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

.innovation-card {
    background: var(--bg-light-glass);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.innovation-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.innovation-card__icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    padding: 15px;
}

.innovation-card__icon svg {
    width: 100%;
    height: 100%;
}

.innovation-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 600;
}

.innovation-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.innovation-card__list li {
    padding: 10px 0;
    padding-left: 25px;
    color: var(--text-light);
    position: relative;
    line-height: 1.6;
}

.innovation-card__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
}

@media (min-width: 768px) {
    .innovations__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Clients Categories Section */
.clients-categories {
    padding: 60px 0;
    background: var(--bg-light-glass);
}

.clients-categories__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.client-category {
    background: var(--bg-light-glass);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.client-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-color);
}

.client-category__icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light-glass);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.client-category__icon svg {
    width: 100%;
    height: 100%;
}

.client-category h3 {
    font-size: 16px;
    color: var(--text-color);
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .clients-categories__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .client-category {
        padding: 30px;
    }
    
    .client-category h3 {
        font-size: 18px;
    }
}

@media (min-width: 1024px) {
    .clients-categories__grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
