@font-face {
    font-family: "Onest";
    src: url("/assets/fonts/Onest-100.ttf") format("truetype");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Onest";
    src: url("/assets/fonts/Onest-200.ttf") format("truetype");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Onest";
    src: url("/assets/fonts/Onest-300.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Onest";
    src: url("/assets/fonts/Onest-400.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Onest";
    src: url("/assets/fonts/Onest-500.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Onest";
    src: url("/assets/fonts/Onest-600.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Onest";
    src: url("/assets/fonts/Onest-700.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Onest";
    src: url("/assets/fonts/Onest-800.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Onest";
    src: url("/assets/fonts/Onest-900.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #070707;
    --bg-2: #0b0c0d;
    --panel: #0f1011;
    --panel-2: #141516;
    --text: #f3f1ec;
    --muted: #aaa59a;
    --muted-2: #746f66;
    --line: rgba(255, 255, 255, 0.13);
    --line-strong: rgba(255, 255, 255, 0.2);
    --gold: #c88f2c;
    --gold-light: #d8aa55;
    --gold-soft: rgba(216, 170, 85, 0.18);
    --max: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background:
        radial-gradient(circle at 74% 0%, rgba(216, 170, 85, 0.08), transparent 30%),
        var(--bg);
    color: var(--text);
    font-family: "Onest", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 34px;
    padding: 17px clamp(20px, 4vw, 64px);
    border-bottom: 1px solid transparent;
    color: var(--text);
    transition: background 0.2s ease, border-color 0.2s ease, padding 0.2s ease;
}

.site-header--scrolled {
    padding-top: 11px;
    padding-bottom: 11px;
    background: rgba(7, 7, 7, 0.82);
    border-color: rgba(216, 170, 85, 0.16);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
}
.site-header--scrolled .brand__text{
    opacity: 1;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    font-weight: 600;
}

.brand__mark {
    width: 42px;
    height: 42px;
    display: block;
}

.brand__text {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
}

.nav {
    display: flex;
    justify-content: center;
    gap: clamp(20px, 2.8vw, 44px);
    color: #fff;
    font-size: 12px;
    font-weight: 200;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.nav a,
.header-phone {
    transition: color 0.2s ease;
}

.nav a:hover,
.header-phone:hover {
    color: var(--gold-light);
}

.header-phone {
    color: #fff;
    font-size: 16px;
    letter-spacing: 0.02em;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    overflow: hidden;
    padding: 120px clamp(22px, 5vw, 72px) 82px;
}

.hero__oil,
.hero__grain {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero__grain {
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(7,7,7,0.94) 0%, rgba(7,7,7,0.62) 46%, rgba(7,7,7,0.55) 72%, rgba(7,7,7,0.78) 100%),
        linear-gradient(180deg, rgba(7,7,7,0.02) 0%, rgba(7,7,7,0.64) 100%),
        radial-gradient(circle at 7% 88%, rgba(216, 170, 85, 0.08), transparent 28%),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0, rgba(255,255,255,0.012) 1px, transparent 1px, transparent 5px);
}

.hero__inner,
.hero__content,
.scroll-cue {
    position: relative;
    z-index: 2;
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 820px);
    align-items: center;
}

.hero__content {
    max-width: 820px;
    padding-left: clamp(0px, 1.2vw, 18px);
    border-left: 1px solid rgba(216, 170, 85, 0.22);
}

.eyebrow {
    margin: 0 0 17px;
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.06;
    letter-spacing: 0;
}

h1 {
    font-size: clamp(58px, 8vw, 118px);
    font-weight: 800;
    line-height: 0.9;
}

h2 {
    max-width: 820px;
    font-size: clamp(34px, 4.1vw, 58px);
    font-weight: 800;
}

.hero__lead {
    max-width: 720px;
    margin: 26px 0 0;
    color: rgba(243, 241, 236, 0.72);
    font-size: clamp(18px, 1.45vw, 21px);
    font-weight: 100;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}

.hero-badges {
    position: absolute;
    right: clamp(42px, 7vw, 132px);
    bottom: 54px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    width: min(430px, 34vw);
    padding: 0 0 18px;
    border-bottom: 1px solid rgba(216, 170, 85, 0.28);
}

.hero-badges span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(7, 7, 7, 0.28);
    color: rgba(243, 241, 236, 0.86);
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(8px);
}

.hero-badges b {
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 28px;
    border: 1px solid var(--line-strong);
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn--primary {
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #0b0906;
    box-shadow: 0 14px 42px rgba(200, 143, 44, 0.16);
}

.btn--primary:hover {
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    filter: brightness(1.08);
    box-shadow: 0 16px 48px rgba(200, 143, 44, 0.22);
}

.btn--ghost:hover,
.btn--copy:hover,
.slider-btn:hover {
    border-color: var(--gold-light);
    color: var(--gold-light);
}

.market-card span,
.section-note,
.muted,
.requisites-row span,
.requisites-side span,
label,
.footer {
    color: var(--muted);
}

.requisites-row strong {
    min-width: 0;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 24px;
    width: 22px;
    height: 38px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    transform: translateX(-50%);
}

.scroll-cue::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 8px;
    width: 3px;
    height: 8px;
    border-radius: 999px;
    background: var(--gold-light);
    transform: translateX(-50%);
    animation: cue 1.4s ease-in-out infinite;
}

@keyframes cue {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.42; }
    50% { transform: translate(-50%, 11px); opacity: 1; }
}

.section {
    scroll-margin-top: 88px;
    padding: clamp(76px, 8vw, 118px) clamp(22px, 5vw, 72px);
    border-top: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.012), transparent 220px),
        var(--bg);
}

.section > * {
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
}

.section__head {
    margin-bottom: 38px;
}

.section__head--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    gap: clamp(28px, 5vw, 72px);
    align-items: end;
}

.section-note {
    margin: 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--line-strong);
    font-size: 16px;
    font-weight: 100;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
    gap: 56px;
    align-items: start;
}

