html {
    scroll-behavior: smooth;
}

:root {
    --bg: #eef2f9;
    --surface: #ffffff;
    --text: #0c1222;
    --muted: #475569;
    --primary: #1d4ed8;
    --primary-strong: #1e40af;
    --accent: #0891b2;
    --accent-soft: #22d3ee;
    --border: #d3deef;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
    --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background-color: #f5f7fc;
    background-image:
        radial-gradient(1200px 600px at 0% 0%, rgba(29, 78, 216, 0.18), transparent 55%),
        radial-gradient(900px 480px at 100% 10%, rgba(8, 145, 178, 0.14), transparent 50%),
        radial-gradient(800px 400px at 50% 100%, rgba(99, 102, 241, 0.1), transparent 45%),
        repeating-linear-gradient(
            -18deg,
            transparent,
            transparent 72px,
            rgba(29, 78, 216, 0.025) 72px,
            rgba(29, 78, 216, 0.025) 73px
        );
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(520px 280px at 15% 20%, rgba(34, 211, 238, 0.12), transparent 70%),
        radial-gradient(480px 260px at 85% 75%, rgba(59, 130, 246, 0.11), transparent 72%);
    z-index: -1;
}

.public-body main {
    position: relative;
    z-index: 0;
}

.public-body main::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 440px at 8% 30%, rgba(30, 64, 175, 0.095), transparent 62%),
        radial-gradient(860px 420px at 88% 64%, rgba(14, 165, 233, 0.1), transparent 64%);
    z-index: -1;
}

.public-body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.1;
    background: url("/static/img/admin-roof.svg") center / 900px auto repeat;
    z-index: -2;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgba(203, 213, 225, 0.85);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 250, 255, 0.94) 100%),
        radial-gradient(ellipse 120% 100% at 50% 0%, rgba(37, 99, 235, 0.06), transparent 55%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 10px 36px rgba(15, 23, 42, 0.07);
}

.header::after {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #1d4ed8, #0891b2, #6366f1, #1d4ed8);
    background-size: 240% 100%;
    animation: header-accent-shift 10s ease-in-out infinite;
}

@keyframes header-accent-shift {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .header::after {
        animation: none;
        background-size: 100% 100%;
    }

    .header__cta--pulse {
        animation: none;
    }
}

.header__inner {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 14px;
    min-height: 72px;
    padding: 8px 0;
}

.header__menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.55);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    cursor: pointer;
    flex-shrink: 0;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.header__menu-btn:hover {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.header__menu-icon {
    position: relative;
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.header__menu-icon::before,
.header__menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s ease, top 0.25s ease;
}

.header__menu-icon::before {
    top: -7px;
}

.header__menu-icon::after {
    top: 7px;
}

.header.is-menu-open .header__menu-icon {
    background: transparent;
}

.header.is-menu-open .header__menu-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.header.is-menu-open .header__menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

.brand {
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    font-size: 1.02rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    min-width: 0;
    max-width: min(380px, 36vw);
}

.brand--site {
    display: flex;
    align-items: center;
    gap: 10px 12px;
    min-width: 0;
    max-width: min(400px, 38vw);
}

.brand__logo {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(29, 78, 216, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand--site:hover .brand__logo {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 12px 28px rgba(29, 78, 216, 0.35);
}

.brand__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.brand__title {
    font-size: clamp(0.82rem, 1.35vw, 1.02rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand__subtitle {
    font-size: clamp(0.62rem, 1.1vw, 0.72rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #64748b;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header__aside {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    justify-self: end;
}

.header__cta {
    position: relative;
    white-space: nowrap;
    padding: 11px 20px;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 12px;
    overflow: visible;
    isolation: isolate;
    box-shadow: 0 8px 24px rgba(29, 78, 216, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header__cta::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 14px;
    padding: 2px;
    background: linear-gradient(130deg, #60a5fa, #2563eb, #22d3ee, #60a5fa);
    background-size: 220% 220%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.85;
    z-index: -1;
    animation: header-cta-ring 5s linear infinite;
}

@keyframes header-cta-ring {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.header__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(29, 78, 216, 0.4);
}

.header__cta--pulse {
    animation: header-cta-breathe 3.2s ease-in-out infinite;
}

@keyframes header-cta-breathe {
    0%,
    100% {
        box-shadow: 0 8px 24px rgba(29, 78, 216, 0.32);
    }
    50% {
        box-shadow: 0 10px 32px rgba(29, 78, 216, 0.48);
    }
}

.nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 2px 4px;
    min-width: 0;
    overflow: visible;
}

.nav__link {
    position: relative;
    flex-shrink: 0;
    color: var(--text);
    text-decoration: none;
    font-size: clamp(0.8rem, 1.05vw, 0.9rem);
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 5px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #2563eb, #0891b2);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.28s ease;
    opacity: 0.9;
}

.nav__link:hover {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.18);
    transform: translateY(-1px);
}

.nav__link:hover::after {
    transform: scaleX(1);
}

.nav__link--active {
    color: #1e40af;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.95), rgba(219, 234, 254, 0.75));
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.nav__link--active::after {
    transform: scaleX(1);
}

.phone {
    color: var(--primary-strong);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.phone--header {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(255, 255, 255, 0.75);
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.phone--header:hover {
    color: var(--accent);
    border-color: rgba(8, 145, 178, 0.45);
    box-shadow: 0 6px 18px rgba(8, 145, 178, 0.15);
    transform: translateY(-1px);
}

/* Кнопка «Заявка»: .btn--sm не должен уменьшать отступы в шапке */
.header .header__cta.btn--sm {
    padding: 11px 20px;
    font-size: 0.9rem;
}

/* Десктоп: две строки — бренд + CTA сверху, меню снизу на всю ширину (без наложения на текст) */
@media (min-width: 1141px) {
    .header__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        row-gap: 10px;
        column-gap: 16px;
        align-items: center;
    }

    .brand--site {
        grid-column: 1;
        grid-row: 1;
        max-width: none;
    }

    .header__aside {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
    }

    .header .nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 10px;
        padding: 10px 4px 6px;
        margin: 0;
        border-top: 1px solid rgba(226, 232, 240, 0.95);
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    }

    .header .nav__link {
        flex-shrink: 0;
    }
}

@media (max-width: 1140px) {
    body.is-header-menu-open {
        overflow: hidden;
    }

    .header__inner {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .header__menu-btn {
        display: inline-flex;
        grid-column: 2;
        grid-row: 1;
    }

    .brand--site {
        grid-column: 1;
        grid-row: 1;
        max-width: none;
    }

    .header__aside {
        grid-column: 3;
        grid-row: 1;
    }

    .header .nav {
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% - 2px);
        z-index: 50;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 2px;
        margin: 0;
        padding: 10px 12px 14px;
        border-radius: 0 0 18px 18px;
        border: 1px solid rgba(203, 213, 225, 0.95);
        border-top: 0;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(248, 250, 255, 0.98));
        box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition:
            opacity 0.22s ease,
            transform 0.22s ease,
            visibility 0.22s ease;
    }

    .header.is-menu-open .nav {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .header .nav__link {
        flex-shrink: 0;
        padding: 12px 14px;
        border-radius: 11px;
        font-size: 0.95rem;
    }

    .header .nav__link::after {
        display: none;
    }
}

@media (max-width: 1140px) and (prefers-reduced-motion: reduce) {
    .header .nav {
        transition: none;
    }
}

/* Внутренние страницы: тёмная шапка с фото (в духе gidro13 / промо-блоки) */
.page-hero {
    position: relative;
    padding: 56px 0 52px;
    color: #f8fafc;
    overflow: hidden;
    background:
        linear-gradient(125deg, rgba(12, 18, 36, 0.92) 0%, rgba(23, 37, 84, 0.9) 42%, rgba(8, 74, 110, 0.88) 100%),
        url("/static/original/projects/project-1.jpeg") center 40% / cover no-repeat;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 80% at 100% 0%, rgba(34, 211, 238, 0.18), transparent 52%),
        radial-gradient(ellipse 70% 50% at 0% 100%, rgba(59, 130, 246, 0.2), transparent 50%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(1.85rem, 4.2vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
    max-width: 920px;
}

.page-hero__lead {
    margin: 0;
    max-width: 640px;
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(226, 232, 240, 0.94);
}

.page-hero--compact {
    padding: 40px 0 36px;
}

.page-hero--compact h1 {
    font-size: clamp(1.55rem, 3.5vw, 2rem);
}

.page-hero__actions {
    margin-top: 22px;
}

.page-hero .btn--outline {
    border-color: rgba(255, 255, 255, 0.55);
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.1);
}

.page-hero .btn--outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.75);
}

.section--after-hero {
    padding-top: 48px;
}

/* Внутренние страницы: фон main + тематические акценты */
.public-body.page-inner main {
    position: relative;
    z-index: 0;
    background-color: #f5f7fc;
    background-image:
        radial-gradient(1100px 480px at 0% 0%, rgba(29, 78, 216, 0.1), transparent 58%),
        radial-gradient(900px 420px at 100% 15%, rgba(8, 145, 178, 0.09), transparent 55%),
        repeating-linear-gradient(
            -18deg,
            transparent,
            transparent 76px,
            rgba(29, 78, 216, 0.022) 76px,
            rgba(29, 78, 216, 0.022) 77px
        );
}

.public-body.page-inner main::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
    background: var(
        --page-inner-tint,
        radial-gradient(ellipse 900px 500px at 50% -10%, rgba(99, 102, 241, 0.06), transparent 52%)
    );
}

.public-body.page-inner main > * {
    position: relative;
    z-index: 1;
}

.public-body.page-theme-about {
    --page-inner-tint: radial-gradient(ellipse 800px 420px at 12% 18%, rgba(99, 102, 241, 0.11), transparent 58%);
}

.public-body.page-theme-services {
    --page-inner-tint: radial-gradient(ellipse 900px 480px at 88% 12%, rgba(8, 145, 178, 0.12), transparent 55%);
}

.public-body.page-theme-price {
    --page-inner-tint: radial-gradient(ellipse 700px 400px at 30% 22%, rgba(245, 158, 11, 0.07), transparent 58%);
}

.public-body.page-theme-projects {
    --page-inner-tint: radial-gradient(ellipse 850px 450px at 70% 20%, rgba(37, 99, 235, 0.1), transparent 56%);
}

.public-body.page-theme-contacts {
    --page-inner-tint: radial-gradient(ellipse 800px 420px at 50% 25%, rgba(34, 211, 238, 0.09), transparent 58%);
}

.public-body.page-theme-service-detail {
    --page-inner-tint: radial-gradient(ellipse 780px 400px at 20% 15%, rgba(59, 130, 246, 0.1), transparent 58%);
}

.public-body.page-theme-project-detail {
    --page-inner-tint: radial-gradient(ellipse 820px 440px at 80% 18%, rgba(79, 70, 229, 0.09), transparent 58%);
}

.container--prose {
    max-width: 720px;
}

.section--inner-copy .container--prose p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #334155;
}

.section--inner-copy .container--prose p + p {
    margin-top: 1rem;
}

/* Карточки ценностей «О компании» */
.section--value-cards {
    padding-top: 40px;
    padding-bottom: 52px;
}

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

.value-card {
    position: relative;
    border-radius: 18px;
    padding: 22px 20px 24px;
    border: 1px solid rgba(203, 213, 225, 0.85);
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 255, 0.94) 100%);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.value-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 44px rgba(29, 78, 216, 0.12);
    border-color: rgba(147, 197, 253, 0.85);
}

.value-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    color: #1d4ed8;
    background: linear-gradient(145deg, rgba(239, 246, 255, 0.98), rgba(219, 234, 254, 0.85));
    border: 1px solid rgba(147, 197, 253, 0.65);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12);
}

