:root {
    --or1: #f7941d;
    --or2: #f15a24;
    --ink: #2b2b2b;
    --mut: #5d6370;
    --bg: #fff;
    --soft: #ffe9da;
    --card: #fff;
    --line: #e6e8ee;
    --dark: #2b2b2b;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --ink: #f3f3f3;
        --mut: #b5b9c4;
        --bg: #16161a;
        --soft: #2a2019;
        --card: #1f1f25;
        --line: #34343d;
        --dark: #0e0e11;
    }
}

:root[data-theme="dark"] {
    --ink: #f3f3f3;
    --mut: #b5b9c4;
    --bg: #16161a;
    --soft: #2a2019;
    --card: #1f1f25;
    --line: #34343d;
    --dark: #0e0e11;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(76px + env(safe-area-inset-top, 0px));
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 17px/1.6 'Open Sans', system-ui, sans-serif;
}

body.no-scroll {
    overflow: hidden;
}

h1, h2, h3 {
    font-family: Montserrat, 'Open Sans', sans-serif;
    line-height: 1.15;
    margin: 0 0 .6em;
}

h1 {
    font-size: clamp(30px, 5vw, 54px);
    font-weight: 300;
}

h1 b, h2 b {
    font-weight: 700;
}

h2 {
    font-size: clamp(26px, 3.6vw, 40px);
    font-weight: 300;
}

h3 {
    font-size: 20px;
    font-weight: 700;
}

p {
    margin: 0 0 1em;
}

a {
    color: inherit;
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    border: 0;
    cursor: pointer;
    font: 700 16px Montserrat, sans-serif;
    color: #fff;
    text-decoration: none;
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--or1), var(--or2));
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(241, 90, 36, .3);
}

.btn:hover {
    filter: brightness(1.07);
}

:focus-visible {
    outline: 1px solid var(--or2);
    outline-offset: 1px;
}

header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.bar {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 76px;
}

.logo {
    display: flex;
    align-items: center;
}

nav {
    margin-left: auto;
    display: flex;
    gap: 22px;
    font: 500 14px Montserrat, sans-serif;
}

nav a {
    text-decoration: none;
    color: var(--mut);
}

nav a:hover {
    color: var(--or2);
}

.bar .btn {
    padding: 11px 20px;
    font-size: 14px;
}

.hero {
    background: linear-gradient(120deg, var(--soft), var(--bg) 70%);
    padding: 70px 0 80px;
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 48px;
    align-items: center;
}

.lead {
    font-size: 19px;
    color: var(--mut);
    max-width: 560px;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 30px;
    padding: 0;
    list-style: none;
}

.badges li {
    border-left: 4px solid var(--or2);
    padding: 2px 14px;
    font-weight: 600;
    font-size: 15px;
}

.fcard {
    background: var(--card);
    border-radius: 10px;
    padding: 30px;
    border-top: 6px solid var(--or2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .12);
}

.fcard h3 {
    font-weight: 500;
    font-size: 24px;
}

form label.f {
    display: block;
    margin-bottom: 15px;
}

input[type=text], input[type=tel], input[type=email], input[type=url] {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}

.chk {
    display: flex;
    gap: 2px;
    font-size: 13px;
    color: var(--mut);
    margin: 6px 0 18px;
    align-items: flex-start;
}

form .btn {
    width: 100%;
}

/*.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}*/

.soft {
    background: var(--soft);
}

/* Фоновый цвет для секции с классом .soft */
.soft {
    background: var(--soft); /* Переменная --soft: #ffe9da (в светлой теме) / #2a2019 (в темной) */
}

/* Сетка галереи */
.gal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 32px;
}

.gal figure {
    margin: 0;
}

/* Кнопка-превью карточки */
.thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--card);
    cursor: zoom-in;
    aspect-ratio: 16 / 10;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    display: block;
}

.gal figcaption {
    font-size: 14px;
    color: var(--mut);
    margin-top: 8px;
    text-align: center;
}

/* Стили модального окна (Lightbox) */
#lb {
    width: min(1200px, 96vw);
    max-height: 92vh;
    overflow: auto;
    background: var(--card);
    padding: 0;
    border: 0;
    border-radius: 10px;
}

#lb::backdrop {
    background: rgba(0, 0, 0, 0.6);
}

#lb img {
    width: 100%;
    display: block;
}

#lb .x {
    position: fixed;
    right: 20px;
    top: 14px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 24px;
    line-height: 1;
    border: 0;
    cursor: pointer;
}

#lb-caption {
    padding: 12px 16px;
    margin: 0;
    font-size: 15px;
    color: var(--txt, #333);
    background: var(--card, #fff);
    text-align: center;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 860px) {
    .gal {
        grid-template-columns: 1fr !important;
    }
}

.num {
    font: 700 34px Montserrat, sans-serif;
    color: var(--or2);
    line-height: 1;
    margin-bottom: 8px;
}

.dark {
    background: var(--dark);
    color: #fff;
}

.dark p {
    color: #d6d8de;
}

.grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 36px;
}

.note-box {
    margin-top: 32px;
    padding: 18px 22px;
    background: rgba(255, 87, 34, 0.15);
    border: 1px solid #ff5722;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 14px;
}

.note-box p {
    margin: 0;
}

.note-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.item {
    border-top: 3px solid var(--or2);
    padding-top: 18px;
}

.item p {
    color: var(--mut);
    margin: 0;
}

.dark .item p {
    color: #c9ccd4;
}

