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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #4a5568;
    line-height: 1.6;
    background: #f9fafb;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

ul, ol {
    list-style: none;
}

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

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #f5863a;
    --primary-dark: #e0742a;
    --primary-light: #fff7f0;
    --secondary: #3b4a5c;
    --text: #4a5568;
    --text-light: #718096;
    --text-muted: #a0aec0;
    --bg: #f9fafb;
    --white: #fff;
    --border: #e8ecf1;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --container: 1200px;
    --transition: 0.3s ease;
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER / TOP BAR ===== */
.top-bar {
    background: var(--white);
    color: var(--text);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    border-bottom: 1px solid var(--border);
}

.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 16px;
    flex-wrap: wrap;
}

.top-bar__brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar__brand span {
    color: var(--primary);
}

.top-bar__contacts {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.top-bar__link {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition);
}

.top-bar__link:hover {
    color: var(--primary);
}

.top-bar__link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.top-bar__phone {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    transition: background var(--transition), transform var(--transition);
    box-shadow: 0 2px 8px rgba(245, 134, 58, 0.3);
}

.top-bar__phone:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.top-bar__phone svg {
    width: 20px;
    height: 20px;
    animation: ring 2s ease-in-out infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(0); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-10deg); }
    30% { transform: rotate(8deg); }
    40% { transform: rotate(-5deg); }
    50%, 100% { transform: rotate(0); }
}

/* ===== HERO SECTION ===== */
.hero {
    background: #ffffff;
    color: var(--secondary);
    padding: 56px 0 64px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 10%;
    width: 380px;
    height: 380px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,134,58,0.06) 0%, transparent 70%);
    pointer-events: none;
}

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

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

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
    border: 1px solid rgba(245, 134, 58, 0.15);
    letter-spacing: 0.3px;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero__title {
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.8px;
    color: var(--secondary);
}

.hero__title span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero__title span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 100%;
    height: 8px;
    background: rgba(245, 134, 58, 0.15);
    border-radius: 4px;
    z-index: -1;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 460px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.hero__trust {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero__trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.hero__trust-item svg {
    width: 18px;
    height: 18px;
    color: #48bb78;
    flex-shrink: 0;
}

/* Hero Visual Column */
.hero__visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__image-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.hero__image {
    max-height: 340px;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    border-radius: var(--radius-sm);
}

.hero__stats-float {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    margin-top: -20px;
    position: relative;
    z-index: 3;
}

.hero__stats-float .hero__stat {
    flex: 1;
    text-align: center;
    padding: 16px 12px;
    border-right: 1px solid var(--border);
}

.hero__stats-float .hero__stat:last-child {
    border-right: none;
}

.hero__stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 2px;
}

.hero__stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
}

.hero__divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(245, 134, 58, 0.3);
}

.btn--primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 134, 58, 0.4);
}

.btn--outline {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--border);
}

.btn--outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn--lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* ===== SECTION COMMON ===== */
.section {
    padding: 60px 0;
}

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

.section--white {
    background: var(--white);
}

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

.section__title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.section__subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 550px;
    margin: 0 auto;
}

/* ===== CATALOG GRID ===== */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* ===== PRODUCT CARD ===== */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}

.card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.card__image {
    position: relative;
    background: #fff;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    border-bottom: 1px solid var(--border);
}

.card__image img {
    max-height: 180px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition);
}

.card:hover .card__image img {
    transform: scale(1.05);
}

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

.card__type {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.card__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 16px;
    line-height: 1.3;
}

/* Specs table */
.specs {
    margin-bottom: 16px;
}

.specs__title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.specs__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.specs__item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.88rem;
    padding: 4px 0;
    border-bottom: 1px dashed var(--border);
}

.specs__item:last-child {
    border-bottom: none;
}

.specs__label {
    color: var(--text-light);
}

.specs__value {
    font-weight: 600;
    color: var(--secondary);
}

/* Applications */
.apps {
    margin-bottom: 20px;
    flex: 1;
}