.value-card__icon svg {
    display: block;
}

.value-card__title {
    margin: 0 0 10px;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.value-card p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.55;
    color: #475569;
}

/* Панель прайса на странице /price */
.page-panel--price {
    border-radius: 18px;
    padding: 4px;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.12), rgba(8, 145, 178, 0.1), rgba(99, 102, 241, 0.1));
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.page-panel--price .price-table {
    border-radius: 15px;
    border-color: rgba(211, 222, 239, 0.95);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.page-panel--price .price-row--head {
    background: linear-gradient(180deg, #f1f5f9, #e2e8f0);
}

.section--price-form .card {
    border-radius: 18px;
    border: 1px solid rgba(203, 213, 225, 0.85);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.section--service-detail-form .card {
    border-radius: 18px;
    border: 1px solid rgba(203, 213, 225, 0.85);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

/* Контакты: карточки с иконками */
.contact-card {
    border-radius: 18px;
    border: 1px solid rgba(203, 213, 225, 0.88);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
    overflow: hidden;
}

.contact-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.contact-card__head-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #1d4ed8;
    background: linear-gradient(145deg, rgba(239, 246, 255, 0.98), rgba(219, 234, 254, 0.88));
    border: 1px solid rgba(147, 197, 253, 0.65);
}

.contact-card__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.contact-facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.contact-facts__row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.contact-facts__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: #2563eb;
    background: rgba(241, 245, 249, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.contact-facts__icon svg {
    display: block;
}

.contact-facts__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 2px;
}

.contact-facts__value {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
}

a.contact-facts__value:hover {
    color: #1d4ed8;
}

.contact-facts__value--text {
    font-weight: 500;
    line-height: 1.45;
}

.contact-card--form .lead-form {
    margin-top: 4px;
}

/* Услуги / объекты: лёгкое усиление сетки */
.section--inner-services .service-card {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.section--inner-services .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.grid-3--projects .project-card {
    border-radius: 18px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.grid-3--projects .project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.section--contacts-map .map-wrap {
    border-radius: 18px;
    border: 1px solid rgba(203, 213, 225, 0.85);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.section--contacts-map > .container > h2:first-of-type {
    margin-bottom: 8px;
}

@media (max-width: 1200px) {
    .value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

.breadcrumb--light {
    margin-bottom: 18px;
}

.breadcrumb--light,
.breadcrumb--light .breadcrumb__sep {
    color: rgba(226, 232, 240, 0.75);
}

.breadcrumb--light a {
    color: #bae6fd;
}

.breadcrumb--light a:hover {
    color: #fff;
}

.breadcrumb--light .breadcrumb__current {
    color: #f8fafc;
}

.hero {
    background:
        linear-gradient(120deg, rgba(12, 18, 36, 0.56), rgba(30, 64, 175, 0.2)),
        radial-gradient(circle at 20% 10%, #e7efff 0, #f4f7fe 45%, #f8faff 100%),
        url("/static/original/projects/project-1.jpeg") center 32% / cover no-repeat;
    padding: 84px 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    right: -90px;
    top: -120px;
    background:
        radial-gradient(circle, rgba(37, 99, 235, 0.34), rgba(37, 99, 235, 0.08) 62%, transparent 72%);
}

.hero::before {
    content: "";
    position: absolute;
    left: -120px;
    bottom: -140px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.26), transparent 68%);
}

.intro-splash {
    padding-top: 8px;
}

.intro-splash__inner {
    border: 1px solid #cfe0ff;
    border-radius: 20px;
    background:
        linear-gradient(120deg, rgba(15, 23, 42, 0.95), rgba(30, 64, 175, 0.92) 55%, rgba(14, 165, 233, 0.88)),
        radial-gradient(circle at 0 100%, rgba(255, 255, 255, 0.12), transparent 42%);
    color: #fff;
    padding: 24px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
    box-shadow: var(--shadow);
}

.intro-splash__inner h2 {
    margin: 0 0 10px;
}

.intro-splash__inner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.intro-splash__badge {
    display: inline-flex;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

.intro-splash__chips {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-end;
    gap: 8px;
}

.intro-splash__chips span {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.14);
    padding: 8px 12px;
    font-size: 0.88rem;
}

.hero h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1.15;
    max-width: 900px;
}

.hero p {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 1.06rem;
    max-width: 720px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid #bfdbfe;
    background: linear-gradient(180deg, #eff6ff 0%, #e0edff 100%);
    color: #1e3a8a;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.hero__actions {
    display: flex;
    gap: 12px;
}

.hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.hero__chips span {
    border: 1px solid #cddcf7;
    background: rgba(255, 255, 255, 0.72);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
}

.btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn--primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.3);
}

.btn--outline {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--surface);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--primary:hover {
    background: var(--primary-strong);
}

.btn--danger {
    background: #fee2e2;
    border-color: #fecaca;
    color: #b91c1c;
}

.btn--danger:hover {
    background: #fecaca;
    transform: translateY(-1px);
}

.btn--sm {
    padding: 8px 12px;
    font-size: 0.85rem;
}

.features {
    padding: 56px 0;
}

.section {
    padding: 56px 0;
    position: relative;
}

.section--muted {
    background:
        linear-gradient(180deg, rgba(246, 249, 255, 0.98) 0%, rgba(237, 242, 252, 0.99) 50%, rgba(241, 245, 253, 1) 100%),
        repeating-linear-gradient(
            -14deg,
            transparent,
            transparent 80px,
            rgba(29, 78, 216, 0.028) 80px,
            rgba(29, 78, 216, 0.028) 81px
        );
}

.section--glass .container {
    position: relative;
    border: 1px solid rgba(205, 220, 245, 0.9);
    border-radius: 20px;
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.93)),
        radial-gradient(ellipse 120% 80% at 0% 0%, rgba(59, 130, 246, 0.11), transparent 54%);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(3px);
}

.section--accent .container {
    position: relative;
}

.section--accent .feature-grid {
    position: relative;
    z-index: 1;
}

.section--accent::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(760px 380px at 0% 20%, rgba(29, 78, 216, 0.14), transparent 55%),
        radial-gradient(640px 320px at 100% 90%, rgba(14, 165, 233, 0.14), transparent 55%);
    z-index: 0;
}

.section--accent::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.2;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.74)),
        url("/static/original/tilda/work-2.jpg") center / cover no-repeat;
    mix-blend-mode: multiply;
    z-index: 0;
}

