/*
Theme Name: Bravix Paint Shop
Theme URI: https://bravix.example.com
Description: Стартовая тема лендинга магазина красок Bravix.
Author: Bravix
Version: 1.2.1
Text Domain: bravix-paint-shop
*/

:root {
    --bravix-dark: #232f3e;
    --bravix-accent: #febd69;
    --bravix-text: #1c1b1b;
    --bravix-muted: #777;
    --bravix-gap: 20px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
    color: var(--bravix-muted);
    background: #fff;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.site-header {
    background: var(--bravix-dark);
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.bravix-header__inner {
    display: flex;
    align-items: center;
    min-height: 86px;
    gap: 28px;
}

.bravix-header__logo {
    display: flex;
    align-items: center;
    min-width: 210px;
}

.bravix-header__logo img {
    display: block;
    max-width: 210px;
    max-height: 54px;
    width: auto;
    height: auto;
}

.bravix-header__phone {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-left: auto;
}

.bravix-header__label {
    color: rgba(255, 255, 255, .68);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bravix-header__phone a {
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    white-space: nowrap;
}

.bravix-header__phone a:hover {
    color: var(--bravix-accent);
}

.bravix-header__socials {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bravix-header__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.bravix-header__social:hover,
.bravix-header__social:focus-visible {
    border-color: var(--bravix-accent);
    color: var(--bravix-text);
    background: var(--bravix-accent);
}

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

.bravix-container {
    width: min(1700px, calc(100% - 30px));
    margin-inline: auto;
}

.bravix-call-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 3px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: #20b15a;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .24);
    transition: transform .2s ease, background-color .2s ease;
}

.bravix-call-button svg {
    width: 28px;
    height: 28px;
}

.bravix-call-button:hover,
.bravix-call-button:focus-visible {
    color: #fff;
    background: #168c46;
    transform: scale(1.06);
}

.container.bravix-products {
    width: 100%;
    max-width: 1700px;
    padding-inline: 15px;
}

.bravix-hero {
    padding: 40px 0;
}

.bravix-hero__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--bravix-gap);
}

.bravix-hero__side {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--bravix-gap);
}

.bravix-hero__slide {
    min-height: 175px;
    overflow: hidden;
    border-radius: 10px;
    background-color: #f5f5f7;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.bravix-hero__slide--featured {
    min-height: 525px;
}

.bravix-hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 100%;
    padding: 42px;
    color: var(--bravix-text);
}

.bravix-hero__slide:not(.bravix-hero__slide--featured) .bravix-hero__content {
    padding: 26px 32px;
}

.bravix-hero__eyebrow {
    margin: 0 0 15px;
    color: #bf4800;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.bravix-hero h1 {
    max-width: 560px;
    margin: 0 0 18px;
    color: inherit;
    font-size: clamp(30px, 3.5vw, 46px);
    line-height: 1.2;
}

.bravix-hero__slide:not(.bravix-hero__slide--featured) h1 {
    font-size: clamp(22px, 2.2vw, 30px);
}

.bravix-hero__text {
    max-width: 520px;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.75;
}

.bravix-hero__button {
    display: inline-flex;
    margin-top: auto;
    padding: 12px 30px;
    border-radius: 100px;
    color: #fff;
    background: var(--bravix-dark);
    text-transform: uppercase;
    transition: background-color .2s ease, color .2s ease;
}

.bravix-hero__slide:hover .bravix-hero__button,
.bravix-hero__slide:focus-visible .bravix-hero__button {
    color: var(--bravix-text);
    background: var(--bravix-accent);
}

.bravix-benefits {
    padding: 34px 0;
    background: #f5f5f7;
}

.bravix-benefits__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
}

.bravix-benefit {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.bravix-benefit__icon {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--bravix-dark);
}

.bravix-benefit__icon svg {
    display: block;
    width: 38px;
    height: 38px;
}

.bravix-benefit__content h2 {
    margin: 0 0 3px;
    color: var(--bravix-text);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
}

.bravix-benefit__content p {
    margin: 0;
    color: var(--bravix-muted);
    font-size: 13px;
    line-height: 1.35;
}

.bravix-products {
    padding: 56px 0 72px;
    background: transparent;
}

.bravix-products .home-pjpular-product-content {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.bravix-products .home-pjpular-product-content-element {
    min-width: 0;
    width: auto;
    flex: none;
}

.bravix-contact-section {
    padding: 0 0 72px;
}

.bravix-contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 20px;
}

.bravix-contact__form-panel {
    padding: 40px;
    border-radius: 10px;
    color: #fff;
    background: var(--bravix-dark);
}

