/* Force — дизайн в стиле Apple */
:root {
    --apple-bg: #fbfbfd;
    --apple-bg-alt: #f5f5f7;
    --apple-surface: #ffffff;
    --apple-text: #1d1d1f;
    --apple-muted: #6e6e73;
    --apple-link: #0066cc;
    --apple-blue: #0071e3;
    --apple-blue-hover: #0077ed;
    --apple-border: #d2d2d7;
    --apple-radius: 18px;
    --apple-radius-sm: 12px;
    --apple-pill: 980px;
    --container: 980px;
    --header-h: 56px;
    --ease: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --accent: var(--apple-blue);
    --text: var(--apple-text);
    --text-muted: var(--apple-muted);
    --bg: var(--apple-bg);
    --bg-card: var(--apple-surface);
    --border: var(--apple-border);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: var(--apple-text);
    background: var(--apple-bg);
    margin: 0;
    min-width: 320px;
    -webkit-font-smoothing: antialiased;
}

body::before { display: none; }

h1, h2, h3, h4 {
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--apple-text);
    margin: 0;
}

a {
    color: var(--apple-link);
    text-decoration: none;
    transition: color var(--ease), opacity var(--ease);
}

a:hover { text-decoration: underline; }

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

.em { color: inherit; font-weight: 600; }

/* ——— Nav (glass) ——— */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(251, 251, 253, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.site-navbar {
    max-width: var(--container);
    margin: 0 auto;
    padding: 10px 22px;
    min-height: var(--header-h);
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    align-items: center;
}

.site-navbar .navbar-brand,
.site-navbar__brand {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--apple-text) !important;
    opacity: 1;
    padding: 6px 0;
    margin-right: 1rem;
}

.site-navbar .navbar-brand:hover,
.site-navbar__brand:hover {
    color: var(--apple-text) !important;
    text-decoration: none;
    opacity: 1;
}

.site-navbar .nav-link {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--apple-muted) !important;
    opacity: 1;
    padding: 10px 14px !important;
    letter-spacing: -0.01em;
    text-transform: none;
    border-radius: var(--apple-radius-sm);
    transition: color var(--ease), background-color var(--ease);
}

.site-navbar .nav-link.site-nav-link:hover,
.site-navbar .nav-link.site-nav-link:focus-visible {
    color: var(--apple-text) !important;
    background: rgba(0, 0, 0, 0.04) !important;
    text-decoration: none;
}

.site-navbar .active > .nav-link.site-nav-link {
    color: var(--apple-text) !important;
    font-weight: 500;
    background: none !important;
    text-decoration: none;
}

.site-nav-auth {
    font-size: 15px !important;
    line-height: 1.2;
    padding: 8px 18px !important;
    border-radius: var(--apple-pill);
    transition: color var(--ease), background-color var(--ease), box-shadow var(--ease);
}

.site-nav-auth--login {
    color: var(--apple-link) !important;
    text-decoration: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.site-nav-auth--login:hover,
.site-nav-auth--login:focus-visible {
    color: var(--apple-text) !important;
    background: rgba(0, 0, 0, 0.04) !important;
    text-decoration: none !important;
}

.site-nav-auth--register:hover,
.site-nav-auth--register:focus-visible {
    background: var(--apple-blue-hover) !important;
    color: #fff !important;
    text-decoration: none;
}

.site-navbar .navbar-toggler {
    padding: 8px 10px;
    font-size: 1.1rem;
}

@media (min-width: 992px) {
    .site-navbar .navbar-nav {
        gap: 4px;
    }
}

.site-main { padding-top: 0; }

.page-wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 22px 88px;
}

.page-wrap--narrow { max-width: 692px; }

.site-breadcrumb {
    background: none;
    padding: 12px 0 0;
    margin: 0 0 28px;
    font-size: 12px;
}

.site-breadcrumb a { color: var(--apple-link); text-decoration: none; }
.site-breadcrumb a:hover { text-decoration: underline; }
.site-breadcrumb .breadcrumb-item.active { color: var(--apple-muted); }
.site-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--apple-muted); }

.site-page-top {
    min-height: 0;
}

.site-breadcrumb-spacer {
    height: 18px;
    padding-top: 12px;
    margin: 0 0 28px;
}

/* ——— Buttons ——— */
.btn {
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.022em;
    border-radius: var(--apple-pill);
    padding: 12px 22px;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
    line-height: 1.17648;
}

