/* Design tokens — override via /api/public/site-styles, e.g. :root { --color-accent: #0ea5e9; } */
:root {
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    --color-text: #0f172a;
    --color-text-secondary: #64748b;
    --color-text-muted: #4f5770;

    --color-bg-body: #eef1f6;
    --color-bg-body-mid: #e8ecf2;
    --color-bg-body-end: #e2e8f0;
    /* Фон кабінету (узгоджено з Bootstrap-панеллю) */
    --color-bg-cabinet: #f1f5f9;
    --color-bg-grid: rgba(15, 23, 42, 0.028);
    --color-bg-section-alt: rgba(226, 232, 240, 0.55);
    --color-bg-hero: linear-gradient(165deg, #e8edf4 0%, #e2e8f0 45%, #dbe4ee 100%);

    --color-surface: #ffffff;
    --color-header-bg: rgba(255, 255, 255, 0.92);
    --color-border: rgba(15, 23, 42, 0.08);
    --color-border-input: rgba(15, 23, 42, 0.12);

    --color-accent: #2563eb;
    --color-accent-strong: #1d4ed8;
    --color-accent-rgb: 37, 99, 235;
    --color-accent-strong-rgb: 29, 78, 216;

    --color-success: #16a34a;
    --color-success-rgb: 22, 163, 74;
    --color-danger: #dc2626;
    --color-danger-rgb: 220, 38, 38;

    --shadow-header: 0 2px 10px rgba(15, 23, 42, 0.06);
    --shadow-card: 0 4px 20px rgba(15, 23, 42, 0.08);
    --shadow-btn: 0 4px 15px rgba(var(--color-accent-rgb), 0.3);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    background-color: var(--color-bg-body);
    background-image:
        linear-gradient(var(--color-bg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-bg-grid) 1px, transparent 1px),
        radial-gradient(ellipse 120% 80% at 20% 0%, rgba(var(--color-accent-rgb), 0.045), transparent 52%),
        radial-gradient(ellipse 100% 60% at 100% 100%, rgba(var(--color-accent-rgb), 0.035), transparent 48%);
    background-size: 32px 32px, 32px 32px, 100% 100%, 100% 100%;
    background-position: 0 0, 0 0, 0 0, 0 0;
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: no-preference) {
    body {
        animation: cloudMove 40s ease-in-out infinite;
    }
}

@keyframes cloudMove {
    0%, 100% { background-position: 0 0, 0 0, 0 0, 0 0; }
    50% { background-position: 16px 0, 0 16px, 0 0, 0 0; }
}

@media (prefers-reduced-motion: reduce) {
    body {
        animation: none;
    }
}

header {
    background: var(--color-header-bg);
    backdrop-filter: blur(20px);
    color: var(--color-text);
    padding: 0;
    box-shadow: var(--shadow-header);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.logo-link:hover {
    opacity: 0.9;
}

.site-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(var(--color-accent-rgb), 0.25));
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
}

nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 30px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    padding: 8px 0;
    position: relative;
}

nav ul li a:hover {
    color: var(--color-accent);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-strong));
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.header-cta {
    flex-shrink: 0;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-strong) 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-btn);
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--color-accent-rgb), 0.45);
}

.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #f1f5f9;
    border-color: var(--color-accent);
    box-shadow: 0 4px 12px rgba(var(--color-accent-rgb), 0.18);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

.mobile-menu-toggle.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    /* Поверх відкритого drawer (nav.active — 1002), щоб можна було закрити меню */
    z-index: 1003;
}

.mobile-menu-toggle.active span {
    background: white;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

footer {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(180deg, var(--color-bg-body-mid) 0%, var(--color-bg-body-end) 100%);
    color: var(--color-text);
    margin-top: 0;
    border-top: 1px solid var(--color-border);
}

footer p {
    margin: 0;
    font-size: 0.95rem;
}

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

section {
    background: transparent;
    margin-bottom: 0;
    padding: 80px 40px;
    border-radius: 0;
    box-shadow: none;
    position: relative;
}

section:nth-child(even) {
    background: var(--color-bg-section-alt);
}

form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

input,
textarea,
select {
    padding: 12px 16px;
    border: 1px solid var(--color-border-input);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    background: var(--color-surface);
    color: var(--color-text);
    transition: all 0.3s ease;
}

input::placeholder,
textarea::placeholder {
    color: var(--color-text-secondary);
    opacity: 0.75;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(var(--color-accent-rgb), 0.45);
    background: var(--color-surface);
    box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.15);
}

button {
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: white;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-status {
    min-height: 20px;
    font-size: 0.9rem;
}

.contact-info {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--color-bg-body);
    border-radius: var(--radius-sm);
}

