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

:root {
    --c-bg: #ffffff;
    --c-bg-soft: #f5f7fa;
    --c-bg-card: #ffffff;
    --c-border: #e4e8ee;
    --c-border-light: #eef1f5;
    --c-text: #1a1d23;
    --c-text-mid: #4a5060;
    --c-text-dim: #8892a4;
    --c-accent: #0066CC;
    --c-accent-hover: #0052A3;
    --c-accent-light: #E8F1FD;
    --c-green: #00A854;
    --c-green-light: #E6F7EE;
    --c-orange: #FF7A00;
    --c-orange-light: #FFF3E5;
    --c-red: #E63329;
    --radius: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    --container: 1320px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.55;
    font-size: 15px;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

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

.text-accent { color: var(--c-accent); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
    gap: 6px;
    letter-spacing: 0.2px;
}

.btn--primary {
    background: var(--c-accent);
    color: #fff;
}

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

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

.btn--outline:hover {
    background: var(--c-accent-light);
}

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

.btn--green:hover {
    background: #008B46;
}

.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn--full { width: 100%; }

/* ===== TOP BAR ===== */
.topbar {
    background: #1a1d23;
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.topbar__contact {
    display: flex;
    gap: 24px;
    align-items: center;
}

.topbar__contact a {
    color: #fff;
    opacity: 0.85;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar__contact a:hover { opacity: 1; }

.topbar__info {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    transition: box-shadow 0.2s;
}

.header.scrolled {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 32px;
}

.header__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 800;
    color: var(--c-text);
    letter-spacing: -0.5px;
}

.header__brand-icon {
    font-size: 24px;
}

.header__nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.header__nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--c-text-mid);
    transition: color 0.2s;
    position: relative;
    padding: 4px 0;
}

.header__nav a:hover {
    color: var(--c-accent);
}

.header__nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--c-accent);
    transform: scaleX(0);
    transition: transform 0.2s;
}

.header__nav a:hover::after {
    transform: scaleX(1);
}

.header__phone {
    font-size: 15px;
    font-weight: 700;
    color: var(--c-text);
    white-space: nowrap;
}

.header__phone:hover { color: var(--c-accent); }

.header__burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.header__burger span {
    width: 24px;
    height: 2px;
    background: var(--c-text);
    border-radius: 1px;
    transition: 0.3s;
}

.header__burger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.header__burger.active span:nth-child(2) { opacity: 0; }
.header__burger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ===== HERO (compact banner) ===== */
/* ===== HERO ===== */

.hero {
    border-bottom: 1px solid var(--c-border);
}

.hero__video {
    width: 100%;
    height: auto;
    display: block;
}

.hero__content {
    padding: 40px 0 48px;
    background: linear-gradient(135deg, #F5F7FA 0%, #E8F1FD 100%);
}

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

.hero__title,
.hero__subtitle,
.hero__actions,
.hero__stats,
.breadcrumbs {
    color: var(--c-text);
}

.hero__title {
    color: var(--c-text);
}

.hero__subtitle {
    color: var(--c-text-mid);
}

    background: #fff;
    border-color: var(--c-border);
    color: var(--c-text-mid);
}

.hero__stat-num {
    color: var(--c-accent);
}

.hero__stat-num span {
    color: var(--c-text-mid);
}

.hero__stat-label {
    color: var(--c-text-dim);
}

.breadcrumbs a,
.breadcrumbs span {
    color: var(--c-text-dim);
}

.breadcrumbs a:hover {
    color: var(--c-accent);
}

.hero__content {
    max-width: 720px;
}

    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--c-text-mid);
    margin-bottom: 20px;
}

.hero__title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    color: var(--c-text);
}

.hero__subtitle {
    font-size: 16px;
    color: var(--c-text-mid);
    margin-bottom: 28px;
    max-width: 580px;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
    max-width: 400px;
}

.hero__actions .btn {
    width: 100%;
}

.hero__stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.hero__stat-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--c-accent);
    line-height: 1;
}

.hero__stat-num span {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text-mid);
    margin-left: 4px;
}

.hero__stat-label {
    font-size: 13px;
    color: var(--c-text-dim);
    margin-top: 6px;
}

/* ===== SECTIONS ===== */
.section {
    padding: 56px 0;
}

.section--soft { background: var(--c-bg-soft); }
.section--border { border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }

.section__head {
    margin-bottom: 32px;
    max-width: 700px;
}

