:root {
    --color-dark: #292929;
    --color-accent: #9263f8;
    --color-gray: #f2f2f2;
    --color-lavender: #ececfa;
    --color-white: #ffffff;
    --font-serif: "Lora", Georgia, serif;
    --font-sans: "Lexend", "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-dark);
    font-family: var(--font-sans);
    font-weight: 400;
    background: var(--color-white);
    overflow-x: hidden;
}

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

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

button,
input,
textarea {
    font-family: inherit;
}

.font-serif {
    font-family: var(--font-serif);
    font-weight: 400;
}

.container-critec {
    width: min(1546px, calc(100% - 40px));
    margin: 0 auto;
}

.hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

.site-header {
    display: flex;
    justify-content: center;
    padding: 28px 20px;
    background: var(--color-white);
}

.site-header--overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: transparent;
    padding-top: 49px;
}

.site-logo img {
    width: 183px;
    height: auto;
}

.cta,
.cta--button {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: var(--color-dark);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.cta__line {
    width: 60px;
    height: 1.5px;
    background: currentColor;
    flex: 0 0 60px;
}

.cta__label {
    font-family: var(--font-serif);
    font-size: 16px;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.cta__icon {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
}

.hero {
    position: relative;
    min-height: 900px;
    height: 100vh;
    max-height: 900px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: var(--color-white);
    overflow: hidden;
}

.hero__media {
    position: absolute;
    inset: 0;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #292929;
    opacity: 0.5;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px 210px;
}

.hero__mark {
    width: 60px;
    height: 60px;
    margin: 0 auto 30px;
}

.hero h1 {
    margin: 0;
    font-size: 42px;
    line-height: 42px;
    font-weight: 400;
}

.hero h1 span {
    display: block;
}

.hero__title-strong {
    font-family: var(--font-sans);
    font-weight: 700;
}

.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 118px;
    transform: translateX(-50%);
    z-index: 3;
    filter: invert(1);
}

.hero__notch {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    z-index: 3;
    width: 100px;
}

.hero__notch img {
    width: 100px;
    height: 25px;
}

.intro {
    padding: 110px 0 70px;
    text-align: center;
}

.intro__title {
    margin: 0 0 24px;
    font-size: clamp(42px, 6.25vw, 120px);
    line-height: 1;
}

.intro__text {
    max-width: 755px;
    margin: 0 auto 48px;
    font-size: 18px;
    line-height: 32px;
}

.intro .cta {
    justify-content: center;
}

.services {
    padding: 40px 0 120px;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 90px 40px;
}

.service {
    text-align: center;
    max-width: 438px;
    margin: 0 auto;
}

.service__icon {
    height: 92px;
    width: auto;
    margin: 0 auto 28px;
}

.service__title {
    margin: 0 0 18px;
    font-size: 22px;
    line-height: 1.2;
    text-transform: uppercase;
}

.service__text {
    margin: 0;
    font-size: 18px;
    line-height: 32px;
}

.gallery {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 120px 0 90px;
    overflow: hidden;
}

.gallery__title {
    margin: 0 0 80px;
    text-align: center;
    font-size: 42px;
    line-height: 1.15;
    font-weight: 400;
}

.gallery__title span {
    display: block;
}

.gallery__title-strong {
    font-family: var(--font-sans);
    font-weight: 700;
}

.gallery__stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(1225px, 64vw) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    min-height: 0;
}

.gallery__side {
    height: 501px;
    max-height: 72%;
    overflow: hidden;
    opacity: 0.7;
}

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

.gallery__viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1225 / 689;
    overflow: hidden;
    z-index: 2;
    background: #1a1a1a;
}

.gallery__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.gallery__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.gallery__slide img,
.gallery__thumb img,
.gallery__side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery__play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    pointer-events: none;
}

.gallery__play img {
    width: 37px;
    height: 51px;
}

.gallery__filmstrip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 3vw, 48px);
    margin-top: 48px;
    padding: 0 clamp(16px, 5vw, 80px);
}

.gallery__nav {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    flex: 0 0 60px;
    line-height: 0;
}

.gallery__nav img {
    width: 60px;
    height: 60px;
}

.gallery__thumbs {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    overflow: hidden;
}

.gallery__thumb {
    width: min(284px, 18vw);
    height: 160px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    opacity: 0.7;
    overflow: hidden;
    flex: 0 0 auto;
}

.gallery__thumb.is-active,
.gallery__thumb:hover {
    opacity: 1;
}

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

.brands {
    padding: 120px 0 80px;
    background: linear-gradient(180deg, #f2f2f2 0%, #ececfa 100%);
}

.brands__title {
    margin: 0 0 50px;
    text-align: center;
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 400;
    color: var(--color-dark);
}

.brands__title strong {
    font-family: var(--font-sans);
    font-weight: 700;
}

.brands__marquee {
    overflow: hidden;
}

.brands__track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: brands-scroll 40s linear infinite;
}

