/* Подключение шрифта Red October */
@font-face {
    font-family: 'Red October';
    src: url('fonts/Red October.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Reset and base styles */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0a0a0a;
    background-image: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 199px,
        #1a1a1a 199px,
        #1a1a1a 200px
    );
    color: #f0f0f0;
    line-height: 1;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    overflow-x: hidden;
}

/* Ссылки по умолчанию */
a {
    text-decoration: none;
    color: inherit;
}

/* КРАСНЫЙ ЦВЕТ - основной акцент */
.red-text {
    color: #ff0000;
}

/* Header styles */
.header {
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 40px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header-link {
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
    text-decoration: none;
}

.header-link:hover {
    color: #ff0000;
}

.marquee {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    min-width: 0;
    color: #aaa;
    font-size: inherit;
    letter-spacing: inherit;
    mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.marquee-track {
    display: inline-block;
    white-space: nowrap;
    animation: marqueeScroll 40s linear infinite;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.search-icon {
    color: #aaa;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.search-icon:hover {
    color: #ff0000;
}

/* Логотип OVERDOSED с ссылкой */
.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo-link {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.02);
}

.logo {
    font-family: 'Red October', 'Inter', sans-serif;
    font-size: 60px;
    font-weight: 400;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    color: #f0f0f0;
    transition: text-shadow 0.3s ease, letter-spacing 0.3s ease;
}

.logo-link:hover .logo {
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
    letter-spacing: 9px;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff0000, transparent);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.logo-link:hover .logo::after {
    opacity: 0.8;
    width: 250px;
    background: linear-gradient(90deg, transparent, #ff0000, #ff0000, transparent);
}

/* Навигационная строка */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 10px;
}

.nav-link {
    color: #aaa;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
}

.nav-text {
    transition: color 0.3s;
}

.nav-link:hover .nav-text {
    color: #ff0000;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: #ff0000;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Main content styles */
.main-content {
    margin-bottom: 80px;
}

.product-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}

.product-title-section {
    text-align: center;
    margin-bottom: 40px;
}

.product-title {
    font-size: clamp(24px, 4vw, 48px);
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    overflow-wrap: break-word;
}

.availability {
    font-size: 38px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #aaa;
    line-height: 1.3;
}

.av-line-1 {
    display: block;
    font-size: 44px;
    margin-bottom: 6px;
    margin-left: -20px;
}

.av-line-2 {
    display: block;
    font-size: 28px;
    letter-spacing: 3px;
    margin-left: 40px;
}

/* XXX с ГОРИЗОНТАЛЬНЫМИ полосками */
.xxx-above-image {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    position: relative;
}

.horizontal-line {
    width: 100px;
    height: 1px;
    background-color: #555;
}

.xxx-title-above {
    font-size: 36px;
    letter-spacing: 10px;
    text-transform: uppercase;
    color: #ff0000;
    margin: 0;
}

/* Ссылка для главного изображения */
.product-image-link {
    display: block;
    text-decoration: none;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.product-image-link:hover {
    transform: scale(1.01);
}

/* Стили для главного квадратного изображения продукта */
.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    background-color: #11111100;
    border: 0.1px solid #22222200;
    perspective: 1200px;
}

.main-product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.15s ease-out;
    display: block;
    transform-style: preserve-3d;
    transform: scale(1.05) rotateX(0deg) rotateY(0deg);
}

.image-fallback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #444;
    font-size: 18px;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: none;
}

/* Если изображение не загрузилось, показываем fallback */
.product-image:has(img:not([src])) .image-fallback,
.product-image img[src=""] + .image-fallback {
    display: block;
}

/* Divider styles */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
    margin: 50px 0;
}

.divider-line {
    width: 100px;
    height: 1px;
    background-color: #333;
}

