:root {
    --bg-body: #050711;
    --bg-elevated: #0b0f1c;
    --bg-elevated-soft: #111628;
    --accent: #3b82f6;
    --accent-soft: rgba(59, 130, 246, 0.16);
    --accent-strong: #60a5fa;
    --danger: #f97373;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --border-subtle: rgba(148, 163, 184, 0.35);
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.75);
    --shadow-glow: 0 0 0 1px rgba(59, 130, 246, 0.35), 0 20px 45px rgba(37, 99, 235, 0.35);
    --transition-fast: 0.18s ease-out;
    --transition-normal: 0.24s ease-out;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    background: radial-gradient(circle at top left, #000000 0, #020617 45%, #000000 100%);
}

body {
    min-height: 100vh;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #000000 0, #020617 45%, #000000 100%);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.45s ease-out,
        transform 0.45s ease-out;
}

.page-loaded .reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, #020617, #000000);
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.page-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.page-loader-spinner {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 3px solid rgba(148, 163, 184, 0.35);
    border-top-color: #60a5fa;
    animation: pageLoaderSpin 0.9s linear infinite;
}

.page-loader-text {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.page-loader--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes pageLoaderSpin {
    to {
        transform: rotate(360deg);
    }
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 64px 0;
}

.section-title {
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 8px;
}

.section-subtitle {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-muted);
}

.section-header {
    margin-bottom: 32px;
}

.section-footer {
    margin-top: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform 0.08s ease-out, border-color var(--transition-fast);
    background: transparent;
    color: var(--text-main);
}

.btn--primary {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 60px rgba(37, 99, 235, 0.45);
}

.btn--ghost {
    border-color: var(--border-subtle);
    background: rgba(15, 23, 42, 0.7);
}

.btn--ghost:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.btn--small {
    padding: 8px 16px;
    font-size: 13px;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.0));
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px 0 10px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(59, 130, 246, 0.5);
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.9);
}

.logo-img {
    display: block;
    height: 32px;
}

.logo--footer {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.logo--footer .logo-img,
.logo-img--footer {
    height: 160px;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #e5e7eb, #60a5fa, #1d4ed8);
    color: #020617;
    font-weight: 700;
    font-size: 15px;
}

.logo-text {
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 14px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 24px;
    font-size: 13px;
}

.nav-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-group--catalog {
    position: relative;
}

.nav-group--shop {
    padding: 3px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 999px;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-main);
    background: rgba(15, 23, 42, 0.85);
}

.nav-link--dropdown {
    border: none;
    background: transparent;
    font-size: 13px;
    padding-right: 22px;
}

.nav-link-caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--text-muted);
    transition: transform var(--transition-fast), border-top-color var(--transition-fast);
}

.nav-link--dropdown:hover .nav-link-caret {
    border-top-color: var(--text-main);
}

.nav-link--active-tab {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.55), rgba(59, 130, 246, 0.85));
    color: #0b1120;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.7);
}

.nav-dropdown {
    position: absolute;
    top: 110%;
    left: 0;
    right: auto;
    transform: translateY(8px);
    min-width: 230px;
    background: radial-gradient(circle at top left, #020617, #020617);
    border-radius: 16px;
    padding: 8px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.45);
    opacity: 0;
    visibility: hidden;
    transform-origin: top left;
    transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
}

.nav-dropdown-item {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-muted);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-dropdown-item:hover {
    color: var(--text-main);
    background: rgba(30, 64, 175, 0.6);
}

.nav-dropdown--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-location {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: 11px;
    line-height: 1.3;
    color: var(--text-muted);
}

.header-location-city {
    font-weight: 600;
    color: var(--accent-strong);
}

.icon-button {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: radial-gradient(circle at top left, #111827, #020617);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform 0.08s ease-out;
}

.icon-button::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.9;
}

.icon-button--cart::before {
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 5H6.5L8.2 14.3C8.37 15.24 9.18 15.93 10.13 15.93H17.05C17.93 15.93 18.7 15.34 18.93 14.49L20.25 9.5H8.75' stroke='%23E5E7EB' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='10.25' cy='19' r='1' fill='%23E5E7EB'/%3E%3Ccircle cx='17' cy='19' r='1' fill='%23E5E7EB'/%3E%3C/svg%3E");
}

