/* ============================================================
   Студия Арктики Алисы — дизайн-система.
   Палитра — палитра издательства Arctic Ice:
   глубокое вино, малина, шалфей и светло-зелёный.
   ============================================================ */

:root {
    /* Палитра издательства Arctic Ice */
    --ice-navy:        #6E1A37;   /* глубокое вино */
    --ice-navy-dark:   #4A0F24;
    --ice-navy-deep:   #2E0817;
    --ice-teal:        #4F8D7E;   /* приглушённый шалфей */
    --ice-cyan:        #72BAA9;   /* шалфейный */
    --ice-frost:       #D5E7B5;   /* светло-зелёный */
    --ice-frost-soft:  #E8F2D6;
    --ice-steel:       #8A6A78;

    /* Акценты */
    --ice-berry:       #AE2448;   /* малина издательства */
    --ice-berry-dark:  #7E1632;
    --ice-gold:        #C3DC9E;

    /* Нейтральные */
    --ink:             #1F1016;
    --muted:           #8A6A78;
    --border:          #E6DEE2;
    --page-bg:         #FBF7F4;

    /* Радиусы и тени */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 60px;
    --shadow-sm: 0 8px 22px -14px rgba(74, 15, 36, 0.35);
    --shadow-md: 0 20px 45px -22px rgba(74, 15, 36, 0.45);
    --shadow-lg: 0 32px 70px -34px rgba(74, 15, 36, 0.55);

    /* Кривые */
    --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce:  cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Типографика */
    --font-heading: 'Cormorant Unicase', 'PT Serif', serif;
    --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Тёмная тема */
html[data-theme="dark"] {
    --ink:            #F0E4E8;
    --muted:          #B89AA6;
    --border:         #3A1F2C;
    --page-bg:        #1A0A12;
    --ice-navy:       #8E2A4C;
    --ice-navy-dark:  #2E0817;
    --ice-navy-deep:  #1A050E;
    --ice-cyan:       #8BD0BF;
    --ice-teal:       #5FA090;
    --ice-frost:      #C3DC9E;
    --ice-berry:      #D63864;
    --ice-berry-dark: #A82A4E;
}

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

html, body { min-height: 100%; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    line-height: 1.55;
    background: var(--page-bg);
    padding-top: 145px;
    position: relative;
    z-index: 0;
    overflow-x: clip;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 60% at 50% 0%, rgba(114, 186, 169, 0.18), transparent 65%),
        radial-gradient(ellipse 70% 50% at 10% 30%, rgba(79, 141, 126, 0.14), transparent 70%),
        radial-gradient(ellipse 70% 50% at 90% 70%, rgba(174, 36, 72, 0.10), transparent 70%),
        linear-gradient(180deg, var(--ice-navy) 0%, var(--ice-navy-dark) 60%, #150309 100%);
    opacity: 0.12;
}

/* ==================== КОНТЕЙНЕР ==================== */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== ШАПКА ==================== */
.main-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #5A1430 0%, #6E1A37 100%);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
    animation: slideDownFade 0.55s var(--ease-premium) both;
}
@keyframes slideDownFade {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}
.main-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ice-cyan) 30%, var(--ice-berry) 70%, transparent);
    opacity: 0.85;
    pointer-events: none;
}

/* ---- ВЕРХНЯЯ СТРОКА (95px) ---- */
.header-top {
    height: 95px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.header-top .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Бренд (логотип + две строки текста) --- */
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    text-decoration: none;
    transition: transform 0.4s var(--ease-bounce);
}
.brand:hover { transform: scale(1.02); }
.brand .logo { line-height: 0; }
.brand .logo img {
    display: block;
    height: 58px;
    width: auto;
    max-height: 58px;
    filter: drop-shadow(2px 2px 3px rgba(255, 255, 255, 0.20))
            drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
    transition: filter 0.3s ease, transform 0.4s var(--ease-bounce);
}
.brand:hover .logo img {
    filter: drop-shadow(2px 2px 4px rgba(255, 255, 255, 0.35))
            drop-shadow(0 4px 12px rgba(174, 36, 72, 0.45));
}
.brand-text {
    display: flex;
    flex-direction: column;
    color: #fff;
}
.brand-name {
    font-family: var(--font-heading);
    font-size: clamp(19px, 3.4vw, 25px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
}
.brand-sub {
    font-size: clamp(10px, 1.7vw, 13px);
    font-weight: 300;
    opacity: 0.78;
    letter-spacing: 0.02em;
}

/* --- Правая часть верхней строки --- */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: flex-end;
    margin-left: 24px;
}

