:root {
    --bg: #09090b;
    --card: #141417;
    --card-hover: #1c1c21;
    --text: #fafafa;
    --muted: #a1a1aa;
    --gold: #eab308;
    --gold-light: #facc15;
    --gold-hover: #ca8a04;
    --border: #27272a;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; */
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

.page-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

/* Шапка */
header {
    background: rgba(9, 9, 11, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    line-height: 0;
    max-width: min(100%, 360px);
}

.logo img {
    display: block;
    width: auto;
    height: 58px;
    max-width: 100%;
    object-fit: contain;
}

.search-box {
    flex: 1;
    max-width: 420px;
}

.search-box input {
    width: 100%;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: var(--gold);
}

/* Головний екран */
.hero {
    padding: 42px 0 28px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(234, 179, 8, 0.12);
    color: var(--gold-light);
    border: 1px solid rgba(234, 179, 8, 0.35);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}

.hero h1 {
    font-size: 32px;
    margin-bottom: 12px;
    line-height: 1.25;
}

.hero p {
    color: var(--muted);
    max-width: 680px;
    margin: 0 auto;
    font-size: 16px;
}

/* Фільтри категорій */
.categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 28px 0;
}

.cat-btn {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 9px 16px;
    border-radius: 22px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
    /* font-weight: 500; */
}

.cat-btn.active,
.cat-btn:hover {
    background: var(--gold);
    color: #09090b;
    border-color: var(--gold);
    /* font-weight: 700; */
}

.cat-btn.active{
    box-shadow: 0 0 10px var(--gold);
    /* text-shadow: 0 0 2px #09090b; */
}

/* Сітка брендів */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 20px;
    margin-bottom: 52px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.2s;
}

.card:hover {
    background: var(--card-hover);
    border-color: rgba(234, 179, 8, 0.45);
    /* transform: translateY(-2px); */
    transform: scale(1.02);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
}

.brand-city {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.promo-pill {
    background: rgba(234, 179, 8, 0.14);
    color: var(--gold-light);
    border: 1px solid rgba(234, 179, 8, 0.35);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    white-space: nowrap;
}

.brand-desc {
    font-size: 14px;
    color: #d4d4d8;
    margin-bottom: 14px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.tag {
    background: #09090b;
    color: var(--muted);
    font-size: 12px;
    padding: 4px 9px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.card-actions {
    display: flex;
    gap: 10px;
}

.btn-primary {
    flex: 1;
    background: var(--gold);
    color: #09090b;
    border: none;
    padding: 11px 14px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    transition: 0.2s;
}

.btn-primary:hover {
    background: var(--gold-light);
}

.btn-code {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    padding: 11px 14px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-code:hover {
    background: rgba(234, 179, 8, 0.12);
}

/* Модальне вікно */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal {
    background: var(--card);
    border: 1px solid rgba(234, 179, 8, 0.4);
    border-radius: 16px;
    max-width: 440px;
    width: 100%;
    padding: 26px;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 24px;
    cursor: pointer;
}

.code-box {
    background: #09090b;
    border: 2px dashed var(--gold);
    border-radius: 10px;
    padding: 14px;
    margin: 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.code-val {
    font-family: monospace;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--gold-light);
    margin: 0 auto;
}

.copy-btn {
    background: var(--gold);
    color: #09090b;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: var(--gold-light);
}

/* Блок для брендів */
.cta-box {
    background: linear-gradient(135deg, #18181b, #09090b);
    border: 1px solid rgba(234, 179, 8, 0.35);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    margin-bottom: 48px;
}

.cta-box h2 {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--gold-light);
}

.cta-box p {
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 18px;
    font-size: 15px;
}

/* Внутрішні сторінки (about, privacy, contacts) */
.page-main {
    flex: 1;
    padding: 40px 0;
}

.content-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
}

.content-box h1 {
    font-size: 28px;
    margin-bottom: 16px;
}

.content-box h2 {
    font-size: 20px;
    margin: 24px 0 10px;
    color: var(--gold-light);
}

.content-box p {
    color: #d4d4d8;
    margin-bottom: 14px;
}

.content-box ul {
    margin-left: 20px;
    color: #d4d4d8;
    margin-bottom: 16px;
}

.content-box li {
    margin-bottom: 6px;
}

.contact-card {
    background: #09090b;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 24px;
}

.contact-card strong {
    color: var(--gold-light);
    display: block;
    margin-bottom: 4px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #09090b;
    color: var(--text);
    font-size: 14px;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--gold);
}

.contact-form button {
    background: var(--gold);
    color: #09090b;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    align-self: flex-start;
}

.contact-form button:hover {
    background: var(--gold-light);
}

/* Футер */
footer {
    background: #050507;
    border-top: 1px solid var(--border);
    padding: 32px 0;
    color: var(--muted);
    font-size: 14px;
    margin-top: auto;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    justify-content: center;
}

.footer-links a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

footer p {
    text-align: center;
}

/* стрілка вгору ---------------------------------------------  */
.arrow-wrap {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    position: fixed;
    bottom: 55px;
    right: 40px;
    cursor: pointer;
    background-color: #444;
    transition: .5s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}


.arrow-wrap:hover {
    opacity: 1 !important;
}

.arrow-icon {
    width: 30%;
    margin: auto;
}

/*---------------------------------------------------------*/

/* Адаптив під планшети та смартфони */
@media (max-width: 768px) {
    .hero {
        padding: 28px 0 20px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 14px;
    }

    .content-box {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .logo {
        justify-content: center;
        align-self: center;
        max-width: 290px;
    }

    .logo img {
        height: auto;
        max-height: 54px;
        width: 100%;
    }

    .search-box {
        max-width: 100%;
    }

    .categories {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .cat-btn {
        white-space: nowrap;
        padding: 8px 14px;
        font-size: 13px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 16px;
    }

    .card-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-code {
        width: 100%;
        text-align: center;
    }

    .code-box {
        flex-direction: column;
        text-align: center;
    }

    .copy-btn {
        width: 100%;
    }

    .cta-box {
        padding: 20px 16px;
    }

    .cta-box h2 {
        font-size: 19px;
    }

    .contact-form button {
        width: 100%;
    }
}


.logo-img {
    height: 38px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
    border-radius: 6px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
    color: var(--muted);
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--gold-light);
}

.seo-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 40px;
}

.seo-section h2 {
    font-size: 21px;
    color: var(--gold-light);
    margin-bottom: 12px;
}

.seo-section h3 {
    font-size: 17px;
    color: var(--text);
    margin: 18px 0 8px;
}

.seo-section p {
    color: #d4d4d8;
    font-size: 14.5px;
    margin-bottom: 12px;
}

.faq-item {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 12px;
}