@font-face {
    font-family: 'TT Drugs';
    src: url('fonts/TT_Drugs_Trial_Regular.otf') format('opentype');
    font-weight: 400;
}

@font-face {
    font-family: 'TT Drugs';
    src: url('fonts/TT_Drugs_Trial_Black.otf') format('opentype');
    font-weight: 600;
}

@font-face {
    font-family: 'TT Drugs';
    src: url('fonts/TT_Drugs_Trial_Bold.otf') format('opentype');
    font-weight: 700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'TT Drugs', serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 12000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: center;
    /* height: 120px; */
    height: clamp(80px, 9vw, 120px); 
    column-gap: 0;
}


.logo {
    text-decoration: none;
}

.logo img { 
    height: clamp(40px, 8.5vw, 10vh); 
    width: auto; 
    aspect-ratio: 22/9;
}

.header-nav{
    align-items: center;
    display: grid;
    grid-column: span 6;
    grid-template-columns: repeat(6, 1fr);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    flex: 1;
    justify-content: center;
}

.nav-links li { list-style: none; margin: 0; padding: 0; }
.header-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 1.1rem;
    line-height: 1.2;
    text-transform: lowercase;
}

.header-contacts a {
    text-align: right;
    color: #1f2937;
    text-decoration: none;
    opacity: 0.9;
}

.header-contacts a:hover {
    color: #d97706;
    opacity: 1;
}

.header-burger {
    display: none;
    width: 40px;
    height: 28px;
    position: relative;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.display-off {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
    
.burger-line {
    display: block;
    width: 100%;
    padding-top: 4px;
    height: 2px;
    background-color: black;
    position: absolute;
    left: 0;
    transition: transform 0.3s ease;
}

.first {
    top: 0;
}

.second {
    top: 44%;
}

.third {
    bottom: 0;
}

.display-off {
    display: none;
}

.lang-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: 20px;
}

/* Language Dropdown Styles */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a5568;
    min-width: 80px;
}

.lang-dropdown-btn:hover {
    background: #f8fafc;
    border-color: #d1d5db;
}

.lang-dropdown-btn:focus {
    outline: none;
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.globe-icon {
    font-size: 16px;
    line-height: 1;
}

.lang-text {
    font-weight: 400;
    color: #1f2937;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
    color: #6b7280;
}

.lang-dropdown-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    margin-top: 4px;
}

.lang-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a5568;
}

.lang-item:hover {
    background: #f8fafc;
}

.lang-item.active {
    background: #d97706;
    color: white;
}

.lang-item.active .globe-icon {
    filter: brightness(0) invert(1);
}

.lang-item:first-child {
    border-radius: 8px 8px 0 0;
}

.lang-item:last-child {
    border-radius: 0 0 8px 8px;
}

.lang-item:only-child {
    border-radius: 8px;
}

/* Mobile Language Switcher */
.lang-switcher-mobile {
    display: none;
    gap: 8px;
    align-items: center;
}

/* Show/hide based on screen size */
@media (max-width: 1200px) {
    .lang-dropdown {
        display: none;
    }
    
    .lang-switcher-mobile {
        display: flex;
    }
}

@media (min-width: 1201px) {
    .lang-dropdown {
        display: inline-block;
    }
    
    .lang-switcher-mobile {
        display: none;
    }
}

.nav-links a {
    text-decoration: none;
    color: #4a5568;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #d97706;
}