.section__title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.section__desc {
    font-size: 15px;
    color: var(--c-text-mid);
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: var(--c-text-dim);
    margin-bottom: 16px;
}

.breadcrumbs a:hover { color: var(--c-accent); }
.breadcrumbs span { color: var(--c-text-dim); }

/* ===== PRODUCT GRID (Hevel-style catalog) ===== */
.catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.catalog--compact {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

/* ===== PRODUCT CARD (Hevel-style) ===== */
.product-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--c-accent);
    box-shadow: var(--shadow-hover);
}

.product-card__photo {
    background: var(--c-bg-soft);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--c-border-light);
    position: relative;
    overflow: hidden;
}

.product-card__photo img,
.product-card__photo svg {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.product-card__photo-placeholder {
    font-size: 56px;
    color: var(--c-text-dim);
    opacity: 0.35;
}

.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--c-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card__badge--green { background: var(--c-green); }
.product-card__badge--orange { background: var(--c-orange); }
.product-card__badge--red { background: var(--c-red); }

.product-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card__brand {
    font-size: 12px;
    font-weight: 600;
    color: var(--c-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 12px;
    line-height: 1.35;
}

/* Tech specs table (Hevel-style) */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 14px;
    font-size: 13px;
}

.spec-table td {
    padding: 6px 0;
    border-bottom: 1px solid var(--c-border-light);
    color: var(--c-text-mid);
}

.spec-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--c-text);
}

.spec-table tr:last-child td {
    border-bottom: none;
}

/* Status badges */
.status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius);
}

.status--stock { background: var(--c-green-light); color: var(--c-green); }
.status--transit { background: var(--c-orange-light); color: var(--c-orange); }
.status--order { background: #E8F0FE; color: var(--c-accent); }

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

.product-card__footer {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-card__price-block {
    display: flex;
    flex-direction: column;
}

.product-card__price {
    font-size: 20px;
    font-weight: 800;
    color: var(--c-text);
    line-height: 1;
}

.product-card__price-note {
    font-size: 12px;
    color: var(--c-text-dim);
    margin-top: 4px;
}

.product-card__rrc {
    font-size: 12px;
    color: var(--c-text-dim);
    text-decoration: line-through;
}

/* ===== KITS (Cards) ===== */
.kits {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.kit-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.kit-card:hover {
    border-color: var(--c-accent);
    box-shadow: var(--shadow-hover);
}

.kit-card__header {
    padding: 20px;
    border-bottom: 1px solid var(--c-border-light);
    background: var(--c-bg-soft);
}

.kit-card--featured .kit-card__header {
    background: var(--c-accent-light);
}

.kit-card__tag {
    font-size: 12px;
    font-weight: 600;
    color: var(--c-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.kit-card__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.kit-card__power {
    font-size: 14px;
    color: var(--c-text-mid);
}

.kit-card__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kit-card__section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.kit-card__item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--c-border-light);
}

.kit-card__item:last-child { border-bottom: none; }

.kit-card__item-icon {
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-bg-soft);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.kit-card__item-info strong {
    font-size: 14px;
    display: block;
    margin-bottom: 2px;
}

.kit-card__item-info small {
    font-size: 12px;
    color: var(--c-text-dim);
}

/* Autonomy box */
.autonomy-box {
    background: var(--c-bg-soft);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-top: 4px;
}

.autonomy-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 13px;
}

.autonomy-row span { color: var(--c-text-mid); }
.autonomy-row strong { color: var(--c-text); }

.autonomy--ok { color: var(--c-green) !important; }

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--radius);
    background: var(--c-bg-soft);
    color: var(--c-text-mid);
    border: 1px solid var(--c-border-light);
}

.kit-card__footer {
    padding: 16px 20px;
    border-top: 1px solid var(--c-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.kit-card__price {
    font-size: 22px;
    font-weight: 800;
    color: var(--c-text);
}

.kit-card__price-note {
    font-size: 12px;
    color: var(--c-text-dim);
}

/* ===== COMPATIBILITY TABLE (Hevel-style) ===== */
.compat-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-size: 14px;
}

.compat-table thead {
    background: var(--c-bg-soft);
}

.compat-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text-mid);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--c-border);
}

.compat-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--c-border-light);
    color: var(--c-text-mid);
    vertical-align: top;
}

.compat-table tr:last-child td { border-bottom: none; }

