
:root {
    --yellow: #ffe16a;
    --yellow-soft: #fff1a8;
    --yellow-hover: #ffd84d;
    --black: #090909;
    --white: #ffffff;
    --text: #000000;
    --container: 144rem;


    --red: #E31318;
    --bg: #ffffff;
    --bg-warm: #f7f1e8;
    --muted: rgba(0, 0, 0, 0.56);
    --border: rgba(0, 0, 0, 0.08);

    --container: 144rem;
    --page-max: 192rem;
    --section-gap: 8.4rem;
    --side-gap: 1.8rem;

    --radius-lg: 5rem;
    --radius-md: 2.4rem;

    --shadow-card: 0 1.4rem 4.2rem rgba(0, 0, 0, 0.07);
    --shadow-card-hover: 0 2.2rem 5.8rem rgba(0, 0, 0, 0.11);
}

html {
    font-size: 10px;
    box-sizing: border-box;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

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

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

    font-family: Inter, Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.4;
    font-weight: 400;

    color: var(--text);
    background: var(--bg);

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg,
video,
canvas,
picture {
    max-width: 100%;
}

img,
picture {
    display: block;
}

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

button,
input,
textarea,
select,
a {
    font-family: Inter, Arial, sans-serif;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
}

/* =========================
OCTOBER CMS LAYOUT
========================= */

#layout-header {
    position: relative;
    z-index: 50;
}

#layout-content {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 40rem;
    overflow: hidden;
    background: var(--bg);
}

#layout-content > *:first-child {
    margin-top: 0;
}

#layout-content > *:last-child {
    margin-bottom: 0;
}

#layout-footer {
    position: relative;
    z-index: 2;
}

/* Если hero стоит первым блоком страницы */
#layout-content > .main-hero:first-child {
    margin-top: 0;
}

/* =========================
CONTAINERS
========================= */

.page-container,
.container,
.hero-container,
.products-section .container,
.categories-container,
.contacts-container,
.footer-container,
.section-inner,
.why-inner,
.howto-inner {
    width: min(var(--container), calc(100% - 7.2rem));
    margin-inline: auto;
}

/* =========================
TYPOGRAPHY
========================= */

.section-title,
.products-title,
.categories-title,
.howto-title,
.contacts-section-title {
    margin: 0;
    font-size: 5.2rem;
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.035em;
}

.section-title--white {
    color: #fff;
}

/* =========================
DEFAULT BUTTONS
========================= */

.site-btn,
.btn,
.btn-primary,
.btn-secondary {
    min-height: 4.8rem;
    padding: 0 2.4rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;

    border: 0;
    border-radius: 1.2rem;

    font-size: 1.55rem;
    line-height: 1;
    font-weight: 500;
    text-decoration: none;

    cursor: pointer;
    transition: 0.18s ease;
}

.btn-primary,
.site-btn--yellow {
    background: var(--yellow);
    color: #000;
}

.btn-primary:hover,
.site-btn--yellow:hover {
    background: var(--yellow-hover);
    color: #000;
}

.btn-secondary,
.site-btn--dark {
    background: #000;
    color: #fff;
}

.btn-secondary:hover,
.site-btn--dark:hover {
    background: var(--red);
    color: #fff;
}

/* =========================
DEFAULT FORM ELEMENTS
========================= */

input,
textarea,
select {
    border-radius: 1.2rem;
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: rgba(0, 0, 0, 0.38);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--yellow);
}

/* =========================
RESPONSIVE DEFAULT
========================= */

@media (max-width: 760px) {
    :root {
        --section-gap: 5.4rem;
        --side-gap: 1.4rem;
        --radius-lg: 3rem;
        --radius-md: 1.8rem;
    }

    .page-container,
    .container,
    .hero-container,
    .products-section .container,
    .categories-container,
    .contacts-container,
    .footer-container,
    .section-inner,
    .why-inner,
    .howto-inner {
        width: calc(100% - 2.8rem);
    }

    .section-title,
    .products-title,
    .categories-title,
    .howto-title,
    .contacts-section-title {
        font-size: 3.2rem;
    }

    #layout-content {
        min-height: 30rem;
    }
}