.contact-info p {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

/* Уникаємо стрибка прокрутки (scroll anchoring) при зміні висоти блоків після завантаження */
#discovery,
#products,
#productsList,
#contact,
#client-panel,
.contact-map {
    overflow-anchor: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.contact-card {
    background: #FFFFFF;
    border: 1px solid rgba(var(--color-accent-rgb), 0.2);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-card h3 {
    margin-top: 0;
    color: var(--color-text);
    font-size: 1.5rem;
}

.contact-details p {
    margin: 10px 0;
    color: var(--color-text-muted);
}

.contact-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.btn.ghost.dark {
    border-color: rgba(38, 42, 66, 0.3);
    color: #262a42;
}

.contact-map {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e1e5f1;
    min-height: 200px;
}

.contact-map iframe {
    width: 100%;
    height: 280px;
    border: 0;
    display: none;
}

#mapFallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    color: #7a829d;
    background: #f7f8fc;
}

.documents-block {
    margin-top: 20px;
}

.document-checklist {
    padding-left: 20px;
    color: var(--color-text-muted);
}

.document-checklist li {
    margin-bottom: 8px;
}

.form-card form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-hint {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.form-field label {
    color: var(--color-text);
    font-weight: 500;
    margin-bottom: 6px;
}

.input-error {
    min-height: 18px;
    font-size: 0.85rem;
    color: #e74c3c;
}

/* Catalog filters */
.filters-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    background: #FFFFFF;
    border: 1px solid rgba(var(--color-accent-rgb), 0.2);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    align-items: end;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    color: #5c647f;
}

.filter-group input,
.filter-group select {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccd2e4;
    font-size: 1rem;
}

.filter-group.dual {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.filter-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

/* Не display:none — інакше частина браузерів/стилів ламає сусідній .toggle-switch */
.filter-toggle input[type="checkbox"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    appearance: none;
    -webkit-appearance: none;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    width: 44px;
    height: 24px;
    background: #ccd2e4;
    border-radius: 12px;
    transition: background 0.3s ease;
    pointer-events: none;
    z-index: 0;
    box-sizing: border-box;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #FFFFFF;
    top: 3px;
    left: 3px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.filter-toggle input[type="checkbox"]:checked + .toggle-switch {
    background: rgba(var(--color-accent-rgb), 0.8);
}

.filter-toggle input[type="checkbox"]:checked + .toggle-switch::after {
    transform: translateX(20px);
}

.filters-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(var(--color-accent-rgb), 0.2);
}

.filters-panel-header h3 {
    margin: 0;
    color: var(--color-text);
    font-size: 1.2rem;
}

.filters-panel.filters-disabled {
    opacity: 0.6;
}

.filters-panel.filters-disabled input,
.filters-panel.filters-disabled select {
    background: #f5f5f5;
    cursor: not-allowed;
}

.filters-panel.filters-disabled .filters-panel-header {
    opacity: 0.8;
}

.filters-panel.filters-disabled .filter-toggle {
    pointer-events: auto;
    opacity: 1;
}

/* Hide filters panel when disabled in settings */
.filters-panel.filters-hidden,
#discovery.filters-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.filter-chip {
    background: rgba(var(--color-accent-rgb), 0.15);
    color: var(--color-accent);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
}

.filter-chip button {
    background: none;
    border: none;
    color: inherit;
    margin-left: 6px;
    cursor: pointer;
}

.products-meta {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 10px;
}

/* Re-usable UI elements */
.eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn.primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-strong) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(var(--color-accent-rgb), 0.3);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--color-accent-rgb), 0.5);
}

.btn.secondary {
    background: #FFFFFF;
    border: 1px solid rgba(var(--color-accent-rgb), 0.3);
    color: var(--color-accent);
}

.btn.secondary:hover {
    background: #F5F5F5;
    border-color: rgba(var(--color-accent-rgb), 0.5);
    transform: translateY(-2px);
}

.btn.small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn.ghost {
    background: transparent;
    border: 1px solid rgba(var(--color-accent-rgb), 0.4);
    color: var(--color-accent);
}

.btn.ghost.inverse {
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

.btn.ghost:hover {
    background: rgba(var(--color-accent-rgb), 0.1);
}

.btn.outline {
    background: transparent;
    border: 1px solid rgba(var(--color-accent-rgb), 0.3);
    color: var(--color-accent);
}

.btn.outline:hover {
    border-color: rgba(var(--color-accent-rgb), 0.6);
    color: var(--color-accent-strong);
    background: rgba(var(--color-accent-rgb), 0.1);
}

.section-heading {
    text-align: center;
    margin-bottom: 60px;
}

.section-heading h2 {
    margin: 0 0 16px 0;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-text);
}

