/* ========= RESET ========= */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 78px;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;

    background: #111111;
    color: #f2f2f2;

    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

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

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

button,
input {
    font: inherit;
}

button {
    border: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}


/* ========= VARIABLES ========= */

:root {
    --color-bg: #111111;
    --color-bg-light: #181818;
    --color-bg-dark: #0b0b0b;

    --color-text: #f2f2f2;
    --color-muted: #969696;

    --color-line: #303030;

    --color-accent: #1769aa;
    --color-accent-hover: #1d7bc8;

    --container: 1240px;
}


/* ========= GLOBAL ========= */

.container {
    width: min(calc(100% - 32px), var(--container));
    margin-inline: auto;
}

section {
    position: relative;
    border-bottom: 1px solid var(--color-line);
}

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

h1,
h2 {
    margin-bottom: 0;

    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(3.2rem, 12vw, 8.5rem);
}

h2 {
    font-size: clamp(3rem, 8vw, 6.3rem);
}

.section-number {
    display: inline-block;
    margin-bottom: 24px;

    color: var(--color-accent);

    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.button {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 54px;
    padding: 15px 24px;

    background: var(--color-accent);
    color: #ffffff;

    border: 1px solid var(--color-accent);

    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.button:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
}

.button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}


/* ========= HEADER ========= */

.header {
    position: sticky;
    top: 0;
    z-index: 20;

    background: rgba(17, 17, 17, 0.94);
    border-bottom: 1px solid var(--color-line);

    backdrop-filter: blur(12px);

    transition:
        background 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    min-height: 70px;
}

.logo {
    flex-shrink: 0;

    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav a {
    position: relative;

    color: var(--color-muted);

    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    transition: color 0.2s ease;
}

.nav a::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;

    height: 1px;

    background: var(--color-accent);

    transform: scaleX(0);
    transform-origin: left;

    transition: transform 0.2s ease;
}

.nav a:hover {
    color: var(--color-text);
}

.nav a:hover::after {
    transform: scaleX(1);
}

.header--scrolled {
    background: rgba(9, 9, 9, 0.97);
    border-color: #3a3a3a;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.nav__link--active {
    color: var(--color-text) !important;
}

.nav__link--active::after {
    transform: scaleX(1) !important;
}


/* ========= HERO ========= */

.hero {
    min-height: calc(100vh - 70px);
    overflow: hidden;
}

.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.028) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.028) 1px,
            transparent 1px
        );

    background-size: 42px 42px;

    pointer-events: none;
}

.hero__wrapper {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;

    padding-top: 70px;
    padding-bottom: 70px;
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
}

