/* ==========================================================================
   Моспечать — тема по макету Kimi Agent (Paper Cool / Press Orange / Leaf Green)
   Шрифты: системные стеки (у Fraunces/Outfit из макета нет кириллицы).
   ========================================================================== */

:root {
    --background: hsl(40 20% 97.5%);
    --foreground: hsl(30 12% 15%);
    --card: hsl(40 30% 99%);
    --card-foreground: hsl(40 15% 15%);
    --primary: hsl(30 20% 16%);
    --primary-foreground: hsl(40 20% 97%);
    --secondary: hsl(40 12% 92%);
    --muted-foreground: hsl(35 8% 40%);
    --accent: hsl(29 88% 46%);
    --accent-hover: hsl(29 88% 42%);
    --accent-foreground: hsl(40 30% 98%);
    --brand: hsl(96 55% 36%);
    --brand-foreground: hsl(96 40% 97%);
    --border: hsl(38 14% 85%);
    --input: hsl(38 14% 85%);
    --destructive: hsl(0 62.8% 40%);
    --radius: 0.625rem;
    --max-site: 1400px;
    --spring: cubic-bezier(0.34, 1.3, 0.4, 1);
    --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
    --font-display: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--foreground);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:hover { color: var(--accent); }

::selection { background: hsl(29 88% 46% / 0.85); color: var(--accent-foreground); }

.container {
    max-width: var(--max-site);
    margin: 0 auto;
    padding: 0 16px;
}
@media (min-width: 768px) {
    .container { padding: 0 32px; }
}

/* ---------- Reveal-анимации ---------- */
.reveal {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    transition: opacity 0.5s var(--spring), transform 0.5s var(--spring);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---------- Кнопки ---------- */
.btn-callback {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    color: var(--primary-foreground);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s var(--spring);
}
.btn-callback:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -8px hsl(30 20% 16% / 0.5);
    color: var(--primary-foreground);
}
.btn-callback:active { transform: translateY(1px); }

.btn-callback--hero {
    padding: 14px 28px;
    background: var(--accent);
    color: var(--accent-foreground);
    font-size: 16px;
    font-weight: 600;
}
.btn-callback--hero:hover {
    box-shadow: 0 20px 40px -12px hsl(29 88% 46% / 0.35);
    color: var(--accent-foreground);
}

/* ---------- Шапка: оранжевый бар ---------- */
.site-header { position: relative; z-index: 40; }

.site-header__bar {
    background: linear-gradient(180deg, hsl(33 90% 50%), hsl(29 88% 46%));
}
.site-header__inner {
    max-width: var(--max-site);
    margin: 0 auto;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0 24px;
}
@media (min-width: 768px) {
    .site-header__inner { padding: 14px 32px; }
}
@media (min-width: 1024px) {
    .site-header__inner { grid-template-columns: auto 1fr auto; }
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.site-logo__mark { width: 40px; height: 40px; flex: 0 0 auto; }
.site-logo__text { line-height: 1.1; }
.site-logo__name {
    display: block;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #fff;
}
.site-logo__sub {
    display: block;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: hsl(0 0% 100% / 0.7);
}

.main-nav { display: none; justify-content: center; }
@media (min-width: 1024px) {
    .main-nav { display: flex; }
}
.main-nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.main-nav__list a {
    display: block;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: hsl(0 0% 100% / 0.9);
    text-decoration: none;
    transition: all 0.2s var(--spring);
}
.main-nav__list a:hover,
.main-nav__list .current-menu-item > a {
    background: hsl(0 0% 100% / 0.15);
    color: #fff;
}

.site-header__callback { display: none; }
@media (min-width: 768px) {
    .site-header__callback { display: inline-flex; }
}

.site-header__burger {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    width: 44px;
    height: 44px;
    border: 1px solid hsl(0 0% 100% / 0.4);
    border-radius: 999px;
    background: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}
.site-header__burger:hover { background: hsl(0 0% 100% / 0.15); }
@media (min-width: 1024px) {
    .site-header__burger { display: none; }
}
.site-header__burger-icon,
.site-header__burger-icon::before,
.site-header__burger-icon::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}
.site-header__burger-icon { position: relative; }
.site-header__burger-icon::before,
.site-header__burger-icon::after {
    content: "";
    position: absolute;
    left: 0;
}
.site-header__burger-icon::before { top: -6px; }
.site-header__burger-icon::after { top: 6px; }
.site-header__burger.is-open .site-header__burger-icon { background: transparent; }
.site-header__burger.is-open .site-header__burger-icon::before { transform: translateY(6px) rotate(45deg); }
.site-header__burger.is-open .site-header__burger-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* Полоса слогана */
.site-header__slogan {
    border-bottom: 1px solid var(--border);
    background: var(--card);
}
.site-header__slogan p {
    max-width: var(--max-site);
    margin: 0 auto;
    padding: 10px 16px;
    font-family: var(--font-display);
    font-size: 15px;
    font-style: italic;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-align: center;
    color: hsl(30 12% 15% / 0.85);
}
@media (min-width: 768px) {
    .site-header__slogan p { padding: 10px 32px; }
}
.site-header__slogan span { color: var(--accent); }

