/* ============================================================
   TStudios — Modern premium redesign
   ============================================================ */

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

:root {
    /* ===== Base ===== */
    --bg: #0a0e1a;
    --bg-deep: #060913;
    --bg-elevated: #111827;
    --bg-card: #131a2c;

    /* ===== Brand ===== */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.4);

    --cyan: #22d3ee;
    --cyan-light: #67e8f9;
    --cyan-glow: rgba(34, 211, 238, 0.35);

    --pink: #ec4899;
    --pink-light: #f472b6;
    --pink-glow: rgba(236, 72, 153, 0.35);

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --purple: #a855f7;

    /* ===== Text ===== */
    --text: #f1f5f9;
    --text-soft: #cbd5e1;
    --text-muted: #64748b;

    /* ===== Borders ===== */
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);

    /* ===== Shadows ===== */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 12px 40px -8px var(--primary-glow);

    /* ===== Radii ===== */
    --radius-sm: 12px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;

    /* ===== Layout ===== */
    --container: 1200px;
    --gutter: 20px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    padding-top: 90px;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 900px 500px at 15% 0%, rgba(99, 102, 241, 0.18), transparent 60%),
        radial-gradient(ellipse 800px 500px at 85% 20%, rgba(34, 211, 238, 0.1), transparent 60%),
        radial-gradient(ellipse 700px 500px at 50% 100%, rgba(236, 72, 153, 0.08), transparent 60%);
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 80%);
    pointer-events: none;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }

::selection { background: var(--primary); color: #fff; }

:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    position: relative;
    cursor: pointer;
}

.btn:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 3px; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -6px rgba(99, 102, 241, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

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

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.24);
    transform: translateY(-2px);
}

.btn-large { padding: 16px 36px; font-size: 1.02rem; border-radius: var(--radius); }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }

.btn-discord {
    background: linear-gradient(135deg, #5865F2, #4752c4) !important;
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.btn-discord:hover:not(:disabled) {
    box-shadow: 0 12px 32px -6px rgba(88, 101, 242, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.btn:disabled, .btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.5);
    box-shadow: none !important;
    transform: none !important;
}

/* ============================================================
   Section titles
   ============================================================ */

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.15;
    background: linear-gradient(180deg, #fff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-soft);
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto 56px;
    line-height: 1.6;
}

/* ============================================================
   Header
   ============================================================ */

.header {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: var(--container);
    z-index: 1000;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    background: rgba(10, 14, 26, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    transition: padding 0.3s, background 0.3s, box-shadow 0.3s;
}

.header.scrolled {
    top: 8px;
    padding: 8px 20px;
    background: rgba(10, 14, 26, 0.85);
    box-shadow: var(--shadow);
}

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

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

.logo-img {
    height: 36px;
    width: auto;
    filter: drop-shadow(0 0 16px rgba(99, 102, 241, 0.5));
    border-radius: 8px;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 50%, var(--cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav ul {
    display: flex;
    gap: 4px;
    list-style: none;
}

.main-nav a {
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
    transform: scale(1.05);
}

.hamburger {
    display: none;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
}

/* ============================================================
   Hero
   ============================================================ */

.hero { padding: 40px 0 80px; position: relative; }

.hero-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-text { padding: 8px; animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1); }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary-light);
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-badge i { color: var(--warning); }

.hero-text h1 {
    font-size: clamp(2.75rem, 7vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #c7d2fe 40%, #67e8f9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-soft);
    margin-bottom: 12px;
    line-height: 1.45;
    font-weight: 500;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.7;
    max-width: 520px;
}

.highlight { color: var(--cyan); font-weight: 600; }

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

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 32px;
    max-width: 560px;
}

.stat-item {
    background: var(--bg-elevated);
    padding: 18px 16px;
    text-align: left;
    transition: background 0.2s;
}

.stat-item:hover { background: var(--bg-card); }

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary-light), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.hero-visual {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(34, 211, 238, 0.08));
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s backwards;
}

.hero-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(99, 102, 241, 0.4), transparent 60%);
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.hero-visual img {
    position: relative;
    z-index: 1;
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2.4s infinite;
}

.scroll-indicator a {
    color: var(--text-muted);
    font-size: 1.4rem;
    transition: color 0.2s;
}

.scroll-indicator a:hover { color: var(--primary-light); }

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* ============================================================
   Services (карточки-услуги) — теперь <a> вместо <div>
   ============================================================ */

.services { padding: 80px 0; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 780px;
    margin: 0 auto;
}

.service-card {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s, border-color 0.3s;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    display: block;
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px -12px rgba(99, 102, 241, 0.4), var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.5);
}

.service-card:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 4px; }
.service-card:active { transform: translateY(-3px) scale(0.99); }

.service-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-bg { transform: scale(1.06); }

.service-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(6, 9, 19, 0.98) 0%, rgba(6, 9, 19, 0.8) 35%, rgba(6, 9, 19, 0.1) 70%, transparent 100%);
}

.service-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
}

.service-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.service-content h3 {
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    color: #fff;
    line-height: 1.15;
}

.service-content p {
    font-size: 0.9rem;
    color: var(--text-soft);
    line-height: 1.5;
    opacity: 0.9;
}

.service-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-light);
    transition: gap 0.2s;
}

.service-card:hover .service-cta { gap: 10px; }

/* Кнопка «Поделиться» в карточках */
.service-share {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 4;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 20, 32, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.service-share:hover {
    background: var(--primary);
    border-color: transparent;
    transform: scale(1.08);
}

/* ============================================================
   Calculator
   ============================================================ */

.calculator { padding: 80px 0; }

.calculator-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 36px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: var(--shadow-lg);
}

.calc-row { display: flex; flex-direction: column; gap: 10px; }

.calc-row > label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-soft);
    letter-spacing: -0.005em;
}

.calc-options { display: flex; gap: 8px; flex-wrap: wrap; }