/* Header grid */
.nav-item { display: flex; align-items: center; justify-content: center; }
.logo-slot { justify-content: flex-start;}
.contacts-slot { justify-content: flex-end; }
.nav-link {
    text-decoration: none;
    color: #4a5568;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}
.nav-link:hover { color: #d97706; }
.header-contacts { white-space: nowrap; }

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    padding: 120px 20px 80px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.hero p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.primary-btn {
    background: white;
    color: #d97706;
    padding: 18px 36px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.secondary-btn {
    background: transparent;
    color: white;
    padding: 18px 36px;
    border: 2px solid white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background: white;
    color: #d97706;
    transform: translateY(-3px);
}

/* Cars Section */
.cars-section {
    padding: 50px 20px;
    background: #f8fafc;
}

/* Spare parts section */
.spares {
    padding: 50px 20px;
    background: #ffffff;
}

.spares-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: center;
}

.spares-copy {
    max-width: 720px;
    margin: 10px auto 0;
    text-align: center;
    color: #374151;
    font-size: 1.25rem;
    line-height: 1.8;
}

.spares-text a {
    display: inline-block;
    margin-top: 14px;
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(217,119,6,0.25);
    transition: transform 0.2s ease;
}

.spares-text a:hover { transform: translateY(-2px); }

.spares-actions {
    display: flex;
    justify-content: center;
    width: 100%;
}

.spares-media {
    width: 100%;
    height: 260px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(217,119,6,0.15), rgba(251,191,36,0.15)),
        url('repair.png') center/contain no-repeat;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* Philosophy Section */
.philosophy {
    padding: 50px 20px;
    background: radial-gradient(1200px 600px at 50% -100px, rgba(217,119,6,0.12), transparent 60%), #ffffff;
    position: relative;
}

/* Section-wide faded background image */
.philosophy::before {
content: "";
position: absolute;
inset: 0;
background: url('Picture2.jpg') center/cover no-repeat;
opacity: 0.35;
filter: grayscale(85%) contrast(1.05);
pointer-events: none;
z-index: 0;
}

.philosophy .container { position: relative; z-index: 1; }

.philosophy .section-title {
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.philosophy .section-subtitle {
    margin-bottom: 34px;
    color: #6b7280;
    font-size: 1.6rem;
}

.philosophy-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid rgba(229,231,235,0.9);
    border-radius: 22px;
    padding: 36px 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.10);
    overflow: hidden;
}

.philosophy-content::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(217,119,6,0.35), rgba(251,191,36,0.25));
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

/* убираем верхний оверлей контейнера, чтобы не перекрывать фон */
.philosophy-content::after { display: none; }

/* Vintage postcard frame */
.philosophy-content .postcard {
    position: relative;
    background: #fffef9;
    border: 1px solid #d9c6a3;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08) inset, 0 10px 24px rgba(0,0,0,0.06);
    backdrop-filter: blur(1px);
    z-index: 1;
}

/* возвращаем открытке бумажный фон как было */
.philosophy-content .postcard::before { content: none; }

.philosophy-content .postcard > * { position: relative; z-index: 1; }

.philosophy-content .corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2px solid #b89863;
    opacity: 0.9;
    z-index: 2;
}
.philosophy-content .corner.tl { top: 12px; left: 12px; border-right: none; border-bottom: none; border-radius: 10px 0 0 0; }
.philosophy-content .corner.tr { top: 12px; right: 12px; border-left: none; border-bottom: none; border-radius: 0 10px 0 0; }
.philosophy-content .corner.bl { bottom: 12px; left: 12px; border-right: none; border-top: none; border-radius: 0 0 0 10px; }
.philosophy-content .corner.br { bottom: 12px; right: 12px; border-left: none; border-top: none; border-radius: 0 0 10px 0; }