.section-heading .eyebrow {
    color: var(--color-accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-lead {
    text-align: center;
    color: var(--color-text-muted);
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

section h2 {
    color: var(--color-text);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 20px 0;
}

/* Hero section */
.hero {
    position: relative;
    min-height: 600px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 40px;
    margin: 0;
    background: var(--color-bg-hero);
    overflow: hidden;
}

.particles-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.45), transparent),
        radial-gradient(circle at 60% 70%, rgba(var(--color-accent-rgb), 0.12), transparent),
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(circle at 40% 90%, rgba(var(--color-accent-rgb), 0.06), transparent);
    background-size: 200% 200%;
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .particles-background {
        animation: particles 22s ease infinite;
    }
}

@keyframes particles {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .particles-background {
        animation: none;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-text);
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 24px 0;
    color: var(--color-text);
    text-shadow: none;
}

.hero-text {
    color: var(--color-text-muted);
    font-size: 1.2rem;
    line-height: 1.7;
    margin: 0 0 40px 0;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 40px;
}

.hero-subnav {
    text-align: center;
    margin-top: 20px;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.hero-subnav-link {
    color: var(--color-text);
    text-decoration: underline;
    font-weight: 500;
}

.hero-subnav-link--emphasis {
    font-weight: 600;
}

.hero-subnav-sep {
    margin: 0 0.35em;
}

.hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.server-monitor {
    width: 100%;
    max-width: 400px;
    perspective: 1000px;
}

.monitor-screen {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(var(--color-accent-rgb), 0.3);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 0 40px rgba(var(--color-accent-rgb), 0.05);
}

.monitor-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 20px;
    justify-content: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    min-height: 2.2em;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    text-shadow: none;
    line-height: 1;
}

/* Однакова «лінія» значень у всіх колонках (CPU/RAM/ВМ і аптайм з крапкою) */
.stat-item > .stat-value:not(.stat-value--uptime),
.stat-item > .stat-uptime-row {
    box-sizing: border-box;
    min-height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.stat-item--uptime .stat-uptime-row {
    flex-direction: row;
    gap: 0.45rem;
}

.stat-uptime-dot {
    flex-shrink: 0;
    align-self: center;
    width: 0.5rem;
    height: 0.5rem;
    margin-bottom: 0.12em;
    border-radius: 50%;
    background: #94a3b8;
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.35);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.stat-uptime-dot--online {
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35), 0 0 10px rgba(34, 197, 94, 0.45);
}

.stat-uptime-dot--offline {
    background: #94a3b8;
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.35);
}

@media (prefers-reduced-motion: no-preference) {
    .stat-uptime-dot--online {
        animation: stat-uptime-pulse 2.4s ease-in-out infinite;
    }
}

@keyframes stat-uptime-pulse {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35), 0 0 8px rgba(34, 197, 94, 0.35);
    }
    50% {
        opacity: 0.92;
        box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.45), 0 0 14px rgba(34, 197, 94, 0.55);
    }
}

.stat-value--uptime {
    font-family: var(--font-mono);
    font-size: 2rem;
    line-height: 1;
    text-align: center;
    min-width: 0;
}

.server-racks {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.rack {
    width: 60px;
    height: 120px;
    background: linear-gradient(180deg, rgba(var(--color-accent-rgb), 0.2), rgba(var(--color-accent-strong-rgb), 0.2));
    border: 1px solid rgba(var(--color-accent-rgb), 0.3);
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 20px rgba(var(--color-accent-rgb), 0.2), inset 0 0 20px rgba(var(--color-accent-rgb), 0.1);
}

.rack::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(var(--color-accent-rgb), 0.8);
    animation: blink 2s ease-in-out infinite;
}

.rack:nth-child(2) {
    height: 140px;
}

.rack:nth-child(3) {
    height: 100px;
}

.rack:nth-child(4) {
    height: 130px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Benefits & use cases */
.benefits-grid,
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefits-grid article,
.use-cases-grid article {
    background: #FFFFFF;
    border: 1px solid rgba(var(--color-accent-rgb), 0.2);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefits-grid article::before,
.use-cases-grid article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-strong));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.benefits-grid article:hover::before,
.use-cases-grid article:hover::before {
    transform: scaleX(1);
}

.benefits-grid article:hover,
.use-cases-grid article:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--color-accent-rgb), 0.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    background: #FFFFFF;
}

.benefits-grid article .icon,
.use-cases-grid article .icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(var(--color-accent-rgb), 0.15), rgba(var(--color-accent-strong-rgb), 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: var(--color-accent);
    box-shadow: 0 4px 20px rgba(var(--color-accent-rgb), 0.2);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.benefit-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.benefits-grid article:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
}

.benefits-grid h3,
.use-cases-grid h3 {
    margin: 0 0 16px 0;
    color: var(--color-text);
    font-size: 1.5rem;
    font-weight: 600;
}

