/***** GLOBAL *****/

:root {
    --main-color: #000000;
    --main-text-color: #ffffff;
    --second-color: #ffffff;
    --second-text-color: #000000;
    --third-color: #f5f5f5;
    --third-text-color: #111111;
    --border-color: #e5e5e5;
    --muted-text-color: #6b6b6b;
    --focus-color: #2563eb;
    --font-base: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-spec: Georgia, "Times New Roman", serif;
    --transition: 0.3s ease;
}

body {
    font-family: var(--font-base);
    font-size: 16px;
    line-height: 1.6;
    color: var(--third-text-color);
    background: var(--second-color);
}

h1, h2, h3, h4, h5, h6,
.heading {
    font-weight: 700;
    line-height: 1.2;
}

.spec-font {
    font-family: var(--font-spec);
}

a {
    color: inherit;
    transition: var(--transition);
}

.container {
    padding-left: 25px;
    padding-right: 25px;
}

/* buttons */
.t-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.85em 1.6em;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
}

.t-btn:focus-visible {
    outline: 3px solid var(--focus-color);
    outline-offset: 3px;
}

.t-btn.theme {
    background: var(--main-color);
    color: var(--main-text-color);
    border-color: var(--main-color);
}

.t-btn.theme:hover,
.t-btn.theme:focus-visible {
    background: var(--second-color);
    color: var(--second-text-color);
}

.t-btn.theme2 {
    background: var(--second-color);
    color: var(--second-text-color);
    border-color: var(--second-color);
}

.t-btn.theme2:hover,
.t-btn.theme2:focus-visible {
    background: var(--main-color);
    color: var(--main-text-color);
}

.t-btn.theme3 {
    background: var(--third-color);
    color: var(--third-text-color);
    border-color: var(--third-color);
}

.t-btn.theme3:hover,
.t-btn.theme3:focus-visible {
    background: var(--main-color);
    color: var(--main-text-color);
    border-color: var(--main-color);
}

/***** HEADER *****/

.header {
    background: var(--second-color);
    color: var(--second-text-color);
    border-bottom: 1px solid var(--border-color);
}

.header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
}

/* logo */
.header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: var(--second-text-color);
}

/* navigation */
.header .navigation .list {
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header .navigation .link {
    font-weight: 500;
    text-decoration: none;
}

.header .navigation .link:hover {
    color: var(--muted-text-color);
}

.header .navigation .link:focus-visible,
.header .toggler:focus-visible,
.header .close:focus-visible {
    outline: 3px solid var(--focus-color);
    outline-offset: 3px;
}

/* actions */
.header .actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header .toggler,
.header .close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background: transparent;
    border: 0;
    color: var(--second-text-color);
}

.header .toggler svg,
.header .close svg {
    width: 28px;
    height: 28px;
}

/* offcanvas */
.header .offcanvas {
    background: var(--second-color);
    color: var(--second-text-color);
}

.header .offcanvas .offcanvas-header {
    justify-content: space-between;
    padding: 16px 25px;
    border-bottom: 1px solid var(--border-color);
}

.header .offcanvas .offcanvas-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px 25px;
}

.header .offcanvas .navigation .list {
    flex-direction: column;
    gap: 16px;
}

.header .offcanvas .navigation .link {
    font-size: 1.125rem;
}

/***** HOME *****/

/* hero */
.home-page .hero-section {
    background: var(--main-color);
}

.home-page .hero-section .image {
    display: block;
    width: 100%;
    height: auto;
}

/* categories */
.home-page .categories-section {
    padding: 96px 0 128px;
    background: var(--main-color);
    color: var(--main-text-color);
    overflow: hidden;
}

.home-page .categories-section .label {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.7;
}

.home-page .categories-section .heading {
    margin-bottom: 20px;
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.home-page .categories-section .content .text {
    max-width: 460px;
    margin-bottom: 32px;
    opacity: 0.8;
}

.home-page .categories-section .items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.home-page .categories-section .item {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    color: var(--main-text-color);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
}

.home-page .categories-section .item:focus-visible {
    outline: 3px solid var(--focus-color);
    outline-offset: 3px;
}

.home-page .categories-section .item .image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.home-page .categories-section .item .overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0) 60%);
    transition: var(--transition);
}

.home-page .categories-section .item .title {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.2;
}

.home-page .categories-section .item .text {
    margin-top: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.85;
}

.home-page .categories-section .item .icon {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--second-color);
    color: var(--second-text-color);
    transition: var(--transition);
}

.home-page .categories-section .item .icon svg {
    width: 20px;
    height: 20px;
}

@media (hover: hover) {
    .home-page .categories-section .item .text {
        max-height: 0;
        margin-top: 0;
        overflow: hidden;
        opacity: 0;
        transition: var(--transition);
    }

    .home-page .categories-section .item .icon {
        opacity: 0;
        transform: translate(-6px, 6px);
    }

    .home-page .categories-section .item:hover .image,
    .home-page .categories-section .item:focus-visible .image {
        transform: scale(1.08);
    }

    .home-page .categories-section .item:hover .overlay,
    .home-page .categories-section .item:focus-visible .overlay {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.3));
    }

    .home-page .categories-section .item:hover .text,
    .home-page .categories-section .item:focus-visible .text {
        max-height: 120px;
        margin-top: 8px;
        opacity: 0.85;
    }

    .home-page .categories-section .item:hover .icon,
    .home-page .categories-section .item:focus-visible .icon {
        opacity: 1;
        transform: none;
    }
}

@media (min-width: 992px) {
    .home-page .categories-section .item:nth-child(2) {
        transform: translateY(32px);
    }
}

@media (max-width: 991.98px) {
    .home-page .categories-section {
        padding: 72px 0;
    }

    .home-page .categories-section .items {
        margin-top: 48px;
    }
}

@media (max-width: 575.98px) {
    .home-page .categories-section .items {
        grid-template-columns: 1fr;
    }

    .home-page .categories-section .item {
        aspect-ratio: 16 / 10;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .categories-section .item .image {
        transition: none;
    }
}

/* benefits */
.home-page .benefits-section {
    padding: 80px 0;
}

/* jobs */
.home-page .jobs-section {
    padding: 80px 0;
}

/* contact */
.home-page .contact-section {
    padding: 80px 0;
}

/***** FOOTER *****/

.footer {
    background: var(--main-color);
    color: var(--main-text-color);
}

.footer a {
    text-decoration: none;
}

.footer a:hover {
    opacity: 0.75;
}

.footer a:focus-visible {
    outline: 3px solid var(--focus-color);
    outline-offset: 3px;
}

/* main */
.footer .main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
    padding: 48px 0 32px;
}

.footer .logo {
    font-size: 1.5rem;
    font-weight: 700;
}

/* links */
.footer .links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* contact */
.footer .contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* bottom */
.footer .bottom {
    padding: 20px 0;
    border-top: 1px solid var(--muted-text-color);
    font-size: 0.875rem;
}

.footer .bottom .text {
    margin: 0;
}