/* --- Кнопка «Услуги» (бывший каталог) --- */
.catalog-wrapper { position: relative; flex-shrink: 0; }
.catalog-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s var(--ease-premium);
    font-family: inherit;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}
.catalog-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}
.catalog-btn:hover::before { left: 100%; }
.catalog-btn:hover {
    background: rgba(255, 255, 255, 0.20);
    border-color: rgba(255, 255, 255, 0.30);
    transform: translateY(-1px);
}
.catalog-btn svg {
    width: 18px; height: 18px; fill: #fff;
    transition: transform 0.4s var(--ease-bounce);
}
.catalog-btn:hover svg { transform: rotate(90deg); }

/* --- Выпадашки: общий каркас --- */
.catalog-dropdown,
.more-dropdown-content,
.burger-dropdown {
    position: absolute;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(74, 15, 36, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.98);
    transition: all 0.3s var(--ease-premium);
    z-index: 1001;
    padding: 8px 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.catalog-dropdown { top: calc(100% + 10px); left: 0; min-width: 250px; }
.catalog-dropdown.show,
.more-dropdown-content.show,
.burger-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.catalog-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: var(--ink);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    position: relative;
    transition: all 0.2s var(--ease-premium);
}
.catalog-dropdown a i {
    width: 20px;
    color: var(--ice-teal);
    transition: transform 0.3s var(--ease-bounce);
}
.catalog-dropdown a::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 0;
    background: var(--ice-berry);
    border-radius: 0 4px 4px 0;
    transition: height 0.2s var(--ease-premium);
}
.catalog-dropdown a:hover {
    background: #FBF7F4;
    color: var(--ice-berry);
    padding-left: 24px;
}
.catalog-dropdown a:hover::before { height: 60%; }
.catalog-dropdown a:hover i { transform: scale(1.2); }

