/* SmallPrint 2026 — тема по макету редизайна (Kimi Agent, 2026-11-14). */

@font-face {
    font-family: PFDIN;
    src: url('../fonts/pfdin-300.woff') format('woff');
    font-weight: 300;
    font-display: swap;
}
@font-face {
    font-family: PFDIN;
    src: url('../fonts/pfdin-400.woff') format('woff');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: PFDIN;
    src: url('../fonts/pfdin-500.woff') format('woff');
    font-weight: 500 700;
    font-display: swap;
}

:root {
    --blue-950: oklch(0.28 0.06 245);
    --blue-800: oklch(0.40 0.085 242);
    --blue-700: oklch(0.48 0.1 240);
    --blue-500: oklch(0.61 0.12 238);
    --blue-100: oklch(0.94 0.025 235);
    --blue-50: oklch(0.965 0.018 235);
    --orange-600: oklch(0.64 0.17 52);
    --orange-500: oklch(0.73 0.16 62);
    --orange-100: oklch(0.95 0.045 75);
    --ink: oklch(0.30 0.025 245);
    --muted: oklch(0.50 0.025 245);
    --paper: oklch(0.985 0.006 95);
    --surface: oklch(0.998 0.002 95);
    --line: oklch(0.89 0.015 240);
    --header-bg: var(--surface);
    --nav-bg: var(--blue-950);
    --catalog-bg: var(--surface);
    --catalog-heading: var(--surface);
    --cta-bg: var(--orange-500);
    --radius: 24px;
    --shadow: 0 20px 55px oklch(0.28 0.06 245 / .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
    min-height: 100dvh;
    background: var(--paper);
    color: var(--ink);
    font: 400 17px/1.65 PFDIN, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 3px; }
::selection { background: var(--orange-100); color: var(--blue-950); }

.container { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }

/* ---------- Шапка ---------- */
.topbar {
    background: var(--header-bg);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    min-height: 116px;
    display: grid;
    grid-template-columns: 300px 1fr auto;
    align-items: center;
    gap: 34px;
}
.brand { display: inline-flex; width: 278px; transition: transform .2s ease-out; }
.brand:hover { transform: translateY(-2px); }
.brand img { width: 278px; height: auto; }
.slogan { display: grid; gap: 4px; max-width: 260px; padding-left: 30px; border-left: 1px solid var(--line); }
.slogan span { color: var(--orange-600); font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.slogan small { color: var(--muted); font-size: 15px; line-height: 1.4; }
.contacts { display: grid; gap: 5px; font-size: 19px; font-weight: 500; white-space: nowrap; }
.contact-link { display: flex; align-items: center; gap: 10px; min-height: 40px; transition: color .2s; }
.contact-link:hover { color: var(--orange-600); }
.contact-link svg { width: 20px; height: 20px; flex: none; color: var(--orange-600); }

/* ---------- Главное меню ---------- */
.mainnav { background: var(--nav-bg); position: relative; }
.nav-inner { display: flex; align-items: center; min-height: 60px; }
.nav-links { display: flex; align-items: stretch; gap: 6px; list-style: none; }
.nav-links li { display: contents; }
.nav-links a {
    display: flex;
    align-items: center;
    min-height: 60px;
    padding: 0 25px;
    color: var(--blue-100);
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .055em;
    position: relative;
    transition: color .2s, background .2s;
}
.nav-links a:after {
    content: "";
    position: absolute;
    left: 25px;
    right: 25px;
    bottom: 0;
    height: 3px;
    background: var(--orange-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s;
}
.nav-links a:hover,
.nav-links .current-menu-item a,
.nav-links .current-menu-ancestor a,
.nav-links .current_page_item a {
    color: var(--surface);
    background: oklch(0.99 0.003 95 / .08);
}
.nav-links a:hover:after,
.nav-links .current-menu-item a:after,
.nav-links .current-menu-ancestor a:after,
.nav-links .current_page_item a:after { transform: scaleX(1); }

.menu-toggle, .catalog-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--blue-800);
    min-height: 48px;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: .04em;
}
.menu-toggle svg, .catalog-toggle svg { width: 22px; height: 22px; }

/* ---------- Каркас: сайдбар + контент ---------- */
.layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 52px;
    padding-block: 48px 72px;
    align-items: start;
}
.sidebar { position: sticky; top: 24px; }
.sidebar-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--blue-950);
}
.sidebar-heading h2 { font-size: 23px; line-height: 1.25; font-weight: 500; letter-spacing: -.02em; }
.catalog-count { font-size: 13px; color: var(--muted); white-space: nowrap; }