/* Products section */
.products-section {
    margin-top: 60px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.section-line {
    width: 100px;
    height: 1px;
    background-color: #333;
}

.section-title {
    font-size: 20px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #aaa;
    font-weight: 400;
}

/* Ссылки для карточек продуктов */
.product-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.product-link:hover {
    transform: translateY(-5px);
}

/* Стили для карточек продуктов */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.product-card {
    display: flex;
    flex-direction: column;
}

.product-image-container {
    width: 100%;
    aspect-ratio: 3 / 4;
    position: relative;
    overflow: hidden;
    background-color: #111111;
    border: 1px solid #222;
    margin-bottom: 15px;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.product-link:hover .product-img {
    transform: scale(1.08);
}

.image-fallback-small {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #444;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    display: none;
}

.product-image-container:has(img:not([src])) .image-fallback-small,
.product-image-container img[src=""] + .image-fallback-small {
    display: block;
}

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-top: 1px solid #333;
    padding-top: 12px;
}

.product-name {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    max-width: 70%;
}

.product-price {
    font-size: 14px;
    color: #aaa;
    letter-spacing: 0.5px;
}

/* Footer styles */
.footer {
    border-top: 1px solid #333;
    padding-top: 40px;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 20px;
    padding: 0 38px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-link {
    color: #aaa;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
}

.footer-link:hover {
    color: #ff0000;
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: #ff0000;
    transition: width 0.3s;
}

.footer-link:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 30px;
}

.social-link {
    color: #aaa;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.social-link:hover {
    color: #ff0000;
}

.social-link-faded {
    opacity: 0.4 !important;
    animation: none !important;
}

.social-link-faded:hover {
    opacity: 0.8 !important;
}

/* Copyright */
.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 11px;
    color: #666;
    letter-spacing: 1px;
}

/* ===== LANGUAGE SELECTOR MODAL ===== */
.lang-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lang-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lang-modal {
    background: #111;
    border: 1px solid #333;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lang-modal-overlay.active .lang-modal {
    transform: scale(1);
}

.lang-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.lang-modal-title {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #aaa;
    font-weight: 400;
}

.lang-modal-close {
    background: none;
    border: none;
    color: #666;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0 5px;
}

.lang-modal-close:hover {
    color: #ff0000;
}

.lang-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.lang-item {
    background: transparent;
    border: 1px solid #333;
    color: #aaa;
    padding: 14px 20px;
    font-size: 13px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-align: left;
}

.lang-item:hover {
    border-color: #ff0000;
    color: #f0f0f0;
}

.lang-item.active {
    background: #ff0000;
    border-color: #ff0000;
    color: #fff;
}

/* ===== ANIMATIONS ===== */

/* Fade in animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Pulsing effect for red text */
@keyframes redPulse {
    0%, 100% {
        color: #ff0000;
        text-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
    }
    50% {
        color: #ff3333;
        text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    }
}

/* Glow effect */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
    }
}

/* Subtle scale animation */
@keyframes subtleScale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Line animation */
@keyframes expandLine {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100px;
        opacity: 1;
    }
}

/* Apply animations */
.header {
    animation: fadeInUp 0.8s ease-out;
}

