:root {
    --bg-light: #f7f7f7;
    --bg-lighter: #eceff1;
    --white: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --text-soft: #9ca3af;
    --blue: #1E40FF;
    --blue-dark: #162fcc;
    --accent-teal: #00a8a8;
    --radius: 16px;
    --radius-lg: 20px;
    --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-light);
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */

header {
    background: var(--white);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 32px;
}

/* Логотип + текст */

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.logo img {
    height: 34px;
    width: auto;
    display: block;
}

.logo span {
    white-space: nowrap;
}

@media (max-width: 600px) {
    .logo img {
        height: 28px;
    }

    .logo {
        font-size: 16px;
    }
}

/* Меню */

.nav-links {
    display: flex;
    gap: 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-soft);
}

.nav-links a {
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--blue);
    border-radius: 999px;
    transition: width 0.18s ease;
}

.nav-links a:hover {
    color: var(--blue);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    font-size: 22px;
}

/* Мобильное меню */

@media (max-width: 900px) {
    .nav-inner {
        padding: 10px 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        left: 20px;
        right: 20px;
        top: 58px;
        flex-direction: column;
        background: #ffffff;
        border-radius: 14px;
        box-shadow: var(--shadow);
        padding: 12px 16px 16px;
        opacity: 0;
        transform: translateY(-6px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav-links.open {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-toggle {
        display: inline-flex;
    }
}

/* HERO */

.hero {
    position: relative;
    min-height: 72vh;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background-image: url("../images/hero/hero-image.webp");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-content {
    max-width: 760px;
    width: 100%;
    padding: 40px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;

    text-align: center;
    color: #ffffff;
}

.hero-title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 14px;
    color: #ffffff;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
}

.hero-text {
    font-size: 17px;
    margin: 0 0 20px;
    color: #e5e7eb;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

.btn-primary {
    background: var(--blue);
    color: #fff;
    padding: 14px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.45);
}

.hero-card {
    background: var(--white);
    padding: 22px 22px 20px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(148, 163, 184, 0.3);
    animation: fadeIn 0.8s ease forwards;
}

.hero-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.hero-card p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

/* Исправление цвета текста в hero-card */
.hero-card h3,
.hero-card p {
    color: #111827 !important;
}

/* SECTIONS */

section {
    padding: 64px 0;
}

.section-title {
    font-size: 36px;
    line-height: 1.25;
    font-weight: 700;
    margin: 0 0 12px;
    text-align: center;
    letter-spacing: -0.02em;
}

.section-sub {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0 auto 32px;
    text-align: center;
    max-width: 720px;
}

@media (max-width: 900px) {
    section {
        padding: 48px 0;
    }

    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    section {
        padding: 40px 0;
    }
}

/* GRID / CARDS */

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-4,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--white);
    padding: 32px 26px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    border-color: rgba(37, 99, 235, 0.25);
}

.card-icon {
    width: 76px;
    height: 76px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.card:hover .card-icon {
    transform: translateY(-2px) scale(1.08);
    background: rgba(37, 99, 235, 0.16);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* COMPARISON – таблица */

.comparison-block {
    margin-top: 32px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    font-size: 15px;
}

.comparison-table thead tr {
    background: #14367f;
    color: #ffffff;
}

.comparison-table th,
.comparison-table td {
    padding: 18px 22px;
    text-align: left;
}

.comparison-table th:first-child {
    width: 24%;
}

.comparison-table tbody tr:nth-child(odd) {
    background: #ffffff;
}

.comparison-table tbody tr:nth-child(even) {
    background: #f4f6ff;
}

.comparison-table td:first-child {
    font-weight: 600;
    color: #14367f;
}

@media (max-width: 768px) {
    .comparison-table {
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .comparison-table thead {
        display: none;
    }

    .comparison-table,
    .comparison-table tbody,
    .comparison-table tr,
    .comparison-table td {
        display: block;
        width: 100%;
    }

    .comparison-table tbody tr {
        margin-bottom: 14px;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: var(--shadow);
        background: #ffffff;
    }

    .comparison-table td {
        padding: 12px 16px;
        font-size: 14px;
    }

    .comparison-table td:first-child {
        background: #14367f;
        color: #ffffff;
        font-size: 16px;
    }

    .comparison-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--text-soft);
        margin-bottom: 2px;
    }
}

/* FOR WHOM */

.forwhom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .forwhom-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .forwhom-grid {
        grid-template-columns: 1fr;
    }
}

.forwhom-card {
    background: var(--white);
    padding: 32px 26px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    position: relative;
    overflow: hidden;
}

.forwhom-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.forwhom-icon {
    width: 76px;
    height: 76px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.forwhom-title {
    font-size: 20px;
    font-weight: 600;
}

.forwhom-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
}

.forwhom-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.forwhom-card:hover .forwhom-icon {
    background: rgba(37, 99, 235, 0.18);
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

/* HOW WE WORK – steps */

.steps {
    max-width: var(--max-width);
    margin: 32px auto 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 22px;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: var(--blue);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.45);
    margin-bottom: 16px;
}

.step-content-title {
    font-size: 18px;
    font-weight: 600;
    color: #14367f;
    margin-bottom: 6px;
}

.step-content-text {
    font-size: 15px;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .steps {
        grid-template-columns: 1fr;
    }
}

/* LICENSE SECTION */

.license-section {
    padding-top: 64px;
    padding-bottom: 64px;
}

.license-grid {
    display: flex;
    align-items: center;
    gap: 32px;
}

.license-image {
    flex: 1;
    min-width: 0;
}

/* Кликабельная картинка с красивым hover */
.license-image-link {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: zoom-in;
}

.license-image-link img {
    display: block;
    width: 100%;
    height: auto;
}

.license-image-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.license-text {
    flex: 1;
}

.license-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    font-size: 15px;
    color: var(--text-muted);
}