.about-grid p {
    margin: 0;
    max-width: 720px;
    color: rgba(243, 241, 236, 0.72);
    font-size: 18px;
    font-weight: 100;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
}

.stats div {
    display: grid;
    gap: 5px;
    min-height: 116px;
    padding: 18px;
    border-right: 1px solid var(--line);
    background: rgba(255,255,255,0.018);
}

.stats div:last-child {
    border-right: 0;
}

.stats strong {
    color: var(--gold-light);
    font-size: 27px;
    font-weight: 800;
}

.stats span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 300;
}

.section--market,
.section--requisites,
.section--contact {
    background:
        radial-gradient(circle at 12% 0%, rgba(216, 170, 85, 0.045), transparent 28%),
        var(--bg-2);
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid var(--line-strong);
    border-left: 1px solid var(--line);
}

.market-card {
    display: grid;
    gap: 10px;
    min-height: 138px;
    padding: 20px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,0.026), rgba(255,255,255,0.012));
}

.market-card strong {
    align-self: end;
    color: var(--text);
    font-size: clamp(23px, 2vw, 31px);
    font-weight: 800;
}

.market-card small {
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 400;
}

.market-card--accent {
    background: linear-gradient(145deg, rgba(66,46,20,0.34), rgba(255,255,255,0.018));
}

.price-table {
    border-top: 1px solid var(--line-strong);
    border-left: 1px solid var(--line);
}

.price-table__row {
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) minmax(220px, 0.85fr) minmax(170px, 0.55fr);
    gap: 22px;
    min-height: 58px;
    padding: 16px 20px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,0.014);
}

.price-table__row:nth-child(odd):not(.price-table__row--head) {
    background: rgba(255,255,255,0.03);
}

.price-table__row--head {
    min-height: 48px;
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--panel-2);
}

.price-table__row strong {
    color: var(--text);
    font-weight: 800;
}

.section--partners {
    background: #080808;
}

.supply-slider {
    margin-top: clamp(44px, 5vw, 70px);
    border-top: 1px solid var(--line-strong);
}

.supply-main {
    width: 100%;
    overflow: hidden;
    background: #050505;
}

.supply-slide {
    position: relative;
    min-height: clamp(320px, 42vw, 520px);
    overflow: hidden;
}

.supply-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5,5,5,0.72), transparent 48%),
        linear-gradient(180deg, transparent 54%, rgba(5,5,5,0.82));
    pointer-events: none;
}

.supply-slide img {
    width: 100%;
    height: 100%;
    min-height: clamp(320px, 42vw, 520px);
    display: block;
    object-fit: cover;
}

.supply-slide__caption {
    position: absolute;
    left: clamp(22px, 4vw, 44px);
    bottom: clamp(22px, 4vw, 44px);
    z-index: 2;
    display: grid;
    grid-template-columns: 58px minmax(0, 500px);
    gap: 16px;
    align-items: start;
    max-width: min(720px, calc(100% - 44px));
}

