/* Local fonts */
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/manrope-cyrillic.e58febde317b.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/manrope-latin.938c6e8019b6.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Variables */
:root {
    --color-bg: #f4f0e8;
    --color-surface: #fffdf8;
    --color-surface-light: #ffffff;
    --color-text: #212121;
    --color-muted: #7a7368;
    --color-border: rgba(33, 33, 33, 0.12);

    --color-dark: #212121;
    --color-white: #ffffff;
    --color-accent: #68dbe0;

    --color-primary: #ff3a2f;
    --color-primary-hover: #f22727;
    --color-secondary: #ffffff;
    --color-danger: #a14d4d;
    --color-payment: #ff3a2f;

    --gradient-primary: linear-gradient(135deg, #ffc931 0%, #ff2424 100%);
    --gradient-primary-hover: linear-gradient(135deg, #ffd65c 0%, #ff3434 100%);

    --color-success-bg: #e7f1e7;
    --color-error-bg: #f8e7e4;
    --color-warning-bg: #fff2d8;

    --radius-sm: 14px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-modal: 30px;

    --shadow-card: 0 18px 45px rgba(33, 33, 33, 0.08);
    --shadow-card-soft: 0 10px 28px rgba(33, 33, 33, 0.06);
    --shadow-button: 0 6px 16px rgba(255, 36, 36, 0.14);
    --shadow-modal: 0 20px 55px rgba(0, 0, 0, 0.22);

    --layout-width: 1180px;
    --content-width: 760px;
    --space-page-x: 24px;
}

/* Base */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Manrope", Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--color-text);
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 201, 49, 0.12), transparent 28%),
        radial-gradient(circle at 100% 12%, rgba(255, 36, 36, 0.08), transparent 28%),
        var(--color-bg);
}

h1,
h2 {
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.035em;
}

h1 {
    margin: 0 0 16px;
    font-size: 24px;
}

h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

p {
    line-height: 1.45;
    margin: 0 0 10px 0;
}

p:last-child {
    margin-bottom: 0;
}

/* Header */
.site-header {
    flex: 0 0 auto;
    margin-bottom: 0;
    background: var(--color-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header-inner {
    max-width: var(--layout-width);
    width: 100%;
    height: 86px;
    margin: 0 auto;
    padding: 0 var(--space-page-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    box-sizing: border-box;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    color: #ffffff;
    text-decoration: none;
    flex: 0 0 auto;
}

.site-brand:hover {
    color: #ffffff;
    text-decoration: none;
}

.site-brand-logo {
    display: block;
    width: auto;
    height: 52px;
    max-height: calc(100% - 18px);
    object-fit: contain;
}

.site-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 26px;
    min-width: 0;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}

.site-nav a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    line-height: 1.2;
    font-weight: 700;
    font-size: 14px;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.site-nav a:hover {
    color: #ffffff;
    opacity: 1;
    text-decoration: none;
}

.site-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    width: 44px;
    height: 44px;
    padding: 0;
    cursor: pointer;
}

/* Layout */
.site-main {
    flex: 1 0 auto;
    max-width: var(--layout-width);
    width: 100%;
    margin: 0 auto;
    padding: 30px var(--space-page-x) 48px;
    box-sizing: border-box;
}

.container {
    max-width: var(--layout-width);
    margin: 0 auto;
    padding: 0 var(--space-page-x);
    box-sizing: border-box;
}

.section {
    margin-bottom: 24px;
}

.muted-text {
    color: var(--color-muted);
}

/* Footer */
.site-footer {
    flex: 0 0 auto;
    margin-top: auto;
    padding: 54px 0 28px;
    background: var(--color-dark);
    color: #ffffff;
}

.site-footer-inner {
    max-width: var(--layout-width);
    margin: 0 auto;
    padding: 0 var(--space-page-x);
    box-sizing: border-box;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
    gap: 48px;
    align-items: start;
}

.site-footer-column {
    min-width: 0;
}

.site-footer-brand-column {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.site-footer-logo {
    display: block;
    width: 116px;
    height: 116px;
    object-fit: contain;
    flex: 0 0 auto;
}

.site-footer-title {
    margin: 0 0 18px;
    font-weight: 700;
    color: #ffffff;
}

.site-footer-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.site-icon-link {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease;
}

.site-icon-link:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
    text-decoration: none;
}

.site-icon-link svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
    display: block;
}

.site-footer-documents {
    justify-self: end;
    width: 100%;
    max-width: 420px;
    text-align: right;
}

.site-footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    font-size: 15px;
    line-height: 1.35;
}

.site-footer-links a {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer-links a:hover {
    color: #ffffff;
    text-decoration: none;
}

.site-footer-bottom {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

.site-footer-bottom p {
    margin: 0;
}

@media (max-width: 640px) {
    body {
        margin: 0;
        padding: 0;
    }

    h1 {
        margin-bottom: 12px;
        font-size: 18px;
        line-height: 1.15;
    }

    h2 {
        font-size: 16px;
        line-height: 1.2;
    }

    .site-header {
        margin-bottom: 0;
    }

    .site-header-inner {
        height: auto;
        min-height: 74px;
        padding: 0 14px;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 10px;
    }

    .site-brand {
        justify-self: start;
    }

    .site-brand-logo {
        width: auto;
        height: 44px;
        max-height: calc(100% - 14px);
    }

    .site-menu-toggle {
        display: inline-flex;
        margin: 0;
    }

    .site-header-right {
        display: none;
        grid-column: 1 / -1;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 8px 0 16px;
    }

    .site-header-right.open {
        display: flex;
    }

    .site-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .site-nav a {
        font-size: 15px;
    }

    .site-main {
        padding: 22px 14px 38px;
    }

    .site-footer {
        margin-top: auto;
        padding: 36px 0 22px;
    }

    .site-footer-inner {
        padding: 0 18px;
    }

    .site-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: left;
    }

    .site-footer-brand-column {
        align-items: center;
        justify-content: flex-start;
        gap: 14px;
    }

    .site-footer-logo {
        width: 52px;
        height: 52px;
    }

    .site-footer-icons {
        justify-content: flex-start;
        gap: 10px;
    }

    .site-footer-documents {
        justify-self: stretch;
        max-width: none;
        text-align: left;
    }

    .site-footer-links {
        align-items: flex-start;
        gap: 10px;
        font-size: 14px;
    }

    .site-icon-link {
        width: 40px;
        height: 40px;
    }

    .site-icon-link svg {
        width: 18px;
        height: 18px;
    }

    .site-footer-bottom {
        margin-top: 28px;
        padding-top: 18px;
        font-size: 13px;
    }
}