.section--contrast .container {
    background:
        linear-gradient(140deg, rgba(15, 23, 42, 0.9), rgba(30, 64, 175, 0.86) 58%, rgba(14, 116, 144, 0.82)),
        url("/static/original/projects/project-2.jpg") center / cover no-repeat;
    border-color: rgba(186, 230, 253, 0.35);
    color: #f8fafc;
}

.section--contrast .container p {
    color: rgba(226, 232, 240, 0.94);
}

.section--contrast .container > h2:first-of-type,
.section--contrast .about-block__grid h3 {
    color: #f8fafc;
}

.section--contrast .container > h2:first-of-type::after {
    background: linear-gradient(90deg, #7dd3fc, #bfdbfe);
}

.section--contrast .about-block__card {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(186, 230, 253, 0.4);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
}

.section--contrast .about-block__card p {
    color: rgba(226, 232, 240, 0.92);
}

.section--technology .service-card {
    border-color: #d6e2f6;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.section--technology .container {
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.94)),
        url("/static/original/projects/project-4.jpg");
    background-size: cover;
    background-position: center;
}

.section--home-price {
    padding-top: 48px;
    padding-bottom: 52px;
}

.home-price {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.22);
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.99) 0%,
        rgba(238, 242, 255, 0.78) 48%,
        rgba(245, 248, 255, 0.97) 100%
    );
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.8) inset,
        0 20px 48px rgba(79, 70, 229, 0.09);
    overflow: hidden;
}

.home-price__accent {
    height: 4px;
    background: linear-gradient(90deg, #4338ca, #2563eb, #0891b2);
}

.home-price__inner {
    padding: 26px 24px 28px;
}

.home-price__header {
    text-align: center;
    margin-bottom: 22px;
}

.home-price__eyebrow {
    margin: 0 0 8px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}

.home-price__header h2 {
    margin: 0 0 10px;
    font-size: clamp(1.35rem, 2.6vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.home-price__lead {
    margin: 0 auto;
    max-width: 46ch;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--muted);
}

.home-price__table {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(211, 222, 239, 0.95);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.home-price__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px 18px;
    align-items: center;
    padding: 13px 16px;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.home-price__row:first-child {
    border-top: 0;
}

.home-price__row--head {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    background: linear-gradient(180deg, #f1f5f9, #e8eef7);
}

.home-price__row:not(.home-price__row--head):nth-child(even) {
    background: rgba(248, 250, 255, 0.65);
}

.home-price__cell--work {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    min-width: 0;
}

.home-price__cell--cost {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1d4ed8;
    text-align: right;
    white-space: nowrap;
}

.home-price__empty {
    margin: 0 0 18px;
    text-align: center;
    font-size: 0.96rem;
    color: var(--muted);
    line-height: 1.55;
}

.home-price__footer {
    margin-top: 20px;
    text-align: center;
}

.home-price__note {
    margin: 0 0 16px;
    font-size: 0.88rem;
    color: #64748b;
}

.home-price__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    justify-content: center;
    align-items: center;
}

@media (max-width: 560px) {
    .home-price__inner {
        padding: 20px 16px 22px;
    }

    .home-price__row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .home-price__row--head {
        display: none;
    }

    .home-price__cell--cost {
        text-align: left;
        white-space: normal;
        padding-top: 8px;
        border-top: 1px dashed rgba(148, 163, 184, 0.45);
    }

    .home-price__cell--cost::before {
        content: "Стоимость";
        display: block;
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: #64748b;
        margin-bottom: 4px;
    }
}

.section .container > h2:first-of-type {
    font-size: clamp(1.35rem, 2.8vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0 0 10px;
    position: relative;
    padding-bottom: 14px;
}

.section .container > h2:first-of-type::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent-soft));
}

.section .container > h2:first-of-type + p {
    margin-top: 0;
    margin-bottom: 22px;
    color: var(--muted);
    max-width: 720px;
    font-size: 1.02rem;
}

.intro-splash.section {
    padding-top: 48px;
    padding-bottom: 48px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 100%),
        radial-gradient(ellipse 100% 80% at 50% 0%, rgba(29, 78, 216, 0.06), transparent 55%);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

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

.service-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
}

