/* ===== БАЗА ===== */

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #050505;
    color: #f5f5f5;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== HEADER ===== */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.96);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #d4af37;
    text-transform: uppercase;
}

.nav a {
    margin-left: 20px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, #f5e6a0);
    transition: width 0.2s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* ===== HERO (2 колонки, луч ниже текста) ===== */

.hero {
    position: relative;
    padding: 90px 0 80px;
    overflow: hidden;
    background:
        radial-gradient(circle at 2% 0%, #3a2a11 0, #050505 55%, #000 100%),
        radial-gradient(circle at 85% 40%, rgba(60, 40, 15, 0.6) 0, #050505 55%, #000 100%);
}

/* мягкое свечение слева */
.hero::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 12% 0%, rgba(240, 210, 120, 0.45), transparent 55%);
    opacity: 0.6;
    filter: blur(12px);
    animation: heroGlow 18s ease-in-out infinite alternate;
    z-index: 0;
}

/* Правая часть героя — декоративная плашка вместо круга */

.hero-image {
    flex: 1 1 260px;
    display: flex;
    justify-content: flex-end;
}

.hero-token {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 260px;
    min-height: 160px;
    padding: 22px 26px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 220, 150, 0.2), transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(0, 0, 0, 0.9), #050505 60%);
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.9),
        0 0 18px rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(4px);
    opacity: 0;
    transform: translateY(24px) scale(0.97);
    animation: hero-up 0.8s ease-out 0.25s forwards;
}

/* текст внутри плашки */

.hero-token-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #f5e6a0;
    margin-bottom: 6px;
}

.hero-token-sub {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #c3b06e;
}

/* ===== HERO BANNER В БЛОКЕ "О НАС" ===== */

.hero-banner-frame {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.22);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
    opacity: 0;
    transform: translateY(18px) scale(1.02);
    animation: hero-banner-fade 0.9s ease-out 0.45s forwards;
}

.hero-banner-image {
    display: block;
    width: 100%;
    height: auto;
    transform-origin: center;
    transition: transform 4s ease-out;
}

.hero-banner-frame:hover .hero-banner-image {
    transform: scale(1.04);
}

.about-banner {
    margin-top: 28px;
}

/* ===== SECTIONS ===== */

.section {
    padding: 60px 0;
    background-color: #050505;
}

.section-dark {
    background: #050505;
    border-top: 1px solid rgba(212, 175, 55, 0.12);
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.section h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 14px;
    color: #bbbbbb;
    max-width: 600px;
    margin-bottom: 24px;
}

.section-note {
    font-size: 13px;
    color: #aaaaaa;
    margin-top: 16px;
}

/* GRID */

.grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 32px;
}

/* LISTS */

.list-check {
    list-style: none;
    font-size: 14px;
}

.list-check li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.list-check li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #d4af37;
}

/* ===== WORKS ===== */

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.work-card {
    background: #111111;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.work-image {
    height: 140px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.work-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777777;
    font-size: 14px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.work-body {
    padding: 12px 14px 16px;
}

.work-body h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.work-body p {
    font-size: 13px;
    color: #cccccc;
}

/* ===== FAQ ===== */

.faq-list {
    margin-top: 20px;
}

.faq-item {
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    background: #0b0b0b;
    margin-bottom: 10px;
    padding: 12px 14px;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

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

.faq-item summary::after {
    content: "▾";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 12px;
    color: #c3b06e;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-item p {
    margin-top: 8px;
    font-size: 13px;
    color: #cccccc;
}

/* ===== CONTACTS ===== */

.steps {
    list-style: none;
    font-size: 14px;
}

.steps li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 6px;
}

.steps span {
    display: inline-block;
    width: 22px;
    color: #d4af37;
    font-weight: 600;
}

.contacts-block {
    background: #111111;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 16px;
    font-size: 14px;
}

.contact-item + .contact-item {
    margin-top: 10px;
}

.contact-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #c3b06e;
    margin-bottom: 2px;
}

/* Кнопки-ссылки в контактах */

.contact-item a {
    display: inline-block;
    margin-top: 4px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 13px;
    text-decoration: none;
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f5f5f5;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
    transition:
        transform 0.12s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        opacity 0.2s ease;
    opacity: 0;
}

/* Анимация появления ссылок */