.icon-button--user::before {
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='8' r='3.2' stroke='%23E5E7EB' stroke-width='1.6'/%3E%3Cpath d='M6.5 18.8C7.25 16.8 9.4 15.5 12 15.5C14.6 15.5 16.75 16.8 17.5 18.8' stroke='%23E5E7EB' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

.icon-button:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.55);
    transform: translateY(-1px);
}

.icon-button-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #f97373);
    color: #020617;
    font-size: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 3px;
    width: 32px;
    height: 26px;
    padding: 0;
    border: none;
    background: transparent;
    margin-left: 8px;
    cursor: pointer;
}

.burger span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: #e5e7eb;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* HERO */

.hero {
    padding: 40px 0 32px;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.hero-title {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.12;
}

.hero-subtitle {
    margin: 0 0 20px;
    font-size: 15px;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.hero-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    font-size: 13px;
    color: var(--text-muted);
}

.hero-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 4 / 5;
    border-radius: 28px;
    background: radial-gradient(circle at 15% 10%, rgba(96, 165, 250, 0.25), rgba(15, 23, 42, 0.95));
    overflow: hidden;
    box-shadow: 0 26px 80px rgba(15, 23, 42, 0.9);
}

.hero-model {
    position: absolute;
    left: 50%;
    top: 52%;
    width: 34%;
    height: auto;
    object-fit: contain;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
}

.hero-orbit {
    position: absolute;
    border-radius: 999px;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    inset: 18%;
    z-index: 1;
}

.hero-orbit--outer {
    inset: 12%;
    border-style: solid;
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.65);
}

.hero-printer-card {
    position: absolute;
    left: 14%;
    right: 14%;
    bottom: 18%;
    padding: 14px 14px 13px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.58);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.95);
    z-index: 3;
}

.hero-printer-label {
    display: inline-flex;
    padding: 3px 10px;
    margin-bottom: 6px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.18);
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #a5f3fc;
}

.hero-printer-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.hero-printer-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.hero-badge {
    position: absolute;
    top: 20%;
    right: 10%;
    padding: 10px 12px;
    border-radius: 999px;
    background: radial-gradient(circle at top left, rgba(52, 211, 153, 0.5), rgba(16, 185, 129, 0.9));
    color: #022c22;
    box-shadow: 0 16px 40px rgba(16, 185, 129, 0.65);
    z-index: 4;
}

.hero-badge-number {
    display: block;
    font-size: 17px;
    font-weight: 700;
}

.hero-badge-text {
    display: block;
    font-size: 11px;
}

/* WORKS SLIDER (expandable cards) */

.section--works {
    padding-top: 40px;
}

.game-section {
    padding: 0;
    position: relative;
}

.game-section .custom-carousel {
    display: flex;
    align-items: stretch;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
}

.game-section .custom-carousel::-webkit-scrollbar {
    display: none;
}

.game-section .custom-carousel.is-dragging {
    cursor: grabbing;
}

.game-section .item {
    position: relative;
    flex: 0 0 260px;
    height: 340px;
    display: flex;
    align-items: flex-end;
    background-color: #111827;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 18px;
    overflow: hidden;
    cursor: inherit;
    transition:
        flex-basis 0.4s ease-in-out,
        box-shadow 0.4s ease-in-out,
        transform 0.4s ease-in-out;
}

.game-section .item::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.05));
    opacity: 0.9;
    pointer-events: none;
}

.game-section .item.active {
    flex-basis: 420px;
    transform: translateY(-4px);
}

.game-section::before,
.game-section::after {
    content: none;
}

.game-section .item-desc {
    position: relative;
    z-index: 1;
    padding: 0 20px 16px;
    color: #f9fafb;
    transform: translateY(calc(100% - 52px));
    transition: transform 0.4s ease-in-out;
}

.game-section .item-desc h3 {
    margin: 0 0 4px;
    font-size: 18px;
    line-height: 1.3;
}

.game-section .item-desc p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #d1d5db;
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.4s ease-in-out 0.1s,
        transform 0.4s ease-in-out 0.1s;
}

.game-section .item.active .item-desc {
    transform: translateY(0);
}

.game-section .item.active .item-desc p {
    opacity: 1;
    transform: translateY(0);
}

