/* ── Reset & Base ──────────────────────────────────────────────────────── */

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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #222240;
    --text-primary: #e8e8ed;
    --text-secondary: #8888a0;
    --text-muted: #555570;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #eab308;
    --border: #2a2a3e;
    --border-light: #3a3a50;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --container-width: 1200px;
    --header-height: 72px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--accent-hover);
}

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

/* ── Container ────────────────────────────────────────────────────────── */

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

/* ── Typography ───────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}
h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; }

.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.font-mono { font-family: var(--font-mono); }

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 640px;
    margin-bottom: 48px;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1;
}

.btn--primary {
    background: var(--accent);
    color: #000;
}
.btn--primary:hover {
    background: var(--accent-hover);
    color: #000;
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}
.btn--outline:hover {
    background: var(--accent);
    color: #000;
}

.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
}
.btn--ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn--sm {
    padding: 8px 16px;
    font-size: 0.8125rem;
}

.btn--lg {
    padding: 16px 40px;
    font-size: 1rem;
}

.btn--danger {
    background: var(--danger);
    color: #fff;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Header ──────────────────────────────────────────────────────────── */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: background 0.3s, box-shadow 0.3s;
}

.site-header--solid {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.site-header__logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.site-header__logo:hover { color: var(--text-primary); }
.site-header__logo span { color: var(--accent); }

.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-nav__link {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}
.site-nav__link:hover,
.site-nav__link--active {
    color: var(--text-primary);
}
.site-nav__link--active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.site-nav__cta {
    padding: 10px 24px;
}

/* Mobile menu button */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}
.burger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger--open span:nth-child(2) { opacity: 0; }
.burger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}
.mobile-nav--open {
    display: flex;
}
.mobile-nav__link {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.mobile-nav__link:hover {
    color: var(--text-primary);
}

/* ── Sections ─────────────────────────────────────────────────────────── */

.section {
    padding: 96px 0;
}

.section--alt {
    background: var(--bg-secondary);
}

.section--accent {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f2027 50%, #1a1a2e 100%);
}

.section__header {
    text-align: center;
    margin-bottom: 56px;
}

.section__header h2 {
    margin-bottom: 12px;
}

.section__header .section-subtitle {
    margin: 0 auto;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero__canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero h1 {
    max-width: 800px;
    margin-bottom: 20px;
    font-size: 3rem;
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: hero-bounce 2s infinite;
    color: var(--text-muted);
}
.hero__scroll svg { width: 28px; height: 28px; }

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

/* ── Filter Tabs ─────────────────────────────────────────────────────── */

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
    justify-content: center;
}

.filter-tab {
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-tab:hover {
    border-color: var(--border-light);
    color: var(--text-primary);
}
.filter-tab--active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

/* ── Drone Cards Grid ────────────────────────────────────────────────── */

.drone-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.drone-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.drone-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-light);
}

.drone-card__img {
    aspect-ratio: 16/10;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    position: relative;
    overflow: hidden;
}
.drone-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.drone-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
}

.drone-card__body {
    padding: 20px;
}

.drone-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.drone-card__specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}
.drone-card__spec {
    font-size: 0.8rem;
}
.drone-card__spec-label {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.drone-card__spec-value {
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--text-primary);
}

.drone-card__actions {
    display: flex;
    gap: 8px;
}
.drone-card__actions .btn { flex: 1; }

/* ── Category Grid ───────────────────────────────────────────────────── */

.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    text-decoration: none;
    display: block;
}
.cat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.cat-card__icon {
    width: 48px;
    height: 48px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.cat-card__icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cat-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.cat-card__subs {
    list-style: none;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ── Brand Carousel ──────────────────────────────────────────────────── */

.brand-carousel {
    overflow: hidden;
    position: relative;
    padding: 24px 0;
}
.brand-carousel::before,
.brand-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.brand-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary), transparent);
}
.brand-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary), transparent);
}
.section--alt .brand-carousel::before {
    background: linear-gradient(to right, var(--bg-secondary), transparent);
}
.section--alt .brand-carousel::after {
    background: linear-gradient(to left, var(--bg-secondary), transparent);
}

.brand-carousel__track {
    display: flex;
    gap: 48px;
    align-items: center;
    animation: brand-scroll 40s linear infinite;
    width: max-content;
}

.brand-carousel__item {
    flex-shrink: 0;
    height: 36px;
    opacity: 0.4;
    filter: grayscale(1) brightness(1.5);
    transition: opacity 0.3s, filter 0.3s;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    display: flex;
    align-items: center;
}
.brand-carousel__item:hover {
    opacity: 1;
    filter: grayscale(0);
}
.brand-carousel__item img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