@keyframes contact-pop {
    0% {
        transform: translateY(8px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.contacts-block .contact-item:nth-child(1) a {
    animation: contact-pop 0.45s ease-out 0.05s forwards;
}

.contacts-block .contact-item:nth-child(2) a {
    animation: contact-pop 0.45s ease-out 0.12s forwards;
}

.contacts-block .contact-item:nth-child(3) a {
    animation: contact-pop 0.45s ease-out 0.19s forwards;
}

.contacts-block .contact-item:nth-child(4) a {
    animation: contact-pop 0.45s ease-out 0.26s forwards;
}

.contacts-block .contact-item:nth-child(5) a {
    animation: contact-pop 0.45s ease-out 0.33s forwards;
}

/* Hover для кнопок */

.contact-item a:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.9);
}

/* Цвета сервисов */

.link-telegram {
    color: #d3ecff;
    border-color: #229ED9;
    background: rgba(34, 158, 217, 0.18);
}

.link-telegram:hover {
    background: #229ED9;
    color: #050505;
}

.link-whatsapp {
    color: #ddffe8;
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.2);
}

.link-whatsapp:hover {
    background: #25D366;
    color: #050505;
}

.link-vk {
    color: #d6e6ff;
    border-color: #0077FF;
    background: rgba(0, 119, 255, 0.2);
}

.link-vk:hover {
    background: #0077FF;
    color: #f5f5f5;
}

.link-wb {
    color: #ffd9fb;
    border-color: #cb11ab;
    background: rgba(203, 17, 171, 0.25);
}

.link-wb:hover {
    background: #cb11ab;
    color: #f5f5f5;
}

.link-email {
    color: #fdf4c0;
    border-color: #f5e6a0;
    background: rgba(245, 230, 160, 0.22);
}

.link-email:hover {
    background: #f5e6a0;
    color: #050505;
}

/* ===== FOOTER ===== */

.footer {
    padding: 20px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.18);
    background: #050505;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: #999999;
}

.footer-note {
    color: #777777;
}

/* ===== RESPONSIVE LAYOUT ===== */

@media (max-width: 768px) {
    .nav a {
        margin-left: 10px;
        font-size: 12px;
    }

    .hero {
        padding-top: 70px;
        padding-bottom: 60px;
    }

    .hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-image {
        width: 100%;
        justify-content: flex-start;
    }

    .hero-token {
        min-width: 100%;
    }

    .grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-banner {
        margin-top: 22px;
    }

    .hero-banner-frame {
        border-radius: 14px;
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.9);
    }
}

/* ===== АНИМАЦИИ ===== */

@keyframes heroGlow {
    0%   { transform: translateX(-6%) translateY(4%); }
    50%  { transform: translateX(4%) translateY(-3%); }
    100% { transform: translateX(-2%) translateY(1%); }
}

@keyframes heroBeam {
    0%   { transform: translateX(0); opacity: 0; }
    10%  { opacity: 0.7; }
    40%  { transform: translateX(70%); opacity: 0.9; }
    65%  { transform: translateX(110%); opacity: 0; }
    100% { transform: translateX(110%); opacity: 0; }
}

@keyframes hero-up {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes hero-banner-fade {
    0% {
        opacity: 0;
        transform: translateY(22px) scale(1.03);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* ===== HERO v2 — без луча, спокойный фон со звёздами ===== */

.hero {
    position: relative;
    padding: 90px 0 80px;
    overflow: hidden;
    /* более мягкий единый фон */
    background:
        radial-gradient(circle at 12% 0%, #3a2a11 0, #14100b 30%, #050505 60%, #000 100%);
}

/* лёгкая "звёздная пыль" по всему блоку */
.hero::before {
    content: "";
    position: absolute;
    inset: -35%;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.16) 0, transparent 55%),
        radial-gradient(circle, rgba(255,255,255,0.08) 0, transparent 55%),
        radial-gradient(circle, rgba(255,255,255,0.12) 0, transparent 55%);
    background-size: 260px 260px, 360px 360px, 480px 480px;
    background-position: 10% 20%, 55% 5%, 82% 40%;
    opacity: 0.22;
    mix-blend-mode: screen;
    filter: blur(0.3px);
    animation: heroStars 45s linear infinite;
    z-index: 0;
    pointer-events: none;
}

/* полностью отключаем старый луч */
.hero::after {
    content: none;
}

/* оставляем двухколоночную структуру */
.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 40px;
}

/* текст слева как был */
.hero-text {
    flex: 1 1 360px;
}

/* карточка справа — чуть “плавает” вверх-вниз */
.hero-token {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 260px;
    min-height: 160px;
    padding: 22px 26px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 220, 150, 0.22), transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(0, 0, 0, 0.9), #050505 60%);
    border: 1px solid rgba(212, 175, 55, 0.5);
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.9),
        0 0 18px rgba(212, 175, 55, 0.25);
    backdrop-filter: blur(4px);
    opacity: 0;
    transform: translateY(24px) scale(0.97);
    /* сначала плавное появление, потом — медленное плавание */
    animation:
        hero-up 0.8s ease-out 0.25s forwards,
        heroFloat 12s ease-in-out 1.1s infinite;
}