.game-section .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.game-section .carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.55);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color var(--transition-fast), transform var(--transition-fast), width var(--transition-fast);
}

.game-section .carousel-dot--active {
    width: 20px;
    background: rgba(96, 165, 250, 0.95);
    transform: translateY(-1px);
}

/* MATERIALS */

.section--materials {
    padding-top: 52px;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.material-card {
    position: relative;
    padding: 16px 16px 14px;
    border-radius: var(--radius-md);
    background: radial-gradient(circle at top left, rgba(30, 64, 175, 0.6), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.9);
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.material-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(52, 211, 153, 0.25), transparent 55%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.material-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 65px rgba(15, 23, 42, 0.96);
    border-color: rgba(59, 130, 246, 0.9);
}

.material-card:hover::after {
    opacity: 1;
}

.material-card-title {
    position: relative;
    z-index: 1;
    font-size: 16px;
    margin: 0 0 6px;
}

.material-card-tagline {
    position: relative;
    z-index: 1;
    font-size: 13px;
    margin: 0 0 8px;
    color: var(--text-muted);
}

.material-card-meta {
    position: relative;
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.material-card-meta li {
    font-size: 11px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.materials-note {
    margin-top: 26px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.8);
    font-size: 13px;
    color: var(--text-muted);
}

.materials-note-title {
    font-size: 14px;
    margin: 0 0 6px;
    color: var(--text-main);
}

/* REVIEWS */

.section--reviews {
    padding-top: 48px;
}

.reviews-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.review-card {
    padding: 12px 14px 13px;
    border-radius: var(--radius-md);
    background: var(--bg-elevated-soft);
    border: 1px solid rgba(148, 163, 184, 0.6);
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
}

.review-author {
    font-weight: 500;
}

.review-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.review-text {
    margin: 0;
    font-size: 13px;
}

.review-rating {
    color: #fbbf24;
    font-size: 12px;
}

/* LOCATION */

.section--location {
    padding-top: 52px;
}

.location-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 26px;
    align-items: center;
}

.location-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 18px;
    font-size: 13px;
    color: var(--text-muted);
}

.location-list li + li {
    margin-top: 4px;
}

.location-map {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.5);
    overflow: hidden;
    background: radial-gradient(circle at top left, #111827, #020617);
}

.location-map-placeholder {
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* CTA + FORMS */

.section--cta {
    padding-top: 40px;
    padding-bottom: 70px;
}

.cta-inner {
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    padding: 18px 18px 16px;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.4), rgba(15, 23, 42, 0.98));
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.4fr);
    gap: 22px;
    align-items: center;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.96);
}

.form {
    display: grid;
    gap: 10px;
}

.form--inline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: auto;
    column-gap: 10px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}

.form-field label {
    color: var(--text-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-main);
    font-size: 13px;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.6);
    background: #020617;
}

.form-field--wide {
    grid-column: span 3;
}

.form-footer {
    grid-column: span 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 11px;
    color: var(--text-muted);
}

.checkbox {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
}

.checkbox input {
    margin-top: 2px;
}

/* FOOTER */

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    background: radial-gradient(circle at top left, #020617, #020617 40%, #020617 100%);
    padding: 28px 0 18px;
    font-size: 13px;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.9fr) minmax(0, 1fr);
    gap: 22px;
}

