:root {
    /* Мягкие акценты глаз */
    --accent-red: #b34a4a;
    --accent-red-soft: #8f3a3a;
    --accent-blue: #4a7fae;
    --accent-blue-soft: #3b668a;

    /* Тёплая тёмная палитра */
    --bg-main: #151316;
    --bg-layer: #1b181c;
    --bg-panel: #221f23;
    --bg-panel-soft: #262229;
    --bg-highlight: #2c252e;

    --text-main: #e7e0d9;
    --text-soft: #c9c0b8;
    --text-muted: #9a9188;

    --border-soft: rgba(255, 255, 255, 0.06);
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.55);

    --radius-large: 18px;
    --radius-medium: 12px;
    --radius-small: 8px;

    --transition-soft: 220ms ease-out;
    --blur-soft: 18px;
}


/* ============================================================
   БАЗОВЫЕ СТИЛИ
   ============================================================ */

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

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    max-width: 100%;
    overflow-x: hidden;

    background: var(--bg-main);
    color: var(--text-main);

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

body {
    min-height: 100vh;
    position: relative;

    display: flex;
    flex-direction: column;
}


/* ============================================================
   ФОН
   ============================================================ */

.background-layer {
    position: fixed;
    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(179, 74, 74, 0.18),
            transparent 55%
        ),
        radial-gradient(
            circle at 85% 20%,
            rgba(74, 127, 174, 0.18),
            transparent 55%
        ),
        radial-gradient(
            circle at 50% 80%,
            rgba(255, 230, 200, 0.08),
            transparent 60%
        ),
        linear-gradient(
            135deg,
            #141217,
            #18151a 40%,
            #1c181f 70%,
            #17141a
        );

    z-index: -2;
}

.background-layer::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        radial-gradient(
            circle at 10% 90%,
            rgba(255, 255, 255, 0.03),
            transparent 40%
        ),
        radial-gradient(
            circle at 90% 70%,
            rgba(255, 255, 255, 0.02),
            transparent 40%
        );

    opacity: 0.9;
    mix-blend-mode: soft-light;
}


/* ============================================================
   ШАПКА
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;

    padding: 10px 32px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    backdrop-filter: blur(16px);

    background:
        linear-gradient(
            to bottom,
            rgba(10, 8, 12, 0.9),
            rgba(10, 8, 12, 0.75)
        );

    border-bottom: 1px solid var(--border-soft);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    position: relative;

    width: 18px;
    height: 18px;

    border-radius: 999px;

    background:
        radial-gradient(
            circle at 30% 30%,
            var(--accent-red),
            var(--accent-red-soft)
        );
}

.logo-mark::after {
    content: "";

    position: absolute;
    inset: 3px;

    border-radius: inherit;

    border: 2px solid rgba(74, 127, 174, 0.7);

    opacity: 0.7;
}

.logo-text {
    font-size: 0.9rem;
    font-weight: 600;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: var(--text-soft);
}

.nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-list {
    display: flex;
    gap: 18px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.nav-list a {
    display: block;

    padding: 6px 10px;

    border-radius: 999px;

    color: var(--text-muted);
    text-decoration: none;

    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;

    transition:
        background-color var(--transition-soft),
        color var(--transition-soft),
        transform var(--transition-soft);
}

.nav-list a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);

    transform: translateY(-1px);
}

.nav-toggle {
    display: none;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 4px;

    background: none;
    border: none;

    padding: 6px;

    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;

    background: var(--text-soft);

    border-radius: 999px;
}


/* ============================================================
   ОСНОВНОЙ КОНТЕНТ
   ============================================================ */

main {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
    padding: 32px 32px 40px;

    flex: 1;
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
    position: relative;

    width: 100%;

    margin-top: 24px;

    padding: 28px 24px 32px;

    border-radius: 24px;

    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(179, 74, 74, 0.12),
            transparent 55%
        ),
        radial-gradient(
            circle at 100% 0%,
            rgba(74, 127, 174, 0.12),
            transparent 55%
        ),
        linear-gradient(
            135deg,
            rgba(24, 20, 26, 0.96),
            rgba(18, 15, 21, 0.98)
        );

    box-shadow: var(--shadow-soft);

    overflow: hidden;
}

.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image: url("../assets/noise.png");

    opacity: 0.12;
    mix-blend-mode: soft-light;

    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: none;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 40px;

    margin: 0;
}

.hero-text {
    flex: 1 1 auto;

    width: auto;
    min-width: 0;
}

.hero-subtitle {
    margin: 0 0 8px;

    color: var(--text-muted);

    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-title {
    margin: 0 0 12px;

    font-size: 2.4rem;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.hero-description {
    margin: 0 0 18px;

    color: var(--text-soft);

    font-size: 0.98rem;
    line-height: 1.6;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 18px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    padding: 6px 10px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.03);

    color: var(--text-muted);

    font-size: 0.8rem;
    line-height: 1.4;
}

.tag-dot {
    width: 8px;
    height: 8px;

    flex: 0 0 auto;

    border-radius: 999px;
}

.tag-dot-red {
    background: var(--accent-red);
}

.tag-dot-blue {
    background: var(--accent-blue);
}


/* ============================================================
   NOW PLAYING
   ============================================================ */

.hero-now-playing {
    width: 100%;
    min-width: 0;

    margin-top: 10px;
    padding: 10px 12px;

    border-radius: var(--radius-medium);

    background: rgba(12, 10, 14, 0.85);

    border: 1px solid rgba(255, 255, 255, 0.04);

    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;

    align-items: center;

    gap: 10px;
}

.now-playing-label {
    min-width: 0;

    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: var(--text-muted);
}

.now-playing-track {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 6px;

    font-size: 0.9rem;

    color: var(--text-soft);
}

.now-playing-track .note {
    color: var(--accent-blue-soft);
}

.track-select {
    width: 100%;
    min-width: 0;
    max-width: 100%;

    padding: 4px 8px;

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);

    color: var(--text-soft);

    font-size: 0.85rem;

    cursor: pointer;

    transition:
        background-color var(--transition-soft);
}

.track-select:hover {
    background: rgba(255, 255, 255, 0.06);
}

.play-button {
    width: 32px;
    height: 32px;

    flex: 0 0 auto;

    padding: 0;

    border-radius: 50%;

    background: none;
    border: 1px solid rgba(255, 255, 255, 0.08);

    color: var(--text-soft);

    font-size: 1rem;

    cursor: pointer;

    transition:
        background-color var(--transition-soft),
        transform var(--transition-soft);
}

.play-button:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: scale(1.05);
}

.volume-slider {
    width: 80px;
    max-width: 100%;
    height: 4px;

    cursor: pointer;

    accent-color: var(--accent-blue);

    background: rgba(255, 255, 255, 0.08);

    border-radius: 4px;
}

.now-playing-visual {
    display: flex;
    align-items: flex-end;

    gap: 3px;

    height: 16px;
}

.now-playing-visual .bar {
    width: 3px;

    border-radius: 999px;

    background:
        linear-gradient(
            to top,
            rgba(179, 74, 74, 0.7),
            rgba(74, 127, 174, 0.7)
        );

    opacity: 0.7;

    animation: lofi-bars 1.8s ease-in-out infinite;
}

.now-playing-visual .bar:nth-child(2) {
    animation-delay: 0.2s;
}

.now-playing-visual .bar:nth-child(3) {
    animation-delay: 0.4s;
}

.now-playing-visual .bar:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes lofi-bars {
    0%,
    100% {
        height: 4px;
    }

    50% {
        height: 14px;
    }
}


/* ============================================================
   АВАТАР
   ============================================================ */

.hero-avatar {
    flex: 0 1 320px;

    width: 320px;
    max-width: 320px;

    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 10px;

    margin-left: auto;
}

.avatar-frame {
    position: relative;

    width: 100%;
    max-width: 320px;

    padding: 10px;

    border-radius: 22px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(179, 74, 74, 0.25),
            transparent 60%
        ),
        radial-gradient(
            circle at 80% 0%,
            rgba(74, 127, 174, 0.25),
            transparent 60%
        ),
        linear-gradient(
            145deg,
            #1f1a22,
            #151219
        );

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.7);
}

.avatar-image {
    display: block;

    width: 100%;
    height: auto;

    max-height: 320px;

    object-fit: cover;

    border-radius: 18px;
}

.avatar-overlay {
    position: absolute;
    inset: 0;

    pointer-events: none;
}

.avatar-eye {
    position: absolute;

    width: 16px;
    height: 16px;

    border-radius: 999px;

    filter: blur(4px);
    opacity: 0.7;
}

.avatar-eye-red {
    top: 40%;
    left: 38%;

    background: var(--accent-red);
}

.avatar-eye-blue {
    top: 40%;
    left: 52%;

    background: var(--accent-blue);
}

.avatar-caption {
    width: 100%;
    max-width: 320px;

    margin: 0;

    color: var(--text-muted);

    font-size: 0.85rem;
    line-height: 1.5;

    text-align: center;
}


/* ============================================================
   ДЕКОР HERO
   ============================================================ */

.hero-decor {
    position: relative;
    z-index: 1;

    width: 100%;

    margin-top: 24px;

    display: grid;
    grid-template-columns: 1.4fr 1fr;

    gap: 18px;
}

.decor-pouf,
.decor-blanket,
.decor-cup,
.decor-plant,
.decor-window {
    position: relative;

    min-width: 0;

    padding: 10px 12px;

    border-radius: var(--radius-medium);

    background: rgba(10, 8, 12, 0.85);

    border: 1px solid rgba(255, 255, 255, 0.03);

    color: var(--text-muted);

    font-size: 0.8rem;

    overflow: hidden;
}

.decor-pouf::before {
    content: "Мягкий пуфик";

    display: block;

    margin-bottom: 4px;

    color: var(--text-soft);

    font-size: 0.7rem;
}

.decor-blanket::before {
    content: "Тёплый плед";

    display: block;

    margin-bottom: 4px;

    color: var(--text-soft);

    font-size: 0.7rem;
}

.decor-cup::before {
    content: "Чашка с горячим шоколадом и маршмеллоу";

    display: block;

    margin-bottom: 4px;

    color: var(--text-soft);

    font-size: 0.7rem;
}

.decor-plant::before {
    content: "Маленький Бонсай с сакурой";

    display: block;

    margin-bottom: 4px;

    color: var(--text-soft);

    font-size: 0.7rem;
}

.decor-window {
    grid-column: 1 / -1;

    margin-top: 4px;

    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(179, 74, 74, 0.18),
            transparent 60%
        ),
        radial-gradient(
            circle at 90% 0%,
            rgba(74, 127, 174, 0.18),
            transparent 60%
        ),
        linear-gradient(
            135deg,
            #14121a,
            #18141f
        );
}

.decor-window::before {
    content: "night window";

    display: block;

    margin-bottom: 4px;

    color: var(--text-soft);

    font-size: 0.7rem;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.window-moon {
    width: 26px;
    height: 26px;

    margin-bottom: 6px;

    border-radius: 999px;

    background:
        radial-gradient(
            circle at 30% 30%,
            #f5e7cf,
            #c9b79a
        );

    box-shadow:
        0 0 18px rgba(245, 231, 207, 0.35);
}

.window-stars {
    position: relative;

    height: 26px;

    margin-bottom: 6px;
}

.window-stars::before,
.window-stars::after {
    content: "";

    position: absolute;

    width: 2px;
    height: 2px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.7);
}

.window-stars::before {
    top: 4px;
    left: 40%;
}

.window-stars::after {
    top: 12px;
    left: 70%;
}

.window-rain {
    position: relative;

    height: 26px;
}

.window-rain::before,
.window-rain::after {
    content: "";

    position: absolute;

    width: 1px;
    height: 12px;

    border-radius: 999px;

    background: rgba(74, 127, 174, 0.4);
}

.window-rain::before {
    left: 20%;
    top: 4px;
}

.window-rain::after {
    left: 60%;
    top: 8px;
}


/* ============================================================
   СЕКЦИИ
   ============================================================ */

.section {
    position: relative;

    width: 100%;

    margin-top: 40px;

    padding: 24px 22px 26px;

    border-radius: var(--radius-large);

    background:
        linear-gradient(
            145deg,
            rgba(24, 20, 26, 0.96),
            rgba(18, 15, 21, 0.98)
        );

    box-shadow: var(--shadow-soft);

    overflow: hidden;
}

.section::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image: url("../assets/noise.png");

    opacity: 0.08;
    mix-blend-mode: soft-light;

    pointer-events: none;
}

.section-header {
    position: relative;
    z-index: 1;

    margin-bottom: 18px;
}

.section-title {
    margin: 0 0 6px;

    font-size: 1.4rem;
    line-height: 1.3;
}

.section-description {
    max-width: 620px;

    margin: 0;

    color: var(--text-soft);

    font-size: 0.95rem;
    line-height: 1.6;
}


/* ============================================================
   СЕРВИСЫ
   ============================================================ */

.services-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 24px;

    width: 100%;

    margin-top: 20px;
}