@keyframes brand-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.brand-carousel__track:hover {
    animation-play-state: paused;
}

/* ── Product Cards (horizontal scroll) ───────────────────────────────── */

.hscroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.hscroll::-webkit-scrollbar { height: 6px; }
.hscroll::-webkit-scrollbar-track { background: transparent; }
.hscroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.product-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.product-card__img {
    aspect-ratio: 16/10;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.product-card__body {
    padding: 20px;
}

.product-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-card__desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

.product-card__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}
.product-card__status--production { color: var(--success); }
.product-card__status--development { color: var(--warning); }

.product-card__status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* ── Service / Feature Cards ─────────────────────────────────────────── */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-light);
}

.feature-card__icon {
    width: 56px;
    height: 56px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.feature-card__icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card__text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── Russian Products (accent cards) ─────────────────────────────────── */

.ru-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ru-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: transform 0.2s, border-color 0.2s;
}
.ru-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}
.ru-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.ru-card__desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

/* ── Contact Section ─────────────────────────────────────────────────── */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

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

.contact-form h3 {
    margin-bottom: 24px;
}

.contact-info__block {
    margin-bottom: 28px;
}

.contact-info__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.contact-info__value {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.8;
}

.contact-info__value a {
    color: var(--text-primary);
}
.contact-info__value a:hover {
    color: var(--accent);
}

/* ── Forms ────────────────────────────────────────────────────────────── */

.form-group {
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.9375rem;
    transition: border-color 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238888a0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-error {
    display: none;
    color: var(--danger);
    font-size: 0.8125rem;
    margin-top: 4px;
}

.form-control--error {
    border-color: var(--danger) !important;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 8px;
}
.form-check input[type="checkbox"] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ── Modal ──────────────────────────────────────────────────────────── */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal--open {
    display: flex;
}

.modal__content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.25s ease;
}

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

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal__header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.modal__close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}
.modal__close:hover {
    color: var(--text-primary);
}

.modal__product-name {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* ── Footer ──────────────────────────────────────────────────────────── */

.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__logo {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.footer__logo span { color: var(--accent); }

.footer__desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 320px;
}

.footer__heading {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer__links {
    list-style: none;
}
.footer__links li { margin-bottom: 10px; }
.footer__links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
}
.footer__links a:hover { color: var(--text-primary); }

.footer__bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.footer__bottom a { color: var(--text-secondary); }

/* ── Scroll to top ───────────────────────────────────────────────────── */

.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s;
}
.scroll-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.scroll-top svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* ── Cards (generic) ─────────────────────────────────────────────────── */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

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

/* ── Tables ───────────────────────────────────────────────────────────── */

