/* Базовые стили */
:root {
    --text-color: #1D1D1B;
    --text-gray: #61615c;
    --bg-gray: #f4f4f4;
    --accent-color: #000;
    --font-body: serif;
}

html {
    font-family: var(--font-body);
    color: var(--text-color);
    font-size: 18px;
    line-height: 1.5;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
}

p, h1, h2, h3, ul {
    margin-top: 0;
    margin-bottom: 0;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1100px;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: auto;
    margin-right: auto;
}

.content {
    padding-top: 80px;
    padding-right: 60px;
    padding-bottom: 80px;
}

@media (max-width: 980px) {
    .content {
        padding-top: 40px;
        padding-right: 20px;
        padding-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .content {
        padding-right: 0;
    }
}

@media (max-width: 440px) {
    .container {
        padding-left: 8px;
        padding-right: 8px;
    }
}

.section-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 28px;
}

/* Секция 1: Hero */
.promo-section__container {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-top: 20px;
    padding-bottom: 60px;
}

.promo-section__title {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 60px;
}

.promo-section__description {
    font-size: 24px;
    font-weight: 600;
}

.promo-section__image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 92%;
    height: 530px;
    overflow: hidden;
}

.promo-section__image-wrapper img {
    object-fit: cover;
    min-width: 100%;
    min-height: 100%;
}

@media (max-width: 980px) {
    .promo-section__container {
        gap: 24px;
    }

    .promo-section__content {
        padding-right: 40px;
    }
}

@media (max-width: 768px) {
    .promo-section__container {
        flex-direction: column;
    }

    .promo-section__image-wrapper {
        margin-left: -20px;
        margin-right: -20px;
        height: 360px;
        width: calc(100% + 40px);
    }
}

/* Секция 2: Welcome */
.welcome-section {
    background-color: #efefef;
    padding-top: 80px;
    padding-bottom: 80px;
}

.welcome-section__container {
    padding-right: 60px;
}

.welcome-section__content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.welcome-section__text {
    margin-bottom: 40px;
}

.welcome-section__image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 440px;
    width: 200%;
    height: 440px;
    overflow: hidden;
}

.welcome-section__image-wrapper img {
    object-fit: cover;
    min-width: 100%;
    min-height: 100%;
}

@media (max-width: 980px) {
    .welcome-section__container {
        padding-right: 40px;
    }

    .welcome-section__content {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .welcome-section__container {
        padding-right: 0;
    }

    .welcome-section__content {
        flex-direction: column;
    }

    .welcome-section__image-wrapper {
        margin-left: -20px;
        margin-right: -20px;
        height: 360px;
        max-width: none;
        width: calc(100% + 40px);
    }
}

/* Карточки преимуществ */
.feature-card__wrapper {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.feature-card {
    position: relative;
    border: 2px solid #ccc;
    padding: 45px 18px 18px;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -1px;
    right: -1px;
    height: 8px;
    background: var(--text-color);
}

.feature-card__header {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
}

.feature-card__icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--text-color);
    width: 54px;
    height: 54px;
    border-radius: 50%;
}

.feature-card__icon-box img {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .feature-card__wrapper {
        gap: 32px;
    }
}

/* Секция 3: Catalog */
.catalog-section__container {
    padding-top: 18px;
    padding-bottom: 18px;
}

.catalog-section__content {
    display: flex;
    align-items: center;
    gap: 60px;
    color: var(--text-gray);
}

.catalog-section__title {
    color: var(--text-color);
    font-size: 36px;
    margin-bottom: 20px;
}

.catalog-section__intro {
    margin-bottom: 28px;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 25px;
}

.category-list__item img {
    min-width: 54px;
    width: 54px;
    height: 54px;
}

.category-list__name {
    margin-top: 8px;
    font-size: 22px;
    font-weight: 600;
}

.catalog-section__image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 440px;
    width: 200%;
    height: 820px;
    overflow: hidden;
}

.catalog-section__image-wrapper img {
    object-fit: cover;
    min-width: 100%;
    min-height: 100%;
}

@media (max-width: 980px) {
    
    .catalog-section__content {
        gap: 24px;
    }
}

@media (max-width: 768px) { 

    .catalog-section__content {
        flex-direction: column;
    }

    .catalog-section__image-wrapper {
        margin-left: -20px;
        margin-right: -20px;
        height: 360px;
        max-width: none;
        width: calc(100% + 40px);
    }
}