.compat-table tr:hover td { background: #FAFBFC; }

.compat-table strong { color: var(--c-text); }

.compat-table__inverter {
    font-weight: 700;
    color: var(--c-accent);
    font-size: 14px;
}

.compat-table__power {
    font-size: 12px;
    color: var(--c-text-dim);
}

/* ===== SUBTITLE ===== */
.block-subtitle {
    font-size: 18px;
    font-weight: 700;
    margin: 32px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--c-accent);
    display: inline-block;
}

/* ===== ADVANTAGES ===== */
.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.advantage {
    text-align: center;
    padding: 28px 20px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
}

.advantage__icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.advantage h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.advantage p {
    font-size: 14px;
    color: var(--c-text-mid);
}

/* ===== CONTACT ===== */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact__items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.contact__item {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.contact__item:hover {
    border-color: var(--c-accent);
    background: var(--c-accent-light);
}

.contact__item-icon {
    font-size: 22px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-bg-soft);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.contact__item strong {
    font-size: 15px;
    display: block;
}

.contact__item small {
    font-size: 13px;
    color: var(--c-text-dim);
}

.contact__form {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 28px;
}

.contact__form h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact__form input,
.contact__form select,
.contact__form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 12px;
    transition: border 0.2s;
    background: #fff;
    color: var(--c-text);
}

.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px var(--c-accent-light);
}

.contact__form textarea { resize: vertical; }

.contact__form-hint {
    font-size: 12px;
    color: var(--c-text-dim);
    margin-top: 8px;
    display: block;
}

/* ===== FOOTER ===== */
.footer {
    background: #1a1d23;
    color: rgba(255,255,255,0.7);
    padding: 48px 0 24px;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    margin-bottom: 32px;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
}

