/* =========================================================
   isemyon.ru — Liquid Glass UI
   Full style.css (checked)
   ========================================================= */

/* =========================
   1. ROOT TOKENS
   ========================= */
:root {
    --bg-main:
        radial-gradient(circle at 12% 18%, rgba(203, 17, 171, 0.16), transparent 26%),
        radial-gradient(circle at 86% 14%, rgba(102, 81, 255, 0.14), transparent 24%),
        radial-gradient(circle at 50% 78%, rgba(70, 112, 255, 0.08), transparent 26%),
        linear-gradient(180deg, #090a0f 0%, #0e1017 48%, #090a10 100%);

    --bg-solid: #090a10;
    --bg-elevated: rgba(255, 255, 255, 0.04);
    --bg-elevated-strong: rgba(255, 255, 255, 0.08);

    --text-primary: rgba(255, 255, 255, 0.96);
    --text-secondary: rgba(255, 255, 255, 0.72);
    --text-muted: rgba(255, 255, 255, 0.54);

    --card-bg: rgba(255, 255, 255, 0.07);
    --card-bg-strong: rgba(255, 255, 255, 0.10);
    --card-bg-dense: rgba(14, 16, 23, 0.88);

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

    --accent-wb: #cb11ab;
    --accent-wb-hover: #e13ac2;
    --accent-wb-soft: rgba(203, 17, 171, 0.18);
    --accent-wb-glow: rgba(203, 17, 171, 0.34);

    --accent-blue: #6a7dff;
    --accent-blue-soft: rgba(106, 125, 255, 0.18);

    --success: #00c48c;
    --success-soft: rgba(0, 196, 140, 0.18);

    --font-main: 'Inter', sans-serif;

    --space-2xs: 4px;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 88px;
    --space-5xl: 120px;

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-2xl: 40px;
    --radius-pill: 999px;

    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.24);
    --shadow-medium: 0 18px 60px rgba(0, 0, 0, 0.28);
    --shadow-glass: 0 8px 30px rgba(0, 0, 0, 0.18);
    --shadow-glow: 0 0 34px rgba(203, 17, 171, 0.16);

    --container-width: 1200px;
    --container-narrow: 860px;

    --transition-fast: 0.2s ease;
    --transition-base: 0.28s ease;
    --transition-slow: 0.4s ease;
}

/* =========================
   2. RESET
   ========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-main);
    background: var(--bg-main);
    background-color: var(--bg-solid);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-width: 320px;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition:
        color var(--transition-base),
        border-color var(--transition-base),
        opacity var(--transition-base),
        transform var(--transition-base),
        box-shadow var(--transition-base);
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
}

/* =========================
   3. UTILITIES
   ========================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.container-narrow {
    width: 100%;
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.section-space {
    padding: var(--space-5xl) 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 700;
    margin-bottom: 18px;
    text-align: center;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.12rem);
    line-height: 1.7;
    text-align: center;
    color: var(--text-secondary);
    max-width: 760px;
    margin: 0 auto 40px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    margin-bottom: 16px;
}

.section-head {
    text-align: center;
    margin-bottom: 42px;
}

.glass-panel,
.glass-card,
.glass-chip,
.glass-photo-frame,
.btn-glass {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.glass-panel,
.glass-card,
.glass-photo-frame {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.glass-panel {
    border-radius: var(--radius-xl);
}

.glass-card {
    border-radius: var(--radius-lg);
}

.dense-card {
    background: var(--card-bg-dense);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-lg);
}

/* =========================
   4. BUTTONS
   ========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 16px;
    font-weight: 600;
    line-height: 1;
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base),
        background var(--transition-base),
        border-color var(--transition-base),
        color var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(180deg, #d81db7 0%, #b10f95 100%);
    box-shadow:
        0 12px 30px rgba(203, 17, 171, 0.26),
        0 0 24px rgba(203, 17, 171, 0.18);
}

.btn-primary:hover,
.btn-primary:focus-visible,
a.btn-primary:hover,
a.btn-primary:focus-visible {
    color: #ffffff;
    transform: translateY(-2px);
    background: linear-gradient(180deg, #e43bc5 0%, #bf179f 100%);
    box-shadow:
        0 16px 36px rgba(203, 17, 171, 0.32),
        0 0 30px rgba(203, 17, 171, 0.22);
}

.btn-secondary,
.btn-glass {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover,
.btn-glass:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
    border-color: rgba(203, 17, 171, 0.44);
    box-shadow: 0 0 26px rgba(203, 17, 171, 0.14);
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-weight: 600;
}

.btn-link:hover {
    color: var(--accent-wb-hover);
}

/* =========================
   5. HEADER
   ========================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 14px 0;
    background: transparent;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-radius: 24px;
    padding: 12px 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.logo {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    flex-shrink: 0;
}

.logo:hover {
    color: var(--accent-wb-hover);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.main-nav a:hover {
    color: var(--accent-wb-hover);
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-wb), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-base);
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* =========================
   HAMBURGER / MOBILE NAV
   ========================= */
.hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.15rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.hamburger:hover {
    border-color: rgba(203, 17, 171, 0.44);
    box-shadow: 0 0 18px rgba(203, 17, 171, 0.12);
}

.nav-close {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.3rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1200;
    flex-shrink: 0;
}

.nav-tg-btn {
    display: none;
}

/* =========================
   6. CONTACT ITEMS / COPY EMAIL
   ========================= */
.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    color: var(--text-secondary);
    cursor: pointer;
    transition:
        color var(--transition-base),
        transform var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base);
}

.header-contacts .contact-item {
    min-height: 40px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.contact-item:hover {
    color: var(--accent-wb-hover);
}

.header-contacts .contact-item:hover {
    border-color: rgba(203, 17, 171, 0.42);
    box-shadow: 0 0 18px rgba(203, 17, 171, 0.12);
}

.contact-icon {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-text {
    font-size: 0.95rem;
    line-height: 1.2;
}

.copy-tooltip {
    position: absolute;
    top: -36px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(17, 18, 26, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #ffffff;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
    box-shadow: var(--shadow-glass);
}

.copy-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

/* =========================
   7. HERO
   ========================= */
.hero-section {
    position: relative;
    padding: 80px 0 72px;
    overflow: hidden;
}

.background-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.9) 35%, transparent 82%);
    opacity: 0.28;
    pointer-events: none;
}

.hero-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.hero-orb-1 {
    width: 280px;
    height: 280px;
    top: 40px;
    left: -40px;
    background: rgba(203, 17, 171, 0.22);
}

.hero-orb-2 {
    width: 240px;
    height: 240px;
    top: 20px;
    right: 8%;
    background: rgba(106, 125, 255, 0.16);
}

.hero-orb-3 {
    width: 320px;
    height: 320px;
    right: 20%;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: stretch;
}

.hero-content {
    padding: 36px;
    height: 100%;
    box-sizing: border-box;
}

.hero-badge,
.fact-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.hero-badge {
    margin-bottom: 18px;
}

.hero-name {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 10px;
}

.hero-title,
.hero-text-content h1 {
    font-size: clamp(2.5rem, 4vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 700;
    margin-bottom: 18px;
    max-width: 13ch;
}

.hero-subtitle {
    font-size: 1.18rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
    margin-bottom: 12px;
}

.hero-description {
    font-size: 1.06rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin-bottom: 28px;
}

.hero-actions,
.case-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-actions {
    margin-bottom: 24px;
}

.hero-facts,
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fact-chip {
    justify-content: flex-start;
}

.hero-image-wrapper,
.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.glass-photo-frame {
    position: relative;
    padding: 14px;
    border-radius: 36px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        var(--shadow-medium),
        0 0 56px rgba(203, 17, 171, 0.14);
}

.glass-photo-frame::before {
    content: "";
    position: absolute;
    inset: -20px;
    z-index: -1;
    border-radius: 40px;
    background: radial-gradient(circle, rgba(203, 17, 171, 0.22) 0%, transparent 62%);
    filter: blur(26px);
}

.profile-photo,
.hero-photo {
    width: min(100%, 390px);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: none;
    transform: none;
}

.profile-photo:hover {
    transform: none;
}

.product-screenshot {
    width: 100%;
    max-width: 360px;
    max-height: 320px;
    height: auto;
    object-fit: contain;
    border-radius: 24px;
    box-shadow: none;
    transform: none;
}

/* =========================
   8. GENERIC SECTIONS
   ========================= */
.about-section,
.projects-section,
.skills-section,
.fast-ads-section,
.telegram-section {
    padding: var(--space-5xl) 0;
    position: relative;
}

.about-content {
    max-width: 820px;
    margin: 0 auto;
}

.about-content p,
.case-details p,
.instruction-page p,
.page-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.72;
}