.supply-slide__caption > span {
    display: grid;
    place-items: center;
    height: 46px;
    border-top: 1px solid rgba(216, 170, 85, 0.6);
    border-bottom: 1px solid rgba(216, 170, 85, 0.24);
    color: var(--gold-light);
    font-size: 16px;
    font-weight: 900;
}

.supply-slide__caption h3 {
    font-size: clamp(24px, 2.4vw, 36px);
    font-weight: 800;
}

.supply-slide__caption p {
    margin: 8px 0 0;
    color: rgba(243, 241, 236, 0.74);
    font-size: 15px;
    font-weight: 100;
}

.supply-slider__bar {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    padding-top: 12px;
}

.supply-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.supply-controls .slider-btn {
    width: 54px;
    height: 100%;
    min-height: 72px;
}

.supply-thumbs {
    width: 100%;
    overflow: hidden;
}

.supply-thumb {
    position: relative;
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    width: auto;
    min-height: 72px;
    padding: 9px 14px 9px 9px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.014);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.supply-thumb::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: transparent;
    transition: background 0.2s ease;
}

.supply-thumb img {
    width: 74px;
    height: 50px;
    object-fit: cover;
    filter: saturate(0.76) contrast(1.04);
}

.supply-thumb span {
    position: absolute;
    left: 14px;
    top: 12px;
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.supply-thumb strong {
    font-size: 12px;
    font-weight: 700;
}

.supply-thumb:hover,
.supply-thumb.swiper-slide-thumb-active {
    border-color: rgba(216, 170, 85, 0.46);
    background: rgba(216, 170, 85, 0.07);
}

.supply-thumb.swiper-slide-thumb-active::after {
    background: var(--gold-light);
}

.slider-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-self: end;
}

.slider-btn {
    width: 48px;
    height: 48px;
    border: 1px solid var(--line-strong);
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.partner-swiper {
    width: 100%;
    overflow: hidden;
    border-top: 1px solid var(--line-strong);
    border-left: 1px solid var(--line);
}

.partner-card {
    min-height: 190px;
    padding: 26px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.026), rgba(255,255,255,0.012));
}

.partner-card span {
    display: block;
    color: var(--text);
    font-size: 20px;
    font-weight: 800;
}

.partner-card p {
    margin: 26px 0 0;
    color: var(--muted);
    font-weight: 400;
}

.requisites-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    align-items: start;
}

.requisites-table {
    border-top: 1px solid var(--line-strong);
    border-left: 1px solid var(--line);
}

.requisites-table h3 {
    padding: 17px 20px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--panel-2);
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.requisites-row {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    min-height: 58px;
    padding: 17px 20px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,0.016);
}

.requisites-row:nth-of-type(odd) {
    background: rgba(255,255,255,0.028);
}

.requisites-side {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 14px;
    padding: 24px;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    background: rgba(255,255,255,0.018);
}

.requisites-side strong {
    font-size: 18px;
    line-height: 1.35;
}

.requisites-side p {
    margin: 0;
    color: var(--muted);
    font-weight: 100;
}

.copy-status {
    min-height: 24px;
    color: var(--gold-light) !important;
    font-weight: 700;
}

.btn--copy {
    justify-self: end;
    min-width: 240px;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
    padding: 28px;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    background: rgba(255,255,255,0.018);
}

label {
    display: grid;
    gap: 9px;
    font-size: 13px;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 0;
    background: #0b0c0d;
    color: var(--text);
    outline: none;
    padding: 15px 16px;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: var(--muted-2);
}

input:focus,
textarea:focus {
    border-color: var(--gold-light);
}

.contact-form__wide,
.contact-form__footer,
.form-status {
    grid-column: 1 / -1;
}

.contact-form__trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.consent-field {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
    cursor: pointer;
}

.consent-field input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.consent-field__box {
    position: relative;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border: 1px solid rgba(216, 170, 85, 0.42);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01)),
        rgba(7, 7, 7, 0.72);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.consent-field__box::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border-right: 2px solid #0b0906;
    border-bottom: 2px solid #0b0906;
    opacity: 0;
    transform: rotate(42deg) scale(0.7);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.consent-field input:checked + .consent-field__box {
    border-color: var(--gold-light);
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    box-shadow: 0 10px 26px rgba(200, 143, 44, 0.16);
}