.footer__cols {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer__col h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer__col a {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer__col a:hover { color: #fff; }

.footer__copy {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    text-align: center;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.modal {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px;
    max-width: 440px;
    width: 100%;
    position: relative;
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--c-text-dim);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.modal__close:hover {
    background: var(--c-bg-soft);
}

.modal__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.modal__product {
    font-size: 14px;
    color: var(--c-text-mid);
    margin-bottom: 20px;
    padding: 10px 14px;
    background: var(--c-accent-light);
    border-radius: var(--radius);
}

.modal input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 12px;
}

.modal input:focus {
    outline: none;
    border-color: var(--c-accent);
}

/* ===== FILTER BAR ===== */
.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 8px 16px;
    border: 1px solid var(--c-border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    color: var(--c-text-mid);
}

.filter-chip:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
}

.filter-chip.active {
    background: var(--c-accent);
    color: #fff;
    border-color: var(--c-accent);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 99;
    padding: 20px;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--c-text);
    border-bottom: 1px solid var(--c-border-light);
}

.mobile-menu a:hover { color: var(--c-accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .header__nav { display: none; }
    .header__burger { display: flex; }
    .header__phone { font-size: 14px; }
    
    .hero__title { font-size: 28px; }
    .hero__stats { gap: 24px; }
    .hero__stat-num { font-size: 26px; }
    
    .section { padding: 40px 0; }
    .section__title { font-size: 22px; }
    
    .contact { grid-template-columns: 1fr; }
    
    .footer__cols { gap: 32px; }
    
    .topbar__info { display: none; }
    .topbar__contact { gap: 12px; font-size: 12px; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    
    .catalog {
        grid-template-columns: 1fr;
    }
    .catalog--compact {
        grid-template-columns: 1fr;
    }
    .kits {
        grid-template-columns: 1fr;
    }
    
    .topbar__contact {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
    .topbar { padding: 6px 0; }
    
    .hero__content { padding: 28px 0 36px; }
    .hero__title { font-size: 24px; line-height: 1.25; }
    .hero__subtitle { font-size: 14px; margin-bottom: 20px; }
    .hero__actions { gap: 8px; max-width: 100%; }
    .hero__actions .btn { padding: 12px 16px; font-size: 14px; }
    .hero__stats { gap: 20px; }
    .hero__stat-num { font-size: 22px; }
    .hero__stat-num span { font-size: 12px; }
    .hero__stat-label { font-size: 11px; }
    
    .section { padding: 32px 0; }
    .section__title { font-size: 20px; }
    .section__desc { font-size: 14px; }
    .section__head { margin-bottom: 20px; }
    
    .header__inner { padding: 10px 0; }
    .header__phone { font-size: 13px; }
    .header__logo { font-size: 18px; }
    .header__burger { width: 36px; height: 36px; }
    
    .btn { padding: 10px 18px; font-size: 14px; }
    .btn--lg { padding: 12px 20px; font-size: 15px; }
    
    .product-card__title { font-size: 15px; }
    .product-card__price { font-size: 17px; }
    .product-card__spec { font-size: 12px; }
    
    .kit-card__title { font-size: 16px; }
    .kit-card__price { font-size: 18px; }
    
    .contact__info { padding: 20px; }
    .contact__phone { font-size: 20px; }
    
    .footer__cols { grid-template-columns: 1fr; gap: 24px; }
    .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 12px; }
    
    .hero__title { font-size: 20px; }
    .hero__subtitle { font-size: 13px; }
    .hero__stat-num { font-size: 18px; }
    
    .section__title { font-size: 18px; }
    
    .header__logo { font-size: 16px; }
    .header__phone { display: none; }
    
    .btn { width: 100%; justify-content: center; }
    
    .product-card { padding: 14px; }
    .product-card__title { font-size: 14px; }
    .product-card__price { font-size: 16px; }
    
    .topbar { display: none; }
    
    .modal { padding: 16px; }
    .modal__title { font-size: 18px; }
    .modal__input { font-size: 16px; padding: 12px 14px; }
    
    .contact__phone { font-size: 18px; }
    .contact__item { font-size: 13px; }
}

/* ===== FLOATING QUICK NAV ===== */
.quicknav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--c-border);
    box-shadow: 0 -2px 16px rgba(0,0,0,0.1);
    z-index: 100;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.quicknav.show {
    transform: translateY(0);
}
.quicknav__inner {
    display: flex;
    gap: 0;
    padding: 6px 8px !important;
    max-width: 500px;
    margin: 0 auto;
}
.quicknav__btn {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 4px;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    font-size: 10px;
    font-weight: 600;
    color: var(--c-text-dim);
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.quicknav__btn span {
    font-size: 10px;
    line-height: 1;
}
.quicknav__btn:active {
    background: var(--c-accent-light);
    color: var(--c-accent);
    transform: scale(0.92);
}
.quicknav__btn.active {
    color: var(--c-accent);
}

/* ===== MOBILE MENU SEARCH ===== */
.mobile-menu__search {
    padding: 12px 20px 8px;
}
.mobile-menu__search input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--c-border);
    border-radius: var(--radius-md);
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}
.mobile-menu__search input:focus {
    border-color: var(--c-accent);
}

/* ===== SEARCH RESULTS ===== */
.search-results {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 500px;
    max-height: 60vh;
    overflow-y: auto;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    z-index: 200;
    padding: 8px;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.15s;
}
.search-result-item:hover, .search-result-item:active {
    background: var(--c-bg-soft);
}
.search-result-item__icon {
    font-size: 24px;
    flex-shrink: 0;
}
.search-result-item__info {
    flex: 1;
    min-width: 0;
}
.search-result-item__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-item__meta {
    font-size: 12px;
    color: var(--c-text-dim);
}
.search-result-item__price {
    font-size: 14px;
    font-weight: 700;
    color: var(--c-accent);
    white-space: nowrap;
}
.search-results__empty {
    padding: 20px;
    text-align: center;
    color: var(--c-text-dim);
    font-size: 14px;
}

/* ===== DESKTOP: hide quicknav, show on mobile only ===== */
@media (min-width: 969px) {
    .quicknav { display: none; }
}
@media (max-width: 968px) {
    .quicknav { display: block; }
}
@media (max-width: 480px) {
    .quicknav__btn { padding: 6px 2px; }
    .quicknav__btn span { font-size: 9px; }
    .quicknav__inner { padding: 4px 4px !important; }
}

/* ===== PRODUCT CARD IMAGES ===== */
.product-card__img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.product-card:hover .product-card__img {
    transform: scale(1.05);
}
.product-card__photo {
    background: linear-gradient(135deg, #f8f9fb 0%, #eef1f6 100%);
}

/* ===== SCROLL ANIMATION ===== */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ===== BENEFITS BAR ===== */
.benefits {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    background: var(--c-bg-soft);
    border-top: 1px solid var(--c-border-light);
    border-bottom: 1px solid var(--c-border-light);
}
.benefits__item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}
.benefits__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}
.benefits__text {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text);
    line-height: 1.3;
}
.benefits__sub {
    font-size: 11px;
    color: var(--c-text-dim);
    font-weight: 400;
}