.benefits-grid p,
.use-cases-grid p {
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 0;
}

.benefits-grid ul,
.use-cases-grid ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.benefits-grid li,
.use-cases-grid li {
    color: var(--color-text-muted);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.benefits-grid li::before,
.use-cases-grid li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Testimonials carousel */
.testimonial-carousel {
    position: relative;
    overflow: hidden;
    padding: 30px 60px;
    border-radius: 20px;
    background: #FFFFFF;
    border: 1px solid rgba(var(--color-accent-rgb), 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.testimonial-card {
    min-width: 100%;
    padding: 10px 15px;
}

.testimonial-card p {
    font-style: italic;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.testimonial-card h4 {
    margin-top: 20px;
    color: var(--color-text);
    font-weight: 600;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    border: none;
    background: rgba(var(--color-accent-rgb), 0.15);
    color: var(--color-accent);
    font-size: 1.2rem;
    cursor: pointer;
}

.carousel-control.prev {
    left: 15px;
}

.carousel-control.next {
    right: 15px;
}

/* FAQ */
.faq-accordion article {
    border: 1px solid rgba(var(--color-accent-rgb), 0.2);
    border-radius: 16px;
    margin-bottom: 16px;
    background: #FFFFFF;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-accordion article:hover {
    border-color: rgba(var(--color-accent-rgb), 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    background: transparent;
    border: none;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-question:hover {
    color: var(--color-accent);
}

.faq-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.faq-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.faq-question:hover .faq-icon {
    transform: scale(1.15);
}

.faq-answer .faq-icon {
    width: 40px;
    height: 40px;
}

.faq-text {
    flex: 1;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--color-text-muted);
    line-height: 1.7;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.faq-answer.open {
    padding: 0 24px 20px;
}

.faq-answer .faq-icon {
    margin-top: 4px;
}

.faq-answer p {
    flex: 1;
    margin: 0;
}

.contact-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    background: #FFFFFF;
    border: 1px solid rgba(var(--color-accent-rgb), 0.2);
    border-radius: 20px;
    padding: 40px;
    color: var(--color-text);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-cta h2 {
    margin: 10px 0;
    font-size: 2rem;
    color: var(--color-text);
}

.contact-cta .btn {
    flex-shrink: 0;
}


/* Products grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: #FFFFFF;
    border: 1px solid rgba(var(--color-accent-rgb), 0.2);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-strong));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--color-accent-rgb), 0.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    background: #FFFFFF;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(var(--color-accent-rgb), 0.2);
}

/* Великий блок під логотип ОС (Ubuntu / Debian) замість фото-флага */
.product-card-hero--os {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 180px;
    margin-bottom: 20px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(227, 242, 253, 0.45) 100%);
    border-radius: 12px;
    border: 1px solid rgba(var(--color-accent-rgb), 0.18);
    box-sizing: border-box;
}

.product-card .product-card-hero--os .product-card-os-logo {
    width: auto;
    max-width: min(200px, 58%);
    max-height: 120px;
    height: auto;
    object-fit: contain;
    margin: 0;
    border: none;
    box-shadow: none;
}

.modal-hero-os {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 200px;
    margin-bottom: 20px;
    padding: 16px;
    background: #f4f8fc;
    border-radius: 8px;
    box-sizing: border-box;
}

.modal-os-logo {
    width: auto;
    max-width: 200px;
    max-height: 180px;
    object-fit: contain;
}

/* Прапор локації в картці — не успадковувати розмір зображення VPS */
.product-card img.vps-flag-img {
    width: 24px;
    max-width: 24px;
    height: auto;
    max-height: 18px;
    margin: 0;
    object-fit: contain;
    border: none;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.product-card h3 {
    margin: 0 0 12px 0;
    color: var(--color-text);
    font-size: 1.4rem;
    font-weight: 600;
}

.product-card .category-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(var(--color-accent-rgb), 0.15);
    color: var(--color-accent);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    margin-bottom: 12px;
    font-weight: 500;
    border: 1px solid rgba(var(--color-accent-rgb), 0.3);
}

.product-card p {
    margin: 12px 0;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.product-card .price {
    font-weight: 700;
    color: var(--color-text);
    font-size: 1.5rem;
    margin: 16px 0;
}

/* Ряд: ціна зліва, прапор/локація справа (над блоком кнопок) */
.product-card-price-location {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.product-card-price-location .price {
    margin: 0;
    flex: 0 1 auto;
}

.product-card-price-location .vps-location--card-corner {
    margin: 0;
    margin-left: auto;
    max-width: min(100%, 200px);
    justify-content: flex-end;
    text-align: right;
    font-size: 0.85rem;
    padding: 4px 8px;
}

.product-card .read-more {
    margin-top: 12px;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.product-card:hover .read-more {
    color: var(--color-accent-strong);
}

.product-card .card-actions {
    margin-top: 12px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.vps-specs {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 12px 0;
    padding: 12px;
    background: rgba(var(--color-accent-rgb), 0.08);
    border-radius: 8px;
    border: 1px solid rgba(var(--color-accent-rgb), 0.2);
}

.vps-location {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 8px 0;
    padding: 6px 8px;
    background: #e8f4f8;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.vps-location-pin {
    flex-shrink: 0;
    display: block;
    color: var(--color-accent);
    opacity: 0.9;
}

.vps-flag-img {
    flex-shrink: 0;
    vertical-align: middle;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    width: 24px;
    max-width: 24px;
    height: auto;
    max-height: 18px;
    object-fit: contain;
}

.modal-location {
    font-size: 1rem;
    color: #555;
    margin: 10px 0;
    padding: 8px 12px;
    background: #e8f4f8;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.modal-location .vps-location-pin {
    color: var(--color-accent);
}

.order-btn {
    padding: 10px 16px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
}

.order-btn:hover {
    background: #1e8d4d;
}

.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #dce1f0;
    background: white;
    cursor: pointer;
}

.pagination button.active {
    background: #5b7cfa;
    color: white;
    border-color: #5b7cfa;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.modal-content {
    background: #FFFFFF;
    border: 1px solid rgba(var(--color-accent-rgb), 0.2);
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.3s;
    color: var(--color-text);
}

.modal-content h2,
.modal-content h3 {
    color: var(--color-text);
}

.modal-content label {
    color: var(--color-text);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    color: var(--color-text-muted);
    float: right;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
    z-index: 10;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--color-accent);
    text-decoration: none;
}

.modal-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

#modalPostContent h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.8rem;
}

.modal-description {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 20px;
    white-space: pre-wrap;
}

.modal-price {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.3rem;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }

    .modal-close {
        right: 15px;
        top: 10px;
        font-size: 24px;
    }

    #modalPostContent h2 {
        font-size: 1.4rem;
    }
}

/* Admin panel */
#admin {
    background: #f9f9f9;
}

.admin-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.status-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e4e8f5;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 600;
    color: #4c5775;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f39c12;
}

.status-card.online .status-dot {
    background: #27ae60;
}

.status-card.offline .status-dot {
    background: #e74c3c;
}

.status-card.online {
    border-color: rgba(39, 174, 96, 0.4);
}

.status-card.offline {
    border-color: rgba(231, 76, 60, 0.4);
}

.admin-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.admin-tools input {
    flex: 1;
    min-width: 240px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccd2e4;
}

.admin-search-wrapper {
    flex: 1;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-search-header label {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0;
}

.admin-search-wrapper input {
    width: 100%;
    margin: 0;
}

.admin-search-wrapper.search-disabled {
    opacity: 0.5;
}

.admin-search-wrapper.search-disabled input {
    background: #f5f5f5;
    cursor: not-allowed;
}

.admin-search-wrapper.search-disabled .admin-search-header {
    opacity: 0.7;
}

.admin-search-wrapper.search-disabled .filter-toggle {
    pointer-events: auto;
    opacity: 1;
}

.admin-bulk {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.logout-btn,
.new-post-btn {
    margin: 10px 5px;
    padding: 10px 20px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.new-post-btn {
    background: #27ae60;
}

.logout-btn:hover {
    background: #c0392b;
}

.new-post-btn:hover {
    background: #229954;
}

#postFormContainer {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#postFormContainer form {
    max-width: 600px;
}

#postFormContainer button[type="button"] {
    background: #95a5a6;
    margin-left: 10px;
}

#postFormContainer button[type="button"]:hover {
    background: #7f8c8d;
}

.admin-post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.bulk-checkbox {
    display: flex;
    align-items: flex-start;
}

.bulk-checkbox input {
    width: 18px;
    height: 18px;
}

.admin-post-content {
    flex: 1;
}

.admin-post-content h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.admin-post-content p {
    margin: 5px 0;
    color: #666;
    font-size: 0.9rem;
}

.admin-post-meta {
    color: #4c53a0;
    font-size: 0.85rem;
}

.admin-post-content small {
    color: #999;
    font-size: 0.85rem;
}

.admin-post-actions {
    display: flex;
    gap: 10px;
}

.edit-btn,
.delete-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.edit-btn {
    background: #3498db;
    color: white;
}

.edit-btn:hover {
    background: #2980b9;
}

.delete-btn {
    background: #e74c3c;
    color: white;
}

.delete-btn:hover {
    background: #c0392b;
}

/* Admin contacts styles */
.admin-contact-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    border-left: 4px solid #ddd;
}

.admin-contact-item.status-new {
    border-left-color: #3498db;
    background: #f0f8ff;
}

.admin-contact-item.status-read {
    border-left-color: #f39c12;
    background: #fffbf0;
}

.admin-contact-item.status-processed {
    border-left-color: #27ae60;
    background: #f0fff4;
}

.admin-contact-content {
    flex: 1;
}

.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.contact-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.contact-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.contact-status.status-new {
    background: #3498db;
    color: white;
}

.contact-status.status-read {
    background: #f39c12;
    color: white;
}

.contact-status.status-processed {
    background: #27ae60;
    color: white;
}

.contact-phone {
    margin: 8px 0;
    color: #555;
    font-size: 0.95rem;
}

.contact-message {
    margin: 10px 0;
    color: #666;
    line-height: 1.6;
    white-space: pre-wrap;
}

.admin-contact-content small {
    color: #999;
    font-size: 0.85rem;
}

.admin-contact-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: 15px;
}