.postcard-stamp {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 54px;
    height: 54px;
    background: radial-gradient(circle at 30% 30%, #fff 0%, #fbfaf5 60%, #f3e8d1 100%);
    border: 1px solid #d9c6a3;
    clip-path: polygon(5% 0, 95% 0, 100% 5%, 100% 95%, 95% 100%, 5% 100%, 0 95%, 0 5%);
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #8a7450;
    z-index: 3;
    opacity: 0.95;
}

/* remove flourishes */
.philosophy-content .flourish-top,
.philosophy-content .flourish-bottom { display: none; }

.philosophy .section-title { color: #2b2b2b; }
.philosophy .section-subtitle { color: #2b2b2b; }

.philosophy-content p,
.philosophy-content li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
    white-space: pre-line;
}

.philosophy-content .intro {
    font-size: 1.25rem;
    color: #1f2937;
    position: relative;
    z-index: 1;
}

.philosophy-quote { display: none; }

.quote-mark {
    font-size: 2rem;
    line-height: 1;
    color: #d97706;
}

.philosophy-points { display: none; }

.point-icon {
    color: #cddc39;
    margin-right: 8px;
}

/* Restoration Section Styles */
.restoration-step {
    margin-bottom: 20px;
    /* padding-bottom: 30px; */
    /* border-bottom: 1px solid rgba(217,119,6,0.15); */
}

.restoration-step:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.restoration-step h3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;

    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 700;
}

.step-icon {
    width: 38px;
    height: 38px;
    color: #d97706;
    filter: invert(48%) sepia(68%) saturate(746%) hue-rotate(355deg) brightness(91%) contrast(96%);
}

.restoration-step p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #374151;
    padding-left: 47px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.section-subtitle {
    font-size: 1.6rem;
    text-align: center;
    color: #2b2b2b;
    margin-bottom: 30px;
}

.nextp2 {
    margin-bottom: 0;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.car-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="%23fff" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><circle cx="10" cy="10" r="6" fill="%23000"/><path d="m18 18-4-4" stroke="%23fff" stroke-width="3"/><path d="M10 7v6" stroke="%23fff" stroke-width="2.5" stroke-linecap="round"/><path d="M7 10h6" stroke="%23fff" stroke-width="2.5" stroke-linecap="round"/></svg>') 16 16, zoom-in;
}

.car-card:hover {
    /* transform: translateY(-10px); */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.car-image {
    position: relative;
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
}

.card-btn{
    position: absolute;
    top: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;    
    -webkit-tap-highlight-color: transparent;
}

.card-btn.prev {
    left: 5px; 
    transform: translateY(-50%);
}

.card-btn.next {
    right: 5px;
    transform: translateY(-50%);
}

/* .card-btn:hover{
    transform: scale(1.2) translateY(-40%);
} */
@media (hover: hover) {
    .card-btn:hover {
        transform: scale(1.2) translateY(-40%);
    }
}
  
@media (hover: none) {
    .card-btn:active {
        transform: scale(1.2) translateY(-40%);
    }
}

.card-dots{
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.card-dot{
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-dot.active {
    background: #fbbf24;
    transform: scale(1.2);
}

/* .card-dot:hover {
    background: rgba(255, 255, 255, 0.8);
} */

.car-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.car-info {
    padding: 25px;
}

.car-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.car-year {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 15px;
}

.car-specs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.car-spec {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #718096;
    font-size: 0.9rem;
}

.car-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d97706;
    margin-bottom: 16px;
}

.car-button {
    width: 100%;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.car-button:hover {
    transform: scale(1.02);
}

/* Family Garage Carousel Section */
.family-garage {
    background: #f8fafc;
    padding: 150px 0 20px 0;
    /* margin-top: 30px; */
}

.nextp{
    white-space: pre-line;
    font-size: 1.3rem;
    margin-bottom: 50px;
}


/* Offset for fixed header */
#home {
    scroll-margin-top: 70px;
}

.carousel-container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 0;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 60px 40px 40px;
    text-align: center;
}

.slide-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide-content p {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin: 0;
}

/* Carousel Navigation */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #fbbf24;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Footer */
.footer {
    background: #1a202c;
    color: white;
    padding: 60px 20px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* блоки по центру */
    align-items: flex-start;
    gap: clamp(24px, 6vw, 80px); /* равномерные отступы между секциями */
}

.footer-section {
    flex: 0 1 320px; /* одинаковая визуальная ширина секций */
    min-width: 260px;
    max-width: 360px;
    text-align: center; /* возврат к предыдущему варианту */
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fbbf24;
}

.footer-section p {
    line-height: 1.8;
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-section a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #fbbf24;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    justify-content: center;
    width: 100%;
}

.social-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* color: #cddc39;
    background: #0f172a; */
    border: 1px solid #334155;
    /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    will-change: transform, box-shadow, background, color, filter; */
}

.social-icon:hover {
    transform: translateY(-1px) scale(1.01);
    background: #1b2540; /* lighter slate */
    color: #e6f28a; /* lighter lime */
    filter: brightness(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(205, 220, 57, 0.15);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #374151;
    text-align: center;
    opacity: 0.7;
}

/* Modal Styles */
/* Скрываем header при открытых модальных окнах */
body:has(.fs-overlay) {
    overflow: hidden;
}

body:has(.fs-overlay) .header {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 38px;
    line-height: 1;
    color: #1f2937;
    cursor: pointer;
    z-index: 10;
    display: grid;
    place-items: center;
    transform-origin: center;
    transition: box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    user-select: none;
}

.close-btn:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

/* Fullscreen viewer */
.fs-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 16000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fs-frame {
    aspect-ratio: 19 / 9;
    width: 100vw;
    height: 100vh;
    background: #000;
    position: relative;
    overflow: hidden;
    max-width: 100vw;
    max-height: 100vh;
}

.fs-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fs-btn {
    position: fixed;
    top: 20%;
    bottom: 20%;
    width: 25%;
    background: transparent;
    border: none;
    color: transparent;
    cursor: pointer;
    z-index: 16001;
    /* transition: background 0.3s ease; */
    /* font-size: 0;
    line-height: 0; */
    /* text-indent: -9999px; */
    outline: none;
    -webkit-tap-highlight-color: transparent;
    /* user-select: none; */
    /* -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none; */
    /* visibility: hidden; */
}

.fs-btn.prev { left: 0; }
.fs-btn.next { right: 0; }
.fs-close { 
    position: fixed; 
    top: 20px; 
    right: 24px; 
    z-index: 16002;
}

/* .fs-btn:hover {
    background: transparent;
} */

/* .fs-btn:hover::after { */
    /* content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px; */
    /* border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    font-weight: bold; */
    /* visibility: hidden; */
/* } */

/* .fs-btn.prev:hover::after {
    left: 10%;
    content: '❮';
}

.fs-btn.next:hover::after {
    right: 10%;
    content: '❯';
} */

.favorite-btn {
    background: white;
    border: 2px solid #e2e8f0;
    color: #4a5568;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.favorite-btn:hover {
    border-color: #d97706;
    color: #d97706;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideDown {
    from { 
        opacity: 1;
        transform: translateY(0);
    }
    to { 
        opacity: 0;
        transform: translateY(50px);
    }
}


/* Mobile Responsive */
/* Language Switcher Styles */


.lang-btn {
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: transparent;
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: #f8fafc;
    border-color: #d1d5db;
}

.lang-btn.active {
    background: #d97706;
    color: white;
    border-color: #d97706;
}

@media (max-width: 1200px) {
    .header-burger {
        display: block;
        position: fixed;
        z-index: 12002;
        top: 20px;
        right: 20px;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease, visibility 0.3s;
    }

    .header-nav {
        margin: 0;
        width: 100vw;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        background: #0E1D28;
        backdrop-filter: blur(10px);
        z-index: 12001;
        display: flex; /* меняем на flex для вертикального меню */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        transform: translateX(100%);
        transition: 0.3s transform ease;
    }

    .contacts-slot {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }

    .logo-slot {
        grid-column: span 7;
    }

    .lang-switcher {
        margin-left: 0;
    }

    .lang-switcher-mobile {
        margin-left: 0;
    }

    .header-nav-active{
        transform: translateX(0%);
    }
    
    .nav-item, .header-contacts{
        width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
        text-transform: uppercase;
    }

    .nav-link {
        font-size: 24px;
        line-height: 38px;
        color: white;
        transition: color 0.3s ease;
    }

    .nav-link:hover {
        color: #fbbf24;
    }

    .header-contacts {
        margin-top: 30px;
        text-transform: lowercase;
    }

    .header-contacts a {
        color: white !important;
        text-align: center;
        font-size: 24px;
        opacity: 1;
        transition: color 0.3s ease;
    }
    
    .header-contacts a:hover {
        color: #fbbf24 !important;
    }

    .nav-item:last-child {
        margin-bottom: 0;
    }

    .header-nav-close-line:first-child {
        transform: translateY(-50%) rotate(45deg);
    }

    .header-nav-close-line:last-child{
        transform: translateY(-50%) rotate(-45deg);
    }

    .header-nav-close{
        width: 40px;
        height: 40px;
        position: absolute;
        top: 13.5px;
        right: 35px;
        z-index: 12003;
    }

    .header-nav-close-line{
        width: 100%;
        display: block;
        height: 2px;
        background-color: white;
        position: absolute;
        transform: translateY(100%);
        top: 50%;
    }
}

/* Гарантируем видимость миниатюр на невысоких экранах */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cars-section {
        padding: 50px 20px;
    }

    .spares {
        padding: 50px 20px;
    }

    .family-garage {
        padding: 100px 0px 10px 0px;
    }

    .philosophy {
        padding: 10px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .section-subtitle {
        font-size: 1.4rem;
    }

    .nextp {
        font-size: 1.1rem;
    }

    .philosophy .section-subtitle{
        font-size: 1.4rem;
    }
 

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .header-burger {
        top: 25px;
    }
    
    .header-nav-close {
        top: 25px;
        right: 25px;
    }

    .cars-grid {
        grid-template-columns: 1fr;
    }

    .slide-content {
        padding: 30px 20px 40px;
    }

    .slide-content h2 {
        font-size: 1.5rem;
    }

    .slide-content p, .philosophy-content .intro, .restoration-step p, .spares-copy {
        font-size: 0.9rem;
    }

    .restoration-step p {
        padding-left: 0;
    }


    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .fs-close {
        width: 30px;
        height: 30px;
        font-size: 28px;
        top: 10px;
        right: 10px;
    }

    .close-btn {
        width: 30px;
        height: 30px;
        font-size: 28px;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 768px) {
    .fs-overlay {
        padding: 0;
        display: block;
    }

    .fs-frame {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        aspect-ratio: auto;
        position: fixed;
        top: 0;
        left: 0;
    }

    .fs-image {
        width: 100vw;
        height: 100vh;
        object-fit: contain;
        position: fixed;
        top: 0;
        left: 0;
    }

    .fs-btn:hover::after {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .fs-btn.prev:hover::after {
        left: 5%;
    }

    .fs-btn.next:hover::after {
        right: 5%;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
    }
}