.footer-col--brand .footer-text {
    margin-top: 10px;
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.footer-title {
    margin: 0 0 8px;
    font-size: 14px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 4px;
    color: var(--text-muted);
    font-size: 13px;
}

.footer-list a {
    color: inherit;
}

.footer-list a:hover {
    color: var(--accent-strong);
}

.footer-social {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.social-link {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.85);
}

.social-link:hover {
    border-color: var(--accent);
    color: var(--accent-strong);
}

.footer-note {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-bottom {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.9);
    font-size: 11px;
    color: var(--text-muted);
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.footer-copy {
    opacity: 0.9;
}

.footer-meta {
    opacity: 0.7;
}

/* RESPONSIVE */

@media (max-width: 960px) {
    .main-nav {
        display: none;
    }

    .burger {
        display: flex;
    }

    .main-nav.main-nav--open {
        position: absolute;
        inset: 100% 16px auto 16px;
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 10px;
        border-radius: 16px;
        background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.98));
        border: 1px solid rgba(148, 163, 184, 0.6);
        box-shadow: 0 22px 50px rgba(15, 23, 42, 0.95);
        z-index: 25;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-media {
        order: -1;
    }

    .materials-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .reviews-preview {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .location-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .cta-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .form--inline {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-field--wide,
    .form-footer {
        grid-column: span 1;
    }

    .footer-inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .section {
        padding: 42px 0;
    }

    .hero {
        padding-top: 26px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-highlights {
        grid-template-columns: minmax(0, 1fr);
    }

    .slider {
        padding: 16px 36px;
    }

    .work-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .reviews-preview {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* PRODUCT LIST & PRODUCT CARD */

.shop-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: flex-start;
}

.shop-filters {
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: var(--bg-elevated-soft);
    padding: 14px 14px 12px;
    box-shadow: var(--shadow-soft);
    font-size: 13px;
}

.shop-filters-title {
    margin: 0 0 10px;
    font-size: 15px;
}

.shop-filters-note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.shop-content {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: var(--bg-elevated);
    padding: 14px 14px 16px;
    box-shadow: var(--shadow-soft);
}

.shop-tabs {
    display: inline-flex;
    border-radius: 999px;
    padding: 3px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.5);
    margin-bottom: 14px;
    gap: 2px;
}

.shop-tab {
    border: none;
    background: transparent;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.shop-tab--active {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.55), rgba(59, 130, 246, 0.85));
    color: #020617;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.7);
}

.shop-view {
    display: none;
    margin-top: 6px;
}

.shop-view--active {
    display: block;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.product-card {
    border-radius: var(--radius-md);
    background: var(--bg-elevated-soft);
    border: 1px solid rgba(148, 163, 184, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.85);
}

.product-card-media {
    display: block;
    height: 140px;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.4), rgba(15, 23, 42, 1));
}

.product-card-body {
    padding: 10px 12px 11px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-card-title {
    margin: 0;
    font-size: 15px;
}

.product-card-title a:hover {
    color: var(--accent-strong);
}

.product-card-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.product-card-desc {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
    font-size: 13px;
}

.product-card-price {
    font-weight: 600;
}

.product-card-rating {
    font-size: 12px;
    color: #fbbf24;
}

/* PRODUCT PAGE (PDP) */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.breadcrumb a {
    color: var(--accent-strong);
}

.product-page {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: var(--bg-elevated);
    padding: 16px 14px 18px;
    box-shadow: var(--shadow-soft);
}

.product-page-main {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 22px;
    margin-bottom: 18px;
}

.product-gallery-main {
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.4), rgba(15, 23, 42, 1));
    padding: 12px;
    min-height: 230px;
}

.product-gallery-image {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: 1px dashed rgba(148, 163, 184, 0.7);
}

.product-gallery-thumbs {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.product-thumb {
    flex: 1;
    height: 50px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: radial-gradient(circle at top left, rgba(30, 64, 175, 0.6), rgba(15, 23, 42, 1));
    opacity: 0.7;
    cursor: pointer;
}

.product-thumb.is-active {
    opacity: 1;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.8);
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-title {
    margin: 0;
    font-size: 22px;
}

.product-short {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.product-meta {
    margin-top: 6px;
    font-size: 12px;
}

.product-meta-row {
    display: flex;
    gap: 4px;
    align-items: baseline;
}

.product-meta-label {
    color: var(--text-muted);
}

.product-meta-value {
    font-weight: 500;
}

.product-price-block {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(15, 23, 42, 0.9);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-price-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.product-price {
    font-size: 20px;
    font-weight: 600;
}

.product-price-note {
    font-size: 12px;
    color: var(--text-muted);
}

.product-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-logic-note {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

.product-tabs {
    display: inline-flex;
    border-radius: 999px;
    padding: 3px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.5);
    margin-bottom: 10px;
    gap: 2px;
}

.product-tab {
    border: none;
    background: transparent;
    padding: 5px 12px;
    font-size: 13px;
    border-radius: 999px;
    color: var(--text-muted);
    cursor: pointer;
}

.product-tab--active {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.55), rgba(59, 130, 246, 0.85));
    color: #020617;
}

.product-tab-panels {
    margin-top: 10px;
}

.product-tab-panel {
    display: none;
    padding: 10px 0 4px;
    border-top: 1px solid rgba(15, 23, 42, 0.9);
}

.product-tab-panel--active {
    display: block;
}

.product-subtitle {
    margin: 0 0 6px;
    font-size: 15px;
}

.product-specs {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.product-specs li + li {
    margin-top: 4px;
}

.product-specs span {
    color: var(--text-main);
}

.product-reviews-list {
    display: grid;
    gap: 10px;
}

.product-review-form-block {
    margin-top: 14px;
}

/* CART PAGE */

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 22px;
    align-items: flex-start;
}

.cart-main {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: var(--bg-elevated);
    padding: 14px 14px 16px;
    box-shadow: var(--shadow-soft);
}

.cart-empty {
    font-size: 13px;
    color: var(--text-muted);
}

.cart-list {
    display: grid;
    gap: 8px;
}

.cart-item {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) 0.9fr auto 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 9px 10px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: var(--bg-elevated-soft);
    font-size: 13px;
}

.cart-item-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cart-item-title {
    font-weight: 500;
}

.cart-item-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.cart-item-price,
.cart-item-total {
    font-weight: 500;
}

.cart-item-qty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cart-item-qty-btn {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.95);
    color: var(--text-main);
    font-size: 14px;
    cursor: pointer;
}