/* --- Поиск --- */
.search-form { flex: 1; max-width: 380px; }
.search-wrapper {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.3s var(--ease-premium);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid transparent;
}
.search-wrapper:focus-within {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(114, 186, 169, 0.22);
    border-color: var(--ice-cyan);
    background: #fff;
}
.search-wrapper input {
    flex: 1;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    background: transparent;
    font-family: inherit;
    color: var(--ink);
    min-width: 0;
}
.search-wrapper input::placeholder { color: #8A6A78; }
.search-wrapper button {
    background: transparent;
    border: none;
    padding: 0 18px;
    color: var(--ice-navy);
    font-weight: 600;
    cursor: pointer;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 14px;
}
.search-wrapper button:hover { background: rgba(114, 186, 169, 0.10); color: var(--ice-teal); }

/* --- Иконки пользователя --- */
.user-icons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.icon-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    padding: 8px 12px;
    position: relative;
    border-radius: 10px;
    transition: all 0.3s var(--ease-premium);
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
}
.icon-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
    transform: translateY(-1px);
}
.icon-btn i { font-size: 18px; transition: transform 0.3s var(--ease-bounce); }
.icon-btn:hover i { transform: scale(1.12); }
.cart-badge {
    position: absolute;
    top: 2px; right: 4px;
    background: var(--ice-berry);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* --- Профиль --- */
.user-profile { position: relative; }
.profile-actions { display: flex; align-items: center; }
.profile-dropdown { position: relative; }
.profile-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.90);
    font-size: 13.5px;
    font-weight: 500;
    padding: 9px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s var(--ease-premium);
    white-space: nowrap;
}
.profile-name:hover { color: #fff; background: rgba(255, 255, 255, 0.10); }
.profile-name i { font-size: 10px; opacity: 0.7; }
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 210px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(74, 15, 36, 0.18);
    padding: 8px 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.98);
    transition: all 0.3s var(--ease-premium);
    z-index: 1001;
}
.profile-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.dropdown-menu a i { width: 18px; color: var(--ice-teal); }
.dropdown-menu a:hover { background: #FBF7F4; color: var(--ice-berry); padding-left: 24px; }
.dropdown-menu a.logout { color: var(--ice-berry); }
.dropdown-menu a.logout:hover { background: #F5E0E5; }

/* --- Бургер --- */
.burger-menu { display: none; position: relative; }
.burger-btn {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    font-family: inherit;
    transition: background 0.2s ease;
    align-items: center;
    justify-content: center;
}
.burger-btn:hover { background: rgba(255, 255, 255, 0.18); }
.burger-dropdown {
    top: calc(100% + 10px);
    right: 0;
    min-width: 240px;
}
.burger-dropdown a {
    display: block;
    padding: 12px 20px;
    color: var(--ink);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.burger-dropdown a:hover { background: #FBF7F4; color: var(--ice-berry); padding-left: 24px; }
.burger-dropdown a.burger-logout-link { color: var(--ice-berry); border-top: 1px solid var(--border); margin-top: 6px; padding-top: 14px; }

/* ---- НИЖНЯЯ СТРОКА (50px) ---- */
.header-bottom {
    height: 50px;
    background: rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.header-bottom .container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}
.bottom-nav ul {
    display: flex;
    list-style: none;
    gap: 0;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.bottom-nav li { position: relative; }
.bottom-nav a,
.bottom-nav .more-btn {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s var(--ease-premium);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    text-shadow: 0 1px 6px rgba(46, 8, 23, 0.7);
}
.bottom-nav a::before,
.bottom-nav .more-btn::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--ice-cyan);
    transition: all 0.3s var(--ease-premium);
    transform: translateX(-50%);
}
.bottom-nav a:hover,
.bottom-nav .more-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.bottom-nav a:hover::before,
.bottom-nav .more-btn:hover::before { width: 60%; }
.more-btn i { font-size: 11px; transition: transform 0.4s var(--ease-bounce); }
.more-btn:hover i { transform: rotate(180deg); }
.more-dropdown-content {
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.98);
    min-width: 200px;
}
.more-dropdown-content.show { transform: translateX(-50%) translateY(0) scale(1); }
.more-dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: var(--ink);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-shadow: none;
}
.more-dropdown-content a::before { content: none; }
.more-dropdown-content a:hover { background: #FBF7F4; color: var(--ice-berry); padding-left: 24px; }

/* ==================== ОСНОВНАЯ ОБЛАСТЬ ==================== */
.oz-main {
    min-height: calc(100vh - 400px);
    padding-bottom: 80px;
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    max-width: 1240px;
    margin: 36px auto 60px;
    padding: 0 24px;
}
.hero-card {
    position: relative;
    border-radius: 32px;
    padding: 72px 56px 64px;
    overflow: hidden;
    background:
        radial-gradient(120% 100% at 85% 5%, rgba(114, 186, 169, 0.22), transparent 55%),
        radial-gradient(90% 90% at 5% 95%, rgba(174, 36, 72, 0.18), transparent 60%),
        linear-gradient(135deg, rgba(110, 26, 55, 0.94) 0%, rgba(46, 8, 23, 0.96) 100%);
    border: 1px solid rgba(213, 231, 181, 0.18);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 40px 80px -40px rgba(0, 0, 0, 0.75),
        0 12px 32px -18px rgba(114, 186, 169, 0.35);
    color: #fff;
}
.hero-card::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--ice-cyan) 40%, var(--ice-berry) 60%, transparent);
    box-shadow: 0 0 24px rgba(114, 186, 169, 0.7);
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 18px 7px 8px;
    border-radius: var(--radius-pill);
    background: rgba(114, 186, 169, 0.14);
    border: 1px solid rgba(114, 186, 169, 0.35);
    color: var(--ice-frost);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 28px;
}
.hero-badge i {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ice-cyan), var(--ice-berry));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    line-height: 1.06;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
    color: #fff;
}
.hero-title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--ice-cyan) 0%, var(--ice-frost) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.65;
    color: rgba(240, 228, 232, 0.85);
    max-width: 640px;
    margin-bottom: 36px;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s var(--ease-premium);
}
.hero-btn--primary {
    background: linear-gradient(135deg, var(--ice-cyan) 0%, var(--ice-teal) 100%);
    color: #fff;
    box-shadow: 0 14px 32px -14px rgba(114, 186, 169, 0.7);
}
.hero-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -16px rgba(114, 186, 169, 0.85);
}
.hero-btn--ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.hero-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ==================== СЕКЦИИ ==================== */
.section { max-width: 1240px; margin: 0 auto 72px; padding: 0 24px; }
.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}
.section-head h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    color: var(--ice-navy);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
html[data-theme="dark"] .section-head h2 { color: var(--ice-frost); }
.section-head p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* ==================== ТРИ ПРОДУКТА ==================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 36px 30px 32px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s var(--ease-premium), box-shadow 0.25s var(--ease-premium);
    overflow: hidden;
}
html[data-theme="dark"] .product-card {
    background: rgba(42, 15, 26, 0.72);
    border-color: rgba(213, 231, 181, 0.14);
    color: var(--ink);
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ice-cyan), var(--ice-berry));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-premium);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.product-card:hover::before { transform: scaleX(1); }