.btn-primary, .btn-accent, .btn-success {
    background: var(--apple-blue) !important;
    color: #fff !important;
}

.btn-primary:hover, .btn-accent:hover, .btn-success:hover {
    background: var(--apple-blue-hover) !important;
    color: #fff !important;
    opacity: 1;
    text-decoration: none;
}

.btn-outline-primary, .btn-outline-accent, .btn-outline-secondary {
    background: transparent !important;
    color: var(--apple-blue) !important;
    border: none !important;
    box-shadow: inset 0 0 0 1px var(--apple-blue) !important;
}

.btn-outline-primary:hover, .btn-outline-accent:hover, .btn-outline-secondary:hover {
    background: var(--apple-blue) !important;
    color: #fff !important;
    box-shadow: none !important;
    text-decoration: none;
}

.btn-outline-danger {
    background: transparent !important;
    color: #d70015 !important;
    box-shadow: inset 0 0 0 1px rgba(215, 0, 21, 0.45) !important;
}

.btn-outline-danger:hover {
    background: #d70015 !important;
    color: #fff !important;
    box-shadow: none !important;
    text-decoration: none;
}

.btn-sm {
    font-size: 14px;
    padding: 8px 16px;
    min-width: 28px;
}

.btn-lg {
    font-size: 17px;
    padding: 12px 22px;
}

.btn-link-apple {
    font-size: 21px;
    line-height: 1.381;
    font-weight: 400;
    color: var(--apple-link);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.btn-link-apple::after {
    content: ' ›';
}

.btn-link-apple:hover {
    text-decoration: underline;
    color: var(--apple-link);
}

.btn-user {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--apple-bg-alt);
    border: none;
    border-radius: var(--apple-pill);
    color: var(--apple-text);
    font-size: 14px;
    font-weight: 400;
    padding: 6px 14px 6px 8px;
    min-height: 40px;
    box-shadow: none !important;
}

.btn-user:hover,
.btn-user:focus,
.btn-user:active,
.btn-user.show,
.btn-user.dropdown-toggle.show {
    background: var(--apple-bg-alt) !important;
    color: var(--apple-text) !important;
    box-shadow: none !important;
    outline: none !important;
}

.btn-user__name {
    max-width: 168px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

.btn-user__avatar {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--apple-blue);
    color: #fff;
}

.btn-user__avatar svg {
    width: 16px;
    height: 16px;
}

.dropdown-menu {
    border: none;
    border-radius: var(--apple-radius-sm);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 8px;
}

.dropdown-item {
    border-radius: 8px;
    font-size: 14px;
    color: var(--apple-text);
}

.dropdown-item:hover {
    background: var(--apple-blue);
    color: #fff;
}

/* ——— Forms ——— */
.form-control, .form-select {
    background: var(--apple-surface);
    border: 1px solid var(--apple-border);
    border-radius: var(--apple-radius-sm);
    color: var(--apple-text);
    min-height: 44px;
    font-size: 17px;
    letter-spacing: -0.022em;
    padding: 10px 16px;
    box-shadow: none !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.25) !important;
}

/* Иначе на select тайлится фоновая «галочка» поверх background: surface */
.form-select.is-valid,
.form-select.is-invalid {
    background-image: none !important;
    padding-right: 16px !important;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--apple-text);
    text-transform: none;
    letter-spacing: 0;
}

.search-apple {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin-bottom: 40px;
}

.search-apple .form-control { flex: 1; }

/* ——— Единый заголовок страниц ——— */
.site-page-top {
    padding-top: 12px;
    padding-bottom: 0;
}

.page-hero {
    text-align: center;
    padding: 20px 22px 40px;
    max-width: var(--container);
    margin: 0 auto;
}

.page-hero--home {
    padding: 28px 22px 36px;
}

.page-hero__title {
    font-size: clamp(36px, 6vw, 52px);
    line-height: 1.07143;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--apple-text);
    margin: 0 0 12px;
}

.page-hero__sub {
    font-size: clamp(17px, 2.5vw, 21px);
    line-height: 1.4;
    font-weight: 400;
    color: var(--apple-muted);
    max-width: 32em;
    margin: 0 auto 20px;
}

.page-hero__cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 16px;
    margin-top: 8px;
}