.hero-token-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #f5e6a0;
    margin-bottom: 6px;
}

.hero-token-sub {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #c3b06e;
}

/* мобильная версия: всё в колонку, карточка под текстом */

@media (max-width: 768px) {
    .hero {
        padding-top: 70px;
        padding-bottom: 60px;
    }

    .hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-image {
        width: 100%;
        justify-content: flex-start;
    }

    .hero-token {
        min-width: 100%;
    }
}

/* ===== АНИМАЦИИ ДЛЯ HERO v2 ===== */

/* медленное движение "звёзд" */
@keyframes heroStars {
    0% {
        transform: translate3d(0,0,0);
    }
    100% {
        transform: translate3d(-80px,-40px,0);
    }
}

/* плавное подпрыгивание карточки */
@keyframes heroFloat {
    0% {
        transform: translateY(0) scale(1);
        box-shadow:
            0 16px 32px rgba(0, 0, 0, 0.9),
            0 0 18px rgba(212, 175, 55, 0.25);
    }
    50% {
        transform: translateY(-6px) scale(1.01);
        box-shadow:
            0 22px 40px rgba(0, 0, 0, 0.95),
            0 0 24px rgba(212, 175, 55, 0.32);
    }
    100% {
        transform: translateY(0) scale(1);
        box-shadow:
            0 16px 32px rgba(0, 0, 0, 0.9),
            0 0 18px rgba(212, 175, 55, 0.25);
    }
}
/* ===== HERO: ТЕКСТ И КНОПКИ ===== */

.hero-text h1 {
    font-size: 32px;
    margin-bottom: 16px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.hero-text p {
    font-size: 16px;
    max-width: 520px;
    margin-bottom: 20px;
    color: #dddddd;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.85);
}

/* контейнер для двух кнопок в герое */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

/* базовый стиль кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 999px;
    border: 1px solid #d4af37;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.1s ease,
        box-shadow 0.2s ease;
    text-decoration: none;
}

/* золотая основная кнопка — "Сделать заказ" */
.btn-primary {
    background: linear-gradient(135deg, #d4af37, #f5e6a0);
    color: #050505;
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.45);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.75);
}

/* прозрачная кнопка с золотым контуром — "Посмотреть примеры" */
.btn-outline {
    background: transparent;
    color: #d4af37;
    border-color: rgba(212, 175, 55, 0.8);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.12);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* компактнее на мобилках */
@media (max-width: 768px) {
    .hero-buttons {
        flex-wrap: wrap;
        gap: 10px;
    }

    .btn {
        font-size: 13px;
        padding: 9px 20px;
    }
}

/* ===== НЕОНОВЫЙ ЛОГОТИП ГРАВИУМ ===== */

.logo {
    color: #f8e9b5;
    letter-spacing: 0.16em;
    text-shadow:
        0 0 4px rgba(248,233,181,0.9),
        0 0 10px rgba(248,233,181,0.9),
        0 0 18px rgba(212,175,55,0.9),
        0 0 28px rgba(212,175,55,0.7);
}

/* буква "В" моргает как неоновая лампа */
.logo-flicker {
    display: inline-block;
    animation: logoNeonFlicker 4.5s infinite steps(1, end);
}

@keyframes logoNeonFlicker {
    0%, 5% {
        opacity: 1;
        text-shadow:
            0 0 4px rgba(248,233,181,0.9),
            0 0 10px rgba(248,233,181,0.9),
            0 0 18px rgba(212,175,55,0.9),
            0 0 28px rgba(212,175,55,0.7);
    }
    6% {
        opacity: 0.1;
        text-shadow: none;
    }
    8% {
        opacity: 1;
        text-shadow:
            0 0 4px rgba(248,233,181,0.9),
            0 0 10px rgba(248,233,181,0.9),
            0 0 18px rgba(212,175,55,0.9),
            0 0 28px rgba(212,175,55,0.7);
    }
    11% {
        opacity: 0.2;
        text-shadow: none;
    }
    13% {
        opacity: 1;
        text-shadow:
            0 0 4px rgba(248,233,181,0.9),
            0 0 10px rgba(248,233,181,0.9),
            0 0 18px rgba(212,175,55,0.9),
            0 0 28px rgba(212,175,55,0.7);
    }
    18% {
        opacity: 0.3;
        text-shadow: none;
    }
    20%, 100% {
        opacity: 1;
        text-shadow:
            0 0 4px rgba(248,233,181,0.9),
            0 0 10px rgba(248,233,181,0.9),
            0 0 18px rgba(212,175,55,0.9),
            0 0 28px rgba(212,175,55,0.7);
    }
}