/* Зелёная контактная полоса */
.site-header__contacts {
    background: var(--brand);
    color: var(--brand-foreground);
}
.site-header__contacts-inner {
    max-width: var(--max-site);
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 32px;
    font-size: 14px;
}
@media (min-width: 768px) {
    .site-header__contacts-inner { padding: 10px 32px; }
}
.site-header__contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--brand-foreground);
    text-decoration: none;
    transition: opacity 0.2s;
}
.site-header__contact:hover { opacity: 0.8; color: var(--brand-foreground); }
.site-header__contact svg { width: 16px; height: 16px; }
.site-header__callback-link {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    color: var(--brand-foreground);
    text-decoration: underline;
    text-decoration-color: hsl(0 0% 100% / 0.4);
    text-underline-offset: 4px;
    cursor: pointer;
    transition: text-decoration-color 0.2s;
}
.site-header__callback-link:hover { text-decoration-color: #fff; }

/* Мобильное меню */
.mobile-menu {
    border-bottom: 1px solid var(--border);
    background: var(--card);
    padding: 12px 16px 24px;
}
/* Страховка: display на элементе перебивает UA-стиль [hidden]{display:none}. */
.mobile-menu[hidden] { display: none; }
.mobile-menu__list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.mobile-menu__list a {
    display: block;
    padding: 12px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: var(--foreground);
    text-decoration: none;
    transition: background 0.2s;
}
.mobile-menu__list a:hover { background: var(--secondary); color: var(--foreground); }
.mobile-menu__callback {
    width: 100%;
    justify-content: center;
    margin-top: 16px;
    padding: 14px 20px;
    background: var(--accent);
    color: var(--accent-foreground);
    font-weight: 600;
}
.mobile-menu__callback:hover { color: var(--accent-foreground); }

/* ---------- Layout с левым сайдбаром ---------- */
.site-main { padding-bottom: 0; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    padding-top: 32px;
    padding-bottom: 48px;
}
@media (min-width: 1024px) {
    .layout-with-sidebar {
        grid-template-columns: 300px minmax(0, 1fr);
        gap: 56px;
        padding-top: 48px;
        padding-bottom: 64px;
    }
}
/* Главная: на мобильном каталог услуг после контента (как в макете: order-2/order-1). */
@media (max-width: 1023px) {
    .layout-with-sidebar--home .svc-sidebar { order: 2; }
    .layout-with-sidebar--home .home-content { order: 1; min-width: 0; }
}

/* ---------- Сайдбар каталога услуг ---------- */
.svc-group { margin-bottom: 32px; }
.svc-group__title {
    display: block;
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 2px solid hsl(96 55% 36% / 0.25);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--brand);
    text-decoration: none;
    transition: color 0.2s;
}
.svc-group__title:hover { color: var(--accent); }
.svc-group__list {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}
.svc-group__list li { margin: 6px 0; }
.svc-group__list a {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 15px;
    line-height: 1.35;
    color: hsl(30 12% 15% / 0.75);
    text-decoration: none;
    transition: color 0.2s;
}
.svc-group__list a::before {
    content: "";
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: hsl(29 88% 46% / 0.5);
    transform: translateY(-1px);
    transition: background 0.2s var(--spring);
}
.svc-group__list a:hover { color: var(--accent); }
.svc-group__list a:hover::before { background: var(--accent); }

.svc-card {
    margin-bottom: 32px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--card);
}
.svc-card__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.svc-card__title svg { width: 18px; height: 18px; color: var(--brand); }
.svc-card__title--accent { color: var(--accent); }
.svc-card__title--accent svg { color: var(--accent); }
.svc-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted-foreground);
}
.svc-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.svc-card__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-card__badges span {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--secondary);
    font-size: 12px;
    font-weight: 600;
    color: hsl(30 12% 15% / 0.7);
}