/* legacy alias */
.hero-apple { text-align: center; padding: 20px 22px 40px; max-width: var(--container); margin: 0 auto; }
.hero-apple__title { font-size: clamp(36px, 6vw, 52px); line-height: 1.07143; font-weight: 600; margin-bottom: 12px; }
.hero-apple__sub { font-size: clamp(17px, 2.5vw, 21px); color: var(--apple-muted); max-width: 32em; margin: 0 auto 20px; }
.hero-apple__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 24px; }

/* ——— Spotlight (featured) ——— */
.spotlight {
    margin: 0;
    max-width: none;
    padding: 0;
}

.home-sections,
.home-stack {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 28px auto 48px;
    padding-bottom: 0;
}

.home-sections__block,
.home-stack__block {
    width: 100%;
    min-width: 0;
}

/* Панель Yii Debug (иконка справа внизу) — поднимаем плавающие кнопки */
body:has(#yii-debug-toolbar) .cmdk-fab {
    bottom: 108px;
}

body:has(#yii-debug-toolbar) .cookie-toast--visible {
    bottom: 172px;
}

.spotlight__card {
    background: var(--apple-surface);
    border-radius: var(--apple-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 0;
    text-decoration: none;
    color: inherit;
    transition: transform var(--ease), box-shadow var(--ease);
}

.spotlight__card:hover {
    transform: scale(1.01);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.spotlight__visual {
    min-height: 0;
    max-height: 280px;
    height: clamp(160px, 28vw, 280px);
    position: relative;
    overflow: hidden;
    contain: layout style paint;
}

.spotlight__visual-inner {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.spotlight__visual-inner .card-cover__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
}

.spotlight__card:hover .card-cover__img {
    transform: scale(1.05);
}

.spotlight__copy {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.spotlight__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--apple-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.spotlight__title {
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    color: var(--apple-text);
}

.spotlight__text {
    font-size: 17px;
    color: var(--apple-muted);
    line-height: 1.47;
    margin-bottom: 16px;
}

.spotlight__link {
    font-size: 17px;
    color: var(--apple-link);
}

/* ——— Band sections ——— */
.band {
    background: var(--apple-bg-alt);
    padding: 64px 22px;
    margin: 48px 0;
}

.band__inner {
    max-width: var(--container);
    margin: 0 auto;
}

.band--dark {
    background: #000;
    color: #f5f5f7;
}

.band--dark .section-apple__title,
.band--dark h2, .band--dark h3 { color: #f5f5f7; }

.band--dark .section-apple__sub,
.band--dark p { color: #a1a1a6; }

.band--dark a { color: #2997ff; }

/* ——— Section headers ——— */
.section-apple {
    text-align: center;
    margin-bottom: 48px;
}

.section-apple--left {
    text-align: left;
}

.section-apple__title {
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.08349;
    font-weight: 600;
    letter-spacing: -0.003em;
    margin-bottom: 8px;
}

.section-apple__sub {
    font-size: 21px;
    line-height: 1.381;
    font-weight: 400;
    letter-spacing: 0.011em;
    color: var(--apple-muted);
    max-width: 28em;
    margin: 0 auto;
}

.section-apple--left .section-apple__sub { margin: 0; }

.section-apple__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 40px;
}

/* ——— Service tiles ——— */
.tiles-apple {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tile-apple a {
    display: flex;
    flex-direction: column;
    background: var(--apple-surface);
    border-radius: var(--apple-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    color: var(--apple-text);
    text-decoration: none;
    transition: transform var(--ease), box-shadow var(--ease);
    height: 100%;
}

.tile-apple__media {
    display: block;
    aspect-ratio: 16 / 10;
    width: 100%;
    min-height: 160px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.tile-apple__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 22px 26px 26px;
}

.tile-apple a:hover .card-cover__img {
    transform: scale(1.04);
}

.tile-apple a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    color: var(--apple-text);
    text-decoration: none;
}

/* ——— Card cover (posts & services) ——— */
.card-cover {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.card-cover__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.55s var(--ease);
}

.card-cover__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.12) 100%);
    pointer-events: none;
}

.post-card__thumb,
.service-card__thumb {
    flex: 0 0 auto;
}

.post-card__thumb .card-cover,
.service-card__thumb .card-cover,
.spotlight__visual-inner .card-cover,
.tile-apple__media .card-cover,
.page-hero-cover .card-cover {
    position: absolute;
    inset: 0;
}

.post-card__thumb,
.service-card__thumb,
.tile-apple__media,
.spotlight__visual-inner,
.page-hero-cover {
    position: relative;
    overflow: hidden;
}

.page-hero-cover {
    position: relative;
    width: 100%;
    height: clamp(140px, 22vw, 260px);
    max-height: 260px;
    flex-shrink: 0;
}

.tile-apple strong {
    display: block;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.tile-apple__meta {
    display: block;
    font-size: 14px;
    color: var(--apple-muted);
}

.tile-apple__foot {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    justify-content: flex-end;
}

.tile-apple__foot .btn {
    pointer-events: none;
}

/* ——— Grids ——— */
.posts-feed.list-view {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 40px;
    align-items: stretch;
}

.posts-feed.list-view > .posts-feed__item {
    display: flex;
    min-width: 0;
    min-height: 100%;
}

.posts-feed.list-view .post-feed-card {
    width: 100%;
}

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

.services-grid.list-view > .item {
    display: flex;
    min-width: 0;
}

/* Пагинация внутри grid-контейнера ListView — на всю ширину */
.list-pager {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 12px;
    padding-top: 8px;
}

.pager-ui {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pager-ui .page-item {
    display: inline-flex;
}

.pager-ui .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: none;
    border-radius: var(--apple-pill);
    background: var(--apple-surface);
    color: var(--apple-text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: inset 0 0 0 1px var(--apple-border);
    transition: background var(--ease), color var(--ease), box-shadow var(--ease);
}

.pager-ui .page-item.active .page-link {
    background: var(--apple-blue);
    color: #fff;
    box-shadow: none;
}

.pager-ui .page-item.disabled .page-link {
    opacity: 0.35;
    pointer-events: none;
}

.pager-ui .page-link:hover:not(.disabled) {
    background: var(--apple-bg-alt);
    color: var(--apple-blue);
}

.pager-ui .page-item.active .page-link:hover {
    background: var(--apple-blue);
    color: #fff;
}

/* Hide legacy */
.sotd, .stats-aw, .aw-section, .services-row, .stat-aw,
.hero-bw, .hero-mega, .section--dark, .tiles-bw, .hero-panel,
.page-intro, .services-preview, .section-title-bw, .section-head,
.cap-grid, .feature-grid, .search-bar, .link-aw, .footer-aw__logo-dot { display: none !important; }

.content-panel, .glass {
    background: var(--apple-surface);
    border-radius: var(--apple-radius);
    padding: 32px;
    box-shadow: var(--shadow);
    border: none;
    margin-bottom: 32px;
}

.card {
    background: var(--apple-surface);
    border: none;
    border-radius: var(--apple-radius);
    box-shadow: var(--shadow);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.tag, .pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--apple-pill);
    background: var(--apple-bg-alt);
    color: var(--apple-muted);
    font-size: 12px;
    font-weight: 600;
}

.pill--blue {
    background: rgba(0, 113, 227, 0.12);
    color: var(--apple-blue);
}

.post-preview {
    color: var(--apple-muted);
    font-size: 14px;
    line-height: 1.43;
    -webkit-line-clamp: 3;
}

.link-more, .link-arrow {
    font-size: 17px;
    color: var(--apple-link);
}

.link-more::after { content: ' ›'; }

.detail-view {
    background: var(--apple-surface);
    border-radius: var(--apple-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.detail-view th {
    background: var(--apple-bg-alt);
    color: var(--apple-muted);
    font-size: 12px;
    font-weight: 600;
    border: none;
    padding: 14px 20px;
}

.detail-view td, .detail-view th {
    border-color: var(--apple-border);
    padding: 14px 20px;
}

.alert {
    border-radius: var(--apple-radius-sm);
    border: none;
    background: var(--apple-bg-alt);
    color: var(--apple-text);
}

.alert-success {
    background: #f0fff4;
    color: #1d1d1f;
}

.alert-danger {
    background: #fff5f5;
    color: #1d1d1f;
}

.table { border-color: var(--apple-border); }
.table th { background: var(--apple-bg-alt); color: var(--apple-muted); font-weight: 600; font-size: 12px; }

.pagination .page-link {
    border: none;
    border-radius: var(--apple-pill);
    background: var(--apple-bg-alt);
    color: var(--apple-text);
    margin: 0 4px;
    font-size: 14px;
    min-width: 36px;
    text-align: center;
}

.pagination .page-item.active .page-link,
.pagination .page-link:hover {
    background: var(--apple-blue);
    color: #fff;
}

.status-badge {
    background: var(--apple-bg-alt);
    color: var(--apple-text);
    border-radius: var(--apple-pill);
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge--completed { background: #e8f5e9; color: #2e7d32; }
.status-badge--cancel { background: #ffebee; color: #c62828; }
.status-badge--new, .status-badge--loocking { background: #e3f2fd; color: #1565c0; }

.account-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.account-tabs .btn { text-decoration: none; }

.panel, .blog-posts-index, .site-index, .account-index, .service-index,
.site-login, .site-register { background: transparent; }

/* Главная: обложки не раздувают страницу */
.site-index .card-cover__img {
    display: block;
    max-width: 100%;
    object-fit: cover;
}

.site-index .post-feed-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    max-height: 200px;
    overflow: hidden;
}

.site-index .post-feed-card__media .card-cover,
.site-index .post-feed-card__media .card-cover__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
}

.site-index .home-featured {
    padding: 22px 26px;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.06) 0%, var(--apple-surface) 45%);
    border-radius: var(--apple-radius);
    border: 1px solid rgba(0, 113, 227, 0.12);
    box-shadow: var(--shadow);
}

.site-index .home-catalog__cell .service-catalog-card__media,
.site-index .home-catalog__cell .post-catalog-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    max-height: 180px;
    overflow: hidden;
}

/* ——— Footer ——— */
.site-footer {
    background: var(--apple-bg-alt);
    color: var(--apple-muted);
    padding: 20px 0 24px;
    border-top: 1px solid var(--apple-border);
    font-size: 12px;
    line-height: 1.4;
}

.site-footer__inner {
    padding-bottom: 0;
}

.site-footer__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
    padding-bottom: 16px;
    flex-wrap: wrap;
}

.site-footer__social-wrap {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.site-footer__contact-link {
    flex: 0 0 auto;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 4px 8px 12px;
    border-radius: var(--apple-pill);
    text-decoration: none;
    color: inherit;
    transition: background var(--ease), transform var(--ease);
}

.site-footer__contact-link:hover {
    background: rgba(0, 0, 0, 0.04);
    text-decoration: none;
    transform: translateY(-1px);
}

.site-footer__contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--apple-surface);
    color: var(--apple-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px var(--apple-border);
}

.site-footer__contact-icon svg {
    width: 20px;
    height: 20px;
}

.site-footer__contact-lines {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 0;
}

.site-footer__contact-addr {
    font-size: 14px;
    font-weight: 600;
    color: var(--apple-text);
    letter-spacing: -0.01em;
    word-break: break-all;
}

.site-footer__contact-hint {
    font-size: 12px;
    color: var(--apple-muted);
}

.site-footer__contact-link:hover .site-footer__contact-addr {
    color: var(--apple-blue);
}

.site-footer__brand {
    font-size: 15px;
    font-weight: 600;
    color: var(--apple-text);
    letter-spacing: -0.02em;
}

.site-footer__tagline {
    font-size: 12px;
    color: var(--apple-muted);
    margin: 4px 0 0;
    max-width: 22em;
}

.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer__fine {
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid var(--apple-border);
    font-size: 11px;
    color: var(--apple-muted);
    text-align: center;
}

.site-footer kbd,
.tools-banner__hint-keys kbd,
.cmdk-fab__keys kbd,
.cmdk__hint kbd {
    display: inline-block;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--apple-text);
    background: var(--apple-surface);
    border: 1px solid var(--apple-border);
    border-radius: 5px;
    padding: 2px 7px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--apple-surface);
    color: var(--apple-text);
    text-decoration: none;
    box-shadow: inset 0 0 0 1px var(--apple-border);
    transition: color var(--ease), background var(--ease), transform var(--ease);
}

.social-link:hover {
    color: var(--apple-blue);
    background: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}

.social-icon {
    width: 18px;
    height: 18px;
    display: block;
}

/* ——— Плавающая подсказка Ctrl+K ——— */
.cmdk-fab {
    position: fixed;
    right: 24px;
    bottom: 64px;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--apple-border);
    border-radius: var(--apple-pill);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--apple-text);
    font: inherit;
    font-size: 13px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.cmdk-fab:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 113, 227, 0.35);
    box-shadow: 0 8px 28px rgba(0, 113, 227, 0.15);
}