.service-card__media {
    height: 170px;
    background:
        linear-gradient(145deg, rgba(8, 47, 73, 0.82), rgba(37, 99, 235, 0.62)),
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.14) 10px, transparent 10px, transparent 20px);
}

.service-card:nth-child(2n) .service-card__media {
    background:
        linear-gradient(145deg, rgba(30, 58, 138, 0.84), rgba(14, 165, 233, 0.58)),
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.14) 10px, transparent 10px, transparent 20px);
}

.service-card:nth-child(3n) .service-card__media {
    background:
        linear-gradient(145deg, rgba(30, 64, 175, 0.84), rgba(56, 189, 248, 0.56)),
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.14) 10px, transparent 10px, transparent 20px);
}

.service-card__body {
    padding: 18px;
}

.service-card__actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.breadcrumb {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 16px;
}

.breadcrumb a {
    color: var(--primary-strong);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb__sep {
    margin: 0 8px;
    color: var(--border);
}

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

.service-detail__lead {
    font-size: 1.05rem;
    line-height: 1.55;
    margin: 0 0 18px;
    color: var(--muted);
}

.service-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.card.project-card {
    overflow: hidden;
}

.project-card__img {
    width: calc(100% + 44px);
    max-width: none;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
    margin: -22px -22px 16px -22px;
    background: var(--bg);
    display: block;
}

.project-card__more {
    margin-top: 16px;
}

.project-card__more a {
    font-weight: 600;
    color: var(--primary-strong);
    text-decoration: none;
}

.project-card__more a:hover {
    text-decoration: underline;
}

.project-card__media-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.project-card__title-link {
    color: inherit;
    text-decoration: none;
}

.project-card__title-link:hover {
    color: var(--primary-strong);
}

.project-card__more-inline {
    margin: 10px 0 0;
    font-size: 0.9rem;
}

.project-card__more-inline a {
    font-weight: 600;
    color: var(--primary-strong);
    text-decoration: none;
}

.project-card__more-inline a:hover {
    text-decoration: underline;
}

.project-detail-slider {
    margin-bottom: 8px;
}

.project-detail-slider .work-slider__track {
    padding-left: 48px;
    padding-right: 48px;
    scroll-snap-type: x mandatory;
}

.project-detail-slide {
    min-width: 100%;
    max-width: 100%;
    margin: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.project-detail-slide img {
    width: 100%;
    height: min(70vh, 520px);
    object-fit: contain;
    display: block;
    background: #0f172a;
    border-radius: 14px;
    border: 1px solid var(--border);
}

.project-detail-hint {
    margin: 0 0 20px;
    font-size: 0.88rem;
}

.project-detail-back {
    margin: 0;
}

.admin-field-hint {
    margin: 0;
    font-size: 0.82rem;
}

.admin-form__grid--project-edit .admin-field-hint {
    grid-column: 1 / -1;
}

.card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.card h2 {
    margin-top: 0;
}

.card h3 {
    margin-top: 0;
}

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

.feature-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    background: #fff;
    display: grid;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    border-color: #c5d4f0;
}

.feature-item__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(145deg, var(--primary), var(--accent));
}

.about-block__grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 16px;
}

.about-block__card {
    align-self: start;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#rec675108720 {
    scroll-margin-top: 88px;
}

@media (min-width: 1141px) {
    #rec675108720 {
        scroll-margin-top: 118px;
    }
}

.lead-block--hero-form {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 0 96px;
    overflow: hidden;
}

.lead-block__bg {
    position: absolute;
    inset: 0;
    background:
        url("/static/original/tilda/work-2.jpg") center / cover no-repeat;
}

.lead-block__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.72) 50%, rgba(15, 23, 42, 0.88) 100%);
}

.lead-block__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: min(520px, 100%);
    margin: 0 auto;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    box-sizing: border-box;
    text-align: center;
    color: #fff;
}

.lead-block__alert {
    margin-bottom: 16px;
    text-align: left;
}

.lead-block__title {
    margin: 0 0 10px;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.lead-block__subtitle {
    margin: 0 0 28px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.88);
}

.lead-block__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.lead-block__field {
    display: block;
    margin: 0;
}

.lead-block__field input,
.lead-block__field textarea,
.lead-block__select {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.96);
    padding: 14px 16px;
    font: inherit;
    color: var(--text);
}

.lead-block__select {
    cursor: pointer;
    appearance: auto;
}

.lead-block__field textarea {
    min-height: 96px;
    resize: vertical;
}

.lead-block__field input:focus,
.lead-block__field textarea:focus,
.lead-block__select:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

.lead-block__field--phone {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-width: 0;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.96);
}

.lead-block__field--phone .lead-block__phone-flag {
    display: grid;
    place-items: center;
    padding: 0 8px 0 12px;
    font-size: 1.1rem;
    background: rgba(241, 245, 249, 0.95);
    border-right: 1px solid var(--border);
}

.lead-block__field--phone .lead-block__phone-code {
    display: grid;
    place-items: center;
    padding: 0 10px;
    font-weight: 700;
    color: var(--text);
    background: rgba(241, 245, 249, 0.95);
    border-right: 1px solid var(--border);
}

.lead-block__field--phone input {
    border: 0;
    border-radius: 0;
    flex: 1;
    min-width: 0;
    background: #fff;
}

.lead-block__submit {
    margin-top: 6px;
    width: 100%;
    padding: 16px 20px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
    transition: transform 0.15s ease, background-color 0.2s ease;
}

.lead-block__submit:hover {
    transform: translateY(-1px);
    background: var(--primary-strong);
}

.lead-block__legal {
    margin: 8px 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
}

.lead-block__legal a {
    color: #bfdbfe;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .lead-block--hero-form {
        min-height: auto;
        padding: 48px 0 64px;
    }
}

@media (max-width: 380px) {
    .lead-block__field--phone {
        flex-wrap: wrap;
    }

    .lead-block__field--phone .lead-block__phone-flag,
    .lead-block__field--phone .lead-block__phone-code {
        flex: 0 0 auto;
    }

    .lead-block__field--phone input {
        flex: 1 1 100%;
        min-width: 0;
    }
}

