/* СпецАренда.РФ — Quiet Dark Design 2025 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
    /* Muted dark palette */
    --bg-primary: #0c0c0e;
    --bg-secondary: #141416;
    --bg-card: #1a1a1e;
    --bg-elevated: #222226;
    
    /* Single accent - warm orange, used sparingly */
    --accent: #e85a1c;
    --accent-muted: rgba(232, 90, 28, 0.15);
    --accent-subtle: rgba(232, 90, 28, 0.08);
    
    /* Text hierarchy */
    --text-primary: #f5f5f5;
    --text-secondary: #888890;
    --text-muted: #555558;
    
    /* Borders */
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    
    /* Spacing scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    
    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Subtle background gradient - very muted */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 100% 100% at 50% 0%, rgba(232, 90, 28, 0.03), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    position: relative;
    z-index: 1;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-sm) 0;
    background: rgba(12, 12, 14, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.01em;
}

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

.logo-icon {
    margin-right: 0.5rem;
    vertical-align: middle;
    margin-top: -2px;
}

.nav-links {
    display: flex;
    gap: var(--space-xs);
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 450;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: color 0.2s var(--ease);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a.active {
    color: var(--text-primary);
    background: var(--bg-card);
}

/* Mobile menu */
.mobile-menu-btn {
    position: relative;
    z-index: 1002;
    -webkit-tap-highlight-color: transparent;
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text-primary);
    margin: 5px 0;
    border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    left: -6%;
    right: -6%;
    bottom: -14px;
    height: 90px;
    background: linear-gradient(180deg, rgba(12, 12, 14, 0.08) 0%, rgba(12, 12, 14, 0.86) 72%, rgba(12, 12, 14, 1) 100%);
    filter: blur(30px);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    left: -14%;
    right: -14%;
    bottom: -320px;
    height: 620px;
    background: linear-gradient(180deg, rgba(12, 12, 14, 0) 0%, rgba(12, 12, 14, 0.14) 64%, rgba(12, 12, 14, 0.96) 90%, rgba(12, 12, 14, 1) 100%);
    filter: blur(150px);
    opacity: 1;
    pointer-events: none;
    z-index: 3;
}

.hero > .container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

/* Full-bleed photo background */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0.86) 82%, rgba(0, 0, 0, 0.45) 92%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0.86) 82%, rgba(0, 0, 0, 0.45) 92%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.hero-bg img {
    width: 100%;
    height: calc(100% + 110px);
    display: block;
    object-fit: cover;
    object-position: 84% center;
    transform: translateY(-12px);
    filter: brightness(1.08) saturate(1.16) contrast(1.06);
}

/* Readability veil: dense on left, transparent to right */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 9, 12, 0.84) 0%, rgba(8, 9, 12, 0.55) 25%, rgba(8, 9, 12, 0.30) 45%, rgba(8, 9, 12, 0.10) 65%, transparent 100%),
        linear-gradient(180deg, rgba(8, 9, 12, 0.05) 0%, rgba(8, 9, 12, 0.16) 56%, rgba(8, 9, 12, 0.36) 100%);
}

/* Blur-fade at the bottom to hide hard image edge */
.hero-bg::before {
    content: '';
    position: absolute;
    left: -14%;
    right: -14%;
    bottom: -250px;
    height: 520px;
    background:
        linear-gradient(180deg, rgba(12, 12, 14, 0) 0%, rgba(12, 12, 14, 0.16) 56%, rgba(12, 12, 14, 0.88) 84%, rgba(12, 12, 14, 1) 100%),
        radial-gradient(120% 72% at 50% 4%, rgba(12, 12, 14, 0.30) 0%, rgba(12, 12, 14, 0) 70%);
    filter: blur(132px);
    pointer-events: none;
}

.hero-content {
    max-width: min(700px, 58vw);
    position: relative;
    z-index: 1;
    margin-left: 0;
    text-align: left;
}