.license-list li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 20px;
}

.license-list li::before {
    content: "•";
    position: absolute;
    left: 4px;
    top: 0;
    color: var(--blue);
    font-weight: 700;
}

.license-note {
    font-size: 14px;
    color: var(--text-soft);
}

@media (max-width: 900px) {
    .license-grid {
        flex-direction: column;
    }
}

/* =========================
   CLIENTS CAROUSEL — LARGE
   ========================= */

.clients-carousel {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 32px;
}

.clients-track-wrapper {
    flex: 1;
    overflow: hidden;
    cursor: grab;
}

.clients-track {
    display: flex;
    gap: 22px;
    padding: 6px;
    will-change: transform;
}

/* контейнер логотипа — увеличенный */
.client-logo {
    min-width: 290px;      /* было 220px */
    height: 160px;         /* было 115px */
    border-radius: 26px;
    background: var(--white);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dde3ea;
    padding: 24px 32px;    /* было 16px 22px */
}

/* картинка логотипа — больше */
.client-logo img {
    max-width: 90%;
    max-height: 100px;     /* было 72px */
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.9;
    transition: filter 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
}

/* эффект при наведении */
.client-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: translateY(-2px) scale(1.04);
}

.carousel-arrow {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    background: #ffffff;
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.carousel-arrow i {
    font-size: 18px;
    color: var(--blue);
}

.carousel-arrow:hover {
    background: #eef2ff;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.2);
}

/* Мобильная версия — тоже увеличена */
@media (max-width: 768px) {
    .clients-carousel {
        gap: 14px;
    }

    .client-logo {
        min-width: 210px;   /* было 160px */
        height: 120px;      /* было 95px */
        border-radius: 22px;
        padding: 18px 22px;
    }

    .client-logo img {
        max-height: 80px;   /* было 60px */
    }
}

/* CONTACTS */

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 900px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }
}

.contact-box {
    background: var(--white);
    padding: 26px;
    border-radius: 20px;
    box-shadow: var(--shadow);

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-box h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

/* УВЕЛИЧЕННЫЕ ТЕЛЕФОНЫ */

.phone {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.35;
}

.phone i {
    color: var(--blue);
    margin-right: 8px;
    font-size: 22px;
}

/* МЕССЕНДЖЕРЫ – КРУПНЕЕ КНОПКИ И ИКОНКИ */

.messengers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.messengers a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    font-size: 15px;
    background: #fff;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    white-space: nowrap;
}

.messengers a i {
    font-size: 18px;
}