/* Плавающая панель: MAX + телефон (без WhatsApp), как на gidro13 */
.contact-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.contact-fab__launcher {
    appearance: none;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    padding: 14px 20px;
    font: inherit;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(180deg, #4b5563 0%, #374151 100%);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.35);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.contact-fab__launcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.42);
}

.contact-fab.is-open .contact-fab__launcher {
    display: none;
}

.contact-fab__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.contact-fab__panel[hidden] {
    display: none !important;
}

.contact-fab__stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.contact-fab__round {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.contact-fab__round:hover {
    transform: scale(1.06);
}

.contact-fab__round--max {
    background: linear-gradient(145deg, #7c3aed 0%, #4f46e5 45%, #2563eb 100%);
    color: #fff;
}

.contact-fab__round--phone {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
}

.contact-fab__round--close {
    width: 58px;
    height: 58px;
    background: #fff;
    color: #0f172a;
    border: 2px solid #e2e8f0;
    font-size: 1.75rem;
    line-height: 1;
    font-weight: 300;
    padding: 0;
    margin-top: 4px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.contact-fab__round--close:hover {
    background: #f8fafc;
}

.contact-fab__icon {
    display: block;
}

.mobile-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    display: none;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.mobile-sticky-cta__btn {
    flex: 1;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 700;
    font-size: 0.86rem;
}

.mobile-sticky-cta__btn--phone {
    color: #fff;
    background: linear-gradient(180deg, #16a34a, #15803d);
}

.mobile-sticky-cta__btn--lead {
    color: #fff;
    background: linear-gradient(180deg, #2563eb, #1d4ed8);
}

@media (max-width: 640px) {
    .contact-fab {
        right: 14px;
        bottom: calc(78px + env(safe-area-inset-bottom, 0px));
        transition:
            transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.28s ease;
        will-change: transform;
    }

    .contact-fab.contact-fab--scroll-hidden:not(.is-open) {
        transform: translate3d(0, calc(100% + 32px), 0);
        opacity: 0;
        pointer-events: none;
    }

    .contact-fab__launcher {
        padding: 12px 16px;
        font-size: 0.65rem;
    }

    .contact-fab__round {
        width: 52px;
        height: 52px;
    }

    .contact-fab__round--close {
        width: 54px;
        height: 54px;
    }

    .mobile-sticky-cta {
        display: flex;
    }

    body {
        padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
    .contact-fab {
        transition: none;
    }

    .contact-fab.contact-fab--scroll-hidden:not(.is-open) {
        transform: translate3d(0, 110%, 0);
    }
}

.max-block__inner {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #cde0ff;
    box-shadow: var(--shadow);
    background: linear-gradient(140deg, #0f172a 0, #1e3a8a 55%, #0ea5e9 100%);
    color: #fff;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 18px;
}

.max-block__content p {
    color: rgba(255, 255, 255, 0.88);
}

.max-block__qr {
    border-radius: 14px;
    background:
        repeating-linear-gradient(0deg, #fff, #fff 10px, #dbeafe 10px, #dbeafe 20px),
        repeating-linear-gradient(90deg, transparent, transparent 10px, rgba(15, 23, 42, 0.08) 10px, rgba(15, 23, 42, 0.08) 20px);
    color: #1d4ed8;
    font-weight: 800;
    display: grid;
    place-items: center;
    letter-spacing: 2px;
}

.work-slider {
    position: relative;
}

.work-slider__track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 6px 38px;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 38px;
    scroll-padding-right: 38px;
}

.work-slider__track::-webkit-scrollbar {
    height: 8px;
}

.work-slider__track::-webkit-scrollbar-thumb {
    background: #c8d8f5;
    border-radius: 999px;
}

.work-card {
    min-width: 310px;
    max-width: 310px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--shadow);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

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

.work-card__title {
    padding: 12px 14px;
    font-weight: 600;
}

.work-slider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--primary);
    font-size: 1.1rem;
    z-index: 5;
    cursor: pointer;
}

.work-slider__btn--prev {
    left: 0;
}

.work-slider__btn--next {
    right: 0;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.logo-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    background: #fff;
    box-shadow: var(--shadow);
    text-align: center;
}

.logo-card img {
    width: 100%;
    height: 90px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
}

.logo-card h3 {
    margin: 10px 0 0;
    font-size: 1rem;
}

.work-slider--logos .work-slider__track {
    padding: 6px 38px;
}

.work-slider__track--logos {
    overflow-x: auto;
}

.logo-card--slide {
    min-width: 310px;
    max-width: 310px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.lead {
    padding: 56px 0 72px;
}

.lead-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
}

.lead-form input,
.lead-form textarea,
.lead-form__select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    font: inherit;
    background: var(--surface);
    color: var(--text);
}

.lead-form__select {
    cursor: pointer;
    appearance: auto;
}

.lead-form textarea {
    min-height: 72px;
    resize: vertical;
}

.lead-form input:focus,
.lead-form textarea:focus,
.lead-form__select:focus {
    outline: none;
    border-color: #8eb3ff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.lead-form--vertical {
    grid-template-columns: 1fr;
}

.lead-form--price {
    grid-template-columns: 1fr 1fr;
}

.lead-form--price > .lead-form__select-wrap,
.lead-form--price > textarea,
.lead-form--price > .btn {
    grid-column: 1 / -1;
}

.lead-form--price > .btn {
    justify-self: start;
}

/* Единый стиль блоков «Звонок» и «Подбор технологии» */
.lead-panel {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 20px;
    padding: 26px 28px 28px;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.lead-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 20px 20px 0 0;
    background: var(--lp-bar);
    z-index: 2;
}

.lead-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    opacity: 0.9;
    background: radial-gradient(620px 240px at 100% 0%, var(--lp-glow), transparent 60%);
    z-index: 0;
}

.lead-panel > * {
    position: relative;
    z-index: 1;
}

.lead-panel h2 {
    margin: 0 0 10px;
    font-size: clamp(1.35rem, 2.4vw, 1.55rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.lead-panel p {
    margin: 0 0 22px;
    max-width: 52ch;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--muted);
}

.lead-panel .lead-block__alert {
    margin-bottom: 16px;
}

.card.lead-panel:hover {
    transform: translateY(-2px);
    box-shadow: var(--lp-hover-shadow);
}

.lead-panel--callback {
    --lp-bar: linear-gradient(90deg, #0e7490, #0891b2, #22d3ee);
    --lp-glow: rgba(6, 182, 212, 0.24);
    --lp-hover-shadow:
        0 2px 0 rgba(255, 255, 255, 0.75) inset,
        0 24px 52px rgba(8, 145, 178, 0.14),
        0 4px 12px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.38);
    background: linear-gradient(
        168deg,
        rgba(255, 255, 255, 0.99) 0%,
        rgba(236, 254, 255, 0.82) 44%,
        rgba(224, 242, 254, 0.95) 100%
    );
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.75) inset,
        0 20px 44px rgba(8, 145, 178, 0.11);
}

.lead-panel--quiz {
    --lp-bar: linear-gradient(90deg, #4338ca, #7c3aed, #a78bfa);
    --lp-glow: rgba(99, 102, 241, 0.22);
    --lp-hover-shadow:
        0 2px 0 rgba(255, 255, 255, 0.75) inset,
        0 24px 52px rgba(79, 70, 229, 0.13),
        0 4px 12px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.3);
    background: linear-gradient(
        168deg,
        rgba(255, 255, 255, 0.995) 0%,
        rgba(238, 242, 255, 0.88) 48%,
        rgba(224, 231, 254, 0.96) 100%
    );
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.75) inset,
        0 20px 44px rgba(79, 70, 229, 0.1);
}

.lead-panel .lead-form {
    gap: 14px;
}

.lead-panel .lead-form input {
    border-radius: 12px;
    border-width: 1.5px;
    padding: 14px 16px;
    font-size: 0.98rem;
    background: rgba(255, 255, 255, 0.94);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lead-panel--callback .lead-form input:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.2);
}

.lead-panel--quiz .lead-form input:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
}

.lead-panel--callback .btn--primary {
    background: linear-gradient(135deg, #0e7490 0%, #0891b2 50%, #06b6d4 100%);
    box-shadow: 0 10px 28px rgba(8, 145, 178, 0.33);
    border-color: transparent;
}

.lead-panel--callback .btn--primary:hover {
    background: linear-gradient(135deg, #155e75 0%, #0e7490 55%, #0891b2 100%);
}

.lead-panel--quiz .btn--primary {
    background: linear-gradient(135deg, #4338ca 0%, #5b21b6 45%, #7c3aed 100%);
    box-shadow: 0 10px 28px rgba(79, 70, 229, 0.32);
    border-color: transparent;
}

.lead-panel--quiz .btn--primary:hover {
    background: linear-gradient(135deg, #3730a3 0%, #4c1d95 45%, #6d28d9 100%);
}

.lead-panel--callback .btn--outline {
    border-color: rgba(8, 145, 178, 0.45);
    color: #0e7490;
    background: rgba(255, 255, 255, 0.88);
}

.lead-panel--callback .btn--outline:hover {
    border-color: #0891b2;
    background: rgba(236, 254, 255, 0.95);
}

.lead-panel--quiz .btn--outline {
    border-color: rgba(99, 102, 241, 0.5);
    color: #4f46e5;
    background: rgba(255, 255, 255, 0.9);
}

.lead-panel--quiz .btn--outline:hover {
    border-color: #6366f1;
    background: rgba(238, 242, 255, 0.98);
}

.lead-panel--quiz .admin-field span {
    font-weight: 600;
    color: #4338ca;
    font-size: 0.92rem;
}

.lead-panel--quiz .admin-field select,
.lead-panel--quiz select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    border: 1.5px solid rgba(99, 102, 241, 0.4);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(238, 242, 255, 0.92));
    padding: 12px 14px;
    font: inherit;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lead-panel--quiz .admin-field select:focus,
.lead-panel--quiz select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.16),
        0 6px 18px rgba(79, 70, 229, 0.14);
}

.quiz-step {
    display: grid;
    gap: 12px;
}

.quiz-step__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.quiz-step[hidden] {
    display: none !important;
}

.price-table {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.price-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 14px 16px;
    border-top: 1px solid var(--border);
}

.price-row--edit {
    grid-template-columns: 1fr;
}

.price-row__edit {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 12px;
}

.price-row__edit .admin-inline-form {
    flex: 1 1 320px;
    min-width: 0;
}

.admin-price-delete-form {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
}

.price-row:first-child {
    border-top: 0;
}

.price-row--head {
    font-weight: 700;
    background: var(--bg);
}

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

.map-wrap {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    min-height: 380px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.map-wrap iframe {
    width: 100%;
    height: 380px;
    border: 0;
}

.footer {
    border-top: 1px solid var(--border);
    padding: 34px 0 18px;
    color: var(--muted);
    background: linear-gradient(180deg, #f8fafc 0, #eef4ff 100%);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 18px;
    align-items: start;
}

.footer__contacts,
.footer__map {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.9);
}

.footer__contacts h3,
.footer__map h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.footer__contacts p {
    margin: 6px 0;
}

.map-wrap--footer {
    min-height: 230px;
}

.map-wrap--footer iframe {
    height: 230px;
}

.footer__bottom {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #dbe5f1;
}

.alert {
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border: 1px solid transparent;
}

.alert--ok {
    border-color: #b6f0cc;
    background: #ecfff3;
    color: #166534;
}

.alert--error {
    border-color: #fecaca;
    background: #fff1f2;
    color: #9f1239;
}

.public-main-flash {
    padding-top: 16px;
}

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

.admin-body {
    background: linear-gradient(180deg, #f8fbff 0%, #f3f7ff 100%);
}

.admin-body--shell {
    background-color: #0f172a;
    background-image:
        linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.82) 0%,
            rgba(15, 23, 42, 0.68) 42%,
            rgba(15, 23, 42, 0.85) 100%
        ),
        url("../img/admin-roof.svg");
    background-size: cover, cover;
    background-position: center, center bottom;
    background-attachment: fixed, fixed;
    min-height: 100vh;
}

.admin-body--shell .admin-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

.section--admin {
    padding: 18px 0 36px;
}

.container--admin {
    width: min(1200px, 94%);
}

.admin-page-head {
    margin: 0 0 14px;
}

.admin-page-head h1 {
    margin: 0 0 4px;
    font-size: 1.45rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.02em;
}

.admin-page-head__sub {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(226, 232, 240, 0.85) !important;
}

.admin-subsection-title {
    margin: 22px 0 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #f1f5f9;
}

.admin-glass {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.admin-dashboard-cards .card--admin {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
}

.admin-dashboard-cards .card--admin h2 {
    margin-top: 0;
    font-size: 0.95rem;
    color: var(--muted);
    font-weight: 600;
}

.card--admin__text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--text);
}

.admin-dashboard-actions {
    margin: 0 0 8px;
}

.admin-leads-saved {
    margin-bottom: 16px;
}

.lead-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 6px;
    margin-left: 8px;
    vertical-align: middle;
    white-space: nowrap;
}