.catalog { display: grid; gap: 8px; }
.category-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: stretch;
    background: var(--catalog-heading);
    color: var(--blue-950);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.category-row:hover { border-color: var(--orange-500); }
.catalog-group.is-current .category-row { border-color: var(--orange-500); box-shadow: inset 3px 0 0 var(--orange-500); }
.category-link {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 11px 8px 11px 15px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 500;
    transition: color .2s;
}
.category-link:hover { color: var(--orange-600); }
.accordion-button {
    border: 0;
    border-left: 1px solid var(--line);
    background: transparent;
    color: var(--blue-800);
    display: grid;
    place-items: center;
    min-width: 44px;
    transition: background .2s;
}
.accordion-button:hover { background: var(--blue-50); }
.accordion-button svg { width: 17px; height: 17px; transition: transform .2s; }
.accordion-button[aria-expanded="true"] svg { transform: rotate(180deg); }

.subnav {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .25s ease-out;
    margin-left: 14px;
    border-left: 2px solid var(--blue-100);
}
.subnav.open { grid-template-rows: 1fr; }
.subnav-inner { overflow: hidden; padding-block: 5px; }
.subnav a {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    color: var(--muted);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    transition: background .2s, color .2s;
}
.subnav a:hover { background: var(--blue-50); color: var(--blue-800); }
.subnav a.is-current { background: var(--orange-100); color: var(--blue-950); font-weight: 500; }

/* ---------- Главная: первый экран ---------- */
.home-hero { background: var(--blue-50); border-bottom: 1px solid var(--line); overflow: hidden; }
.home-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
    gap: 64px;
    align-items: center;
    padding-block: 64px;
}
.eyebrow, .section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--orange-600);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.eyebrow { margin-bottom: 18px; }
.eyebrow:before { content: ""; width: 30px; height: 2px; background: var(--orange-500); }
.home-hero__media { position: relative; }
.home-hero__media:before {
    content: "";
    position: absolute;
    inset: 24px -16px -16px 24px;
    background: var(--orange-500);
    border-radius: 28px;
}
.home-hero .hero-image { margin: 0; }
.home-hero .hero-image img { aspect-ratio: 680/430; }
.home-hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }

/* ---------- Главная: каталог ---------- */
.home-services { padding-block: 64px 30px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-kicker { margin-bottom: 8px; }
.section-heading h2 { color: var(--blue-950); font-size: clamp(30px, 3.2vw, 42px); line-height: 1.15; font-weight: 500; letter-spacing: -.025em; }
.section-heading p { max-width: 360px; color: var(--muted); line-height: 1.5; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.service-card {
    min-height: 172px;
    display: flex;
    flex-direction: column;
    padding: 23px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-3px); border-color: var(--orange-500); box-shadow: var(--shadow); }
.service-card__number { color: var(--orange-600); font-size: 13px; font-weight: 500; letter-spacing: .08em; }
.service-card h3 { max-width: 26ch; margin: 15px 0 20px; color: var(--blue-950); font-size: 20px; line-height: 1.3; font-weight: 500; }
.service-card__link { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; color: var(--blue-800); font-size: 14px; font-weight: 500; }
.service-card__link svg { width: 18px; height: 18px; color: var(--orange-600); }

/* ---------- Контент ---------- */
.content { min-width: 0; }
.home-content { padding-block: 28px 72px; }
.home-content .content { max-width: 900px; margin-inline: auto; }
.hero-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 34px;
    background: var(--blue-100);
}
.hero-image img { width: 100%; aspect-ratio: 680/330; object-fit: cover; transition: transform .5s ease-out; }
.hero-image:hover img { transform: scale(1.015); }

