/* ===== БАЗА ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #f8f9fe;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --accent: #6c63ff;
    --accent-light: #8b83ff;
    --accent-gradient: linear-gradient(135deg, #6c63ff, #ff6584);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    --radius: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* ===== ИНТРО-БЛОК УСЛУГ ===== */
.services-intro {
    margin-top: 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 8px solid #FF6584 !important;
    border-radius: var(--radius);
    padding: 40px 48px;
    box-shadow: 0 8px 50px rgba(255, 101, 132, 0.2);
    position: relative;
    overflow: hidden;
}

.services-intro-content {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.services-intro-icon {
    font-size: 56px;
    flex-shrink: 0;
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(255, 101, 132, 0.3));
    animation: floatIcon 3s ease-in-out infinite;
}

.services-intro-text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text);
    margin: 0;
}

.services-intro-text strong {
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-intro.hidden {
    display: none !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    font-size: 22px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}
.logo-text {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #6C63FF, #FF6584);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 22px;
    }
}
/*
.logo-img {
    width: 165px;
    height: 165px;
    border-radius: 12px;
}
*/

.nav { display: flex;
      gap: 28px; }
.nav a {
    color: #FF6584 !important;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;              /* ← запрет переноса */
    display: inline-block;            /* ← корректное выравнивание */
}
.nav a:hover
{ color: var(--accent) !important;
 text-shadow: 0 0 12px rgba(108, 99, 255, 0.5);
 }

* ===== ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКА (в меню) ===== */
.lang-switcher {
    display: flex;
    gap: 4px;
    background: rgba(108, 99, 255, 0.08);
    padding: 4px;
    border-radius: 10px;
    margin-left: 56px;                   /* 2x от gap: 28px × 2 = 56px */
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.lang-switcher .lang-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    border-radius: 7px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;              /* ← запрет переноса */
    min-width: 44px;                  /* ← минимальная ширина для «RU»/«EN» */
    text-align: center;
}

.lang-switcher .lang-btn:hover {
    color: var(--accent);
}

.lang-switcher .lang-btn.active {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 2px 8px rgba(108, 99, 255, 0.3);
}

/* ===== HERO ===== */
.hero {
    padding: 120px 0;
    text-align: center;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.1;
}

.accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    color: var #FF6584 !important;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}

.section h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
}

/* ===== УСЛУГИ — ГАЛЕРЕЯ ===== */
.services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

/* Обёртка галереи — плавное появление */
.services-gallery-wrapper {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease,
                margin-top 0.4s ease;
}

.services-gallery-wrapper.open {
    max-height: 600px;
    opacity: 1;
    margin-top: 24px;
}

/* Горизонтальная прокрутка */
.services-gallery {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 4px 20px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Кастомный скроллбар */
.services-gallery::-webkit-scrollbar {
    height: 8px;
}

.services-gallery::-webkit-scrollbar-track {
    background: rgba(108, 99, 255, 0.05);
    border-radius: 4px;
}

.services-gallery::-webkit-scrollbar-thumb {
    background: var(--accent-gradient);
    border-radius: 4px;
}

.services-gallery::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Карточка услуги */
.service-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: 0 4px 20px rgba(31, 38, 135, 0.08);
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 12px 32px rgba(108, 99, 255, 0.2);
}

/* Заглушка изображения */
.service-card-image {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
}

.service-placeholder {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 8px;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.service-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== ЧАТ-ВИДЖЕТ ===== */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 450px;               /* было 360 */
    height: 300px;              /* было 520 — теперь квадрат */
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(108, 99, 255, 0.4);   /* контрастная граница */
    border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(108, 99, 255, 0.2);  /* усиленная тень */
    overflow: hidden;
    z-index: 1000;
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease,transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Скрытое состояние — окно уезжает вниз */
.chat-widget.hidden-scroll {
    transform: translateY(calc(100% + 32px));
}


.chat-widget:hover {
    border-color: rgba(108, 99, 255, 0.9);       /* при наведении — ярче */
    box-shadow: 0 12px 56px rgba(108, 99, 255, 0.35);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Заголовок */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-logo {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 16px;
}

.chat-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}



.lang-btn {
    padding: 4px 10px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.lang-btn.active {
    background: var(--accent);
    color: #fff;
}

/* Область сообщений */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.bot { align-self: flex-start; }
.message.user { align-self: flex-end; align-items: flex-end; }

.message.bot .message-bubble {
    background: #ffffff;
    color: var(--text);
    border-top-left-radius: 4px;      /* скругление у окна */
    border-bottom-left-radius: 4px;
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-left: 4px;                 /* небольшой отступ от границы окна */
}

.message.bot .message-bubble {
   background: #ffffff;            /* только фон, без border */
     color: var(--text);
     border: none;                   /* убрали границы */
     border-top-left-radius: 4px;
     border-bottom-left-radius: 4px;
     border-top-right-radius: 14px;
     border-bottom-right-radius: 14px;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);   /* лёгкая тень вместо границы */
     margin-left: 4px;
 }

.message.user .message-bubble {
    background: var(--accent-gradient);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    padding: 0 4px;
}

/* Typing indicator */
.chat-typing {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px 12px;
    color: var(--text-muted);
    font-size: 12px;
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* Поле ввода */
.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid rgba(108, 99, 255, 0.5);    /* контрастная граница */
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    transition: var(--transition);
     resize: none;                     /* запрет ручного ресайза */
        min-height: 40px;                 /* минимальная высота */
        max-height: 120px;                /* максимальная высота */
        overflow-y: auto;                 /* скролл при переполнении */
        line-height: 1.4;
}

.chat-input:focus {
    outline: none;
    border-color: var(--accent);                   /* при фокусе — ярче */
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.15);
}