.logo {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.main-nav {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.nav-link {
    animation: fadeIn 0.6s ease-out backwards;
}

.nav-link:nth-child(1) { animation-delay: 0.4s; }
.nav-link:nth-child(2) { animation-delay: 0.5s; }
.nav-link:nth-child(3) { animation-delay: 0.6s; }
.nav-link:nth-child(4) { animation-delay: 0.7s; }

.product-title-section {
    animation: fadeInUp 1s ease-out 0.5s both;
}

.product-title {
    animation: fadeIn 1.2s ease-out 0.6s both;
}

.availability {
    animation: fadeIn 1.2s ease-out 0.8s both;
}

.red-text {
    animation: redPulse 3s ease-in-out infinite;
}

.xxx-title-above {
}

.xxx-above-image {
    animation: fadeInUp 1s ease-out 1s both;
}

.product-image-link {
    animation: fadeInUp 1.2s ease-out 1.1s both;
}

.section-header {
    animation: fadeInUp 0.8s ease-out;
}

.section-line {
    animation: expandLine 0.8s ease-out;
}

.section-header .section-line:last-child {
    animation-delay: 0.2s;
}

.section-title {
    animation: fadeIn 0.8s ease-out 0.1s both;
}

.product-card {
    animation: fadeInUp 0.8s ease-out backwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }

.product-image-container {
    transition: transform 0.6s ease, box-shadow 0.6s ease;
    animation: glowPulse 4s ease-in-out infinite;
}

.product-link:hover .product-image-container {
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
}

.product-name {
    animation: fadeIn 0.8s ease-out 0.8s both;
}

.product-price {
    animation: slideInRight 0.8s ease-out 1s both;
}

.footer {
    animation: fadeInUp 1s ease-out;
    margin-top: 100px;
}

.footer-link {
    animation: fadeIn 0.6s ease-out backwards;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-link:hover {
    transform: translateY(-2px);
}

.footer-link:nth-child(1) { animation-delay: 0.1s; }
.footer-link:nth-child(2) { animation-delay: 0.2s; }
.footer-link:nth-child(3) { animation-delay: 0.3s; }
.footer-link:nth-child(4) { animation-delay: 0.4s; }
.footer-link:nth-child(5) { animation-delay: 0.5s; }
.footer-link:nth-child(6) { animation-delay: 0.6s; }

.social-link {
    animation: fadeIn 0.6s ease-out backwards;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-link:nth-child(1) { animation-delay: 0.7s; }
.social-link:nth-child(2) { animation-delay: 0.8s; }

/* Responsive styles */
@media (max-width: 1200px) {
    .logo {
        font-size: 55px;
        letter-spacing: 6px;
    }
    
    .logo-link:hover .logo {
        letter-spacing: 7px;
    }
    
    .logo::after {
        width: 180px;
    }
    
    .logo-link:hover .logo::after {
        width: 220px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        max-width: 800px;
    }
    
    .product-image-container {
        aspect-ratio: 4 / 5;
    }
}

@media (max-width: 1024px) {
    .logo {
        font-size: 45px;
        letter-spacing: 5px;
    }
    
    .logo-link:hover .logo {
        letter-spacing: 6px;
    }
    
    .logo::after {
        width: 160px;
    }
    
    .logo-link:hover .logo::after {
        width: 190px;
    }
    
    .main-nav {
        gap: 30px;
    }
    
    .product-title {
        font-size: 42px;
    }
    
    .xxx-title-above {
        font-size: 32px;
        letter-spacing: 8px;
    }
    
    .horizontal-line {
        width: 80px;
    }
    
    .product-image-link {
        max-width: 700px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .nav-link {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .logo {
        font-size: 38px;
        letter-spacing: 4px;
    }
    
    .logo-link:hover .logo {
        letter-spacing: 5px;
    }
    
    .logo::after {
        width: 140px;
    }
    
    .logo-link:hover .logo::after {
        width: 170px;
    }
    
    .main-nav {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .product-title {
        font-size: 32px;
        letter-spacing: 3px;
    }
    
    .xxx-title-above {
        font-size: 24px;
        letter-spacing: 6px;
    }
    
    .availability {
        font-size: 28px;
    }
    
    .av-line-1 {
        font-size: 32px;
        margin-left: -10px;
    }
    
    .av-line-2 {
        font-size: 22px;
        margin-left: 20px;
    }
    
    .xxx-above-image {
        gap: 20px;
        margin: 30px 0;
    }
    
    .horizontal-line {
        width: 60px;
    }
    
    .product-image-link {
        max-width: 500px;
    }
    
    .divider {
        gap: 60px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 400px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        padding: 0 10px;
    }
    
    .footer-links, .social-links {
        justify-content: center;
    }

    .footer-links {
        gap: 20px;
    }

    .footer-link {
        font-size: 11px;
        letter-spacing: 0.5px;
    }
    
}

@media (max-width: 480px) {
    .logo {
        font-size: 30px;
        letter-spacing: 3px;
    }
    
    .logo-link:hover .logo {
        letter-spacing: 4px;
    }
    
    .logo::after {
        width: 120px;
    }
    
    .logo-link:hover .logo::after {
        width: 150px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .xxx-title-above {
        font-size: 20px;
        letter-spacing: 4px;
    }
    
    .availability {
        font-size: 22px;
        letter-spacing: 2px;
    }
    
    .av-line-1 {
        font-size: 26px;
        margin-left: 0;
    }
    
    .av-line-2 {
        font-size: 18px;
        margin-left: 10px;
    }
    
    .xxx-above-image {
        gap: 15px;
    }
    
    .horizontal-line {
        width: 40px;
    }
    
    .product-image-link {
        max-width: 350px;
    }
    
    .divider {
        gap: 40px;
    }
    
    .divider-line {
        width: 60px;
    }
    
    .product-name {
        font-size: 13px;
    }
    
    .product-price {
        font-size: 13px;
    }
    
    
    .nav-link {
        font-size: 9px;
    }
    
    .main-nav {
        gap: 10px;
    }
    
    .lang-grid {
        grid-template-columns: 1fr;
    }
    .lang-modal {
        padding: 25px;
    }
}

@media (max-width: 360px) {
    .lang-modal {
        padding: 20px;
    }
    .lang-item {
        padding: 12px 16px;
        font-size: 12px;
    }
}