.calc-opt {
    flex: 1;
    min-width: 110px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.calc-opt:hover:not(.active) {
    background: var(--bg-elevated);
    border-color: var(--border-strong);
    color: var(--text);
}

.calc-opt.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 1px var(--primary), 0 4px 20px -4px rgba(99, 102, 241, 0.4);
}

.calc-slider { display: flex; align-items: center; gap: 20px; }

.calc-slider input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.calc-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    cursor: pointer;
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.6);
    border: 2px solid #fff;
}

.calc-slider input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    cursor: pointer;
    border: 2px solid #fff;
}

.calc-slider-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    white-space: nowrap;
    min-width: 130px;
    text-align: right;
}

.calc-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(34, 211, 238, 0.06));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-soft);
    gap: 16px;
    flex-wrap: wrap;
}

.calc-total-price {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--primary-light), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.calc-order-btn { width: 100%; }

.calc-row[hidden] { display: none !important; }

/* ============================================================
   How we work
   ============================================================ */

.how { padding: 80px 0; }

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

.how-step {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
    background: var(--bg-elevated);
}

.how-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px -12px rgba(99, 102, 241, 0.35);
    border-color: rgba(99, 102, 241, 0.4);
}

.how-step-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.5s;
}

.how-step:hover .how-step-bg { transform: scale(1.06); }

.how-step-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(6, 9, 19, 0.98) 0%, rgba(6, 9, 19, 0.7) 40%, transparent 100%);
}

.how-step-number {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 2;
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: rgba(255, 255, 255, 0.15);
    line-height: 1;
}

.how-step-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 22px;
}

.how-step-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.35;
}

.how-step-content h3 i {
    color: var(--primary-light);
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* ============================================================
   About
   ============================================================ */

.about { padding: 80px 0; }

.about-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: center;
    padding: 36px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    max-width: 960px;
    margin: 0 auto;
}

.about-photo {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(34, 211, 238, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    transition: transform 0.4s;
    position: relative;
    z-index: 1;
}

.about-photo:hover img { transform: scale(1.04) translateY(-4px); }

.about-info h3 {
    font-size: 1.85rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.about-role { font-size: 0.9rem; color: var(--primary-light); font-weight: 500; margin-bottom: 18px; }
.about-text { color: var(--text-soft); font-size: 0.95rem; line-height: 1.7; margin-bottom: 14px; }
.about-text strong { color: var(--text); font-weight: 600; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

.about-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--primary-light);
    font-size: 0.82rem;
    font-weight: 500;
}

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

/* ============================================================
   Gallery (бесшовная лента картинок)
   ============================================================ */

.gallery { padding: 80px 0; }

.carousel-block { margin-bottom: 32px; position: relative; }

.carousel-viewport {
    overflow: hidden;
    position: relative;
    padding: 12px 0;
    cursor: grab;
    user-select: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, black 60px, black calc(100% - 60px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, black 60px, black calc(100% - 60px), transparent 100%);
}

.carousel-viewport:active { cursor: grabbing; }

.carousel-track {
    display: flex;
    gap: 0;
    will-change: transform;
    padding: 4px 0;
}

/* Карточка без рамок — только картинка */
.carousel-card {
    flex: 0 0 auto;
    width: 200px;
    aspect-ratio: 1;
    position: relative;
    border-radius: 0;
    background: transparent;
    border: none;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.carousel-card:hover { transform: scale(1.05); }

.carousel-card .carousel-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    margin: 0;
}

.carousel-card .carousel-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    opacity: 0;
    transition: transform 0.4s, opacity 0.4s;
}

.carousel-card .carousel-img-wrapper img.loaded { opacity: 1; }
.carousel-card:hover .carousel-img-wrapper img { transform: scale(1.06); }

/* Всю текстовую инфу прячем — она только в лайтбоксе */
.carousel-card .carousel-info,
.carousel-card .carousel-author {
    display: none;
}

/* Skeleton */
.skeleton {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s infinite;
}

.skeleton.hidden { display: none; }

@keyframes skeletonShimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

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

.faq { padding: 80px 0; }

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

.faq-item {
    border-radius: var(--radius);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:hover { border-color: var(--border-strong); }
.faq-item.open { border-color: rgba(99, 102, 241, 0.4); box-shadow: 0 12px 32px -8px rgba(99, 102, 241, 0.2); }

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: transparent;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-question:hover { background: rgba(255, 255, 255, 0.02); }
.faq-question i { color: var(--primary-light); transition: transform 0.3s; font-size: 0.95rem; flex-shrink: 0; }
.faq-item.open .faq-question i { transform: rotate(180deg); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.3s; padding: 0 24px; }
.faq-item.open .faq-answer { max-height: 400px; padding: 0 24px 22px; }
.faq-answer p { color: var(--text-soft); font-size: 0.94rem; line-height: 1.7; }

/* ============================================================
   Reviews
   ============================================================ */

.reviews { padding: 80px 0; }

.reviews-slider { position: relative; max-width: 800px; margin: 0 auto; min-height: 240px; }

.review-card {
    padding: 36px 40px;
    display: none;
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    animation: fadeIn 0.4s ease;
}

.review-card.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.review-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.review-header-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.reviewer-name { font-size: 1.1rem; font-weight: 700; color: var(--primary-light); }

.review-service {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.14);
    border: 1px solid rgba(99, 102, 241, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.review-service[data-service="Рендер"] {
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.14);
    border-color: rgba(34, 211, 238, 0.4);
}

.stars { color: var(--warning); letter-spacing: 3px; font-size: 1rem; }
.review-text { font-size: 1rem; color: var(--text-soft); font-style: italic; line-height: 1.7; }

.slider-controls { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 28px; }

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-strong);
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--primary);
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: 0 8px 24px -4px rgba(99, 102, 241, 0.5);
}

.slider-dots { display: flex; gap: 6px; align-items: center; }

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.slider-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
}

/* ============================================================
   Join
   ============================================================ */

.join { padding: 80px 0; }

.join-wrapper {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    padding: 40px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    align-items: center;
}

.join-info { position: relative; z-index: 1; }

