/* ==================== MAIN CONTENT CONTAINER ==================== */
.home-page > * {
    position: relative;
    z-index: 1;
}

/* ==================== STATISTICS & INFO SECTION ==================== */
.stats-wrapper {
    max-width: 84.375rem;
    margin: 0 auto;
    padding: 3.75rem 1.25rem;
    position: relative;
}

.stats-content {
    position: relative;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.info-text {
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.7;
    max-width: 37.9375rem;    
    line-height: 1.6;
}

.stats-grid {
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin: 3.75rem 0;
    width:100%;
}
.stat-img {
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
}
.stat-item {
    padding: 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    justify-content: flex-start;
    flex-shrink: 0;
    flex:1;
}

.stat-number {
    color: #ffffff;
    text-align: center;
    font-family: "Unbounded", sans-serif;
    font-size: 4.5rem;
    font-weight: 300;
    text-transform: uppercase;
    line-height: 1;
}

.stat-description {
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.7;
}

.stats-image {
    border-radius: 1.25rem;
    object-fit: cover;
}

.stats-image--large {
    width: 32.3125rem;
    height: 19.5625rem;   
    right: 1.25rem;
    top: 0;
}

.stats-gallery {
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.stats-gallery__image {
    border-radius: 1.25rem;
    flex-shrink: 0;
    width: calc(33.333% - 0.875rem);
    min-width: 18.75rem;
    height: 18.75rem;
    object-fit: cover;
}

/* ==================== PRODUCTS SECTION ==================== */
.products-block {
    box-sizing: border-box;
    max-width: 84.375rem;
    margin: 0 auto;
    width: 100%;
    padding: 3.75rem 1.25rem;
}

.products-block,
.products-block * {
    box-sizing: border-box;
}

.products-block__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    align-self: stretch;
    flex-shrink: 0;
    position: relative;
    margin-bottom: 2rem;
}

.products-block__title {
    color: #ffffff;
    color: #FFF;
    font-family: Unbounded;
    font-size: 2rem;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}

.products-block__link {
    color: #ffc75b;
    text-align: left;
    font-family: "Unbounded", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    text-decoration: underline;
    position: relative;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.products-block__link:hover {
    opacity: 0.8;
}

.products-block__grid {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    align-self: stretch;
    flex-shrink: 0;
    position: relative;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Product Card стили перенесены в components.css для единообразия */

/* ==================== BEER BANNERS SECTION ==================== */
.beer-banners {
    max-width: 84.375rem;
    margin: 0 auto;
    padding: 3.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.beer-banner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
}

.beer-banner--reverse {
    flex-direction: row-reverse;
}

.beer-banner__content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    flex: 1;
    max-width: 39.0625rem;
}

.beer-banner__text-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    align-self: stretch;
}

.beer-banner__title {
    color: #ffffff;
    text-align: center;
    font-family: "Unbounded", sans-serif;
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0;
    line-height: 1.2;
}

.beer-banner__description {
    color: #ffffff;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.7;
    margin: 0;
    line-height: 1.5;
}

/* Используем .btn .btn-primary .btn-pill из components.css */
.beer-banner__button {
    /* Дополнительные специфичные стили если нужны */
}

.beer-banner__image {
    border-radius: 1.25rem;
    flex-shrink: 0;
    flex: 1;
    max-width: 39.0625rem;
    height: 24.5rem;
    object-fit: cover;
}

/* ==================== CONTACT FORM SECTION ==================== */
.contact-form-block {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3rem auto;
}
.contact-form {   
    position: relative;
    display: flex;
    justify-content: start;
    flex:1;
}
.contact-form-img {
    margin-right: -2rem;
}
.contact-form__container {
    background: #282828;
    border-radius: 1.5rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 32.375rem;
}

.contact-form__title {
    color: #ffffff;
    text-align: center;
    font-family: "Unbounded", sans-serif;
    font-size: 2rem;
    font-weight: 300;
    margin: 0;
}

.contact-form__fields {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: center;
    align-self: stretch;
}

.contact-form__inputs {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
    justify-content: flex-start;
    align-self: stretch;
}

.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    justify-content: flex-start;
    align-self: stretch;
}