@media (max-width: 768px) {
    .benefits {
        flex-wrap: wrap;
        gap: 12px;
    }
    .benefits__item {
        flex: 1 1 45%;
    }
}
@media (max-width: 480px) {
    .benefits__item {
        flex: 1 1 100%;
    }
    .benefits__icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* ===== MOBILE MENU CALL BUTTON ===== */
.mobile-menu__call {
    margin-top: 16px;
    padding: 14px !important;
    text-align: center;
    background: var(--c-accent) !important;
    color: #fff !important;
    border-radius: var(--radius-md);
    font-size: 16px !important;
    font-weight: 700;
    border: none !important;
}
.mobile-menu__call:active {
    background: var(--c-accent-hover) !important;
}

/* ===== FLOATING MENU BUTTON ===== */
.fab-menu {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--c-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 16px rgba(0,102,204,0.4);
    cursor: pointer;
    z-index: 200;
    transition: transform 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.fab-menu:active {
    transform: scale(0.9);
}
.fab-menu.open {
    transform: rotate(90deg);
    background: var(--c-text);
}

.fab-panel {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    padding: 8px;
    min-width: 200px;
    z-index: 200;
    display: none;
    flex-direction: column;
    gap: 2px;
}
.fab-panel.show {
    display: flex;
    animation: fabPop 0.2s ease;
}
@keyframes fabPop {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.fab-panel a {
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text);
    border-radius: 8px;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.fab-panel a:active {
    background: var(--c-bg-soft);
}
.fab-panel__call {
    margin-top: 6px;
    text-align: center;
    background: var(--c-green) !important;
    color: #fff !important;
    border-radius: 8px;
}
.fab-panel__call:active {
    background: #008040 !important;
}

/* Show only on mobile */
@media (min-width: 969px) {
    .fab-menu { display: none; }
    .fab-panel { display: none !important; }
}

/* ===== MOBILE TAB BAR IN HEADER ===== */
.header__tabs {
    display: none;
    border-top: 1px solid var(--c-border-light);
    background: #fff;
}
.header__tabs .container {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.header__tabs .container::-webkit-scrollbar { display: none; }
.header__tabs a {
    flex: 1;
    text-align: center;
    padding: 10px 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--c-text-dim);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.header__tabs a.active {
    color: var(--c-accent);
    border-bottom-color: var(--c-accent);
}
.header__tabs a:active {
    color: var(--c-accent);
}

@media (max-width: 968px) {
    .header__tabs { display: block; }
    .header__burger { display: none !important; }
    
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 150;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }
    body {
        padding-top: 100px;
    }
}

@media (max-width: 380px) {
    .header__tabs a { font-size: 10px; padding: 8px 4px; }
    .header__brand-icon { font-size: 16px; }
    .header__inner { height: 48px; }
    body { padding-top: 92px; }
}
@media (max-width: 480px) {
    .header__tabs a { font-size: 11px; padding: 8px 4px; }
}

/* ===== IPHONE OPTIMIZATIONS ===== */

/* Safe area for notch/Dynamic Island */
@supports (padding: env(safe-area-inset-top)) {
    .header {
        padding-top: env(safe-area-inset-top, 0px);
    }
    .fab-menu {
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    }
    .fab-panel {
        bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }
    body {
        padding-top: calc(104px + env(safe-area-inset-top, 0px));
    }
}

/* Prevent text size adjust on rotation */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Better touch targets on iOS */
@media (max-width: 968px) {
    .header__tabs a {
        padding: 12px 8px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .header__inner {
        height: 52px;
        min-height: 44px;
    }
    .btn {
        min-height: 44px;
    }
    .product-card__footer .btn {
        min-height: 40px;
        padding: 10px 16px;
    }
    .filter-chip {
        min-height: 40px;
        padding: 10px 16px;
    }
    .modal__input {
        min-height: 48px;
        font-size: 16px; /* prevents iOS zoom */
    }
    .fab-menu {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
}

/* Smooth scrolling on iOS */
html {
    -webkit-overflow-scrolling: touch;
}

/* Prevent iOS pull-to-refresh interfering */


/* Fix viewport scaling */
@viewport {
    width: device-width;
    initial-scale: 1.0;
    maximum-scale: 5.0;
    user-scalable: yes;
}
