/* ============================================================
   RAD-ERP — общие стили лендинга (/, /erp, /crm)
   ============================================================ */

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

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

:root {
    --text-color: #636B76;
    --bg-color: #F3F4F6;
    --border-color: #d8d8d8;
    --blue: #306FCC;
    --blue-bg: rgba(161, 192, 227, 0.3);
    --blue-bg-2: rgba(161, 192, 227, 0.5);
    --blue-bg-3: rgba(161, 192, 227, 1);
    --blue-bg-hovered: rgb(103, 151, 205);
    --green-old: #00D5BE;
    --green: #00BBA7;
    --green-bg-hovered: rgba(1, 143, 129, 0.5);
    --green-bg: rgba(170, 214, 210, 0.3);
    --yellow-second: rgba(223, 192, 139, 0.3);
    --yellow: rgba(255, 227, 103, 0.9);
    --yellow-bg: rgba(250, 203, 126, 0.8);
    --red: #fc4750;
    --red-bg: rgba(227, 135, 141, 0.3);
    --red-bg-2: rgba(227, 135, 141, 0.5);
    --red-bg-hovered: rgba(159, 27, 33, 0.5);
    --fiolet: #8e51ff;
    --fiolet-bg: rgba(189, 163, 237, 0.3);
    --dark: #1e293b;
    --card-shadow: 0 8px 20px rgba(0,0,0,0.02), 0 2px 6px rgba(0,0,0,0.05);
    --transition: 0.2s ease;
}

body {
    font-family: "Inter", sans-serif;
    background-color: var(--bg-color);
    color: #1e293b;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ---------- Фон ---------- */
.bg-shape {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: -1; overflow: hidden;
}
.shape {
    position: absolute; border-radius: 50%;
    filter: blur(60px); opacity: 0.25;
    animation: float 20s infinite ease-in-out;
}
.shape-1 { width: 400px; height: 400px; background: var(--blue);   top: -100px; right: -100px; animation-delay: 0s; }
.shape-2 { width: 300px; height: 300px; background: var(--green);  bottom: -50px; left: -50px; animation-delay: -5s; animation-duration: 25s; }
.shape-3 { width: 350px; height: 350px; background: var(--fiolet); top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: -10s; animation-duration: 30s; opacity: 0.2; }
.shape-4 { width: 250px; height: 250px; background: var(--yellow); bottom: 20%; right: 10%; animation-delay: -15s; animation-duration: 22s; }
.shape-5 { width: 200px; height: 200px; background: var(--red);    top: 30%; left: 15%; animation-delay: -7s; animation-duration: 18s; opacity: 0.25; }
.shape-6 { width: 280px; height: 280px; background: var(--green);  bottom: 65%; right: 35%; animation-delay: -12s; animation-duration: 24s; opacity: 0.25; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(4%, 4%) scale(1.04); }
    50% { transform: translate(-4%, 3%) scale(0.96); }
    75% { transform: translate(3%, -4%) scale(1.02); }
}

/* ---------- Типографика и сетка ---------- */
.container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    position: relative; z-index: 1;
}

h1, h2, h3 { font-weight: 600; color: #0f172a; letter-spacing: -0.02em; }
h1 { font-size: 3.2rem; line-height: 1.2; margin-bottom: 1.5rem; }
h2 { font-size: 2.4rem; margin-bottom: 2rem; text-align: center; }
h2 i { margin-right: 8px; color: var(--blue); }

.section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}
.section:last-child { border-bottom: none; }

.lead { font-size: 1.15rem; color: #334155; max-width: 640px; line-height: 1.7; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--blue-bg-2); color: #123a6b;
    padding: 8px 18px; border-radius: 999px;
    font-size: 0.9rem; font-weight: 600;
    margin-bottom: 22px;
    border: 1px solid rgba(48, 111, 204, 0.2);
}