.cart-item-qty-value {
    min-width: 18px;
    text-align: center;
}

.cart-item-remove-btn {
    border: none;
    background: transparent;
    color: var(--danger);
    font-size: 12px;
    cursor: pointer;
}

.cart-summary {
    position: sticky;
    top: 76px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-summary-box {
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: var(--bg-elevated-soft);
    padding: 12px 14px 12px;
    box-shadow: var(--shadow-soft);
    font-size: 13px;
}

.cart-summary-title {
    margin: 0 0 8px;
    font-size: 15px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
}

.cart-summary-row--total {
    margin-top: 8px;
    font-weight: 600;
}

.cart-checkout-button {
    width: 100%;
    margin-top: 10px;
    justify-content: center;
}

.cart-checkout-button[aria-disabled="true"] {
    opacity: 0.4;
    pointer-events: none;
}

.cart-clear-button {
    width: 100%;
    margin-top: 6px;
    justify-content: center;
}

.cart-summary-note {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.cart-how-it-works {
    border-radius: var(--radius-md);
    border: 1px dashed rgba(148, 163, 184, 0.7);
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.85);
    font-size: 13px;
    color: var(--text-muted);
}

.cart-how-it-works ol {
    margin: 6px 0 6px 18px;
    padding: 0;
}

/* TICKET PAGE */

.ticket-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.5fr);
    gap: 22px;
    align-items: flex-start;
}

.ticket-summary {
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: var(--bg-elevated-soft);
    padding: 12px 14px;
    box-shadow: var(--shadow-soft);
    font-size: 13px;
}

.ticket-summary-title {
    margin: 0 0 8px;
    font-size: 15px;
}

.ticket-items-empty {
    font-size: 13px;
    color: var(--text-muted);
}

.ticket-items {
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
}

.ticket-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.9);
}

.ticket-item-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ticket-item-title {
    font-weight: 500;
}

.ticket-item-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.ticket-item-total {
    font-weight: 500;
}

.ticket-total-row {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-weight: 600;
}

.ticket-hint {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.ticket-form-wrapper {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: var(--bg-elevated);
    padding: 14px 14px 18px;
    box-shadow: var(--shadow-soft);
}

.ticket-success {
    padding: 10px 0 4px;
}

.ticket-success-box {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px dashed rgba(52, 211, 153, 0.8);
    background: rgba(15, 23, 42, 0.9);
    font-size: 13px;
}

.ticket-success-actions {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* REVIEWS PAGE */

.reviews-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

/* ABOUT PAGE */

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.05fr);
    gap: 24px;
    align-items: flex-start;
}

.about-text p {
    font-size: 13px;
    color: var(--text-main);
}