.about-content ul,
.page-content ul,
.page-content ol,
.instruction-page ul,
.instruction-page ol {
    margin: 16px 0 0 0;
    padding-left: 20px;
    color: var(--text-secondary);
}

.about-content li,
.page-content li,
.instruction-page li {
    margin-bottom: 8px;
}

/* =========================
   9. CASES / PROJECTS
   ========================= */
.case-card {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    gap: 32px;
    padding: 28px;
    margin-bottom: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base),
        border-color var(--transition-base);
}

.case-card:hover {
    transform: translateY(-4px);
    border-color: rgba(203, 17, 171, 0.24);
    box-shadow:
        var(--shadow-medium),
        0 0 28px rgba(203, 17, 171, 0.10);
}

.case-card.reverse {
    direction: rtl;
}

.case-card.reverse > * {
    direction: ltr;
}

.case-category {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--text-secondary);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}

.case-header h3 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.case-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.metric {
    min-width: 140px;
}

.metric-label {
    display: block;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.metric-text {
    color: var(--text-primary);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.3;
}

.metric-text.highlight {
    color: var(--accent-wb-hover);
}

.metric-text.text-ozon {
    color: #8fa0ff;
}

.case-details strong {
    color: var(--text-primary);
}

.case-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 20px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.case-visual.full-image {
    padding: 0;
    overflow: hidden;
}

.case-visual.full-image img,
.case-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
    box-shadow: none;
}

.fast-ads-img {
    object-fit: contain;
}

/* =========================
   10. SKILLS / TAGS
   ========================= */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 860px;
    margin: 0 auto;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.11);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: var(--shadow-glass);
    transition:
        transform var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base);
}

.skill-tag:hover {
    transform: translateY(-2px);
    border-color: rgba(203, 17, 171, 0.38);
    box-shadow: 0 0 22px rgba(203, 17, 171, 0.12);
}

/* =========================
   11. TELEGRAM / SOCIAL
   ========================= */
.telegram-section {
    padding-top: 0;
}

.tg-card {
    padding: 32px;
    border-radius: 32px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
    text-align: center;
}

.tg-content {
    max-width: 760px;
    margin: 0 auto 28px;
}

.tg-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.tg-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.tg-link {
    color: var(--text-primary);
    font-weight: 600;
}

.tg-link:hover {
    color: var(--accent-wb-hover);
}

.tg-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 16px;
    background: linear-gradient(180deg, #d81db7 0%, #b10f95 100%);
    color: #ffffff;
    font-weight: 600;
    box-shadow:
        0 12px 30px rgba(203, 17, 171, 0.26),
        0 0 24px rgba(203, 17, 171, 0.18);
}

.tg-button:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.tg-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 24px;
}

.tg-carousel-track {
    display: flex;
    width: 100%;
    height: 520px;
    transition: transform 0.5s ease-in-out;
}

.tg-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.tg-slide img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tg-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(13, 14, 20, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition:
        transform var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base);
}

.tg-nav-btn:hover {
    transform: translateY(-50%) scale(1.04);
    border-color: rgba(203, 17, 171, 0.4);
    box-shadow: 0 0 20px rgba(203, 17, 171, 0.14);
}

.tg-nav-btn.prev { left: 12px; }
.tg-nav-btn.next { right: 12px; }

/* =========================
   12. FOOTER
   ========================= */
.site-footer {
    padding: 40px 0 28px;
    background: rgba(6, 7, 11, 0.72);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    padding-bottom: 22px;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.footer-logo {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.footer-logo:hover {
    color: var(--accent-wb-hover);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: var(--accent-wb-hover);
}

/* Footer contacts — SVG icon alignment */
.footer-contacts .contact-item {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    min-height: unset;
    border: none;
    background: none;
    border-radius: 0;
}

.footer-contacts .contact-item:hover {
    color: var(--accent-wb-hover);
    border-color: transparent;
    box-shadow: none;
}

.footer-contacts .contact-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    opacity: 0.7;
}

/* Footer socials */
.footer-socials {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-socials-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition-base);
}

.social-link:hover {
    color: var(--accent-wb-hover);
}

.social-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    opacity: 0.75;
}

/* Footer legal bar */
.footer-legal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-legal-text {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
}