.join-icon {
    width: 68px;
    height: 68px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(34, 211, 238, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-light);
    margin-bottom: 20px;
    box-shadow: 0 0 32px rgba(99, 102, 241, 0.25);
}

.join-info h3 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 900;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--primary-light), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.join-info > p { color: var(--text-soft); font-size: 0.96rem; line-height: 1.7; margin-bottom: 20px; }

.join-requirements { list-style: none; margin-bottom: 24px; display: flex; flex-direction: column; gap: 8px; }

.join-requirements li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--text-soft);
    padding: 10px 14px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.join-requirements li:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(3px);
}

.join-requirements li strong { color: var(--text); font-weight: 600; }
.join-requirements i { color: var(--success); font-size: 1rem; flex-shrink: 0; }

.join-rules { margin-bottom: 24px; display: flex; flex-direction: column; gap: 12px; }

.join-rules-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.join-rules-title i { color: var(--warning); font-size: 1.1rem; }

.join-rule {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(236, 72, 153, 0.04));
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: var(--radius);
}

.join-rule-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(34, 211, 238, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--primary-light);
    flex-shrink: 0;
}

.join-rule-text { color: var(--text-soft); font-size: 0.9rem; line-height: 1.6; flex: 1; }
.join-rule-text strong { color: var(--text); font-weight: 600; }

.join-highlight {
    background: linear-gradient(135deg, var(--warning), #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

.join-decor { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.join-decor i {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 1.8rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--primary-light);
    transition: all 0.4s;
}

.join-decor i:nth-child(1) { color: var(--primary-light); }
.join-decor i:nth-child(2) { color: var(--pink-light); }
.join-decor i:nth-child(3) { color: var(--cyan); }
.join-decor i:nth-child(4) { color: var(--warning); }

.join-decor i:hover {
    transform: scale(1.05) rotate(-4deg);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.25);
}

.join-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============================================================
   Footer
   ============================================================ */

.footer {
    padding: 60px 0 28px;
    margin-top: 60px;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 0.8fr;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.footer-col { display: flex; flex-direction: column; gap: 12px; }

.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.footer-logo img { border-radius: 6px; filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.4)); }

.footer-logo span {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-about { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }
.footer-author { color: var(--text-muted); font-size: 0.82rem; }
.footer-author strong { color: var(--primary-light); font-weight: 600; }

.footer-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    padding-bottom: 8px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--cyan));
    border-radius: 2px;
}

.footer-socials, .footer-nav { list-style: none; display: flex; flex-direction: column; gap: 6px; }

.footer-socials a, .footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    transition: color 0.2s, transform 0.2s;
    padding: 3px 0;
}

.footer-socials a:hover, .footer-nav a:hover { color: var(--text); transform: translateX(4px); }
.footer-socials i { width: 18px; color: var(--primary-light); font-size: 0.95rem; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer-copy { color: var(--text-muted); font-size: 0.82rem; }

.footer-legal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-link {
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 3px 0;
    transition: color 0.2s;
    background: none;
    border: none;
    font-family: inherit;
}

.footer-link:hover { color: var(--primary-light); }
.footer-sep { color: var(--text-muted); opacity: 0.5; }
.footer-credit { display: inline-flex; align-items: center; gap: 4px; color: var(--text-muted); }

/* ============================================================
   Lightbox
   ============================================================ */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(6, 9, 19, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.lightbox.active { opacity: 1; visibility: visible; }

.lightbox-content {
    display: flex;
    gap: 28px;
    max-width: 1080px;
    width: 100%;
    max-height: calc(100vh - 48px);
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin: auto;
}

.lightbox-img-wrapper {
    flex: 1 1 460px;
    max-width: 540px;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-strong);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.lightbox-img-wrapper img.loaded { opacity: 1; }

.lightbox-info {
    flex: 1 1 280px;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
}

.lightbox-type {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    width: fit-content;
}

.lightbox-info h3 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }

.lightbox-price {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lightbox-author-block {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.lightbox-author-block img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(99, 102, 241, 0.5);
    flex-shrink: 0;
}

.lightbox-author-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.lightbox-author-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600;
}

.lightbox-author-text strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lightbox-author-socials { display: flex; gap: 8px; flex-wrap: wrap; }

.lightbox-author-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    min-width: 80px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
}

.lightbox-author-socials a.yt:hover { background: rgba(255, 0, 0, 0.15); border-color: #ff0000; color: #ff6b6b; }
.lightbox-author-socials a.ds:hover { background: rgba(88, 101, 242, 0.15); border-color: #5865F2; color: #93c5fd; }
.lightbox-author-socials a.tg:hover { background: rgba(34, 158, 217, 0.15); border-color: #229ED9; color: #67e8f9; }

.lightbox-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.lightbox-actions .btn { width: 100%; }

.lightbox-close, .lightbox-nav {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-strong);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.lightbox-close { top: 20px; right: 20px; width: 44px; height: 44px; font-size: 1.1rem; }

.lightbox-close:hover {
    background: var(--danger);
    border-color: var(--danger);
    transform: rotate(90deg);
}

.lightbox-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 1.15rem; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-nav:hover {
    background: var(--primary);
    border-color: transparent;
    transform: translateY(-50%) scale(1.08);
}

/* ===== Мобильный лайтбокс — полная инфа как на ПК ===== */
@media (max-width: 768px) {
    .lightbox {
        padding: 12px;
        align-items: flex-start;
    }

    .lightbox-content {
        flex-direction: column;
        gap: 14px;
        max-height: none;
        padding-top: 48px;
        padding-bottom: 40px;
        align-items: stretch;
    }

    .lightbox-img-wrapper {
        width: 100%;
        max-width: 100%;
        flex: none;
        aspect-ratio: 1;
    }

    .lightbox-img-wrapper img {
        padding: 12px;
    }

    .lightbox-info {
        flex: none;
        max-width: 100%;
        padding: 20px;
        gap: 10px;
    }

    .lightbox-info h3 { font-size: 1.3rem; }

    .lightbox-price { font-size: 1.1rem; }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
        position: fixed;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: 34%;
    }

    .lightbox-prev { left: 6px; }
    .lightbox-next { right: 6px; }

    .lightbox-author-socials a {
        font-size: 0.78rem;
        padding: 8px 10px;
    }

    .lightbox-actions {
        gap: 8px;
        margin-top: 6px;
    }
}

@media (max-width: 480px) {
    .lightbox-info { padding: 16px; }
    .lightbox-info h3 { font-size: 1.15rem; }
    .lightbox-price { font-size: 1rem; }

    .lightbox-author-block { padding: 10px; gap: 10px; }
    .lightbox-author-block img { width: 34px; height: 34px; }
    .lightbox-author-text strong { font-size: 0.9rem; }

    .lightbox-author-socials a {
        font-size: 0.72rem;
        padding: 7px 8px;
        min-width: 70px;
    }
}

/* ============================================================
   Modals (общие — юр. и команда)
   ============================================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 9, 19, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    position: relative;
    transform: translateY(16px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }

.team-modal-content { max-width: 660px; }

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: var(--danger);
    border-color: var(--danger);
    transform: rotate(90deg);
}

.modal-step[hidden] { display: none; }

.modal-header { text-align: center; margin-bottom: 24px; }

.modal-header h3 {
    font-size: 1.6rem;
    margin-bottom: 6px;
    font-weight: 900;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.success-icon { font-size: 3rem; color: var(--success); margin-bottom: 8px; }

/* ============================================================
   Формы (общие для модалки «В команду» и страниц заказа)
   ============================================================ */

.order-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; position: relative; }

.form-group label {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-soft);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
    min-height: 44px;
    width: 100%;
}