/* ===== ГАЛЕРЕЯ ПРИМЕРОВ РАБОТ (16 фото, 4 в ряд) ===== */

.works-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.works-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #111111;
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(0, 0, 0, 0.8);
}

.works-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
}

/* лёгкий зум и подсветка по наведению */
.works-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.08);
}

/* адаптация под планшеты и телефоны */
@media (max-width: 1024px) {
    .works-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .works-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .works-gallery {
        grid-template-columns: 1fr;
    }
}

/* ===== ГАЛЕРЕЯ ПРИМЕРОВ РАБОТ (16 фото, 4 в ряд) ===== */

.works-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.works-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #111111;
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(0, 0, 0, 0.8);
}

.works-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
}

/* лёгкий зум и подсветка по наведению */
.works-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.08);
}

/* адаптация под планшеты и телефоны */
@media (max-width: 1024px) {
    .works-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .works-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .works-gallery {
        grid-template-columns: 1fr;
    }
}

/* ===== МОБИЛЬНАЯ ВЕРСТКА ШАПКИ И HERO ===== */

@media (max-width: 768px) {
    /* Шапка: логотип сверху, меню ниже */
    .header {
        padding: 10px 0 6px;
    }

    .header-inner {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .logo {
        font-size: 18px;
        letter-spacing: 0.18em;
    }

    .nav {
        width: 100%;
    }

    .nav-list {
        display: flex;
        flex-wrap: wrap;
        gap: 6px 14px;
    }

    .nav-link {
        font-size: 13px;
        letter-spacing: 0.12em;
    }

    /* Чуть уменьшаем заголовок в hero и добавляем воздуха */
    .hero {
        padding-top: 70px;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 26px;
        line-height: 1.25;
    }

    .hero-text p {
        font-size: 15px;
    }

    .hero-buttons {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */

@media (max-width: 768px) {
    .header {
        padding: 10px 0;
        position: sticky;
        top: 0;
        z-index: 50;
        background: #000000;
    }

    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .logo {
        font-size: 18px;
        letter-spacing: 0.18em;
    }

    .burger {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Делаем меню выпадающим поверх контента */
    .nav {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.96);
        border-top: 1px solid rgba(212, 175, 55, 0.25);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
        padding: 16px 20px 24px;
        transform: translateY(-16px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .header--menu-open .nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-link {
        font-size: 16px;
        letter-spacing: 0.14em;
    }
}

/* ===== ПРАВКА МОБИЛЬНОГО БУРГЕР-МЕНЮ (ПЕРЕОПРЕДЕЛЕНИЕ) ===== */

@media (max-width: 768px) {
    .header {
        position: sticky;
        top: 0;
        z-index: 100;
        background: #000000;
        padding: 8px 0;
    }

    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .logo {
        font-size: 18px;
        letter-spacing: 0.18em;
    }

    .burger {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Меню по умолчанию скрыто */
    .nav {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        display: none;
        background: rgba(0, 0, 0, 0.96);
        border-top: 1px solid rgba(212, 175, 55, 0.25);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
        padding: 16px 20px 24px;
        z-index: 90;
    }

    /* При открытом меню показываем блок */
    .header--menu-open .nav {
        display: block;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-link {
        font-size: 16px;
        letter-spacing: 0.14em;
    }
}
/* ===== ФИНАЛЬНАЯ ПРАВКА МОБИЛЬНОГО БУРГЕР-МЕНЮ ===== */

@media (max-width: 768px) {
    .header {
        position: sticky;
        top: 0;
        z-index: 100;
        background: #000000;
        padding: 8px 0;
    }

    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .logo {
        font-size: 18px;
        letter-spacing: 0.18em;
    }

    .burger {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Меню по умолчанию скрыто */
    .nav {
        display: none !important;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.96);
        border-top: 1px solid rgba(212, 175, 55, 0.25);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
        padding: 16px 20px 24px;
        z-index: 90;
    }

    /* Когда шапка в состоянии "открыто" — показываем меню */
    .header--menu-open .nav {
        display: block !important;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-link {
        font-size: 16px;
        letter-spacing: 0.14em;
    }
}
/* ===== УПРОЩЁННАЯ МОБИЛЬНАЯ ШАПКА ===== */

@media (max-width: 768px) {
    .header {
        position: sticky;
        top: 0;
        z-index: 100;
        background: #000000;
        padding: 10px 0 6px;
    }

    .header-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .logo {
        font-size: 18px;
        letter-spacing: 0.18em;
    }

    /* На всякий случай глушим остатки бургера, если где-то остался */
    .burger,
    .burger span {
        display: none !important;
    }

    .nav {
        position: static !important;
        display: block !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0;
    }

    .nav-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 14px;
    }

    .nav-link {
        font-size: 13px;
        letter-spacing: 0.12em;
    }
}

/* ===== ФИНАЛЬНАЯ НАСТРОЙКА МОБИЛЬНОЙ ШАПКИ ===== */

@media (max-width: 768px) {
    .header {
        position: sticky;
        top: 0;
        z-index: 100;
        background: #000000;
        padding: 10px 0 6px;
    }

    .header-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .logo {
        font-size: 18px;
        letter-spacing: 0.18em;
    }

    /* если где-то остались стили бургера — глушим */
    .burger,
    .burger span {
        display: none !important;
    }

    /* главное — всегда показываем меню на мобиле */
    .nav {
        display: block !important;
        position: static !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0;
        margin: 0;
    }

    .nav-list {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 14px;
    }

    .nav-link {
        font-size: 13px;
        letter-spacing: 0.12em;
    }
}

/* ===== ЖЁСТКО ВКЛЮЧАЕМ МЕНЮ НА МОБИЛЬНЫХ ===== */

@media (max-width: 768px) {

    /* Шапка + контейнер */
    .header {
        position: sticky;
        top: 0;
        z-index: 100;
        background: #000000;
        padding: 10px 0 6px;
    }

    .header-inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 6px;
    }

    .logo {
        font-size: 18px;
        letter-spacing: 0.18em;
    }

    /* На всякий случай прячем бургер, если где-то остался */
    .burger,
    .burger span {
        display: none !important;
    }

    /* Главное — всегда показываем .nav */
    .nav {
        display: block !important;
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        max-height: none !important;
        visibility: visible !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        margin: 0;
        padding: 0;
    }

    .nav-list {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 6px 14px;
        margin: 8px 0 0;
        padding: 0;
    }

    .nav-item {
        list-style: none;
    }

    .nav-link {
        font-size: 13px;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }
}

/* ===== ДОКРУТКА ВЫРАВНИВАНИЯ МЕНЮ НА МОБИЛЬНЫХ ===== */

@media (max-width: 768px) {
    .nav {
        display: flex !important;
        justify-content: center !important;
        width: 100%;
        margin: 0 auto !important;
    }

    .nav-list {
        display: flex !important;
        justify-content: center !important;
        align-items: center;
        gap: 6px 14px;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
}

/* ===== ФИНАЛЬНАЯ ПОДПРАВКА МОБИЛЬНОЙ ШАПКИ ===== */

@media (max-width: 768px) {

    .header {
        position: sticky;
        top: 0;
        z-index: 100;
        background: #000;
        padding: 10px 0 6px;
    }

    .header-inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 6px;
    }

    .logo {
        font-size: 18px;
        letter-spacing: 0.18em;
    }

    .nav {
        width: 100%;
        display: block !important;
        margin: 0 auto !important;
    }

    .nav-list {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center !important;
        align-items: center;
        max-width: 320px;           /* чуть уже, чтобы блок был компактный */
        margin: 0 auto;
        padding: 0;
        gap: 4px 10px;
    }

    .nav-item {
        list-style: none;
    }

    .nav-link {
        font-size: 12px;            /* чуть меньше, чтобы комфортно влезало */
        letter-spacing: 0.11em;
        text-transform: uppercase;
        padding: 0 4px;
    }
}
/* ---------- КАК ВСЁ ПРОХОДИТ ---------- */

.process-steps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.process-steps li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: #f7e4a0;
  box-shadow:
    0 0 12px rgba(212, 175, 55, 0.6),
    0 0 30px rgba(212, 175, 55, 0.25);
  background: radial-gradient(circle at 30% 30%, #ffe9b0 0, #e2b754 30%, #8b621f 75%, #000 100%);
}

.step-content h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
}

.step-content p {
  margin: 0;
  line-height: 1.6;
  color: #d0d0d0;
}

/* На широких экранах — две колонки */

@media (min-width: 960px) {
  .process-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 24px;
  }

  .process-steps li {
    align-items: flex-start;
  }
}
/* ===========================
   Примеры работ — карточки
   =========================== */

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 1024px) {
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .works-grid {
    grid-template-columns: 1fr;
  }
}

.works-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #070707;
  border: 1px solid rgba(212, 175, 55, 0.18);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.9),
    0 0 0 rgba(212, 175, 55, 0);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

/* Мягкое «свечение» вокруг карточки при ховере */
.works-item::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 0,
    rgba(255, 225, 150, 0.18),
    rgba(0, 0, 0, 0));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.works-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition:
    transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
    filter 0.4s ease;
}