.footer-legal-links a {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-legal-links a:hover {
    color: var(--accent-wb-hover);
}

.copyright-text {
    margin-top: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.86rem;
}

/* =========================
   13. COOKIE BANNER
   ========================= */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%) translateY(120px);
    z-index: 1200;
    opacity: 0;
    width: calc(100% - 24px);
    max-width: 520px;
    padding: 14px 18px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(18, 20, 28, 0.92) 0%, rgba(14, 15, 22, 0.90) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition:
        opacity 0.45s ease,
        transform 0.45s ease;
}

.cookie-banner.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.cookie-banner.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    pointer-events: none;
}

.cookie-banner p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.55;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    text-align: center;
}

.cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    background: linear-gradient(180deg, #d81db7 0%, #b10f95 100%);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(203, 17, 171, 0.24);
}

.cookie-btn:hover {
    color: #ffffff;
    background: linear-gradient(180deg, #e43bc5 0%, #bf179f 100%);
}

/* =========================
   14. LEGAL / INNER PAGES
   ========================= */
.page-content,
.instruction-page {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    margin-top: 28px;
    margin-bottom: 40px;
}

.page-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    margin-bottom: 20px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--text-secondary);
    font-weight: 500;
}

.back-link:hover {
    color: var(--accent-wb-hover);
    border-color: rgba(203, 17, 171, 0.38);
}

.step-list {
    list-style: none;
    counter-reset: step;
    margin-top: 28px;
}

.step-item {
    position: relative;
    padding-left: 56px;
    margin-bottom: 34px;
}

.step-item::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(180deg, #d81db7 0%, #b10f95 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(203, 17, 171, 0.22);
}