h1, .entry-title {
    font-size: clamp(34px, 3.8vw, 52px);
    line-height: 1.1;
    letter-spacing: -.03em;
    font-weight: 500;
    color: var(--blue-950);
    max-width: 22ch;
    margin-bottom: 22px;
    text-wrap: balance;
}
.home-hero h1 { max-width: 17ch; font-size: clamp(40px, 4.6vw, 60px); line-height: 1.06; }
.lead { font-size: 21px; line-height: 1.55; max-width: 68ch; color: var(--blue-950); margin-bottom: 22px; }
.home-hero .lead { max-width: 50ch; color: var(--muted); font-size: 20px; }
.content p { max-width: 72ch; margin-bottom: 18px; }
.content strong, .content b { font-weight: 500; color: var(--blue-950); }
.content ul, .content ol { max-width: 72ch; margin: 0 0 18px 22px; }
.content img { border-radius: 12px; margin-bottom: 18px; }
.content h2 {
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 500;
    color: var(--blue-800);
    margin: 30px 0 16px;
}
.content h3 { font-size: 22px; font-weight: 500; color: var(--blue-950); margin: 24px 0 12px; }
.entry-content { padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }

.print-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 4px 0 24px;
    list-style: none;
    color: var(--blue-800);
    font-weight: 500;
}
.print-types li { display: flex; align-items: center; gap: 8px; }
.home-hero .print-types { margin: 0; }
.home-hero .print-types li { padding: 6px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }

.cta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 34px 0 42px;
    padding: 28px 30px;
    background: var(--orange-100);
    border: 1px solid var(--orange-500);
    border-radius: 20px;
}
.cta-line p { margin: 0; font-size: 20px; color: var(--blue-950); line-height: 1.45; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 25px;
    border: 1px solid var(--cta-bg);
    border-radius: 999px;
    background: var(--cta-bg);
    color: var(--surface);
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.button:hover { background: var(--orange-600); border-color: var(--orange-600); }
.button--secondary { background: transparent; border-color: var(--line); color: var(--blue-800); }
.button--secondary:hover { background: var(--surface); border-color: var(--blue-800); color: var(--blue-950); }
.button:active { transform: translateY(1px); }
.button svg { width: 18px; height: 18px; }
.button:disabled { opacity: .6; cursor: default; }

.clients { margin-top: 42px; }
.clients h2 { font-size: 28px; font-weight: 500; color: var(--blue-950); margin-bottom: 18px; }
.clients img { width: 100%; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }

/* ---------- Блок заявки ---------- */
.feedback { background: transparent; color: var(--paper); padding-block: 20px 72px; }
.feedback-grid {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: 48px;
    align-items: start;
    padding: 44px;
    background: var(--blue-950);
    border-radius: 28px;
    box-shadow: var(--shadow);
}
.feedback-copy { padding-top: 10px; }
.feedback-copy h2 { font-size: clamp(29px, 3vw, 40px); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 18px; }
.feedback-copy p { max-width: 36ch; color: var(--blue-100); margin-bottom: 24px; }
.feedback-contact { display: grid; gap: 4px; }
.feedback-contact a {
    color: var(--paper);
    font-size: 21px;
    width: max-content;
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}
.feedback-contact a:hover { border-color: var(--orange-500); }

.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 28px; background: var(--surface); color: var(--ink); border-radius: 20px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label, .quote-form .field > span.label { font-size: 14px; font-weight: 500; letter-spacing: .02em; }
.field input, .field select, .field textarea {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink);
    padding: 11px 13px;
    font-weight: 400;
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--orange-500);
    box-shadow: 0 0 0 3px var(--orange-100);
}
.field .error { min-height: 18px; color: var(--orange-600); font-size: 13px; line-height: 1.35; }
/* Чекбокс согласия: текст только в span (правило 41). */
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; min-height: 0; margin-top: 1px; accent-color: var(--orange-500); flex: 0 0 auto; padding: 0; }
.consent span { flex: 1; }
.consent a { color: var(--blue-800); border-bottom: 1px solid var(--line); }
.form-bottom { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-status { font-size: 15px; color: var(--blue-800); max-width: 40ch; }
.form-status.is-error { color: var(--orange-600); }
.pf-hp { display: none; }
.pf-captcha-note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }

/* ---------- Футер ---------- */
.footer { background: var(--blue-950); }
.footer-inner {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--blue-100);
    font-size: 15px;
}
.footer-links { display: flex; gap: 22px; list-style: none; }
.footer-links li { display: contents; }
.footer-links a { color: var(--paper); border-bottom: 1px solid transparent; transition: border-color .2s; }
.footer-links a:hover { border-color: var(--orange-500); }
.footer-captcha { display: block; font-size: 13px; }

/* ---------- Куки-баннер ---------- */
.cookie-notice {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: var(--blue-950);
    color: var(--paper);
    padding: 14px 20px;
    box-shadow: 0 -8px 30px oklch(0.34 0.075 245 / .25);
}
.cookie-notice[hidden] { display: none; }
.cookie-notice__inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}
.cookie-notice__text { margin: 0; flex: 1 1 auto; font-size: 14px; line-height: 1.5; }
.cookie-notice__more { color: var(--orange-500); margin-left: 6px; white-space: nowrap; }
.cookie-notice__accept {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 8px 22px;
    border: 0;
    border-radius: 8px;
    background: var(--cta-bg);
    color: var(--paper);
    font-weight: 500;
    transition: background .2s;
}
.cookie-notice__accept:hover { background: var(--orange-600); }

/* ---------- 404 ---------- */
.error-404 { padding-block: 40px 60px; max-width: 640px; }
.error-404 p { margin-bottom: 18px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
    .header-inner { grid-template-columns: 250px 1fr auto; gap: 20px; }
    .brand, .brand img { width: 240px; }
    .slogan { padding-left: 20px; }
    .slogan small { font-size: 14px; }
    .contacts { font-size: 17px; }
    .layout { grid-template-columns: 250px minmax(0, 1fr); gap: 30px; }
    .nav-links a { padding-inline: 20px; }
    .nav-links a:after { left: 20px; right: 20px; }
    .home-hero__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 38px; padding-block: 50px; }
    .home-hero h1 { font-size: 46px; }
    .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feedback-grid { gap: 30px; padding: 32px; }
}

@media (max-width: 900px) {
    .header-inner { grid-template-columns: 1fr auto; }
    .slogan { display: none; }
    .home-hero__grid { grid-template-columns: 1fr; }
    .home-hero__copy { max-width: 700px; }
    .home-hero__media { max-width: 680px; }
    .feedback-grid { grid-template-columns: 1fr; }
    .feedback-copy p { max-width: 55ch; }
}