.apps__title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.apps__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.apps__item {
    font-size: 0.85rem;
    color: var(--text-light);
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.apps__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-light);
    border: 2px solid var(--primary);
}

/* Card footer */
.card__footer {
    padding: 0 24px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

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

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

.card__price-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    transition: all var(--transition);
    white-space: nowrap;
}

.card__cta:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 134, 58, 0.3);
}

.card__cta svg {
    width: 18px;
    height: 18px;
}

/* ===== PRICING SECTION ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
}

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

.pricing-card--popular {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(245, 134, 58, 0.12);
}

.pricing-card--popular::before {
    content: 'Популярно';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-card__period {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 500;
}

.pricing-card__price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.pricing-card__unit {
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

.advantage {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.advantage:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: transparent;
}

.advantage__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.advantage__icon svg {
    width: 26px;
    height: 26px;
    color: var(--primary);
}

.advantage__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
}

.advantage__text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
    background: #f0f2f5;
    color: var(--text);
    padding: 48px 0 24px;
    border-top: 1px solid var(--border);
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 16px;
}

.footer__text {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer__text a {
    color: var(--primary);
    transition: opacity var(--transition);
}

.footer__text a:hover {
    opacity: 0.8;
}

.footer__schedule {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__schedule-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

.footer__schedule-day {
    color: var(--text-light);
}

.footer__schedule-time {
    font-weight: 600;
    color: var(--secondary);
}

.footer__phone-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
    transition: color var(--transition);
}

.footer__phone-link:hover {
    color: var(--primary);
}

.footer__phone-link svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.footer__map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 12px;
    transition: opacity var(--transition);
}

.footer__map-link:hover {
    opacity: 0.8;
    color: var(--primary);
}

.footer__map-link svg {
    width: 16px;
    height: 16px;
}

.footer__bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== MOBILE NAV TOGGLE ===== */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle svg {
    width: 28px;
    height: 28px;
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition);
    border: none;
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.scroll-top svg {
    width: 24px;
    height: 24px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero__title {
        font-size: 2.2rem;
    }

    .hero__inner {
        gap: 32px;
    }

    .hero__image {
        max-height: 280px;
    }

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

@media (max-width: 768px) {
    .top-bar .container {
        padding: 12px 20px;
        flex-direction: column;
        gap: 8px;
    }

    .top-bar__contacts {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        align-items: center;
    }

    .top-bar__link {
        display: none;
    }

    .top-bar__contacts .top-bar__phone {
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding: 40px 0 48px;
    }

    .hero::before {
        width: 300px;
        height: 300px;
        right: 50%;
        top: 60%;
        transform: translate(50%, -50%);
    }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .hero__content {
        align-items: center;
    }

    .hero__title {
        font-size: 1.85rem;
    }

    .hero__subtitle {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
        margin-bottom: 28px;
    }

    .hero__trust {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 20px;
    }

    .hero__trust-item {
        font-size: 0.82rem;
    }

    .hero__image {
        max-height: 240px;
    }

    .hero__stats-float {
        max-width: 100%;
        margin-top: -12px;
    }

    .hero__stat-value {
        font-size: 1.2rem;
    }

    .section {
        padding: 40px 0;
    }

    .section__title {
        font-size: 1.6rem;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card__image {
        min-height: 180px;
        padding: 20px;
    }

    .card__image img {
        max-height: 150px;
    }

    .card__footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .card__price {
        text-align: center;
    }

    .card__cta {
        justify-content: center;
        width: 100%;
    }

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

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .hero__title {
        font-size: 1.6rem;
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
        margin-bottom: 24px;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .hero__trust {
        flex-direction: column;
        align-items: center;
    }

    .hero__stats-float .hero__stat {
        padding: 12px 8px;
    }

    .hero__stat-value {
        font-size: 1.05rem;
    }

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

    .card__body {
        padding: 20px;
    }

    .card__footer {
        padding: 0 20px 20px;
    }

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

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
}

.card {
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: calc(var(--delay, 0) * 0.08s);
}