.hero__subtitle {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 24px;

    color: var(--color-muted);

    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.hero__subtitle::before {
    content: "";

    flex-shrink: 0;

    width: 34px;
    height: 1px;

    background: var(--color-accent);
}

.hero h1 {
    max-width: 760px;
}

.hero__text {
    max-width: 520px;
    margin: 30px 0 0;

    color: var(--color-muted);

    font-size: clamp(1rem, 3.8vw, 1.2rem);
}

.hero__price {
    display: flex;
    flex-direction: column;
    gap: 4px;

    margin: 40px 0 24px;
}

.hero__price span {
    color: var(--color-muted);

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero__price strong {
    font-size: clamp(2.5rem, 9vw, 4.8rem);
    line-height: 1;
    letter-spacing: -0.035em;
}

.hero__image {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 420px;
    padding: 24px;

    background:
        linear-gradient(
            145deg,
            #202020 0%,
            #141414 60%,
            #0d0d0d 100%
        );

    border: 1px solid var(--color-line);
}

.hero__image::before,
.hero__image::after {
    content: "";

    position: absolute;

    width: 44px;
    height: 44px;
}

.hero__image::before {
    top: -1px;
    left: -1px;

    border-top: 2px solid var(--color-accent);
    border-left: 2px solid var(--color-accent);
}

.hero__image::after {
    right: -1px;
    bottom: -1px;

    border-right: 2px solid var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
}

.hero__image img {
    width: min(100%, 620px);
    max-height: 620px;

    object-fit: contain;
    filter: contrast(1.08);

    transition: transform 0.15s linear;
    will-change: transform;
}


/* ========= PRODUCT ========= */

.product {
    background: var(--color-bg-light);
}

.product .container {
    padding-top: 84px;
    padding-bottom: 84px;
}

.product h2 {
    margin-bottom: 34px;
}

.product p {
    max-width: 760px;
    margin-bottom: 0;

    color: var(--color-muted);

    font-size: clamp(1.05rem, 3.8vw, 1.45rem);
}


/* ========= PRODUCTION ========= */

.production {
    overflow: hidden;
    background: var(--color-bg);
}

.production .container {
    padding-top: 84px;
    padding-bottom: 84px;
}

.production h2 {
    max-width: 100%;
    margin-bottom: 48px;

    font-size: clamp(3rem, 7.2vw, 5.8rem);
    line-height: 0.94;
    letter-spacing: -0.025em;

    white-space: nowrap;
}

.production ul {
    border-top: 1px solid var(--color-line);
}

.production li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    min-height: 76px;
    padding: 18px 0;

    border-bottom: 1px solid var(--color-line);

    color: var(--color-text);

    font-size: clamp(1rem, 4vw, 1.35rem);
    font-weight: 700;
}

.production li::after {
    content: "+";

    flex-shrink: 0;

    color: var(--color-accent);

    font-size: 1.6rem;
    font-weight: 400;
}


/* ========= CONTACTS ========= */

.contacts {
    overflow: hidden;
    background: var(--color-bg-dark);
}

.contacts .container {
    padding-top: 84px;
    padding-bottom: 84px;
}

.contacts__content {
    min-width: 0;
}

.contacts h2 {
    max-width: 100%;
    margin-bottom: 0;

    font-size: clamp(3rem, 8vw, 6.1rem);
    line-height: 0.94;
    letter-spacing: -0.025em;

    white-space: nowrap;
}

.contacts__text {
    max-width: 520px;
    margin: 24px 0 34px;

    color: var(--color-muted);

    font-size: 1rem;
    line-height: 1.6;
}

.contacts__details {
    display: grid;
    gap: 22px;

    margin-bottom: 42px;
}

.contacts__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contacts__item span {
    color: var(--color-muted);

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contacts__item a {
    width: fit-content;

    font-size: clamp(1.15rem, 4vw, 1.45rem);
    font-weight: 700;

    transition: color 0.2s ease;
}

.contacts__item a:hover {
    color: var(--color-accent-hover);
}

.contacts form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;

    width: 100%;
    max-width: 760px;
}

.contacts input {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 16px 18px;

    background: #141414;
    color: var(--color-text);

    border: 1px solid var(--color-line);
    border-radius: 0;

    font-size: 1rem;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.contacts input::placeholder {
    color: #686868;
}

.contacts input:hover {
    border-color: #4a4a4a;
}

.contacts input:focus {
    border-color: var(--color-accent);
    background: #181818;
    outline: none;
}

.contacts .button {
    width: 100%;
}


/* ========= FOOTER ========= */

.footer {
    background: #090909;
    border-top: 1px solid var(--color-line);
}

.footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 86px;

    color: var(--color-muted);

    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* ========= JS ANIMATIONS ========= */

.reveal {
    opacity: 0;
    transform: translateY(34px);

    transition:
        opacity 0.75s ease var(--reveal-delay, 0ms),
        transform 0.75s cubic-bezier(.2, .75, .25, 1)
        var(--reveal-delay, 0ms);
}

.reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

.hero__image.reveal {
    transform: translateY(30px) scale(0.97);
}

.hero__image.reveal--visible {
    transform: translateY(0) scale(1);
}

.button::before {
    content: "";

    position: absolute;
    z-index: -1;
    left: var(--mouse-x, 50%);
    top: var(--mouse-y, 50%);

    width: 0;
    height: 0;

    background: rgba(255, 255, 255, 0.16);
    border-radius: 50%;

    transform: translate(-50%, -50%);

    transition:
        width 0.35s ease,
        height 0.35s ease;
}

.button:hover::before {
    width: 320px;
    height: 320px;
}

.button:disabled {
    cursor: default;
    opacity: 0.8;
}

.button--success {
    background: #2f6947;
    border-color: #2f6947;
}

.input--error {
    border-color: #bd4545 !important;
}

.field-error {
    display: block;

    margin-top: -8px;
    margin-bottom: 2px;

    color: #d86c6c;

    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}


/* ========= TABLET ========= */

@media (min-width: 720px) {

    .container {
        width: min(calc(100% - 48px), var(--container));
    }

    .hero__wrapper {
        padding-top: 90px;
        padding-bottom: 90px;
    }

    .product .container,
    .production .container,
    .contacts .container {
        padding-top: 110px;
        padding-bottom: 110px;
    }

    .contacts form {
        grid-template-columns: 1fr 1fr;
    }

    .contacts .button {
        grid-column: 1 / -1;
    }

}


/* ========= DESKTOP ========= */

@media (min-width: 980px) {

    .header .container {
        min-height: 78px;
    }

    .hero {
        min-height: calc(100vh - 78px);
    }

    .hero__wrapper {
        grid-template-columns:
            minmax(0, 1.05fr)
            minmax(400px, 0.95fr);

        align-items: center;
        gap: clamp(40px, 6vw, 72px);

        min-height: calc(100vh - 78px);
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .hero__image {
        min-height: 650px;
    }

    .product .container,
    .production .container {
        display: grid;
        grid-template-columns:
            minmax(130px, 210px)
            minmax(0, 1fr);

        column-gap: clamp(36px, 5vw, 70px);
    }

    .product .section-number,
    .production .section-number {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .product h2,
    .product p,
    .production h2,
    .production ul {
        grid-column: 2;
        min-width: 0;
    }

    .production h2 {
        font-size: clamp(4rem, 6.6vw, 5.8rem);
    }

    /* Контакты: безопасная двухколоночная сетка */
    .contacts .container {
        display: grid;
        grid-template-columns:
            minmax(0, 1fr)
            minmax(420px, 0.95fr);

        grid-template-areas:
            "number number"
            "content form";

        column-gap: clamp(56px, 7vw, 110px);
        row-gap: 38px;
        align-items: start;
    }

    .contacts .section-number {
        grid-area: number;
        margin-bottom: 0;
    }

    .contacts__content {
        grid-area: content;
        min-width: 0;
    }

    .contacts h2 {
        font-size: clamp(4.2rem, 5.5vw, 5.8rem);
        white-space: nowrap;
    }

    .contacts form {
        grid-area: form;
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 560px;
        justify-self: end;
    }

    .contacts .button {
        grid-column: auto;
    }

}


/* ========= MEDIUM DESKTOP ========= */

@media (min-width: 980px) and (max-width: 1120px) {

    .product .container,
    .production .container {
        grid-template-columns: 120px minmax(0, 1fr);
        column-gap: 34px;
    }

    .production h2 {
        font-size: clamp(3.8rem, 6.8vw, 4.8rem);
    }

    .contacts .container {
        grid-template-columns:
            minmax(0, 0.9fr)
            minmax(390px, 1.1fr);

        column-gap: 48px;
    }

    .contacts h2 {
        font-size: clamp(3.8rem, 5.2vw, 4.7rem);
    }

}


/* ========= MOBILE ========= */

@media (max-width: 680px) {

    html {
        scroll-padding-top: 62px;
    }

    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .header .container {
        min-height: 62px;
    }

    .logo {
        font-size: 0.8rem;
    }

    .nav {
        gap: 12px;
    }

    .nav a {
        font-size: 0.59rem;
        letter-spacing: 0.025em;
    }

    .hero {
        min-height: auto;
    }

    .hero__wrapper {
        gap: 36px;

        padding-top: 54px;
        padding-bottom: 54px;
    }

    .hero h1 {
        font-size: clamp(3rem, 15vw, 4.8rem);
        line-height: 0.94;
        letter-spacing: -0.03em;
    }

    .hero__text {
        margin-top: 24px;

        font-size: 1rem;
        line-height: 1.55;
    }

    .hero__price {
        margin-top: 32px;
    }

    .hero__image {
        min-height: 340px;
        padding: 16px;
    }

    .product .container,
    .production .container,
    .contacts .container {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .product h2 {
        font-size: clamp(3rem, 14vw, 4.7rem);
        letter-spacing: -0.025em;
    }

    .production h2 {
        margin-bottom: 40px;

        font-size: clamp(2.65rem, 10.2vw, 3.9rem);
        line-height: 0.96;
        letter-spacing: -0.015em;

        white-space: nowrap;
    }

    .contacts h2 {
        font-size: clamp(3.2rem, 13.5vw, 4.8rem);
        line-height: 0.96;
        letter-spacing: -0.015em;

        white-space: nowrap;
    }

    .contacts__text {
        margin-top: 22px;
        margin-bottom: 28px;
    }

    .contacts__details {
        margin-bottom: 36px;
    }

    .production li {
        align-items: flex-start;
        min-height: 70px;

        font-size: 1rem;
    }

    .footer .container {
        justify-content: center;
        text-align: center;
    }

}


/* ========= VERY SMALL MOBILE ========= */

@media (max-width: 390px) {

    .nav {
        gap: 8px;
    }

    .nav a {
        font-size: 0.53rem;
    }

    .production h2 {
        font-size: 9.8vw;
    }

    .contacts h2 {
        font-size: 12.8vw;
    }

}


/* ========= REDUCED MOTION ========= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    .hero__image.reveal {
        opacity: 1;
        transform: none;
    }

    .hero__image img {
        transform: none !important;
    }

}

/* ========= GQF SIGNATURE ========= */

.footer__inner {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
}

.gqf-signature {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    cursor: default;
}

.gqf-symbol {
    color: var(--color-text);

    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.18em;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.gqf-tooltip {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);

    display: flex;
    flex-direction: column;
    gap: 2px;

    min-width: 150px;
    padding: 12px 14px;

    background: #151515;
    border: 1px solid var(--color-line);

    opacity: 0;
    visibility: hidden;

    transform: translateY(8px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

.gqf-tooltip span {
    color: var(--color-muted);

    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gqf-tooltip strong {
    color: var(--color-text);

    font-size: 0.9rem;
    letter-spacing: 0.12em;
}

.gqf-signature:hover .gqf-symbol {
    color: var(--color-accent);
    transform: translateY(-2px);
}

.gqf-signature:hover .gqf-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 680px) {

    .footer__inner {
        justify-content: space-between;
        text-align: left;
    }

    .gqf-tooltip {
        right: 0;
    }

}

/* ========= PRODUCTS GRID ========= */

.product__content {
    min-width: 0;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;

    margin-top: 42px;
}

.product-card {
    overflow: hidden;

    background: #121212;
    border: 1px solid var(--color-line);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #444444;
}

.product-card__image {
    position: relative;

    aspect-ratio: 4 / 3;

    overflow: hidden;
    background: #0d0d0d;

    border-bottom: 1px solid var(--color-line);
}

.product-card__image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.025);
}

.product-card__body {
    padding: 24px;
}

.product-card__label {
    display: inline-block;
    margin-bottom: 12px;

    color: var(--color-accent);

    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.product-card h3 {
    margin: 0 0 14px;

    color: var(--color-text);

    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.product-card p {
    margin: 0;

    color: var(--color-muted);

    font-size: 0.95rem;
    line-height: 1.55;
}

.product-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;

    margin-top: 28px;
    padding-top: 20px;

    border-top: 1px solid var(--color-line);
}

.product-card__footer strong {
    font-size: 1.2rem;
    line-height: 1.1;
}

.product-card__link {
    flex-shrink: 0;

    color: var(--color-muted);

    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    transition: color 0.2s ease;
}

.product-card__link:hover {
    color: var(--color-accent);
}

@media (min-width: 720px) {

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 680px) {

    .products-grid {
        margin-top: 34px;
    }

    .product-card__body {
        padding: 20px;
    }

    .product-card__footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

}

.product-specs {
    margin-top: 24px;
    border-top: 1px solid var(--color-line);
}

.product-specs__row {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    padding: 12px 0;

    border-bottom: 1px solid var(--color-line);

    font-size: 0.85rem;
}

.product-specs__row span {
    color: var(--color-muted);
}

.product-specs__row strong {
    color: var(--color-text);
    font-weight: 700;
}

/* ========= PRODUCT SLIDER ========= */

.product-slider {
    position: relative;
    overflow: hidden;
}

.product-slider__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.product-slider__image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}

.product-slider__image.active {
    opacity: 1;
    visibility: visible;
}

.product-slider__button {
    position: absolute;
    z-index: 5;
    top: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    padding: 0;

    background: rgba(10, 10, 10, 0.78);
    color: #fff;

    border: 1px solid rgba(255,255,255,0.18);

    font-size: 1.2rem;

    cursor: pointer;

    transform: translateY(-50%);

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.product-slider__button:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.product-slider__button--prev {
    left: 14px;
}

.product-slider__button--next {
    right: 14px;
}

.product-slider__dots {
    position: absolute;
    z-index: 5;
    bottom: 14px;
    left: 50%;

    display: flex;
    gap: 8px;

    transform: translateX(-50%);
}

.product-slider__dot {
    width: 8px;
    height: 8px;

    padding: 0;

    background: rgba(255,255,255,0.4);

    border: 0;
    border-radius: 50%;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.product-slider__dot.active {
    background: #fff;
    transform: scale(1.25);
}

@media (max-width: 680px) {

    .product-slider__button {
        width: 38px;
        height: 38px;
    }

}

/* ========= PRODUCTION PHOTO ========= */

.production-photo {
    padding: 0 !important;
    overflow: hidden;

    border-bottom: 1px solid var(--color-line);
}

.production-photo::after {
    display: none;
}

.production-photo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.production-photo:hover img {
    transform: scale(1.02);
}