.services-section .service-card {
    position: relative;

    width: 100%;
    min-width: 0;
    min-height: 220px;

    padding: 32px;

    display: flex;
    flex-direction: column;

    border-radius: 18px;

    border: 1px solid rgba(255, 255, 255, 0.07);

    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(179, 74, 74, 0.09),
            transparent 55%
        ),
        radial-gradient(
            circle at 100% 100%,
            rgba(74, 127, 174, 0.07),
            transparent 55%
        ),
        rgba(31, 27, 33, 0.92);

    color: var(--text-main);

    text-decoration: none;

    overflow: hidden;

    cursor: pointer;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.28);

    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease,
        background 220ms ease;
}

.services-section .service-card::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(179, 74, 74, 0.10),
            transparent 35%,
            transparent 65%,
            rgba(74, 127, 174, 0.08)
        );

    opacity: 0;

    transition: opacity 220ms ease;

    pointer-events: none;
}

.services-section .service-card::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            var(--accent-red),
            var(--accent-blue)
        );

    opacity: 0.35;

    transform: scaleX(0.25);
    transform-origin: left;

    transition:
        transform 300ms ease,
        opacity 300ms ease;
}

.services-section .service-card:hover {
    transform: translateY(-5px);

    border-color: rgba(179, 74, 74, 0.28);

    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(179, 74, 74, 0.15),
            transparent 55%
        ),
        radial-gradient(
            circle at 100% 100%,
            rgba(74, 127, 174, 0.11),
            transparent 55%
        ),
        rgba(35, 30, 38, 0.96);

    box-shadow:
        0 20px 42px rgba(0, 0, 0, 0.48),
        0 0 24px rgba(179, 74, 74, 0.06);
}

.services-section .service-card:hover::before {
    opacity: 1;
}

.services-section .service-card:hover::after {
    opacity: 0.8;

    transform: scaleX(1);
}

.service-header {
    position: relative;
    z-index: 1;

    min-width: 0;

    display: flex;
    align-items: center;

    gap: 14px;

    margin-bottom: 16px;
}

.service-icon {
    position: relative;

    flex: 0 0 auto;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    background:
        linear-gradient(
            145deg,
            rgba(179, 74, 74, 0.18),
            rgba(74, 127, 174, 0.12)
        );

    color: var(--text-soft);

    font-size: 1.35rem;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    transition:
        transform 220ms ease,
        border-color 220ms ease,
        background 220ms ease,
        box-shadow 220ms ease;
}

.service-icon::before {
    content: "";

    position: absolute;
    inset: 5px;

    border-radius: 10px;

    border: 1px solid rgba(255, 255, 255, 0.035);

    pointer-events: none;
}

.service-card:hover .service-icon {
    transform: scale(1.06) rotate(-2deg);

    border-color: rgba(179, 74, 74, 0.32);

    background:
        linear-gradient(
            145deg,
            rgba(179, 74, 74, 0.26),
            rgba(74, 127, 174, 0.18)
        );

    box-shadow:
        0 0 18px rgba(179, 74, 74, 0.10);
}

.service-name {
    position: relative;
    z-index: 1;

    min-width: 0;

    color: var(--text-main);

    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;

    letter-spacing: 0.01em;

    overflow-wrap: anywhere;
}

.service-description {
    position: relative;
    z-index: 1;

    min-width: 0;

    max-width: 620px;

    color: var(--text-muted);

    font-size: 0.88rem;
    line-height: 1.65;

    flex: 1;

    overflow-wrap: anywhere;
}

.service-link-text {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;

    gap: 7px;

    margin-top: 20px;

    color: var(--accent-blue-soft);

    font-size: 0.78rem;

    opacity: 0.8;

    transition:
        color 220ms ease,
        gap 220ms ease,
        opacity 220ms ease;
}

.service-link-text::after {
    content: "→";

    font-size: 1rem;

    transition: transform 220ms ease;
}

.service-card:hover .service-link-text {
    color: var(--accent-blue);

    gap: 10px;

    opacity: 1;
}

.service-card:hover .service-link-text::after {
    transform: translateX(3px);
}

.service-clickable {
    display: block;

    color: inherit;
    text-decoration: none;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;
}

.service-clickable:link,
.service-clickable:visited,
.service-clickable:hover,
.service-clickable:active {
    color: inherit;
    text-decoration: none;
}

.service-clickable .service-name,
.service-clickable .service-description,
.service-clickable .service-link-text {
    color: inherit;
}

/* ============================================================
   КАРТОЧКИ ХРАНИЛИЩА — В СТИЛЕ СЕРВИСОВ
   ============================================================ */

.storage-section .service-card {
    position: relative;

    width: 100%;
    min-width: 0;
    min-height: 220px;

    padding: 32px;

    display: flex;
    flex-direction: column;

    border-radius: 18px;

    border: 1px solid rgba(255, 255, 255, 0.07);

    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(179, 74, 74, 0.09),
            transparent 55%
        ),
        radial-gradient(
            circle at 100% 100%,
            rgba(74, 127, 174, 0.07),
            transparent 55%
        ),
        rgba(31, 27, 33, 0.92);

    color: var(--text-main);

    text-decoration: none;

    overflow: hidden;

    cursor: pointer;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.28);

    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease,
        background 220ms ease;
}


/* Светящаяся внутренняя текстура */

.storage-section .service-card::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(179, 74, 74, 0.10),
            transparent 35%,
            transparent 65%,
            rgba(74, 127, 174, 0.08)
        );

    opacity: 0;

    transition: opacity 220ms ease;

    pointer-events: none;
}


/* Нижняя красно-синяя полоска */

.storage-section .service-card::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            var(--accent-red),
            var(--accent-blue)
        );

    opacity: 0.35;

    transform: scaleX(0.25);
    transform-origin: left;

    transition:
        transform 300ms ease,
        opacity 300ms ease;
}


/* Hover */

.storage-section .service-card:hover {
    transform: translateY(-5px);

    border-color: rgba(179, 74, 74, 0.28);

    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(179, 74, 74, 0.15),
            transparent 55%
        ),
        radial-gradient(
            circle at 100% 100%,
            rgba(74, 127, 174, 0.11),
            transparent 55%
        ),
        rgba(35, 30, 38, 0.96);

    box-shadow:
        0 20px 42px rgba(0, 0, 0, 0.48),
        0 0 24px rgba(179, 74, 74, 0.06);
}

.storage-section .service-card:hover::before {
    opacity: 1;
}

.storage-section .service-card:hover::after {
    opacity: 0.8;

    transform: scaleX(1);
}


/* Иконка */

.storage-section .service-icon {
    position: relative;

    flex: 0 0 auto;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    background:
        linear-gradient(
            145deg,
            rgba(179, 74, 74, 0.18),
            rgba(74, 127, 174, 0.12)
        );

    color: var(--text-soft);

    font-size: 1.35rem;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    transition:
        transform 220ms ease,
        border-color 220ms ease,
        background 220ms ease,
        box-shadow 220ms ease;
}

.storage-section .service-icon::before {
    content: "";

    position: absolute;
    inset: 5px;

    border-radius: 10px;

    border: 1px solid rgba(255, 255, 255, 0.035);

    pointer-events: none;
}

.storage-section .service-card:hover .service-icon {
    transform: scale(1.06) rotate(-2deg);

    border-color: rgba(179, 74, 74, 0.32);

    background:
        linear-gradient(
            145deg,
            rgba(179, 74, 74, 0.26),
            rgba(74, 127, 174, 0.18)
        );

    box-shadow:
        0 0 18px rgba(179, 74, 74, 0.10);
}


/* Заголовок */

.storage-section .service-name {
    position: relative;
    z-index: 1;

    min-width: 0;

    color: var(--text-main);

    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;

    letter-spacing: 0.01em;

    overflow-wrap: anywhere;
}


/* Описание */

.storage-section .service-description {
    position: relative;
    z-index: 1;

    min-width: 0;

    max-width: 620px;

    color: var(--text-muted);

    font-size: 0.88rem;
    line-height: 1.65;

    flex: 1;

    overflow-wrap: anywhere;
}


/* Ссылка */

.storage-section .service-link-text {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;

    gap: 7px;

    margin-top: 20px;

    color: var(--accent-blue-soft);

    font-size: 0.78rem;

    opacity: 0.8;

    transition:
        color 220ms ease,
        gap 220ms ease,
        opacity 220ms ease;
}

.storage-section .service-link-text::after {
    content: "→";

    font-size: 1rem;

    transition: transform 220ms ease;
}

.storage-section .service-card:hover .service-link-text {
    color: var(--accent-blue);

    gap: 10px;

    opacity: 1;
}

.storage-section .service-card:hover .service-link-text::after {
    transform: translateX(3px);
}

/* ============================================================
   ГАЛЕРЕЯ
   ============================================================ */

.gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(210px, 1fr)
        );

    gap: 14px;

    margin-top: 18px;
}

.gallery-item {
    position: relative;

    min-width: 0;

    border-radius: var(--radius-medium);

    background: var(--bg-panel);

    border: 1px solid var(--border-soft);

    overflow: hidden;

    cursor: pointer;

    transition:
        transform var(--transition-soft),
        box-shadow var(--transition-soft),
        border-color var(--transition-soft),
        background-color var(--transition-soft);
}

.gallery-image-wrapper {
    position: relative;

    padding: 8px 8px 0;
}

.gallery-image-wrapper img {
    display: block;

    width: 100%;
    max-width: 100%;
    height: auto;

    object-fit: contain;
}

.gallery-caption {
    padding: 8px 10px 10px;

    color: var(--text-soft);

    font-size: 0.8rem;
    line-height: 1.4;
}

.gallery-item:hover {
    transform: translateY(-3px);

    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.7);

    border-color: rgba(179, 74, 74, 0.4);

    background: var(--bg-panel-soft);
}

.gallery-placeholder {
    cursor: default;
}

.gallery-placeholder-inner {
    padding: 18px 14px;

    display: flex;
    flex-direction: column;

    gap: 4px;

    align-items: flex-start;
    justify-content: center;
}

.placeholder-title {
    font-size: 0.9rem;
    color: var(--text-soft);
}

.placeholder-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}


/* ============================================================
   ABOUT
   ============================================================ */

.about-page {
    max-width: 1120px;
}

.about-intro {
    margin: 4px auto 22px;

    padding: 30px 34px;

    border: 1px solid var(--border-soft);
    border-radius: var(--radius-large);

    background:
        linear-gradient(
            135deg,
            rgba(179, 74, 74, 0.10),
            rgba(74, 127, 174, 0.06) 55%,
            rgba(255, 255, 255, 0.025)
        );

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.25);
}

.about-kicker,
.about-card-label {
    margin: 0 0 8px;

    color: var(--accent-red);

    font-size: 0.72rem;

    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.about-intro .section-title {
    margin-bottom: 8px;
}

.about-lead {
    max-width: 720px;

    margin: 0;

    color: var(--text-soft);

    font-size: 1rem;
    line-height: 1.7;
}

.about-profile-card {
    display: grid;

    grid-template-columns:
        150px
        minmax(0, 1fr)
        minmax(240px, 0.75fr);

    gap: 24px;

    align-items: center;

    padding: 24px;
    margin-bottom: 22px;

    border: 1px solid var(--border-soft);
    border-radius: var(--radius-large);

    background: rgba(20, 18, 22, 0.78);

    backdrop-filter: blur(12px);

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.35);
}

.about-avatar-frame {
    width: 142px;
    height: 142px;

    padding: 5px;

    border-radius: 28px;

    border: 1px solid rgba(179, 74, 74, 0.45);

    background:
        linear-gradient(
            145deg,
            rgba(179, 74, 74, 0.28),
            rgba(74, 127, 174, 0.18)
        );

    overflow: hidden;
}

.about-avatar-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 23px;
}

.about-profile-heading {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 4px;

    color: var(--text-muted);

    font-size: 0.78rem;
}

.about-status-dot {
    width: 7px;
    height: 7px;

    flex: 0 0 auto;

    border-radius: 50%;

    background: var(--accent-blue);

    box-shadow:
        0 0 12px rgba(74, 127, 174, 0.8);
}

.about-profile-info h2 {
    margin: 0 0 8px;

    color: var(--text-main);

    font-size: 1.7rem;
}

.about-profile-info h2 span {
    color: var(--accent-red);
    font-weight: 400;
}

.about-profile-info p,
.about-story-copy p,
.about-info-card p,
.about-fen-grid p {
    margin: 0 0 10px;

    color: var(--text-soft);

    font-size: 0.93rem;
    line-height: 1.7;
}

.about-profile-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 12px;
}

.about-profile-meta span,
.about-mini-list span {
    padding: 5px 9px;

    border-radius: 999px;

    border: 1px solid rgba(255, 255, 255, 0.07);

    background: rgba(255, 255, 255, 0.035);

    color: var(--text-muted);

    font-size: 0.76rem;
}

.about-quote {
    margin: 0;

    padding-left: 20px;

    border-left: 2px solid var(--accent-red);

    color: var(--text-soft);

    font-size: 1rem;
    line-height: 1.7;
}