.product-icon {
    width: 60px; height: 60px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 22px;
    box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.4);
}
.product-icon--sites { background: linear-gradient(135deg, var(--ice-cyan), var(--ice-teal)); }
.product-icon--games { background: linear-gradient(135deg, var(--ice-berry), var(--ice-berry-dark)); }
.product-icon--apps  { background: linear-gradient(135deg, var(--ice-gold), #8FB56C); }

.product-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--ice-navy);
    margin-bottom: 10px;
}
html[data-theme="dark"] .product-title { color: var(--ice-frost); }
.product-desc {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 22px;
    flex-grow: 1;
}
.product-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ice-teal);
    font-weight: 600;
    font-size: 0.92rem;
    transition: gap 0.2s var(--ease-premium);
}
html[data-theme="dark"] .product-arrow { color: var(--ice-cyan); }
.product-card:hover .product-arrow { gap: 14px; }

/* ==================== УСЛУГИ ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.service-card {
    position: relative;
    padding: 28px 26px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease-premium);
}
html[data-theme="dark"] .service-card {
    background: rgba(42, 15, 26, 0.72);
    border-color: rgba(213, 231, 181, 0.14);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.service-icon {
    display: inline-flex;
    width: 50px; height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ice-teal), var(--ice-navy));
    color: #fff;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 18px;
}
.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--ice-navy);
    margin-bottom: 8px;
}
html[data-theme="dark"] .service-card h3 { color: var(--ice-frost); }
.service-card p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 16px;
}
.service-price {
    font-weight: 700;
    color: var(--ice-berry);
    font-size: 0.95rem;
}
html[data-theme="dark"] .service-price { color: var(--ice-berry); }

/* ==================== ПОРТФОЛИО ==================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}
.portfolio-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s var(--ease-premium), box-shadow 0.25s var(--ease-premium);
}
html[data-theme="dark"] .portfolio-card {
    background: rgba(42, 15, 26, 0.72);
    border-color: rgba(213, 231, 181, 0.14);
}
.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.portfolio-cover {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--ice-navy), var(--ice-teal));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 3rem;
    overflow: hidden;
    position: relative;
}
.portfolio-cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-premium);
}
.portfolio-card:hover .portfolio-cover img { transform: scale(1.05); }
.portfolio-body { padding: 22px 24px 26px; }
.portfolio-cat {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ice-teal);
    font-weight: 700;
    margin-bottom: 8px;
}
.portfolio-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--ice-navy);
    margin-bottom: 8px;
    line-height: 1.3;
}
html[data-theme="dark"] .portfolio-card h3 { color: var(--ice-frost); }
.portfolio-card p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

/* ==================== ИГРЫ ==================== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}
.game-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s var(--ease-premium), box-shadow 0.25s var(--ease-premium);
}
html[data-theme="dark"] .game-card {
    background: rgba(42, 15, 26, 0.72);
    border-color: rgba(213, 231, 181, 0.14);
}
.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.game-cover {
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #6E1A37, var(--ice-navy-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(213, 231, 181, 0.5);
    overflow: hidden;
}
.game-cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-premium);
}
.game-card:hover .game-cover img { transform: scale(1.05); }
.game-body { padding: 18px 20px 22px; }
.game-genre {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--ice-berry);
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}
.game-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--ice-navy);
    margin-bottom: 8px;
    line-height: 1.25;
}
html[data-theme="dark"] .game-card h3 { color: var(--ice-frost); }

/* ==================== CTA ==================== */
.cta-block {
    max-width: 1240px;
    margin: 72px auto 40px;
    padding: 0 24px;
}
.cta-card {
    position: relative;
    padding: 56px 48px;
    border-radius: 30px;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(120% 100% at 20% 10%, rgba(114, 186, 169, 0.30), transparent 55%),
        radial-gradient(120% 100% at 80% 90%, rgba(174, 36, 72, 0.28), transparent 55%),
        linear-gradient(135deg, var(--ice-navy) 0%, var(--ice-navy-dark) 100%);
    border: 1px solid rgba(213, 231, 181, 0.22);
    box-shadow: 0 32px 70px -34px rgba(0, 0, 0, 0.75);
    overflow: hidden;
}
.cta-card::before {
    content: '';
    position: absolute;
    top: 0; left: 12%; right: 12%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--ice-cyan), var(--ice-berry), transparent);
    box-shadow: 0 0 22px rgba(114, 186, 169, 0.6);
}
.cta-card h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    margin-bottom: 14px;
}
.cta-card p {
    color: rgba(240, 228, 232, 0.85);
    max-width: 620px;
    margin: 0 auto 30px;
    font-size: 1rem;
    line-height: 1.65;
}
.cta-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ==================== ФУТЕР ==================== */
.oz-footer {
    background: linear-gradient(180deg, #3A0A1C 0%, #1F0612 100%);
    color: #C9A9B5;
    padding: 60px 0 26px;
    margin-top: auto;
    position: relative;
}
.oz-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(114, 186, 169, 0.5), transparent);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(201, 169, 181, 0.14);
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #F0E4E8;
    margin-bottom: 16px;
}
.footer-logo i { color: var(--ice-cyan); }
.footer-desc {
    color: #B89AA6;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 320px;
}
.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ice-cyan);
    margin-bottom: 20px;
}
.footer-links, .footer-contacts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a, .footer-contacts a {
    color: #C9A9B5;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-links a:hover, .footer-contacts a:hover { color: var(--ice-cyan); }
.footer-contacts li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: #C9A9B5;
}
.footer-contacts i {
    color: var(--ice-cyan);
    width: 16px;
    margin-top: 3px;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 26px;
    font-size: 0.82rem;
    color: #8A6A78;
}
.footer-bottom a {
    color: var(--ice-cyan);
    text-decoration: none;
}
.footer-bottom a:hover { text-decoration: underline; }