.brands__item {
    width: 284px;
    height: 145px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 284px;
    padding: 20px 36px;
}

.brands__item img {
    max-width: 170px;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@keyframes brands-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.stats {
    padding: 40px 0 110px;
    background: var(--color-lavender);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 491px));
    justify-content: center;
    gap: 34px;
}

.stat {
    background: transparent;
    border: 1px solid #9263f8;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.stat__value {
    margin: 0;
    font-size: clamp(64px, 5.2vw, 100px);
    line-height: 1;
    text-transform: uppercase;
    color: #292929;
}

.stat__value span {
    color: #9263f8;
    font-size: 0.72em;
}

.stat__label {
    margin: 18px 0 0;
    font-size: 18px;
    line-height: 32px;
}

.contact {
    padding: 0 0 90px;
    background: var(--color-lavender);
}

.contact__title {
    margin: 0 0 48px;
    text-align: center;
    font-size: 42px;
    line-height: 1.15;
    font-weight: 400;
}

.contact__title span {
    display: block;
}

.contact__title-strong {
    font-family: var(--font-sans);
    font-weight: 700;
}

.contact__card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    background: var(--color-white);
}

.contact__photo {
    min-height: 420px;
}

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

.contact__form {
    padding: 52px 64px 40px;
    display: flex;
    flex-direction: column;
}

.contact__field {
    display: block;
    margin-bottom: 8px;
}

.contact__field span {
    display: block;
    font-size: 16px;
    line-height: 38px;
    color: var(--color-dark);
}

.contact__field input,
.contact__field textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #d7d7d7;
    background: transparent;
    padding: 6px 0 10px;
    font-size: 16px;
    color: var(--color-dark);
    outline: none;
    resize: none;
}

.contact__field input:focus,
.contact__field textarea:focus {
    border-bottom-color: var(--color-dark);
}

.contact__bottom {
    margin-top: auto;
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.contact__privacy {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 320px;
    font-family: var(--font-serif);
    font-size: 16px;
    line-height: 16px;
    cursor: pointer;
}

.contact__privacy input {
    appearance: none;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border: 1px solid var(--color-dark);
    position: relative;
    margin: 0;
    cursor: pointer;
}

.contact__privacy input:checked::after {
    content: "";
    position: absolute;
    inset: 8px;
    background: var(--color-dark);
}

.contact__privacy a {
    text-decoration: underline;
}

.contact__actions {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.contact__status {
    width: 100%;
    margin: 16px 0 0;
    font-size: 14px;
}

.contact__status.is-ok { color: #2e7d32; }
.contact__status.is-error { color: #c62828; }

.site-footer {
    position: relative;
    background: var(--color-white);
    text-align: center;
    padding: 70px 20px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    background: #f2f2f2;
    border-radius: 30px;
    height: 60px;
    padding: 0 8px 0 24px;
    margin: 0 0 36px;
}

.whatsapp-btn__text {
    font-size: 14px;
    line-height: 18px;
    margin-right: 16px;
    color: var(--color-dark);
}

.whatsapp-btn__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #4ac14b;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-footer__meta {
    margin: 0 0 36px;
    font-size: 16px;
    line-height: 38px;
    color: var(--color-dark);
}

.site-footer__meta a:hover {
    text-decoration: underline;
}

.back-to-top {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.back-to-top__icon {
    width: 60px;
    height: 60px;
    border: 1.5px solid var(--color-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top__label {
    font-family: var(--font-serif);
    font-size: 16px;
    text-transform: uppercase;
}

.back-to-top__line {
    width: 1.5px;
    height: 60px;
    background: var(--color-dark);
}

@media (max-width: 1100px) {
    .services__grid,
    .stats__grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .contact__card {
        grid-template-columns: 1fr;
    }

    .contact__photo {
        height: 360px;
    }

    .contact__form {
        padding: 36px 28px 40px;
    }

    .gallery__viewport {
        width: min(92vw, 900px);
    }

    .gallery__stage {
        grid-template-columns: 1fr;
    }

    .gallery__side {
        display: none;
    }

    .gallery__filmstrip {
        padding: 0 12px;
    }
}

@media (max-width: 767px) {
    .site-header--overlay {
        padding-top: 24px;
    }

    .hero {
        min-height: 640px;
        max-height: none;
        height: 80vh;
    }

    .hero h1,
    .gallery__title,
    .brands__title,
    .contact__title {
        font-size: 32px;
        line-height: 1.2;
    }

    .intro {
        padding: 70px 0 40px;
    }

    .gallery__thumb {
        width: calc(50% - 12px);
        height: 120px;
    }

    .contact__actions {
        width: 100%;
        justify-content: space-between;
    }

    .site-footer__meta {
        display: flex;
        flex-direction: column;
        line-height: 1.6;
    }
}