.consent-field input:checked + .consent-field__box::after {
    opacity: 1;
    transform: rotate(42deg) scale(1);
}

.consent-field input:focus-visible + .consent-field__box {
    outline: 2px solid rgba(216, 170, 85, 0.45);
    outline-offset: 3px;
}

.consent-field__text {
    max-width: 620px;
    text-align: left;
}

.consent-field .link-button {
    text-align: left;
    vertical-align: baseline;
}

.link-button {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--gold-light);
    font: inherit;
    font-weight: 800;
    text-decoration: underline;
    cursor: pointer;
}

.link-button:hover {
    text-decoration: none;
}

.contact-form__footer {
    display: grid;
    grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}

.contact-form__footer span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
}

.form-status {
    min-height: 24px;
    margin: 0;
    color: var(--gold-light);
    font-weight: 700;
}

.form-status--error {
    color: #ff9f7a;
}

.footer {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: space-between;
    align-items: flex-start;
    padding: 28px clamp(22px, 5vw, 72px);
    border-top: 1px solid var(--line);
    background: #050505;
}

.footer span {
    display: block;
    color: var(--text);
    font-weight: 700;
}

.footer p {
    margin: 6px 0 0;
    color: var(--muted);
    font-weight: 400;
}

.footer__contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.cookie-alert {
    position: fixed;
    left: clamp(16px, 4vw, 48px);
    right: clamp(16px, 4vw, 48px);
    bottom: 18px;
    z-index: 80;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-alert.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-alert.hidden {
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
}

.cookie-alert__inner {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max);
    margin: 0 auto;
    padding: 18px 20px;
    border: 1px solid var(--line-strong);
    background: rgba(12, 13, 14, 0.96);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(14px);
}

.cookie-alert__text p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 100;
}

.cookie-alert__btn {
    flex: 0 0 auto;
}

.legal-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
}

.legal-modal.visible {
    display: block;
}

.legal-modal__mount {
    position: relative;
    z-index: 1;
}

.legal-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    animation: modal-fade 0.18s ease both;
}

.legal-modal__dialog {
    position: relative;
    width: min(940px, calc(100% - 32px));
    max-height: calc(100vh - 64px);
    margin: 32px auto;
    overflow: auto;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--line-strong);
    background: var(--panel);
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.52);
    scrollbar-width: thin;
    scrollbar-color: var(--gold) rgba(255,255,255,0.06);
    animation: modal-rise 0.22s ease both;
}

.legal-modal__dialog::-webkit-scrollbar,
.policy-table-wrap::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.legal-modal__dialog::-webkit-scrollbar-track,
.policy-table-wrap::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.045);
}

.legal-modal__dialog::-webkit-scrollbar-thumb,
.policy-table-wrap::-webkit-scrollbar-thumb {
    border: 2px solid rgba(15,16,17,0.92);
    background: linear-gradient(180deg, var(--gold), var(--gold-light));
}

.legal-modal__dialog--loading {
    width: min(420px, calc(100% - 32px));
    min-height: 240px;
    display: grid;
    place-items: center;
    text-align: center;
}

.legal-loader {
    display: grid;
    justify-items: center;
    gap: 10px;
}

.legal-loader__mark {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(216, 170, 85, 0.34);
    border-top-color: var(--gold-light);
    border-radius: 50%;
    animation: legal-loader-spin 0.8s linear infinite;
}

.legal-loader strong {
    color: var(--text);
    font-size: 15px;
}

.legal-loader p {
    max-width: 260px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

@keyframes modal-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modal-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes legal-loader-spin {
    to { transform: rotate(360deg); }
}

.legal-modal__dialog h2 {
    font-size: clamp(28px, 4vw, 44px);
}

.legal-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--text);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.legal-modal__close:hover {
    color: var(--gold-light);
    border-color: var(--gold-light);
}

.legal-modal__content {
    display: grid;
    gap: 14px;
    margin-top: 26px;
    color: var(--muted);
    font-weight: 100;
}

.legal-modal__content p {
    margin: 0;
}

.legal-modal__content a {
    color: var(--gold-light);
    font-weight: 800;
    text-decoration: underline;
}

.policy-doc {
    gap: 28px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
}