/* ---------- Навигация ---------- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 0;
}
.logo {
    font-size: 2rem; font-weight: 700; color: #0f172a;
    display: flex; flex-direction: row; gap: 7px; align-items: center;
    text-decoration: none;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
    text-decoration: none; color: #1e293b; font-weight: 500;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue); font-weight: 600; }

@media (min-width: 769px) and (max-width: 1000px) {
    .nav-links { gap: 18px; }
}

.btn {
    color: var(--blue) !important;
    background: var(--blue-bg-2);
    padding: 6px 15px; border-radius: 30px;
    font-size: 0.9rem; font-weight: 500;
}

/* ---------- Hero (главная) ---------- */
.hero { display: flex; align-items: center; gap: 40px; padding: 20px 0 40px; }
.hero-content { flex: 1; }
.hero-badge {
    background: var(--fiolet-bg); color: #5b21b6;
    padding: 6px 16px; border-radius: 40px;
    font-size: 0.9rem; font-weight: 600;
    display: inline-block; margin-bottom: 24px;
    border: 1px solid rgba(142, 81, 255, 0.2);
}
.hero-description {
    font-size: 1.2rem; max-width: 500px;
    margin-bottom: 32px; color: #334155;
}
.hero-stats { display: flex; gap: 32px; margin-top: 40px; }
.stat-item { display: flex; flex-direction: column; }
.stat-number { font-size: 2rem; font-weight: 700; color: #0f172a; }

/* ---------- Hero (страницы /erp, /crm) ---------- */
.page-hero { padding: 20px 0 40px; }
.page-hero__inner { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.page-hero__text { flex: 1 1 520px; }
.page-hero__media { flex: 1 1 420px; display: flex; justify-content: center; }

.page-hero__frame {
    width: 100%;
    max-width: 460px;
    border-radius: 40px;
    border: 2px solid var(--blue);
    background: var(--blue-bg);
    box-shadow: 0 30px 40px -20px rgba(48,111,204,0.4);
    overflow: hidden;
    aspect-ratio: 16 / 11;
    display: flex; align-items: center; justify-content: center;
}
.page-hero__frame img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ---------- Два колонки текст + картинка ---------- */
.split { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.split__text { flex: 1 1 420px; }
.split__text h3 { font-size: 1.8rem; margin-bottom: 16px; }
.split__text h3 i { color: var(--blue); margin-right: 10px; }
.split__text p { color: #334155; line-height: 1.7; margin-bottom: 14px; }
.split__media { flex: 1 1 420px; display: flex; justify-content: center; }

/* ---------- Видео ---------- */
.video-demo {
    background: linear-gradient(135deg, var(--blue-bg-2), var(--fiolet-bg));
    border-radius: 48px; padding: 60px 40px; text-align: center;
    margin: 20px 0 40px; border: 1px solid rgba(255,255,255,0.5);
}
.video-wrapper {
    max-width: 1200px; margin: 40px auto 0;
    border-radius: 32px; overflow: hidden;
    box-shadow: 0 30px 40px -20px #0f172a;
    background: #0f172a; aspect-ratio: 16/9;
}
.custom-video-player {
    width: 100%; height: 100%; display: block;
    background: #F3F4F6; object-fit: contain;
}

/* ---------- Карточки возможностей ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px; margin-top: 20px;
}
.feature-card {
    background-color: white;
    border-radius: 28px;
    padding: 28px 24px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    position: relative; overflow: hidden;
    display: flex; flex-direction: column;
}
.feature-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--fiolet));
    opacity: 0; transition: var(--transition);
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--blue-bg-3);
    box-shadow: 0 20px 25px -12px rgba(48,111,204,0.2);
}
.feature-icon {
    width: 56px; height: 56px;
    background: var(--blue-bg); border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; color: var(--blue);
    font-size: 1.8rem; flex-shrink: 0;
}
.feature-card h3 { font-size: 1.5rem; margin-bottom: 12px; color: #0f172a; flex-shrink: 0; }
.feature-card p {
    color: #475569; font-size: 0.95rem; line-height: 1.6;
    flex: 1; min-height: 60px;
}
.feature-problem {
    font-size: 0.9rem; color: #64748b;
    margin-top: 12px; padding-top: 12px;
    border-top: 1px dashed var(--border-color);
    min-height: 70px;
}
.feature-problem i { color: var(--blue); margin-right: 6px; }

.card-button-block {
    display: flex; justify-content: center; align-items: center;
    margin-top: 1rem;
}
.blue-button {
    background-color: var(--blue); color: white;
    font-size: 14px; font-weight: 500;
    border: none; border-radius: 7px;
    padding: 5px 10px; cursor: pointer;
    transition: all 0.175s ease-in-out;
    display: flex; justify-content: center; align-items: center;
}
.blue-button:hover { background-color: var(--blue-bg-hovered); }
a.blue-button { text-decoration: none; }

.feature-btn {
    margin-top: 20px; width: 100%;
    padding: 12px;
    border: 2px solid var(--blue); border-radius: 40px;
    background: transparent; color: var(--blue);
    font-weight: 600; cursor: pointer;
    transition: var(--transition);
    font-family: "Inter", sans-serif; font-size: 1rem;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    text-decoration: none;
}
.feature-btn:hover { background: var(--blue); color: white; transform: translateY(-2px); }

/* ---------- Преимущества (/erp, /crm) ---------- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px; margin-top: 40px;
}
.benefit-card {
    background: white; border-radius: 28px;
    padding: 28px 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex; flex-direction: column; gap: 12px;
}
a.benefit-card { text-decoration: none; color: inherit; }
.benefit-card:hover {
    transform: translateY(-6px);
    border-color: var(--blue);
    box-shadow: 0 20px 25px -12px rgba(48,111,204,0.2);
}
.benefit-card__icon {
    width: 56px; height: 56px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; background: var(--blue-bg); color: var(--blue);
    flex-shrink: 0;
}
.benefit-card h3 { font-size: 1.25rem; }
.benefit-card p { color: #475569; font-size: 0.95rem; line-height: 1.6; }
.benefit-card .benefit-card__more {
    margin-top: auto; padding-top: 12px;
    color: var(--blue); font-weight: 600; font-size: 0.95rem;
    display: inline-flex; align-items: center; gap: 8px;
}

/* ---------- Модули со скриншотами (/erp, /crm) ---------- */
.modules-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
}
.modules-grid > * {
    flex: 0 1 calc((100% - 48px) / 3);
    min-width: 0;
}
.module-card {
    background: white; border-radius: 28px; overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex; flex-direction: column;
}
.module-card:hover {
    transform: translateY(-6px);
    border-color: var(--blue);
    box-shadow: 0 20px 25px -12px rgba(48,111,204,0.2);
}
.module-card__media {
    width: 100%; aspect-ratio: 16/10;
    background: #eef2f7;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}
.module-card__media img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.module-card__body {
    padding: 24px 22px;
    display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.module-card__body h3 { font-size: 1.25rem; }
.module-card__body p { color: #475569; font-size: 0.95rem; line-height: 1.6; flex: 1; }

/* ---------- Шаги ---------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 24px; margin-top: 40px;
}
.step-card {
    background: white; border-radius: 28px;
    padding: 32px 26px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}
.step-card__num {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--blue); color: #fff;
    font-weight: 700; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.step-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step-card p { color: #475569; font-size: 0.95rem; line-height: 1.6; }

/* ---------- CTA-баннер ---------- */
.cta-banner {
    background: linear-gradient(135deg, var(--blue-bg), var(--fiolet-bg));
    border: 2px solid rgba(48, 111, 204, 0.2);
    border-radius: 48px;
    padding: 56px 40px;
    text-align: center;
}
.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p { max-width: 640px; margin: 0 auto 32px; color: #334155; font-size: 1.1rem; }
.cta-banner__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ---------- Интеграции ---------- */
.integrations-row {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 32px; margin: 48px 0;
}
.int-item {
    background: white; width: 120px; height: 120px;
    border-radius: 40px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    font-weight: 600; color: #0f172a;
}
.int-item i { font-size: 2.5rem; color: var(--blue); }
.int-item:hover {
    border-color: var(--blue); background: var(--blue-bg);
    transform: translateY(-4px);
}

.int-card__lost {
    color: var(--green);
    font-weight: 800;
    font-size: 1.2rem;
}

/* ---------- CRM-шоукейс (главная) ---------- */
.crm-showcase {
    background: linear-gradient(135deg, var(--blue-bg), white);
    border-radius: 48px; padding: 48px;
    display: flex; align-items: center; gap: 40px;
    border: 2px solid var(--blue-bg-2);
    margin-top: 40px;
}
.crm-text { flex: 1; }
.crm-text h3 { font-size: 2rem; margin-bottom: 16px; color: #0f172a; }
.crm-text h3 i { color: var(--blue); }
.crm-text p { color: #334155; }
.crm-mini-grid {
    flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.crm-block {
    background: white; border-radius: 24px; padding: 20px 16px;
    border-left: 6px solid var(--green);
    box-shadow: var(--card-shadow);
    color: #1e293b; font-weight: 500;
}

@keyframes colorFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.colored-text {
    background: linear-gradient(90deg, #021124 0%, #06275a 20%, #306fcc 40%, #4a90e2 50%, #306fcc 60%, #06275a 80%, #021124 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: colorFlow 5s ease-in-out infinite;
}

/* ---------- Цены ---------- */
.prices {
    display: flex; flex-direction: row; gap: 2rem;
    justify-content: center; align-items: stretch; flex-wrap: wrap;
}
.price-card-wrapper {
    flex: 0 1 350px; min-width: 500px; max-width: 500px; margin: 0 auto;
}
.pricing-card {
    background: white; border-radius: 32px; padding: 40px 30px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative; overflow: hidden;
    height: 100%; display: flex; flex-direction: column;
}
.pricing-card h3 { font-size: 1.8rem; margin-bottom: 20px; }
.price {
    font-size: 3rem; font-weight: 700;
    color: var(--blue); margin-bottom: 20px;
}
.price small { font-size: 1rem; font-weight: 400; color: #64748b; }
.pricing-features { list-style: none; margin: 30px 0; flex: 1; }
.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; gap: 10px;
}
.pricing-features li i { color: var(--green); font-size: 1.1rem; }

/* ---------- Отзывы ---------- */
.testimonials-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 30px; margin-top: 40px;
}
.testimonial-card {
    background: white; border-radius: 32px; padding: 40px 30px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    height: 100%; display: flex; flex-direction: column;
}
.stars { color: #fbbf24; font-size: 1.2rem; margin-bottom: 20px; }
.testimonial-text {
    font-size: 1rem; line-height: 1.7; color: #334155;
    margin-bottom: 30px; font-style: italic; flex: 1;
}
.testimonial-author { display: flex; align-items: center; gap: 15px; }
.author-avatar {
    width: 50px; height: 50px;
    background: var(--blue-bg); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--blue); font-size: 1.5rem;
}
.author-info h4 { font-size: 1.1rem; margin-bottom: 4px; }
.author-info p { color: #64748b; font-size: 0.9rem; }

/* ---------- "Скоро" ---------- */
.future-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 1fr;
    gap: 30px;
    margin-top: 40px;
}
.future-grid > * {
    grid-column: span 2;
    min-width: 0;
}

/* 5 карточек: 3 сверху, 2 снизу — нижний ряд по центру */
.future-grid > *:nth-last-child(2):nth-child(3n+1) {
    grid-column: 2 / span 2;
}
.future-grid > *:last-child:nth-child(3n+2) {
    grid-column: 4 / span 2;
}

.future-card {
    background: linear-gradient(135deg, var(--blue-bg-2), var(--fiolet-bg));
    border-radius: 32px; padding: 40px 30px;
    text-align: center;
    border: 2px dashed var(--blue);
    transition: var(--transition);
    height: 100%;
    display: flex; flex-direction: column; align-items: center;
}
.future-card:hover { transform: translateY(-6px); border-color: var(--fiolet); }
.future-icon {
    width: 80px; height: 80px;
    background: white; border-radius: 30px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 30px; color: var(--blue);
    font-size: 2.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    flex-shrink: 0;
}
.future-card h3 { font-size: 1.8rem; margin-bottom: 15px; flex-shrink: 0; }
.future-card p { color: #334155; margin-bottom: 20px; flex: 1; }
.coming-soon {
    display: inline-block; background: var(--blue); color: white;
    padding: 8px 24px; border-radius: 40px;
    font-weight: 600; font-size: 0.9rem; margin-top: auto;
}

@media (max-width: 1024px) {
    .modules-grid > * { flex: 0 1 calc((100% - 24px) / 2); }

    .future-grid { grid-template-columns: repeat(4, 1fr); }
    .future-grid > * { grid-column: span 2 !important; }
    /* одиночная карточка в нижнем ряду — по центру */
    .future-grid > *:last-child:nth-child(2n+1) {
        grid-column: 2 / span 2 !important;
    }
}

@media (max-width: 640px) {
    .modules-grid > * { flex: 0 1 100%; }
}

/* ---------- Для кого ---------- */
.for-whom-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 30px; margin: 40px auto 0;
    max-width: 1200px; justify-content: center;
}
.for-whom-card {
    background: white; border-radius: 32px; padding: 40px 30px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
    display: flex; flex-direction: column; width: 100%;
}
.for-whom-card:hover { transform: translateY(-6px); border-color: var(--blue); }
.for-whom-icon {
    width: 80px; height: 80px;
    background: var(--blue-bg); border-radius: 30px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 30px; color: var(--blue);
    font-size: 2.5rem; flex-shrink: 0;
}
.for-whom-card h3 {
    font-size: 1.5rem; margin-bottom: 15px; flex-shrink: 0;
    min-height: 70px;
    display: flex; align-items: center; justify-content: center;
}
.for-whom-card p { color: #334155; flex: 1; font-size: 0.95rem; line-height: 1.6; }

/* Карточка-ссылка («Для кого» на главной) */
a.for-whom-card { color: inherit; text-decoration: none; }
a.for-whom-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.for-whom-more { margin-top: 20px; color: var(--blue); font-weight: 600; font-size: 0.95rem; flex-shrink: 0; }
.for-whom-more i { margin-left: 6px; transition: transform var(--transition); }
a.for-whom-card:hover .for-whom-more i { transform: translateX(4px); }

/* ---------- Кнопки заявки ---------- */
.order-button-container { text-align: center; margin: 60px 0 40px; }
.order-button {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 20px 48px;
    background-color: var(--blue); color: white;
    border: none; border-radius: 60px;
    font-size: 1.3rem; font-weight: 600;
    cursor: pointer; transition: var(--transition);
    box-shadow: 0 10px 20px rgba(48, 111, 204, 0.3);
    text-decoration: none;
}
.order-button:hover {
    background-color: var(--blue-bg-hovered);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(48, 111, 204, 0.4);
}

/* ---------- Форма ---------- */
.form-input {
    width: 100%; padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    font-size: 1rem;
    font-family: "Inter", sans-serif;
    transition: var(--transition);
    background: white;
}
.form-input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-bg);
}
textarea.form-input { resize: vertical; min-height: 100px; }
.submit-btn {
    width: 100%; padding: 16px 32px;
    background-color: var(--blue); color: white;
    border: none; border-radius: 60px;
    font-size: 1.2rem; font-weight: 600;
    cursor: pointer; transition: var(--transition);
    font-family: "Inter", sans-serif;
}
.submit-btn:hover {
    background-color: var(--blue-bg-hovered);
    transform: translateY(-2px);
}

.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- Футер ---------- */
.footer {
    padding: 40px 0; text-align: center;
    color: #475569; margin-top: 40px;
}
.list {
    margin-top: 1.5rem;
    display: flex; flex-direction: row; gap: 3rem;
    justify-content: space-evenly;
}
.column {
    display: flex; flex-direction: column; gap: 5px;
    justify-content: start; text-align: start;
}
.column-title { color: var(--text-color); }
.column > a { text-decoration: none; color: var(--blue); }
.doc_link:hover { text-decoration: underline; }

/* Подвал на четыре колонки (Компания / Направления / Контакты / Правовая информация) */
.footer .column > span { white-space: nowrap; }
.column--directions > a { white-space: nowrap; }
.column--directions > a:hover { text-decoration: underline; }
@media (min-width: 901px) {
    .footer .column:first-child { max-width: 260px; }
}
@media (max-width: 900px) {
    .list { flex-direction: column; gap: 30px; text-align: center; }
    .column { align-items: center; text-align: center; width: 100%; }
}

/* ---------- Наверх ---------- */
.scroll-to-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 60px; height: 60px;
    background-color: var(--blue); color: white;
    border: none; border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(48, 111, 204, 0.3);
    transition: var(--transition);
    z-index: 1000;
    opacity: 0; visibility: hidden;
}
.scroll-to-top.visible { opacity: 1; visibility: visible; }
.scroll-to-top:hover {
    background-color: var(--blue-bg-hovered);
    transform: translateY(-4px);
}

/* ---------- FAQ ---------- */
.faq-list {
    max-width: 900px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 12px;
}
.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    overflow: hidden;
}
.faq-item[open] {
    border-color: var(--blue);
    box-shadow: 0 20px 25px -12px rgba(48, 111, 204, 0.2);
}
.faq-item:hover { border-color: var(--blue-bg-3); }
.faq-question {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 20px 24px;
    cursor: pointer;
    font-size: 1.05rem; font-weight: 600; color: #0f172a;
    list-style: none; user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-icon {
    color: var(--blue); font-size: 0.95rem; flex-shrink: 0;
    transition: transform 0.25s ease;
}
.faq-item[open] .faq-icon { transform: rotate(180deg); }
.faq-answer {
    padding: 0 24px 22px;
    color: #475569; font-size: 0.95rem; line-height: 1.7;
}
.faq-answer strong { color: #0f172a; }

/* ---------- Соцсети ---------- */
.socials-section { padding: 80px 0; }
.socials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px; max-width: 1200px;
}
.social-card {
    background: white; border-radius: 30px;
    padding: 28px 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex; flex-direction: column; gap: 16px;
}
.social-card:hover {
    transform: translateY(-6px); border-color: var(--blue);
    box-shadow: 0 20px 25px -12px rgba(48,111,204,0.2);
}
.social-card__icon {
    width: 68px; height: 68px; border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; flex-shrink: 0;
}
.social-card--vk .social-card__icon { background: rgba(0, 119, 255, 0.12); color: #0077ff; }
.social-card--tg .social-card__icon { background: rgba(39, 167, 231, 0.12); color: #27a7e7; }
.social-card--max .social-card__icon { background: rgba(142, 81, 255, 0.12); color: #8e51ff; }
.social-card h3 { font-size: 1.45rem; margin-bottom: 4px; }
.social-card p { color: #475569; line-height: 1.6; flex: 1; }
.social-card__btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 10px; width: 100%;
    padding: 14px 18px; border-radius: 999px;
    text-decoration: none; font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}
.social-card--vk .social-card__btn { background: rgba(0, 119, 255, 0.1); color: #0077ff; border-color: rgba(0, 119, 255, 0.18); }
.social-card--vk .social-card__btn:hover { background: #0077ff; color: white; }
.social-card--tg .social-card__btn { background: rgba(39, 167, 231, 0.1); color: #27a7e7; border-color: rgba(39, 167, 231, 0.18); }
.social-card--tg .social-card__btn:hover { background: #27a7e7; color: white; }
.social-card--max .social-card__btn { background: rgba(142, 81, 255, 0.1); color: #8e51ff; border-color: rgba(142, 81, 255, 0.18); }
.social-card--max .social-card__btn:hover { background: #8e51ff; color: white; }

/* ---------- Модальные окна ---------- */
.modal {
    display: none; position: fixed; z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
    background-color: white;
    margin: 3% auto; padding: 40px;
    border-radius: 32px; width: 90%;
    box-shadow: 0 30px 50px rgba(0,0,0,0.3);
    position: relative;
    animation: slideDown 0.3s ease;
    max-height: 90vh; height: min-content; overflow-y: auto;
}
@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.close {
    position: absolute; right: 30px; top: 20px;
    color: #64748b; font-size: 2.5rem; font-weight: bold;
    cursor: pointer; transition: var(--transition);
    line-height: 1; z-index: 20;
}
.close:hover { color: var(--blue); transform: scale(1.1); }
.modal-content h2 { text-align: left; margin-bottom: 20px; color: #0f172a; }
.modal-content h2 i { color: var(--blue); margin-right: 10px; }
.modal-content p {
    color: #334155; line-height: 1.7;
    font-size: 1.1rem; margin-top: 30px;
}

/* ---------- Слайдер ---------- */
.slider-container {
    position: relative; width: 100%;
    margin: auto;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background: #f0f0f0;
    overflow: hidden;
}
@media screen and (width > 1000px) { .slider-container { max-width: 60vw; height: 800px; } }
@media screen and (width <= 1000px) { .slider-container { max-width: 95vw; height: 100%; } }
.slider {
    width: 100%; height: 100%; position: relative;
    display: flex; align-items: center; justify-content: center;
}
.slider-img {
    max-width: 100%; max-height: 100%;
    width: 100%; height: 100%;
    object-fit: scale-down;
    object-position: center;
    display: none;
    margin: 0 auto; position: relative;
    top: 50%; transform: translateY(-50%);
}
.slider-img.active { display: block; }
.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.9);
    border: none; border-radius: 50%;
    cursor: pointer; font-size: 1.8rem; color: var(--blue);
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 10;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
.slider-btn:hover {
    background: white; transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }
.slider-dots {
    position: absolute; bottom: 15px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 10px; z-index: 10;
    background: rgba(0,0,0,0.3);
    padding: 8px 15px; border-radius: 30px;
    backdrop-filter: blur(5px);
}
.dot {
    width: 12px; height: 12px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%; cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}
.dot.active { background: white; transform: scale(1.3); border-color: var(--blue); }
.dot:hover { background: white; transform: scale(1.1); }

/* ---------- Cookie ---------- */
.cookie-banner {
    position: fixed; left: 20px; right: 20px; bottom: 20px;
    z-index: 2500; display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner__inner {
    max-width: 1100px; margin: 0 auto;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(48, 111, 204, 0.18);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
    border-radius: 28px;
    padding: 20px 22px;
    display: flex; gap: 18px;
    align-items: center; justify-content: space-between;
}
.cookie-banner__text { display: flex; flex-direction: column; gap: 6px; color: #334155; }
.cookie-banner__title { font-size: 1.05rem; font-weight: 700; color: #0f172a; }
.cookie-banner__text p { margin: 0; font-size: 0.95rem; line-height: 1.55; }
.cookie-banner__text a { color: var(--blue); text-decoration: none; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
    border: none; border-radius: 999px;
    padding: 12px 18px;
    font-family: "Inter", sans-serif; font-size: 0.95rem; font-weight: 600;
    cursor: pointer; transition: var(--transition);
}
.cookie-btn--primary { background: var(--blue); color: white; }
.cookie-btn--primary:hover { background: var(--blue-bg-hovered); transform: translateY(-1px); }
.cookie-btn--ghost { background: rgba(15, 23, 42, 0.06); color: #0f172a; }
.cookie-btn--ghost:hover { background: rgba(15, 23, 42, 0.12); }
.cookie-settings-link {
    background: none; border: none; color: var(--blue);
    cursor: pointer; padding: 0; font: inherit; text-align: left;
}
.cookie-settings-link:hover { text-decoration: underline; }

/* ---------- Плавающий QR ---------- */
.floating-qr {
    position: fixed; left: 20px; top: 50%;
    transform: translateY(-50%);
    z-index: 1500;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
.floating-qr.visible {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}
.floating-qr:not(.visible) { transform: translateY(-50%) translateX(-20px); }
.floating-qr__inner {
    background: white; border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    padding: 16px;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    border: 1px solid var(--border-color);
}
.floating-qr__img { width: 180px; height: 180px; border-radius: 16px; object-fit: contain; }
.floating-qr__text { font-size: 0.9rem; font-weight: 600; color: var(--blue); text-align: center; }

/* ---------- Тосты ---------- */
#general_errors_list {
    position: fixed; z-index: 3003;
    right: 1rem; bottom: 1rem;
    min-width: 300px; max-width: 70vw; width: 25vw;
    max-height: 70vh; height: min-content;
    border-radius: 1rem;
    display: flex; flex-direction: column-reverse; gap: 1rem;
}
.toast {
    display: grid; grid-template-columns: 78px 1fr;
    border-radius: 14px; overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 24px rgba(39, 39, 42, 0.08), 0 2px 8px rgba(39, 39, 42, 0.05);
    animation: toast-slide-in 0.28s ease;
}
.toast-icon-side { display: flex; align-items: center; justify-content: center; padding: 14px; border-right: 1px solid transparent; }
.toast-icon-wrap { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.toast-icon { font-size: 30px; line-height: 1; }
.toast-content { display: flex; flex-direction: column; min-width: 0; }
.toast-header { display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px; border-bottom: 1px solid #ececec; }
.toast-header h3 { margin: 0; font-size: 16px; line-height: 1.2; font-weight: 700; }
.toast-body { padding: 10px 14px 14px; font-size: 14px; line-height: 1.5; font-weight: 500; word-break: break-word; }
.toast-time { width: 100%; display: block; text-align: right; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--text-color); opacity: 0.82; }
.toast-close {
    margin-left: auto; width: 30px; height: 30px; min-width: 30px;
    border: none; outline: none; background: transparent;
    border-radius: 8px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.18s ease, transform 0.18s ease;
}
.toast-close:hover { background: var(--bg-color); }
.toast-close:active { transform: scale(0.96); }
.toast.error { border-color: var(--red); }
.toast.error .toast-header h3,
.toast.error .toast-body,
.toast.error .toast-icon,
.toast.error .toast-close { color: var(--red); }
.toast.error .toast-icon-side { background: #fff4f5; border-right-color: #ffd7db; }
.toast.error .toast-icon-wrap { background: #ffe9ec; }
.toast.success { border-color: var(--green); }
.toast.success .toast-header h3,
.toast.success .toast-body,
.toast.success .toast-icon,
.toast.success .toast-close { color: var(--green); }
.toast.success .toast-icon-side { background: #f3fcfa; border-right-color: #cfeae4; }
.toast.success .toast-icon-wrap { background: #e2f5f1; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 992px) {
    .for-whom-grid { grid-template-columns: repeat(2, 1fr); max-width: 800px; }
    .modal-content { max-width: 90vw; }
    .slider-container { height: 350px; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    .container { max-width: 100%; padding: 0 16px; width: 100%; }
    .section { padding: 40px 0; }

    .navbar { flex-direction: column; gap: 16px; padding: 15px 0; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 20px; width: 100%; }
    .logo { justify-content: center; width: 100%; }

    .hero { flex-direction: column; padding: 10px 0 20px; gap: 20px; }
    .hero-content { width: 100%; text-align: center; }
    .hero-description { max-width: 100%; margin-left: auto; margin-right: auto; }

    .page-hero__inner { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 28px; }
    .page-hero__text, .page-hero__media { flex: 0 0 auto; min-width: 0; max-width: 100%; }
    .split { flex-wrap: nowrap; flex-direction: column; align-items: stretch; gap: 28px; }
    .split__text, .split__media { flex: 0 0 auto; min-width: 0; max-width: 100%; }
    .page-hero__text { text-align: center; }
    .lead { margin-left: auto; margin-right: auto; }

    .features-grid,
    .for-whom-grid,
    .testimonials-grid,
    .benefits-grid,
    .modules-grid,
    .steps-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 0;
    }

    /* «Скоро» — принудительно одна колонка, отключаем центрирование нижнего ряда */
    .future-grid {
        grid-template-columns: 1fr !important;
        grid-auto-rows: auto;
        gap: 20px;
        padding: 0;
    }
    .future-grid > *,
    .future-grid > *:nth-last-child(2):nth-child(3n+1),
    .future-grid > *:last-child:nth-child(3n+2),
    .future-grid > *:last-child:nth-child(2n+1) {
        grid-column: 1 / -1 !important;
    }

    .for-whom-card { padding: 30px 20px; }
    .for-whom-card h3 { min-height: auto; font-size: 1.3rem; }

    .feature-card { min-height: auto; }
    .feature-card p { min-height: auto; }
    .feature-problem { min-height: auto; }

    .crm-showcase { flex-direction: column; padding: 30px 20px; gap: 30px; }
    .crm-text h3 { font-size: 1.6rem; text-align: center; }

    .prices { flex-direction: column; align-items: center; padding: 0; }
    .price-card-wrapper { width: 100%; max-width: 100%; min-width: auto; }
    .pricing-card { padding: 30px 20px; }

    .split { gap: 28px; }
    .split__text { text-align: center; }

    .cta-banner { padding: 36px 20px; border-radius: 32px; }
    .cta-banner__actions .order-button { width: 100%; justify-content: center; }

    .form-input { padding: 14px 16px; }
    .order-button { padding: 15px 30px; font-size: 1.1rem; width: 100%; justify-content: center; }

    .integrations-row { gap: 15px; }
    .int-item { width: 100px; height: 100px; }
    .int-item i { font-size: 2rem; }

    .list { flex-direction: column !important; gap: 30px !important; text-align: center; }
    .column { align-items: center; text-align: center; width: 100%; }

    .footer { padding: 20px 0; margin-top: 20px; }

    .scroll-to-top { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 1.5rem; }

    .modal-content { padding: 30px 20px; margin: 5% auto; }
    .close { right: 20px; top: 10px; font-size: 2rem; }
    .slider-btn { width: 36px; height: 36px; font-size: 1.4rem; }

    .faq-question { padding: 16px 18px; font-size: 0.98rem; }
    .faq-answer { padding: 0 18px 18px; font-size: 0.9rem; }

    .cookie-banner { left: 12px; right: 12px; bottom: 12px; }
    .cookie-banner__inner { padding: 16px; border-radius: 22px; flex-direction: column; align-items: stretch; }
    .cookie-banner__actions { width: 100%; flex-direction: column; }
    .cookie-btn { width: 100%; }

    .floating-qr { display: none; }
}

/* ============================================================
   Интеграции и соцсети
   (контейнер интеграций стилизован inline в HTML, поэтому он
   выбирается атрибутным селектором; !important перебивает inline)
   ============================================================ */
#integrations .container > div[style*="display: flex"] {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 24px !important;
    align-items: stretch;
}
/* 4 карточки в ряд; неполный последний ряд центрируется */
#integrations .feature-card {
    flex: 0 0 calc((100% - 72px) / 4);
    max-width: none !important;
    min-width: 0;
    width: auto;
}
.int-logo {
    display: block;
    height: 48px; width: auto; max-width: 100%;
    object-fit: contain; object-position: left center;
    margin-bottom: 20px; flex-shrink: 0;
}

@media (max-width: 1100px) {
    #integrations .feature-card { flex-basis: calc((100% - 24px) / 2); }
}

@media (max-width: 992px) {
    .socials-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
}

@media (max-width: 640px) {
    #integrations .container > div[style*="display: flex"] { gap: 20px !important; }
    #integrations .feature-card { flex-basis: 100%; }
    .int-logo { height: 44px; }
}

@media (max-width: 560px) {
    .socials-section { padding: 48px 0; }
    .socials-grid { grid-template-columns: 1fr; gap: 20px; }
    .social-card { padding: 24px 20px; }
    .social-card__btn { padding: 14px 16px; white-space: normal; text-align: center; }
}