/* Мобильный аккордеон сайдбара (правило 42). */
.svc-sidebar__toggle {
    display: none;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
}
.svc-sidebar__arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s;
    flex: 0 0 auto;
}
.svc-sidebar.is-open .svc-sidebar__arrow { transform: rotate(225deg); }
@media (max-width: 1023px) {
    .svc-sidebar--accordion .svc-sidebar__toggle { display: flex; }
    .svc-sidebar--accordion .svc-sidebar__nav { display: none; margin-top: 16px; }
    .svc-sidebar--accordion.is-open .svc-sidebar__nav { display: block; }
}

/* ---------- Hero ---------- */
.hero__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.01em;
    text-wrap: balance;
}
.hero__accent { color: var(--accent); }
.hero__subtitle {
    margin: 16px 0 0;
    max-width: 65ch;
    font-size: 18px;
    line-height: 1.6;
    color: var(--muted-foreground);
}
.hero__actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}
.hero__phone-hint { font-size: 14px; color: var(--muted-foreground); }
.hero__phone-hint a {
    font-weight: 600;
    color: var(--foreground);
    text-decoration: underline;
    text-decoration-color: hsl(29 88% 46% / 0.6);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: color 0.2s;
}
.hero__phone-hint a:hover { color: var(--accent); }

.hero__media {
    margin-top: 36px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 40px;
    background: var(--card);
    box-shadow: 0 24px 60px -24px hsl(30 20% 16% / 0.18);
}
.hero__media img {
    display: block;
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    padding: 32px 24px 16px;
    background: radial-gradient(ellipse at center, hsl(40 16% 96%) 0%, hsl(38 14% 89%) 100%);
    filter: drop-shadow(0 24px 24px hsl(30 20% 16% / 0.22));
}
@media (min-width: 768px) {
    .hero__media img { padding: 32px 40px 16px; }
}
.hero__cmyk {
    display: flex;
    gap: 6px;
    padding: 8px 24px 24px;
}
@media (min-width: 768px) {
    .hero__cmyk { padding: 8px 40px 24px; }
}
.hero__cmyk span { height: 10px; flex: 1; border-radius: 999px; }
.hero__cmyk-c { background: hsl(190 60% 45%); }
.hero__cmyk-m { background: hsl(330 55% 50%); }
.hero__cmyk-y { background: hsl(50 75% 52%); }
.hero__cmyk-k { background: hsl(30 14% 15%); }

/* ---------- Клиенты ---------- */
.clients { margin-top: 56px; }
.section-title,
.clients h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}
.clients__list {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 32px;
    background: var(--border);
}
@media (min-width: 640px) {
    .clients__list { grid-template-columns: repeat(3, 1fr); }
}
.clients__item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 24px;
    background: var(--card);
    transition: background 0.2s;
}
.clients__item:hover { background: hsl(40 12% 92% / 0.7); }
.clients__item img {
    height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 6px;
    transition: transform 0.2s var(--spring);
}
@media (min-width: 768px) {
    .clients__item img { height: 48px; }
}
.clients__item:hover img { transform: scale(1.05); }

/* ---------- О компании (the_content главной) ---------- */
.about { margin-top: 56px; }
.about__text h2 {
    margin: 0 0 16px;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}
.about__stats {
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.about__stats li {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--card);
    text-align: center;
}
.about__stats strong {
    display: block;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    color: var(--accent);
}
.about__stats span { font-size: 13px; color: var(--muted-foreground); }
@media (max-width: 640px) {
    .about__stats { grid-template-columns: 1fr; }
}

/* ---------- Секция заявки (тёмная) ---------- */
.feedback {
    border-top: 1px solid var(--border);
    background: var(--primary);
    color: var(--primary-foreground);
}
.feedback__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 64px;
    padding-bottom: 64px;
}
@media (min-width: 1024px) {
    .feedback__inner {
        grid-template-columns: 5fr 7fr;
        padding-top: 96px;
        padding-bottom: 96px;
    }
}
.feedback__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.4vw, 2.9rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
}
.feedback__info > p {
    margin: 20px 0 0;
    max-width: 52ch;
    line-height: 1.6;
    color: hsl(40 20% 97% / 0.7);
}
.feedback__contacts { margin-top: 32px; }
.feedback__label {
    margin: 0 0 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: hsl(40 20% 97% / 0.5);
}
.feedback__phone {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--primary-foreground);
    text-decoration: none;
    transition: color 0.2s;
}
.feedback__phone:hover { color: var(--accent); }
.feedback__email {
    display: inline-block;
    margin-left: 16px;
    font-size: 16px;
    color: var(--primary-foreground);
    text-decoration: underline;
    text-decoration-color: hsl(40 20% 97% / 0.3);
    text-underline-offset: 4px;
    transition: color 0.2s;
}
.feedback__email:hover { color: var(--accent); }

