:root {
    --bg: #e8e8e8;
    --ink: #D4332B;
    --ink-40: rgba(231, 58, 74, 0.4);
    --text: #D4332B;

    --container-max: 80%;
    --container-pad: 1%;

    --font-family: "Helvetica Neue", Helvetica, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --letter-spacing-tight: -0.07em;
    --letter-spacing-normal: -0.05em;

    --gap-sm: 6px;
    --gap-md: 12px;
    --gap-lg: 18px;
    --gap-xl: 20px;
}

* {
    box-sizing: border-box;
}

::selection {
    background-color: #D4332B;
    color: #e8e8e8;
}

::-moz-selection {
    background-color: #D4332B;
    color: #e8e8e8;
}

html,
body {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    margin: 0;
    font-family: var(--font-family);
    color: var(--text);
    background-color: var(--bg);
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    background-attachment: scroll;
    position: relative;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--container-pad);
}

.hero-banner {
    position: relative;
    height: 100dvh;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg) 100%);
}

.circular-design {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}


.hero-image,
.rotating-circles,
.scroll-cue,
.section-title,
.table {
    opacity: 0;
}


.hero-image.loaded {
    animation: fadeInPhotoZoom 2.5s ease-out 0.5s forwards;
}

.rotating-circles.loaded {
    animation:
        fadeInZoomOut 2.0s ease-in-out 0.5s forwards,
        subtlePulse 8s linear 2.5s infinite;
}

.scroll-cue.loaded {
    animation: fadeInSmooth 3s ease-in-out 2.0s forwards;
}

.section-title.loaded {
    animation: fadeInFromBottom 1.2s ease-in-out 0.1s forwards;
}

.table.loaded {
    animation: fadeInFromBottom 1.2s ease-in-out 0.1s forwards;
}

.circles.loaded {
    animation: simpleRotation 30s linear 0.5s infinite;
}

@keyframes fadeInPhotoZoom {
    0% {
        opacity: 0;
        transform: scale(1.08);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInSmooth {
    0% {
        opacity: 0;
        transform: translateY(0) scale(1.1);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.rotating-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    perspective: 1000px;
    mix-blend-mode: normal;
}

.rotating-circles {

    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform, opacity;
}

@keyframes fadeInZoomOut {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.circles {
    width: 160%;
    height: 160%;
    object-fit: contain;
    object-position: center center;
    opacity: 1;
    transform-origin: center center;
    transition: filter 0.3s ease, transform 0.15s ease;

    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

@keyframes simpleRotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes subtlePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.circles-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url('../assets/circles.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation:
        smoothScale 3s ease-out forwards,
        gentleFloat 25s ease-in-out infinite 3s;
    opacity: 0.6;
}

@keyframes smoothScale {
    0% {
        transform: scale(2.5) rotate(0deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }
}

@keyframes gentleFloat {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(2px, -3px);
    }

    66% {
        transform: translate(-2px, 2px);
    }
}


.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.scroll-cue {
    position: absolute;
    left: 5%;
    bottom: 5%;
    background: #D4332B;
    border: none;
    cursor: pointer;
    z-index: 4;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    overflow: visible;
}

.scroll-cue img {
    filter: brightness(0) invert(1);

}


.section-title {
    margin: 28px 0 12px 0;
    text-align: center;
    font-weight: 800;
    font-size: 27px;
    letter-spacing: var(--letter-spacing-tight);
    color: var(--ink);
}

@keyframes fadeInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.table {
    display: grid;
    row-gap: 8px;
}

.table-row {
    letter-spacing: var(--letter-spacing-normal);
    display: grid;
    grid-template-columns: 0.7fr 0.8fr 1.2fr 0.8fr;
    align-items: center;
    padding: 16px 12px;
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    gap: var(--gap-xl);
}

.table-row:first-child {
    border-top: none;
}

.table-row:last-child {
    border-bottom: none;
}

.table-head {
    color: var(--ink);
    letter-spacing: var(--letter-spacing-tight);
    font-weight: 700;
    text-align: center;
}

.table-cell {
    text-align: center;
    font-weight: 600;
}

.table-cell:first-child {
    text-align: left;
}

.table-cell:last-child {
    text-align: right;
}

.table .buy {
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
}

.table .soon {
    color: var(--ink-40);
    font-weight: 600;
}


.site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-xl);
    padding-bottom: 40px;
}

.social {
    display: flex;
    gap: var(--gap-lg);
}

.social-btn {
    width: 44px;
    height: 44px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--ink);
}

.social-btn img {
    width: 22px;
    height: 22px;
}

.contacts-info {
    font-size: 14px;
    letter-spacing: var(--letter-spacing-normal);
    text-decoration: none;
    padding: 6px 0;
    color: var(--ink);
    opacity: 0.4;
    font-weight: 600;
}



@media (max-width: 768px) {
    :root {
        --container-max: 96%;
        --container-pad: 1%;
    }

    .container {
        padding: var(--gap-md);
    }

    .circles {
        width: 220%;
        height: 220%;
        object-fit: contain;
        opacity: 1;
        animation-duration: 25s;

    }

    .scroll-cue {
        left: 3%;
        bottom: 3%;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }


    .table {
        display: block;
    }

    .table-row.table-head {
        display: none;
    }

    .table-row {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 0px 16px;
        padding: 16px 0;
        border-top: 2px solid var(--ink);
        border-bottom: 2px solid var(--ink);
        margin-bottom: 8px;
    }

    .table-row:first-child {
        border-top: none;
    }

    .table-row:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .table-cell:nth-child(1) {
        grid-column: 1;
        grid-row: 1 / 3;
        padding-right: 100%;
        font-size: 16px;
        font-weight: 800;
        color: var(--ink);
        line-height: 1;
        text-transform: uppercase;
        align-self: center;
    }

    .table-cell:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
        font-size: 16px;
        font-weight: 600;
        color: var(--ink);
        line-height: 1;
        align-self: center;
        text-align: center;
    }

    .table-cell:nth-child(4) {
        grid-column: 3;
        grid-row: 1 / 3;
        align-self: center;
        justify-self: end;
    }


    .table-cell:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
        font-size: 12px;
        font-weight: 500;
        color: var(--ink);
        opacity: 0.7;
        line-height: 1.2;
        align-self: start;
        margin-top: 4px;
        text-align: center;
    }


    .table .buy {
        background: var(--ink);
        color: #e8e8e8;
        text-decoration: none;
        font-weight: 700;
        padding: 10px 15px;
        border: 2px solid var(--ink);
        font-size: 14px;
        line-height: 1;
        text-transform: uppercase;
        transition: all 0.2s ease;
    }

    .table .buy:hover {
        background: var(--ink);
        color: white;
    }

    .table .soon {
        background: transparent;
        color: var(--ink);
        font-weight: 700;
        padding: 10px 18px;
        border: 2px solid var(--ink);
        font-size: 14px;
        line-height: 1;
        text-transform: uppercase;
        opacity: 0.6;
    }

    .contacts-info {
        margin-bottom: 30px;
    }
}
