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

body {
    margin: 0;
    width: 100%;
    overflow-x: clip;
    font-family: var(--font-primary);
    font-weight: var(--font-regular);
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-bg);
    background-image:
        linear-gradient(to bottom, rgba(196, 181, 152, 0.15) 0%, rgba(196, 181, 152, 0.22) 100%),
        linear-gradient(to bottom, rgba(196, 181, 152, 0.15) 0%, rgba(196, 181, 152, 0.22) 100%),
        linear-gradient(to bottom, rgba(196, 181, 152, 0.15) 0%, rgba(196, 181, 152, 0.22) 100%),
        linear-gradient(to bottom, rgba(196, 181, 152, 0.15) 0%, rgba(196, 181, 152, 0.22) 100%);
    background-size: 1px 100%;
    background-position:
        calc(50vw - var(--container-width, 1280px) / 2) 0,
        calc(50vw - 100vw / 8) 0,
        calc(50vw + 100vw / 9) 0,
        calc(50vw + var(--container-width, 1280px) / 2) 0;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-primary);
    font-weight: var(--font-semibold);
    line-height: 1.2;
    margin: 0;
}
.small-text {
    font-size: var(--text-sm);
}

.caption {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}
a {
    color: inherit;
    text-decoration: none;
}

button,
.button {
    font-family: var(--font-primary);
    font-weight: var(--font-medium);
    letter-spacing: 0.02em;
}

/* Radio buttons — style global front */

input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--color-border);
    border-radius: 4px;
    background: var(--color-white);
    cursor: pointer;
    flex-shrink: 0;
    vertical-align: middle;
    transition: border-color 0.2s ease, background 0.2s ease;
}

input[type="radio"]:checked {
    border-color: var(--color-primary);
    background: var(--color-primary);
}

input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 5px;
    height: 9px;
    border: 2px solid var(--color-white);
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translate(-1px, -1px);
}

input[type="radio"]:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

@media (max-width: 1024px) {
    body {
        background-image:
            linear-gradient(to bottom, rgba(196, 181, 152, 0.22) 0%, rgba(196, 181, 152, 0.22) 100%),
            linear-gradient(to bottom, rgba(196, 181, 152, 0.22) 0%, rgba(196, 181, 152, 0.22) 100%),
            linear-gradient(to bottom, rgba(196, 181, 152, 0.22) 0%, rgba(196, 181, 152, 0.22) 100%);
        background-position: calc(100vw / 3) 0, 50vw 0, calc(100vw * 2 / 3) 0;
    }
}

@media (max-width: 640px) {
    body {
        background-image:
            linear-gradient(to bottom, rgba(196, 181, 152, 0.22) 0%, rgba(196, 181, 152, 0.22) 100%),
            linear-gradient(to bottom, rgba(196, 181, 152, 0.22) 0%, rgba(196, 181, 152, 0.22) 100%);
        background-position: calc(100vw / 3) 0, calc(100vw * 2 / 3) 0;
    }
}