.mark-read-btn,
.mark-processed-btn,
.delete-contact-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
}

.mark-read-btn {
    background: #3498db;
    color: white;
}

.mark-read-btn:hover {
    background: #2980b9;
}

.mark-processed-btn {
    background: #27ae60;
    color: white;
}

.mark-processed-btn:hover {
    background: #229954;
}

.delete-contact-btn {
    background: #e74c3c;
    color: white;
}

.delete-contact-btn:hover {
    background: #c0392b;
}

/* Contact info editor styles */
#contactInfoEditor {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#contactInfoEditor form {
    max-width: 600px;
}

#contactDetails p {
    margin: 10px 0;
    color: #555;
    line-height: 1.6;
}

#contactDetails a {
    color: #3498db;
    text-decoration: none;
}

#contactDetails a:hover {
    text-decoration: underline;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #333;
    color: white;
    padding: 16px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 300px;
    max-width: 400px;
    animation: toastSlideIn 0.3s ease-out;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.toast.success {
    background: #27ae60;
}

.toast.error {
    background: #e74c3c;
}

.toast.warning {
    background: #f39c12;
}

.toast.info {
    background: #3498db;
}

.toast-message {
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .header-container {
        padding: 15px 60px 15px 20px;
        flex-wrap: wrap;
        position: relative;
    }
    
    header {
        position: relative;
    }

    .header-cta {
        display: none;
    }

    .logo-link {
        gap: 8px;
    }

    .site-logo {
        height: 32px;
        max-width: 120px;
    }

    header h1 {
        font-size: 1.2rem;
    }

    nav {
        order: 3;
        width: 100%;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 40px 20px;
        min-height: auto;
        gap: 30px;
    }

    .hero-content h2 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 16px;
    }

    .hero-text {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 24px;
    }

    .hero-meta {
        font-size: 0.9rem;
    }

    .hero-visual {
        order: -1;
    }

    .server-racks {
        gap: 10px;
    }

    .rack {
        width: 40px;
        height: 80px;
    }

    .rack:nth-child(2) {
        height: 100px;
    }

    .rack:nth-child(3) {
        height: 70px;
    }

    .rack:nth-child(4) {
        height: 90px;
    }

    section {
        padding: 40px 20px;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .section-heading p {
        font-size: 0.95rem;
        margin-top: 12px;
    }

    .benefits-grid,
    .use-cases-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .benefits-grid article,
    .use-cases-grid article,
    .product-card {
        padding: 25px;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 90vw;
        height: 100vh;
        background: white;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding: 80px 0 20px 0;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    nav.active {
        right: 0;
        /* Вище .header-auth (1001) і кнопки бургера, інакше пункти меню ховаються під «Увійти» */
        z-index: 1002;
    }

    /* Overlay when menu is open */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 999;
        animation: fadeIn 0.3s ease;
        backdrop-filter: blur(2px);
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    nav ul {
        flex-direction: column;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    nav ul li {
        display: block;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        display: block;
        font-size: 1rem;
        font-weight: 500;
        color: var(--color-text);
        padding: 16px 24px;
        text-decoration: none;
        transition: all 0.2s ease;
        border-left: 3px solid transparent;
    }

    nav ul li a:hover,
    nav ul li a:focus {
        background: #f5f7fa;
        color: var(--color-accent);
        border-left-color: var(--color-accent);
        padding-left: 28px;
    }

    nav ul li a::after {
        display: none;
    }


    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .toast {
        min-width: auto;
        max-width: 100%;
        padding: 14px 16px;
        font-size: 0.9rem;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content,
    .hero-text,
    .section-heading {
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-meta {
        text-align: center;
    }

    .contact-card,
    .form-card {
        padding: 20px;
    }

    .filters-panel {
        grid-template-columns: 1fr;
        padding: 18px;
    }
    
    /* Hide filters panel when disabled in settings - mobile */
    .filters-panel.filters-hidden,
    #discovery.filters-hidden {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    .contact-cta {
        flex-direction: column;
        text-align: center;
    }

    .testimonial-carousel {
        padding: 20px 25px;
    }

    .carousel-control {
        display: none;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .admin-post-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-post-actions {
        width: 100%;
        margin-top: 10px;
    }

    .edit-btn,
    .delete-btn {
        flex: 1;
    }

    .admin-contact-item {
        flex-direction: column;
    }

    .admin-contact-actions {
        width: 100%;
        margin-left: 0;
        margin-top: 15px;
        flex-direction: row;
    }

    .mark-read-btn,
    .mark-processed-btn,
    .delete-contact-btn {
        flex: 1;
    }
}

/* Client panel styles */
#client-panel {
    background: var(--color-bg-body);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    padding-top: 48px;
    padding-bottom: 48px;
}

.client-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.vps-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-card);
}

.vps-card h4 {
    margin: 0 0 15px 0;
    color: var(--color-text);
    font-size: 1.25rem;
}

.vps-info {
    margin-bottom: 15px;
}

.vps-info p {
    margin: 8px 0;
    color: var(--color-text-secondary);
}

.vps-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.vps-status.running {
    background: rgba(var(--color-success-rgb), 0.15);
    color: var(--color-success);
}

.vps-status.stopped {
    background: rgba(var(--color-danger-rgb), 0.12);
    color: var(--color-danger);
}

.vps-status.unknown {
    background: rgba(100, 116, 139, 0.2);
    color: var(--color-text-secondary);
}

.vps-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.vps-connection-block {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e8e8e8;
}

.vps-connection-block h5 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: var(--color-text);
}