/* ==================== АДАПТИВ ==================== */
@media (max-width: 1100px) {
    .header-top .container,
    .header-bottom .container { padding: 0 18px; }
    .search-form { max-width: 300px; }
    .catalog-btn span { display: none; }
    .catalog-btn { padding: 10px 12px; }
}
@media (max-width: 992px) {
    /* Нижнюю ленту и поиск скрываем, уходим в бургер */
    .header-bottom { display: none; }
    .search-form { display: none; }
    .header-catalog-btn { display: none; }
    .burger-menu { display: block; margin-left: auto; }
    .burger-btn { display: inline-flex; align-items: center; justify-content: center; }

    body { padding-top: 95px; }

    .product-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 640px) {
    .header-top { height: 78px; }
    .brand-text { display: none; }
    .brand .logo img { height: 46px; max-height: 46px; }

    body { padding-top: 78px; }

    .hero-card { padding: 48px 24px 44px; border-radius: 24px; }
    .product-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .games-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-card { padding: 42px 22px; }
}

/* ============================================================
   Live2D Widget — аниме-компаньон
   ============================================================ */
#live2d-widget {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 9998;
    pointer-events: auto;
    cursor: grab;
    filter: drop-shadow(-8px 12px 28px rgba(110, 26, 55, 0.35));
}
#live2d-widget:active { cursor: grabbing; }

#live2d-widget canvas {
    border-radius: 18px 0 0 0;
    background: transparent !important;
}

#live2d-widget:hover {
    filter: drop-shadow(-10px 16px 36px rgba(174, 36, 72, 0.5));
}

/* Кнопка «спрятать/показать» */
.live2d-toggle {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 9999;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid rgba(213, 231, 181, 0.55);
    background: linear-gradient(135deg, #6E1A37, #AE2448);
    color: #D5E7B5;
    cursor: pointer;
    display: none; /* показываем из JS, если виджет загрузился */
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 6px 18px -6px rgba(110, 26, 55, 0.6);
    transition: transform 0.2s ease, background 0.2s ease;
}
.live2d-toggle:hover {
    background: linear-gradient(135deg, #AE2448, #7E1632);
    transform: scale(1.08);
}
body.live2d-hidden #live2d-widget { display: none; }

@media (max-width: 768px) {
    #live2d-widget {
        transform: scale(0.7);
        transform-origin: right bottom;
    }
    .live2d-toggle { bottom: 8px; right: 8px; }
}