.form-group input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

.form-group input[type="number"]::-webkit-outer-spin-button,
.form-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23818cf8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 42px;
}

.form-group select option { background: var(--bg-elevated); color: var(--text); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(148, 163, 196, 0.4); }

.form-counter {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: right;
    opacity: 0.7;
}

.form-counter.warn { color: var(--warning); opacity: 1; }
.form-counter.danger { color: var(--danger); opacity: 1; font-weight: 600; }

.service-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    background: rgba(99, 102, 241, 0.04);
    border: 1px dashed rgba(99, 102, 241, 0.25);
    border-radius: var(--radius);
}

.service-fields[hidden] { display: none; }

.radio-group { display: flex; gap: 8px; flex-wrap: wrap; }

.radio-item {
    flex: 1;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    user-select: none;
    text-align: center;
}

.radio-item input[type="radio"] { display: none; }
.radio-item:hover { background: var(--bg-elevated); border-color: var(--border-strong); }

.radio-item input[type="radio"]:checked + span {
    color: var(--primary-light);
    font-weight: 600;
}

.radio-item:has(input[type="radio"]:checked) {
    background: rgba(99, 102, 241, 0.14);
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.radio-group-vertical { flex-direction: column; }

.radio-group-vertical .radio-item {
    flex: none;
    width: 100%;
    justify-content: flex-start;
    padding: 13px 16px;
    font-size: 0.88rem;
    gap: 12px;
    text-align: left;
}

.radio-group-vertical .radio-item i {
    font-size: 1rem;
    color: var(--primary-light);
    width: 18px;
}

.radio-group-vertical .radio-item:has(input[type="radio"]:checked) i { color: #fff; }

.form-actions { display: flex; gap: 10px; margin-top: 8px; }
.form-actions .btn { flex: 1; }

.team-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(168, 85, 247, 0.06);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    color: #c4b5fd;
    line-height: 1.5;
    margin-top: 4px;
}

.team-note i { color: var(--purple); flex-shrink: 0; margin-top: 1px; }

.team-note-warning {
    background: rgba(245, 158, 11, 0.06);
    border-color: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.team-note-warning i { color: var(--warning) !important; }

.result-text-wrapper { position: relative; margin-bottom: 16px; }

.result-text {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    color: var(--text);
    font-size: 0.88rem;
    font-family: 'Consolas', 'Monaco', monospace;
    line-height: 1.6;
    resize: none;
    min-height: 220px;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 7px 14px;
    font-size: 0.82rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    font-weight: 500;
}

.copy-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.copy-btn.copied { background: var(--success); }

.result-actions { display: flex; gap: 10px; margin-bottom: 14px; }
.result-actions .btn { flex: 1; }

.result-hint {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.result-hint i { color: var(--primary-light); }

.gender-hint {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--warning);
    line-height: 1.55;
    margin-top: 4px;
}

.gender-hint[hidden] { display: none; }

.gender-hint.danger {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.35);
    color: var(--danger);
}

.gender-hint i { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

.form-group textarea.conflict {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
    animation: conflictShake 0.4s ease;
}

@keyframes conflictShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

/* ============================================================
   Legal modals
   ============================================================ */

.legal-modal-content { max-width: 760px; max-height: 88vh; overflow-y: auto; }
.legal-content { color: var(--text-soft); font-size: 0.9rem; line-height: 1.7; }

.legal-content h4 {
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    margin: 22px 0 8px;
}

.legal-content h4:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 10px; }
.legal-content ul, .legal-content ol { padding-left: 22px; margin-bottom: 12px; }
.legal-content li { margin-bottom: 5px; }
.legal-content strong { color: var(--text); font-weight: 600; }

.legal-content a {
    color: var(--primary-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(129, 140, 248, 0.3);
    transition: border-color 0.2s, color 0.2s;
}

.legal-content a:hover { color: var(--cyan); border-color: var(--cyan); }

.legal-modal-content::-webkit-scrollbar { width: 8px; }
.legal-modal-content::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.03); border-radius: 10px; }
.legal-modal-content::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.4); border-radius: 10px; }
.legal-modal-content::-webkit-scrollbar-thumb:hover { background: rgba(99, 102, 241, 0.6); }

/* ============================================================
   Toast
   ============================================================ */

.toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    padding: 12px 22px;
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-full);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    animation: toastSlide 0.3s ease, toastFade 0.3s ease 3s forwards;
    pointer-events: auto;
}