.vps-connection-block p {
    margin: 6px 0;
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    line-height: 1.45;
}

.vps-connection-block .muted {
    color: var(--color-text-muted);
    font-size: 0.88rem;
}

.vps-ssh-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.vps-ssh-row code {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    background: var(--color-bg-body);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    word-break: break-all;
}

.vps-copy-btn {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-accent);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.vps-copy-btn:hover {
    background: rgba(var(--color-accent-rgb), 0.08);
    border-color: rgba(var(--color-accent-rgb), 0.35);
}

.vps-copy-btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.client-vps-loading {
    padding: 24px 0;
}

.client-vps-skeleton {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.client-vps-skeleton__line {
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(
        90deg,
        var(--color-bg-body) 0%,
        rgba(var(--color-accent-rgb), 0.08) 50%,
        var(--color-bg-body) 100%
    );
    background-size: 200% 100%;
    animation: clientVpsSkeleton 1.2s ease-in-out infinite;
}

.client-vps-skeleton__line--short {
    width: 55%;
}

.client-vps-skeleton__line--medium {
    width: 80%;
}

@keyframes clientVpsSkeleton {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .client-vps-skeleton__line {
        animation: none;
        background: var(--color-bg-body);
    }
}

.client-vps-empty {
    text-align: center;
    padding: 40px 24px;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-text-secondary);
}