.table {
    width: 100%;
    border-collapse: collapse;
}
.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.table th {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* ── Badges ───────────────────────────────────────────────────────────── */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge--success { background: rgba(34,197,94,0.15); color: var(--success); }
.badge--warning { background: rgba(234,179,8,0.15); color: var(--warning); }
.badge--danger  { background: rgba(239,68,68,0.15); color: var(--danger); }
.badge--info    { background: rgba(59,130,246,0.15); color: #3b82f6; }
.badge--accent  { background: rgba(245,158,11,0.12); color: var(--accent); }

/* ── Reveal Animations ───────────────────────────────────────────────── */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal--left {
    transform: translateX(-24px);
}
.reveal--right {
    transform: translateX(24px);
}
.revealed {
    opacity: 1;
    transform: none;
}

/* ── Error page ──────────────────────────────────────────────────────── */

.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.error-page h1 {
    font-size: 6rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.error-page p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ── Focus states (accessibility) ─────────────────────────────────────── */

*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.form-control:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* ── Toast container (public site) ───────────────────────────────────── */

.toast-container {
    position: fixed;
    top: 20px; right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── Button loading state ────────────────────────────────────────────── */

.btn--loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}
.btn--loading::after {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
.btn--primary.btn--loading::after {
    border-color: rgba(0,0,0,0.2);
    border-top-color: #000;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Form validation ─────────────────────────────────────────────────── */

.form-control--error {
    border-color: var(--danger) !important;
    animation: shake 0.4s ease;
}

.form-control--success {
    border-color: var(--success) !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.form-error {
    display: none;
    color: var(--danger);
    font-size: 0.8125rem;
    margin-top: 4px;
    animation: fadeIn 0.3s ease;
}

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

/* ── Success state after form submit ─────────────────────────────────── */

.form-success {
    text-align: center;
    padding: 32px 20px;
    animation: fadeIn 0.5s ease;
}
.form-success svg {
    width: 56px; height: 56px;
    stroke: var(--success);
    fill: none;
    stroke-width: 2;
    margin: 0 auto 16px;
}
.form-success__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.form-success__text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ── Drone card purpose badge ────────────────────────────────────────── */

.drone-card__purpose {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
    margin-bottom: 10px;
}

/* ── Stat counters on category cards ─────────────────────────────────── */

.cat-card__count {
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 8px;
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .drone-grid { grid-template-columns: repeat(2, 1fr); }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .ru-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .section { padding: 64px 0; }
    .hero { min-height: 90vh; }
    .hero h1 { font-size: 2rem; }
    .hero__subtitle { font-size: 1rem; }
    .hero__label { font-size: 0.75rem; padding: 4px 12px; }

    .site-nav { display: none; }
    .burger { display: block; }

    .drone-grid { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .ru-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }

    .product-card { flex: 0 0 280px; }

    .filter-tabs { gap: 6px; }
    .filter-tab { padding: 6px 14px; font-size: 0.75rem; }

    .contact-form { padding: 24px; }
    .scroll-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 1.625rem; }
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; }
    .cat-grid { grid-template-columns: 1fr; }
    .drone-card__actions { flex-direction: column; }
    .stats-bar__grid { grid-template-columns: 1fr 1fr; }
    .cta-banner__inner { flex-direction: column; text-align: center; }
    .cta-banner__actions { flex-direction: column; width: 100%; }
    .cta-banner__actions .btn { width: 100%; }
}

/* ── Scroll Progress Bar ─────────────────────────────────────────────── */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1001;
    background: transparent;
}

.scroll-progress__bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #f59e0b, #fbbf24);
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

/* ── Stats Bar ───────────────────────────────────────────────────────── */

.stats-bar {
    padding: 48px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-bar__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stats-bar__number {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stats-bar__label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ── Empty State ─────────────────────────────────────────────────────── */

.empty-state {
    text-align: center;
    padding: 48px 20px;
    max-width: 480px;
    margin: 0 auto;
}

.empty-state__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state__icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--accent);
    opacity: 0.7;
}

.empty-state__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.empty-state__text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.empty-state__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── CTA Banner ──────────────────────────────────────────────────────── */

.cta-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f1923 0%, #1a1a2e 50%, #0f1923 100%);
}

.cta-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 48px;
    background: rgba(245, 158, 11, 0.04);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 16px;
}

.cta-banner__content h2 {
    margin-bottom: 8px;
    font-size: 1.75rem;
}

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

.cta-banner__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* ── Contact Info Icons ──────────────────────────────────────────────── */

.contact-info__icon-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-info__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info__icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Card Glow on Hover ──────────────────────────────────────────────── */

.cat-card:hover,
.feature-card:hover,
.ru-card:hover {
    box-shadow: 0 4px 24px rgba(245, 158, 11, 0.08), var(--shadow);
}

.drone-card:hover {
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.1), var(--shadow-lg);
}

/* ── Staggered Reveal ────────────────────────────────────────────────── */

.cat-grid .reveal:nth-child(2),
.feature-grid .reveal:nth-child(2),
.ru-grid .reveal:nth-child(2),
.drone-grid .reveal:nth-child(2),
.stats-bar__grid .reveal:nth-child(2) { transition-delay: 0.1s; }

.cat-grid .reveal:nth-child(3),
.feature-grid .reveal:nth-child(3),
.ru-grid .reveal:nth-child(3),
.drone-grid .reveal:nth-child(3),
.stats-bar__grid .reveal:nth-child(3) { transition-delay: 0.2s; }

.cat-grid .reveal:nth-child(4),
.feature-grid .reveal:nth-child(4),
.ru-grid .reveal:nth-child(4),
.stats-bar__grid .reveal:nth-child(4) { transition-delay: 0.3s; }

.cat-grid .reveal:nth-child(5),
.feature-grid .reveal:nth-child(5) { transition-delay: 0.15s; }

.cat-grid .reveal:nth-child(6),
.feature-grid .reveal:nth-child(6) { transition-delay: 0.25s; }

.cat-grid .reveal:nth-child(7) { transition-delay: 0.2s; }
.cat-grid .reveal:nth-child(8) { transition-delay: 0.3s; }

/* ── Responsive additions ────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .cta-banner__inner { flex-direction: column; text-align: center; }
    .cta-banner__content p { max-width: none; }
}

@media (max-width: 768px) {
    .stats-bar__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .stats-bar__number { font-size: 2rem; }
    .stats-bar { padding: 36px 0; }
    .cta-banner { padding: 56px 0; }
    .cta-banner__inner { padding: 32px 24px; }
    .cta-banner__actions { flex-direction: column; width: 100%; }
    .cta-banner__actions .btn { width: 100%; }
    .empty-state__actions { flex-direction: column; }
    .empty-state__actions .btn { width: 100%; }
}