.about-text ul {
    margin: 6px 0 10px 18px;
    padding: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.about-aside {
    display: grid;
    gap: 12px;
}

.about-photo {
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: var(--bg-elevated-soft);
    padding: 10px;
}

.about-photo-placeholder {
    border-radius: 10px;
    border: 1px dashed rgba(148, 163, 184, 0.7);
    padding: 30px 14px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.about-location {
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.9);
    padding: 10px 12px;
}

.about-cta {
    border-radius: var(--radius-md);
    border: 1px dashed rgba(59, 130, 246, 0.8);
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.9);
}

/* PROFILE (PERSONAL ACCOUNT) */

.profile-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1.6fr);
    gap: 22px;
    align-items: flex-start;
}

.profile-sidebar {
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: var(--bg-elevated-soft);
    padding: 12px 14px;
    box-shadow: var(--shadow-soft);
}

.profile-main {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: var(--bg-elevated);
    padding: 14px 14px 18px;
    box-shadow: var(--shadow-soft);
}

.ticket-card {
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: var(--bg-elevated-soft);
    padding: 9px 10px;
    font-size: 13px;
}

.ticket-card + .ticket-card {
    margin-top: 8px;
}

.ticket-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.ticket-card-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.15);
    color: #7dd3fc;
}

.ticket-card-status--done {
    background: rgba(22, 163, 74, 0.2);
    color: #bbf7d0;
}

.ticket-card-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* CONTACTS (generic block; contacts.html может использовать те же стили, что location + формы) */

/* RESPONSIVE EXTENSIONS */

@media (max-width: 960px) {
    .shop-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-page-main {
        grid-template-columns: minmax(0, 1fr);
    }

    .cart-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .ticket-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .cart-summary {
        position: static;
    }

    .reviews-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-options {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-page {
        padding: 12px 10px 14px;
    }

    .cart-item {
        grid-template-columns: minmax(0, 1.8fr) auto;
        grid-template-rows: auto auto;
        grid-auto-flow: row;
    }

    .cart-item-price {
        display: none;
    }

    .cart-item-total {
        justify-self: flex-end;
    }

    .profile-main,
    .cart-main,
    .ticket-form-wrapper {
        padding: 12px 10px 14px;
    }
}
/* === EXTRA VISUAL LAYER: ANIMATED BACKGROUND & ORBITS === */

.page {
    position: relative;
    isolation: isolate;
}

.page::before {
    content: "";
    position: fixed;
    inset: -180px;
    z-index: -1;
    background:
        radial-gradient(circle at 0% 0%, rgba(15, 23, 42, 0.96), transparent 65%),
        radial-gradient(circle at 100% 0%, rgba(15, 23, 42, 1), transparent 65%),
        radial-gradient(circle at 50% 110%, rgba(0, 0, 0, 1), transparent 70%),
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.26), transparent 70%),
        radial-gradient(circle at 80% 70%, rgba(56, 189, 248, 0.22), transparent 72%),
        repeating-radial-gradient(circle at 10% 80%, rgba(148, 163, 184, 0.16), transparent 4px, transparent 10px),
        repeating-radial-gradient(circle at 90% 20%, rgba(55, 65, 81, 0.24), transparent 3px, transparent 9px);
    filter: blur(36px);
    opacity: 0.9;
    pointer-events: none;
    animation: pageBgDrift 32s ease-in-out infinite alternate;
}

.page::after {
    content: "";
    position: fixed;
    inset: -120px;
    z-index: -2;
    background:
        radial-gradient(circle at 12% 18%, rgba(15, 118, 110, 0.3), transparent 58%),
        radial-gradient(circle at 88% 12%, rgba(30, 64, 175, 0.34), transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.9), transparent 70%),
        repeating-radial-gradient(circle at 30% 60%, rgba(148, 163, 184, 0.16), transparent 2px, transparent 7px);
    opacity: 0.75;
    pointer-events: none;
    mix-blend-mode: screen;
    animation: pageNoisePulse 20s ease-in-out infinite alternate;
}

@keyframes pageBgDrift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(-18px, 12px, 0) scale(1.04);
    }
    100% {
        transform: translate3d(14px, -10px, 0) scale(1.02);
    }
}

@keyframes pageNoisePulse {
    0% {
        opacity: 0.55;
        filter: blur(32px);
    }
    50% {
        opacity: 0.85;
        filter: blur(20px);
    }
    100% {
        opacity: 0.65;
        filter: blur(26px);
    }
}

