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

:root {
    --color-yellow: #f5b800;
    --color-dark: #1a1a1a;
    --color-footer: #2a2a2a;
    --font-main: 'Roboto', sans-serif;
}

html,
body {
    height: 100%;
}

body {
    font-family: var(--font-main);
    color: #fff;
    background: var(--color-dark);
    -webkit-font-smoothing: antialiased;
}

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

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

/* Home */

.page-home {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.hero {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 72px);
    min-height: calc(100dvh - 72px);
    background: var(--color-dark) url('/img/a5e89fe6466e28045879854c4ece1d092c91da04.jpg') center / cover no-repeat;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.15) 45%,
        rgba(0, 0, 0, 0) 70%
    );
    pointer-events: none;
}

.hero__header {
    position: relative;
    z-index: 2;
    padding: 40px 48px 0;
}

.hero__logo img {
    width: 239px;
}

.hero__content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 48px 120px;
    max-width: 720px;
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hero__title span {
    display: block;
}

.hero__subtitle {
    margin-top: 24px;
    font-size: clamp(1.125rem, 2vw, 1.75rem);
    font-weight: 400;
    color: var(--color-yellow);
}

/* Footer */

.site-footer {
    flex-shrink: 0;
    background: var(--color-footer);
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    padding: 16px 48px;
}

.site-footer__links,
.site-footer__contacts {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.site-footer a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-yellow);
    transition: opacity 0.2s ease;
}

.site-footer a:hover {
    opacity: 0.8;
}

/* Contacts */

.page-contacts {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.contacts {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--color-dark);
}

.contacts__header {
    padding: 40px 48px 0;
}

.contacts__logo img {
    width: 239px;
}

.contacts__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
    max-width: 640px;
}

.contacts__title {
    margin-bottom: 40px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.contacts__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contacts__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: opacity 0.2s ease;
}

.contacts__item:hover {
    opacity: 0.85;
}

.contacts__label {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.contacts__value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-yellow);
}

.contacts__back {
    margin-top: 48px;
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.contacts__back:hover {
    color: #fff;
}

/* Mobile */

@media (max-width: 768px) {
    .page-home {
        min-height: 100dvh;
    }

    .hero {
        position: relative;
        flex: 1 1 auto;
        display: block;
        min-height: calc(100dvh - 132px);
        background-image: url('/img/f60e5c26cfaea896013f93342b20b6b56a384bfb.jpg');
        background-position: center top;
        background-size: cover;
    }

    .hero__overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.15) 0%,
            rgba(0, 0, 0, 0) 25%,
            rgba(0, 0, 0, 0.35) 60%,
            rgba(0, 0, 0, 0.88) 100%
        );
    }

    .hero__header {
        position: absolute;
        top: 40px;
        left: 0;
        right: 0;
        z-index: 2;
        display: flex;
        justify-content: center;
        padding: 0 16px;
    }

    .hero__logo img {
        width: 239px;
    }

    .hero__content {
        position: absolute;
        left: 16px;
        right: 16px;
        bottom: 32px;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: none;
        margin: 0;
        padding: 0;
        text-align: center;
    }

    .hero__subtitle {
        order: 1;
        margin: 0 0 14px;
        font-size: 19px;
        font-weight: 400;
        line-height: 1;
    }

    .hero__title {
        order: 2;
        font-size: 36px;
        font-weight: 700;
        line-height: 1.12;
    }

    .site-footer {
        flex: 0 0 auto;
        background: var(--color-dark);
    }

    .site-footer__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        min-height: auto;
        padding: 8px 16px 32px;
    }

    .site-footer__links {
        display: flex;
        justify-content: space-between;
        width: 100%;
        gap: 16px;
    }

    .site-footer__links a {
        font-size: 19px;
        font-weight: 400;
        line-height: 1;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .site-footer__contacts {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        width: 100%;
    }

    .site-footer__contacts a {
        font-size: 19px;
        font-weight: 400;
        line-height: 1;
    }

    .contacts__header {
        display: flex;
        justify-content: center;
        padding: 40px 16px 0;
    }

    .contacts__logo img {
        width: 239px;
    }

    .contacts__content {
        padding: 48px 16px;
    }
}
