/* Header without line wrapping */

.site-header .header-inner {
    display: grid;
    min-height: var(--header-height);
    align-items: center;
    gap: 20px;
    grid-template-columns: minmax(150px, 190px) minmax(440px, 1fr) auto;
}

.site-header .site-logo {
    width: 180px;
}

.header-utilities {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
}

.header-socials {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-socials a {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    color: #dadbd8;
    transition:
        border-color 180ms ease,
        color 180ms ease,
        background-color 180ms ease;
}

.header-socials a:hover {
    border-color: var(--rose);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.header-socials svg,
.mobile-socials svg,
.footer-socials svg,
.contacts-social-links svg {
    width: 16px;
    height: 16px;
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-auth a {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 6px 8px;
    border: 1px solid transparent;
    color: #d9dad7;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.header-auth a:last-child {
    border-color: var(--border-dark);
}

.header-auth a:hover {
    border-color: var(--rose);
    color: #fff;
}

.mobile-auth {
    display: grid;
    gap: 7px;
    margin-top: 22px;
}

.mobile-auth a,
.mobile-auth button {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-dark);
    color: #fff;
    cursor: pointer;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.mobile-auth a:last-child {
    border-color: var(--wine);
    background: var(--wine);
}

.mobile-socials,
.footer-socials,
.contacts-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.mobile-socials {
    margin-top: 16px;
}

.mobile-socials a,
.footer-socials a,
.contacts-social-links a {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--border-dark);
    color: #fff;
}

.footer-socials {
    margin-top: 16px;
}

.footer-socials a {
    width: 34px;
    height: 34px;
}

.contacts-social-section {
    padding: 48px 0;
    background: var(--black-soft);
    color: #fff;
}

.contacts-social-section__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.contacts-social-section h2 {
    font-family: var(--font-heading);
    font-size: 28px;
}

.contacts-social-section p {
    margin-top: 5px;
    color: var(--text-light-muted);
    font-size: 11px;
}

.contacts-social-links a {
    width: 44px;
    height: 44px;
}

/* Dynamic homepage */

.homepage-portfolio-grid {
    display: grid;
    gap: 16px;
    margin-top: 36px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.homepage-work {
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--stone-light);
    box-shadow: 0 8px 24px rgba(13, 15, 14, 0.08);
}

.homepage-work__images {
    display: grid;
    height: 310px;
    grid-template-columns: 1fr 1fr;
}

.homepage-work figure {
    position: relative;
    overflow: hidden;
}

.homepage-work figure + figure {
    border-left: 1px solid rgba(255, 255, 255, 0.7);
}

.homepage-work img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.homepage-work figcaption {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 5px 8px;
    background: rgba(12, 13, 13, 0.82);
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.homepage-work__body {
    padding: 17px;
}

.homepage-work__body span {
    color: var(--wine);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.homepage-work__body h3 {
    margin-top: 6px;
    font-family: var(--font-heading);
    font-size: 18px;
}

.homepage-products {
    padding: 72px 0 80px;
    background: var(--stone);
}

.homepage-product-grid {
    display: grid;
    gap: 15px;
    margin-top: 36px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.homepage-product {
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--stone-light);
}

.homepage-product > a {
    display: block;
    height: 280px;
    overflow: hidden;
}

.homepage-product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

.homepage-product:hover img {
    transform: scale(1.03);
}

.homepage-product > div {
    padding: 17px;
}

.homepage-product span {
    color: var(--wine);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.homepage-product h3 {
    min-height: 46px;
    margin-top: 6px;
    font-size: 16px;
    line-height: 1.35;
}

.homepage-product strong {
    display: block;
    margin-top: 10px;
    font-size: 15px;
}

.homepage-product button {
    width: 100%;
    min-height: 40px;
    margin-top: 13px;
    border: 1px solid var(--wine);
    background: var(--wine);
    color: #fff;
    cursor: pointer;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.homepage-booking {
    padding: 65px 0;
    background: var(--graphite);
    color: #fff;
}

.homepage-booking__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;
}

.homepage-booking h2 {
    max-width: 720px;
    margin-top: 13px;
    font-family: var(--font-heading);
    font-size: clamp(34px, 3.8vw, 51px);
    line-height: 1.08;
}

.homepage-booking p:not(.section-label) {
    max-width: 620px;
    margin-top: 14px;
    color: var(--text-light-muted);
    font-size: 12px;
}

/* Settings screen */

.homepage-image-setting {
    display: grid;
    align-items: center;
    gap: 18px;
    margin-top: 20px;
    grid-template-columns: 220px 1fr;
}

.homepage-image-setting img {
    width: 220px;
    height: 150px;
    object-fit: cover;
    border: 1px solid var(--admin-border);
}

.admin-benefits-settings {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-benefits-settings article {
    display: grid;
    gap: 11px;
    padding: 14px;
    border: 1px solid var(--admin-border);
    background: #d9d8d3;
}

.admin-benefits-settings article > strong {
    font-size: 10px;
}

@media (max-width: 1380px) {
    .site-header .header-inner {
        gap: 14px;
        grid-template-columns: 165px minmax(400px, 1fr) auto;
    }

    .site-header .site-logo {
        width: 160px;
    }

    .desktop-nav {
        gap: 14px;
    }

    .header-phone {
        display: none;
    }
}

@media (max-width: 1120px) {
    .desktop-nav,
    .header-socials,
    .header-auth,
    .header-booking {
        display: none;
    }

    .site-header .header-inner {
        grid-template-columns: auto 1fr auto;
    }

    .menu-button {
        display: flex;
    }
}

@media (max-width: 900px) {
    .homepage-portfolio-grid,
    .homepage-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .contacts-social-section__inner,
    .homepage-booking__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .homepage-portfolio-grid,
    .homepage-product-grid,
    .admin-benefits-settings,
    .homepage-image-setting {
        grid-template-columns: 1fr;
    }

    .homepage-image-setting img {
        width: 100%;
        height: 220px;
    }

    .homepage-booking .button {
        width: 100%;
    }
}