/* ========================================
   VOZTORG - PREMIUM DARK MODE CSS
   ======================================== */

:root {
    --bg-deep: #0b0c10;
    --bg-card: #1f2833;
    --bg-card-hover: #25303b;
    --text-primary: #c5c6c7;
    --text-secondary: #8d9093;
    --text-heading: #ffffff;
    --accent: #66fcf1;
    --accent-dim: rgba(102, 252, 241, 0.15);
    --accent-glow: rgba(102, 252, 241, 0.4);
    --border-subtle: #2d3a45;
    --border-focus: #66fcf1;
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 32px rgba(102, 252, 241, 0.3);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --header-height: 72px;
    --max-width: 1280px;
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 600;
    line-height: 1.2;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); text-shadow: 0 0 16px var(--accent-glow); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

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

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

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(11, 12, 16, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo__ascii {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 10px;
    line-height: 11px;
    color: var(--accent);
    font-weight: 700;
    white-space: pre;
    letter-spacing: 0;
    margin: 0;
}

.nav { display: flex; align-items: center; gap: 8px; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__link {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: var(--radius);
    transition: all var(--transition);
}
.nav__link:hover,
.nav__link:focus {
    color: var(--accent);
    background: var(--accent-dim);
    text-shadow: 0 0 8px var(--accent-glow);
}
.nav__link[aria-current="page"] {
    color: var(--accent);
    background: var(--accent-dim);
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    flex-shrink: 0;
}
.lang-switcher__link {
    font-size: 13px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: var(--radius);
    transition: all var(--transition);
    color: var(--text-primary);
}
.lang-switcher__link.active,
.lang-switcher__link.active:hover {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    background: var(--accent-dim);
}
.lang-switcher__link:not(.active):hover {
    color: var(--accent);
    background: var(--accent-dim);
}
.lang-switcher__sep { color: var(--border-subtle); }

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 0;
}
.menu-toggle__icon {
    width: 24px;
    height: 2px;
    background: var(--text-heading);
    position: relative;
    transition: background var(--transition);
}
.menu-toggle__icon::before,
.menu-toggle__icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-heading);
    transition: transform var(--transition);
}
.menu-toggle__icon::before { top: -7px; }
.menu-toggle__icon::after { bottom: -7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { transform: rotate(-45deg) translate(5px, -5px); }

/* ========================================
   HERO SECTION
   ======================================== */
.page-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + 60px) 24px 80px;
    background: var(--bg-deep);
    overflow: hidden;
}

.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.15; }

.page-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(11,12,16,0.6) 0%, rgba(11,12,16,0.85) 50%, var(--bg-deep) 100%);
}

.page-hero__content {
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 0.8s var(--transition);
}

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

.page-hero__title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.page-hero__subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-primary);
    line-height: 1.7;
    opacity: 0.9;
}

/* ========================================
   SECTIONS
   ======================================== */
.section { padding: 80px 24px; }
.section--alt { background: var(--bg-card); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }

.section-header { text-align: center; margin-bottom: 60px; }
.section__label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 12px;
}
.section__title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }

/* ========================================
   GRIDS & CARDS
   ======================================== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all var(--transition);
}
.content-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--accent);
}
.content-card__icon { width: 48px; height: 48px; margin-bottom: 20px; color: var(--accent); }
.content-card__title { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.content-card__desc { font-size: 15px; line-height: 1.7; color: var(--text-primary); }

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--accent);
}
.service-card__icon { width: 56px; height: 56px; margin-bottom: 20px; color: var(--accent); flex-shrink: 0; }
.service-card__title { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.service-card__desc { font-size: 15px; line-height: 1.7; color: var(--text-primary); flex-grow: 1; }
.service-card__link { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

/* ========================================
   3D CYCLONE
   ======================================== */
.cyclone-section {
    padding: 100px 24px;
    background: var(--bg-deep);
}
.cyclone__wrapper { max-width: var(--max-width); margin: 0 auto; }
.cyclone__container {
    position: relative;
    width: 100%;
    height: 500px;
    min-height: 400px;
    perspective: 1000px;
    transform-style: preserve-3d;
}
.cyclone__tag {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    will-change: transform, opacity;
    white-space: nowrap;
    user-select: none;
}
.cyclone__tag a {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    transition: all var(--transition);
    text-decoration: none;
}
.cyclone__tag a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-dim);
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

/* ========================================
   FORMS
   ======================================== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px;
}
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-heading);
}
.form-input, .form-textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 15px;
    background: var(--bg-deep);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    color: var(--text-heading);
    transition: all var(--transition);
}
.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-textarea { min-height: 140px; resize: vertical; }

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover {
    background: var(--accent);
    color: var(--bg-deep);
    box-shadow: 0 0 32px var(--accent-glow);
    transform: translateY(-2px);
}
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn--primary { background: var(--accent); color: var(--bg-deep); }
.btn--primary:hover { background: #5ae8dc; box-shadow: 0 0 40px var(--accent-glow); }

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    padding: 60px 24px 40px;
    margin-top: auto;
}
.footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
}
@media (min-width: 768px) {
    .footer__inner { grid-template-columns: 1fr auto 1fr; text-align: left; }
}
.footer__brand .logo__ascii { margin-bottom: 16px; }
.footer__desc {
    font-size: 14px;
    color: var(--text-primary);
    opacity: 0.8;
    max-width: 300px;
}
.footer__contacts { display: flex; flex-direction: column; gap: 12px; align-items: center; }
@media (min-width: 768px) { .footer__contacts { align-items: flex-start; } }
.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-primary);
    transition: color var(--transition);
}
.footer__contact-item:hover { color: var(--accent); }
.footer__contact-item svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.footer__bottom {
    grid-column: 1 / -1;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    font-size: 13px;
    color: var(--text-primary);
    opacity: 0.6;
}

/* ========================================
   STATS (ABOUT PAGE)
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    max-width: var(--max-width);
    margin: 0 auto 60px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
}
.stat-card:hover { border-color: var(--accent); box-shadow: var(--shadow-card); }
.stat-card__value { font-size: 48px; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.stat-card__label { font-size: 15px; color: var(--text-primary); opacity: 0.9; }

.values-grid, .directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.value-card, .direction-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
}
.value-card:hover, .direction-card:hover { border-color: var(--accent); box-shadow: var(--shadow-card); }
.value-card__icon, .direction-card__icon { width: 48px; height: 48px; margin-bottom: 16px; color: var(--accent); }
.value-card__title, .direction-card__title { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.value-card__desc, .direction-card__desc { font-size: 15px; line-height: 1.7; color: var(--text-primary); }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 767px) {
    .nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-deep);
        border-bottom: 1px solid var(--border-subtle);
        padding: 16px 24px;
        display: none;
        flex-direction: column;
        gap: 8px;
        box-shadow: var(--shadow-card);
    }
    .nav--open { display: flex; }
    .nav__list { flex-direction: column; width: 100%; }
    .nav__link { width: 100%; padding: 14px 16px; text-align: center; }
    .lang-switcher { width: 100%; justify-content: center; padding-top: 8px; border-top: 1px solid var(--border-subtle); margin-top: 8px; }
    .menu-toggle { display: flex; }
    .header__inner { gap: 16px; }
}

@media (max-width: 479px) {
    .page-hero { padding: calc(var(--header-height) + 40px) 16px 60px; }
    .section { padding: 60px 16px; }
    .content-card, .service-card { padding: 28px 24px; }
    .contact-form { padding: 24px 20px; }
    .footer { padding: 40px 16px 30px; }
    .cyclone__container { height: 400px; }
}

/* ========================================
   UTILITY
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