/* Форма на тёмной секции — светлая карточка. */
.feedback__form .mospechat-form {
    max-width: none;
    padding: 24px;
    border-radius: 40px;
    background: var(--card);
    color: var(--card-foreground);
    box-shadow: 0 24px 60px -24px hsl(215 28% 8% / 0.4);
}
@media (min-width: 768px) {
    .feedback__form .mospechat-form { padding: 40px; }
}

/* ---------- Формы ---------- */
.mospechat-form { max-width: 560px; }
.mospechat-form .pf-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 768px) {
    .mospechat-form .pf-grid { grid-template-columns: 1fr 1fr; }
    .mospechat-form .pf-row--wide { grid-column: 1 / -1; }
}
.mospechat-form .pf-row { margin: 0 0 14px; }
.mospechat-form .pf-grid .pf-row { margin: 0; }
.mospechat-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
}
.mospechat-form input[type="text"],
.mospechat-form input[type="tel"],
.mospechat-form input[type="email"],
.mospechat-form select,
.mospechat-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--input);
    border-radius: 12px;
    background: var(--background);
    color: var(--foreground);
    font: inherit;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s var(--spring), box-shadow 0.2s var(--spring);
}
.mospechat-form select { appearance: none; }
.mospechat-form textarea { resize: vertical; }
.mospechat-form input:focus,
.mospechat-form select:focus,
.mospechat-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px hsl(29 88% 46% / 0.25);
}
.mospechat-form .pf-req { color: var(--destructive); }
.mospechat-form .pf-opt { font-weight: 400; color: var(--muted-foreground); }
.mospechat-form .pf-consent { margin-top: 20px; }
.mospechat-form .pf-consent label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--muted-foreground);
    cursor: pointer;
}
.mospechat-form .pf-consent input {
    margin-top: 2px;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    accent-color: var(--accent);
    cursor: pointer;
}
.mospechat-form .pf-consent span { flex: 1; }
.mospechat-form .pf-captcha-note { font-size: 13px; color: var(--muted-foreground); }
.mospechat-form .pf-hp { display: none; }
.mospechat-form .pf-submit {
    margin-top: 24px;
    width: 100%;
    padding: 16px 32px;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-foreground);
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--spring);
}
@media (min-width: 768px) {
    .mospechat-form .pf-submit { width: auto; }
}
.mospechat-form .pf-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -12px hsl(29 88% 46% / 0.35);
}
.mospechat-form .pf-submit:active { transform: translateY(1px); }
.mospechat-form .pf-submit:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }
.mospechat-form .pf-result { margin-top: 12px; }
.mospechat-form .pf-result.pf-ok { color: #1a7a1a; }
.mospechat-form .pf-result.pf-error { color: var(--destructive); }

/* ---------- Попап «Обратный звонок» ---------- */
/* Видимость только классом .is-open: display:flex перебил бы атрибут hidden. */
.mospechat-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.55);
    overflow-y: auto;
}
.mospechat-popup.is-open { display: flex; }
body.mospechat-popup-open { overflow: hidden; }
.mospechat-popup__box {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: auto;
    background: var(--card);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.4);
}
.mospechat-popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    border: 0;
    border-radius: 50%;
    background: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
    .mospechat-popup__close:hover { background: var(--secondary); }
}
.mospechat-popup__title {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.mospechat-popup__sub { margin: 0 0 16px; color: var(--muted-foreground); }
.mospechat-popup .pf-submit { width: 100%; }

@media (max-width: 600px) {
    .mospechat-popup { padding: 12px; align-items: flex-start; }
    .mospechat-popup__box { padding: 20px 16px; }
    .mospechat-popup__title { font-size: 20px; }
}

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
    margin: 20px 0 0;
    font-size: 14px;
    color: var(--muted-foreground);
}
.breadcrumbs a { color: var(--muted-foreground); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 2px; color: var(--border); }

