:root {
    --red: #E4222A;
    --red-dark: #C21A21;
    --blue: #2A2E82;
    --blue-dark: #20235f;
    --light-bg: #f7f8fb;
    --text: #202233;
    --text-light: #6a6d80;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 8px 24px rgba(42, 46, 130, 0.08);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

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

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow .3s ease, padding .3s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.site-header.is-scrolled .header-inner { padding: 8px 20px; }
.site-header.is-scrolled .logo-img { height: 40px; }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    gap: 20px;
    transition: padding .3s ease;
}

.logo-img { height: 48px; width: auto; transition: height .3s ease; }

.main-nav {
    display: flex;
    gap: 28px;
    flex: 1;
    justify-content: center;
}

.main-nav a {
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    position: relative;
    padding: 6px 0;
    transition: color .2s;
}

.main-nav a::before {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 3px;
    background: var(--red);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.main-nav a:hover { color: var(--red); }
.main-nav a:hover::before { transform: scaleX(1); }
.main-nav a.active { color: var(--red); }
.main-nav a.active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 3px;
    background: var(--red);
    border-radius: 2px;
}

.lang-switch {
    display: flex;
    gap: 6px;
    background: var(--light-bg);
    border-radius: 30px;
    padding: 4px;
}

.lang-switch a {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
    transition: all .2s;
}

.lang-switch a.active,
.lang-switch a:hover {
    background: var(--blue);
    color: var(--white);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.burger span {
    width: 24px;
    height: 3px;
    background: var(--blue);
    border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 70px 20px 90px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(228,34,42,0.25), transparent 45%);
}

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

.hero-inner > * {
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeUp .7s ease forwards;
}
.hero-logo { animation-delay: .05s; }
.hero-inner h1 { animation-delay: .15s; }
.hero-inner p { animation-delay: .25s; }
.hero-buttons { animation-delay: .35s; }

@keyframes heroFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.hero-logo {
    height: 90px;
    width: auto;
    margin: 0 auto 24px;
    background: var(--white);
    padding: 10px 18px;
    border-radius: 16px;
}

.hero h1 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 14px;
}

.hero p {
    max-width: 620px;
    margin: 0 auto;
    font-size: 17px;
    color: rgba(255,255,255,0.85);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 15px;
    transition: transform .2s, box-shadow .2s;
}

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

.btn-primary {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 6px 18px rgba(228,34,42,0.35);
}

.btn-primary:hover { background: var(--red-dark); }

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover { background: rgba(255,255,255,0.12); }

/* ===== INNER PAGE HERO ===== */
.page-hero {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 50px 20px;
}

.page-hero h1 {
    font-size: 28px; font-weight: 800; margin-bottom: 8px;
    opacity: 0; transform: translateY(16px);
    animation: heroFadeUp .6s ease forwards;
    animation-delay: .05s;
}
.page-hero p {
    color: rgba(255,255,255,0.85); font-size: 15px; max-width: 560px; margin: 0 auto;
    opacity: 0; transform: translateY(16px);
    animation: heroFadeUp .6s ease forwards;
    animation-delay: .15s;
}

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

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--blue);
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto 40px;
}

.about { background: var(--light-bg); }

.link-more {
    display: inline-block;
    margin-top: 16px;
    color: var(--red);
    font-weight: 700;
    font-size: 14px;
}

.section-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.product-items-grid-teaser { grid-template-columns: repeat(4, 1fr); }

.home-cta-strip {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    padding: 50px 0;
}

.home-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.home-cta-inner h2 { color: var(--white); font-size: 22px; margin-bottom: 6px; }
.home-cta-inner p { color: rgba(255,255,255,0.85); font-size: 14px; max-width: 480px; }
.home-cta-inner .btn-primary { background: var(--white); color: var(--red); box-shadow: none; }
.home-cta-inner .btn-primary:hover { background: #f5f5f5; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    margin-top: 30px;
}

.about-text p {
    font-size: 16px;
    color: var(--text);
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.about-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--red);
}

.about-card h3 {
    color: var(--blue);
    font-size: 17px;
    margin-bottom: 6px;
}

.about-card p { color: var(--text-light); font-size: 14px; }

.about-card-icon { font-size: 26px; margin-bottom: 8px; }