.about-story-card,
.about-info-card,
.about-weird-card,
.about-fen-section,
.about-facts {
    border: 1px solid var(--border-soft);

    border-radius: var(--radius-large);

    background: rgba(20, 18, 22, 0.70);

    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.25);
}

.about-story-card {
    padding: 25px;

    margin-bottom: 22px;
}

.about-story-grid,
.about-fen-grid {
    display: grid;

    grid-template-columns:
        minmax(220px, 0.85fr)
        minmax(0, 1.5fr);

    gap: 35px;

    align-items: start;
}

.about-story-grid h2,
.about-info-card h2,
.about-weird-title h2,
.about-fen-grid h2 {
    margin: 0;

    color: var(--text-main);

    font-size: 1.25rem;
    line-height: 1.35;
}

.about-story-copy p:last-child,
.about-fen-grid p:last-child,
.about-info-card p:last-child {
    margin-bottom: 0;
}

.about-two-columns {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 22px;

    margin-bottom: 22px;
}

.about-info-card {
    padding: 24px;
}

.about-mini-list {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 17px;
}

.about-interest-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 8px;

    margin: 17px 0;
}

.about-interest-grid div {
    display: flex;
    align-items: center;

    gap: 9px;

    padding: 10px 11px;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.035);

    color: var(--text-soft);

    font-size: 0.84rem;
}

.about-interest-grid b {
    font-size: 1rem;
}

.about-weird-card {
    display: grid;

    grid-template-columns:
        0.75fr
        1.5fr;

    gap: 30px;

    padding: 25px;

    margin-bottom: 22px;

    background:
        linear-gradient(
            120deg,
            rgba(179, 74, 74, 0.09),
            rgba(20, 18, 22, 0.75)
        );
}

.about-weird-title h2 {
    margin-top: 3px;
}

.about-weird-list {
    display: grid;
    gap: 10px;
}

.about-weird-list div {
    display: grid;

    grid-template-columns: 28px 1fr;

    gap: 10px;

    align-items: start;

    padding: 10px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.about-weird-list div:last-child {
    border-bottom: 0;
}

.about-weird-list span {
    padding-top: 2px;

    color: var(--accent-blue);

    font-size: 0.72rem;
}

.about-weird-list p {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.88rem;
    line-height: 1.6;
}

.about-fen-section {
    padding: 25px;

    margin-bottom: 22px;

    background:
        linear-gradient(
            120deg,
            rgba(74, 127, 174, 0.08),
            rgba(179, 74, 74, 0.07)
        );
}

.about-fen-grid {
    margin-top: 2px;
}

.about-facts {
    padding: 24px;

    margin-bottom: 28px;
}

.facts-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 10px;

    margin-top: 15px;
}

.fact-card {
    min-height: 95px;

    padding: 15px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border-radius: 14px;

    background: rgba(255, 255, 255, 0.035);

    border: 1px solid rgba(255, 255, 255, 0.055);
}

.fact-card strong {
    color: var(--text-main);

    font-size: 1.25rem;
}

.fact-card span {
    margin-top: 4px;

    color: var(--text-muted);

    font-size: 0.76rem;
}

.about-finale {
    max-width: 820px;

    margin: 0 auto;

    padding: 10px 20px 20px;

    text-align: center;
}

.about-finale span {
    color: var(--text-muted);

    font-size: 0.72rem;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.about-finale p {
    margin: 14px 0 0;

    color: var(--text-soft);

    font-size: 0.95rem;
    line-height: 1.8;
}


/* ============================================================
   ABOUT FENCORE — НА ГЛАВНОЙ
   ============================================================ */

.about-layout {
    width: 100%;

    margin-top: 22px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(280px, 0.85fr);

    gap: 24px;

    align-items: stretch;
}

.about-text {
    min-width: 0;

    padding: 22px 24px;

    border: 1px solid var(--border-soft);
    border-radius: var(--radius-medium);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.025),
            rgba(255, 255, 255, 0.01)
        );

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.18);
}

.about-text p {
    margin: 0 0 14px;

    color: var(--text-soft);

    font-size: 0.95rem;
    line-height: 1.75;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-tech {
    position: relative;

    min-width: 0;

    padding: 20px 20px 22px;

    border-radius: var(--radius-medium);

    border: 1px solid rgba(255, 255, 255, 0.07);

    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(179, 74, 74, 0.12),
            transparent 60%
        ),
        radial-gradient(
            circle at 100% 100%,
            rgba(74, 127, 174, 0.10),
            transparent 60%
        ),
        var(--bg-highlight);

    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.32);

    overflow: hidden;
}

.about-tech::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.025),
            transparent 45%
        );

    pointer-events: none;
}

.about-tech-title {
    position: relative;

    margin: 0 0 14px;

    color: var(--text-main);

    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.4;
}

.tech-grid {
    position: relative;

    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 16px;
}

.tech-pill {
    display: inline-flex;
    align-items: center;

    min-height: 28px;

    padding: 5px 10px;

    border-radius: 999px;

    border: 1px solid rgba(255, 255, 255, 0.07);

    background: rgba(255, 255, 255, 0.045);

    color: var(--text-soft);

    font-size: 0.78rem;
    line-height: 1;

    transition:
        background-color var(--transition-soft),
        border-color var(--transition-soft),
        color var(--transition-soft),
        transform var(--transition-soft);
}

.tech-pill:hover {
    background: rgba(179, 74, 74, 0.10);

    border-color: rgba(179, 74, 74, 0.30);

    color: var(--text-main);

    transform: translateY(-1px);
}

.about-note {
    position: relative;

    padding-top: 13px;

    border-top: 1px solid rgba(255, 255, 255, 0.06);

    color: var(--text-muted);

    font-size: 0.8rem;
    line-height: 1.6;
}


/* ============================================================
   ХРАНИЛИЩЕ
   ============================================================ */

.storage-card {
    color: var(--text-main);
    text-decoration: none;
}

.storage-card:visited,
.storage-card:hover,
.storage-card:active {
    color: var(--text-main);
    text-decoration: none;
}

.storage-card h2 {
    color: var(--text-main);
}

.storage-card p {
    color: var(--text-soft);
}


/* ============================================================
   ГАЛЕРЕЯ — КНОПКА "БОЛЬШЕ"
   ============================================================ */

.gallery-more {
    display: flex;

    justify-content: center;

    margin-top: 22px;
}

.gallery-more-button {
    position: relative;

    min-width: 260px;

    padding: 12px 16px;

    display: flex;
    align-items: center;

    gap: 12px;

    border-radius: 14px;

    border: 1px solid rgba(255, 255, 255, 0.07);

    background:
        radial-gradient(
            circle at 0% 50%,
            rgba(179, 74, 74, 0.10),
            transparent 55%
        ),
        radial-gradient(
            circle at 100% 50%,
            rgba(74, 127, 174, 0.08),
            transparent 55%
        ),
        rgba(255, 255, 255, 0.025);

    color: var(--text-soft);

    text-decoration: none;

    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.20);

    transition:
        transform var(--transition-soft),
        border-color var(--transition-soft),
        background var(--transition-soft),
        box-shadow var(--transition-soft);
}

.gallery-more-icon {
    width: 36px;
    height: 36px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background:
        linear-gradient(
            145deg,
            rgba(179, 74, 74, 0.18),
            rgba(74, 127, 174, 0.13)
        );

    border: 1px solid rgba(255, 255, 255, 0.06);

    color: var(--text-soft);

    font-size: 1rem;

    transition:
        transform var(--transition-soft),
        background var(--transition-soft),
        box-shadow var(--transition-soft);
}

.gallery-more-text {
    display: flex;
    flex-direction: column;

    gap: 2px;

    flex: 1;

    min-width: 0;
}

.gallery-more-text strong {
    color: var(--text-main);

    font-size: 0.88rem;
    font-weight: 500;
}

.gallery-more-text small {
    color: var(--text-muted);

    font-size: 0.75rem;
}

.gallery-more-arrow {
    color: var(--accent-blue-soft);

    font-size: 1.15rem;

    transition:
        transform var(--transition-soft),
        color var(--transition-soft);
}

.gallery-more-button:hover {
    transform: translateY(-3px);

    border-color: rgba(179, 74, 74, 0.25);

    background:
        radial-gradient(
            circle at 0% 50%,
            rgba(179, 74, 74, 0.16),
            transparent 55%
        ),
        radial-gradient(
            circle at 100% 50%,
            rgba(74, 127, 174, 0.12),
            transparent 55%
        ),
        rgba(255, 255, 255, 0.035);

    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.35);
}

.gallery-more-button:hover .gallery-more-icon {
    transform: rotate(8deg) scale(1.05);

    background:
        linear-gradient(
            145deg,
            rgba(179, 74, 74, 0.25),
            rgba(74, 127, 174, 0.18)
        );

    box-shadow:
        0 0 16px rgba(179, 74, 74, 0.10);
}

.gallery-more-button:hover .gallery-more-arrow {
    color: var(--accent-blue);

    transform: translateX(4px);
}


/* ============================================================
   МОДАЛЬНОЕ ОКНО ГАЛЕРЕИ
   ============================================================ */

.image-modal {
    position: fixed;
    inset: 0;

    display: none;
    align-items: center;
    justify-content: center;

    z-index: 40;
}

.image-modal.active {
    display: flex;
}

.image-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(5, 3, 8, 0.85);

    backdrop-filter: blur(var(--blur-soft));
}

.image-modal-content {
    position: relative;
    z-index: 41;

    width: 90%;
    max-width: 900px;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            #1b181f,
            #151219
        );

    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.85);

    border: 1px solid rgba(255, 255, 255, 0.06);

    overflow: hidden;
}

.image-modal-close {
    position: absolute;

    top: 10px;
    right: 12px;

    padding: 4px;

    background: none;
    border: none;

    color: var(--text-soft);

    font-size: 1.4rem;

    cursor: pointer;
}

.image-modal-inner {
    padding: 18px 18px 16px;
}

#modal-image {
    display: block;

    width: 100%;
    max-width: 100%;
    max-height: 480px;

    object-fit: contain;

    border-radius: 16px;

    background: #0c0a0f;
}

.image-modal-controls {
    margin-top: 10px;

    display: flex;
    justify-content: flex-end;

    gap: 8px;
}

.modal-nav-btn {
    padding: 6px 12px;

    border-radius: 999px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    background: rgba(255, 255, 255, 0.02);

    color: var(--text-soft);

    font-size: 0.8rem;

    cursor: pointer;

    transition:
        background-color var(--transition-soft),
        border-color var(--transition-soft),
        transform var(--transition-soft);
}

.modal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.06);

    border-color: rgba(179, 74, 74, 0.5);

    transform: translateY(-1px);
}

.image-modal-caption {
    margin-top: 6px;

    color: var(--text-muted);

    font-size: 0.8rem;
}


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

.site-footer {
    margin-top: 32px;

    padding: 16px 32px 24px;

    border-top: 1px solid var(--border-soft);

    background:
        linear-gradient(
            to top,
            rgba(10, 8, 12, 0.95),
            rgba(10, 8, 12, 0.7)
        );

    backdrop-filter: blur(12px);
}