.chat-input:hover {
    border-color: rgba(108, 99, 255, 0.8);         /* при наведении — ярче */
}

.chat-input::placeholder {
    color: var(--text-muted);
}

/* Скроллбар внутри textarea */
.chat-input::-webkit-scrollbar {
    width: 4px;
}

.chat-input::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 2px;
}

.chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--accent-gradient);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.chat-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.3);
}

.chat-send:active {
    transform: scale(0.95);
}

/* ===== ПОРТФОЛИО — КАРУСЕЛЬ ===== */
.portfolio-carousel-wrapper {
    position: relative;
    margin-top: 32px;
}

.portfolio-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 8px 4px 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;          /* Firefox */
}

.portfolio-carousel::-webkit-scrollbar {
    display: none;                   /* Chrome/Safari */
}

/* ===== ИНТРО-БЛОК ПОРТФОЛИО ===== */
.portfolio-intro {
    margin-top: 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 8px solid #FF6584 !important;
    border-radius: var(--radius);
    padding: 40px 48px;
    box-shadow: 0 8px 50px rgba(255, 101, 132, 0.2);
    position: relative;
    overflow: hidden;
}

.portfolio-intro::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 101, 132, 0.1), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.portfolio-intro-content {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.portfolio-intro-icon {
    font-size: 56px;
    flex-shrink: 0;
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(255, 101, 132, 0.3));
    animation: floatIcon 3s ease-in-out infinite;
}

.portfolio-intro-text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text);
    margin: 0;
}

.portfolio-intro-text strong {
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-intro-content::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

/* Обёртка карусели — скрыта по умолчанию */
.portfolio-carousel-wrapper {
    position: relative;
    margin-top: 32px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease,
                margin-top 0.4s ease;
}

.portfolio-carousel-wrapper.open {
    max-height: 600px;
    opacity: 1;
    margin-top: 32px;
}

/* Адаптив */
@media (max-width: 768px) {
    .portfolio-intro {
        padding: 28px 24px;
    }
    .portfolio-intro-content {
        flex-direction: column;
        gap: 16px;
    }
    .portfolio-intro-icon {
        font-size: 42px;
    }
    .portfolio-intro-text {
        font-size: 16px;
        line-height: 1.6;
    }
    .portfolio-intro-content::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .portfolio-intro {
        padding: 24px 20px;
    }
    .portfolio-intro-text {
        font-size: 15px;
    }
}

/* Карточка проекта */
.portfolio-card {
    flex: 0 0 340px;
    scroll-snap-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(31, 38, 135, 0.08);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.portfolio-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 16px 40px rgba(108, 99, 255, 0.25);
}

.portfolio-card-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.portfolio-placeholder {
    font-size: 72px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.portfolio-card-body {
    padding: 20px 24px 24px;
}

.portfolio-card-body h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.portfolio-card-body p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}


/* Стрелки */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(108, 99, 255, 0.3);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--accent);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(31, 38, 135, 0.15);
}

.carousel-arrow:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-arrow-left {
    left: -20px;
}

.carousel-arrow-right {
    right: -20px;
}

/* Индикаторы */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dots .dot:hover {
    background: rgba(108, 99, 255, 0.6);
}

.carousel-dots .dot.active {
    width: 32px;
    border-radius: 5px;
    background: var(--accent);
}

/* Адаптив портфолио*/
@media (max-width: 768px) {
    .portfolio-card {
        flex: 0 0 280px;
    }
    .portfolio-card-image {
        height: 160px;
    }
    .carousel-arrow {
        width: 40px;
        height: 40px;
    }
    .carousel-arrow-left { left: -8px; }
    .carousel-arrow-right { right: -8px; }
}

@media (max-width: 480px) {
    .portfolio-card {
        flex: 0 0 260px;
    }
    .portfolio-card-body {
        padding: 16px 20px 20px;
    }
    .portfolio-card-body h3 {
        font-size: 17px;
    }
}