.toast.success { border-color: rgba(16, 185, 129, 0.5); color: #6ee7b7; }
.toast.error { border-color: rgba(239, 68, 68, 0.5); color: #fca5a5; }
.toast.info { border-color: rgba(99, 102, 241, 0.5); color: #a5b4fc; }

@keyframes toastSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toastFade {
    to { opacity: 0; transform: translateY(-10px); }
}

/* ============================================================
   Scrollbar
   ============================================================ */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.4);
    border-radius: 10px;
    border: 2px solid var(--bg-deep);
}

::-webkit-scrollbar-thumb:hover { background: rgba(99, 102, 241, 0.6); }

/* ============================================================
   Order pages (order-skin.html / order-render.html)
   ============================================================ */

.order-page {
    padding: 40px 0 80px;
    min-height: 100vh;
}

.order-page-header {
    max-width: 760px;
    margin: 0 auto 32px;
    text-align: center;
    padding: 0 8px;
}

.order-page-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary-light);
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.order-page-badge i { color: var(--warning); }

.order-page h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, #c7d2fe 40%, #67e8f9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.order-page-subtitle {
    font-size: 1rem;
    color: var(--text-soft);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto;
}

/* Steps indicator */
.order-steps {
    max-width: 760px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
}

.order-step {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    opacity: 0.45;
    transition: opacity 0.3s;
}

.order-step.active { opacity: 1; }
.order-step.done { opacity: 1; }

.order-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-strong);
    color: var(--text-soft);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}

.order-step.active .order-step-num {
    background: var(--primary);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.order-step.done .order-step-num {
    background: var(--success);
    border-color: transparent;
    color: #fff;
}

.order-step-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-step-sep {
    width: 1px;
    height: 24px;
    background: var(--border-strong);
    flex-shrink: 0;
}

/* Card */
.order-form-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.order-form-step[hidden] { display: none; }

/* Price banner */
.order-price-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(34, 211, 238, 0.06));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius);
    flex-wrap: wrap;
}

.order-price-banner.female-theme {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(99, 102, 241, 0.04));
    border-color: rgba(236, 72, 153, 0.3);
}

.order-price-label {
    font-size: 0.85rem;
    color: var(--text-soft);
    font-weight: 500;
}

.order-price-value {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary-light), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.order-price-banner.female-theme .order-price-value {
    background: linear-gradient(135deg, var(--pink-light), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.order-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    width: 100%;
    max-width: 480px;
}

.order-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-soft);
    line-height: 1.4;
}