@media (max-width: 767px) {
    .container { width: min(100% - 28px, 1200px); }
    .header-inner { grid-template-columns: 1fr auto; gap: 16px; min-height: 106px; }
    .brand, .brand img { width: 220px; }
    .contacts { font-size: 15px; gap: 2px; }
    .contact-link { gap: 7px; min-height: 36px; }
    .contact-link svg { width: 17px; height: 17px; }
    .menu-toggle { display: flex; color: var(--paper); }
    .nav-inner { min-height: 56px; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 20;
        background: var(--blue-950);
        box-shadow: var(--shadow);
        padding: 8px 14px 14px;
    }
    .nav-links.open { display: grid; }
    .nav-links a { min-height: 48px; padding-inline: 14px; }
    .nav-links a:after { left: 14px; right: 14px; }
    .home-hero__grid { gap: 34px; padding-block: 38px 46px; }
    .home-hero h1 { font-size: clamp(36px, 10vw, 48px); }
    .home-hero .lead { font-size: 18px; }
    .home-hero__media:before { inset: 14px 10px -10px 14px; border-radius: 22px; }
    .home-hero .hero-image { border-radius: 20px; }
    .home-hero .hero-image img { aspect-ratio: 1.45; }
    .home-services { padding-block: 42px 20px; }
    .section-heading { display: grid; gap: 12px; margin-bottom: 18px; }
    .section-heading p { max-width: 50ch; }
    /* Каталог на мобильном: аккордеон, закрыт по умолчанию (правило 42). */
    .catalog-toggle { display: flex; }
    .services-toggle { width: 100%; justify-content: space-between; padding: 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
    .sidebar { position: static; }
    .catalog, .services-grid.catalog { display: none; }
    .catalog.mobile-open, .services-grid.catalog.mobile-open { display: grid; }
    .services-grid.catalog.mobile-open { grid-template-columns: 1fr; margin-top: 12px; }
    .service-card { min-height: 150px; }
    .layout { grid-template-columns: 1fr; padding-block: 28px 48px; gap: 30px; }
    .sidebar-heading { margin-bottom: 10px; }
    .catalog-count { display: none; }
    h1, .entry-title { font-size: clamp(30px, 8.5vw, 40px); }
    .lead { font-size: 19px; }
    .home-content { padding-block: 20px 48px; }
    .entry-content { padding: 20px; border-radius: 16px; }
    .cta-line { align-items: flex-start; flex-direction: column; padding: 22px; }
    .cta-line .button { width: 100%; }
    .clients img { padding: 12px; }
    .feedback { padding-block: 0 48px; }
    .feedback-grid { grid-template-columns: 1fr; gap: 26px; padding: 25px; border-radius: 22px; }
    .quote-form { grid-template-columns: 1fr; padding: 20px; border-radius: 16px; }
    .field.full, .form-bottom { grid-column: auto; }
    .form-bottom .button { width: 100%; }
    .footer-inner { padding-block: 28px; align-items: flex-start; flex-direction: column; gap: 14px; }
    .footer-links { flex-wrap: wrap; }
    .cookie-notice__inner { flex-direction: column; align-items: stretch; text-align: center; }
    .cookie-notice__accept { width: 100%; border-radius: 999px; }
}

@media (max-width: 420px) {
    .header-inner { grid-template-columns: 1fr; gap: 8px; padding-block: 16px; }
    .brand, .brand img { width: 220px; }
    .contacts { display: flex; flex-wrap: wrap; gap: 0 14px; }
    .contact-link { min-height: 34px; }
    .home-hero__actions { align-items: stretch; flex-direction: column; }
    .home-hero__actions .button { width: 100%; }
    .home-hero .print-types { gap: 6px; }
    .home-hero .print-types li { padding-inline: 10px; font-size: 13px; }
    .content p { font-size: 16px; }
    .feedback-grid { padding: 21px; }
    .quote-form { padding: 16px; }
    .feedback-contact a { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *:before, *:after { transition: none !important; animation: none !important; }
}
/* form-style-20261116:soft */
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:14px;border-style:solid;border-width:1px;box-shadow:0 2px 0 rgba(0,0,0,.04);transition:border-color .18s,box-shadow .18s,background .18s}
form[action*="admin-ajax"] textarea{border-radius:12px;}
form[action*="admin-ajax"] :is(button[type=submit], input[type=submit], .pf-submit, .form-submit){border-radius:999px;}