.bravix-contact__eyebrow {
    margin: 0 0 12px;
    color: var(--bravix-accent);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.bravix-contact__form-panel h2,
.bravix-contact__form-panel h3 {
    color: #fff;
}

.bravix-contact__form-panel h2 {
    max-width: 620px;
    margin: 0 0 14px;
    font-size: 32px;
    line-height: 1.25;
}

.bravix-contact__promo-text {
    max-width: 680px;
    color: rgba(255, 255, 255, .82);
    font-size: 16px;
    line-height: 1.6;
}

.bravix-contact__form-wrap {
    margin-top: 30px;
}

.bravix-contact__form-wrap h3 {
    margin: 0 0 16px;
    font-size: 22px;
    line-height: 1.3;
}

.bravix-contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.bravix-contact-form p {
    margin: 0;
}

.bravix-contact-form__full {
    grid-column: 1 / -1;
}

.bravix-contact-form label {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, .85);
    font-size: 13px;
}

.bravix-contact-form input,
.bravix-contact-form textarea {
    width: 100%;
    padding: 11px 13px;
    border: 0;
    border-radius: 8px;
    color: var(--bravix-text);
    background: #fff;
    font: inherit;
    font-size: 14px;
}

.bravix-contact-form textarea {
    min-height: 96px;
    resize: vertical;
}

.bravix-contact-form button {
    padding: 12px 30px;
    border: 0;
    border-radius: 100px;
    color: var(--bravix-text);
    background: var(--bravix-accent);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.bravix-contact-form button:hover {
    color: #fff;
    background: #151c25;
}

.bravix-contact__notice {
    margin: 20px 0 0;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--bravix-text);
    background: #fff;
    font-size: 14px;
}

.bravix-contact__notice--error {
    color: #9c251e;
}

.bravix-contact__info {
    padding: 30px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
}

.bravix-contact__info > h2 {
    margin: 0 0 22px;
    color: var(--bravix-text);
    font-size: 26px;
    line-height: 1.25;
}

.bravix-contact__item {
    padding: 16px 0;
    border-bottom: 1px solid rgba(28, 27, 27, .1);
}

.bravix-contact__item:first-child {
    padding-top: 0;
}

.bravix-contact__item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.bravix-contact__item h3 {
    margin: 0 0 5px;
    color: var(--bravix-text);
    font-size: 18px;
    line-height: 1.3;
}

.bravix-contact__item p {
    margin: 0;
    color: var(--bravix-muted);
    font-size: 14px;
    line-height: 1.5;
}

.bravix-contact__item a:hover {
    color: #bf4800;
}

@media (max-width: 900px) {
    .bravix-hero {
        padding: 40px 0;
    }

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

    .bravix-hero__slide--featured {
        min-height: 400px;
    }

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

    .bravix-benefits__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bravix-products .home-pjpular-product-content {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bravix-contact__form-panel {
        padding: 30px;
    }

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

@media (max-width: 600px) {
    .bravix-header__inner {
        min-height: 72px;
        gap: 14px;
    }

    .bravix-header__logo {
        min-width: 0;
        flex: 1 1 auto;
    }

    .bravix-header__logo img {
        max-width: 150px;
        max-height: 42px;
    }

    .bravix-header__phone {
        margin-left: 0;
    }

    .bravix-header__label {
        display: none;
    }

    .bravix-header__phone a {
        font-size: 14px;
    }

    .bravix-header__socials {
        gap: 4px;
    }

    .bravix-header__social {
        width: 30px;
        height: 30px;
        font-size: 9px;
    }

    .bravix-hero__content,
    .bravix-hero__slide:not(.bravix-hero__slide--featured) .bravix-hero__content {
        padding: 30px 24px;
    }

    .bravix-hero__slide--featured {
        min-height: 360px;
    }

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

    .bravix-benefits__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 14px;
    }

    .bravix-products {
        padding: 42px 0 52px;
    }

    .bravix-products .home-pjpular-product-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bravix-products .home-pjpular-product-content-element {
        width: 100%;
    }

    .bravix-contact__form-panel,
    .bravix-contact__info {
        padding: 24px;
    }

    .bravix-contact__form-panel h2 {
        font-size: 27px;
    }

    .bravix-contact-form {
        grid-template-columns: 1fr;
    }

    .bravix-contact-form__full {
        grid-column: auto;
    }
}

@media (max-width: 1200px) and (min-width: 901px) {
    .bravix-products .home-pjpular-product-content {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .bravix-container,
    .container.bravix-products {
        width: 100%;
        padding-inline: 12px;
    }

    .bravix-header__inner {
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .bravix-header__logo {
        flex: 1 1 100%;
    }

    .bravix-header__phone {
        flex: 1 1 auto;
    }

    .bravix-benefits__grid,
    .bravix-products .home-pjpular-product-content {
        grid-template-columns: 1fr;
    }

    .bravix-call-button {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
    }

    .bravix-call-button svg {
        width: 24px;
        height: 24px;
    }
}