.order-features li i {
    color: var(--primary-light);
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Nav buttons between steps */
.order-nav {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.order-nav .btn { flex: 1; }

/* Pose chips */
.pose-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pose-chip {
    flex: 1;
    min-width: 140px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.pose-chip:hover {
    background: var(--bg-elevated);
    border-color: var(--border-strong);
    color: var(--text);
}

.pose-chip.active {
    background: rgba(99, 102, 241, 0.14);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 1px var(--primary);
}

/* Custom pose input */
.pose-custom-input {
    margin-top: 10px;
}

.pose-custom-input[hidden] { display: none; }

/* Success step */
.order-success {
    text-align: center;
    padding: 16px 0;
}

.order-success .success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 12px;
    display: inline-block;
}

.order-success h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: 900;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.order-success p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* Back home link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 992px) {
    .hero-content { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { max-width: 360px; margin: 0 auto; aspect-ratio: 1; }
    .about-wrapper { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .about-photo { max-width: 240px; margin: 0 auto; }
    .about-tags { justify-content: center; }
    .about-buttons { justify-content: center; }
    .join-wrapper { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .join-icon { margin: 0 auto 20px; }
    .join-requirements li { text-align: left; }
    .join-decor { max-width: 260px; margin: 0 auto; }
    .join-actions { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    body { padding-top: 80px; }
    .header { top: 12px; padding: 10px 16px; }

    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        width: 100%;
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(24px);
        padding: 16px;
        border-radius: var(--radius-lg);
        border: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }

    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 4px; }
    .main-nav a { display: block; padding: 12px 16px; font-size: 0.95rem; }

    .hamburger { display: flex; }

    .hero { padding: 24px 0 60px; }
    .hero-text h1 { font-size: clamp(2.25rem, 9vw, 3.25rem); }
    .subtitle { font-size: 1.1rem; }
    .hero-stats { max-width: 100%; }
    .stat-number { font-size: 1.5rem; }
    .stat-item { padding: 14px 12px; }
    .stat-label { font-size: 0.75rem; }

    .section-title { margin-bottom: 8px; }
    .section-subtitle { margin-bottom: 36px; font-size: 0.95rem; }

    .services-grid { grid-template-columns: 1fr; max-width: 400px; }
    .service-content h3 { font-size: 1.4rem; }
    .service-content p { font-size: 0.85rem; }

    .calculator-wrapper { padding: 24px; }
    .calc-opt { min-width: 80px; padding: 10px 12px; font-size: 0.82rem; }
    .calc-slider { flex-direction: column; align-items: stretch; gap: 8px; }
    .calc-slider-value { text-align: left; min-width: 0; }
    .calc-total { flex-direction: column; text-align: center; gap: 8px; padding: 16px 20px; }
    .calc-total-price { font-size: 1.75rem; }

    .how-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .how-step-content h3 { font-size: 0.9rem; gap: 8px; }
    .how-step-number { font-size: 1.8rem; top: 12px; right: 14px; }

    .about-wrapper { padding: 24px; }

    .carousel-card { width: 160px; padding: 12px; }
    .carousel-card .carousel-info h4 { font-size: 0.82rem; }

    .faq-question { padding: 16px 18px; font-size: 0.95rem; }
    .faq-answer { padding: 0 18px; }
    .faq-item.open .faq-answer { padding: 0 18px 18px; }

    .review-card { padding: 28px 22px; }
    .review-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .review-header-left { flex-direction: column; align-items: flex-start; gap: 6px; }

    .join-wrapper { padding: 28px; }

    .footer { padding: 44px 0 22px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .footer-col { align-items: center; }
    .footer-title::after { left: 50%; transform: translateX(-50%); }
    .footer-socials a, .footer-nav a { justify-content: center; }
    .footer-socials a:hover, .footer-nav a:hover { transform: translateX(0) scale(1.03); }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-legal { justify-content: center; }

    .lightbox-content { flex-direction: column; gap: 16px; }
    .lightbox-img-wrapper { max-width: 90vw; }
    .lightbox-nav { width: 40px; height: 40px; font-size: 1rem; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }

    .modal-content { padding: 28px 20px; border-radius: var(--radius); }
    .modal-header h3 { font-size: 1.3rem; }
    .result-actions, .form-actions { flex-direction: column; }
    .service-fields { padding: 14px; gap: 12px; }

    /* Order page mobile */
    .order-page { padding: 24px 0 60px; }
    .order-form-card { padding: 22px 18px; }
    .order-steps { padding: 12px 14px; gap: 8px; flex-wrap: wrap; }
    .order-step { min-width: 100%; flex: none; }
    .order-step-sep { display: none; }
    .order-step-label { font-size: 0.78rem; }
    .order-price-banner { padding: 16px 18px; }
    .order-price-value { font-size: 1.6rem; }
    .order-features { grid-template-columns: 1fr; max-width: 100%; }
    .order-nav { flex-direction: column-reverse; }
    .pose-chip { min-width: 100px; font-size: 0.8rem; padding: 9px 12px; }
}

@media (max-width: 480px) {
    body { padding-top: 72px; }
    .header { width: calc(100% - 20px); top: 10px; padding: 8px 14px; }
    .logo-text { font-size: 1.05rem; }
    .logo-img { height: 32px; }

    .hero-text h1 { font-size: 2.1rem; }
    .subtitle { font-size: 1rem; }
    .hero-description { font-size: 0.92rem; }

    .btn { padding: 11px 20px; font-size: 0.9rem; }
    .btn-large { padding: 14px 28px; font-size: 0.98rem; }

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

    .service-content { padding: 20px; }
    .service-content h3 { font-size: 1.25rem; }
    .service-content p { font-size: 0.8rem; }

    .calculator-wrapper { padding: 20px; gap: 18px; }
    .calc-opt { padding: 9px 10px; font-size: 0.78rem; min-width: 70px; }

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

    .about-wrapper { padding: 20px; }
    .about-info h3 { font-size: 1.5rem; }
    .about-text { font-size: 0.88rem; }

    .carousel-card { width: 150px; padding: 10px; }

    .join-wrapper { padding: 22px; }
    .join-icon { width: 56px; height: 56px; font-size: 1.5rem; }
    .join-requirements li { font-size: 0.85rem; padding: 8px 12px; }
    .join-rule { padding: 12px; gap: 10px; }
    .join-rule-icon { width: 32px; height: 32px; font-size: 0.9rem; }
    .join-rule-text { font-size: 0.85rem; }
    .join-rules-title { font-size: 0.92rem; }
    .join-decor i { font-size: 1.4rem; }
    .radio-group-vertical .radio-item { padding: 10px 12px; font-size: 0.82rem; }

    .modal-content { padding: 22px 16px; }
    .modal-header h3 { font-size: 1.15rem; }
    .radio-item { padding: 8px 10px; font-size: 0.76rem; min-width: 56px; }
    .copy-btn { padding: 6px 10px; font-size: 0.72rem; }
    .copy-btn span { display: none; }
    .gender-hint { padding: 10px 12px; font-size: 0.76rem; }

    .lightbox-info { padding: 18px; }
    .lightbox-info h3 { font-size: 1.2rem; }
    .lightbox-price { font-size: 1.05rem; }

    .footer { padding: 36px 0 18px; }
    .footer-logo span { font-size: 1.05rem; }

    .legal-content { font-size: 0.85rem; }
    .legal-content h4 { font-size: 0.95rem; }

    /* Order page small */
    .order-page h1 { font-size: 1.7rem; }
    .order-form-card { padding: 18px 14px; }
    .order-price-value { font-size: 1.4rem; }
    .order-success h2 { font-size: 1.4rem; }
    .order-success .success-icon { font-size: 3rem; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== Баннер страницы заказа ===== */
.order-hero-banner {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 24px;
    max-width: 760px;
    margin: 0 auto 32px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(34, 211, 238, 0.06));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 220px;
}

.order-hero-banner.order-hero-female {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.14), rgba(99, 102, 241, 0.06));
    border-color: rgba(236, 72, 153, 0.35);
}

.order-hero-text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 32px 32px 32px 36px;
    position: relative;
    z-index: 2;
}

.order-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: var(--primary-light);
    font-size: 0.78rem;
    font-weight: 600;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.order-hero-banner.order-hero-female .order-hero-badge {
    background: rgba(236, 72, 153, 0.15);
    border-color: rgba(236, 72, 153, 0.35);
    color: var(--pink-light);
}

.order-hero-badge i { color: var(--warning); font-size: 0.85rem; }

.order-hero-title {
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.15;
    background: linear-gradient(135deg, #fff 0%, #c7d2fe 50%, #67e8f9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}

.order-hero-banner.order-hero-female .order-hero-title {
    background: linear-gradient(135deg, #fff 0%, #fbcfe8 50%, #f472b6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.order-hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-soft);
    line-height: 1.6;
    margin: 0;
    max-width: 420px;
}

.order-hero-image {
    flex: 0 0 auto;
    width: 260px;
    align-self: stretch;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.order-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.order-hero-banner:hover .order-hero-image img {
    transform: scale(1.05);
}

/* Затемнение между текстом и картинкой — чтобы читалось */
.order-hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 80px;
    background: linear-gradient(90deg, rgba(6, 9, 19, 0.85) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

/* Убираем старую шапку — она больше не используется */
.order-page-header,
.order-page-badge {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .order-hero-banner {
        flex-direction: column-reverse;
        min-height: auto;
    }

    .order-hero-image {
        width: 100%;
        height: 200px;
    }

    .order-hero-image::before {
        display: none;
    }

    .order-hero-text {
        padding: 24px 22px;
    }

    .order-hero-title {
        font-size: 1.5rem;
    }

    .order-hero-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .order-hero-image {
        height: 160px;
    }

    .order-hero-text {
        padding: 20px 18px;
    }

    .order-hero-title {
        font-size: 1.3rem;
    }
}

/* ===== Отзыв в лайтбоксе ===== */
.lightbox-review {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lightbox-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lightbox-review-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lightbox-review-name i {
    color: var(--primary-light);
    font-size: 0.75rem;
}

.lightbox-review-stars {
    color: var(--warning);
    font-size: 0.9rem;
    letter-spacing: 2px;
    line-height: 1;
}

.lightbox-review-text {
    font-size: 0.85rem;
    color: var(--text-soft);
    font-style: italic;
    line-height: 1.6;
    margin: 0;
}

/* Если отзыва нет. */
.lightbox-review.is-empty {
    border-left-color: var(--border-strong);
    opacity: 0.65;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.lightbox-review.is-empty .lightbox-review-empty-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    font-style: italic;
}

.lightbox-review.is-empty i {
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .lightbox-review {
        padding: 12px 14px;
    }
    .lightbox-review-name { font-size: 0.8rem; }
    .lightbox-review-text { font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .lightbox-review { padding: 10px 12px; }
    .lightbox-review-name { font-size: 0.76rem; }
    .lightbox-review-stars { font-size: 0.8rem; }
    .lightbox-review-text { font-size: 0.76rem; line-height: 1.55; }
    .lightbox-review.is-empty .lightbox-review-empty-text { font-size: 0.76rem; }
}

/* ============================================================
   Friends (наши друзья)
   ============================================================ */

.friends { padding: 80px 0; }

.friends-rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.friends-row {
    width: 100%;
}

.friends-viewport {
    overflow: hidden;
    padding: 4px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, black 60px, black calc(100% - 60px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, black 60px, black calc(100% - 60px), transparent 100%);
}

.friends-viewport:has(.friend-card:only-child),
.friends-viewport:has(.friend-card:nth-child(1):last-child) {
    /* если в строке 1 карточка — без маски */
    -webkit-mask-image: none;
    mask-image: none;
}

/* если карточек ≤3 — центрируем, не крутим */
.friends-track {
    display: flex;
    gap: 12px;
    will-change: transform;
    justify-content: center;
}

.friends-track:has(.friend-card:nth-child(4)) {
    /* если карточек 4+ — убираем центрирование (карусель) */
    justify-content: flex-start;
}

.friend-card {
    flex: 0 0 auto;
    min-width: 200px;
    padding: 18px 24px;
    border-radius: var(--radius);
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 12px 28px -8px rgba(99, 102, 241, 0.45);
    color: var(--primary-light);
}

@media (max-width: 768px) {
    .friends { padding: 60px 0; }
    .friends-rows { gap: 12px; }
    .friend-card {
        min-width: 160px;
        padding: 14px 18px;
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .friend-card {
        min-width: 140px;
        padding: 12px 16px;
        font-size: 0.82rem;
    }
}

.lightbox-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    padding: 4px 0;
}

.lightbox-date[hidden] { display: none; }

/* ============================================================
   Projects (слайдер проектов)
   ============================================================ */

.projects { padding: 80px 0; }

.projects-slider {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
}

.projects-viewport {
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-strong);
    background: var(--bg-elevated);
    box-shadow: var(--shadow-lg);
}

.projects-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.project-slide {
    flex: 0 0 100%;
    display: flex;
    align-items: stretch;
    position: relative;
    min-height: 520px;
    overflow: hidden;
}

/* Картинка справа — заполняет всю правую половину */
.project-slide-media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    z-index: 0;
    background: #0a0e1a;
    overflow: hidden;
}

.project-slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* У комикса обложка вертикальная — object-fit: contain, чтобы не обрезалась */
.project-slide-media-comic img {
    object-fit: contain;
    padding: 24px;
    background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.15), transparent 70%);
}

/* Плавный переход от картинки к тексту */
.project-slide-media::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 120px;
    background: linear-gradient(90deg, var(--bg-elevated) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Затемнение всей карточки — чтобы текст читался и слева, и справа */
.project-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.98) 0%, rgba(17, 24, 39, 0.92) 45%, rgba(17, 24, 39, 0.35) 70%, rgba(17, 24, 39, 0.15) 100%);
    pointer-events: none;
}

.project-slide-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 40px;
    width: 50%;
    max-width: 520px;
}

/* Переиспользуем старые классы для содержимого */
.project-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(34, 211, 238, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-light);
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.2);
}