.hero-content::before {
    content: '';
    position: absolute;
    inset: -20px -20px -24px -20px;
    background: radial-gradient(136% 116% at 8% 38%, rgba(7, 7, 9, 0.28) 0%, rgba(7, 7, 9, 0.10) 52%, rgba(7, 7, 9, 0) 84%);
    filter: blur(12px);
    opacity: 0.45;
    pointer-events: none;
    z-index: -1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: var(--accent-subtle);
    border: 1px solid var(--accent-muted);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: var(--space-lg);
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.hero h1 {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.05;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.hero h1 .muted {
    color: #fff;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #fff;
    max-width: 480px;
    margin-bottom: var(--space-lg);
    line-height: 1.7;
    font-weight: 400;
}

.hero h1,
.hero-subtitle {
    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* Floating cards - properly spaced */
.hero-visual {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.floating-card {
    background: rgba(26, 26, 30, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    min-width: 160px;
}

.floating-card:nth-child(1) { transform: translateX(-40px); }
.floating-card:nth-child(2) { transform: translateX(20px); }
.floating-card:nth-child(3) { transform: translateX(-20px); }

.hero-stats .floating-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(26, 26, 30, 0.24) 100%, rgba(26, 26, 30, 0.18) 100%, rgba(26, 26, 30, 0.08) 100%, rgba(26, 26, 30, 0.01) 100%);
    border-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    box-shadow: none;
}

.hero-stats .floating-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(68% 95% at 86% 62%, rgba(26, 26, 30, 0) 0%, rgba(26, 26, 30, 0) 58%, rgba(26, 26, 30, 0.10) 100%);
    pointer-events: none;
}

.floating-card .label {
    font-size: 0.75rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.floating-card .value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.floating-card .value.accent {
    color: var(--accent);
}

@media (max-width: 1100px) {
    .hero-visual { display: none; }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: #d14e15;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--border-hover);
}


.btn-danger {
    background: #dc2626;
    color: #fff;
    border: none;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-icon {
    width: 16px;
    height: 16px;
}

/* ===== STATS SECTION ===== */
.stats-section {
    padding: calc(var(--space-2xl) + 124px) 0 var(--space-2xl);
    border-top: none;
    border-bottom: 1px solid var(--border);
    margin-top: -124px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-number span {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-muted);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 450;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    margin-bottom: var(--space-xl);
}

.section-header.center {
    text-align: center;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 480px;
}

.section-header.center .section-subtitle {
    margin: 0 auto;
}

/* ===== EQUIPMENT GRID ===== */
.equipment-section {
    padding: var(--space-2xl) 0;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-md);
}

.equipment-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    transition: all 0.25s var(--ease);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Фото в карточке техники (баннер) */
.card-image{
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: var(--radius-md);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: var(--space-sm);
    overflow: hidden;
}


.equipment-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.available {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}

.status-badge.rented {
    background: var(--accent-subtle);
    color: var(--accent);
}

.status-badge.maintenance {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.status-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.card-year {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.card-type {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.card-footer {
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-price-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.125rem;
}

.card-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    transition: gap 0.2s var(--ease);
}

.card-link:hover {
    gap: 0.5rem;
}

.card-link svg {
    width: 14px;
    height: 14px;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: var(--space-2xl) 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.feature-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s var(--ease);
}

.feature-item:hover {
    border-color: var(--border-hover);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.feature-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feature-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: var(--space-2xl) 0;
}

.cta-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
}

.cta-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
}

.cta-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-secondary);
    border-top: 0px solid var(--border);
    padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.footer-brand {
    margin: 0;
    text-align: left;
    
}

.footer-logo {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: block;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.625rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s var(--ease);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-contact-link {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-contact-link:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.footer-legal {
    display: flex;
    gap: var(--space-md);
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s var(--ease);
}

.footer-legal a:hover {
    color: var(--text-secondary);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9375rem;
    transition: border-color 0.2s var(--ease);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555558' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ===== CALCULATOR ===== */
.calculator-section {
    padding: var(--space-lg) 0 var(--space-2xl);
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.calc-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.calc-form-header {
    margin-bottom: var(--space-lg);
}

.calc-form-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.calc-form-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.calc-results {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    position: sticky;
    top: 5rem;
}

.result-header {
    text-align: center;
    margin-bottom: var(--space-md);
}

.result-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.result-price {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.result-divider {
    height: 1px;
    background: var(--border);
    margin: var(--space-md) 0;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 0;
    font-size: 0.9375rem;
}

.result-row-label {
    color: var(--text-secondary);
}

.result-row-value {
    font-weight: 500;
    color: var(--text-primary);
}

.result-note {
    margin-top: var(--space-md);
    padding: var(--space-sm);
    background: var(--accent-subtle);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.result-note strong {
    color: var(--accent);
}

/* ===== CATALOG ===== */
.catalog-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 450;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.filter-btn svg {
    color: var(--accent);
    stroke: var(--accent);
}

.filter-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.filter-btn.active svg {
    color: white;
    stroke: white;
}

/* ===== ABOUT PAGE ===== */
.about-hero {
    padding: 10rem 0 var(--space-xl);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.about-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    text-align: center;
}

.about-content {
    padding: var(--space-2xl) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.type-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    text-align: center;
    transition: border-color 0.2s var(--ease);
}

.type-card:hover {
    border-color: var(--border-hover);
}

.type-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.type-name {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.type-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.info-item {
    padding: var(--space-sm);
    background: var(--bg-primary);
    border-radius: var(--radius-md);
}

.info-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: initial ;
    letter-spacing: 0.03em;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 0.9375rem;
    font-weight: 500;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.2s var(--ease);
}

.contact-item:hover {
    background: var(--bg-elevated);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-subtle);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
}

.contact-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-bottom: 0.125rem;
}

.contact-value {
    font-size: 0.9375rem;
    font-weight: 500;
}

/* ===== UTILITIES ===== */
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }

.hidden { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .features-grid,
    .calculator-grid,
    .about-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* ===== PREVENT HORIZONTAL SCROLL ===== */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    *, *::before, *::after {
        max-width: 100vw;
    }
    
    .container {
        padding: 0 16px !important;
        overflow: hidden;
    }

    nav .container,
    nav .nav-content {
        overflow: visible !important;
    }
    
    img, video, iframe, svg {
        max-width: 100%;
        height: auto;
    }
    
    /* ===== MOBILE NAVIGATION ===== */
    nav {
        padding-top: calc(var(--space-sm) + env(safe-area-inset-top));
    }


    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        height: 100dvh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 80px 24px 32px;
        gap: 8px;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        z-index: 1000;
        display: flex !important;
        pointer-events: none;
    }
    
    .nav-links.active {
        right: 0;
        pointer-events: auto;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: var(--radius-sm);
        width: 100%;
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        background: var(--bg-card);
    }
    
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 32px;
        height: 32px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid var(--border);
        border-radius: 8px;
        cursor: pointer;
        z-index: 1001;
        padding: 4px;
    }
    
    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--text-primary);
        opacity: 1;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    body.nav-open {
        overflow: hidden;
    }
    
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.6);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* ===== HERO MOBILE ===== */
    .hero {
        min-height: auto;
        padding: 90px 0 40px;
    }

    .hero::before {
        left: -6%;
        right: -6%;
        bottom: -10px;
        height: 76px;
        filter: blur(24px);
    }

    .hero-content {
        max-width: 90%;
        padding-left: 0;
        padding-right: 0;
        margin-top: 30px;
        text-align: left;
    }

    .hero-bg img {
        height: calc(100% + 9px);
        object-position: 80% center;
        transform: translateY(-79px);
        filter: brightness(1.0) saturate(1.0) contrast(1.1);
    }

    /* One overlay: top darkening for badge, middle for text, bottom seam hide */
 .hero-bg::after {
        display: block;
        background:
            /* top: darken sky/badge area */
            linear-gradient(180deg, rgba(12, 12, 14, 0.55) 10%, rgba(12, 12, 14, 0.15) 58%, transparent 30%),
            /* middle: stronger veil for text readability */
            linear-gradient(90deg, rgba(12, 12, 14, 0.60) 10%, rgba(12, 12, 14, 0.40) 50%, rgba(12, 12, 14, 0.15) 100%, transparent 100%),
            /* bottom: aggressive solid fade to kill seam */
            linear-gradient(180deg, transparent 50%, rgba(12, 12, 14, 0.5) 65%, rgba(12, 12, 14, 0.85) 78%, rgba(12, 12, 14, 1) 90%);
    }

    /* Disable separate before/after blurs — all handled by ::after above */
    .hero-bg::before {
        display: none;
    }

    .hero::after {
        display: none;
    }

    .hero-content::before {
        display: none;
    }
    
    .hero h1 {
        font-size: auto;
        line-height: auto;
    }
    
    .hero h1 .muted {
        display: auto;
        font-size: auto;
    }
    
    .hero-subtitle {
        font-size: 1.16rem;
        line-height: 1.45;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    .hero-actions {
        flex-direction: row;
        gap: 12px;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: auto;
        justify-content: center;
        padding: 14px 20px;
        font-size: 1.0rem;
        font-weight: 560;
    }

    .hero-actions .btn-primary {
        background: rgba(232, 90, 28, 1.00);
        border: 1px solid rgba(255, 255, 255, 0.16);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }

    .hero-actions .btn-secondary {
        background: rgba(26, 26, 30, 0.20);
        border: 1px solid rgba(255, 255, 255, 0.16);
        backdrop-filter: blur(1.0px);
        -webkit-backdrop-filter: blur(3px);
    }

    .stats-section {
        padding-top: calc(var(--space-2xl) + 86px);
        margin-top: -86px;
    }
    
    /* Hero stats - переопределяем inline стили */
    .hero-stats,
    .hero-stats[style] {
    display: none !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
    margin-top: 32px !important;
    }
    
    .hero-stats .floating-card,
    .floating-card {
        flex: 1 1 0;
        min-width: 15;
        padding: 10px;
        text-align: center;
        flex: 0 0 calc(50% - 6px);   /* две в ряд, третья вниз */
   
    }
    
    .floating-card .value {
        font-size: clamp(1rem, 4vw, 1.4rem);
        text-align: center;
    }
    
    .floating-card .label {
        font-size: clamp(0.65rem, 2.5vw, 0.8rem);
        text-align: center;
    }
    
    /* ===== STATS SECTION ===== */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-item {
        padding: 20px;
        text-align: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* ===== EQUIPMENT GRID ===== */
    .equipment-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .equipment-card {
        padding: 16px;
    }
    
    .equipment-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    /* ===== FEATURES ===== */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .feature-item {
        padding: 16px;
    }
    
    /* ===== SECTION TITLES ===== */
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .section-tag {
        font-size: 0.7rem;
    }
    
    /* ===== FOOTER ===== */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    /* ===== CTA ===== */
    .cta-card {
        padding: 24px 16px;
    }
    
    .cta-card h2 {
        font-size: 1.25rem;
    }
    
    /* ===== FORMS ===== */
    input, select, textarea, .form-input, .form-select {
        font-size: 16px !important; /* Prevent iOS zoom */
    }
    
    .form-row {
        flex-direction: column;
    }
    
    /* ===== CALCULATOR ===== */
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .calc-sidebar {
        position: static;
    }
    
    .calc-form {
        padding: 16px;
    }
    
    /* ===== OTHER GRIDS ===== */
    .types-grid,
    .two-column-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* ===== TABLES ===== */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* ===== BUTTONS ===== */
    .btn {
        padding: 12px 20px;
        font-size: 0.875rem;
    }
    
    /* ===== CATALOG ===== */
    .catalog-filters {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .filter-btn {
        font-size: 0.75rem;
        padding: 8px 12px;
    }
}

/* ===== EXTRA SMALL SCREENS (iPhone SE) ===== */
@media (max-width: 380px) {
    .container {
        padding: 0 12px !important;
    }
    .hero {
        padding: 90px 0 32px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h1 .muted {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-actions .btn {
        padding: 12px 16px;
        font-size: 0.875rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .floating-card .value {
        font-size: 1.25rem;
    }
    
    .nav-links {
        width: 85%;
    }
}


/* ===== DASHBOARD ===== */
.dashboard-layout{
    --dashboard-nav-offset: 72px;
    display:flex;
    min-height: calc(100vh - var(--dashboard-nav-offset));
    padding-top: var(--dashboard-nav-offset); /* fixed nav space */
}

.dashboard-layout .sidebar{
    width: 280px;
    flex: 0 0 280px;
    background: rgba(18, 18, 20, 0.85);
    border-right: 1px solid var(--border);
    padding: var(--space-lg) var(--space-md);
    position: sticky;
    top: var(--dashboard-nav-offset);
    height: calc(100vh - var(--dashboard-nav-offset));
    overflow-y: auto;
}

.dashboard-layout .main-content{
    flex: 1;
    min-width: 0;
    padding: var(--space-xl);
}

.sidebar-nav{
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-nav a{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.sidebar-nav a svg{
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    opacity: 0.9;
}

.sidebar-nav a:hover{
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border);
}

.sidebar-nav a.active{
    background: var(--accent-subtle);
    color: var(--accent);
    border-color: rgba(232, 90, 28, 0.25);
}

.sidebar-section{
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

.sidebar-section-title{
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.user-card{
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.role-badge{
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.stat-card{
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.stat-card-icon{
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.dashboard-grid{
    display: grid;
    gap: var(--space-md);
}

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

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

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

.mobile-bottom-nav{ display: none; }

@media (max-width: 1200px){
    .dashboard-layout{
        --dashboard-nav-offset: 104px;
    }

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

    .dashboard-grid-split{
        grid-template-columns: 1fr;
    }

    .dashboard-nav .nav-content{
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .dashboard-nav .logo{
        flex: 1 1 100%;
    }

    .dashboard-nav .nav-actions{
        flex: 1 1 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        row-gap: 6px;
    }
}

@media (max-width: 768px){
    .dashboard-layout{
        --dashboard-nav-offset: 140px;
        display: block;
        padding-top: var(--dashboard-nav-offset);
        min-height: calc(100vh - var(--dashboard-nav-offset));
    }

    .dashboard-layout .sidebar{ display: none; }

    .dashboard-layout .main-content{
        padding: var(--space-lg) 16px;
        padding-bottom: 92px; /* for bottom nav */
    }

    .mobile-bottom-nav{
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        background: rgba(18,18,20,0.92);
        border-top: 1px solid var(--border);
        border-bottom: none;
        backdrop-filter: blur(12px);
        z-index: 1000;
    }

    .mobile-bottom-nav-items{
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 4px;
        padding: 10px 10px 12px;
    }

    .mobile-nav-item{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        color: var(--text-muted);
        text-decoration: none;
        font-size: 0.65rem;
        min-width: 0;
        flex: 1;
        padding: 6px 4px;
    }

    .mobile-nav-item svg{
        width: 18px;
        height: 18px;
    }

    .mobile-nav-item.active{ color: var(--accent); }

    .dashboard-grid-4,
    .dashboard-grid-3{
        grid-template-columns: 1fr;
    }

    .dashboard-nav .nav-actions{
        flex-wrap: wrap;
        row-gap: 6px;
    }

    .dashboard-nav .nav-back-link{
        flex: 1 1 100%;
        font-size: 0.8125rem;
    }

    .dashboard-nav .nav-user{
        width: 100%;
        justify-content: flex-end;
    }

    .client-card .client-row{
        flex-direction: column;
        align-items: flex-start !important;
    }

    .client-card .client-meta{
        text-align: left !important;
    }
}
/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===== SELECTION ===== */
::selection {
    background: var(--accent-muted);
    color: var(--text-primary);
}

/* ===== ANIMATIONS ===== */

/* Fade in up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

/* Staggered animation delays */
.animate-item { opacity: 0; }
.animate-item.visible {
    animation: fadeInUp 0.6s var(--ease) forwards;
}

.animate-item:nth-child(1) { animation-delay: 0s; }
.animate-item:nth-child(2) { animation-delay: 0.1s; }
.animate-item:nth-child(3) { animation-delay: 0.2s; }
.animate-item:nth-child(4) { animation-delay: 0.3s; }
.animate-item:nth-child(5) { animation-delay: 0.4s; }
.animate-item:nth-child(6) { animation-delay: 0.5s; }
.animate-item:nth-child(7) { animation-delay: 0.6s; }

/* Hero animations */
.hero-badge {
    animation: fadeInUp 0.6s var(--ease) 0.1s backwards;
}

.hero h1 {
    animation: fadeInUp 0.6s var(--ease) 0.2s backwards;
}

.hero-subtitle {
    animation: fadeInUp 0.6s var(--ease) 0.3s backwards;
}

.hero-actions {
    animation: fadeInUp 0.6s var(--ease) 0.4s backwards;
}

/* Floating cards animation */
.floating-card {
    animation: float 4s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    animation-delay: 0.5s;
}

.floating-card:nth-child(3) {
    animation-delay: 1s;
}

/* Button hover animations */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s var(--ease), height 0.4s var(--ease);
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn-icon {
    transition: transform 0.3s var(--ease);
}

.btn:hover .btn-icon {
    transform: translateX(3px);
}

/* Card hover animations */
.equipment-card {
    transition: all 0.3s var(--ease);
}

.equipment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-item {
    transition: all 0.3s var(--ease);
}

.feature-item:hover {
    transform: translateX(8px);
}

.feature-icon {
    transition: all 0.3s var(--ease);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    background: var(--accent-muted);
}

/* Icon animations */
.icon {
    transition: all 0.3s var(--ease);
}

.icon-spin:hover {
    transform: rotate(180deg);
}

.icon-bounce:hover {
    animation: pulse 0.4s var(--ease);
}

/* Stat counter animation */
.stat-number {
    transition: all 0.3s var(--ease);
}

.stat-item:hover .stat-number {
    transform: scale(1.05);
    color: var(--accent);
}

/* Link underline animation */
.animated-link {
    position: relative;
    text-decoration: none;
    color: inherit;
}

.animated-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s var(--ease);
}

.animated-link:hover::after {
    width: 100%;
}

/* iOS auto-detected links (phone/email) */
a[x-apple-data-detectors],
a[x-apple-data-detectors]:hover,
a[x-apple-data-detectors]:focus {
    color: inherit !important;
    text-decoration: none !important;
}

.info-card a,
.info-card a:visited,
.info-card a:hover {
    color: inherit;
    text-decoration: none;
}

/* Card link animation */
.card-link {
    position: relative;
}

.card-link svg {
    transition: transform 0.3s var(--ease);
}

.card-link:hover svg {
    transform: translateX(4px);
}

/* Status badge pulse */
.status-badge.available::before {
    animation: pulse 2s ease-in-out infinite;
}

/* Type card hover */
.type-card {
    transition: all 0.3s var(--ease);
}

.type-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-muted);
}

.type-card:hover .type-icon {
    transform: scale(1.15);
}

.type-icon {
    transition: transform 0.3s var(--ease);
}

/* Contact item hover */
.contact-item {
    transition: all 0.3s var(--ease);
}

.contact-item:hover {
    transform: translateX(4px);
}

.contact-item:hover .contact-icon {
    background: var(--accent-muted);
}

.contact-icon {
    transition: all 0.3s var(--ease);
}

/* Filter button animation */
.filter-btn {
    transition: all 0.25s var(--ease);
}

.filter-btn:hover {
    transform: translateY(-2px);
}

.filter-btn:active {
    transform: translateY(0);
}

/* CTA card subtle animation */
.cta-card {
    transition: all 0.3s var(--ease);
}

.cta-card:hover {
    border-color: var(--border-hover);
}

/* Nav link hover */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transform: translateX(-50%);
    transition: width 0.3s var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: calc(100% - 2rem);
}

/* Logo animation */
.logo {
    transition: all 0.3s var(--ease);
}

.logo:hover {
    transform: scale(1.02);
}

/* About stat hover */
.about-stat {
    transition: all 0.3s var(--ease);
}

.about-stat:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

/* Info item hover */
.info-item {
    transition: all 0.3s var(--ease);
}

.info-item:hover {
    background: var(--bg-elevated);
}

/* Page transition */
.page-transition {
    animation: fadeIn 0.4s var(--ease);
}

/* Smooth scroll indicator */
@keyframes scrollHint {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.5; }
}

.scroll-hint {
    animation: scrollHint 2s ease-in-out infinite;
}


/* === CONTRACT PAGE === */

.contract-page .contract-layout{
  width:100%;
  display:grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: var(--space-lg);
  align-items: start;
}

.contract-page .contract-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.contract-page .contract-grid-3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.contract-page .contract-section{
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.contract-page .contract-section-title{
  display:flex;
  align-items:center;
  gap:0.5rem;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.contract-page .contract-summary{
  position: sticky;
  top: 6.5rem;
}

.contract-page .contract-summary-item{
  display:flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.contract-page .contract-summary-item:last-child{
  border-bottom: none;
}

.contract-page .contract-summary-total{
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 2px solid var(--border);
  font-weight: 700;
  font-size: 1rem;
}


.contract-page .contract-appendix-list{
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  display: grid;
  gap: 0.35rem;
}

.contract-page .contract-appendix-list li{
  margin: 0;
}

.contract-page .form-hint{
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

body.contract-page{
  overflow-x: hidden;
}

.contract-page .contract-layout,
.contract-page .contract-section{
  max-width: 100%;
  min-width: 0;
}

.contract-page table{
  max-width: 100%;
}


@media (min-width: 769px){
  .contract-page .contract-layout{
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 380px !important;
    gap: var(--space-lg);
    align-items: start;
  }
}

/* Mobile */
@media (max-width: 768px){
  .contract-page section[style*="padding: 8rem"]{
    padding: 6.5rem 0 var(--space-lg) !important;
  }

  .contract-page .contract-layout{
    grid-template-columns: 1fr !important;
    gap: var(--space-md) !important;
  }

  .contract-page .contract-summary{
    position: static;
    top: auto;
  }

  .contract-page .contract-grid,
  .contract-page .contract-grid-3{
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .contract-page .contract-section{
    padding: var(--space-sm);
  }

  .contract-page .contract-actions{
    flex-direction: column;
  }
  .contract-page .container{
    padding-left: 16px;
    padding-right: 16px;
  }


  .contract-page .contract-actions .btn{
    width: 100%;
    justify-content: center;
  }

  /* Make status + title wrap nicely */
  .contract-page .container > div[style*="justify-content: space-between"]{
    flex-direction: column;
    align-items: flex-start !important;
    gap: var(--space-sm);
  }
}


/* =========================================================
   CONTRACT PAGE (scoped) – match Calculator look & feel
   (Only affects pages that have .contract-page on <body>)
   ========================================================= */
.contract-page .contract-layout{
  display:grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-lg);
  align-items:start;
}
.contract-page .contract-section{
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  min-width:0;
}
.contract-page .contract-section + .contract-section{
  margin-top: var(--space-lg);
}
.contract-page .contract-summary{
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: sticky;
  top: 5rem;
  min-width:0;
}
.contract-page .contract-actions{
  display:flex;
  gap: var(--space-sm);
  flex-wrap:wrap;
  align-items:center;
}
.contract-page .contract-actions .btn,
.contract-page .contract-actions button{
  white-space:nowrap;
}
.contract-page .contract-status{
  display:flex;
  align-items:center;
  gap: 0.5rem;
  flex-wrap:wrap;
}
.contract-page .contract-title{
  line-height:1.15;
}
.contract-page .contract-subtitle{
  color: var(--text-secondary);
}

@media (max-width: 768px){
  .contract-page .contract-layout{
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .contract-page .contract-summary{
    position: static;
    top:auto;
  }
  .contract-page .contract-actions{
    gap: var(--space-xs);
  }
  .contract-page .contract-actions .btn,
  .contract-page .contract-actions button{
    flex:1 1 auto;
    width:auto;
  }
  .contract-page .contract-title{
    font-size: 2rem;
  }
}
/* DASHBOARD: fix mobile bottom nav being forced to top by global nav styles */
@media (max-width: 768px) {
  body.dashboard-page nav.mobile-bottom-nav {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: auto !important;
    z-index: 9999 !important;
  }

  /* чтобы контент не прятался под нижним меню */
  body.dashboard-page .dashboard-layout,
  body.dashboard-page .main-content {
    padding-bottom: 90px !important;
  }

  body.dashboard-page #section-equipment,
  body.dashboard-page #section-requests,
  body.dashboard-page #section-profile {
    padding-top: 12px;
  }
}


@media (max-width: 768px){
  .contract-page .container{
    padding-left: calc(16px + env(safe-area-inset-left)) !important;
    padding-right: calc(16px + env(safe-area-inset-right)) !important;
  }
}


/* === CONTRACT PAGE OVERRIDES (layout fixes) === */
@media (min-width: 769px){
  body.contract-page .contract-layout{
    display: flex !important;
    align-items: flex-start;
    gap: var(--space-lg);
  }
  body.contract-page #contract-form{
    flex: 1 1 auto;
    min-width: 0;
  }
  body.contract-page .contract-summary{
    flex: 0 0 380px;
    align-self: flex-start;
  }
}

@media (max-width: 768px){
  body.contract-page .contract-layout{
    padding-left: calc(16px + env(safe-area-inset-left));
    padding-right: calc(16px + env(safe-area-inset-right));
  }
}


/* Mobile contract layout: prevent overflow */
@media (max-width: 768px){
  body.contract-page .contract-layout{
    display: block !important;
    width: 100%;
    padding-left: calc(16px + env(safe-area-inset-left));
    padding-right: calc(16px + env(safe-area-inset-right));
  }
  body.contract-page #contract-form,
  body.contract-page .contract-section,
  body.contract-page .contract-summary{
    width: 100%;
    max-width: 100%;
  }
}


/* Contract notes textarea */
.contract-page #notes{
  resize: vertical;
  min-height: 96px;
  max-height: 260px;
}


/* Currency icon */
.currency-icon{
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  color: currentColor;
}


/* Contract mobile spacing after actions */
@media (max-width: 768px){
  body.contract-page .contract-actions{
    margin-bottom: var(--space-md);
  }
}

@media (max-width: 768px){
  .footer-brand{
    margin: 0 auto;
    text-align: center;
  }
}


/* Legal pages */
.legal-page .legal-card{
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.legal-page .legal-card h2{
  margin-top: var(--space-md);
  margin-bottom: 0.5rem;
}
.legal-page .legal-card p{
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.legal-page .legal-card ul{
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

/* Cookie/PD banner */
.cookie-banner{
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2000;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.cookie-banner__title{
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.cookie-banner__text{
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.cookie-banner__text a{
  color: var(--accent);
}
.cookie-banner__actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 768px){
  .cookie-banner{
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner__actions{
    width: 100%;
  }
  .cookie-banner__actions .btn{
    width: 100%;
    justify-content: center;
  }
}




@media (max-width: 768px){
  }


.card-image img{
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
}


@media (max-width: 768px){
  }


body.equipment-page #equipment-image-block{
  background: var(--bg-primary);
}
body.equipment-page #equipment-image{
  width: 100%;
  height: auto !important;
  object-fit: contain !important;
  display: block;
}


/* ===== Equipment Admin Form ===== */
.equipment-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
}

.equipment-form-grid .form-group {
    margin-bottom: 0;
}

.equipment-form-grid .span-2 {
    grid-column: span 2;
}

.equipment-image-preview {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-tertiary);
}

.equipment-icon-preview {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.equipment-icon-preview svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .equipment-form-grid {
        grid-template-columns: 1fr;
    }
    .equipment-form-grid .span-2 {
        grid-column: 1;
    }
}

/* ===== Static Landing Templates ===== */
.landing-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
    gap: var(--space-lg);
    align-items: start;
}

.landing-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
}

.landing-meta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

.landing-meta-link:hover {
    color: var(--accent);
}

.landing-faq {
    display: grid;
    gap: var(--space-sm);
}

.landing-faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    overflow: hidden;
}

.landing-faq-q {
    padding: 0;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    user-select: none;
    transition: color 0.2s var(--ease);
}

.landing-faq-q:hover {
    color: var(--accent);
}

.landing-faq-q svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.3s var(--ease), color 0.2s;
}

.landing-faq-item.open .landing-faq-q svg {
    transform: rotate(45deg);
    color: var(--accent);
}

.landing-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, margin 0.35s ease;
}

.landing-faq-item.open .landing-faq-a {
    max-height: 220px;
    margin-top: 0.75rem;
}

.landing-faq-a p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.eq-hero {
    max-width: 1120px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.eq-hero:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.eq-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.26fr) minmax(340px, 0.74fr);
    align-items: stretch;
}

.eq-hero-photo {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    min-height: 100%;
    padding: var(--space-lg);
    border-right: 1px solid var(--border);
    background: transparent;
}

.eq-hero-photo-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    flex: 1 1 auto;
    min-height: 100%;
}


.eq-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.35s var(--ease);
}


.eq-hero:hover .eq-hero-photo img {
    transform: scale(1.015);
}

.eq-hero-badges {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.eq-hero-badge {
    background: rgba(12, 12, 14, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
}

.eq-hero-badge.accent {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.eq-hero-info {
    padding: calc(var(--space-lg) - 0.15rem) calc(var(--space-lg) - 0.35rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.landing-static-page section {
    padding-bottom: calc(var(--space-xl) + 0.5rem) !important;
}

.landing-static-page section + section {
    margin-top: calc(var(--space-xl) + 1rem);
}

.landing-static-page section:first-of-type {
    padding-bottom: calc(var(--space-xl) + var(--space-sm)) !important;
}

.landing-static-page .section-header {
    margin-bottom: calc(var(--space-md) + 0.75rem);
}

.eq-hero-type {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: var(--space-xs);
}

.eq-hero-name {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.375rem;
    letter-spacing: -0.02em;
}

.eq-hero-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.eq-hero-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.eq-hero-spec {
    background: var(--bg-elevated);
    padding: var(--space-sm);
}

.eq-hero-spec-label {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.eq-hero-spec-val {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.eq-hero-spec-val small {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.eq-hero-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 0.85rem 1rem;
    background: var(--accent-subtle);
    border: 1px solid var(--accent-muted);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.eq-hero-price-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.eq-hero-price-value {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--accent);
}

.eq-hero-price-note {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.eq-hero-actions {
    display: flex;
    gap: var(--space-xs);
    margin-top: 0;
}

.eq-hero-actions .btn {
    flex: 1;
}

.eq-hero-stacked {
    padding: var(--space-lg);
}

.eq-hero-stacked .eq-hero-photo {
    display: flex;
    justify-content: center;
    padding: 0;
    border-right: none;
    min-height: 0;
}

.eq-hero-stacked .eq-hero-photo-frame {
    width: min(calc(100% - (var(--space-lg) * 2)), 720px);
    aspect-ratio: 16 / 8.4;
    height: auto;
    min-height: 0;
    margin-inline: auto;
}

.eq-hero-stacked .eq-hero-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: var(--space-lg);
    padding-top: var(--space-lg);
}

.eq-hero-stacked .eq-hero-info {
    padding: 0;
    justify-content: flex-start;
}

.eq-hero-stacked .eq-hero-side {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: var(--space-md);
}

.eq-hero-stacked .eq-hero-price {
    margin-bottom: 0;
}

.eq-hero-topline {
    width: min(calc(100% - (var(--space-lg) * 2)), 720px);
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.eq-hero-badges-static {
    position: static;
}

.eq-hero-topline .eq-hero-badges {
    position: static;
    top: auto;
    left: auto;
    flex: 1 1 auto;
}

.eq-hero-stacked .eq-hero-photo {
    flex-direction: column;
    align-items: center;
}

.landing-variant-switch {
    display: none;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.45rem;
}

.landing-variant-switch-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.landing-variant-chip {
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.landing-variant-chip:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.landing-variant-chip.active {
    border-color: var(--accent);
    background: rgba(248, 113, 44, 0.14);
    color: var(--accent);
}

.landing-config-meta {
    margin: -0.1rem 0 var(--space-md);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.landing-config-meta strong {
    color: var(--text-primary);
    font-weight: 600;
}

.also-bar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-md) var(--space-lg);
    margin-top: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.also-bar-compact {
    margin-top: 0;
    padding: 0.95rem 1rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.02);
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

.also-bar-compact .also-bar-label {
    white-space: normal;
}

.also-bar-compact .also-bar-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm);
    width: 100%;
    overflow: visible;
}

.also-bar-compact .also-bar-item {
    min-width: 0;
    white-space: normal;
}

.also-bar-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--accent);
    white-space: nowrap;
}

.also-bar-items {
    display: flex;
    gap: var(--space-sm);
    flex: 1;
    overflow-x: auto;
}

.also-bar-item {
    flex-shrink: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: border-color 0.2s var(--ease), color 0.2s, transform 0.2s var(--ease);
    white-space: nowrap;
}

.also-bar-item:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.also-bar-item small {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 2px;
}

.landing-static-page .types-grid a.type-card .type-name {
    color: var(--accent);
}

.landing-static-page .types-grid a.type-card:hover .type-name {
    color: #ff7b38;
}

.landing-qa-grid {
    align-items: stretch;
}

.landing-qa-grid > * {
    min-height: 100%;
}

.landing-links-col {
    display: flex;
    flex-direction: column;
}

.landing-links-col .types-grid {
    margin-top: auto;
}

.landing-static-page .feature-icon,
.landing-static-page .landing-faq-q svg,
.landing-static-page .workflow-num {
    border: 1px solid var(--accent-muted);
    background: linear-gradient(180deg, rgba(248, 113, 44, 0.16), rgba(248, 113, 44, 0.05));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.landing-static-page .feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.landing-static-page .feature-icon svg {
    width: 17px;
    height: 17px;
}

.landing-static-page .workflow-num {
    color: var(--accent);
}

.landing-static-page .landing-faq-q svg {
    width: 32px;
    height: 32px;
    padding: 7px;
    border-radius: 10px;
    color: var(--accent);
    flex-shrink: 0;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.workflow-step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
}

.workflow-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: var(--space-sm);
}

.workflow-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.workflow-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.tasks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.task-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.task-check {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 10px;
    border: 1px solid var(--accent-muted);
    background: linear-gradient(180deg, rgba(248, 113, 44, 0.16), rgba(248, 113, 44, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.task-check svg {
    width: 17px;
    height: 17px;
    color: var(--accent);
}

.task-text {
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.45;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

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

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    width: 90%;
    max-width: 460px;
    position: relative;
    animation: modalSlide 0.3s var(--ease);
}

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

.modal-close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-box h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.modal-box .modal-sub {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

@media (max-width: 1024px) {
    .eq-hero-inner {
        grid-template-columns: 1fr;
    }
    .eq-hero-photo {
        padding: var(--space-md);
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .eq-hero-stacked {
        padding: var(--space-md);
    }

    .eq-hero-stacked .eq-hero-photo {
        padding: 0;
        border-bottom: none;
    }

    .eq-hero-topline {
        width: calc(100% - (var(--space-md) * 2));
        gap: var(--space-sm);
        order: 2;
        margin: var(--space-md) auto 0;
    }

    .eq-hero-topline .eq-hero-badges,
    .landing-variant-switch {
        width: 100%;
        justify-content: flex-start;
    }

    .eq-hero-stacked .eq-hero-photo-frame {
        width: calc(100% - (var(--space-md) * 2));
        aspect-ratio: 16 / 9;
        height: auto;
        min-height: 0;
        margin-inline: auto;
        order: 1;
    }

    .eq-hero-stacked .eq-hero-bottom {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        padding-top: var(--space-md);
    }

    .also-bar-compact .also-bar-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 900px) {
    .landing-hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .eq-hero-info {
        padding: 0.85rem var(--space-md) 0;
    }

    .eq-hero-type {
        font-size: 0.72rem;
    }

    .eq-hero-name {
        font-size: 1.08rem;
    }

    .eq-hero-desc {
        font-size: 0.88rem;
        line-height: 1.58;
    }

    .eq-hero-spec-label {
        font-size: 0.72rem;
    }

    .eq-hero-spec-val {
        font-size: 0.9rem;
    }

    .eq-hero-price-label,
    .eq-hero-price-note,
    .landing-config-meta,
    .landing-variant-switch-label {
        font-size: 0.72rem;
    }

    .eq-hero-stacked .eq-hero-photo-frame {
        width: calc(100% - (var(--space-md) * 2));
        aspect-ratio: 4 / 3;
        max-width: none;
    }

    .eq-hero-actions {
        flex-direction: column;
    }

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

    .tasks-grid {
        grid-template-columns: 1fr;
    }
    .also-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .also-bar-compact .also-bar-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .eq-hero-specs {
        grid-template-columns: 1fr;
    }

    .eq-hero-badges {
        gap: 6px;
    }

    .eq-hero-stacked {
        padding: 0.85rem;
    }

    .eq-hero-topline {
        width: calc(100% - 1rem);
        margin: 0.75rem auto 0;
    }

    .eq-hero-stacked .eq-hero-photo-frame {
        width: calc(100% - 1rem);
        aspect-ratio: 4 / 3;
        max-width: none;
    }

    .eq-hero-badge,
    .landing-variant-chip {
        font-size: 0.74rem;
        padding: 0.42rem 0.72rem;
    }

    .landing-variant-switch {
        gap: 0.38rem;
    }
}


/* Dynamic landing park browser */
.landing-static-page .eq-hero,
.landing-static-page .also-bar {
    width: min(100%, 1120px);
    margin-left: auto;
    margin-right: auto;
}

.landing-static-page #landing-hero-image {
    cursor: zoom-in;
}

.landing-static-page .also-bar {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-md);
    margin-top: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: clamp(1.75rem, 5vw, 3rem);
}

.landing-static-page .also-bar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.landing-static-page .also-bar-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.landing-static-page .also-bar-filter {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.landing-static-page .also-bar-filter-label {
    white-space: nowrap;
}

.landing-static-page .also-bar-select {
    min-width: 240px;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 999px;
    padding: 0.55rem 0.95rem;
    font: inherit;
    outline: none;
}

.landing-static-page .also-bar-select:focus {
    border-color: var(--accent);
}

.landing-static-page .also-bar-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.landing-static-page .also-bar-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-sm);
    overflow: visible;
}

.landing-static-page .also-bar-item {
    min-width: 0;
    white-space: normal;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.35rem;
    min-height: 100%;
}

.landing-static-page .also-bar-empty {
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 0.9rem 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    background: rgba(255,255,255,0.02);
}

@media (max-width: 768px) {
    .landing-static-page .also-bar {
        width: calc(100% - 1rem);
        margin-top: var(--space-xl);
        margin-bottom: calc(var(--space-xl) + 0.35rem);
        padding: var(--space-md);
    }

    .landing-static-page .also-bar-head {
        align-items: stretch;
        flex-direction: column;
    }

    .landing-static-page .also-bar-controls {
        width: 100%;
        justify-content: space-between;
    }

    .landing-static-page .also-bar-filter {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .landing-static-page .also-bar-select {
        min-width: 0;
        width: 100%;
    }

    .landing-static-page .also-bar-items {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        scroll-padding-inline: 0;
        padding-bottom: 0.35rem;
        gap: 0.7rem;
    }

    .landing-static-page .also-bar-item {
        flex: 0 0 calc(100% - 0.1rem);
        scroll-snap-align: start;
    }

    .landing-static-page .also-bar-collapsible.is-collapsed .also-bar-items {
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
    }
}

.landing-static-page .also-bar-items {
    transition: max-height 0.28s var(--ease);
}

.landing-static-page .also-bar-collapsible.is-collapsed .also-bar-items {
    max-height: var(--also-bar-collapsed-height, 120px);
    overflow: hidden;
}

.landing-static-page .also-bar-toggle {
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 0.55rem 0.95rem;
    font: inherit;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.landing-static-page .also-bar-toggle:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.landing-static-page .also-bar-toggle[hidden] {
    display: none;
}

@media (max-width: 768px) {
    .landing-static-page .also-bar-collapsible.is-collapsed .also-bar-items {
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
    }
}