/* ===== PRODUCTS ===== */
.product-group { margin-bottom: 44px; }
.product-group:last-child { margin-bottom: 0; }

.product-group-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 26px;
    border-radius: var(--radius);
    color: var(--white);
    margin-bottom: 22px;
    box-shadow: var(--shadow);
}

.product-group-summer { background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); }
.product-group-winter { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); }

.product-group-header h3 { font-size: 19px; margin-bottom: 4px; }
.product-group-header p { color: rgba(255,255,255,0.85); font-size: 14px; }

.product-badge { font-size: 30px; flex-shrink: 0; }

.product-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.product-item {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(42,46,130,0.06);
    transition: transform .25s, box-shadow .25s;
    cursor: pointer;
}

.product-item-count {
    position: absolute;
    top: 8px; right: 8px;
    background: rgba(0,0,0,0.65);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
}

.product-item-title {
    display: block;
    padding: 14px 16px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
}
.product-item-sizes {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
}

.product-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(42,46,130,0.16);
}

.product-item .product-item-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e9ebf3;
    position: relative;
}

.product-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.product-item:hover img { transform: scale(1.05); }

/* ===== GALLERY ===== */
.gallery { background: var(--white); }

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

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform .3s;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-item span {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 20px 10px 8px;
}

/* ===== MARKETS ===== */
.markets { background: var(--light-bg); }

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

.market-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform .2s;
}

.market-card:hover { transform: translateY(-4px); }

.market-flag { font-size: 40px; margin-bottom: 12px; }

.market-card h3 { color: var(--blue); margin-bottom: 6px; font-size: 18px; }

.market-card p { color: var(--text-light); font-size: 14px; }

/* ===== CONTACTS ===== */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.contact-card {
    background: var(--light-bg);
    border-radius: var(--radius);
    padding: 24px;
    border-top: 4px solid var(--blue);
}

.contact-card h3 { color: var(--blue); margin-bottom: 14px; font-size: 17px; }

.contact-address { margin-bottom: 12px; color: var(--text); font-size: 14px; }

.contact-phone {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(42,46,130,0.15);
    font-size: 14px;
}

.contact-phone a { color: var(--red); font-weight: 700; }

.contact-person { color: var(--text-light); font-size: 13px; }

.contact-quick-links { display: flex; gap: 10px; margin-top: 16px; }

.quick-link {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    color: var(--white);
}

