/*
Theme Name: Daesh Mot - Байки из Японии
Theme URI: 
Author: 
Description: Тема для сайта "Даёшь Мот" - доставка мотоциклов из Японии
Version: 1.0
Text Domain: daeshmot
*/

:root {
    --bg: #0a0a0a;
    --text: #ffffff;
    --muted: #b8b8b8;
    --brand: #ffc300;
    --card: #111111;
    --line: #242424;
    --ok: #2ad07b;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.65 system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

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

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px;
}

/* Header */
.site-header {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: space-between;
    padding: 0px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand img {
    width: 98px;
    height: 98px;
    object-fit: contain;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--brand);
    color: #000;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 800;
    letter-spacing: .2px;
    transition: opacity 0.3s, transform 0.3s;
}

.cta:hover {
    opacity: .95;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 28px;
    align-items: center;
    padding: 36px 0;
}

.hero h1 {
    font-size: 44px;
    line-height: 1.08;
    margin: 6px 0 14px;
}

.hero p {
    color: var(--muted);
    margin: 0 0 18px;
}

.panel {
    background: var(--card);
    border: 1px solid var(--line);
    padding: 22px;
    border-radius: 14px;
}

.steps {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.step {
    background: #0e0e0e;
    border: 1px solid var(--line);
    padding: 16px;
    border-radius: 12px;
}

.badge {
    display: inline-block;
    background: var(--brand);
    color: #000;
    font-weight: 900;
    border-radius: 999px;
    padding: 2px 10px;
    margin-right: 8px;
}

/* Motorcycles Grid */
.motorcycles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.motorcycle-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #0b0b0b;
    cursor: pointer;
    transition: transform 0.3s;
}

.motorcycle-card:hover {
    transform: translateY(-5px);
}

.motorcycle-thumbnail {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.motorcycle-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.motorcycle-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 75%, rgba(0, 0, 0, 0.95) 100%);
    padding: 20px 15px 15px;
    color: #fff;
}

.motorcycle-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.2;
}

.motorcycle-details {
    font-size: 14px;
    color: #ffeaa7;
    display: grid;
    /*grid-template-columns: repeat(3, 1fr);*/
    grid-template-columns: 40% 30% 30%;
    gap: 5px;
}

.video-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.video-icon svg {
    width: 18px;
    height: 18px;
    fill: white;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #0b0b0b;
}

.card img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}

.caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .86));
    padding: 12px 14px;
    color: #fff;
    font-weight: 800;
}

.caption small {
    display: block;
    font-weight: 600;
    color: #ffeaa7;
}

.grid-cta {
    display: flex;
    justify-content: center;
    margin: 18px 0 0;
}

/* Contacts */
.contacts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 30px 0;
}

.contact-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
}

/* Footer */
.site-footer {
    color: #9a9a9a;
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--line);
    margin-top: 24px;
}

.yellow {
    color: var(--brand);
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .contacts {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 34px;
    }
    
    .motorcycles-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 600px) {
    .site-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .motorcycles-grid {
        grid-template-columns: 1fr;
    }
}


/* Стили для галереи мотоциклов */
.motorcycle-gallery-link {
    display: block;
    position: relative;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

.motorcycle-gallery-link:hover {
    color: inherit;
    text-decoration: none;
}

.motorcycle-thumbnail {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 14px;
}

.motorcycle-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.motorcycle-card:hover .motorcycle-thumbnail img {
    transform: scale(1.05);
}

.motorcycle-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 75%, rgba(0, 0, 0, 0.95) 100%);
    padding: 20px 15px 15px;
    color: #fff;
}

.motorcycle-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.2;
}

.motorcycle-details div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    backdrop-filter: blur(2px);
}

.video-icon svg {
    width: 18px;
    height: 18px;
    fill: white;
}

/* Стили для Fancybox */
.fancybox__container {
    --fancybox-bg: rgba(10, 10, 10, 0.95);
    --fancybox-color: var(--text);
}

.fancybox__toolbar {
    --fancybox-accent-color: var(--brand);
    --fancybox-color: var(--text);
}

.fancybox__caption {
    --fancybox-accent-color: var(--brand);
}

.fancybox__nav .f-button {
    --fancybox-color: var(--text);
    --f-button-bg: rgba(10, 10, 10, 0.7);
}

.fancybox__nav .f-button:hover {
    --f-button-bg: var(--brand);
    --f-button-color: #000;
}

/* Адаптивность для галереи */
@media (max-width: 768px) {
    .motorcycle-details {
        grid-template-columns: 1fr;
        font-size: 13px;
    }
    
    .motorcycle-title {
        font-size: 16px;
    }
}


.site-footer {
    display: grid;
    place-items: center;
    gap: 20px;
    text-align: center;
}

/* Десктоп и планшет */
@media (min-width: 769px) {
    .site-footer {
        grid-template-columns: 1fr auto 1fr;
        place-items: center;
    }
    
    .site-footer > div:first-child {
        grid-column: 1;
        justify-self: end;
    }
    
    .site-footer > div:last-child {
        grid-column: 3;
        justify-self: start;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .site-footer {
        grid-template-columns: 1fr;
        place-items: center;
    }
    
    .site-footer > div:first-child,
    .site-footer > div:last-child {
        grid-column: 1;
        justify-self: center;
    }
}

@media (max-width: 480px) {
    .motorcycle-details {
        grid-template-columns: 1fr;
        font-size: 13px;
    }
}