.client-vps-empty p {
    margin: 0 0 16px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
}

.client-pending-vps {
    margin-bottom: 24px;
    padding: 20px 22px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.client-pending-vps h4 {
    margin: 0 0 12px;
    color: var(--color-text);
    font-size: 1.1rem;
}

.client-pending-vps > p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.client-vps-loading-label {
    display: block;
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.vps-card--pending {
    border-left: 4px solid var(--color-accent);
}

.vps-ip-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}

.vps-ip-code {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    background: var(--color-bg-body);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.client-form-submit {
    width: 100%;
    margin-top: 15px;
}

.client-form-footer {
    text-align: center;
    margin-top: 16px;
}

.client-form-footer--loose {
    margin-top: 20px;
}

.client-form-inline-link {
    font-weight: 700;
    text-decoration: underline;
    color: var(--color-accent);
}

.client-2fa-settings-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
    margin: 12px 0 0;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.client-2fa-settings-toggle:hover {
    background: var(--color-bg-body);
    border-color: rgba(var(--color-accent-rgb), 0.35);
}

.client-2fa-settings-toggle::after {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid var(--color-text-secondary);
    border-bottom: 2px solid var(--color-text-secondary);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.client-2fa-settings-toggle[aria-expanded="true"]::after {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.client-2fa-settings-panel {
    margin-top: 12px;
    padding-top: 4px;
}

.client-2fa-btn-spaced {
    margin-top: 10px;
}

.vps-ready-modal .vps-ready-modal-body {
    margin-top: 8px;
}

.vps-ready-modal .vps-ready-modal-body p {
    margin: 8px 0;
    color: #444;
    line-height: 1.45;
}

.vps-ready-warn {
    padding: 10px 12px;
    background: #fff8e6;
    border: 1px solid #f0d78c;
    border-radius: 8px;
    color: #5c4a00;
}

.vps-ready-hint {
    font-size: 0.9rem;
    color: #666;
}

.vps-ready-ssh {
    margin-top: 14px;
}

.vps-ready-copy-row {
    margin-bottom: 12px;
}

.vps-ready-copy-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 4px;
}

.vps-ready-code {
    display: block;
    margin: 0 0 8px 0;
    padding: 10px 12px;
    background: #f4f6f8;
    border: 1px solid #e0e4ea;
    border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-break: break-all;
}

.vps-access-modal-subtitle {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.45;
    margin: 0 0 16px 0;
}

.vps-access-modal-hint {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.45;
    margin: 12px 0 16px 0;
}

#vpsAccessOs {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    color: var(--color-text);
}

.modal-content #vpsAccessOs:focus {
    outline: 2px solid rgba(var(--color-accent-rgb), 0.45);
    outline-offset: 2px;
}

.vps-access-progress {
    margin: 0 0 16px 0;
    padding: 0;
}

.vps-access-progress__text {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    color: #37474f;
    line-height: 1.45;
}

.vps-access-progress__track {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(var(--color-accent-rgb), 0.15);
    overflow: hidden;
}

.vps-access-progress__bar {
    height: 100%;
    width: 40%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--color-accent), #64b5f6, var(--color-accent));
    background-size: 200% 100%;
    animation: vpsAccessProgressIndeterminate 1.1s ease-in-out infinite;
}

