.carousel .item {
    isolation: isolate;
    transition:
        box-shadow 350ms ease,
        background-color 350ms ease;
}

.hero {
    height: 80vh;
    min-height: 520px;
    background-attachment: scroll;
}

.hero::before {
    background: radial-gradient(
        ellipse at center,
        rgb(0 0 0 / 12%) 0%,
        rgb(0 0 0 / 30%) 50%,
        rgb(0 0 0 / 92%) 100%
    );
}

.carousel .item img {
    transform: scale(1);
    transition:
        transform 500ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 350ms ease;
}

.carousel .item .price {
    transition:
        transform 350ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 350ms ease,
        background-color 350ms ease;
}

.carousel .item .name {
    transition:
        color 250ms ease,
        background-color 350ms ease;
}

.carousel .item:hover,
.carousel .item:focus-visible {
    z-index: 2;
    transform: none;
    background-color: #474747;
    box-shadow: 0 20px 35px rgb(0 0 0 / 35%);
    outline: none;
}

.carousel .item:hover img,
.carousel .item:focus-visible img {
    transform: none;
    filter: brightness(1.05) contrast(1.03);
}

.carousel .item:hover .price,
.carousel .item:focus-visible .price {
    transform: translateY(-2px);
    background-color: #40ae33;
    box-shadow: 0 8px 18px rgb(64 174 51 / 35%);
}

.carousel .item:hover .name,
.carousel .item:focus-visible .name {
    color: #ffffff;
    background-color: #242424;
}

.carousel.is-dragging .item {
    transform: none;
}

.catalog-item {
    scroll-margin-block: 32px;
}

.catalog-item:target {
    box-shadow:
        0 0 0 2px #40ae33,
        0 18px 35px rgb(0 0 0 / 35%);
}

.catalog-grid .catalog-item {
    isolation: isolate;
    transform: none;
    transition:
        box-shadow 350ms ease,
        background-color 350ms ease;
}