/* Ховер-эффект */
.works-item:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 1),
    0 0 40px rgba(212, 175, 55, 0.45);
}

.works-item:hover::before {
  opacity: 1;
}

.works-item:hover img {
  transform: scale(1.06);
  filter: brightness(1.08);
}
/* --- Преимущества --- */

.section-benefits {
  padding-top: 80px;
  padding-bottom: 80px;
  background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.12), transparent 55%);
}

.section-benefits .section-title {
  margin-bottom: 32px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.benefit-item {
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.18), rgba(0, 0, 0, 0.85));
  padding: 20px 22px;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(0, 0, 0, 0.6);
}

.benefit-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
}

.benefit-text {
  font-size: 14px;
  line-height: 1.6;
  color: #d6d6d6;
}

/* Адаптив для планшета и телефона */
@media (max-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .section-benefits {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .benefit-item {
    padding: 18px 18px;
  }
}
/* ---------- FAQ ---------- */

#faq .section-title {
    margin-bottom: 12px;
}

#faq .section-subtitle {
    max-width: 640px;
    margin: 0 auto 28px;
    color: #b8b8b8;
    font-size: 14px;
}

.faq-list {
    max-width: 840px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: radial-gradient(circle at 0 0,
                rgba(212, 175, 55, 0.12),
                rgba(10, 10, 10, 0.98));
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 14px 18px;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #f5f5f5;
}