.admin-leads__col-name .lead-badge {
    display: block;
    margin-left: 0;
    margin-top: 6px;
    width: fit-content;
}

.lead-badge--new {
    background: #dbeafe;
    color: #1e40af;
}

.lead-badge--in-progress {
    background: #fef3c7;
    color: #92400e;
}

.lead-badge--measured {
    background: #e0e7ff;
    color: #3730a3;
}

.lead-badge--estimate-sent {
    background: #cffafe;
    color: #0e7490;
}

.lead-badge--completed {
    background: #d1fae5;
    color: #065f46;
}

.lead-badge--cancelled {
    background: #f1f5f9;
    color: #64748b;
}

.admin-lead-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-lead-card {
    padding: 16px 18px;
    margin: 0;
}

.admin-lead-card__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.admin-lead-card__name {
    font-size: 1.05rem;
}

.admin-lead-card__meta {
    font-size: 0.82rem;
    text-align: right;
}

.admin-lead-card__source {
    display: block;
    margin-top: 4px;
}

.admin-leads-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 12px;
    border: 1px solid rgba(191, 219, 254, 0.55);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 255, 0.9)),
        radial-gradient(ellipse 120% 100% at 0% 0%, rgba(37, 99, 235, 0.08), transparent 58%);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.admin-leads-toolbar .admin-field {
    margin-bottom: 0;
}