.messengers a:hover {
    background: #f3f4ff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.contact-line {
    font-size: 14px;
    color: var(--text-muted);
    margin: 4px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.contact-line i {
    margin-top: 2px;
    color: var(--blue);
}

.map-box {
    padding: 0;
    overflow: hidden;
}

.map-box iframe {
    border: 0;
    width: 100%;
    height: 100%;
    min-height: 260px;
    border-radius: 20px;
}

/* Адаптация контактов под мобильный */

@media (max-width: 600px) {
    .contact-box {
        padding: 22px;
    }

    .phone {
        font-size: 22px;
    }

    .messengers {
        gap: 10px;
    }

    .messengers a {
        padding: 10px 14px;
        font-size: 14px;
    }

    .messengers a i {
        font-size: 17px;
    }
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 10px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
}

/* FOOTER */

footer {
    text-align: center;
    padding: 25px 10px;
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.4;
}

/* ANIMATIONS */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-title,
.hero-text,
.btn-primary {
    opacity: 0;
    animation: fadeIn 0.7s ease forwards;
}

.hero-title { animation-delay: 0.1s; }
.hero-text  { animation-delay: 0.25s; }
.btn-primary { animation-delay: 0.4s; }

.hero-card {
    opacity: 0;
    animation-delay: 0.45s;
}

.card,
.forwhom-card {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

.grid-4 .card:nth-child(1),
.grid-3 .card:nth-child(1),
.forwhom-grid .forwhom-card:nth-child(1) { animation-delay: 0.1s; }
.grid-4 .card:nth-child(2),
.grid-3 .card:nth-child(2),
.forwhom-grid .forwhom-card:nth-child(2) { animation-delay: 0.18s; }
.grid-4 .card:nth-child(3),
.grid-3 .card:nth-child(3),
.forwhom-grid .forwhom-card:nth-child(3) { animation-delay: 0.26s; }
.grid-4 .card:nth-child(4),
.grid-3 .card:nth-child(4),
.forwhom-grid .forwhom-card:nth-child(4) { animation-delay: 0.34s; }
.grid-3 .card:nth-child(5),
.forwhom-grid .forwhom-card:nth-child(5) { animation-delay: 0.42s; }
.grid-3 .card:nth-child(6),
.forwhom-grid .forwhom-card:nth-child(6) { animation-delay: 0.5s; }

/* MOBILE HERO */

@media (max-width: 900px) {
    .hero {
        min-height: 80vh;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background-image: url("../images/hero/hero-image.webp");
        background-size: cover;
        background-position: center center;
    }

    .hero-content {
        max-width: 90%;
        padding: 40px 20px;
    }

    .hero-card {
        margin-top: 22px;
        background: rgba(255, 255, 255, 0.96);
    }
}

/* MOBILE HEADER FIX */

@media (max-width: 600px) {

    header {
        padding: 6px 0;
    }

    .nav-inner {
        padding: 10px 0;
        gap: 16px;
    }

    .logo img {
        height: 30px;
    }

    .logo span {
        font-size: 15px;
    }

    .nav-toggle {
        margin-right: 4px;
        padding: 4px;
    }

    .container.nav-inner {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Ховеры навигации */

.nav-links a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    transform: translateY(-1px);
}

/* Фокус для клавиатуры */

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

/* ===============
   FIXES FOR MOBILE
   =============== */

@media (max-width: 900px) {
    .hero {
        background-attachment: scroll;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Отступ для якорей, чтобы секции не прятались под фиксированной шапкой */
section[id] {
    scroll-margin-top: 88px;
}

@media (max-width: 900px) {
    section[id] {
        scroll-margin-top: 96px;
    }
}

/* ============================
      LICENSE MODAL (LIGHTBOX)
   ============================ */

.license-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.license-modal.show {
    display: flex;
}

.license-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
}

.license-modal-content {
    position: relative;
    z-index: 2;
    width: auto;
    max-width: min(1200px, 96vw);
    max-height: 96vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0,0,0,0.35);
    animation: modalFade .25s ease-out;
}

.license-modal-content img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 96vh;
}

/* Крестик (десктоп) — привязан к фото */
.license-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    font-size: 22px;
    color: #374151;
}

.license-modal-close:hover {
    background: #f3f4f6;
}

@media (max-width: 768px) {

    .license-modal-close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
        font-size: 18px;
        z-index: 5;
    }

    .license-modal-content {
        position: relative;
        width: 94vw;
        max-width: 94vw;
        max-height: 90vh;
        margin-top: 40px;
    }
}