.cmdk-fab__icon {
    width: 18px;
    height: 18px;
    color: var(--apple-blue);
    flex-shrink: 0;
}

.cmdk-fab__keys {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cmdk-fab__keys kbd {
    font-size: 10px;
    padding: 2px 6px;
}

body.cmdk-open .cmdk-fab {
    opacity: 0;
    pointer-events: none;
}

/* ——— Капча (картинка над полем) ——— */
.captcha-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.captcha-field img {
    display: block;
    position: static !important;
    max-width: 100%;
    height: auto;
    border-radius: var(--apple-radius-sm);
    border: 1px solid var(--apple-border);
    cursor: pointer;
}

.captcha-field__hint {
    margin: 0;
    font-size: 12px;
    color: var(--apple-muted);
}

.captcha-field__input .form-control {
    max-width: 220px;
}

/* ——— Cookie toast (справа внизу) ——— */
.cookie-toast {
    position: fixed;
    right: 24px;
    bottom: 128px;
    z-index: 1038;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: min(420px, calc(100vw - 40px));
    padding: 14px 16px;
    border-radius: var(--apple-radius);
    background: var(--apple-surface);
    border: 1px solid var(--apple-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.cookie-toast--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-toast[hidden]:not(.cookie-toast--visible) {
    display: none !important;
}

.cookie-toast__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    color: #c17f3a;
}

.cookie-toast__icon svg {
    width: 100%;
    height: 100%;
}

.cookie-toast__text {
    margin: 0;
    flex: 1 1 auto;
    font-size: 13px;
    line-height: 1.45;
    color: var(--apple-text);
}

.cookie-toast__more {
    display: inline;
    font-size: inherit;
    white-space: nowrap;
}

.cookie-toast__ok {
    flex-shrink: 0;
    border-radius: var(--apple-pill) !important;
    padding: 8px 18px !important;
    white-space: nowrap;
}

@media (max-width: 575px) {
    .cookie-toast {
        left: 14px;
        right: 14px;
        bottom: 70px;
        max-width: none;
        flex-wrap: wrap;
    }

    .cookie-toast__ok {
        width: 100%;
    }
}

/* ——— Баннер «калькулятор до обращения» ——— */
.tools-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 28px;
    margin-top: 28px;
    padding: 22px 26px;
    border-radius: var(--apple-radius);
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.07) 0%, var(--apple-surface) 55%);
    border: 1px solid rgba(0, 113, 227, 0.12);
    box-shadow: var(--shadow);
}