.quick-link.wa { background: #25D366; }
.quick-link.tg { background: #229ED9; }

.contacts-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-map, .contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.contact-map h3, .contact-form-wrap h3 {
    color: var(--blue);
    margin-bottom: 16px;
    font-size: 17px;
}

.map-embed { border-radius: 10px; overflow: hidden; }

.contact-form { display: flex; flex-direction: column; gap: 14px; }

.contact-form input,
.contact-form textarea {
    padding: 12px 14px;
    border: 1px solid #dcdfe8;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--blue);
}

.contact-form button { align-self: flex-start; border: none; cursor: pointer; }

.form-hint {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 14px;
}

.form-send-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-send-wa,
.btn-send-tg {
    border: none;
    cursor: pointer;
    color: var(--white);
    flex: 1;
    min-width: 140px;
}

.btn-send-wa { background: #25D366; box-shadow: 0 6px 16px rgba(37,211,102,0.35); }
.btn-send-tg { background: #229ED9; box-shadow: 0 6px 16px rgba(34,158,217,0.35); }

.form-success {
    background: #e6f9ee;
    color: #1a7a45;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
}

.form-error {
    background: #fdecec;
    color: var(--red-dark);
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--blue-dark);
    color: rgba(255,255,255,0.8);
    text-align: center;
    padding: 40px 20px;
}

.footer-logo {
    height: 40px;
    margin: 0 auto 12px;
    background: var(--white);
    padding: 6px 12px;
    border-radius: 10px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin: 14px 0;
}

.footer-nav a {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    transition: color .2s;
}

.footer-nav a:hover { color: var(--white); }

.footer-copy { margin-top: 8px; font-size: 13px; color: rgba(255,255,255,0.5); }

/* ===== FLOATING WHATSAPP ===== */
.floating-wa {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 6px 18px rgba(37,211,102,0.5);
    z-index: 200;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .about-grid, .contacts-bottom { grid-template-columns: 1fr; }
    .product-items-grid, .product-items-grid-teaser { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .markets-grid, .contacts-grid { grid-template-columns: 1fr; }
    .home-cta-inner { text-align: center; justify-content: center; }
}

@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
        box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    }
    .main-nav.open { max-height: 400px; overflow-y: auto; }
    .main-nav a { padding: 16px 24px; border-bottom: 1px solid #eee; }
    .main-nav a.active::after { display: none; }
    .main-nav a.active { background: var(--light-bg); }
    .burger { display: flex; }
    .lang-switch { order: 3; }
    .hero h1 { font-size: 26px; }
    .section { padding: 50px 0; }
}

@media (max-width: 560px) {
    .container { padding: 0 16px; }
    .header-inner { padding: 10px 16px; }
    .logo-img { height: 40px; }

    .hero { padding: 50px 16px 60px; }
    .hero-logo { height: 70px; padding: 8px 14px; }
    .hero h1 { font-size: 22px; }
    .hero p { font-size: 15px; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; text-align: center; }

    .page-hero { padding: 36px 16px; }
    .page-hero h1 { font-size: 22px; }

    .section-title { font-size: 22px; }
    .section-subtitle { font-size: 14px; padding: 0 8px; }

    .about-card { padding: 16px 18px; }

    .product-group-header { padding: 16px 18px; }
    .product-items-grid, .product-items-grid-teaser, .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .product-group-header { flex-direction: column; text-align: center; }

    .markets-grid { grid-template-columns: 1fr; }
    .market-card { padding: 24px 16px; }

    .contacts-grid { grid-template-columns: 1fr; }
    .contact-card { padding: 18px; }

    .contact-map, .contact-form-wrap { padding: 18px; }
    .form-send-buttons { flex-direction: column; }
    .btn-send-wa, .btn-send-tg { width: 100%; }

    .home-cta-inner h2 { font-size: 19px; }
    .home-cta-strip { padding: 36px 0; }

    .footer-nav { gap: 12px 16px; }
    .site-footer { padding: 32px 16px; }

    .floating-wa { width: 50px; height: 50px; font-size: 22px; bottom: 16px; right: 16px; }
}

@media (max-width: 380px) {
    .product-items-grid, .product-items-grid-teaser, .gallery-grid { grid-template-columns: 1fr; }
    .stat-cards { grid-template-columns: 1fr 1fr; }
}

/* ===== SCROLL-REVEAL ===== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== BUTTON RIPPLE ===== */
.btn, .quick-link, .btn-send-wa, .btn-send-tg {
    position: relative;
    overflow: hidden;
}

.ripple-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transform: scale(0);
    animation: rippleAnim .6s ease-out;
    pointer-events: none;
}

@keyframes rippleAnim {
    to { transform: scale(2.5); opacity: 0; }
}

/* ===== FLOATING WHATSAPP PULSE ===== */
.floating-wa {
    animation: waPulse 2.4s ease-in-out infinite;
}

.floating-wa:hover { animation-play-state: paused; transform: scale(1.08); }

@keyframes waPulse {
    0%, 100% { box-shadow: 0 6px 18px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0.5); }
    50% { box-shadow: 0 6px 18px rgba(37,211,102,0.5), 0 0 0 10px rgba(37,211,102,0); }
}

/* ===== TOAST NOTIFICATION ===== */
.aria-toast {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%) translateY(20px);
    background: var(--blue-dark);
    color: var(--white);
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 14px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
    z-index: 999;
}

.aria-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 560px) {
    .aria-toast { bottom: 80px; font-size: 13px; padding: 12px 16px; }
}
.product-item, .market-card, .gallery-item, .about-card, .stat-card {
    transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s cubic-bezier(.22,1,.36,1);
}

/* ===== PRODUCT LIGHTBOX ===== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,10,20,0.92);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease;
}

.lightbox-overlay.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 88vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: lightboxZoom .25s ease;
}

@keyframes lightboxZoom {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px; right: 20px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: white;
    border: none;
    font-size: 30px;
    cursor: pointer;
    transition: background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-caption {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    max-width: 80vw;
}

.lightbox-counter {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 560px) {
    .lightbox-nav { width: 42px; height: 42px; font-size: 24px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; }
    .lightbox-caption { bottom: 16px; font-size: 13px; }
}