.footer-inner {
    max-width: 1200px;

    margin: 0 auto;

    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    color: var(--text-soft);

    font-size: 0.9rem;
    font-weight: 500;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-text {
    margin-left: 8px;

    color: var(--text-muted);

    font-size: 0.8rem;
}

.footer-detail {
    color: var(--text-muted);

    font-size: 0.8rem;
}


/* ============================================================
   ПЛАНШЕТЫ
   ============================================================ */

@media (max-width: 900px) {

    main {
        width: 100%;
        max-width: 100%;

        padding: 20px 16px 30px;
    }


    /* --------------------------------------------------------
       HERO — ТЕКСТ СЛЕВА, АВАТАР СПРАВА
       -------------------------------------------------------- */

    .hero {
        margin-top: 12px;

        padding: 24px 20px 26px;

        border-radius: 20px;
    }

    .hero-content {
        display: flex;

        flex-direction: row;

        align-items: flex-start;
        justify-content: space-between;

        gap: 24px;
    }

    .hero-text {
        flex: 1 1 auto;

        width: auto;
        min-width: 0;
    }

    .hero-avatar {
        flex: 0 1 280px;

        width: 280px;
        max-width: 280px;

        margin-left: auto;

        align-items: center;
    }

    .avatar-frame {
        width: 100%;
        max-width: 280px;

        padding: 8px;
    }

    .avatar-image {
        width: 100%;
        height: auto;

        max-height: 320px;

        object-fit: contain;
    }

    .avatar-caption {
        width: 100%;
        max-width: 280px;
    }

    .hero-title {
        font-size: 2rem;

        line-height: 1.2;
    }

    .hero-description {
        font-size: 0.94rem;

        line-height: 1.65;
    }


    /* --------------------------------------------------------
       TAGS
       -------------------------------------------------------- */

    .hero-meta {
        display: flex;
        flex-wrap: wrap;

        align-items: flex-start;

        gap: 8px;
    }

    .hero-tag {
        width: auto;
        max-width: 100%;

        padding: 7px 10px;

        border-radius: 12px;

        line-height: 1.4;
    }


    /* --------------------------------------------------------
       ПЛЕЕР
       -------------------------------------------------------- */

    .hero-now-playing {
        width: 100%;
        min-width: 0;

        display: grid;

        grid-template-columns:
            minmax(0, 1fr)
            auto;

        gap: 9px;

        padding: 11px;
    }

    .now-playing-label {
        grid-column: 1 / -1;
    }

    .track-select {
        width: 100%;
        min-width: 0;

        padding: 7px 9px;

        overflow: hidden;

        text-overflow: ellipsis;
    }

    .volume-slider {
        width: 80px;
        max-width: 100%;
    }


    /* --------------------------------------------------------
       HERO DECOR
       -------------------------------------------------------- */

    .hero-decor {
        grid-template-columns: 1fr 1fr;

        gap: 10px;

        margin-top: 22px;
    }

    .decor-pouf,
    .decor-blanket,
    .decor-cup,
    .decor-plant,
    .decor-window {
        min-width: 0;

        padding: 10px;
    }

    .decor-window {
        grid-column: 1 / -1;
    }


    /* --------------------------------------------------------
       СЕКЦИИ
       -------------------------------------------------------- */

    .section {
        margin-top: 26px;

        padding: 20px 18px 22px;

        border-radius: 18px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .section-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }


    /* --------------------------------------------------------
       ГАЛЕРЕЯ
       -------------------------------------------------------- */

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

        gap: 10px;
    }


    /* --------------------------------------------------------
       ABOUT НА ГЛАВНОЙ
       -------------------------------------------------------- */

    .about-layout {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    /* --------------------------------------------------------
       ABOUT СТРАНИЦА
       -------------------------------------------------------- */

    .about-profile-card {
        grid-template-columns:
            130px
            minmax(0, 1fr);
    }

    .about-avatar-frame {
        width: 122px;
        height: 122px;
    }

    .about-quote {
        grid-column: 2;
    }

    .about-story-grid,
    .about-fen-grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }

    .about-weird-card {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* --------------------------------------------------------
       СЕРВИСЫ
       -------------------------------------------------------- */

    .services-section .services-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .services-section .service-card {
        width: 100%;
        min-width: 0;

        min-height: 190px;

        padding: 24px;
    }
}


/* ============================================================
   МОБИЛЬНАЯ ШАПКА
   ============================================================ */

@media (max-width: 720px) {

    .site-header {
        padding: 8px 16px;
    }

    .nav {
        position: relative;
    }

    .nav-list {
        position: absolute;

        top: calc(100% + 10px);
        right: 0;

        width: min(
            250px,
            calc(100vw - 32px)
        );

        padding: 10px 12px;

        flex-direction: column;

        gap: 8px;

        background: rgba(10, 8, 12, 0.96);

        border-radius: 14px;

        border: 1px solid rgba(255, 255, 255, 0.07);

        box-shadow:
            0 18px 40px rgba(0, 0, 0, 0.8);

        backdrop-filter: blur(18px);

        display: none;
    }

    .nav-list.open {
        display: flex;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-toggle {
        display: flex;
    }
}


/* ============================================================
   ТЕЛЕФОНЫ
   ============================================================ */

@media (max-width: 600px) {

    /* --------------------------------------------------------
       HEADER
       -------------------------------------------------------- */

    .site-header {
        width: 100%;

        padding: 9px 14px;
    }

    .logo {
        gap: 8px;
    }

    .logo-text {
        font-size: 0.82rem;
    }

    .nav-toggle {
        width: 36px;
        height: 36px;

        padding: 7px;

        align-items: center;
        justify-content: center;
    }

    .nav-toggle span {
        width: 20px;
    }

    .nav-list {
        width: min(
            250px,
            calc(100vw - 28px)
        );

        padding: 9px;

        gap: 4px;
    }

    .nav-list a {
        display: block;

        width: 100%;

        padding: 10px 12px;

        font-size: 0.78rem;
    }


    /* --------------------------------------------------------
       MAIN
       -------------------------------------------------------- */

    main {
        padding: 14px 10px 24px;
    }


    /* --------------------------------------------------------
       HERO
       -------------------------------------------------------- */

    .hero {
        margin-top: 8px;

        padding: 20px 15px;

        border-radius: 17px;
    }

    /*
     * Только здесь герой становится вертикальным.
     * На планшете он остаётся горизонтальным.
     */

    .hero-content {
        flex-direction: column;

        align-items: stretch;

        gap: 24px;
    }

    .hero-text {
        width: 100%;
    }

    .hero-avatar {
        width: 100%;
        max-width: 310px;

        margin: 0 auto;

        align-self: center;
    }

    .avatar-frame {
        width: 100%;
        max-width: 310px;

        padding: 7px;

        border-radius: 18px;
    }

    .avatar-image {
        width: 100%;
        height: auto;

        max-height: none;

        object-fit: contain;

        border-radius: 14px;
    }

    .avatar-caption {
        max-width: 310px;

        font-size: 0.76rem;

        line-height: 1.55;
    }

    .hero-subtitle {
        font-size: 0.72rem;

        line-height: 1.5;

        letter-spacing: 0.07em;
    }

    .hero-title {
        font-size: 1.65rem;

        line-height: 1.18;

        margin-bottom: 10px;
    }

    .hero-description {
        font-size: 0.88rem;

        line-height: 1.6;

        margin-bottom: 15px;
    }


    /* --------------------------------------------------------
       TAGS
       -------------------------------------------------------- */

    .hero-meta {
        flex-direction: column;

        align-items: stretch;

        gap: 7px;

        margin-bottom: 15px;
    }

    .hero-tag {
        width: 100%;

        font-size: 0.72rem;

        line-height: 1.45;

        padding: 7px 9px;
    }


    /* --------------------------------------------------------
       ПЛЕЕР
       -------------------------------------------------------- */

    .hero-now-playing {
        grid-template-columns:
            minmax(0, 1fr)
            34px;

        gap: 8px;

        padding: 10px;

        border-radius: 12px;
    }

    .now-playing-label {
        font-size: 0.68rem;
    }

    .track-select {
        width: 100%;
        min-width: 0;

        font-size: 0.76rem;

        padding: 7px;

        overflow: hidden;

        text-overflow: ellipsis;
    }

    .play-button {
        width: 34px;
        height: 34px;

        font-size: 0.85rem;
    }

    .volume-slider {
        width: 100%;

        height: 5px;
    }


    /* --------------------------------------------------------
       ДЕКОР
       -------------------------------------------------------- */

    .hero-decor {
        grid-template-columns: 1fr;

        gap: 8px;

        margin-top: 18px;
    }

    .decor-pouf,
    .decor-blanket,
    .decor-cup,
    .decor-plant,
    .decor-window {
        width: 100%;

        min-height: 44px;
    }

    .decor-window {
        grid-column: auto;
    }


    /* --------------------------------------------------------
       СЕКЦИИ
       -------------------------------------------------------- */

    .section {
        margin-top: 20px;

        padding: 18px 14px 20px;

        border-radius: 15px;
    }

    .section-header {
        margin-bottom: 14px;
    }

    .section-title {
        font-size: 1.18rem;
    }

    .section-description {
        font-size: 0.82rem;

        line-height: 1.6;
    }


    /* --------------------------------------------------------
       ГАЛЕРЕЯ
       -------------------------------------------------------- */

    .gallery-grid {
        grid-template-columns: 1fr 1fr;

        gap: 8px;

        margin-top: 14px;
    }

    .gallery-image-wrapper {
        padding: 5px 5px 0;
    }

    .gallery-caption {
        padding: 6px 7px 8px;

        font-size: 0.68rem;

        line-height: 1.35;
    }


    /* --------------------------------------------------------
       ABOUT
       -------------------------------------------------------- */

    .about-layout {
        margin-top: 16px;

        gap: 12px;
    }

    .about-text {
        padding: 15px;
    }

    .about-tech {
        padding: 15px;
    }

    .about-text p {
        font-size: 0.84rem;

        line-height: 1.65;
    }

    .about-tech-title {
        font-size: 0.88rem;
    }

    .tech-grid {
        gap: 5px;
    }

    .tech-pill {
        min-height: 26px;

        padding: 5px 8px;

        font-size: 0.7rem;
    }

    .about-note {
        font-size: 0.72rem;

        line-height: 1.55;
    }


    /* --------------------------------------------------------
       ABOUT PAGE
       -------------------------------------------------------- */

    .about-intro {
        padding: 24px 20px;
    }

    .about-profile-card {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .about-avatar-wrap {
        display: flex;

        justify-content: center;
    }

    .about-profile-meta,
    .about-mini-list {
        justify-content: center;
    }

    .about-quote {
        grid-column: auto;

        text-align: left;
    }

    .about-two-columns {
        grid-template-columns: 1fr;
    }

    .about-interest-grid,
    .facts-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-story-card,
    .about-info-card,
    .about-weird-card,
    .about-fen-section,
    .about-facts {
        padding: 20px;
    }


    /* --------------------------------------------------------
       СЕРВИСЫ
       -------------------------------------------------------- */

    .services-section .services-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .services-section .service-card {
        width: 100%;
        min-width: 0;

        min-height: 0;

        padding: 20px;

        border-radius: 16px;

        touch-action: manipulation;
    }

    .service-header {
        width: 100%;
        min-width: 0;

        gap: 12px;

        margin-bottom: 13px;
    }

    .service-icon {
        width: 43px;
        height: 43px;

        border-radius: 12px;

        font-size: 1.2rem;
    }

    .service-name {
        min-width: 0;

        font-size: 0.98rem;
    }

    .service-description {
        width: 100%;
        min-width: 0;

        font-size: 0.84rem;

        line-height: 1.6;
    }

    .service-link-text {
        margin-top: 16px;
    }


    /* --------------------------------------------------------
       FOOTER
       -------------------------------------------------------- */

    .site-footer {
        margin-top: 18px;

        padding: 14px 12px 18px;
    }

    .footer-inner {
        flex-direction: column;

        align-items: flex-start;

        gap: 8px;
    }

    .footer-left {
        display: flex;
        flex-direction: column;

        gap: 4px;
    }

    .footer-logo {
        font-size: 0.82rem;
    }

    .footer-text {
        margin-left: 0;

        font-size: 0.7rem;
        line-height: 1.5;
    }

    .footer-detail {
        font-size: 0.7rem;
        line-height: 1.5;
    }
}


/* ============================================================
   ОЧЕНЬ МАЛЕНЬКИЕ ТЕЛЕФОНЫ
   ============================================================ */

@media (max-width: 380px) {

    .hero {
        padding: 17px 12px 18px;
    }

    .hero-title {
        font-size: 1.45rem;
    }

    .section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-caption {
        font-size: 0.74rem;
    }

    .hero-now-playing {
        grid-template-columns:
            minmax(0, 1fr)
            32px;
    }

    .services-section .service-card {
        padding: 17px;
    }

    .service-icon {
        width: 40px;
        height: 40px;

        font-size: 1.1rem;
    }

    .service-name {
        font-size: 0.92rem;
    }

    .service-description {
        font-size: 0.8rem;
    }
}


/* ============================================================
   МЯГКИЕ ПОЯВЛЕНИЯ
   ============================================================ */

.hero,
.section {
    opacity: 0;

    transform: translateY(10px);

    animation:
        section-fade-in 700ms ease-out forwards;
}

.section:nth-of-type(2) {
    animation-delay: 0.1s;
}

.section:nth-of-type(3) {
    animation-delay: 0.2s;
}

.section:nth-of-type(4) {
    animation-delay: 0.3s;
}

@keyframes section-fade-in {
    from {
        opacity: 0;

        transform: translateY(10px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}


/* ============================================================
   ОБЩАЯ ЗАЩИТА ОТ ВЫЛЕЗАНИЯ КОНТЕНТА
   ============================================================ */

img,
video,
iframe {
    max-width: 100%;
}


/* ============================================================
   FENJKOVSKIY — СТРАНИЦА ПЕРСОНАЖА
   ============================================================ */

.character-page {
    max-width: 1120px;
}

/* Вступление */

.character-intro {
    margin: 4px auto 22px;
    padding: 30px 34px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    border: 1px solid var(--border-soft);
    border-radius: var(--radius-large);

    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(179, 74, 74, 0.14),
            transparent 55%
        ),
        radial-gradient(
            circle at 100% 100%,
            rgba(74, 127, 174, 0.10),
            transparent 55%
        ),
        linear-gradient(
            135deg,
            rgba(179, 74, 74, 0.05),
            rgba(74, 127, 174, 0.04)
        );

    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.character-kicker {
    margin: 0 0 8px;

    color: var(--accent-red);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.character-intro .section-title {
    margin: 0 0 8px;
    font-size: 2.2rem;
}

.character-lead {
    max-width: 720px;
    margin: 0;

    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.7;
}

/* Символ */

.character-symbol {
    width: 100px;
    height: 100px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    border: 1px solid rgba(179, 74, 74, 0.22);

    background:
        radial-gradient(
            circle,
            rgba(179, 74, 74, 0.18),
            transparent 65%
        );

    box-shadow:
        0 0 35px rgba(179, 74, 74, 0.08),
        inset 0 0 30px rgba(74, 127, 174, 0.05);
}

.character-symbol span {
    color: var(--text-soft);
    font-size: 2.8rem;
    opacity: 0.75;
}

/* Профиль */

.character-profile-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) minmax(240px, 0.75fr);
    gap: 24px;
    align-items: center;

    padding: 24px;
    margin-bottom: 22px;

    border: 1px solid var(--border-soft);
    border-radius: var(--radius-large);

    background: rgba(20, 18, 22, 0.78);

    backdrop-filter: blur(12px);

    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

/* Аватар */

.character-avatar-frame {
    width: 142px;
    height: 142px;

    padding: 5px;

    border-radius: 28px;
    border: 1px solid rgba(179, 74, 74, 0.45);

    background:
        linear-gradient(
            145deg,
            rgba(179, 74, 74, 0.30),
            rgba(74, 127, 174, 0.20)
        );

    overflow: hidden;

    box-shadow: 0 0 25px rgba(179, 74, 74, 0.08);
}

.character-avatar-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 23px;
}

/* Информация */

.character-profile-heading {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 4px;

    color: var(--text-muted);
    font-size: 0.78rem;
}

.character-status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--accent-red);

    box-shadow: 0 0 12px rgba(179, 74, 74, 0.8);
}

.character-profile-info h2 {
    margin: 0 0 8px;

    color: var(--text-main);
    font-size: 1.7rem;
}

.character-profile-info h2 span {
    color: var(--accent-red);
    font-weight: 400;
}

.character-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-bottom: 12px;
}

.character-profile-meta span,
.character-tags span {
    padding: 5px 9px;

    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.07);

    background: rgba(255, 255, 255, 0.035);

    color: var(--text-muted);
    font-size: 0.76rem;
}