/* --- Секция Местоположения --- */
.location-section__info {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.location-section__label {
    font-weight: 600;
    font-size: 22px;
    margin-bottom: 10px;
}

.location-section__address {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.location-section__subtext {
    color: var(--text-gray);
    max-width: 400px;
}

.location-section__map-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    width: 200%;
    height: 600px;
    overflow: hidden;
}

.location-section__map-wrapper img {
    object-fit: cover;
    min-width: 100%;
    min-height: 100%;
}

@media (max-width: 768px) { 

    .location-section__info {
        flex-direction: column;
    }

    .location-section__map-wrapper {
        max-width: none;
        width: 100%;
        height: 100%;
    }
}

/* Сетка графика работы */
.schedule-grid {
    display: flex;
    background-color: #f0ecec; 
}

.schedule-grid__item {
    flex: 1;
    padding: 18px;
}

.schedule-grid__item:first-child {
    border-right: 1px solid #d6d0d0;
}

.schedule-grid__item:last-child {
    border-left: 1px solid #d6d0d0;
}

.schedule-grid__days {
    font-size: 28px;
    color: #61615C;
}

.schedule-grid__time {
    font-size: 22px;
    color: #61615C;
    margin-top: 8px;
}

@media (max-width: 540px) { 

    .schedule-grid {
        flex-direction: column;
    }

    .schedule-grid__item:first-child {
        border-right: none;
        border-bottom: 1px solid #d6d0d0;
    }

    .schedule-grid__item:last-child {
        border-left: none;
        border-top: 1px solid #d6d0d0;
    }
}

/* --- Секция Выгоды --- */
.benefits-section {
    color: var(--text-gray);
}

.benefits-section .section-title {
    color: var(--text-color);
}

.benefits-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.benefits-grid__side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 100px; /* Расстояние между блоками справа */
}

.benefits-grid__center {
    flex: 0 0 33%;
}

.benefits-diagram {
    display: flex;
    align-items: center;
    position: relative;
    height: 340px;
}

.benefits-diagram__part-wrapper {
    position: absolute;
}

.benefits-diagram__part {
    position: relative;
}

.benefits-diagram__image {
    width: 100%;
    height: auto;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
}

.benefits-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.benefits-item__image {
    width: 20px;
    height: 20px;
    background-color: var(--text-color);
    padding: 6px;
}

.benefits-mobile {
    display: none;
}

@media (max-width: 768px) { 
    .benefits-mobile {
        display: block;
    }

    .benefits-grid {
        display: none;
    }

    .benefits-diagram {
        margin-top: 20px;
        margin-bottom: 40px;
        justify-content: center
    }

    .benefits-diagram__part-wrapper, 
    .benefits-diagram__part,
    .benefits-diagram__part > img:first-child {
        height: 100%;
    }
}

/* Элементы выгоды */
.benefit-item {
    text-align: left;
}

.benefit-item__title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.benefits-diagram__icon {
    position: absolute;
    width: 28px;
    height: 28px;
}

.benefits-diagram__icon--1 {
    top: 41%;
    left: 13%;
}

.benefits-diagram__icon--2 {
    top: 22%;
    right: 22%;
}

.benefits-diagram__icon--3 {
    bottom: 16%;
    right: 34%;
}

/* --- Секция Доставки --- */
.delivery-section {
    background-color: #efefef;
}

.delivery-section__container {
    padding-top: 80px;
    padding-bottom: 80px;
    margin-right: 60px;
}

.delivery-section__subtitle {
    margin-bottom: 20px;
}

.delivery-steps {
    display: flex;
    gap: 20px;
}

.delivery-steps__item {
    flex: 1;
}

.delivery-steps__icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0eaea;
    width: 100%;
    height: 54px;
    border-radius: 216px;
    margin-bottom: 20px;
}

.delivery-steps__icon-wrapper img {
    width: 27px;
    height: 27px;
}