.faq-question::after {
    content: "+";
    flex-shrink: 0;
    font-size: 18px;
    color: #d4af37;
    transition: transform 0.25s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 18px;
    font-size: 14px;
    color: #d0d0d0;
    line-height: 1.6;
    transition: max-height 0.25s ease, padding-bottom 0.25s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 14px;
}

/* немного компактнее на мобиле */
@media (max-width: 640px) {
    .faq-question {
        font-size: 14px;
        padding: 12px 14px;
    }

    .faq-answer {
        font-size: 13px;
        padding: 0 14px;
    }

    .faq-item.active .faq-answer {
        padding-bottom: 12px;
    }
}
/* === БОЛЬШЕ ВОЗДУХА ВОКРУГ КНОПОК HERO === */

/* абзац перед кнопками — без нижнего отступа */
.hero-text p {
    margin-bottom: 0;
}

/* кнопки — побольше отступ сверху и снизу */
.hero-buttons {
    margin: 32px 0;  /* можно 36px, если захочешь ещё свободнее */
}

/* список преимуществ сразу после кнопок */
.hero-benefits {
    margin-top: 0;
}
/* === БОЛЕЕ БОЛЬШИЕ ОТСТУПЫ ВОКРУГ КНОПОК HERO === */

/* абзац перед кнопками — без нижнего отступа */
.hero-text p {
    margin-bottom: 0;
}

/* блок с двумя кнопками */
.hero-actions {
    margin: 32px 0;  /* если захочешь ещё больше воздуха — поставь 36px или 40px */
}

/* список с буллитами сразу под кнопками */
.hero-benefits {
    margin-top: 0;
}
/* --- Мобильная правка кнопок в hero --- */
@media (max-width: 640px) {

    /* контейнер с кнопками */
    .hero-actions {
        margin-top: 28px;      /* от заголовка/текста до кнопок */
        margin-bottom: 26px;   /* от кнопок до списка с точками */
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    /* сами кнопки */
    .hero-actions .btn {
        width: 100%;                 /* на всю ширину текста */
        justify-content: center;     /* текст по центру */
        text-align: center;
        padding: 12px 20px;
    }
}
/* ==== MOBILE TUNING: HEADER + HERO TITLE + CENTER NAV ==== */
@media (max-width: 640px) {

  /* шапка повыше */
  .header {
    padding: 14px 0 10px;
  }

  .header-inner {
    gap: 8px;
  }

  /* логотип крупнее */
  .logo {
    font-size: 22px;
    letter-spacing: 0.20em;
  }

  /* навигация по центру */
  .nav {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;   /* по центру по горизонтали */
    align-items: center;       /* по вертикали */
    gap: 8px 18px;
  }

  .nav a,
  .nav-link {
    font-size: 14px;
    letter-spacing: 0.13em;
    text-align: center;
  }

  /* меньше отступ над "Студия лазерной гравировки" */
  .hero {
    padding-top: 52px;
  }
}
/* ================== CHAT WIDGET: PORTAL v2 ================== */

/* ===================== CHAT WIDGET — ПОРТАЛ ===================== */

.chat-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    font-family: inherit;
}