.character-profile-info p,
.character-story-copy p,
.character-info-card p,
.character-lore-text p {
    margin: 0 0 10px;

    color: var(--text-soft);

    line-height: 1.7;
    font-size: 0.93rem;
}

/* Цитата */

.character-quote {
    margin: 0;
    padding-left: 20px;

    border-left: 2px solid var(--accent-red);

    color: var(--text-soft);

    font-size: 1rem;
    line-height: 1.7;
}

/* Общие карточки */

.character-story-card,
.character-lore-card,
.character-info-card,
.character-history-card,
.character-secrets-card {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-large);

    background: rgba(20, 18, 22, 0.70);

    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

/* История */

.character-story-card {
    padding: 25px;
    margin-bottom: 22px;
}

.character-story-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.5fr);

    gap: 35px;
    align-items: start;
}

.character-story-grid h2,
.character-lore-card h2,
.character-info-card h2,
.character-history-title h2,
.character-secrets-card h2 {
    margin: 0;

    color: var(--text-main);

    font-size: 1.25rem;
    line-height: 1.35;
}

/* Лор */

.character-lore-card {
    padding: 25px;
    margin-bottom: 22px;

    background:
        linear-gradient(
            120deg,
            rgba(74, 127, 174, 0.07),
            rgba(20, 18, 22, 0.75)
        );
}

.character-lore-card h2 {
    margin-bottom: 18px;
}

.character-lore-text {
    max-width: 850px;
}

.character-lore-text p:last-child {
    margin-bottom: 0;
}

/* Особые элементы лора */

.character-secrets-card {
    padding: 25px;
    margin-bottom: 22px;

    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(179, 74, 74, 0.10),
            transparent 50%
        ),
        radial-gradient(
            circle at 100% 100%,
            rgba(74, 127, 174, 0.07),
            transparent 50%
        ),
        rgba(20, 18, 22, 0.75);
}

.character-section-description {
    margin: 10px 0 0;

    color: var(--text-muted);

    font-size: 0.88rem;
    line-height: 1.6;
}

/* ============================================================
   КНОПКИ ЛОРА
   ============================================================ */

.character-lore-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 12px;

    margin-top: 20px;
}

.character-lore-button {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 24px;

    align-items: center;

    gap: 12px;

    min-height: 82px;

    padding: 14px 16px;

    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-medium);

    background: rgba(255, 255, 255, 0.025);

    color: var(--text-main);
    text-decoration: none;

    transition:
        transform var(--transition-soft),
        background-color var(--transition-soft),
        border-color var(--transition-soft),
        box-shadow var(--transition-soft);
}

.character-lore-button:visited {
    color: var(--text-main);
}

.character-lore-button:hover {
    transform: translateY(-3px);

    background: rgba(255, 255, 255, 0.05);

    border-color: rgba(255, 255, 255, 0.12);

    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);

    text-decoration: none;
}

/* Иконка */

.character-lore-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.045);

    font-size: 1.25rem;
}

/* Текст кнопки */

.character-lore-button-content {
    display: flex;
    flex-direction: column;
    gap: 4px;

    min-width: 0;
}

.character-lore-button-content strong {
    font-size: 0.95rem;
    font-weight: 500;
}

.character-lore-button-content small {
    color: var(--text-muted);

    font-size: 0.75rem;
    line-height: 1.4;
}

/* Стрелка */

.character-lore-arrow {
    color: var(--text-muted);
    font-size: 1.1rem;

    transition:
        transform var(--transition-soft),
        color var(--transition-soft);
}

.character-lore-button:hover .character-lore-arrow {
    transform: translateX(4px);
    color: var(--text-main);
}

/* Цветовые акценты */

.character-lore-red:hover {
    border-color: rgba(179, 74, 74, 0.45);
    box-shadow: 0 14px 30px rgba(179, 74, 74, 0.08);
}

.character-lore-blue:hover {
    border-color: rgba(74, 127, 174, 0.45);
    box-shadow: 0 14px 30px rgba(74, 127, 174, 0.08);
}

.character-lore-vampire:hover {
    border-color: rgba(150, 45, 60, 0.50);
    box-shadow: 0 14px 30px rgba(150, 45, 60, 0.10);
}

/* ============================================================
   WHITEWOOD — СИЗОЕ СВЕЧЕНИЕ
   ============================================================ */

.character-lore-whitewood {
    transition:
        transform var(--transition-soft),
        background-color var(--transition-soft),
        border-color var(--transition-soft),
        box-shadow var(--transition-soft);
}

.character-lore-whitewood:hover {
    transform: translateY(-3px);

    background:
        rgba(150, 190, 205, 0.075);

    border-color:
        rgba(165, 215, 230, 0.75);

    box-shadow:
        0 8px 20px rgba(100, 180, 205, 0.18),
        0 0 25px rgba(125, 205, 225, 0.28),
        0 0 55px rgba(125, 205, 225, 0.18),
        inset 0 0 20px rgba(150, 220, 235, 0.045);
}


/* Иконка Whitewood */

.character-lore-whitewood:hover .character-lore-icon {
    background:
        rgba(145, 205, 220, 0.13);

    box-shadow:
        0 0 18px rgba(125, 205, 225, 0.3);
}


/* Стрелка */

.character-lore-whitewood:hover .character-lore-arrow {
    color: #dff7ff;

    text-shadow:
        0 0 10px rgba(150, 225, 240, 0.75);
}


/* Название */

.character-lore-whitewood:hover strong {
    color: #e4f8ff;

    text-shadow:
        0 0 12px rgba(150, 220, 235, 0.45);
}

/* Две колонки */

.character-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 22px;

    margin-bottom: 22px;
}

.character-info-card {
    padding: 24px;
}

.character-info-card p:last-child {
    margin-bottom: 0;
}

/* Теги */

.character-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 17px;
}

/* Характеристики */

.character-traits {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 8px;

    margin: 17px 0;
}

.character-traits div {
    display: flex;
    align-items: center;
    gap: 9px;

    padding: 10px 11px;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.035);

    color: var(--text-soft);

    font-size: 0.84rem;
}

.character-traits b {
    font-size: 1rem;
}

/* ============================================================
   ХРОНОЛОГИЯ
   ============================================================ */

.character-history-card {
    display: grid;
    grid-template-columns: 0.75fr 1.5fr;

    gap: 30px;

    padding: 25px;
    margin-bottom: 22px;

    background:
        linear-gradient(
            120deg,
            rgba(179, 74, 74, 0.08),
            rgba(20, 18, 22, 0.75)
        );
}

.character-history-title h2 {
    margin-top: 3px;
}

.character-history-list {
    display: grid;
    gap: 10px;
}

.character-history-item {
    display: grid;
    grid-template-columns: 28px 1fr;

    gap: 10px;
    align-items: start;

    padding: 10px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.character-history-item:last-child {
    border-bottom: 0;
}

.character-history-item > span {
    color: var(--accent-blue);

    font-size: 0.72rem;
    padding-top: 2px;
}

.character-history-item h3 {
    margin: 0 0 5px;

    color: var(--text-main);

    font-size: 0.92rem;
    font-weight: 500;
}

.character-history-item p {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.88rem;
    line-height: 1.6;
}

/* Финал */

.character-finale {
    max-width: 820px;

    margin: 0 auto;

    text-align: center;

    padding: 10px 20px 20px;
}

.character-finale > span {
    color: var(--text-muted);

    font-size: 0.72rem;

    letter-spacing: 0.14em;

    text-transform: uppercase;
}

.character-finale p {
    margin: 14px 0 0;

    color: var(--text-soft);

    font-size: 0.95rem;
    line-height: 1.8;
}


/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */

@media (max-width: 900px) {

    .character-profile-card {
        grid-template-columns: 130px minmax(0, 1fr);
    }

    .character-avatar-frame {
        width: 122px;
        height: 122px;
    }

    .character-quote {
        grid-column: 2;
    }

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

    .character-history-card {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (max-width: 720px) {

    .character-lore-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .character-intro {
        padding: 24px 20px;
    }

    .character-symbol {
        display: none;
    }

    .character-intro .section-title {
        font-size: 1.8rem;
    }

    .character-profile-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .character-avatar-wrap {
        display: flex;
        justify-content: center;
    }

    .character-profile-meta,
    .character-tags {
        justify-content: center;
    }

    .character-quote {
        grid-column: auto;
        text-align: left;
    }

    .character-two-columns {
        grid-template-columns: 1fr;
    }

    .character-traits {
        grid-template-columns: 1fr 1fr;
    }

    .character-story-card,
    .character-lore-card,
    .character-info-card,
    .character-history-card,
    .character-secrets-card {
        padding: 20px;
    }
}
/* ============================================================
   NIKA — НОВАЯ СТРУКТУРА ЛОРА
   ============================================================ */

/* Вступление */

.character-story-intro {
    margin-bottom: 35px;
    padding: 10px 4px 0;
}

.character-story-intro h2 {
    margin: 0 0 10px;

    color: var(--text-main);

    font-size: 1.7rem;
    line-height: 1.35;
}

.character-story-intro p {
    max-width: 700px;

    margin: 0;

    color: var(--text-soft);

    font-size: 0.95rem;
    line-height: 1.7;
}


/* ============================================================
   ОБЩАЯ СЕКЦИЯ ИСТОРИИ
   ============================================================ */

.story-section {
    display: grid;

    grid-template-columns:
        minmax(220px, 0.9fr)
        minmax(0, 1.3fr);

    gap: 30px;

    align-items: center;

    margin-bottom: 30px;

    padding: 22px;

    border-radius: var(--radius-large);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.025),
            rgba(255, 255, 255, 0.012)
        );

    border: 1px solid rgba(255, 255, 255, 0.045);
}


/* Меняем местами изображение и текст */

.story-section-reverse {
    grid-template-columns:
        minmax(0, 1.3fr)
        minmax(220px, 0.9fr);
}


/* Изображение */

.story-section-image {
    position: relative;

    min-height: 260px;

    border-radius: var(--radius-medium);

    overflow: hidden;

    background:
        radial-gradient(
            circle at 20% 10%,
            rgba(179, 74, 74, 0.16),
            transparent 60%
        ),
        radial-gradient(
            circle at 80% 90%,
            rgba(74, 127, 174, 0.14),
            transparent 60%
        ),
        var(--bg-panel);

    border: 1px solid rgba(255, 255, 255, 0.05);
}

.story-section-image img {
    display: block;

    width: 100%;
    height: 100%;

    min-height: 260px;

    object-fit: cover;

    transition:
        transform 500ms ease,
        filter 500ms ease;
}

.story-section-image:hover img {
    transform: scale(1.025);
}


/* Текст */

.story-section-content {
    min-width: 0;
}

.story-section-label {
    margin-bottom: 8px;

    color: var(--accent-red);

    font-size: 0.68rem;

    letter-spacing: 0.15em;

    text-transform: uppercase;
}

.story-section-content h3,
.story-traces h3,
.story-special-section h3,
.story-love-section h3,
.story-eye-content h3,
.story-ending h3 {
    margin: 0 0 14px;

    color: var(--text-main);

    font-size: 1.35rem;

    line-height: 1.4;
}


/* Текст внутри */

.story-section-content p,
.story-trace-content p,
.story-special-content p,
.story-love-text p,
.story-eye-content p,
.story-ending p {
    margin: 0 0 11px;

    color: var(--text-soft);

    font-size: 0.93rem;

    line-height: 1.75;
}

.story-section-content p:last-child,
.story-trace-content p:last-child,
.story-special-content p:last-child,
.story-love-text p:last-child,
.story-eye-content p:last-child,
.story-ending p:last-child {
    margin-bottom: 0;
}


/* ============================================================
   СЛЕДЫ ВСЕЛЕННЫХ
   ============================================================ */

.story-traces {
    margin-bottom: 30px;
    padding: 25px;

    border-radius: var(--radius-large);

    background:
        linear-gradient(
            135deg,
            rgba(20, 18, 22, 0.85),
            rgba(25, 22, 28, 0.75)
        );

    border: 1px solid var(--border-soft);

    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.22);
}