/* ---------- Типовая страница ---------- */
.entry-title {
    margin: 8px 0 20px;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
}
.entry-content { max-width: 100%; }
.entry-content h2 {
    margin: 32px 0 12px;
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}
.entry-content h3 {
    margin: 24px 0 10px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
}
.entry-content p { margin: 0 0 16px; }
.entry-content ul, .entry-content ol { margin: 0 0 16px; padding-left: 24px; }
.entry-content table {
    width: 100%;
    margin: 0 0 20px;
    border-collapse: collapse;
    font-size: 15px;
}
.entry-content th, .entry-content td {
    padding: 10px 12px;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}
.entry-content th { background: var(--secondary); }
.entry-content img { border-radius: 12px; }

.page-feedback {
    margin-top: 40px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--card);
}
.page-feedback h2 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.page-feedback > p { margin: 0 0 20px; color: var(--muted-foreground); font-size: 14px; }

/* ---------- Подвал ---------- */
.site-footer {
    background: linear-gradient(180deg, hsl(33 90% 50%), hsl(29 88% 46%));
    color: #fff;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 40px;
}
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 4fr 3fr 5fr; }
}
.footer-logo { display: inline-block; text-decoration: none; }
.footer-logo__name {
    display: block;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #fff;
}
.footer-logo__sub {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    color: hsl(0 0% 100% / 0.75);
}
.footer-brand__contact {
    display: block;
    margin-top: 10px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}
.footer-brand__contact:first-of-type { margin-top: 24px; }
.footer-brand__contact:hover { opacity: 0.8; color: #fff; }

.footer-title {
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: hsl(0 0% 100% / 0.6);
}
.footer-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer-menu li { margin: 10px 0; }
.footer-menu a {
    font-size: 15px;
    color: hsl(0 0% 100% / 0.85);
    text-decoration: none;
    transition: opacity 0.2s;
}
.footer-menu a:hover { opacity: 0.75; color: #fff; }

.footer-services__grid {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
@media (min-width: 640px) {
    .footer-services__grid { grid-template-columns: 1fr 1fr; gap: 8px 32px; }
}
.footer-services__grid a {
    font-size: 15px;
    color: hsl(0 0% 100% / 0.85);
    text-decoration: none;
    transition: opacity 0.2s;
}
.footer-services__grid a:hover { opacity: 0.75; color: #fff; }

.footer-bottom {
    border-top: 1px solid hsl(0 0% 100% / 0.25);
}
.footer-bottom__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 28px;
    padding-bottom: 28px;
    font-size: 14px;
    color: hsl(0 0% 100% / 0.8);
}
.footer-bottom .captcha-notice { font-size: 12px; color: hsl(0 0% 100% / 0.6); }

/* ---------- Cookie-нотис ---------- */
.cookie-notice {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    padding: 14px 16px;
    background: var(--primary);
    color: var(--primary-foreground);
    font-size: 14px;
}
/* Страховка: display на элементе перебивает UA-стиль [hidden]{display:none}. */
.cookie-notice[hidden] { display: none; }
.cookie-notice__inner {
    max-width: var(--max-site);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}
.cookie-notice__text { margin: 0; flex: 1 1 auto; }
.cookie-notice__more { color: hsl(40 20% 97% / 0.7); margin-left: 6px; white-space: nowrap; }
.cookie-notice__accept {
    flex: 0 0 auto;
    padding: 8px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-foreground);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
@media (max-width: 600px) {
    .cookie-notice__inner { flex-direction: column; align-items: stretch; text-align: center; }
    .cookie-notice__accept { width: 100%; }
}

/* ---------- 404 / архив ---------- */
.error-404 { text-align: center; padding: 64px 0; }
.posts-list { display: grid; gap: 24px; }
/* form-style-20261116:layered */
form[action*="admin-ajax"] :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=range]), select, textarea){border-radius:6px;border-style:solid;border-width:1px;box-shadow:3px 3px 0 rgba(0,0,0,.10);transition:border-color .18s,box-shadow .18s,background .18s}
form[action*="admin-ajax"] textarea{border-radius:6px;}
form[action*="admin-ajax"] :is(button[type=submit], input[type=submit], .pf-submit, .form-submit){border-radius:6px;box-shadow:3px 3px 0 rgba(0,0,0,.16);}