.photo {
    width: 100%;
    aspect-ratio: 327/350;
    object-fit: cover;
    border-radius: 10px;
    background: linear-gradient(160deg, var(--or1), var(--or2));
    display: grid;
    place-items: center;
    color: #fff;
    font: 700 14px Montserrat, sans-serif;
    text-align: center;
    padding: 20px;
}

.doubt {
    max-width: 860px;
}

.doubt .copy {
    background: #3d7fb8;
    color: #fff;
    border-radius: 10px;
    padding: 40px;
}

.doubt .copy p {
    color: #fff;
}

.sign {
    margin-top: 24px;
    font-weight: 700;
}

.why {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.why div {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 24px;
    border-left: 5px solid var(--or1);
}

.why p {
    margin: 0;
    color: var(--mut);
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
}

.split > div {
    padding: 44px;
}

.split .l {
    background: linear-gradient(135deg, var(--or1), var(--or2));
    color: #fff;
}

.split .r {
    background: var(--card);
    border: 1px solid var(--line);
}

.split ul {
    padding-left: 20px;
    margin: 0;
}

.split li {
    margin-bottom: 10px;
}

details {
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}

summary {
    cursor: pointer;
    font: 700 18px Montserrat, sans-serif;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

summary::after {
    content: "+";
    color: var(--or2);
    font-size: 26px;
    line-height: 1;
}

details[open] summary::after {
    content: "–";
}

details p {
    margin: 12px 0 0;
    color: var(--mut);
}

.final {
    background: var(--soft);
}

.final .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

footer {
    background: var(--dark);
    color: #bfc2ca;
    padding: 28px 0;
    font-size: 14px;
}

dialog {
    border: 0;
    border-radius: 10px;
    padding: 0;
    width: min(460px, 92vw);
    background: var(--card);
    color: var(--ink);
}

dialog::backdrop {
    background: rgba(0, 0, 0, .6);
}

dialog .fcard {
    box-shadow: none;
    position: relative;
}

.x {
    position: absolute;
    right: 12px;
    top: 8px;
    background: none;
    border: 0;
    font-size: 30px;
    cursor: pointer;
    color: var(--mut);
}

.ok {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.ok h3 {
    color: #2e7d32;
    margin-bottom: 8px;
}

.ok p {
    color: var(--mut);
    margin: 0;
}

@media(max-width: 860px) {
    .logo img {
        width: 130px;
    }
    nav {
        display: none;
    }
    .bar .btn {
        margin-left: auto;
        padding: 5px 5px;
        font-size: 12px;
    }
    .hero .wrap, .final .wrap, .split {
        grid-template-columns: 1fr;
    }
    .grid3, .why {
        grid-template-columns: 1fr !important;
    }
    section {
        padding: 56px 0;
    }
    .split > div {
        padding: 30px;
    }
    .photo {
        max-width: 280px;
    }
}

@media(prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
label.f {
    position: relative;
    display: block;
}

.field-error {
    position: absolute;
    bottom: -18px;
    left: 0;
    font-size: 12px;
    color: #e53935;
    white-space: nowrap;
    display: none;
}

label.f.has-error input {
    border-color: #e53935;
}

label.f.has-error .field-error {
    display: block;
}
/* Выделение текста чекбокса красным при ошибке */
label.chk.has-error {
    color: #e53935;
}

/* Ошибка для чекбокса над кнопкой */
.form-error-msg {
    color: #e53935;
    font-size: 13px;
    margin-bottom: 10px;
    display: none;
}

.form-error-msg.is-visible {
    display: block;
}

/* Основной контейнер страницы */
.privacy-page {
    padding: 40px 0 80px 0;
}

/* Хлебные крошки */
.privacy-breadcrumbs {
    font-size: 14px;
    color: #888888;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.privacy-breadcrumbs a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}

.privacy-breadcrumbs a:hover {
    color: #ff5722;
}

.privacy-breadcrumbs .sep {
    color: #555;
}

.privacy-breadcrumbs .current {
}

/* Заголовок страницы */
.privacy-header {
    margin-bottom: 32px;
}

.privacy-header h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.privacy-header h1 b {
    color: #ff5722;
    font-weight: inherit;
}

.privacy-meta {
    font-size: 14px;
    color: #888888;
    margin: 0;
}

/* Вводная плашка */
.privacy-intro {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid #ff5722;
    padding: 20px 24px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.6;
}

.privacy-intro p {
    margin: 0;
}

/* Сетка карточек с разделами */
.privacy-content {
}

.privacy-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 28px 32px;
}

.privacy-card h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.privacy-card p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.privacy-card p:last-child {
    margin-bottom: 0;
}

/* Списки внутри карточек */
.privacy-list {
    margin: 12px 0 0 0;
    padding-left: 20px;
    line-height: 1.7;
}

.privacy-list li {
    margin-bottom: 8px;
}

.privacy-list li strong {
}

/* Акцентная карточка контактов */
.privacy-card--accent {
    background: rgba(255, 87, 34, 0.08);
    border-color: rgba(255, 87, 34, 0.3);
}

.privacy-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-top: 20px;
}

.privacy-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.privacy-contact-link i {
    font-style: normal;
}

.privacy-contact-link:hover {
    background: #ff5722;
    border-color: #ff5722;
    color: #ffffff;
}

/* Адаптировано под мобильные устройства */
@media (max-width: 768px) {
    .privacy-page {
        padding: 24px 0 60px 0;
    }

    .privacy-card {
        padding: 20px 20px;
    }

    .privacy-contacts {
        flex-direction: column;
        gap: 10px;
    }

    .privacy-contact-link {
        width: 100%;
        justify-content: center;
    }
}
