:root {
    --bg: #f6f4ec;
    --bg-soft: #fbfaf5;
    --card: #ffffff;
    --card-soft: #fdfcf8;

    --green-950: #16251d;
    --green-900: #20382b;
    --green-800: #2c4c39;
    --green-700: #3e6b50;
    --green-600: #5d8b6d;
    --green-500: #7ca486;
    --green-100: #eef5ed;
    --green-50: #f5faf4;

    --cream: #f3eddf;
    --cream-2: #ebe2d0;

    --text: #1f2b24;
    --text-soft: #46564d;
    --muted: #7a857d;

    --line: rgba(31, 43, 36, .10);
    --line-strong: rgba(31, 43, 36, .16);

    --danger: #b42318;
    --warning: #a05a12;
    --success: #2f6b45;

    --shadow-sm: 0 8px 24px rgba(25, 45, 32, .07);
    --shadow-md: 0 16px 45px rgba(25, 45, 32, .10);
    --shadow-lg: 0 22px 70px rgba(25, 45, 32, .13);

    --radius-sm: 14px;
    --radius: 20px;
    --radius-lg: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(124, 164, 134, .13), transparent 360px),
        linear-gradient(180deg, var(--bg-soft), var(--bg));
    font-size: 16px;
}

a {
    color: inherit;
}

.container {
    width: min(1160px, calc(100% - 36px));
    margin: 0 auto;
}

.narrow {
    max-width: 760px;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 250, 245, .84);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #eff7ec, #f5ead8);
    box-shadow:
        inset 0 0 0 1px rgba(48, 82, 59, .10),
        0 8px 22px rgba(48, 82, 59, .08);
}

.brand strong {
    display: block;
    font-size: 18px;
    letter-spacing: -.02em;
    color: var(--green-950);
}

.brand small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--text-soft);
    font-size: 15px;
}

.main-nav a,
.footer-link,
.small-link,
.back-link {
    text-decoration: none;
}

.main-nav a {
    position: relative;
    padding: 8px 0;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 2px;
    border-radius: 99px;
    background: var(--green-600);
    transition: .18s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.header-phone {
    padding: 11px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: var(--green-800);
    text-decoration: none;
    font-weight: 750;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

/* PUBLIC HERO */

.hero {
    padding: 72px 0 66px;
    background:
        radial-gradient(circle at 85% 20%, rgba(125, 164, 134, .18), transparent 340px),
        radial-gradient(circle at 15% 10%, rgba(235, 226, 208, .55), transparent 360px);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.04fr .96fr;
    gap: 34px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--green-700);
    font-weight: 800;
    letter-spacing: .075em;
    text-transform: uppercase;
    font-size: 12px;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    max-width: 860px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.03;
    letter-spacing: -0.045em;
    color: var(--green-950);
}

.hero p,
.page-hero p,
.section-head p,
.benefits p,
.request-grid p {
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.75;
}

.hero p {
    max-width: 660px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 20px;
    border: 0;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    transition: .18s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green-700), var(--green-500));
    color: #fff;
    box-shadow: 0 14px 28px rgba(62, 107, 80, .22);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(62, 107, 80, .26);
}

.btn-ghost {
    background: rgba(255, 255, 255, .75);
    color: var(--green-800);
    box-shadow: inset 0 0 0 1px var(--line);
}

.btn-ghost:hover {
    background: #fff;
}

.full {
    width: 100%;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-points span,
.price-pill,
.status-badge {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    color: var(--green-800);
    border: 1px solid var(--line);
    font-weight: 750;
    font-size: 13px;
}

.hero-card,
.request-box,
.content-card,
.sticky-box,
.service-card,
.admin-card,
.login-card {
    background: rgba(255, 255, 255, .86);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.hero-card,
.request-box,
.content-card,
.sticky-box {
    padding: 28px;
}

.hero-card {
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--green-600), #c9b88f);
}

.hero-card h2,
.sticky-box h2 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 26px;
    letter-spacing: -.03em;
}

.hero-card p,
.sticky-box p {
    color: var(--muted);
    line-height: 1.65;
}

/* FORMS */

.lead-form,
.admin-form {
    display: grid;
    gap: 14px;
}

.lead-form label,
.admin-form label {
    display: grid;
    gap: 7px;
    font-weight: 750;
    font-size: 14px;
    color: var(--text);
}