/* Кнопка-капсула с порталом слева и текстом справа */
.chat-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 8px;
    border-radius: 999px;
    border: 1px solid rgba(120, 190, 255, 0.55);
    background: radial-gradient(circle at 0 0,
        rgba(80, 120, 255, 0.22),
        rgba(0, 0, 0, 0.95));
    box-shadow:
        0 0 18px rgba(80, 140, 255, 0.45),
        0 0 4px rgba(0, 0, 0, 0.9);
    cursor: pointer;
    color: #f7f7ff;
    backdrop-filter: blur(4px);
    border-width: 1px;
}

.chat-toggle:hover {
    box-shadow:
        0 0 24px rgba(110, 190, 255, 0.75),
        0 0 6px rgba(0, 0, 0, 1);
}

/* ==== ПОРТАЛ ==== */

.chat-portal {
    position: relative;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: visible;
}

/* Внутренний тёмный диск */
.chat-portal::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 1) 55%, #000 100%);
    box-shadow:
        0 0 22px rgba(0, 0, 0, 0.95) inset;
}

/* Светящееся кольцо */
.chat-portal::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(150, 215, 255, 0.95);
    box-shadow:
        0 0 14px rgba(150, 215, 255, 0.9),
        0 0 34px rgba(70, 130, 255, 0.7);
    filter: blur(0.3px);
    animation: portal-ring-rotate 18s linear infinite;
}

/* Маленькие искры по окружности */

.chat-portal-spark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: radial-gradient(circle,
        #ffffff 0,
        #bfe6ff 40%,
        rgba(191, 230, 255, 0.1) 70%,
        transparent 80%);
    box-shadow:
        0 0 8px rgba(191, 230, 255, 0.9),
        0 0 14px rgba(120, 190, 255, 0.7);
    opacity: 0;
    pointer-events: none;
}

/* Три варианта орбиты и тайминга искр */

.chat-portal-spark--1 {
    animation: portal-spark-1 2.8s ease-out infinite;
}

.chat-portal-spark--2 {
    animation: portal-spark-2 3.1s ease-out infinite;
    animation-delay: 0.5s;
}

.chat-portal-spark--3 {
    animation: portal-spark-3 3.4s ease-out infinite;
    animation-delay: 1.1s;
}

/* Текст справа от портала */

.chat-toggle-text {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #f4fbff;
}

/* ==== ПАНЕЛЬ ЧАТА ==== */

.chat-panel {
    position: fixed;
    right: 24px;
    bottom: 84px;
    width: 320px;
    max-width: calc(100% - 32px);
    background: #05060a;
    border-radius: 16px;
    border: 1px solid rgba(150, 215, 255, 0.45);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 89;
}

.chat-widget--open .chat-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.chat-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: radial-gradient(circle at 0 0,
        rgba(150, 215, 255, 0.22),
        #05060a 55%);
    border-bottom: 1px solid rgba(150, 215, 255, 0.4);
}

.chat-panel-title {
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #e7f4ff;
}

.chat-close {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #e7f4ff;
    cursor: pointer;
}

.chat-panel-body {
    padding: 10px 14px 14px;
    font-size: 13px;
    color: #d2d8e6;
}

.chat-panel-note {
    font-size: 13px;
    color: #b5c0d9;
    margin-bottom: 10px;
}

.chat-field {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    color: #c3d0ea;
}