.project-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    letter-spacing: -0.025em;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-light), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.project-tagline {
    font-size: 0.95rem;
    color: var(--primary-light);
    font-weight: 500;
    margin: 0;
}

.project-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin: 6px 0 2px;
}

.project-features,
.project-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-steps { counter-reset: project-step; }

.project-features li,
.project-steps li {
    position: relative;
    padding: 8px 12px 8px 34px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--text-soft);
    line-height: 1.5;
}

.project-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: var(--success);
}

.project-steps li { counter-increment: project-step; }

.project-steps li::before {
    content: counter(project-step);
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-steps a {
    color: var(--primary-light);
    border-bottom: 1px solid rgba(129, 140, 248, 0.3);
    transition: border-color 0.2s, color 0.2s;
}

.project-steps a:hover { color: var(--cyan); border-color: var(--cyan); }

.project-steps code {
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 0.82rem;
    color: var(--cyan);
}

.project-desc {
    font-size: 0.88rem;
    color: var(--text-soft);
    line-height: 1.6;
    margin: 0;
}

.project-questions {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-questions li {
    position: relative;
    padding: 8px 12px 8px 32px;
    background: rgba(168, 85, 247, 0.06);
    border: 1px solid rgba(168, 85, 247, 0.22);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: #c4b5fd;
    line-height: 1.5;
}

.project-questions li::before {
    content: '?';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--purple);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: #fbbf24;
    line-height: 1.55;
    margin-top: 4px;
}

.project-note i { color: var(--warning); flex-shrink: 0; margin-top: 1px; font-size: 0.95rem; }

.project-note a {
    color: var(--warning);
    border-bottom: 1px solid rgba(245, 158, 11, 0.4);
    transition: border-color 0.2s;
}

.project-note a:hover { border-color: var(--warning); }

.project-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 12px;
}

