:root {
    --color-bg: #f6f0eb;
    --color-surface: #fffaf6;
    --color-accent: #f2552c;
    --color-accent-dark: #cd421f;
    --color-text: #1e1c1a;
    --color-muted: #6f655d;
    --color-line: rgba(30, 28, 26, 0.08);
    --shadow-soft: 0 20px 60px rgba(30, 28, 26, 0.08);
    --radius-lg: 32px;
    --radius-md: 24px;
    --radius-sm: 16px;
    --container: 1200px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 180px;
    height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    font-family: "Segoe UI", sans-serif;
    color: var(--color-text);
    background:
        radial-gradient(circle at top left, rgba(242, 85, 44, 0.14), transparent 28%),
        linear-gradient(180deg, #fff7f1 0%, var(--color-bg) 100%);
}

.site-body {
    min-height: 100vh;
}

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1 0 auto;
}

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

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

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

.header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #fff;
}

.header__inner,
.header__nav,
.header__menu,
.header__contacts,
.hero__inner,
.hero__actions,
.cards__inner,
.footer__top,
.footer__cards,
.contact__inner {
    display: flex;
}

.header__inner {
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 100px;
}

.header__brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.header__brand-logo {
    width: clamp(280px, 24vw, 380px);
    height: auto;
    display: block;
}

.custom-logo-link {
    display: block;
}

.custom-logo {
    width: clamp(280px, 24vw, 380px);
    height: auto;
    display: block;
}

.header__top {
    background: #fff;
    padding: 15px 0;
}

.header__bottom {
    background: #f4572c;
}

.header__nav {
    align-items: center;
    justify-content: flex-start;
    min-height: 50px;
}

.header__menu {
    align-items: center;
    gap: 44px;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
}

.header__link,
.footer__link,
.cards__link,
.sections__link {
    color: #f8fafc;
    transition: color 0.2s ease;
}

.header__link:hover,
.footer__link:hover,
.cards__link:hover,
.sections__link:hover {
    color: #ffffff;
}

.header__contacts {
    display: grid;
    gap: 4px;
    justify-items: end;
    margin-left: auto;
    margin-right: 28px;
}

.header__contacts a {
    transition: all 0.3s ease-in-out;
}

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

.header__contact {
    color: #0f172a;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 500;
    line-height: 1.15;
}

.header__link {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.header__link:hover {
    color: #000;
}

.header__logo {
    max-width: 85px;
    height: auto;
}

.header__burger {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    flex: 0 0 44px;
    flex-shrink: 0;
    border: 1px solid var(--color-line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.header__burger-line,
.header__burger-line::before,
.header__burger-line::after {
    position: absolute;
    left: 10px;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    transition: transform 0.2s ease, opacity 0.2s ease;
    content: "";
}

.header__burger-line {
    top: 21px;
}

.header__burger-line::before {
    top: -7px;
    left: 0;
}

.header__burger-line::after {
    top: 7px;
    left: 0;
}

.header--open .header__burger-line {
    background: transparent;
}

.header--open .header__burger-line::before {
    transform: translateY(7px) rotate(45deg);
}

.header--open .header__burger-line::after {
    transform: translateY(-7px) rotate(-45deg);
}

.hero,
.cards,
.facts,
.sections,
.calc,
.content,
.notice,
.contact {
    margin-top: 32px;
}

.hero__inner,
.contact__inner {
    align-items: stretch;
    gap: 24px;
}

.hero__content,
.hero__aside,
.contact__content,
.contact__form,
.cards__item,
.facts__item,
.sections__item,
.calc__inner,
.content__inner,
.notice__box,
.footer__card {
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    box-shadow: var(--shadow-soft);
}

.hero__content,
.hero__aside,
.contact__content,
.contact__form {
    border-radius: var(--radius-lg);
    padding: 40px;
}

.hero__content {
    flex: 1 1 70%;
}

.hero__aside {
    flex: 1 1 30%;
    display: grid;
    align-content: start;
    gap: 16px;
}

.hero__eyebrow,
.hero__lead,
.hero__paragraph,
.hero__aside-text,
.cards__text,
.facts__value,
.sections__text,
.sections__list-item,
.calc__text,
.content__wysiwyg p,
.form__input,
.footer__address,
.footer__card-text {
    color: var(--color-muted);
    line-height: 1.7;
}

.hero__title,
.contact__title,
.calc__title {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    line-height: 1;
}

.hero__lead {
    margin: 18px 0 0;
    font-size: 1.2rem;
}

.hero__text,
.content__wysiwyg,
.footer__cards,
.cards__inner,
.facts__inner,
.sections__inner {
    display: grid;
    gap: 20px;
}

.hero__actions {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    background: var(--color-accent);
    color: #fff;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
}

.hero__badge {
    width: 108px;
    height: 108px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #1e1c1a;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
}

.cards__inner,
.facts__inner,
.sections__inner,
.footer__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards__item,
.facts__item,
.sections__item,
.footer__card,
.calc__inner,
.content__inner {
    border-radius: var(--radius-md);
    padding: 28px;
}

.cards__title,
.facts__label,
.sections__title,
.footer__card-title {
    margin: 0 0 14px;
    font-size: 1.25rem;
}

.sections__list {
    margin: 18px 0 0;
    padding-left: 20px;
    display: grid;
    gap: 10px;
}

.facts__value,
.cards__text,
.sections__text,
.calc__text,
.footer__card-text,
.notice__box,
.contact__text {
    margin: 0;
}

.content__wysiwyg h2 {
    margin: 0 0 16px;
    font-size: 1.5rem;
}

.content__wysiwyg p + h2 {
    margin-top: 28px;
}

.notice__box {
    border-radius: var(--radius-md);
    padding: 26px 28px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact__content,
.contact__form {
    flex: 1 1 50%;
}

.form {
    display: grid;
    gap: 14px;
}

.form__input {
    width: 100%;
    min-height: 56px;
    padding: 0 18px;
    border: 1px solid var(--color-line);
    border-radius: 18px;
    background: #fff;
}

.footer {
    margin-top: auto;
    padding: 0;
    background: #242424;
}

.footer__inner {
    padding: 24px 32px 12px;
    background: transparent;
    color: #fff;
}

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

.footer__col:last-child {
    text-align: left;
}

.footer__text {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.35;
}

.footer__accent-link {
    color: #3b45ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer__line {
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
    margin: 16px 0 14px;
}

.footer__copy {
    margin: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 1199px) {
    .cards__inner,
    .facts__inner,
    .sections__inner,
    .footer__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .header__burger {
        display: block;
    }

    .header__inner {
        min-height: 92px;
    }

    .header__brand-logo {
        width: 280px;
    }

    .header__contacts {
        display: none;
    }

    .header__nav {
        position: absolute;
        top: 100%;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        background: #f4572c;
        border: 0;
        border-radius: 24px;
        box-shadow: var(--shadow-soft);
        min-height: 0;
    }

    .header--open .header__nav {
        display: flex;
    }

    .header__menu,
    .header__contacts,
    .hero__inner,
    .contact__inner {
        flex-direction: column;
    }

    .header__menu {
        width: 100%;
        align-items: flex-start;
        gap: 12px;
    }

    .header__link {
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {

    .hero__content,
    .hero__aside,
    .contact__content,
    .contact__form,
    .cards__item,
    .facts__item,
    .sections__item,
    .calc__inner,
    .content__inner,
    .footer__inner {
        padding: 24px;
    }

    .cards__inner,
    .facts__inner,
    .sections__inner,
    .footer__cards {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        padding: 20px 20px 12px;
    }

    .footer__row {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