.contact-form__label-wrapper {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
    align-self: stretch;
}

.contact-form__label {
    color: #a6a6a6;
    font-family: "Montserrat", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
}

.contact-form__input,
.contact-form__textarea {
    background: #1e1e1e;
    border-radius: 1rem;
    border: 1px solid transparent;
    padding: 1rem;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    align-self: stretch;
    width: 100%;
    transition: border-color 0.2s ease;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
    outline: none;
    border-color: #ffc75b;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
    color: #a6a6a6;
}

.contact-form__textarea {
    height: 9.4375rem;
    resize: vertical;
    min-height: 6rem;
}

.contact-form__checkbox-wrapper {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
}

.contact-form__checkbox {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: #ffc75b;
}

.contact-form__checkbox-label {
    color: #a6a6a6;
    font-family: "Montserrat", sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.contact-form__submit {
    background: #ffc75b;
    border-radius: 8.375rem;
    padding: 1.25rem 2.75rem;
    color: #1e1e1e;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    align-self: stretch;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    border: none;
}

.contact-form__submit:hover {
    background: #ffb84d;
    transform: translateY(-0.125rem);
}

.contact-form__submit-text {
    display: block;
    text-align: center;
}

/* ==================== RESPONSIVE STYLES ==================== */

/* Tablets (768px - 1350px) */
@media (min-width: 48rem) and (max-width: 84.375rem) {
    .stats-image--large {
        width: 25rem;
        height: 15.625rem;
        right: 1.875rem;
    }

    .stats-gallery__image {
        width: calc(50% - 0.625rem);
        min-width: 15.625rem;
    }

    .products-block__grid {
        justify-content: flex-start;
    }

    .product-card {
        width: calc(33.333% - 0.875rem);
        min-width: 18.875rem;
    }

    .beer-banner__content,
    .beer-banner__image {
        max-width: 45%;
    }

    .beer-banner__title {
        font-size: 2rem;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 47.9375rem) {
    .stats-wrapper {
        padding: 2.5rem 1.25rem;
    }

    .info-text {
        margin-bottom: 2.5rem;
    }

    .stats-grid {
        flex-direction: column;
        gap: 1.25rem;
        margin-bottom: 2.5rem;
    }

    .stat-item {
        width: 100%;
    }

    .stat-number {
        font-size: 3rem;
    }

    .stats-image--large {
        position: static;
        width: 100%;
        max-width: 100%;
        height: auto;
        margin-bottom: 2.5rem;
    }

    .stats-gallery {
        flex-direction: column;
    }

    .stats-gallery__image {
        width: 100%;
        min-width: auto;
        height: 12.5rem;
    }

    .products-block {
        padding: 2.5rem 1.25rem;
    }

    .products-block__grid {
        flex-direction: column;
        align-items: stretch;
    }

    .product-card {
        width: 100%;
        min-width: auto;
    }

    .beer-banners {
        padding: 2.5rem 1.25rem;
    }

    .beer-banner,
    .beer-banner--reverse {
        flex-direction: column;
    }

    .beer-banner__content {
        width: 100%;
        max-width: 100%;
    }

    .beer-banner__title {
        font-size: 1.75rem;
    }

    .beer-banner__image {
        width: 100%;
        max-width: 100%;
        height: 15.625rem;
    }

    .contact-form {
        padding: 2.5rem 1.25rem 5rem;
    }

    .contact-form__container {
        max-width: 100%;
    }

    .contact-form__title {
        font-size: 1.5rem;
    }
}

/* Product card image placeholder */
.product-card__image--placeholder {
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    min-height: 300px;
}

.product-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.product-card__title a:hover {
    color: #ffc75b;
}


@media (min-width: 768px) and (max-width: 1350px) {
    .stat-img {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .stats-content {
        flex-direction: column;
    }
    .stats-grid {
        margin:0 0 2.5rem 0;
    }
    .contact-form-img {
         margin-right: 0; 
    }
    .contact-form {
         padding: 0; 
    }
    .contact-grid {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .contact-form-img {
        display:none;
    }
}