/*
Theme Name: Dysky Theme
Theme URI: https://dysky.com.ua/
Author: Dysky
Author URI: https://dysky.com.ua/
Description: Кастомна тема для каталогу автомобільних дисків
Version: 1.0
Text Domain: dysky-theme
*/

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #111;
    background: #f5f5f5;
}

.container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header,
.site-footer {
    background: #111;
    color: #fff;
    padding: 20px 0;
}

.logo {
    color: #fff;
    text-decoration: none;
    font-size: 28px;
    font-weight: 700;
}

.site-main {
    padding: 40px 0;
}

.page-title {
    margin: 0 0 30px;
    font-size: 38px;
}

.wheels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.wheel-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.wheel-card__image {
    display: block;
    background: #fff;
    aspect-ratio: 1 / 1;
}

.wheel-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.wheel-card__no-image {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    color: #777;
}

.wheel-card__content {
    padding: 18px;
}

.wheel-card__title {
    margin: 0 0 14px;
    font-size: 22px;
    line-height: 1.3;
}

.wheel-card__title a {
    color: #111;
    text-decoration: none;
}

.wheel-card__meta {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 15px;
}

.wheel-card__price {
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 700;
}

.wheel-card__button {
    display: inline-block;
    padding: 12px 18px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
}

.pagination {
    margin-top: 30px;
}

@media (max-width: 991px) {
    .wheels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .wheels-grid {
        grid-template-columns: 1fr;
    }
}

.wheel-single__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.wheel-single__image,
.wheel-single__no-image {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-single__image img {
    width: 100%;
    height: auto;
    display: block;
}

.wheel-single__title {
    margin: 0 0 20px;
    font-size: 36px;
    line-height: 1.2;
}

.wheel-single__meta {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 17px;
}

.wheel-single__price {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
}

.wheel-single__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.wheel-single__button {
    display: inline-block;
    padding: 14px 20px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
}

.wheel-single__button--light {
    background: #e9e9e9;
    color: #111;
}

.wheel-single__content {
    margin-top: 40px;
    background: #fff;
    border-radius: 14px;
    padding: 24px;
}

@media (max-width: 900px) {
    .wheel-single__grid {
        grid-template-columns: 1fr;
    }
}

.site-header {
    background: #111;
    color: #fff;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    color: #fff;
    text-decoration: none;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-menu li {
    margin: 0;
    padding: 0;
}

.main-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.2s ease;
}

.main-menu a:hover {
    opacity: 0.75;
}

@media (max-width: 768px) {
    .site-header__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-menu {
        flex-wrap: wrap;
        gap: 14px;
    }
}

.hero {
    padding: 70px 0;
    background: linear-gradient(135deg, #111 0%, #2a2a2a 100%);
    color: #fff;
}

.hero__inner {
    max-width: 760px;
}

.hero__title {
    margin: 0 0 20px;
    font-size: 52px;
    line-height: 1.1;
}

.hero__text {
    margin: 0 0 28px;
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
}

.hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero__button {
    display: inline-block;
    padding: 14px 22px;
    background: #fff;
    color: #111;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
}

.hero__button--light {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.home-section {
    padding: 60px 0;
}

.home-section--white {
    background: #fff;
}

.section-title {
    margin: 0 0 28px;
    font-size: 34px;
}

.home-section__bottom {
    margin-top: 28px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-card {
    background: #f7f7f7;
    border-radius: 14px;
    padding: 24px;
}

.step-card__num {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 16px;
}

@media (max-width: 900px) {
    .hero__title {
        font-size: 40px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 50px 0;
    }

    .hero__title {
        font-size: 32px;
    }

    .hero__text {
        font-size: 17px;
    }
}

.contacts-page {
    padding: 20px 0 60px;
}

.contacts-page__header {
    margin-bottom: 32px;
}

.contacts-page__title {
    margin: 0 0 14px;
    font-size: 42px;
    line-height: 1.15;
}

.contacts-page__text {
    margin: 0;
    max-width: 760px;
    font-size: 18px;
    line-height: 1.6;
    color: #444;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.contacts-card,
.contacts-form-block {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.contacts-card h2,
.contacts-form-block h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.contacts-card p,
.contacts-form-block p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.contacts-card a {
    color: #111;
    text-decoration: none;
    font-weight: 600;
}

.contacts-card a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .contacts-page__title {
        font-size: 32px;
    }
}

.site-footer {
    background: #111;
    color: #fff;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 28px;
}

.site-footer__logo {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 14px;
}

.site-footer__title {
    margin: 0 0 14px;
    font-size: 20px;
}

.site-footer__text {
    margin: 0;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

.footer-menu,
.site-footer__contacts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.footer-menu a,
.site-footer__contacts a {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
}

.footer-menu a:hover,
.site-footer__contacts a:hover {
    opacity: 1;
    text-decoration: underline;
}

.site-footer__bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.site-footer__bottom p {
    margin: 0;
}

@media (max-width: 900px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
    }
}