.admin-leads-toolbar__field select {
    border-radius: 10px;
    border: 1px solid #c7d5ee;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.admin-leads-toolbar__label {
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-weight: 700;
    color: #475569;
}

.admin-leads-toolbar__actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.admin-pagination {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid #c7d5ee;
    background: rgba(255, 255, 255, 0.92);
    color: #1e3a8a;
    font-weight: 600;
    text-decoration: none;
}

.admin-pagination__link:hover {
    background: #eff6ff;
}

.admin-pagination__link.is-active {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

.admin-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    margin-top: 5px;
}

.admin-source-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.9;
}

.admin-source-badge--callback {
    color: #065f46;
    background: #d1fae5;
}

.admin-source-badge--quiz {
    color: #7c2d12;
    background: #ffedd5;
}

.admin-source-badge--service {
    color: #1e3a8a;
    background: #dbeafe;
}

.admin-source-badge--price {
    color: #3730a3;
    background: #e0e7ff;
}

.admin-source-badge--contacts {
    color: #0f766e;
    background: #ccfbf1;
}

.admin-source-badge--other {
    color: #334155;
    background: #e2e8f0;
}

.admin-lead-card__phone {
    margin: 0 0 10px;
    font-size: 1rem;
}

.admin-lead-card__phone a {
    font-weight: 700;
    color: var(--primary-strong);
    text-decoration: none;
}

.admin-lead-card__client {
    font-size: 0.9rem;
    margin: 0 0 12px;
    line-height: 1.45;
}

.admin-lead-card__client p {
    margin: 0 0 6px;
}

.admin-lead-card__client-comment {
    color: var(--muted);
}

.admin-lead-card__form {
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    margin: 0;
}

.admin-lead-card__form-grid {
    display: grid;
    grid-template-columns: minmax(200px, 280px) 1fr;
    gap: 12px 16px;
    margin-bottom: 12px;
    align-items: start;
}

.admin-lead-card__note-field textarea {
    width: 100%;
    min-height: 4.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    resize: vertical;
}

.admin-lead-card__form select {
    width: 100%;
    max-width: 280px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
}

@media (max-width: 768px) {
    .admin-lead-card__form-grid {
        grid-template-columns: 1fr;
    }

    .admin-lead-card__form select {
        max-width: none;
    }

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

    .admin-leads-toolbar__actions {
        justify-content: flex-start;
    }

    .admin-pagination {
        justify-content: flex-start;
    }
}

.admin-leads {
    --admin-leads-pad-x: 12px;
    --admin-leads-pad-y: 8px;
    font-size: 0.88rem;
}

.admin-leads--tight {
    --admin-leads-pad-y: 7px;
    font-size: 0.84rem;
}