.policy-doc section {
    display: grid;
    gap: 12px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.policy-doc section:first-child {
    padding-top: 0;
    border-top: 0;
}

.policy-doc h3,
.policy-doc h4 {
    margin: 0;
    color: var(--text);
    line-height: 1.25;
}

.policy-doc h3 {
    font-size: 18px;
    font-weight: 800;
}

.policy-doc h4 {
    margin-top: 6px;
    color: var(--gold-light);
    font-size: 14px;
    font-weight: 800;
}

.policy-doc ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding-left: 20px;
}

.policy-doc li::marker {
    color: var(--gold-light);
}

.policy-card {
    display: grid;
    gap: 8px;
    padding: 18px 20px;
    border-left: 2px solid var(--gold);
    background: rgba(255,255,255,0.018);
}

.policy-card strong,
.policy-definitions dt {
    color: var(--text);
    font-weight: 800;
}

.policy-definitions {
    display: grid;
    grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
    gap: 10px 18px;
    margin: 0;
}

.policy-definitions dt,
.policy-definitions dd {
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.policy-table-wrap {
    overflow-x: auto;
    border-top: 1px solid var(--line-strong);
    border-left: 1px solid var(--line);
    scrollbar-width: thin;
    scrollbar-color: var(--gold) rgba(255,255,255,0.06);
}

.policy-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.policy-table th,
.policy-table td {
    vertical-align: top;
    padding: 12px 14px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.policy-table th {
    color: var(--gold-light);
    font-weight: 800;
    background: rgba(255,255,255,0.025);
}

@media (max-width: 1100px) {
    .market-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .requisites-layout {
        grid-template-columns: 1fr;
    }

    .requisites-side {
        position: static;
    }
}

@media (max-width: 900px) {
    .site-header {
        grid-template-columns: auto 1fr;
    }

    .nav {
        display: none;
    }

    .header-phone {
        justify-self: end;
    }

    .section__head--split,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-badges {
        position: static;
        justify-content: flex-start;
        width: 100%;
        margin-top: 34px;
    }

    .btn--copy,
    .slider-controls {
        justify-self: start;
    }

    .stats,
    .market-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .supply-slider__bar {
        grid-template-columns: 1fr;
    }

    .supply-controls {
        width: 116px;
    }
}

@media (max-width: 680px) {
    .site-header {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .header-phone {
        display: none;
    }

    .brand__text {
        white-space: normal;
        opacity: 1;
    }

    .hero {
        min-height: 100svh;
        padding-top: 92px;
        padding-bottom: 56px;
    }

    .hero__content {
        padding-left: 0;
        border-left: 0;
    }

    h1 {
        font-size: clamp(42px, 15vw, 64px);
    }

    .hero__lead {
        max-width: 100%;
        margin-top: 14px;
        font-size: 14px;
        line-height: 1.45;
    }

    .hero__actions,
    .footer {
        flex-direction: column;
    }

    .hero__actions {
        margin-top: 18px;
    }

    .hero-badges {
        max-width: 420px;
        margin-top: 20px;
        padding-bottom: 0;
        border-bottom: 0;
    }

    .hero__actions .btn,
    .contact-form__footer .btn {
        width: 100%;
    }

    .hero__actions .btn {
        padding-right: 18px;
        padding-left: 18px;
        font-size: 14px;
        white-space: nowrap;
    }

    .requisites-row,
    .price-table__row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .stats,
    .market-grid,
    .contact-form,
    .contact-form__footer {
        grid-template-columns: 1fr;
    }

    .supply-slide__caption {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .supply-slide__caption > span {
        width: 54px;
    }

    .supply-thumb {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .supply-thumb img {
        width: 74px;
        height: 52px;
    }

    .price-table__row--head {
        display: none;
    }

    .contact-form {
        padding: 20px;
    }

    .consent-field {
        gap: 10px;
        font-size: 12px;
        line-height: 1.36;
        align-items: flex-start;
    }

    .consent-field__box {
        flex-basis: 18px;
        width: 18px;
        height: 18px;
    }

    .consent-field__box::after {
        left: 5px;
        top: 2px;
        width: 6px;
        height: 10px;
    }

    .cookie-alert {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .cookie-alert__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .cookie-alert__btn {
        width: 100%;
    }

    .legal-modal__dialog {
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        margin: 10px auto;
        padding: 22px 18px;
    }

    .policy-doc {
        font-size: 14px;
        line-height: 1.58;
    }

    .policy-definitions {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .policy-definitions dd {
        padding-top: 0;
        border-top: 0;
    }
}