@keyframes modalFade {
    from { transform: scale(.92); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

/* ============================
      CONTACTS MODAL (HERO)
   ============================ */

.contacts-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.contacts-modal.show {
    display: flex;
}

.contacts-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
}

.contacts-modal__dialog {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 26px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.35);
    padding: 28px 32px 30px;
    max-width: 420px;
    width: calc(100% - 32px);
    text-align: center;
    animation: modalFade .25s ease-out;
}

.contacts-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #4b5563;
    box-shadow: var(--shadow);
}

.contacts-modal__close:hover {
    background: #e5e7eb;
}

.contacts-modal__title {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 700;
}

.contacts-modal__phones {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.contacts-modal__phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.contacts-modal__phone-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contacts-modal__phone-icon i {
    color: var(--blue);
    font-size: 16px;
}

.contacts-modal__divider {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 10px 0 16px;
}

/* Текст "Зв'язатися з нами у месенджерах" — чёрный */
.contacts-modal__subtitle {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #111827;
    margin-bottom: 10px;
}

/* Мессенджеры в колонку по центру */
.contacts-modal__messengers {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.contacts-modal__messenger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    background: #ffffff;
    white-space: nowrap;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
}

.contacts-modal__messenger i {
    font-size: 18px;
}

.contacts-modal__messenger:hover {
    background: #f3f4ff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.contacts-modal__messenger:nth-child(1) i {
    color: #7c3aed;
}
.contacts-modal__messenger:nth-child(2) i {
    color: #0ea5e9;
}
.contacts-modal__messenger:nth-child(3) i {
    color: #22c55e;
}

/* Новый блок "Час роботи" в модалке */
.contacts-modal__worktime {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

.contacts-modal__worktime-icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #f3f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contacts-modal__worktime-icon i {
    font-size: 16px;
    color: var(--blue);
}

.contacts-modal__worktime-text {
    text-align: left;
}

/* "Час роботи" — чёрный */
.contacts-modal__worktime-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #111827;
}

.contacts-modal__worktime-hours {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

/* Кнопка Закрити внизу модального окна */
.contacts-modal__bottom-close {
    margin-top: 18px;
    width: 100%;
    padding: 11px 16px;
    border-radius: 999px;
    border: none;
    background: #f3f4f6;
    color: #111827;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.contacts-modal__bottom-close:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15,23,42,0.16);
}

@media (max-width: 480px) {
    .contacts-modal__dialog {
        padding: 24px 20px 26px;
        border-radius: 22px;
    }

    .contacts-modal__title {
        font-size: 20px;
    }

    .contacts-modal__phone {
        font-size: 18px;
    }

    .contacts-modal__worktime {
        gap: 8px;
    }

    .contacts-modal__bottom-close {
        font-size: 13px;
        padding: 10px 14px;
    }
}

.clients-dragging {
    cursor: grabbing !important;
}

/* =========================
   Scroll reveal sections
   ========================= */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   Animated consultation button
   ========================= */

.btn-primary.consult-animated {
    /* сначала мягкое появление, потом пульсация тени */
    animation:
        fadeIn 0.7s ease forwards,
        consultPulse 2.6s ease-in-out infinite 0.7s;
}

@keyframes consultPulse {
    0% {
        box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
        transform: translateY(0) scale(1);
    }
    50% {
        box-shadow: 0 18px 40px rgba(37, 99, 235, 0.55);
        transform: translateY(-1px) scale(1.03);
    }
    100% {
        box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
        transform: translateY(0) scale(1);
    }
}

/* Уважение к настройкам "уменьшить анимацию" */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .btn-primary.consult-animated {
        animation: fadeIn 0.7s ease forwards !important;
    }
}

/* =========================
   FLOATING CONTACT BUTTON (NO SHADOW)
   ========================= */

.floating-contact-btn {
    position: fixed;
    left: 18px;
    bottom: 18px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 99999;

    background: var(--blue);
    color: #fff;
    font-size: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0.7;
    transition: all 0.25s ease;
    animation: floatPulse 2.8s.ease-in-out infinite;
}

.floating-contact-btn:hover {
    opacity: 1;
    background: var(--blue-dark);
    transform: translateY(-4px) scale(1.06);
}

.floating-contact-btn:active {
    transform: scale(0.94);
}

/* Обновлённая анимация — тени убраны */
@keyframes floatPulse {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-2px) scale(1.04);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .floating-contact-btn {
        width: 54px;
        height: 54px;
        font-size: 22px;
        left: 14px;
        bottom: 14px;
    }
}