.lead-form input,
.lead-form select,
.lead-form textarea,
.admin-form input,
.admin-form select,
.admin-form textarea,
.filters input,
.filters select {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 15px;
    padding: 13px 14px;
    outline: none;
    background: rgba(255, 255, 255, .9);
    color: var(--text);
    font: inherit;
    transition: .16s ease;
}

.lead-form textarea,
.admin-form textarea {
    resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.filters input:focus,
.filters select:focus {
    border-color: rgba(93, 139, 109, .62);
    box-shadow: 0 0 0 4px rgba(93, 139, 109, .12);
    background: #fff;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.form-error {
    color: var(--danger);
}

/* SECTIONS */

.section {
    padding: 72px 0;
}

.muted {
    background: rgba(238, 245, 237, .72);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-head {
    max-width: 720px;
    margin-bottom: 34px;
}

.section-head h2,
.benefits h2,
.request-grid h2,
.content-card h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--green-950);
}

/* SERVICES */

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.service-card {
    padding: 24px;
    display: grid;
    gap: 13px;
    box-shadow: var(--shadow-sm);
    transition: .18s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: linear-gradient(135deg, var(--green-100), #f6eddc);
    border: 1px solid var(--line);
}

.service-card h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.service-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.65;
}

.service-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.service-bottom strong {
    color: var(--green-800);
}

.service-bottom a {
    color: var(--green-700);
    font-weight: 800;
    text-decoration: none;
}

.service-bottom a:hover {
    color: var(--green-900);
}

/* STEPS */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.step {
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.step span {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-700), var(--green-500));
    color: #fff;
    font-weight: 900;
}

.step h3 {
    margin-bottom: 8px;
    letter-spacing: -.02em;
}

.step p {
    color: var(--text-soft);
    line-height: 1.6;
}

/* BENEFITS / REQUEST */

.benefits-grid,
.request-grid,
.service-page-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 34px;
    align-items: start;
}

.benefit-list {
    display: grid;
    gap: 12px;
}

.benefit-list div {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    font-weight: 750;
    color: var(--text-soft);
}

.request-section {
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .08), transparent 320px),
        linear-gradient(135deg, #233d2d, #4f765c);
    color: #fff;
}

.request-section h2,
.request-section .eyebrow {
    color: #fff;
}

.request-section p {
    color: rgba(255, 255, 255, .78);
}

.request-section .request-box {
    background: rgba(255, 255, 255, .94);
}

/* SERVICE PAGE */