.step-title {
    font-size: 1.18rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.step-desc {
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.step-image {
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: var(--shadow-glass);
    margin-top: 10px;
}

/* =========================
   15. ARTICLES / SOCIAL / SERVICES
   ========================= */
.articles-section,
.socials-section,
.services-section,
.cta-section {
    padding: var(--space-5xl) 0;
}

.articles-grid,
.socials-grid,
.services-grid,
.expertise-grid,
.approach-grid {
    display: grid;
    gap: 18px;
}

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

.socials-grid,
.services-grid,
.expertise-grid,
.approach-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-card,
.social-card,
.service-card,
.expertise-card,
.approach-card,
.metric-card {
    height: 100%;
    padding: 24px;
    border-radius: 24px;
    transition:
        transform var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base);
}

.article-card,
.service-card {
    background: rgba(15, 17, 24, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
}

.social-card,
.expertise-card,
.approach-card,
.metric-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.article-card:hover,
.social-card:hover,
.service-card:hover,
.expertise-card:hover,
.approach-card:hover,
.metric-card:hover {
    transform: translateY(-4px);
    border-color: rgba(203, 17, 171, 0.22);
    box-shadow:
        var(--shadow-medium),
        0 0 22px rgba(203, 17, 171, 0.10);
}

.card-title {
    font-size: 1.2rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.7;
}

.card-meta {
    color: var(--text-muted);
    font-size: 0.86rem;
    margin-bottom: 10px;
}

.case-result {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: var(--radius-pill);
    background: rgba(203, 17, 171, 0.12);
    color: #ffd5f7;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 16px;
}

/* =========================
   16. CTA BLOCK
   ========================= */
.cta-shell {
    padding: 32px;
    border-radius: 32px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        var(--shadow-medium),
        0 0 34px rgba(203, 17, 171, 0.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    text-align: center;
}

.cta-shell .section-title {
    margin-bottom: 12px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* =========================
   17. LINKS / FOCUS
   ========================= */
a:hover:not(.btn):not(.btn-primary):not(.btn-secondary):not(.btn-glass):not(.tg-button):not(.btn-buy) {
    color: var(--accent-wb-hover);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid rgba(203, 17, 171, 0.5);
    outline-offset: 3px;
    border-radius: 12px;
}

/* =========================
   18. RESPONSIVE
   ========================= */
@media (max-width: 1180px) {
    .container,
    .container-narrow {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-content { order: 1; }
    .hero-visual,
    .hero-image-wrapper { order: 2; }

    .hero-title,
    .hero-text-content h1 {
        max-width: 12ch;
    }

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

@media (max-width: 1024px) {
    .header-contacts {
        justify-content: flex-end;
    }

    .case-card,
    .case-card.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .case-visual {
        min-height: 240px;
        order: -1;
    }

    .socials-grid,
    .services-grid,
    .expertise-grid,
    .approach-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tg-carousel-track {
        height: 420px;
    }

    .footer-content {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .section-space,
    .about-section,
    .projects-section,
    .skills-section,
    .fast-ads-section,
    .telegram-section,
    .articles-section,
    .socials-section,
    .services-section,
    .cta-section {
        padding: 72px 0;
    }

    .site-header {
        padding: 10px 0;
    }

    .header-container {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 12px;
        border-radius: 20px;
        padding: 12px 14px;
    }

    .logo {
        font-size: 1rem;
        width: auto;
        text-align: left;
    }

    .header-contacts {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Mobile nav overlay */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        min-height: 100vh;
        z-index: 1100;
        background: rgba(9, 10, 16, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        order: unset;
        display: none;
        overflow-y: auto;
    }

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

    .main-nav a {
        font-size: 1.6rem;
        font-weight: 600;
        color: var(--text-primary);
    }

    .main-nav a::after {
        display: none;
    }

    .nav-close {
        display: flex;
    }

    .nav-tg-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 52px;
        padding: 0 24px;
        border-radius: 16px;
        background: linear-gradient(180deg, #d81db7 0%, #b10f95 100%);
        color: #fff;
        font-weight: 600;
        font-size: 1rem;
        box-shadow: 0 12px 30px rgba(203, 17, 171, 0.28);
        margin-top: 8px;
        text-decoration: none;
    }

    .hero-section {
        padding: 48px 0 40px;
    }

    .hero-content {
        padding: 22px;
        border-radius: 24px;
    }

    .hero-title,
    .hero-text-content h1 {
        font-size: clamp(2rem, 10vw, 3.1rem);
        max-width: none;
        margin-bottom: 14px;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.65;
        margin-bottom: 22px;
    }

    .hero-actions,
    .case-actions,
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-glass,
    .tg-button {
        width: 100%;
    }

    .hero-facts,
    .hero-stats {
        flex-direction: column;
        align-items: stretch;
    }

    .fact-chip,
    .hero-stats .stat-item {
        width: 100%;
        justify-content: flex-start;
    }

    .glass-photo-frame {
        padding: 10px;
        border-radius: 24px;
    }

    .profile-photo,
    .hero-photo {
        width: min(100%, 300px);
        border-radius: 20px;
    }

    .product-screenshot {
        max-width: 280px;
        max-height: 240px;
    }

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

    .section-subtitle {
        margin-bottom: 28px;
    }

    .case-card {
        padding: 20px;
        gap: 20px;
        border-radius: 24px;
    }

    .case-header h3 {
        font-size: 1.7rem;
    }

    .case-metrics {
        gap: 12px;
    }

    .case-visual {
        min-height: 200px;
        padding: 16px;
    }

    .skills-grid {
        gap: 10px;
    }

    .skill-tag {
        width: 100%;
        justify-content: center;
    }

    .tg-card {
        padding: 22px;
        border-radius: 24px;
    }

    .tg-carousel-track {
        height: 340px;
    }

    .tg-title {
        font-size: 1.7rem;
    }

    .articles-grid,
    .socials-grid,
    .services-grid,
    .expertise-grid,
    .approach-grid {
        grid-template-columns: 1fr;
    }

    .page-content,
    .instruction-page {
        padding: 26px 16px 48px;
        border-radius: 22px;
    }

    .step-item {
        padding-left: 50px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-contacts,
    .footer-links,
    .footer-socials {
        align-items: center;
    }

    .footer-legal {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
    }

    .cookie-banner {
        bottom: 12px;
        width: calc(100% - 16px);
        padding: 12px 14px;
    }
}

@media (max-width: 480px) {
    .container,
    .container-narrow {
        padding-left: 14px;
        padding-right: 14px;
    }

    .header-container {
        padding: 10px 12px;
    }

    .hero-content,
    .tg-card,
    .cta-shell,
    .article-card,
    .social-card,
    .service-card,
    .expertise-card,
    .approach-card,
    .metric-card {
        padding: 18px;
    }

    .hero-badge,
    .fact-chip,
    .section-label {
        font-size: 0.84rem;
        min-height: 38px;
        padding: 0 12px;
    }

    .btn {
        min-height: 48px;
        padding: 0 18px;
        font-size: 0.95rem;
    }

    .tg-carousel-track {
        height: 290px;
    }

    .tg-nav-btn {
        width: 40px;
        height: 40px;
    }

    .case-header h3 {
        font-size: 1.5rem;
    }

    .page-title {
        font-size: 1.65rem;
    }
}