.story-traces > h3 {
    margin-bottom: 20px;
}


/* ============================================================
   КАРТОЧКИ МИРОВ
   ============================================================ */

.story-traces-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;
}


/* ============================================================
   ОБЩАЯ КАРТОЧКА
   ============================================================ */

.story-trace {
    overflow: hidden;

    border-radius: var(--radius-medium);

    background: rgba(255, 255, 255, 0.025);

    border: 1px solid rgba(255, 255, 255, 0.05);

    transition:
        transform var(--transition-soft),
        background-color var(--transition-soft),
        border-color var(--transition-soft);
}

.story-trace:hover {
    transform: translateY(-4px);

    background: rgba(255, 255, 255, 0.04);

    border-color: rgba(179, 74, 74, 0.25);
}


/* ============================================================
   ARKNIGHTS — ЗАНИМАЕТ ДВЕ КОЛОНКИ
   ============================================================ */

.story-trace-arknights {
    grid-column: span 2;
}


/* ============================================================
   КАРТИНКА
   ============================================================ */

.story-trace-image {
    width: 100%;

    overflow: hidden;

    cursor: pointer;
}

.story-trace-image img {
    width: 100%;
    height: auto;

    display: block;

    object-fit: contain;
}


/* ============================================================
   ТЕКСТ
   ============================================================ */

.story-trace-content {
    padding: 17px;
}

.story-trace-content h4 {
    margin: 0 0 9px;

    color: var(--text-main);

    font-size: 1rem;

    font-weight: 500;
}

.story-trace-content p {
    font-size: 0.84rem;
    line-height: 1.65;
}

/* ============================================================
   ОСОБЫЙ БЛОК — ИНОЙ ГЕНДЕР
   ============================================================ */

.story-special-section {
    position: relative;

    margin-bottom: 30px;

    padding: 30px;

    overflow: hidden;

    border-radius: var(--radius-large);

    border: 1px solid rgba(179, 74, 74, 0.18);

    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(179, 74, 74, 0.13),
            transparent 55%
        ),
        radial-gradient(
            circle at 100% 100%,
            rgba(74, 127, 174, 0.10),
            transparent 55%
        ),
        rgba(20, 18, 22, 0.75);

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.25);
}

.story-special-section::after {
    content: "✦";

    position: absolute;

    right: 28px;
    top: 20px;

    color: rgba(179, 74, 74, 0.20);

    font-size: 4rem;

    pointer-events: none;
}

.story-special-content {
    position: relative;

    max-width: 850px;

    z-index: 1;
}

.story-special-link {
    display: inline-flex;

    margin-top: 18px;

    padding: 8px 13px;

    border-radius: 999px;

    border: 1px solid rgba(179, 74, 74, 0.25);

    background: rgba(179, 74, 74, 0.07);

    color: var(--text-soft);

    font-size: 0.78rem;

    text-decoration: none;

    transition:
        background-color var(--transition-soft),
        border-color var(--transition-soft),
        transform var(--transition-soft);
}

.story-special-link:hover {
    background: rgba(179, 74, 74, 0.13);

    border-color: rgba(179, 74, 74, 0.45);

    transform: translateY(-2px);

    color: var(--text-main);

    text-decoration: none;
}


/* ============================================================
   MISTERY WHITEWOOD
   ============================================================ */

.story-love-section {
    margin-bottom: 30px;

    padding: 28px;

    text-align: center;

    border-radius: var(--radius-large);

    border: 1px solid rgba(255, 255, 255, 0.055);

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(179, 74, 74, 0.09),
            transparent 55%
        ),
        rgba(20, 18, 22, 0.72);

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.25);
}

.story-love-section .story-section-label {
    color: var(--text-muted);
}


/* Аватары */

.story-love-characters {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 18px;

    margin: 18px 0 22px;
}

.story-character-avatar {
    width: 110px;
    height: 110px;

    padding: 4px;

    border-radius: 50%;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(179, 74, 74, 0.45),
            rgba(74, 127, 174, 0.30)
        );

    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.45);
}

.story-character-avatar img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 50%;
}

.story-love-symbol {
    color: var(--accent-red);

    font-size: 1.5rem;

    opacity: 0.75;

    text-shadow:
        0 0 18px rgba(179, 74, 74, 0.35);
}

.story-love-text {
    max-width: 760px;

    margin: 0 auto;

    text-align: left;
}

/* ============================================================
   МОНА — ДОЧЬ НИКИ И МИСТИ
   ============================================================ */

.story-daughter {
    max-width: 760px;

    margin: 32px auto 0;
    padding-top: 28px;

    border-top: 1px solid rgba(255, 255, 255, 0.055);

    text-align: center;
}


/* Надпись МОНА */

.story-daughter-label {
    margin-bottom: 16px;

    color: var(--accent-blue);

    font-size: 0.72rem;
    font-weight: 600;

    letter-spacing: 0.18em;
    text-transform: uppercase;

    opacity: 0.8;

    text-shadow:
        0 0 16px rgba(74, 127, 174, 0.25);
}


/* Портрет */

.story-daughter-image {
    width: min(100%, 420px);

    margin: 0 auto;

    overflow: hidden;

    border-radius: var(--radius-large);

    cursor: pointer;

    border: 1px solid rgba(74, 127, 174, 0.20);

    background: rgba(255, 255, 255, 0.025);

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.32);

    transition:
        border-color var(--transition-soft),
        box-shadow var(--transition-soft),
        transform var(--transition-soft);
}


/* Лёгкое движение всей карточки, не картинки */

.story-daughter-image:hover {
    transform: translateY(-3px);

    border-color: rgba(74, 127, 174, 0.40);

    box-shadow:
        0 22px 46px rgba(0, 0, 0, 0.38),
        0 0 24px rgba(74, 127, 174, 0.08);
}


.story-daughter-image img {
    display: block;

    width: 100%;
    height: auto;
}


/* Текст под портретом */

.story-daughter-text {
    max-width: 620px;

    margin: 20px auto 0;
}


.story-daughter-text h4 {
    margin: 0 0 8px;

    color: var(--text-main);

    font-size: 1.05rem;
    font-weight: 500;
}


.story-daughter-text p {
    margin: 0;

    color: var(--text-secondary, var(--text-muted));

    font-size: 0.86rem;
    line-height: 1.65;
}

/* ============================================================
   КРАСНЫЙ ГЛАЗ
   ============================================================ */

.story-eye-section {
    display: grid;

    grid-template-columns:
        minmax(220px, 0.8fr)
        minmax(0, 1.2fr);

    gap: 28px;

    align-items: center;

    margin-bottom: 30px;

    padding: 22px;

    border-radius: var(--radius-large);

    border: 1px solid rgba(179, 74, 74, 0.18);

    background:
        linear-gradient(
            120deg,
            rgba(179, 74, 74, 0.08),
            rgba(20, 18, 22, 0.75)
        );
}

.story-eye-image {
    position: relative;

    height: 250px;

    overflow: hidden;

    border-radius: var(--radius-medium);

    background: #100d12;
}

.story-eye-image::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at center,
            rgba(179, 74, 74, 0.12),
            transparent 60%
        );

    pointer-events: none;
}

.story-eye-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.story-eye-content {
    min-width: 0;
}

.story-eye-content h3 {
    font-size: 1.4rem;
}


/* ============================================================
   ФИНАЛ
   ============================================================ */

.story-ending {
    max-width: 820px;

    margin: 5px auto 10px;

    padding: 28px 20px 20px;

    text-align: center;

    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.story-ending .story-section-label {
    color: var(--text-muted);
}

.story-ending h3 {
    font-size: 1.5rem;

    margin-bottom: 18px;
}

.story-ending p {
    font-size: 0.95rem;

    line-height: 1.8;
}


/* ============================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ============================================================ */

@media (max-width: 900px) {

    .story-section,
    .story-section-reverse {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .story-section-reverse .story-section-image {
        order: -1;
    }

    .story-traces-grid {
        grid-template-columns: 1fr 1fr;
    }

    .story-eye-section {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .character-story-intro {
        padding: 5px 2px 0;
    }

    .character-story-intro h2 {
        font-size: 1.4rem;
    }

    .story-section {
        padding: 17px;
    }

    .story-section-image {
        min-height: 210px;
    }

    .story-section-image img {
        min-height: 210px;
    }

    .story-traces {
        padding: 18px;
    }

    .story-traces-grid {
        grid-template-columns: 1fr;
    }

    .story-trace-image {
        height: 190px;
    }

    .story-special-section {
        padding: 22px 20px;
    }

    .story-love-section {
        padding: 22px 18px;
    }

    .story-love-characters {
        gap: 10px;
    }

    .story-character-avatar {
        width: 82px;
        height: 82px;
    }

    .story-love-symbol {
        font-size: 1.2rem;
    }

    .story-eye-section {
        padding: 17px;
    }

    .story-eye-image {
        height: 210px;
    }

    .story-ending {
        padding-left: 10px;
        padding-right: 10px;
    }

}
/* ============================================================
   КНОПКА СКАЧИВАНИЯ ОРИГИНАЛА
   ============================================================ */

.image-modal-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 16px;
    padding: 9px 16px;

    border: 1px solid rgba(179, 74, 74, 0.35);
    border-radius: var(--radius-medium);

    background: rgba(179, 74, 74, 0.08);

    color: var(--text-main) !important;
    text-decoration: none !important;

    font-size: 0.85rem;
    font-weight: 500;

    transition:
        background-color var(--transition-soft),
        border-color var(--transition-soft),
        box-shadow var(--transition-soft),
        transform var(--transition-soft);
}

.image-modal-download:hover {
    background: rgba(179, 74, 74, 0.16);

    border-color: rgba(179, 74, 74, 0.55);

    color: #ffffff !important;

    box-shadow:
        0 0 18px rgba(179, 74, 74, 0.18);

    transform: translateY(-1px);
}

.image-modal-download:active {
    transform: translateY(0);
}
/* ============================================================
   КНОПКИ ПЕРЕЛИСТЫВАНИЯ МОДАЛЬНОЙ ГАЛЕРЕИ
   ============================================================ */

.image-modal-nav {
    position: fixed;

    top: 50%;
    transform: translateY(-50%);

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(179, 74, 74, 0.3);
    border-radius: 50%;

    background: rgba(21, 19, 22, 0.85);

    color: var(--text-main);

    font-size: 2rem;
    line-height: 1;

    cursor: pointer;

    backdrop-filter: blur(8px);

    transition:
        background-color var(--transition-soft),
        border-color var(--transition-soft),
        box-shadow var(--transition-soft),
        transform var(--transition-soft);
}

.image-modal-nav:hover {
    background: rgba(179, 74, 74, 0.15);

    border-color: rgba(179, 74, 74, 0.55);

    box-shadow:
        0 0 18px rgba(179, 74, 74, 0.18);

    transform: translateY(-50%) scale(1.05);
}

.image-modal-prev {
    left: 25px;
}

.image-modal-next {
    right: 25px;
}

/* ============================================================
   OTHER GENDER — ИНОЙ ГЕНДЕР NIKA
   ============================================================ */


/* ============================================================
   КНОПКА «НАЗАД»
   ============================================================ */

.character-back-button {
    display: inline-flex;
    align-items: center;

    margin-top: 20px;
    padding: 8px 14px;

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.025);

    color: var(--text-muted);
    text-decoration: none;

    font-size: 0.8rem;

    transition:
        background-color var(--transition-soft),
        border-color var(--transition-soft),
        color var(--transition-soft),
        transform var(--transition-soft);
}

.character-back-button:hover {
    background: rgba(255, 255, 255, 0.05);

    border-color: rgba(179, 74, 74, 0.35);

    color: var(--text-main);

    text-decoration: none;

    transform: translateX(-2px);
}


/* ============================================================
   ОСНОВНЫЕ БЛОКИ ЛОРА
   ============================================================ */

/*
   Обычная секция:

   TEXT | IMAGE

   reverse:

   IMAGE | TEXT
*/

.story-section {
    display: grid;

    grid-template-columns:
        minmax(0, 1.3fr)
        minmax(280px, 0.9fr);

    gap: 30px;

    align-items: center;

    margin-bottom: 24px;
    padding: 24px;

    border-radius: var(--radius-large);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.025),
            rgba(255, 255, 255, 0.012)
        );

    border: 1px solid rgba(255, 255, 255, 0.045);

    transition:
        border-color var(--transition-soft),
        background-color var(--transition-soft);
}