/* Стрелки */
.projects-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid var(--border-strong);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.projects-arrow:hover {
    background: var(--primary);
    border-color: transparent;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.5);
}

.projects-prev { left: -26px; }
.projects-next { right: -26px; }

.projects-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

/* Убираем любые фоны, рамки и фиксированные размеры */
.projects-dot {
    background: transparent;
    border: none;
    padding: 0;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem; /* Размер иконки */
    opacity: 0.5;
}

/* При наведении чуть ярче */
.projects-dot:hover {
    opacity: 1;
    color: var(--text-soft);
    transform: scale(1.1);
}

/* Активная иконка — яркая, с фирменным цветом и свечением */
.projects-dot.active {
    opacity: 1;
    color: var(--primary);
    transform: scale(1.2); /* Чуть крупнее остальных */
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.6)); /* Добавляем неоновое свечение */
}

/* ===== Мобильная адаптация ===== */
@media (max-width: 992px) {
    .project-slide { min-height: 600px; }
    .project-slide-media { width: 100%; opacity: 0.35; }
    .project-slide-media::after { display: none; }
    .project-slide-body {
        width: 100%;
        max-width: 100%;
        padding: 32px;
    }
    .project-slide-overlay {
        background: linear-gradient(180deg, rgba(17, 24, 39, 0.85) 0%, rgba(17, 24, 39, 0.95) 100%);
    }
    .projects-prev { left: 12px; }
    .projects-next { right: 12px; }
    .projects-arrow { width: 44px; height: 44px; font-size: 1rem; }
}

@media (max-width: 768px) {
    .projects { padding: 60px 0; }
    .project-slide { min-height: 560px; }
    .project-slide-body { padding: 26px; }
    .project-features li,
    .project-steps li { font-size: 0.82rem; padding: 7px 10px 7px 32px; }
    .project-note { font-size: 0.78rem; padding: 10px 12px; }
    .project-questions li { font-size: 0.8rem; padding: 7px 10px 7px 30px; }
    .project-desc { font-size: 0.82rem; }
}

@media (max-width: 480px) {
    .project-slide { min-height: 520px; }
    .project-slide-body { padding: 22px; }
    .project-icon { width: 48px; height: 48px; font-size: 1.3rem; }
    .project-actions { flex-direction: column; }
    .project-actions .btn { width: 100%; }
    .projects-arrow { width: 40px; height: 40px; }
    .projects-prev { left: 6px; }
    .projects-next { right: 6px; }
}

/* ============================================================
   Team page (для команды)
   ============================================================ */

.team-page {
    padding-top: 90px;
}

.team-main {
    padding: 40px 0 80px;
}

.team-hero {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 56px;
}

.team-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary-light);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.team-hero-badge i { color: var(--warning); }

.team-hero h1 {
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #c7d2fe 40%, #67e8f9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.team-hero p {
    font-size: 1.02rem;
    color: var(--text-soft);
    line-height: 1.65;
}

/* Секции */
.team-section {
    max-width: 820px;
    margin: 0 auto 48px;
}

.team-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.team-section-title i {
    color: var(--primary-light);
    font-size: 1.15rem;
}

/* Шаги */
.team-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    counter-reset: team-step;
}

.team-step {
    display: flex;
    gap: 18px;
    padding: 20px 22px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    transition: border-color 0.2s, transform 0.2s;
}

.team-step:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateX(4px);
}

.team-step-num {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.team-step-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.35;
}

.team-step-content p {
    font-size: 0.92rem;
    color: var(--text-soft);
    line-height: 1.6;
    margin: 0;
}

.team-step-content strong {
    color: var(--text);
    font-weight: 600;
}

/* Правила */
.team-rules {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.team-rule {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(99, 102, 241, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius);
    font-size: 0.92rem;
    color: var(--text-soft);
    line-height: 1.6;
    transition: background 0.2s, border-color 0.2s;
}

.team-rule:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
}

.team-rule > i {
    color: var(--success);
    font-size: 1.05rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.team-rule strong {
    color: var(--text);
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

/* Что делать, если что-то не так */
.team-troubles {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.team-troubles li {
    padding: 14px 18px;
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-soft);
    line-height: 1.6;
}

.team-troubles li strong {
    color: #fbbf24;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

/* Кнопка назад */
.team-back {
    text-align: center;
    margin-top: 48px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .team-page { padding-top: 80px; }
    .team-main { padding: 24px 0 60px; }
    .team-hero { margin-bottom: 40px; }
    .team-section { margin-bottom: 36px; }
    .team-section-title { font-size: 1.15rem; }
    .team-step { padding: 16px 18px; gap: 14px; }
    .team-step-num { width: 36px; height: 36px; font-size: 1rem; }
    .team-step-content h3 { font-size: 0.98rem; }
    .team-step-content p { font-size: 0.86rem; }
    .team-rule { padding: 14px 16px; font-size: 0.86rem; }
    .team-troubles li { padding: 12px 14px; font-size: 0.85rem; }
}

@media (max-width: 480px) {
    .team-step { padding: 14px; gap: 12px; }
    .team-step-num { width: 32px; height: 32px; font-size: 0.9rem; }
    .team-step-content h3 { font-size: 0.92rem; }
    .team-step-content p { font-size: 0.82rem; }
    .team-rule { padding: 12px 14px; font-size: 0.82rem; }
    .team-troubles li { padding: 10px 12px; font-size: 0.82rem; }
}

.gallery-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
}