.delivery-steps__name {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

@media (max-width: 768px) { 
    .delivery-steps {
        flex-direction: column;
        gap: 12px;
    }

    .delivery-steps__item {
        display: grid;
        grid-template-columns: 54px 1fr;
        gap: 16px;
    }

    .delivery-steps__icon-wrapper {
        width: 54px;
        height: 100%;
        margin-bottom: 0;
    }
}

/* --- Секция Почему Мы --- */
.why-us-section__container {
    padding-top: 80px;
    padding-bottom: 80px;
    margin-right: 60px;
    color: var(--text-gray);
}

.why-us-section__container .section-title {
    color: var(--text-color);
}

.why-us-section__intro {
    border-left: 2px solid var(--text-color);
    padding-left: 28px;
    margin-bottom: 20px;
}

.why-us-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.why-us-cards__item {
    position: relative;
    border: 2px solid #d6d0d0;
    padding-left: 36px;
    padding-top: 18px;
    padding-right: 18px;
    padding-bottom: 18px;
}

.why-us-cards__item::before {
    position: absolute;
    top: 0;
    left: 0;
    content: '';
    background-color: #f0eaea;
    width: 18px;
    height: 100%;
}

.why-us-cards__item--offset-1 { margin-left: 0; }
.why-us-cards__item--offset-2 { margin-left: 27px; }
.why-us-cards__item--offset-3 { margin-left: 54px; }

.why-us-cards__title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* --- Секция Контактов --- */
.contact-section {
    background-image: url('/images/contact.jpg');
    background-position: center;
    background-size: cover;
}

.contact-section__overlay {
    background: rgba(255, 255, 255, 0.9);
}

.contact-section__container {
    padding-top: 80px;
    padding-bottom: 80px;
    margin-right: 60px;
    color: var(--text-gray);
}

.contact-section__container .section-title {
    color: var(--text-color);
}

.contact-section__subtitle {
    margin-bottom: 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-grid__box {
    background-color: #fff;
    padding: 18px;
    border: 2px solid #d6d0d0;
    border-left: 8px solid var(--text-color);
}

.contact-grid__label {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-grid__value {
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-color);
}

.contact-section__footer-text {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 440px) {
    .contact-grid__box {
        padding: 8px 12px;
    }

    .contact-grid__label {
        font-size: 22px;
        font-weight: 600;
        margin-bottom: 10px;
    }
}

/* --- Официальная информация --- */

.legal-section__container {
    padding-top: 80px;
    padding-bottom: 80px;
    margin-right: 60px;
    color: var(--text-gray);
}

.legal-section__container .section-title {
    color: var(--text-color);
}

.legal-table {
    border: 1px solid #eee;
}

.legal-table__row {
    display: grid;
    grid-template-columns: 40% 60%;
}

.legal-table__row:nth-child(even) {
    background: #f2f2f2;
}

.legal-table__cell {
    padding: 10px 18px;
}

.legal-table__cell:first-child {
    font-weight: 600;
    color: #555;
    border-right: 1px solid #eee;
}

.legal-banner {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: #dadad7;
    padding: 24px 18px;
    margin-top: 24px;
    color: var(--text-color);
}

.legal-banner img {
    margin-top: 4px;
    width: 18px;
    min-width: 18px;
    height: 18px;
}

@media (max-width: 540px) {
    .legal-banner {
        gap: 12px;
    }

    .legal-table__cell {
        padding: 8px 12px;
    }
}

@media (max-width: 440px) {

    .legal-table__cell {
        font-size: 14px;
    }
}

/* --- Галерея в футере --- */
.final-cta {
    background-color: #efefef;
}

.final-cta__container {
    padding-top: 80px;
    padding-bottom: 80px;
    margin-right: 60px;
}

.final-cta__title {
    font-size: 90px;
    margin-bottom: 36px;
}

.final-cta__text {
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .final-cta__title {
        font-size: 48px;
    }
}

.grid-wrapper {
    display: grid;
    grid-gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-auto-rows: 300px;
    grid-auto-flow: dense;
}

.grid-wrapper .wide {
    grid-column: span 2;
}
.grid-wrapper .tall {
    grid-row: span 2;
}
.grid-wrapper .big {
    grid-column: span 2;
    grid-row: span 2;
}

.grid__card {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    overflow: hidden;
}

.grid__card > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 540px) {
    .grid-wrapper {
        grid-template-columns: 1fr;
        grid-gap: 12px;
        grid-auto-rows: 180px;
    }
    
    .grid-wrapper .wide,
    .grid-wrapper .tall,
    .grid-wrapper .big {
        grid-column: span 1;
        grid-row: span 1;
    }
}