@keyframes vpsAccessProgressIndeterminate {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(350%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .vps-access-progress__bar {
        animation: none;
        width: 100%;
        opacity: 0.85;
    }
}

/* Admin extensions styles */
.admin-order-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    border-left: 4px solid #ddd;
}

.admin-order-item.status-active {
    border-left-color: #27ae60;
}

.admin-order-item.status-pending {
    border-left-color: #f39c12;
}

.admin-order-item.status-cancelled {
    border-left-color: #e74c3c;
}

.admin-order-content {
    flex: 1;
}

.admin-order-content h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.admin-order-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-quick-edit {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.order-action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.order-status-select,
.order-payment-select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
}

.order-status-select:hover,
.order-payment-select:hover {
    border-color: #5b7cfa;
}

.btn.danger {
    background: #e74c3c;
    color: white;
    border: none;
}

.btn.danger:hover {
    background: #c0392b;
}

.btn.danger:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.admin-order-actions-old {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-status-select,
.order-payment-select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 0.9rem;
}

.admin-user-item {
    padding: 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.admin-user-content h4 {
    margin: 0 0 8px 0;
    color: #333;
}

.admin-vps-item {
    padding: 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.admin-vps-content h4 {
    margin: 0 0 8px 0;
    color: #333;
}

.payment-paid {
    color: #27ae60;
    font-weight: 600;
}

.payment-unpaid {
    color: #e74c3c;
    font-weight: 600;
}

@media (max-width: 480px) {
    .header-container {
        padding: 12px 55px 12px 15px;
    }

    header h1 {
        font-size: 1rem;
    }

    .site-logo {
        height: 28px;
        max-width: 100px;
    }
    
    .mobile-menu-toggle {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }
    
    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
    }
    
    nav {
        width: 280px;
        padding-top: 70px;
    }
    
    nav ul li a {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .mobile-menu-toggle {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }
    
    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
    }
    
    nav {
        width: 280px;
        padding-top: 70px;
    }
    
    nav ul li a {
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-cta .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }

    .section-heading h2 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .monitor-screen {
        padding: 20px;
    }

    .monitor-stats {
        flex-direction: column;
        gap: 15px;
    }

    /* Forms on mobile */
    form {
        gap: 16px;
    }

    input, textarea, select {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 14px 16px;
    }

    button, .btn {
        min-height: 44px; /* Touch target size */
        padding: 14px 20px;
        font-size: 1rem;
    }

    /* Cards and grids */
    .product-card, .benefits-grid article, .use-cases-grid article {
        padding: 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-card {
        padding: 24px 20px;
    }

    /* Tables */
    table {
        font-size: 0.85rem;
    }

    table th, table td {
        padding: 8px 4px;
    }

    /* Client panel */
    .vps-card {
        padding: 16px;
    }

    .client-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    /* Hide filters panel when disabled in settings - small mobile */
    .filters-panel.filters-hidden,
    #discovery.filters-hidden {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    /* Modals */
    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 5% auto;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Filters */
    .filters-panel {
        padding: 16px;
        gap: 12px;
    }

    .filter-chip {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }

    .pagination button {
        min-width: 40px;
        padding: 10px;
    }
}