.story-section:hover {
    border-color: rgba(255, 255, 255, 0.07);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.032),
            rgba(255, 255, 255, 0.015)
        );
}


/* IMAGE | TEXT */

.story-section-reverse {
    grid-template-columns:
        minmax(280px, 0.9fr)
        minmax(0, 1.3fr);
}


/* ============================================================
   НОМЕР СЕКЦИИ
   ============================================================ */

.story-section-number {
    display: block;

    margin-bottom: 8px;

    color: var(--accent-red);

    font-size: 0.68rem;
    font-weight: 600;

    letter-spacing: 0.16em;

    text-transform: uppercase;

    opacity: 0.85;
}


/* ============================================================
   ТЕКСТ СЕКЦИИ
   ============================================================ */

.story-section-content {
    min-width: 0;
}

.story-section-content h2 {
    margin: 0 0 14px;

    color: var(--text-main);

    font-size: 1.45rem;
    font-weight: 500;

    line-height: 1.4;
}

.story-section-content p {
    margin: 0 0 11px;

    color: var(--text-soft);

    font-size: 0.93rem;

    line-height: 1.75;
}

.story-section-content p:last-child {
    margin-bottom: 0;
}


/* ============================================================
   КОНТЕЙНЕР ИЗОБРАЖЕНИЯ
   ============================================================ */

.story-section-image {
    position: relative;

    width: 100%;
    min-height: 330px;

    overflow: hidden;

    border-radius: var(--radius-medium);

    background:
        radial-gradient(
            circle at 20% 10%,
            rgba(179, 74, 74, 0.12),
            transparent 60%
        ),
        radial-gradient(
            circle at 80% 90%,
            rgba(74, 127, 174, 0.10),
            transparent 60%
        ),
        var(--bg-panel);

    border: 1px solid rgba(255, 255, 255, 0.055);
}


/*
   gallery-item растягивается на весь контейнер.
*/

.story-section-image .gallery-item {
    position: relative;

    width: 100%;
    height: 100%;

    min-height: 330px;

    padding: 0;

    border: none;
    border-radius: inherit;

    background: transparent;

    transform: none;
}

.story-section-image .gallery-item:hover {
    transform: none;

    border-color: transparent;

    background: transparent;

    box-shadow: none;
}


/* ============================================================
   GENDER ART
   ============================================================ */

.gender-art {
    position: relative;

    overflow: hidden;

    cursor: pointer;
}


/*
   Изображение.

   contain — арт полностью помещается внутрь,
   ничего не обрезается.
*/

.gender-art img {
    display: block;

    width: 100%;
    height: 330px;

    object-fit: contain;

    background: #100d12;

    transition:
        filter 350ms ease,
        transform 500ms ease;
}


/* ============================================================
   ЗАБЛЮРЕННЫЙ ART
   ============================================================ */

.gender-art-blurred img {
    filter:
        blur(22px)
        brightness(0.55);

    transform: scale(1.06);
}


/*
   Наведение не раскрывает изображение,
   а лишь слегка меняет его вид.
*/

.gender-art-blurred:hover img {
    filter:
        blur(20px)
        brightness(0.62);

    transform: scale(1.08);
}


/* ============================================================
   РАСКРЫТЫЙ ART
   ============================================================ */

.gender-art-revealed img {
    filter: none;

    transform: scale(1);

    cursor: zoom-in;
}

.gender-art-revealed:hover img {
    transform: scale(1.025);
}


/* ============================================================
   OVERLAY НА BLURRED ART
   ============================================================ */

.gender-art-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        radial-gradient(
            circle,
            rgba(10, 8, 12, 0.12),
            rgba(10, 8, 12, 0.48)
        );

    pointer-events: none;

    opacity: 1;

    transition:
        opacity 250ms ease,
        background-color var(--transition-soft);
}


/* ============================================================
   КНОПКА ВНУТРИ OVERLAY
   ============================================================ */

.gender-art-overlay span {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 9px 15px;

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 999px;

    background: rgba(10, 8, 12, 0.72);

    backdrop-filter: blur(8px);

    color: var(--text-soft);

    font-size: 0.76rem;

    letter-spacing: 0.03em;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.35);

    transition:
        background-color var(--transition-soft),
        border-color var(--transition-soft),
        color var(--transition-soft),
        transform var(--transition-soft);
}

.gender-art:hover .gender-art-overlay span {
    background: rgba(179, 74, 74, 0.16);

    border-color: rgba(179, 74, 74, 0.38);

    color: var(--text-main);

    transform: translateY(-2px);
}


/* ============================================================
   СПЕЦИАЛЬНЫЙ БЛОК
   ============================================================ */

.story-special-section {
    position: relative;

    margin-bottom: 24px;

    padding: 28px;

    overflow: hidden;

    border-radius: var(--radius-large);

    border: 1px solid rgba(179, 74, 74, 0.16);

    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(179, 74, 74, 0.11),
            transparent 55%
        ),
        radial-gradient(
            circle at 100% 100%,
            rgba(74, 127, 174, 0.08),
            transparent 55%
        ),
        rgba(20, 18, 22, 0.72);

    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.22);
}

.story-special-section::after {
    content: "✦";

    position: absolute;

    right: 26px;
    top: 18px;

    color: rgba(179, 74, 74, 0.16);

    font-size: 3.5rem;

    pointer-events: none;
}

.story-special-content {
    position: relative;

    max-width: 850px;

    z-index: 1;
}

.story-special-content h2 {
    margin: 0 0 14px;

    color: var(--text-main);

    font-size: 1.4rem;
    font-weight: 500;

    line-height: 1.4;
}

.story-special-content p {
    margin: 0 0 11px;

    color: var(--text-soft);

    font-size: 0.93rem;

    line-height: 1.75;
}

.story-special-content p:last-child {
    margin-bottom: 0;
}


/* ============================================================
   КАРТОЧКА «КРАТКО»
   ============================================================ */

.character-history-card {
    position: relative;

    display: block;

    width: 100%;

    padding: 30px;

    margin-bottom: 24px;

    border: 1px solid var(--border-soft);
    border-radius: var(--radius-large);

    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(179, 74, 74, 0.075),
            transparent 45%
        ),
        radial-gradient(
            circle at 100% 100%,
            rgba(74, 127, 174, 0.045),
            transparent 45%
        ),
        linear-gradient(
            120deg,
            rgba(179, 74, 74, 0.025),
            rgba(20, 18, 22, 0.74)
        );

    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.22);
}


/* ============================================================
   ЗАГОЛОВОК «КРАТКО»
   ============================================================ */

.character-history-card > h2 {
    margin: 0 0 26px;

    color: var(--text-main);

    font-size: 1.3rem;
    font-weight: 500;

    line-height: 1.35;

    text-align: center;
}


/* ============================================================
   СПИСОК ФОРМ
   ============================================================ */

.character-history-list {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;

    width: 100%;
}


/* ============================================================
   КАРТОЧКА ФОРМЫ
   ============================================================ */

.character-history-item {
    display: grid;

    grid-template-columns:
        36px
        minmax(0, 1fr);

    gap: 14px;

    align-items: start;

    min-width: 0;
    min-height: 150px;

    padding: 20px;

    border:
        1px solid
        rgba(255, 255, 255, 0.055);

    border-radius: var(--radius-medium);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.026),
            rgba(255, 255, 255, 0.012)
        );

    transition:
        transform 250ms ease,
        border-color 250ms ease,
        background-color 250ms ease,
        box-shadow 250ms ease;
}

.character-history-item:hover {
    transform: translateY(-3px);

    border-color:
        rgba(179, 74, 74, 0.22);

    background:
        linear-gradient(
            145deg,
            rgba(179, 74, 74, 0.045),
            rgba(255, 255, 255, 0.018)
        );

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.18);
}


/* ============================================================
   НОМЕР 01 / 02 / 03 / 04 / 05
   ============================================================ */

.character-history-item > span {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    flex-shrink: 0;

    margin-top: 1px;

    border:
        1px solid
        rgba(74, 127, 174, 0.22);

    border-radius: 50%;

    background:
        rgba(74, 127, 174, 0.065);

    color: var(--accent-blue);

    font-size: 0.68rem;
    font-weight: 500;

    line-height: 1;
}


/* ============================================================
   ЗАГОЛОВОК ПУНКТА
   ============================================================ */

.character-history-item h3 {
    margin: 0 0 7px;

    color: var(--text-main);

    font-size: 0.94rem;
    font-weight: 500;

    line-height: 1.4;
}


/* ============================================================
   ТЕКСТ ПУНКТА
   ============================================================ */

.character-history-item p {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.85rem;

    line-height: 1.65;
}


/* ============================================================
   ФИНАЛ
   ============================================================ */

.story-ending {
    max-width: 820px;

    margin: 5px auto 0;

    padding: 30px 20px 15px;

    text-align: center;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.055);
}

.story-ending h2 {
    margin: 0 0 15px;

    color: var(--text-main);

    font-size: 1.45rem;
    font-weight: 500;

    line-height: 1.45;
}

.story-ending p {
    margin: 0 0 10px;

    color: var(--text-soft);

    font-size: 0.93rem;

    line-height: 1.8;
}

.story-ending p:last-child {
    margin-bottom: 0;
}


/* ============================================================
   СРЕДНИЙ ЭКРАН
   ============================================================ */

@media (max-width: 1100px) {

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

}


/* ============================================================
   ПЛАНШЕТ / МОБИЛЬНЫЙ
   ============================================================ */

@media (max-width: 900px) {

    .story-section,
    .story-section-reverse {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    /*
       На мобильном обычная секция:

       TEXT
       IMAGE

       reverse:

       IMAGE
       TEXT
    */

    .story-section-reverse .story-section-image {
        order: -1;
    }


    .story-section-image,
    .story-section-image .gallery-item {
        min-height: 280px;
    }


    .gender-art img {
        height: 280px;
    }


    /* Кратко */

    .character-history-card {
        padding: 25px;
    }


    .character-history-card::before {
        position: static;

        display: block;

        margin-bottom: 8px;
    }


    .character-history-card > h2 {
        margin-bottom: 22px;
    }


    .character-history-list {
        grid-template-columns: 1fr;

        gap: 12px;
    }


    .character-history-item {
        min-height: 0;
    }

}


/* ============================================================
   МАЛЕНЬКИЙ ЭКРАН
   ============================================================ */

@media (max-width: 600px) {

    .character-back-button {
        font-size: 0.76rem;
    }


    .story-section,
    .story-section-reverse {
        padding: 17px;

        gap: 16px;

        margin-bottom: 18px;
    }


    .story-section-content h2 {
        font-size: 1.25rem;
    }


    .story-section-content p {
        font-size: 0.88rem;

        line-height: 1.7;
    }


    .story-section-image,
    .story-section-image .gallery-item {
        min-height: 230px;
    }


    .gender-art img {
        height: 230px;
    }


    .gender-art-blurred img {
        filter:
            blur(17px)
            brightness(0.55);

        transform: scale(1.05);
    }


    .gender-art-blurred:hover img {
        filter:
            blur(16px)
            brightness(0.60);

        transform: scale(1.07);
    }


    .gender-art-overlay span {
        padding: 8px 12px;

        font-size: 0.7rem;
    }


    .story-special-section {
        padding: 22px 20px;
    }


    .story-special-content h2 {
        font-size: 1.25rem;
    }


    .story-special-content p {
        font-size: 0.88rem;
    }


    .character-history-card {
        padding: 20px;
    }


    .character-history-item {
        grid-template-columns:
            34px
            minmax(0, 1fr);

        gap: 12px;

        padding: 16px;
    }


    .character-history-item h3 {
        font-size: 0.9rem;
    }


    .character-history-item p {
        font-size: 0.83rem;
    }


    .story-ending {
        padding:
            25px
            8px
            10px;
    }


    .story-ending h2 {
        font-size: 1.25rem;
    }


    .story-ending p {
        font-size: 0.88rem;
    }

}
/* ============================================================
   NIKA — GENETICS
   ============================================================ */


/* ============================================================
   СТРАНИЦА ГЕНЕТИКИ
   ============================================================ */

.genetic-page {
    position: relative;
}


/* ============================================================
   ЗАГОЛОВОК
   ============================================================ */

.genetic-header {
    position: relative;

    max-width: 900px;

    margin: 45px auto 35px;

    padding: 0 10px;

    text-align: center;
}

.genetic-label {
    display: block;

    margin-bottom: 12px;

    color: var(--accent-red);

    font-size: 0.68rem;
    font-weight: 600;

    letter-spacing: 0.2em;

    opacity: 0.8;
}

.genetic-header h1 {
    margin: 0 0 18px;

    color: var(--text-main);

    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;

    line-height: 1.2;
}

.genetic-intro {
    max-width: 720px;

    margin: 0 auto;

    color: var(--text-soft);

    font-size: 0.95rem;

    line-height: 1.8;
}


/* ============================================================
   ОСНОВНЫЕ СЕКЦИИ
   ============================================================ */

.genetic-section {
    position: relative;

    display: grid;

    grid-template-columns: 65px minmax(0, 1fr);

    gap: 25px;

    width: 100%;

    margin-bottom: 22px;

    padding: 28px 30px;

    border:
        1px solid
        rgba(255, 255, 255, 0.05);

    border-radius: var(--radius-large);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.025),
            rgba(255, 255, 255, 0.012)
        );

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.14);

    transition:
        border-color 250ms ease,
        transform 250ms ease,
        background-color 250ms ease;
}