.chat-field span {
    display: block;
    margin-bottom: 4px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chat-field input,
.chat-field textarea {
    width: 100%;
    padding: 7px 9px;
    border-radius: 8px;
    border: 1px solid #272b38;
    background: #05060a;
    color: #f5f7ff;
    font-size: 13px;
}

.chat-field input:focus,
.chat-field textarea:focus {
    outline: none;
    border-color: rgba(150, 215, 255, 0.8);
}

.chat-field textarea {
    min-height: 70px;
    resize: vertical;
}

.chat-submit {
    width: 100%;
    margin-top: 2px;
    padding: 9px 14px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #6db9ff, #c0e5ff);
    color: #02101f;
    box-shadow:
        0 0 18px rgba(150, 215, 255, 0.7),
        0 4px 14px rgba(0, 0, 0, 0.9);
}

.chat-submit:hover {
    box-shadow:
        0 0 24px rgba(150, 215, 255, 0.9),
        0 6px 16px rgba(0, 0, 0, 1);
}

.chat-hint {
    margin-top: 6px;
    font-size: 11px;
    color: #9aa6c2;
}

.chat-hint a {
    color: #c9e3ff;
    text-decoration: underline;
}

/* ==== АНИМАЦИИ ПОРТАЛА ==== */

@keyframes portal-ring-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes portal-spark-1 {
    0%   { opacity: 0; transform: rotate(0deg)   translateX(22px) scale(0.3); }
    20%  { opacity: 1; }
    60%  { opacity: 0.9; transform: rotate(150deg) translateX(22px) scale(0.9); }
    100% { opacity: 0; transform: rotate(210deg) translateX(22px) scale(0.2); }
}

@keyframes portal-spark-2 {
    0%   { opacity: 0; transform: rotate(110deg) translateX(22px) scale(0.3); }
    20%  { opacity: 1; }
    60%  { opacity: 0.9; transform: rotate(260deg) translateX(22px) scale(0.9); }
    100% { opacity: 0; transform: rotate(320deg) translateX(22px) scale(0.2); }
}

@keyframes portal-spark-3 {
    0%   { opacity: 0; transform: rotate(210deg) translateX(22px) scale(0.3); }
    20%  { opacity: 1; }
    60%  { opacity: 0.9; transform: rotate(330deg) translateX(22px) scale(0.9); }
    100% { opacity: 0; transform: rotate(390deg) translateX(22px) scale(0.2); }
}

/* ==== АДАПТИВ ДЛЯ МОБИЛЫ ==== */

@media (max-width: 600px) {
    .chat-widget {
        right: 16px;
        bottom: 20px;
    }

    .chat-panel {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 80px;
    }
}

@media (max-width: 480px) {
    /* на очень узких — только круг без текста */
    .chat-toggle-text {
        display: none;
    }

    .chat-toggle {
        padding: 0;
        border-radius: 50%;
        width: 54px;
        height: 54px;
        justify-content: center;
    }
}
/* ============== GOLD THEME OVERRIDE ДЛЯ ПОРТАЛА И ЧАТА ============== */

/* Капсула-кнопка */
.chat-toggle {
    border: 1px solid rgba(245, 230, 160, 0.6);
    background: radial-gradient(circle at 0 0,
        rgba(212, 175, 55, 0.18),
        rgba(0, 0, 0, 0.96));
    box-shadow:
        0 0 18px rgba(212, 175, 55, 0.55),
        0 0 4px rgba(0, 0, 0, 0.9);
    color: #fff7d6;
}

.chat-toggle:hover {
    box-shadow:
        0 0 24px rgba(245, 230, 160, 0.9),
        0 0 6px rgba(0, 0, 0, 1);
}

/* Светящийся золотой ободок портала */
.chat-portal::after {
    border: 2px solid rgba(245, 230, 160, 0.95);
    box-shadow:
        0 0 14px rgba(245, 230, 160, 0.95),
        0 0 34px rgba(212, 175, 55, 0.85);
}

/* Внутренний диск — чуть теплее */
.chat-portal::before {
    background:
        radial-gradient(circle at 30% 30%,
            rgba(255, 255, 255, 0.08),
            rgba(0, 0, 0, 1) 55%,
            #000 100%);
}

/* Искры по контуру — золотые */
.chat-portal-spark {
    background: radial-gradient(circle,
        #ffffff 0,
        #f5e6a0 40%,
        rgba(245, 230, 160, 0.08) 70%,
        transparent 80%);
    box-shadow:
        0 0 8px rgba(245, 230, 160, 0.9),
        0 0 14px rgba(212, 175, 55, 0.7);
}

/* Текст "обсудить заказ" рядом с порталом */
.chat-toggle-text {
    color: #fff6d0;
}

/* Панель чата — рамка и шапка в золоте */
.chat-panel {
    border: 1px solid rgba(245, 230, 160, 0.5);
}

.chat-panel-header {
    background: radial-gradient(circle at 0 0,
        rgba(245, 230, 160, 0.22),
        #050505 55%);
    border-bottom: 1px solid rgba(245, 230, 160, 0.55);
}

.chat-panel-title {
    color: #fff5cf;
}

.chat-close {
    color: #fff7da;
}

/* Текстовые цвета — чуть теплее */
.chat-panel-body {
    color: #f0e7cf;
}

.chat-panel-note {
    color: #e0d4b2;
}

.chat-field {
    color: #e3d8b8;
}

.chat-field input,
.chat-field textarea {
    border-color: #383225;
}

/* Кнопка "отправить" — золотой градиент */
.chat-submit {
    background: linear-gradient(90deg, #d4af37, #f5e6a0);
    color: #050505;
    box-shadow:
        0 0 18px rgba(212, 175, 55, 0.8),
        0 4px 14px rgba(0, 0, 0, 0.9);
}

.chat-submit:hover {
    box-shadow:
        0 0 24px rgba(245, 230, 160, 0.95),
        0 6px 16px rgba(0, 0, 0, 1);
}

/* Подсказка и ссылка */
.chat-hint {
    color: #c9bfa0;
}

.chat-hint a {
    color: #ffeab5;
}