.catalog-section {
    background-color: #1e1e1e;
    background-image: url("../img/bg1.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 1920px auto;
}

.catalog-grid .catalog-item img {
    transform: none;
    transition:
        transform 500ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 350ms ease;
}

.catalog-grid .catalog-item > img {
    width: 100%;
    height: 285px;
    object-fit: contain;
    object-position: center;
}

.catalog-grid .catalog-price {
    transition:
        transform 350ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 350ms ease,
        background-color 350ms ease;
}

.catalog-grid .catalog-name {
    transition:
        color 250ms ease,
        background-color 350ms ease;
}

.catalog-grid .catalog-item:hover,
.catalog-grid .catalog-item:focus-visible,
.catalog-grid .catalog-item.open {
    z-index: 2;
    transform: none;
    background-color: #474747;
    box-shadow: 0 20px 35px rgb(0 0 0 / 35%);
    outline: none;
}

.catalog-grid .catalog-item:hover img,
.catalog-grid .catalog-item:focus-visible img,
.catalog-grid .catalog-item.open img {
    transform: none;
    filter: brightness(1.05) contrast(1.03);
}

.catalog-grid .catalog-item:hover .catalog-price,
.catalog-grid .catalog-item:focus-visible .catalog-price,
.catalog-grid .catalog-item.open .catalog-price {
    transform: translateY(-2px);
    background-color: #40ae33;
    box-shadow: 0 8px 18px rgb(64 174 51 / 35%);
}

.catalog-grid .catalog-item:hover .catalog-name,
.catalog-grid .catalog-item:focus-visible .catalog-name,
.catalog-grid .catalog-item.open .catalog-name {
    color: #ffffff;
    background-color: #242424;
}

.catalog-grid .catalog-details {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    height: auto;
    overflow: hidden;
    padding: 0 15px;
    opacity: 0;
    transition:
        grid-template-rows 450ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 250ms ease,
        visibility 0s linear 450ms;
}

.catalog-grid .catalog-details-inner {
    min-height: 0;
    overflow: hidden;
    padding-block: 0;
    transition: padding 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.catalog-grid .catalog-details.open {
    grid-template-rows: 1fr;
    visibility: visible;
    opacity: 1;
    transition:
        grid-template-rows 450ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 280ms ease 80ms,
        visibility 0s linear 0s;
}

.catalog-grid .catalog-details.open .catalog-details-inner {
    padding-block: 15px;
}

.form-container > h2 {
    margin-bottom: 50px;
}

.contact-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.form-success {
    margin-bottom: 24px;
    padding: 14px 18px;
    border: 1px solid #40ae33;
    border-radius: 6px;
    background-color: rgb(64 174 51 / 12%);
    color: #ffffff;
    text-align: left;
}

.form-errors {
    margin-bottom: 24px;
    padding: 14px 18px;
    border: 1px solid #c94a4a;
    border-radius: 6px;
    background-color: rgb(201 74 74 / 12%);
    color: #ffffff;
    text-align: left;
}

.form-errors ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.form-errors li + li {
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
}

.form-row .inputy,
.form-row .texty {
    width: auto;
    margin-right: 0;
    margin-bottom: 0;
}

.inputy input:last-child,
.texty textarea {
    margin-bottom: 0;
}

.texty {
    display: flex;
    flex-direction: column;
}

.texty textarea {
    min-height: 0;
    flex: 1;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: 28px;
    padding-right: 9px;
}

.privacy-consent {
    display: flex;
    max-width: 610px;
    align-items: flex-start;
    gap: 12px;
    color: #aaaaaa;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

.privacy-consent input {
    display: grid;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-top: 1px;
    appearance: none;
    place-content: center;
    border: 2px solid #40ae33;
    border-radius: 4px;
    background-color: #333333;
    cursor: pointer;
    transition:
        background-color 200ms ease,
        box-shadow 200ms ease;
}

.privacy-consent input::before {
    width: 10px;
    height: 6px;
    border-bottom: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    content: "";
    transform: rotate(-45deg) scale(0);
    transition: transform 150ms ease;
}

.privacy-consent input:checked {
    background-color: #40ae33;
}

.privacy-consent input:checked::before {
    transform: rotate(-45deg) scale(1);
}

.privacy-consent input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgb(64 174 51 / 30%);
}

.privacy-consent a {
    color: #40ae33;
    font-weight: 700;
}

.privacy-consent a:hover {
    text-decoration: underline;
}

.form-actions .submit-button {
    flex: 0 0 auto;
    margin-inline: 0;
}

@media (prefers-reduced-motion: reduce) {
    .carousel .item,
    .carousel .item img,
    .carousel .item .price,
    .carousel .item .name {
        transition-duration: 0.01ms;
    }
}

.site-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    padding-inline: 1.75rem;
    border: 2px solid transparent;
    overflow: hidden;
    border-radius: 8px;
    background-color: #40ae33;
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
    outline: none;
    text-transform: uppercase;
    transform: skewX(-20deg);
    transition:
        color 200ms,
        border-color 200ms,
        border-radius 200ms,
        background-color 200ms,
        opacity 600ms ease-out,
        transform 600ms ease-out;
    user-select: none;
}

.site-button > .button-label {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    transform: skewX(12deg) translateX(0);
    transition: transform 200ms ease;
}

.site-button::after {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 14px;
    width: 24px;
    height: 24px;
    background-color: #ffffff;
    content: "";
    opacity: 0;
    transform: translateY(-50%) skewX(12deg) translateX(-10px);
    transition:
        opacity 200ms ease,
        transform 200ms ease;
    -webkit-mask: url("../img/arrowwhite.svg") no-repeat center / contain;
    mask: url("../img/arrowwhite.svg") no-repeat center / contain;
}

.site-button:hover {
    border-radius: 0;
    background-color: #40ae33;
}

.site-button:hover > .button-label {
    transform: skewX(12deg) translateX(14px);
}

.site-button:hover::after {
    opacity: 1;
    transform: translateY(-50%) skewX(12deg) translateX(0);
}

.site-button:active > .button-label {
    transform: skewX(12deg) translateX(10px);
}

.site-button:active::after {
    opacity: 1;
    transform: translateY(-50%) skewX(12deg) translateX(0);
}

.site-button:focus-visible {
    box-shadow: 0 0 0 2px rgb(64 174 51 / 45%);
}

.site-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.site-button:disabled::after {
    display: none;
}

.site-button.hidden-on-scroll {
    transform: skewX(-20deg) translateY(20px);
}

.site-button.hidden-on-scroll.show {
    transform: skewX(-20deg) translateY(0);
}

.submit-button {
    margin-inline: auto;
}

@media (max-width: 768px) {
    .form-container > h2 {
        margin-bottom: 36px;
    }

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

    .texty textarea {
        min-height: 222px;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding-right: 0;
    }

    .submit-button {
        width: calc(100% - 18px);
        margin-inline: auto;
    }
}

@media (max-width: 1023px) {
    .site-button > .button-label {
        transform: none;
    }
}

.privacy-page {
    min-height: 100vh;
    background-color: #1e1e1e;
    color: #e0e0e0;
}

footer a:not(.site-button) {
    transition: color 200ms ease;
}

footer a:not(.site-button):hover,
footer a:not(.site-button):focus-visible {
    color: #40ae33;
}

.privacy-main {
    min-height: 100vh;
    width: 100%;
    padding: 48px 20px 64px;
}

.privacy-wrapper {
    width: 100%;
    max-width: 780px;
    margin-inline: auto;
}

.privacy-back {
    margin-bottom: 40px;
}

.privacy-content {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
}

.privacy-header {
    margin-bottom: 32px;
    padding: 0;
    border: 0;
    text-align: left;
}

.privacy-header h1 {
    margin: 0;
    color: #ffffff;
    font-size: 36px;
    line-height: 1.2;
}

.privacy-date {
    margin-top: 10px;
    color: #aaaaaa;
    font-size: 14px;
}

.privacy-body {
    color: #e0e0e0;
    font-size: 16px;
    line-height: 1.7;
}

.privacy-body section {
    margin: 0 0 30px;
    padding: 0;
    text-align: left;
}

.privacy-body h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.4;
}

.privacy-body p {
    margin: 0;
}

.privacy-body p + p {
    margin-top: 12px;
}

.privacy-contact {
    margin-top: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.privacy-contact p + p {
    margin-top: 2px;
}

.privacy-body ul {
    margin: 12px 0 0;
    padding-left: 24px;
    list-style: disc;
}

.privacy-body li + li {
    margin-top: 4px;
}

.privacy-body a {
    color: inherit;
    font-weight: inherit;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .catalog-grid .catalog-item > img {
        height: 240px;
    }

    .privacy-main {
        padding-top: 28px;
    }

    .privacy-header h1 {
        font-size: 30px;
    }

    .privacy-back {
        margin-bottom: 32px;
    }
}

.error-page {
    min-height: 100vh;
    background-color: #1e1e1e;
    color: #ffffff;
}

.error-main {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 32px 20px;
    text-align: center;
}

.error-code {
    margin: 0;
    font-size: clamp(110px, 22vw, 240px);
    line-height: 0.8;
}

.error-message {
    margin: 32px 0;
    font-size: clamp(22px, 4vw, 34px);
}