.genetic-section:hover {
    transform: translateY(-2px);

    border-color:
        rgba(179, 74, 74, 0.16);

    background:
        linear-gradient(
            135deg,
            rgba(179, 74, 74, 0.025),
            rgba(255, 255, 255, 0.015)
        );
}


/* ============================================================
   НОМЕР СЕКЦИИ
   ============================================================ */

.genetic-section-number {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    border:
        1px solid
        rgba(179, 74, 74, 0.25);

    border-radius: 50%;

    background:
        rgba(179, 74, 74, 0.045);

    color: var(--accent-red);

    font-size: 0.72rem;
    font-weight: 600;

    letter-spacing: 0.05em;

    box-shadow:
        0 0 25px rgba(179, 74, 74, 0.04);
}


/* ============================================================
   СОДЕРЖИМОЕ
   ============================================================ */

.genetic-section-content {
    min-width: 0;
}

.genetic-section-label {
    display: block;

    margin-bottom: 7px;

    color: var(--accent-blue);

    font-size: 0.65rem;
    font-weight: 600;

    letter-spacing: 0.17em;

    opacity: 0.8;
}

.genetic-section-content h2 {
    margin: 0 0 15px;

    color: var(--text-main);

    font-size: 1.4rem;
    font-weight: 500;

    line-height: 1.4;
}

.genetic-section-content p {
    margin: 0 0 12px;

    color: var(--text-soft);

    font-size: 0.92rem;

    line-height: 1.78;
}

.genetic-section-content p:last-child {
    margin-bottom: 0;
}


/* ============================================================
   АКЦЕНТНАЯ СЕКЦИЯ
   ============================================================ */

.genetic-section-accent {
    border-color:
        rgba(179, 74, 74, 0.14);

    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(179, 74, 74, 0.075),
            transparent 55%
        ),
        radial-gradient(
            circle at 100% 100%,
            rgba(74, 127, 174, 0.045),
            transparent 55%
        ),
        rgba(20, 18, 22, 0.65);
}


/* ============================================================
   ИНФО-БЛОК
   ============================================================ */

.genetic-note {
    margin-top: 22px;

    padding: 18px 20px;

    border-left:
        2px solid
        rgba(179, 74, 74, 0.5);

    border-radius: 0 var(--radius-medium) var(--radius-medium) 0;

    background:
        rgba(179, 74, 74, 0.045);
}

.genetic-note-title {
    display: block;

    margin-bottom: 6px;

    color: var(--accent-red);

    font-size: 0.7rem;
    font-weight: 600;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.genetic-note p {
    margin: 0;

    font-size: 0.86rem;

    line-height: 1.7;
}


/* ============================================================
   СВОЙСТВА ОРГАНИЗМА
   ============================================================ */

.genetic-properties {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;

    margin-top: 22px;
}

.genetic-property {
    display: grid;

    grid-template-columns: 38px minmax(0, 1fr);

    gap: 12px;

    min-width: 0;

    padding: 17px;

    border:
        1px solid
        rgba(255, 255, 255, 0.045);

    border-radius: var(--radius-medium);

    background:
        rgba(255, 255, 255, 0.018);

    transition:
        border-color 250ms ease,
        background-color 250ms ease,
        transform 250ms ease;
}

.genetic-property:hover {
    transform: translateY(-2px);

    border-color:
        rgba(74, 127, 174, 0.18);

    background:
        rgba(74, 127, 174, 0.035);
}

.genetic-property-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border:
        1px solid
        rgba(74, 127, 174, 0.2);

    border-radius: 50%;

    background:
        rgba(74, 127, 174, 0.055);

    color: var(--accent-blue);

    font-size: 0.62rem;
    font-weight: 600;
}

.genetic-property h3 {
    margin: 1px 0 6px;

    color: var(--text-main);

    font-size: 0.88rem;
    font-weight: 500;

    line-height: 1.4;
}

.genetic-property p {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.8rem;

    line-height: 1.6;
}


/* ============================================================
   04 — НАСЛЕДОВАНИЕ
   ============================================================ */

.genetic-section-reverse {
    display: block;
}


/* ============================================================
   БЛОК НАСЛЕДОВАНИЯ
   ============================================================ */

.genetic-split {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        44px
        minmax(0, 1fr);

    align-items: stretch;

    gap: 14px;

    width: 100%;

    margin-top: 24px;
}

.genetic-split-item {
    min-width: 0;

    padding: 20px 22px;

    border:
        1px solid
        rgba(255, 255, 255, 0.05);

    border-radius: var(--radius-medium);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.025),
            rgba(255, 255, 255, 0.01)
        );

    box-sizing: border-box;

    transition:
        border-color 250ms ease,
        background-color 250ms ease,
        transform 250ms ease;
}

.genetic-split-item:hover {
    transform: translateY(-2px);

    border-color:
        rgba(179, 74, 74, 0.18);

    background:
        linear-gradient(
            145deg,
            rgba(179, 74, 74, 0.035),
            rgba(255, 255, 255, 0.015)
        );
}

.genetic-split-item:last-child:hover {
    border-color:
        rgba(74, 127, 174, 0.2);

    background:
        linear-gradient(
            145deg,
            rgba(74, 127, 174, 0.035),
            rgba(255, 255, 255, 0.015)
        );
}


/* ============================================================
   ЗАГОЛОВКИ «ИЗНАЧАЛЬНО» / «ПОСЛЕ»
   ============================================================ */

.genetic-split-item > span {
    display: block;

    margin-bottom: 9px;

    color: var(--accent-red);

    font-size: 0.66rem;
    font-weight: 600;

    letter-spacing: 0.15em;

    line-height: 1.4;
}

.genetic-split-item:last-child > span {
    color: var(--accent-blue);
}


/* ============================================================
   ТЕКСТ
   ============================================================ */

.genetic-split-item p {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.84rem;

    line-height: 1.7;
}


/* ============================================================
   ПЛЮС ПО ЦЕНТРУ
   ============================================================ */

.genetic-split-divider {
    display: flex;

    align-items: center;
    justify-content: center;

    align-self: center;

    width: 42px;
    height: 42px;

    margin: 0 auto;

    border:
        1px solid
        rgba(255, 255, 255, 0.07);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.025);

    color: var(--text-muted);

    font-size: 1rem;
    font-weight: 400;

    line-height: 1;

    box-sizing: border-box;
}


/* ============================================================
   МОБИЛЬНЫЙ
   ============================================================ */

@media (max-width: 700px) {

    .genetic-split {
        grid-template-columns: 1fr;

        gap: 10px;
    }

    .genetic-split-item {
        padding: 17px 18px;
    }

    .genetic-split-divider {
        width: 38px;
        height: 38px;
    }

}


/* ============================================================
   SUMMARY — КРАТКО
   ============================================================ */

.genetic-summary {
    position: relative;

    margin-top: 8px;
    margin-bottom: 25px;

    padding: 30px;

    overflow: hidden;

    border:
        1px solid
        rgba(179, 74, 74, 0.14);

    border-radius: var(--radius-large);

    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(179, 74, 74, 0.075),
            transparent 50%
        ),
        radial-gradient(
            circle at 100% 100%,
            rgba(74, 127, 174, 0.055),
            transparent 50%
        ),
        rgba(20, 18, 22, 0.72);

    box-shadow:
        0 16px 35px rgba(0, 0, 0, 0.2);
}

.genetic-summary::after {
    content: "DNA";

    position: absolute;

    right: 25px;
    top: 15px;

    color:
        rgba(179, 74, 74, 0.055);

    font-size: 4rem;
    font-weight: 700;

    letter-spacing: 0.05em;

    pointer-events: none;
}

.genetic-summary-header {
    position: relative;

    z-index: 1;

    margin-bottom: 25px;

    text-align: center;
}

.genetic-summary-header > span {
    display: block;

    margin-bottom: 8px;

    color: var(--accent-red);

    font-size: 0.63rem;
    font-weight: 600;

    letter-spacing: 0.18em;

    opacity: 0.8;
}

.genetic-summary-header h2 {
    margin: 0;

    color: var(--text-main);

    font-size: 1.35rem;
    font-weight: 500;
}


/* ============================================================
   SUMMARY GRID
   ============================================================ */

.genetic-summary-grid {
    position: relative;

    z-index: 1;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;
}

.genetic-summary-item {
    min-width: 0;

    padding: 19px;

    border:
        1px solid
        rgba(255, 255, 255, 0.045);

    border-radius: var(--radius-medium);

    background:
        rgba(255, 255, 255, 0.018);

    transition:
        transform 250ms ease,
        border-color 250ms ease,
        background-color 250ms ease;
}

.genetic-summary-item:hover {
    transform: translateY(-3px);

    border-color:
        rgba(179, 74, 74, 0.2);

    background:
        rgba(179, 74, 74, 0.03);
}

.genetic-summary-item > span {
    display: block;

    margin-bottom: 10px;

    color: var(--accent-blue);

    font-size: 0.67rem;
    font-weight: 600;

    letter-spacing: 0.08em;
}

.genetic-summary-item h3 {
    margin: 0 0 7px;

    color: var(--text-main);

    font-size: 0.88rem;
    font-weight: 500;

    line-height: 1.4;
}

.genetic-summary-item p {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.79rem;

    line-height: 1.6;
}


/* ============================================================
   ФИНАЛ
   ============================================================ */

.genetic-ending {
    max-width: 820px;

    margin: 8px auto 0;

    padding:
        32px
        20px
        20px;

    text-align: center;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.055);
}

.genetic-ending > span {
    display: block;

    margin-bottom: 12px;

    color: var(--accent-red);

    font-size: 0.65rem;
    font-weight: 600;

    letter-spacing: 0.2em;

    opacity: 0.75;
}

.genetic-ending h2 {
    margin: 0 0 15px;

    color: var(--text-main);

    font-size: 1.45rem;
    font-weight: 500;

    line-height: 1.5;
}

.genetic-ending p {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.9rem;

    line-height: 1.75;
}


/* ============================================================
   ПЛАНШЕТ
   ============================================================ */

@media (max-width: 1000px) {

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

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

}


/* ============================================================
   МОБИЛЬНЫЙ
   ============================================================ */

@media (max-width: 700px) {

    .genetic-header {
        margin-top: 30px;
        margin-bottom: 25px;
    }

    .genetic-header h1 {
        font-size: 2rem;
    }

    .genetic-intro {
        font-size: 0.88rem;
        line-height: 1.7;
    }

    .genetic-section {
        grid-template-columns: 1fr;

        gap: 16px;

        padding: 22px 20px;

        margin-bottom: 16px;
    }

    .genetic-section-number {
        width: 44px;
        height: 44px;

        font-size: 0.65rem;
    }

    .genetic-section-content h2 {
        font-size: 1.25rem;
    }

    .genetic-section-content p {
        font-size: 0.87rem;

        line-height: 1.7;
    }

    .genetic-properties {
        grid-template-columns: 1fr;

        gap: 10px;
    }

    .genetic-property {
        padding: 15px;
    }

    .genetic-split {
        grid-template-columns: 1fr;

        gap: 10px;
    }

    .genetic-split-divider {
        margin: 0 auto;
    }

    .genetic-summary {
        padding: 23px 20px;
    }

    .genetic-summary-grid {
        grid-template-columns: 1fr;

        gap: 10px;
    }

    .genetic-summary-item {
        padding: 16px;
    }

    .genetic-ending {
        padding:
            27px
            10px
            15px;
    }

    .genetic-ending h2 {
        font-size: 1.25rem;
    }

    .genetic-ending p {
        font-size: 0.86rem;
    }

}


/* ============================================================
   СОВСЕМ МАЛЕНЬКИЙ ЭКРАН
   ============================================================ */

@media (max-width: 450px) {

    .genetic-header h1 {
        font-size: 1.75rem;
    }

    .genetic-section {
        padding: 19px 16px;
    }

    .genetic-summary {
        padding: 20px 16px;
    }

    .genetic-summary-header h2 {
        font-size: 1.2rem;
    }

}