/* Hero orbits subtle motion */
.hero-orbit {
    animation: orbitSpin 26s linear infinite;
    will-change: transform;
}

.hero-orbit--outer {
    animation-duration: 30s;
    animation-timing-function: linear;
}

.hero-orbit--inner {
    animation-duration: 18s;
    animation-direction: reverse;
    opacity: 0.75;
}

@keyframes orbitSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* === 3D PRINTER LOADER OVERLAY === */

.loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.15), rgba(15, 23, 42, 0.96)),
        radial-gradient(circle at 100% 100%, rgba(37, 99, 235, 0.22), rgba(2, 6, 23, 0.98));
    backdrop-filter: blur(20px);
    transition:
        opacity var(--transition-normal),
        transform var(--transition-normal),
        visibility var(--transition-normal);
}

.loader-overlay--hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
}

.loader-inner {
    max-width: 360px;
    width: 100%;
    padding: 18px 18px 16px;
    border-radius: 20px;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.75);
    box-shadow: 0 26px 80px rgba(15, 23, 42, 0.95);
}

.loader-printer {
    position: relative;
    width: 100%;
    max-width: 260px;
    margin: 0 auto 14px;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.5), rgba(15, 23, 42, 1));
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.95);
}

.loader-printer-frame {
    position: absolute;
    inset: 10%;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.75);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.9);
}

.loader-printer-head {
    position: absolute;
    top: 26%;
    left: 16%;
    width: 28%;
    height: 18%;
    border-radius: 10px;
    background: linear-gradient(135deg, #e5e7eb, #38bdf8);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.85);
    animation: loaderHeadMove 2.4s ease-in-out infinite;
}

.loader-printer-head::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 3px;
    height: 10px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(to bottom, #38bdf8, #0ea5e9);
}

.loader-printer-rail {
    position: absolute;
    top: 24%;
    left: 16%;
    right: 16%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(to right, rgba(148, 163, 184, 0.8), rgba(59, 130, 246, 0.8));
    opacity: 0.85;
}

.loader-printer-model {
    position: absolute;
    left: 32%;
    right: 32%;
    bottom: 20%;
    border-radius: 12px 12px 4px 4px;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.9), rgba(37, 99, 235, 0.95));
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.8);
    transform-origin: center bottom;
    transform: scaleY(0.1);
    animation: loaderPrint 2.4s ease-in-out infinite;
}

.loader-printer-bed {
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 16%;
    height: 6px;
    border-radius: 999px;
    background: radial-gradient(circle at 50% 0%, rgba(15, 23, 42, 0.6), #020617);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.95);
}

.loader-text {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.loader-text-strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
}

@keyframes loaderHeadMove {
    0% {
        transform: translate3d(0, 0, 0);
    }
    25% {
        transform: translate3d(110%, 4px, 0);
    }
    50% {
        transform: translate3d(40%, 2px, 0);
    }
    75% {
        transform: translate3d(-10%, 4px, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes loaderPrint {
    0% {
        transform: scaleY(0.1);
        opacity: 0.2;
    }
    40% {
        transform: scaleY(1);
        opacity: 1;
    }
    70% {
        transform: scaleY(1);
        opacity: 1;
    }
    100% {
        transform: scaleY(0.1);
        opacity: 0.2;
    }
}

/* === TOAST NOTIFICATIONS === */

.toast-root {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 55;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    min-width: 260px;
    max-width: 320px;
    padding: 9px 11px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.8);
    box-shadow: var(--shadow-soft);
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--text-main);
    transform: translateY(10px);
    opacity: 0;
    pointer-events: auto;
    animation:
        toastIn 0.18s ease-out forwards,
        toastOut 0.25s ease-in forwards 4.8s;
}

.toast--success {
    border-color: #22c55e;
}

.toast--error {
    border-color: #f97373;
}

.toast-icon {
    width: 16px;
    height: 16px;
    flex: none;
    margin-top: 2px;
    opacity: 0.9;
}

.toast-message {
    margin: 0;
}

.toast-close {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 0 2px;
    align-self: flex-start;
}

.toast-close:hover {
    color: var(--accent-strong);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(6px);
    }
}

@media (max-width: 640px) {
    .toast-root {
        bottom: 16px;
        right: 16px;
        left: 16px;
    }

    .toast {
        max-width: none;
    }
}