.page-hero {
    padding: 64px 0;
    background:
        radial-gradient(circle at 82% 20%, rgba(124, 164, 134, .18), transparent 360px),
        linear-gradient(135deg, #f7f4ea, #eef5ed);
    border-bottom: 1px solid var(--line);
}

.back-link {
    display: inline-flex;
    margin-bottom: 20px;
    color: var(--green-700);
    font-weight: 800;
}

.price-pill {
    margin-top: 22px;
    background: #fff;
}

.content-card p,
.clean-list li {
    color: var(--text-soft);
    line-height: 1.75;
    font-size: 17px;
}

.clean-list {
    padding-left: 20px;
}

.sticky-box {
    position: sticky;
    top: 96px;
}

/* FOOTER */

.site-footer {
    padding: 46px 0;
    background: #17261d;
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr .9fr;
    gap: 28px;
}

.site-footer h3,
.site-footer h4 {
    margin-top: 0;
}

.site-footer p {
    color: rgba(255, 255, 255, .68);
    line-height: 1.65;
}

.footer-link {
    color: #d9edd2;
    font-weight: 800;
}

/* ADMIN */

.admin-body,
.login-body {
    background:
        radial-gradient(circle at top left, rgba(124, 164, 134, .13), transparent 380px),
        linear-gradient(180deg, #f7f6ef, #ecefe8);
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(440px, 100%);
    padding: 34px;
}

.login-logo {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--green-100), #f5ead8);
    border: 1px solid var(--line);
    font-size: 30px;
}

.login-card h1 {
    margin-bottom: 8px;
    letter-spacing: -.035em;
}

.login-card p {
    color: var(--muted);
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 278px 1fr;
}

.admin-sidebar {
    background: linear-gradient(180deg, #17261d, #233d2d);
    color: #fff;
    padding: 22px;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    margin-bottom: 30px;
}

.admin-logo span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(255, 255, 255, .10);
}

.admin-menu {
    display: grid;
    gap: 8px;
}

.admin-menu a,
.logout-form button {
    width: 100%;
    display: block;
    padding: 13px 14px;
    border-radius: 15px;
    color: rgba(255, 255, 255, .74);
    text-decoration: none;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.admin-menu a.active,
.admin-menu a:hover,
.logout-form button:hover {
    color: #fff;
    background: rgba(255, 255, 255, .10);
}

.admin-menu a.disabled {
    opacity: .42;
    pointer-events: none;
}

.logout-form {
    margin-top: 30px;
}

.admin-main {
    padding: 28px;
    overflow-x: hidden;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.admin-topbar h1 {
    margin: 0;
    font-size: 32px;
    letter-spacing: -0.04em;
}

.admin-topbar p {
    margin: 6px 0 0;
    color: var(--muted);
}

.admin-user {
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid var(--line);
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.alert {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 18px;
    border: 1px solid;
}

.alert.success {
    background: #eef8f0;
    border-color: #bdddc5;
    color: var(--success);
}

.alert.error {
    background: #fff1ef;
    border-color: #f5c4bd;
    color: var(--danger);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 18px;
}

.stat-card {
    background: rgba(255, 255, 255, .78);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.stat-card span {
    color: var(--muted);
}

.stat-card strong {
    display: block;
    margin-top: 10px;
    font-size: 36px;
    color: var(--green-950);
    letter-spacing: -.04em;
}

.stat-card.urgent strong {
    color: var(--warning);
}

.admin-card {
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
}

.admin-card-head,
.admin-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.admin-card-head h2 {
    margin: 0;
}

.table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.admin-table small {
    color: var(--muted);
}

.admin-table a {
    color: var(--green-700);
    font-weight: 800;
    text-decoration: none;
}

.row-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.row-actions form {
    margin: 0;
}

.row-actions button,
.danger-form button {
    border: 0;
    background: transparent;
    color: var(--danger);
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.form-grid,
.admin-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 12px 0;
}

.checkbox-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.filters {
    display: grid;
    grid-template-columns: 1fr 220px auto auto;
    gap: 12px;
    margin-bottom: 18px;
}

.details-list {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.details-list div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(247, 249, 246, .85);
    border: 1px solid var(--line);
}

.details-list span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 5px;
}

.message-box {
    min-height: 120px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(247, 249, 246, .85);
    border: 1px solid var(--line);
    white-space: pre-wrap;
    line-height: 1.65;
}

.danger-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

/* RESPONSIVE */

@media (max-width: 960px) {
    .main-nav,
    .header-phone {
        display: none;
    }

    .hero-grid,
    .benefits-grid,
    .request-grid,
    .service-page-grid,
    .admin-grid-two {
        grid-template-columns: 1fr;
    }

    .service-grid,
    .steps,
    .footer-grid,
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }

    .filters {
        grid-template-columns: 1fr;
    }

    .sticky-box {
        position: static;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 26px, 1160px);
    }

    .service-grid,
    .steps,
    .footer-grid,
    .stats-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 44px 0;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 34px;
    }

    .section {
        padding: 52px 0;
    }

    .hero-card,
    .request-box,
    .content-card,
    .sticky-box,
    .login-card,
    .admin-card {
        padding: 20px;
        border-radius: 22px;
    }

    .admin-main {
        padding: 18px;
    }

    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

/* ================================
   DARK GRAY PHOTO BACKGROUND THEME
   ================================ */

:root {
    --bg: #1f2022;
    --bg-soft: #282a2d;
    --card: rgba(42, 44, 47, .82);
    --card-soft: rgba(52, 54, 57, .86);

    --green-950: #f2f2f0;
    --green-900: #e8e8e4;
    --green-800: #d8ddd6;
    --green-700: #a9b7aa;
    --green-600: #8fa08f;
    --green-500: #7f937f;
    --green-100: rgba(255, 255, 255, .08);
    --green-50: rgba(255, 255, 255, .05);

    --cream: #313337;
    --cream-2: #3a3d41;

    --text: #f1f1ee;
    --text-soft: #d2d3cf;
    --muted: #aaaead;

    --line: rgba(255, 255, 255, .12);
    --line-strong: rgba(255, 255, 255, .18);

    --shadow-sm: 0 10px 26px rgba(0, 0, 0, .24);
    --shadow-md: 0 18px 48px rgba(0, 0, 0, .32);
    --shadow-lg: 0 28px 80px rgba(0, 0, 0, .42);
}

html,
body {
    min-height: 100%;
}

body {
    background:
        linear-gradient(
            90deg,
            rgba(22, 23, 25, .92) 0%,
            rgba(28, 29, 31, .82) 38%,
            rgba(28, 29, 31, .68) 100%
        ),
        url("/images/site-bg.webp") center top / cover fixed no-repeat !important;
    color: var(--text);
}

/* Убираем белую кислотность у шапки */
.site-header {
    background: rgba(28, 29, 31, .82) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    backdrop-filter: blur(18px);
}

.brand strong,
.hero h1,
.page-hero h1,
.section-head h2,
.benefits h2,
.request-grid h2,
.content-card h2 {
    color: #f3f3ef !important;
}

.brand small,
.hero p,
.page-hero p,
.section-head p,
.benefits p,
.request-grid p,
.service-card p,
.step p,
.content-card p,
.clean-list li,
.hero-card p,
.sticky-box p {
    color: #c9cbc6 !important;
}

.main-nav {
    color: #d7d7d2;
}

.main-nav a:hover {
    color: #ffffff;
}

.header-phone {
    background: rgba(255, 255, 255, .08) !important;
    color: #f1f1ec !important;
    border: 1px solid rgba(255, 255, 255, .14);
}

/* Главный экран теперь поверх фото */
.hero {
    min-height: calc(100vh - 74px);
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .08), transparent 360px),
        linear-gradient(90deg, rgba(20, 21, 23, .38), rgba(20, 21, 23, .08)) !important;
}