.tools-banner--feedback {
    margin-top: 24px;
}

.tools-banner--tools {
    margin-top: 32px;
}

.tools-banner__eyebrow {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--apple-blue);
}

.tools-banner__title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
    color: var(--apple-text);
    letter-spacing: -0.02em;
}

.tools-banner__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--apple-muted);
    max-width: 32em;
}

.tools-banner__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.tools-banner__hint {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--apple-muted);
}

.tools-banner__hint-label {
    white-space: nowrap;
}

.tools-banner__hint-keys {
    display: inline-flex;
    gap: 4px;
}

@media (max-width: 767px) {
    .tools-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    .tools-banner__aside {
        align-items: stretch;
    }

    .tools-banner__hint {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .site-footer__bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .site-footer__social-wrap {
        justify-content: center;
    }

    .site-footer__contact-link {
        margin-left: 0;
        align-self: center;
        padding: 10px 16px;
        background: var(--apple-surface);
        border-radius: var(--apple-radius-sm);
        box-shadow: inset 0 0 0 1px var(--apple-border);
    }

    .site-footer__contact-lines {
        align-items: flex-start;
        text-align: left;
    }

    .cmdk-fab {
        right: 14px;
        bottom: 56px;
        padding: 10px 12px;
    }

    .cookie-toast {
        bottom: 118px;
    }
}

/* ——— Command palette (Ctrl+K) ——— */
.cmdk {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 12vh 16px 16px;
}

.cmdk.cmdk--open {
    display: flex;
}

.cmdk__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
}

