/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #264892;
    --secondary-color: #282D4F;
    --accent-color: #FF6B35;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #FFFFFF;
    --bg-gray: #F5F5F5;
    --border-color: #E0E0E0;
    
    /* Typography */
    --font-family: 'Mulish', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.5;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 64px;
    
    /* Transitions */
    --transition-base: 0.3s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header ===== */
.header {
    background: var(--bg-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.header__logo img {
    height: 50px;
    width: auto;
}

.header__menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.header__links {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.header__links a {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding: 8px 0;
}

.header__links a:hover {
    color: var(--primary-color);
}

.header__links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-base);
}

.header__links a:hover::after {
    width: 100%;
}

/* Language Switcher */
.header__lang {
    display: flex;
    gap: 8px;
    background: var(--bg-gray);
    padding: 4px;
    border-radius: 8px;
}

.header__lang-btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    border-radius: 6px;
    transition: all var(--transition-base);
}

.header__lang-btn:hover {
    color: var(--primary-color);
}

.header__lang-btn--active {
    background: var(--bg-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* Mobile Menu Burger */
.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.header__burger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--secondary-color);
    margin: 3px 0;
    transition: var(--transition-base);
    border-radius: 2px;
}

.header__burger--active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__burger--active span:nth-child(2) {
    opacity: 0;
}

.header__burger--active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(38, 72, 146, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.hero .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero__content {
    animation: fadeIn 1s ease;
    max-width: 800px;
}

.hero__title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
}

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

/* New Brand Highlight Style */
.brand-highlight {
    font-size: 1.8em; /* Significantly bigger */
    font-style: italic; /* Italic */
    color: var(--primary-color) !important; /* Blue */
    -webkit-text-stroke: 6px white; /* Thicker white outline */
    paint-order: stroke fill; /* Ensures stroke is drawn BEHIND the text fill */
    font-weight: 900; /* Extra bold */
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    margin-right: 10px; /* Space adjustment */
    margin-left: -5px; /* Optical alignment */
    /* Optional: drop shadow to make the white outline visible on light background */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.hero__subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.hero__image {
    display: none; /* Полностью скрываем изображение */
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all var(--transition-base);
    text-align: center;
    cursor: pointer;
}

.btn--primary {
    background: var(--primary-color);
    color: white;
}

.btn--primary:hover {
    background: #1e3a6f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn--secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn--large {
    padding: 16px 32px;
    font-size: 18px;
}

/* ===== Products Section ===== */
.products {
    padding: var(--spacing-xxl) 0;
    background: var(--bg-color);
}

.products__title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-xl);
}

/* ===== Tabs ===== */
.tabs__nav {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.tabs__btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    background: var(--bg-gray);
    border-radius: 8px;
    transition: all var(--transition-base);
    position: relative;
}

.tabs__btn:hover {
    color: var(--primary-color);
    background: #e8f0ff;
}

.tabs__btn--active {
    color: white;
    background: var(--primary-color);
}

.tabs__panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tabs__panel--active {
    display: block;
}

/* ===== Product Grid ===== */
.products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

/* ===== Product Card ===== */
.product-card {
    background: var(--bg-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-card__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--accent-color);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 1;
}

.product-card__image {
    height: 300px;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card__image img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    transition: transform var(--transition-base);
}

.product-card:hover .product-card__image img {
    transform: scale(1.1);
}

.product-card__content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-xs);
}

.product-card__price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    display: none; /* Скрыть цены */
}

.product-card__desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.product-card__actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: auto;
}

.product-card__actions .btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.modal--active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal__container {
    position: relative;
    background: var(--bg-color);
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 10;
}

.modal__close:hover {
    background: var(--primary-color);
}

.modal__close::before,
.modal__close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--text-color);
    transition: background var(--transition-base);
}

.modal__close:hover::before,
.modal__close:hover::after {
    background: white;
}

.modal__close::before {
    transform: rotate(45deg);
}

.modal__close::after {
    transform: rotate(-45deg);
}

.modal__content {
    padding: var(--spacing-xl);
}

/* ===== Footer ===== */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: var(--spacing-xxl);
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer__logo {
    height: 40px;
    width: auto;
    margin-bottom: var(--spacing-sm); 
}

.footer__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer__desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-xs);
}

.footer__link {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-sm);
    transition: color var(--transition-base);
}

.footer__link:hover {
    color: white;
}

.footer__social {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.footer__social a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.footer__social a.is-placeholder {
    pointer-events: none;
    cursor: default;
}

.footer__social a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer__social img {
    width: 20px;
    height: 20px;
}

.footer__kaspi img {
    height: 40px;
    width: auto;
}

.footer__bottom {
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer__policy {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: color var(--transition-base);
}

.footer__policy:hover {
    color: white;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero__title {
        font-size: 36px;
    }
    
    .hero__subtitle {
        font-size: 18px;
    }
    
    .products__grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Header Mobile */
    .header__burger {
        display: flex;
    }
    
    .header__menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: transform var(--transition-base);
    }
    
    .header__menu--active {
        transform: translateX(0);
    }
    
    .header__links {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-sm);
    }
    
    .header__links a {
        padding: var(--spacing-sm);
        width: 100%;
    }
    
    /* Hero Mobile */
    .hero {
        min-height: 100vh;
    }
    
    .hero .container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .hero__title {
        font-size: 28px;
    }
    
    .hero__subtitle {
        font-size: 16px;
    }
    
    .hero__image {
        display: none; /* Полностью скрываем изображение на мобильных */
    }
    
    /* Tabs Mobile */
    .tabs__nav {
        overflow-x: auto;
        justify-content: flex-start;
        flex-wrap: nowrap;
        padding-bottom: var(--spacing-sm);
    }
    
    .tabs__btn {
        white-space: nowrap;
    }
    
    /* Products Mobile */
    .products__grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer Mobile */
    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__social {
        justify-content: center;
    }
    
    /* Modal Mobile */
    .modal__container {
        width: 95%;
        max-height: 95vh;
        margin: 10px;
    }
    
    .modal__content {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 24px;
    }
    
    .btn--large {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .product-card__actions {
        flex-direction: column;
    }
    
    .product-card__actions .btn {
        width: 100%;
    }
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.hidden { display: none !important; }
.visible { display: block !important; }