.page-hero {
    background:
        linear-gradient(90deg, rgba(24, 25, 27, .88), rgba(40, 42, 45, .74)),
        url("/images/site-bg.webp") center center / cover no-repeat !important;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}

/* Карточки не белые, а графитовые */
.hero-card,
.request-box,
.content-card,
.sticky-box,
.service-card,
.admin-card,
.login-card,
.step,
.benefit-list div,
.stat-card {
    background: rgba(38, 40, 43, .82) !important;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .32) !important;
    backdrop-filter: blur(14px);
}

/* Вторичные секции */
.section {
    background: rgba(31, 32, 34, .72);
}

.section.muted,
.muted {
    background: rgba(40, 42, 45, .82) !important;
    border-top: 1px solid rgba(255, 255, 255, .08);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.benefits {
    background: rgba(34, 36, 39, .78);
}

/* Блок заявки */
.request-section {
    background:
        linear-gradient(135deg, rgba(22, 23, 25, .94), rgba(55, 58, 61, .88)),
        url("/images/site-bg.webp") center center / cover no-repeat !important;
}

.request-section .request-box {
    background: rgba(38, 40, 43, .88) !important;
}

/* Формы */
.lead-form input,
.lead-form select,
.lead-form textarea,
.admin-form input,
.admin-form select,
.admin-form textarea,
.filters input,
.filters select {
    background: rgba(20, 21, 23, .78) !important;
    border: 1px solid rgba(255, 255, 255, .16) !important;
    color: #f1f1ee !important;
}

.lead-form input::placeholder,
.lead-form textarea::placeholder,
.admin-form input::placeholder,
.admin-form textarea::placeholder {
    color: rgba(255, 255, 255, .46);
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: rgba(170, 190, 170, .55) !important;
    box-shadow: 0 0 0 4px rgba(170, 190, 170, .12) !important;
    background: rgba(18, 19, 20, .92) !important;
}

.lead-form option {
    background: #25272a;
    color: #f1f1ee;
}

/* Кнопки */
.btn-primary {
    background: linear-gradient(135deg, #5f725f, #8fa08f) !important;
    color: #ffffff !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .28) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #718671, #a2b3a1) !important;
}

.btn-ghost {
    background: rgba(255, 255, 255, .08) !important;
    color: #eeeeea !important;
    border: 1px solid rgba(255, 255, 255, .14);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .13) !important;
}

/* Плашки */
.hero-points span,
.price-pill,
.status-badge {
    background: rgba(255, 255, 255, .08) !important;
    color: #eeeeea !important;
    border: 1px solid rgba(255, 255, 255, .14);
}

/* Карточки услуг */
.service-icon {
    background: rgba(255, 255, 255, .08) !important;
    border: 1px solid rgba(255, 255, 255, .12);
}

.service-bottom strong {
    color: #dfe7dc !important;
}

.service-bottom a,
.admin-table a,
.back-link,
.footer-link,
.small-link {
    color: #bdcdbc !important;
}

.service-card:hover {
    background: rgba(48, 51, 54, .88) !important;
}

/* Описание выбранной услуги в форме */
.service-preview {
    display: none;
    padding: 14px 15px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #d8dad4;
    line-height: 1.55;
}

.service-preview.is-visible {
    display: block;
}

.service-preview strong {
    display: block;
    margin-bottom: 5px;
    color: #ffffff;
}

.service-preview small {
    display: block;
    margin-top: 8px;
    color: #c5d1c3;
    font-weight: 800;
}

/* Футер */
.site-footer {
    background: rgba(17, 18, 20, .96) !important;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

/* Админка тоже не белая */
.admin-body,
.login-body {
    background:
        linear-gradient(90deg, rgba(22, 23, 25, .94), rgba(35, 37, 40, .9)),
        url("/images/site-bg.webp") center center / cover fixed no-repeat !important;
}

.admin-sidebar {
    background: rgba(18, 19, 21, .92) !important;
    border-right: 1px solid rgba(255, 255, 255, .10);
}

.admin-main {
    background: rgba(32, 34, 37, .54);
}

.admin-user,
.details-list div,
.message-box {
    background: rgba(255, 255, 255, .07) !important;
    color: #f1f1ee;
    border: 1px solid rgba(255, 255, 255, .12);
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.admin-table th,
.admin-table small,
.details-list span {
    color: #aeb3ad;
}

/* Мобильная версия */
@media (max-width: 960px) {
    body {
        background:
            linear-gradient(rgba(22, 23, 25, .88), rgba(22, 23, 25, .92)),
            url("/images/site-bg.webp") center top / cover fixed no-repeat !important;
    }

    .hero {
        min-height: auto;
    }
}
/* SETTINGS CONTROLLED BACKGROUND */
body {
    background:
        linear-gradient(
            90deg,
            rgba(22, 23, 25, .92) 0%,
            rgba(28, 29, 31, .82) 38%,
            rgba(28, 29, 31, .68) 100%
        ),
        var(--site-bg-image) center top / cover fixed no-repeat !important;
}

.page-hero {
    background:
        linear-gradient(90deg, rgba(24, 25, 27, .88), rgba(40, 42, 45, .74)),
        var(--site-bg-image) center center / cover no-repeat !important;
}

.request-section {
    background:
        linear-gradient(135deg, rgba(22, 23, 25, .94), rgba(55, 58, 61, .88)),
        var(--site-bg-image) center center / cover no-repeat !important;
}

.admin-body,
.login-body {
    background:
        linear-gradient(90deg, rgba(22, 23, 25, .94), rgba(35, 37, 40, .9)),
        var(--site-bg-image) center center / cover fixed no-repeat !important;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.settings-field.wide {
    grid-column: 1 / -1;
}

.settings-field span {
    display: block;
    margin-bottom: 7px;
    font-weight: 800;
}

@media (max-width: 760px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .settings-field.wide {
        grid-column: auto;
    }
}
/* GALLERY MODULE */
.gallery-section {
    background: rgba(34, 36, 39, .78);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.gallery-card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(38, 40, 43, .82);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 22px 70px rgba(0, 0, 0, .32);
    backdrop-filter: blur(14px);
}

.gallery-card img {
    width: 100%;
    height: 240px;
    display: block;
    object-fit: cover;
}

.gallery-card-body {
    padding: 18px;
}

.gallery-card-body span {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #dfe7dc;
    font-size: 12px;
    font-weight: 800;
}

.gallery-card-body h3 {
    margin: 0 0 8px;
    color: #f3f3ef;
    font-size: 20px;
    letter-spacing: -.02em;
}

.gallery-card-body p {
    margin: 0;
    color: #c9cbc6;
    line-height: 1.6;
}

.admin-thumb {
    width: 96px;
    height: 68px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .14);
}

.current-image-box {
    display: grid;
    gap: 10px;
    margin: 6px 0 12px;
}

.current-image-box span {
    font-weight: 800;
}

.current-image-box img {
    width: min(420px, 100%);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
}

@media (max-width: 960px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-card img {
        height: 220px;
    }
}
/* FAQ MODULE */
.faq-section {
    background: rgba(31, 32, 34, .72);
}

.faq-list {
    display: grid;
    gap: 14px;
    max-width: 980px;
    margin: 0 auto;
}

.faq-item {
    border-radius: 20px;
    background: rgba(38, 40, 43, .82);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
    overflow: hidden;
    backdrop-filter: blur(14px);
}

.faq-item summary {
    cursor: pointer;
    padding: 20px 22px;
    color: #f3f3ef;
    font-weight: 900;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    float: right;
    color: #dfe7dc;
    font-size: 22px;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item div {
    padding: 0 22px 22px;
    color: #c9cbc6;
    line-height: 1.65;
    white-space: pre-line;
}

.faq-item[open] {
    background: rgba(48, 51, 54, .88);
}

@media (max-width: 640px) {
    .faq-item summary {
        padding: 17px 18px;
    }

    .faq-item div {
        padding: 0 18px 18px;
    }
}
/* REVIEWS MODULE */
.reviews-section {
    background: rgba(40, 42, 45, .82);
    border-top: 1px solid rgba(255, 255, 255, .08);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.review-card {
    border-radius: 24px;
    padding: 22px;
    background: rgba(38, 40, 43, .82);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 22px 70px rgba(0, 0, 0, .28);
    backdrop-filter: blur(14px);
}

.review-stars {
    color: #e2c86d;
    letter-spacing: 2px;
    font-size: 18px;
    margin-bottom: 14px;
}

.review-card p {
    margin: 0 0 18px;
    color: #d2d3cf;
    line-height: 1.65;
    white-space: pre-line;
}

.review-author {
    display: grid;
    gap: 4px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .10);
}

.review-author strong {
    color: #f3f3ef;
}

.review-author span {
    color: #aeb8ac;
    font-size: 14px;
}

@media (max-width: 960px) {
    .reviews-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}
/* PUBLIC REVIEW FORM MODULE */
.empty-reviews-box {
    max-width: 860px;
    margin: 0 auto 24px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(38, 40, 43, .82);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #d2d3cf;
    text-align: center;
}

.review-form-box {
    max-width: 860px;
    margin: 28px auto 0;
    padding: 24px;
    border-radius: 26px;
    background: rgba(38, 40, 43, .86);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 22px 70px rgba(0, 0, 0, .30);
    backdrop-filter: blur(14px);
}

.review-form-box h3 {
    margin: 0 0 8px;
    color: #f3f3ef;
    font-size: 26px;
}

.review-form-box p {
    margin: 0 0 20px;
    color: #c9cbc6;
}

.review-form {
    display: grid;
    gap: 16px;
}

.review-form label span {
    display: block;
    margin-bottom: 7px;
    color: #f1f1ee;
    font-weight: 800;
}

.review-form input,
.review-form select,
.review-form textarea {
    width: 100%;
    border-radius: 16px;
    padding: 13px 14px;
    background: rgba(20, 21, 23, .78);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #f1f1ee;
    outline: none;
}

.review-form textarea {
    resize: vertical;
}

.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus {
    border-color: rgba(170, 190, 170, .55);
    box-shadow: 0 0 0 4px rgba(170, 190, 170, .12);
    background: rgba(18, 19, 20, .92);
}

.review-form option {
    background: #25272a;
    color: #f1f1ee;
}

.rating-select {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rating-select label {
    cursor: pointer;
}

.rating-select input {
    display: none;
}

.rating-select label span {
    display: inline-flex;
    margin: 0;
    padding: 10px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #e2c86d;
    letter-spacing: 1px;
    transition: .18s ease;
}

.rating-select input:checked + span {
    background: rgba(226, 200, 109, .18);
    border-color: rgba(226, 200, 109, .48);
    box-shadow: 0 0 0 4px rgba(226, 200, 109, .08);
}

@media (max-width: 640px) {
    .review-form-box {
        padding: 18px;
    }

    .rating-select {
        gap: 8px;
    }

    .rating-select label span {
        padding: 9px 10px;
        font-size: 14px;
    }
}
/* LEGAL PAGES MODULE */
.legal-card {
    max-width: 980px;
    margin: 0 auto;
    padding: 34px;
    border-radius: 26px;
    background: rgba(38, 40, 43, .86);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 22px 70px rgba(0, 0, 0, .30);
    backdrop-filter: blur(14px);
}

.legal-card h2 {
    margin: 26px 0 10px;
    color: #f3f3ef;
    font-size: 24px;
}

.legal-card h2:first-child {
    margin-top: 0;
}

.legal-card p {
    color: #d2d3cf;
    line-height: 1.75;
}

.consent-check {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #d2d3cf;
    line-height: 1.5;
}

.consent-check input {
    width: auto !important;
    margin-top: 4px;
    flex: 0 0 auto;
}

.consent-check span {
    margin: 0 !important;
    font-weight: 500 !important;
    color: #d2d3cf !important;
}

.consent-check a {
    color: #dfe7dc;
    font-weight: 800;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .legal-card {
        padding: 22px;
    }
}
/* ADMIN PROFILE MODULE */
.security-note {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #d2d3cf;
    line-height: 1.55;
}

.security-note strong {
    color: #f3f3ef;
}
/* APPLICATIONS IMPROVEMENT MODULE */
.admin-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.admin-menu a b {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d94c4c;
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

.applications-toolbar {
    display: grid;
    gap: 16px;
}

.applications-search {
    display: flex;
    gap: 10px;
    align-items: center;
}

.applications-search input {
    flex: 1;
    min-width: 220px;
    border-radius: 16px;
    padding: 13px 14px;
    background: rgba(20, 21, 23, .78);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #f1f1ee;
    outline: none;
}

.status-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.status-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: #d2d3cf;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .12);
    font-weight: 800;
}

.status-tabs a span {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.status-tabs a.active {
    background: rgba(143, 160, 143, .22);
    border-color: rgba(170, 190, 170, .40);
    color: #fff;
}

.status-tabs a.status-new-tab span {
    background: #d94c4c;
}

.applications-table td small,
.admin-table td small {
    display: block;
    margin-top: 4px;
    color: #aeb3ad;
}

.is-new-application {
    background: rgba(217, 76, 76, .08);
}

.new-dot,
.sent-dot {
    display: inline-flex;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.new-dot {
    background: rgba(217, 76, 76, .18);
    color: #ffb4b4;
}

.sent-dot {
    background: rgba(143, 160, 143, .18);
    color: #dfe7dc;
}

.quick-status-form select {
    min-width: 150px;
    border-radius: 14px;
    padding: 10px 12px;
    background: rgba(20, 21, 23, .78);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #f1f1ee;
    outline: none;
}

.status-new {
    background: rgba(217, 76, 76, .18) !important;
    color: #ffb4b4 !important;
}

.status-in_work {
    background: rgba(226, 200, 109, .18) !important;
    color: #ffe7a0 !important;
}

.status-waiting {
    background: rgba(100, 160, 220, .18) !important;
    color: #b9dcff !important;
}

.status-approved {
    background: rgba(143, 160, 143, .20) !important;
    color: #dfe7dc !important;
}

.status-done {
    background: rgba(80, 180, 120, .18) !important;
    color: #baffd0 !important;
}

.status-canceled {
    background: rgba(150, 150, 150, .18) !important;
    color: #d8d8d8 !important;
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 18px;
}

.dashboard-stat-card,
.dashboard-status-item {
    display: grid;
    gap: 8px;
    padding: 20px;
    border-radius: 22px;
    background: rgba(38, 40, 43, .82);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
    text-decoration: none;
}

.dashboard-stat-card span,
.dashboard-status-item span {
    color: #aeb3ad;
    font-weight: 800;
}

.dashboard-stat-card strong,
.dashboard-status-item strong {
    color: #f3f3ef;
    font-size: 34px;
}

.dashboard-stat-card.important {
    border-color: rgba(217, 76, 76, .35);
    background: rgba(217, 76, 76, .10);
}

.dashboard-status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 960px) {
    .dashboard-stats-grid,
    .dashboard-status-grid {
        grid-template-columns: 1fr 1fr;
    }

    .applications-search {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .dashboard-stats-grid,
    .dashboard-status-grid {
        grid-template-columns: 1fr;
    }

    .applications-search {
        display: grid;
    }

    .applications-search input {
        min-width: 0;
    }
}
/* TELEGRAM NOTIFICATIONS MODULE */
.telegram-test-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .10);
}

.instruction-list {
    display: grid;
    gap: 16px;
}

.instruction-list div {
    padding: 15px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
}

.instruction-list strong {
    display: block;
    margin-bottom: 6px;
    color: #f3f3ef;
}

.instruction-list p {
    margin: 0;
    color: #d2d3cf;
    line-height: 1.55;
}

.instruction-list code {
    display: block;
    margin: 10px 0;
    padding: 11px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, .25);
    color: #dfe7dc;
    word-break: break-all;
}