.cmdk__panel {
    position: relative;
    width: min(520px, 100%);
    background: var(--apple-surface);
    border-radius: var(--apple-radius);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
    padding: 16px;
    border: 1px solid var(--apple-border);
}

.cmdk__input {
    border-radius: var(--apple-radius-sm) !important;
    margin-bottom: 10px;
    font-size: 17px !important;
    padding: 12px 14px !important;
}

.cmdk__list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 280px;
    overflow: auto;
}

.cmdk__list a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--apple-text);
    text-decoration: none;
    font-size: 15px;
}

.cmdk__list a.is-active,
.cmdk__list a:hover {
    background: rgba(0, 113, 227, 0.1);
    color: var(--apple-blue);
}

.cmdk__hint {
    margin: 10px 0 0;
    font-size: 11px;
    color: var(--apple-muted);
    text-align: center;
}

body.cmdk-open {
    overflow: hidden;
}

.table-borderless th,
.table-borderless td {
    border: none !important;
}

.card.h-100 {
    display: flex;
    flex-direction: column;
}
.card.h-100 .card-body {
    flex: 1 1 auto;
}
.content-panel, .glass {
    background: var(--apple-surface);
    border-radius: var(--apple-radius);
    padding: 32px;
    box-shadow: var(--shadow);
    border: none;
    margin-bottom: 32px;
}
.status-badge--new, .status-badge--loocking { background: #e3f2fd; color: #1565c0; }
.btn-primary.w-100 {
    width: 100%;
}

.display-6 {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
}
.lead {
    font-size: 1.25rem;
    font-weight: 300;
}
/* === Дополнения для новых шаблонов === */

/* Сетка для личного кабинета */
.account-index .row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

/* Единая высота карточек заявок */
.card.h-100 .card-footer {
    margin-top: auto;
}

/* Плавное появление (опционально) */
[data-reveal] {
    animation: fadeInUp 0.5s ease-out;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* === Дополнения для аккуратного отображения === */
.table-borderless th,
.table-borderless td {
    border: none !important;
}

.card.h-100 {
    display: flex;
    flex-direction: column;
}
.card.h-100 .card-body {
    flex: 1 1 auto;
}
.card.h-100 .card-footer {
    margin-top: auto;
}

.btn-primary.w-100 {
    width: 100%;
}

.table-borderless th,
.table-borderless td {
    border: none !important;
}

.card.h-100 {
    display: flex;
    flex-direction: column;
}
.card.h-100 .card-body {
    flex: 1 1 auto;
}
.card.h-100 .card-footer {
    margin-top: auto;
}

.btn-primary.w-100 {
    width: 100%;
}

@media (max-width: 576px) {
    .card-header .d-flex {
        flex-direction: column;
        align-items: stretch;
    }
    .card-header .btn-sm {
        width: 100%;
    }
}

.display-6 {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
}
.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

[data-copy] {
    cursor: pointer;
}
[data-copy]:active {
    transform: scale(0.97);
}

@media (max-width: 576px) {
    .card-header .d-flex {
        flex-direction: column;
        align-items: stretch;
    }
    .card-header .btn-sm {
        width: 100%;
    }
}

.display-6 {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
}
.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

[data-copy] {
    cursor: pointer;
}
[data-copy]:active {
    transform: scale(0.97);
}

/* Кнопка копирования ссылки */
[data-copy] {
    cursor: pointer;
}
[data-copy]:active {
    transform: scale(0.97);
}

/* Улучшенные отступы для мобильных */
@media (max-width: 768px) {
    .content-panel {
        padding: 20px;
    }
    .card-header .btn-sm {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* Таблицы внутри карточек на мобильных */
@media (max-width: 576px) {
    .table-borderless th,
    .table-borderless td {
        display: block;
        width: 100%;
    }
    .table-borderless th {
        padding-bottom: 0;
    }
}

@media (max-width: 1068px) {
    .spotlight__card { grid-template-columns: 1fr; }
    .spotlight__visual {
        max-height: 220px;
        height: clamp(140px, 40vw, 220px);
    }
}

@media (max-width: 991px) {
    .posts-feed.list-view,
    .services-grid.list-view { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 734px) {
    .posts-feed.list-view,
    .services-grid.list-view,
    .tiles-apple,
    .hero-apple { padding: 40px 22px 48px; }
}
@media (max-width: 576px) {
    .card-header .d-flex {
        flex-direction: column;
        align-items: stretch;
    }
    .card-header .btn-sm {
        width: 100%;
    }
    /* Убедитесь, что эти правила есть (они уже есть в вашем файле) */
.table-borderless th,
.table-borderless td { border: none !important; }

.card.h-100 { display: flex; flex-direction: column; }
.card.h-100 .card-body { flex: 1 1 auto; }
.card.h-100 .card-footer { margin-top: auto; }

@media (max-width: 576px) {
    .card-header .d-flex { flex-direction: column; align-items: stretch; }
    .card-header .btn-sm { width: 100%; }
}
}