/* ===== АДАПТИВ ===== */
@media (max-width: 480px) {
    .chat-widget {
        width: calc(100% - 32px);
        height: calc(100% - 32px);
        bottom: 16px;
        right: 16px;
    }
    .hero h1 { font-size: 36px; }
    .hero p { font-size: 16px; }
}
@media (max-width: 768px) {
    .nav {
        gap: 16px;
        flex-wrap: wrap;
    }
    .lang-switcher {
        margin-left: 16px;               /* на мобильных — меньше отступ */
    }
    .lang-switcher .lang-btn {
        padding: 4px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .lang-switcher {
        margin-left: 0;
        margin-top: 8px;
    }
    @media (max-width: 768px) {
        .service-card {
            flex: 0 0 220px;
        }
        .service-card-image {
            height: 130px;
        }
        .services-header {
            flex-direction: column;
            align-items: flex-start;
        }
    }

    @media (max-width: 480px) {
        .service-card {
            flex: 0 0 200px;
        }
        .service-card-image {
            height: 110px;
        }
        .service-placeholder {
            font-size: 18px;
        }
}
  /* ===== КНОПКА ЗАКРЫТИЯ ЧАТА (только мобильные) ===== */
  .chat-close-btn {
      display: none;
      width: 32px;
      height: 32px;
      border: none;
      background: rgba(0, 0, 0, 0.05);
      border-radius: 50%;
      cursor: pointer;
      align-items: center;
      justify-content: center;
      color: var(--text-muted);
      transition: var(--transition);
      flex-shrink: 0;
  }

  .chat-close-btn:hover {
      background: rgba(255, 101, 132, 0.15);
      color: var(--accent-secondary);
  }

  /* ===== ПОДВАЛ (контакты) ===== */
  .site-footer {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-top: 1px solid rgba(0, 0, 0, 0.08);
      padding: 24px 0;
      margin-top: 80px;
      scroll-margin-top: 90px;   /* чтобы не пряталось под шапкой при скролле */
  }

  .footer-inner {
      display: flex;
      justify-content: space-around;
      align-items: center;
      gap: 24px;
      flex-wrap: wrap;
  }

  .footer-item {
      display: flex;
      gap: 6px;
      font-size: 10px;           /* ← 10px, как просил */
      color: #000000;            /* ← чёрный */
      font-family: 'Courier New', monospace;
      letter-spacing: 0.5px;
  }

  .footer-label {
      font-weight: 700;
      color: #000000;
  }

  .footer-value {
      font-weight: 400;
      color: #000000;
  }

  /* ===== МОБИЛЬНАЯ ВЕРСИЯ: подвал фиксирован внизу ===== */
 /* @media (max-width: 768px) {
      .site-footer {
          position: fixed;
          bottom: 0;
          left: 0;
          right: 0;
          z-index: 998;
          padding: 8px 0;
          margin-top: 0;
          scroll-margin-top: 0;
          background: rgba(255, 255, 255, 0.97);
          border-top: 1px solid rgba(0, 0, 0, 0.1);
      }

      .footer-inner {
          flex-direction: column;
          gap: 2px;
          align-items: flex-start;
          padding: 0 16px;
      }

      .footer-item {
          font-size: 10px;
      }
*/
      /* Отступ для контента, чтобы фикс-подвал не перекрывал */
  /*    body {
          padding-bottom: 64px;
      }
  }*/
  @media (max-width: 768px) {
      .site-footer {
          position: static;          /* обычный поток */
          padding: 20px 16px;
          margin-top: 40px;
      }

      .footer-inner {
          flex-direction: column;
          gap: 6px;
          align-items: flex-start;
      }

      .footer-item {
          font-size: 11px;
      }
  }

  /* ===== СКРЫТЬ «КОНТАКТЫ» НА ДЕСКТОПЕ ===== */
  @media (min-width: 769px) {
      #navContactLink {
          display: none;
      }
  }

  @media (min-width: 769px) {
      .nav-desktop-hide {
          display: none !important;
      }
  }

  /* ===== ОКНО FAQ (как интро-блоки) ===== */
 /* .faq-intro {
      display: none !important;
      margin-top: 32px !important;
      background: var(--glass-bg) !important;;
      backdrop-filter: blur(20px) !important;;
      -webkit-backdrop-filter: blur(20px) !important;;
      border: 8px solid #FF6584 !important;;
      border-radius: var(--radius) !important;;
      padding: 40px 48px !important;;
      box-shadow: 0 8px 40px rgba(255, 101, 132, 0.2) !important;;
  }

  .faq-intro.open {
      display: block !important; ;
  }
*/
  /* Аккордеон внутри окна */
  /*.faq-intro .faq-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
  }

  .faq-intro .faq-item {
      background: transparent;
      border: none;
      border-bottom: 1px solid rgba(255, 101, 132, 0.2) !important;;
      border-radius: 0;
      padding: 0;
  }

  .faq-intro .faq-item:last-child {
      border-bottom: none !important;;
  }

  .faq-intro .faq-item summary {
      padding: 16px 0;
      cursor: pointer;
      font-weight: 700;
      font-size: 18px !important;;
      color: var(--text) !important;;
      list-style: none;
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: var(--transition);
  }

  .faq-intro .faq-item summary::-webkit-details-marker {
      display: none;
  }

  .faq-intro .faq-item summary::after {
      content: '+';
      font-size: 24px;
      font-weight: 400;
      color: #FF6584;
      transition: transform 0.3s ease;
  }

  .faq-intro .faq-item[open] summary::after {
      transform: rotate(45deg);
  }

  .faq-intro .faq-item[open] summary {
      color: #FF6584;
  }

  .faq-intro .faq-item p {
      padding: 0 0 16px;
      color: var(--text) !important;;
      line-height: 1.7;
      font-size: 18px !important;;
      margin: 0;
  }*/

  /* Адаптив */
  /*
  @media (max-width: 768px) {
      .faq-intro {
          padding: 24px 20px !important;;
          border-width: 8px;
      }
      */

     /* ===== FAQ: ФИНАЛЬНЫЕ СТИЛИ (ID-селектор, пуленепробиваемо) ===== */
     #faqIntro {
         display: none !important;
         margin-top: 32px !important;
         background: var(--glass-bg) !important;
         backdrop-filter: blur(20px) !important;
         -webkit-backdrop-filter: blur(20px) !important;
         border: 8px solid #FF6584 !important;
         border-radius: var(--radius) !important;
         padding: 40px 48px !important;
         box-shadow: 0 8px 40px rgba(255, 101, 132, 0.2) !important;
     }

     #faqIntro.open {
         display: block !important;
     }

     #faqIntro .faq-item {
         border-bottom: 1px solid rgba(255, 101, 132, 0.2) !important;
     }

     #faqIntro .faq-item:last-child {
         border-bottom: none !important;
     }

     #faqIntro .faq-item summary {
         font-size: 18px !important;
         color: var(--text) !important;
     }

     #faqIntro .faq-item p {
         font-size: 18px !important;
         color: var(--text) !important;
     }

     @media (max-width: 768px) {
         #faqIntro {
             padding: 24px 20px !important;
         }
     }
      .faq-intro .faq-item summary {
          font-size: 16px;
      }
      .faq-intro .faq-item p {
          font-size: 16px;
      }
  }

  /* ===== МОБИЛЬНАЯ ВЕРСИЯ ЧАТА ===== */
  @media (max-width: 768px) {
      /* Чат скрыт по умолчанию */
      .chat-widget {
          width: calc(100% - 32px);
          right: 16px;
          bottom: 16px;
          height: 500px;
          max-height: calc(100vh - 32px);
          transform: translateY(calc(100% + 32px));
          transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                      border-color 0.3s ease,
                      box-shadow 0.3s ease;
      }

      /* Открытый чат */
      .chat-widget.mobile-open {
          transform: translateY(0);
      }

      /* Показываем кнопку закрытия только на мобильных */
     /* .chat-close-btn {
          display: flex;
      }*/

      /* ===== КНОПКА ЗАКРЫТИЯ ЧАТА ===== */
      .chat-close-btn {
          display: none !important;
          width: 36px;
          height: 36px;
          border: none;
          background: var(--accent-gradient);
          border-radius: 50%;
          cursor: pointer;
          align-items: center;
          justify-content: center;
          color: #fff;
          transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
          flex-shrink: 0;
          box-shadow: 0 4px 12px rgba(255, 101, 132, 0.4);
          position: relative;
      }

      /* Hover — увеличение + ярче тень */
      .chat-close-btn:hover {
          transform: scale(1.1) rotate(90deg);
          box-shadow: 0 6px 20px rgba(255, 101, 132, 0.6);
      }

      /* Нажатие — уменьшение */
      .chat-close-btn:active {
          transform: scale(0.95) rotate(90deg);
      }

      /* Иконка внутри — чуть крупнее */
      .chat-close-btn svg {
          width: 20px;
          height: 20px;
          stroke-width: 2.5;
      }

      /* На мобильных — показываем */
      @media (max-width: 768px) {
          .chat-close-btn {
              display: flex !important;;
          }
      }

      /* Автоскрытие при скролле отключаем на мобильных (не сработает) */
      .chat-widget.hidden-scroll {
          transform: translateY(calc(100% + 32px));
      }
      .chat-widget.mobile-open.hidden-scroll {
          transform: translateY(0);
      }
  }