.admin-leads__row {
    display: grid;
    grid-template-columns: minmax(120px, 1.05fr) minmax(100px, 0.75fr) minmax(160px, 1.35fr) minmax(72px, 0.55fr);
    gap: 8px 14px;
    align-items: start;
    padding: var(--admin-leads-pad-y) var(--admin-leads-pad-x);
    border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.admin-leads__row--head {
    border-top: 0;
    padding-top: 10px;
    padding-bottom: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    background: rgba(241, 245, 249, 0.95);
}

.admin-leads__row:not(.admin-leads__row--head):hover {
    background: rgba(59, 130, 246, 0.06);
}

.admin-leads__name {
    display: block;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
}

.admin-leads__source {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 2px;
}

.admin-leads__col-phone a {
    color: var(--primary-strong);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.admin-leads__col-phone a:hover {
    text-decoration: underline;
}

.admin-leads__service {
    display: block;
    color: var(--text);
    line-height: 1.3;
}

.admin-leads__comment {
    margin-top: 3px;
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-leads__col-when {
    font-size: 0.78rem;
    color: var(--muted);
    white-space: nowrap;
    text-align: right;
}

.admin-leads__row--head .admin-leads__col-when {
    text-align: right;
}

.admin-leads__empty {
    padding: 20px 16px 24px;
    text-align: center;
    color: var(--muted);
}

.admin-leads__empty p {
    margin: 0 0 6px;
}

.admin-leads__empty p:first-child {
    font-weight: 600;
    color: var(--text);
}

.admin-body--shell main > .container > h1 {
    color: #f8fafc;
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.admin-body--shell main > .container > h1 + p.muted {
    color: rgba(226, 232, 240, 0.88) !important;
    margin-top: 0;
}

.admin-body--shell main .container .section {
    padding: 20px 0;
}

.admin-body--shell main .container .section h2 {
    color: #e2e8f0;
    font-size: 1.05rem;
    margin: 0 0 10px;
}

.admin-body--shell .admin-form {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 10px 36px rgba(15, 23, 42, 0.14);
}

.admin-body--shell .price-table {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

@media (max-width: 900px) {
    .admin-header__inner {
        align-items: stretch;
    }

    .admin-nav {
        order: 4;
        width: 100%;
        max-width: none;
        justify-content: flex-start;
        padding-top: 10px;
        border-top: 1px solid rgba(148, 163, 184, 0.35);
    }

    .admin-logout-form {
        margin-left: auto;
    }

    .admin-leads__row,
    .admin-leads__row--head {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "name phone"
            "detail detail"
            "when when";
    }

    .admin-leads__row--head {
        display: none;
    }

    .admin-leads__col-name {
        grid-area: name;
    }

    .admin-leads__col-phone {
        grid-area: phone;
        text-align: right;
    }

    .admin-leads__col-detail {
        grid-area: detail;
    }

    .admin-leads__col-when {
        grid-area: when;
        text-align: left;
        padding-top: 2px;
        border-top: 1px dashed rgba(148, 163, 184, 0.4);
    }

    .admin-leads__row {
        padding: 10px 12px;
    }
}

.admin-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 255, 0.92)),
        radial-gradient(ellipse 130% 160% at 0% 0%, rgba(37, 99, 235, 0.08), transparent 56%);
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.admin-header__inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px 18px;
    flex-wrap: wrap;
    padding: 10px 0;
}

.admin-brand {
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1.1rem;
    color: #0f172a;
    padding: 8px 10px;
    border-radius: 10px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.admin-nav {
    flex: 1 1 auto;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 6px;
    min-width: 0;
    max-width: 860px;
}

.admin-nav a {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    padding: 12px 16px;
    border-radius: 11px;
    white-space: nowrap;
    border: 1px solid transparent;
    color: #1e293b;
    transition: all 0.2s ease;
}

.admin-body--shell .admin-nav a:hover {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.24);
    transform: translateY(-1px);
}

.admin-body--shell .admin-nav a[aria-current="page"] {
    background: linear-gradient(180deg, #2563eb, #1d4ed8);
    color: #fff;
    border-color: rgba(29, 78, 216, 0.9);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.admin-logout-form {
    margin: 0;
    flex-shrink: 0;
}

.admin-header__logout-btn {
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 11px;
    font-size: 0.92rem;
    font-weight: 700;
    border-width: 2px;
    border-color: #93c5fd;
    color: #1d4ed8;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.95));
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.16);
}

.admin-header__logout-btn:hover {
    border-color: #2563eb;
    color: #1e40af;
    transform: translateY(-1px);
}

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

.admin-body--login .admin-auth {
    padding: 20px;
}

.admin-auth__card {
    width: min(460px, 96%);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 26px;
}

.admin-auth__card--glass {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.35);
}

.admin-auth__eyebrow {
    margin: 0 0 8px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--primary-strong);
}

.admin-auth__title {
    margin: 0 0 6px;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.admin-auth__hint {
    margin: 0 0 20px;
    font-size: 0.9rem;
}

.admin-auth__footer {
    margin: 18px 0 0;
    text-align: center;
    font-size: 0.88rem;
}

.admin-auth__footer a {
    color: var(--primary-strong);
    font-weight: 600;
    text-decoration: none;
}

.admin-auth__footer a:hover {
    text-decoration: underline;
}

.admin-login-form__field {
    display: block;
    margin: 0;
}

.admin-login-form__field input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 13px 14px;
    font: inherit;
}

.admin-login-form__field input:focus {
    outline: none;
    border-color: #8eb3ff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.admin-login-form__submit {
    width: 100%;
    margin-top: 4px;
    padding: 14px 20px;
}

.admin-metric {
    font-size: 2rem;
    font-weight: 700;
    margin: 8px 0 0;
}

.admin-form {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.admin-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.admin-field {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.admin-field span {
    font-size: 0.9rem;
    color: var(--muted);
}

.admin-field input,
.admin-field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 11px 12px;
    font: inherit;
}

.admin-field input:focus,
.admin-field textarea:focus {
    outline: none;
    border-color: #8eb3ff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

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

.admin-list__item {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
}

/* Компактные карточки: превью слева, поля справа (работы, материалы, партнёры, кейсы) */
.admin-list__item--compact {
    align-items: stretch;
    gap: 14px;
}

.admin-list__item--compact .admin-form--compact {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
    padding: 14px 16px;
}

.admin-compact-delete {
    flex: 0 0 auto;
    align-self: center;
    margin: 0;
}

.admin-compact-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.admin-compact-row--tight {
    gap: 10px;
}

.admin-compact-row--tight .admin-compact-thumb {
    width: 76px;
    height: 50px;
    padding: 4px;
}

.admin-compact-row__media {
    flex: 0 0 auto;
}

.admin-compact-row__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-compact-thumb {
    display: block;
    width: 92px;
    height: 60px;
    object-fit: contain;
    object-position: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f1f5f9;
    padding: 6px;
    box-sizing: border-box;
}

.admin-compact-thumb--photo {
    object-fit: cover;
}

.admin-compact-thumb--empty {
    background:
        repeating-linear-gradient(-45deg, #e2e8f0, #e2e8f0 6px, #f1f5f9 6px, #f1f5f9 12px);
    border-style: dashed;
}

.admin-form__grid--compact-inline {
    grid-template-columns: minmax(140px, 1fr) minmax(180px, 1.4fr);
    gap: 8px 14px;
    align-items: end;
}

.admin-form__grid--project-edit {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 14px;
    align-items: end;
}

.admin-form__grid--project-edit .admin-field--full-row {
    grid-column: 1 / -1;
}

.admin-field--tight {
    margin-bottom: 0;
}

.admin-field--tight span {
    font-size: 0.82rem;
}

textarea.admin-textarea-compact {
    min-height: 2.75rem;
    max-height: 6rem;
    resize: vertical;
    line-height: 1.35;
    font-size: 0.9rem;
}

.admin-form--project-add {
    margin-bottom: 20px;
}

.admin-compact-row__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

@media (max-width: 720px) {
    .admin-list__item--compact {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-compact-delete {
        align-self: flex-end;
    }

    .admin-compact-row {
        flex-direction: column;
    }

    .admin-compact-row__media {
        display: flex;
        justify-content: flex-start;
    }

    .admin-form__grid--compact-inline,
    .admin-form__grid--project-edit {
        grid-template-columns: 1fr;
    }
}

.admin-inline-form {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    align-items: end;
}

.admin-inline-form__actions {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding-bottom: 0;
}

.admin-row-actions {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.admin-thumb {
    width: 120px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin: 6px 0;
    display: block;
}

@media (max-width: 1200px) {
    .container {
        width: min(1120px, 94%);
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 900px) {
    .header__inner {
        gap: 8px 10px;
        padding: 10px 0;
    }

    .header .header__cta.btn--sm {
        padding: 10px 14px;
        font-size: 0.82rem;
    }

    .brand__title {
        font-size: 0.92rem;
        -webkit-line-clamp: 3;
    }

    .brand__subtitle {
        font-size: 0.65rem;
    }

    .lead-form--price {
        grid-template-columns: 1fr;
    }

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

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

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

    .about-block__grid {
        grid-template-columns: 1fr;
    }

    .section--glass .container {
        padding: 18px;
        border-radius: 16px;
    }

    .intro-splash__inner {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .intro-splash__chips {
        justify-content: flex-start;
    }

    .max-block__inner {
        grid-template-columns: 1fr;
    }

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

    .lead-form {
        grid-template-columns: 1fr;
    }

    .quiz-step__actions {
        justify-content: stretch;
    }

    .quiz-step__actions .btn {
        flex: 1;
        text-align: center;
    }

    .price-row {
        grid-template-columns: 1fr;
    }

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

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

    .admin-list__item {
        flex-direction: column;
        align-items: stretch;
    }

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

    .price-row__edit {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-price-delete-form .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header__aside {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .header .header__cta.btn--sm {
        padding: 9px 12px;
        font-size: 0.78rem;
        text-align: center;
    }

    .phone--header {
        font-size: 0.8rem;
        padding: 7px 10px;
        text-align: center;
    }

    .lead-panel .lead-form.lead-form--vertical > .btn--primary {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 42px 0;
    }

    .hero {
        padding: 58px 0;
    }

    .section--glass .container {
        padding: 16px;
        border-radius: 14px;
    }

    .lead-panel {
        padding: 20px 18px 22px;
        border-radius: 18px;
        max-width: 100%;
    }

    .lead-panel::before {
        border-radius: 18px 18px 0 0;
    }

    .lead-panel p {
        max-width: none;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__actions .btn {
        text-align: center;
    }

    .work-slider__track,
    .work-slider--logos .work-slider__track {
        padding: 6px 8px;
        scroll-padding-left: 8px;
        scroll-padding-right: 8px;
    }

    .work-slider__btn {
        width: 30px;
        height: 30px;
        background: rgba(255, 255, 255, 0.94);
    }

    .work-card,
    .logo-card--slide {
        min-width: 86vw;
        max-width: 86vw;
    }

    .work-card img {
        height: 180px;
    }

    .map-wrap {
        min-height: 300px;
    }

    .map-wrap iframe {
        height: 300px;
    }
}
