/* ===================================================
   CATALOG THEME — Main Stylesheet
   =================================================== */

/* ─── Reset & Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #111827;
    background: #f9fafb;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── Buttons ───────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1;
}
.btn--primary  { background: #1a56db; color: #fff; }
.btn--primary:hover  { background: #1e40af; }
.btn--outline  { background: transparent; color: #1a56db; border: 2px solid #1a56db; }
.btn--outline:hover  { background: #eff6ff; }
.btn--full { width: 100%; }
.btn--lg   { padding: 16px 32px; font-size: 1rem; }

/* ─── Header ────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.site-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-header__logo {
    text-decoration: none;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a56db;
    letter-spacing: -0.5px;
}

.site-header__nav { flex: 1; }

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px;
}

.nav-menu a {
    text-decoration: none;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-menu a:hover,
.nav-menu .current-menu-item a { color: #1a56db; }

.site-header__phone {
    text-decoration: none;
    color: #1a56db;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 18px;
    border: 2px solid #1a56db;
    border-radius: 8px;
    white-space: nowrap;
    transition: all 0.2s;
}
.site-header__phone:hover { background: #1a56db; color: #fff; }

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #374151;
    border-radius: 2px;
    transition: all 0.3s;
}
.burger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── Site Wrapper ──────────────────────────────────── */
.site-wrapper { flex: 1; }

/* SEO Links (front-page) */
.home-links {
    background: #fff;
    padding: 32px 0 16px;
    border-bottom: 1px solid #e5e7eb;
}
.home-links__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.home-links__header {
    max-width: 760px;
    margin-bottom: 28px;
}
.home-links__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #1a56db;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.home-links__header h2 {
    margin: 0 0 12px;
    font-size: 2rem;
    line-height: 1.2;
    color: #111827;
}
.home-links__header p {
    margin: 0;
    color: #4b5563;
}
.home-links__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.home-links__item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
}
.home-links__item h3 {
    margin: 0 0 14px;
    font-size: 1.15rem;
    line-height: 1.35;
}
.home-links__item p {
    margin: 0 0 14px;
    color: #374151;
}
.home-links__item p:last-child {
    margin-bottom: 0;
}
.home-links__item a {
    color: #1a56db;
}

/* ─── Hero (front-page) ─────────────────────────────── */
.hero {
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 50%, #f5f3ff 100%);
    padding: 72px 0 56px;
}
.hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
}
.hero__title {
    font-size: 2.75rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 16px;
    line-height: 1.15;
}
.hero__subtitle {
    font-size: 1.1rem;
    color: #4b5563;
    margin: 0 0 32px;
}
.hero-search-form {
    display: flex;
    gap: 0;
    max-width: 520px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(26,86,219,0.15);
}
.hero-search-form__input {
    flex: 1;
    border: none;
    padding: 16px 20px;
    font-size: 1rem;
    outline: none;
}
.hero-search-form__btn {
    background: #1a56db;
    color: #fff;
    border: none;
    padding: 16px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.hero-search-form__btn:hover { background: #1e40af; }
.hero__stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fff;
    border-radius: 16px;
    padding: 28px 36px;
    box-shadow: 0 4px 24px rgba(26,86,219,0.1);
    text-align: center;
}
.hero__stat-num  { display: block; font-size: 2.5rem; font-weight: 800; color: #1a56db; }
.hero__stat-label { display: block; font-size: 0.8rem; color: #6b7280; }

/* ─── Sections ──────────────────────────────────────── */
.section { padding: 72px 0; }
.section--cats    { background: #fff; }
.section--services { background: #f9fafb; }

.section__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 40px;
}
.section__header h2 {
    font-size: 1.875rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
}
.section__header p { color: #6b7280; margin: 0; }
.section__all-link { color: #1a56db; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.section__all-link:hover { text-decoration: underline; }
.section__cta { text-align: center; margin-top: 40px; }

/* ─── Category Grid (front-page) ────────────────────── */
.cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}
.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px 16px;
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
}
.cat-card:hover {
    box-shadow: 0 6px 24px rgba(26,86,219,0.1);
    border-color: #1a56db;
    transform: translateY(-3px);
}
.cat-card__icon  { font-size: 2.25rem; }
.cat-card__name  { font-size: 0.85rem; font-weight: 600; color: #111827; }
.cat-card__count { font-size: 0.75rem; color: #9ca3af; }

/* ─── Service Card ───────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
    box-shadow: 0 8px 32px rgba(26,86,219,0.1);
    transform: translateY(-2px);
}
.service-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    text-decoration: none;
    color: inherit;
}
.service-card__icon { font-size: 2rem; margin-bottom: 12px; }
.service-card__body { flex: 1; }
.service-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px;
    line-height: 1.4;
}
.service-card__cat {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 8px;
}
.service-card__excerpt {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 8px 0 0;
    line-height: 1.5;
}
.service-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f3f4f6;
    padding-top: 14px;
    margin-top: 14px;
}
.service-card__price {
    font-size: 1rem;
    font-weight: 700;
    color: #1a56db;
}
.service-card__price--empty { color: #9ca3af; font-weight: 400; font-size: 0.85rem; }
.service-card__arrow { color: #9ca3af; font-size: 1.1rem; transition: transform 0.2s; }
.service-card:hover .service-card__arrow { transform: translateX(4px); color: #1a56db; }

/* ─── Catalog Hero ───────────────────────────────────── */
.catalog-hero {
    background: linear-gradient(135deg, #eff6ff, #e0e7ff);
    padding: 56px 0;
}
.catalog-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.catalog-hero__icon { font-size: 3rem; margin-bottom: 12px; }
.catalog-hero__inner h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 10px;
}
.catalog-hero__inner p { color: #4b5563; margin: 0 0 12px; font-size: 1.05rem; }

/* ─── Breadcrumb ────────────────────────────────────── */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 12px;
}
.breadcrumb a { color: #6b7280; text-decoration: none; }
.breadcrumb a:hover { color: #1a56db; text-decoration: underline; }
.breadcrumb span { color: #9ca3af; }

/* ─── Catalog Layout ─────────────────────────────────── */
.catalog-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: 256px 1fr;
    gap: 32px;
    align-items: start;
}

/* ─── Catalog Sidebar ────────────────────────────────── */
.catalog-sidebar {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.catalog-filter-block {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid #e5e7eb;
}
.catalog-filter-block h3 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #374151;
    margin: 0 0 12px;
}
.catalog-search {
    position: relative;
}
.catalog-search__icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    pointer-events: none;
}
#catalog-search-input {
    width: 100%;
    padding: 10px 36px 10px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
#catalog-search-input:focus { border-color: #1a56db; }

.catalog-category-list { display: flex; flex-direction: column; gap: 2px; }

.cat-filter-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    transition: all 0.15s;
}
.cat-filter-btn:hover { background: #eff6ff; color: #1a56db; }
.cat-filter-btn--active { background: #1a56db !important; color: #fff !important; font-weight: 600; }
.cat-filter-btn--active .cat-filter-btn__count { background: rgba(255,255,255,0.25); color: #fff; }
.cat-filter-btn__count {
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 20px;
    flex-shrink: 0;
}

/* ─── Catalog Main ───────────────────────────────────── */
.catalog-main { min-width: 0; }
.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.catalog-count { font-size: 0.875rem; color: #6b7280; }
.catalog-count strong { color: #111827; }
.catalog-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: #374151;
}
.catalog-sort label { white-space: nowrap; }
#catalog-sort-select {
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 0.875rem;
    outline: none;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s;
}
#catalog-sort-select:focus { border-color: #1a56db; }

.catalog__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 24px;
    background: #fff;
    border-radius: 16px;
    border: 1px dashed #e5e7eb;
}
.catalog__empty span { font-size: 3rem; display: block; margin-bottom: 16px; }
.catalog__empty p { color: #6b7280; font-size: 1rem; margin: 0 0 20px; }

/* Loading spinner */
.catalog__loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}
.catalog__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #1a56db;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Single Service ─────────────────────────────────── */
.single-service-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}
.single-service__header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 32px;
}
.single-service__icon { font-size: 3.5rem; flex-shrink: 0; }
.single-service__cat {
    display: inline-block;
    background: #eff6ff;
    color: #1a56db;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-decoration: none;
    margin-bottom: 8px;
}
.single-service__cat a { color: inherit; text-decoration: none; }
.single-service__title {
    font-size: 1.875rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
    line-height: 1.25;
}
.single-service__thumbnail {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 32px;
}
.single-service__content {
    color: #374151;
    line-height: 1.75;
    font-size: 1rem;
}
.single-service__content h2,
.single-service__content h3 { color: #111827; }

/* Price Card */
.service-price-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    position: sticky;
    top: 88px;
    text-align: center;
}
.service-price-card__icon { font-size: 3rem; margin-bottom: 16px; }
.service-price-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
    line-height: 1.4;
}
.service-price-card__price {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1a56db;
    margin-bottom: 20px;
}
.service-price-card__note {
    font-size: 0.78rem;
    color: #9ca3af;
    margin: 12px 0 0;
    line-height: 1.5;
}

/* Sidebar Related */
.sidebar-related {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    margin-top: 20px;
}
.sidebar-related h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 14px;
}
.sidebar-related__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sidebar-related__list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
}
.sidebar-related__list li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-related__list a { color: #374151; text-decoration: none; flex: 1; }
.sidebar-related__list a:hover { color: #1a56db; }
.sidebar-related__list span { color: #1a56db; font-weight: 600; font-size: 0.8rem; white-space: nowrap; }
.sidebar-related__all {
    display: block;
    text-align: center;
    margin-top: 14px;
    color: #1a56db;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}
.sidebar-related__all:hover { text-decoration: underline; }

/* ─── Modal ──────────────────────────────────────────── */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}
.modal__box {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.2);
    animation: modalIn 0.25s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
    cursor: pointer;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.modal__close:hover { background: #e5e7eb; }
.modal__box h2 { font-size: 1.375rem; font-weight: 800; margin: 0 0 6px; color: #111827; }
.modal__service-name { font-size: 0.9rem; color: #6b7280; margin: 0 0 4px; }
.modal__price { font-size: 1.125rem; font-weight: 700; color: #1a56db; margin: 0 0 24px; }

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.booking-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}
.booking-form input {
    padding: 11px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}
.booking-form input:focus { border-color: #1a56db; }

/* ─── Footer ─────────────────────────────────────────── */
.site-footer {
    background: #111827;
    color: #9ca3af;
    margin-top: auto;
}
.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px 32px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.site-footer__logo {
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 800;
    color: #60a5fa;
    display: block;
    margin-bottom: 10px;
}
.site-footer__tagline { font-size: 0.875rem; color: #6b7280; margin: 0; line-height: 1.6; }

.site-footer__col h4 {
    color: #f9fafb;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 12px;
}
.footer-menu, .footer-contacts, .footer-cats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-menu a, .footer-contacts a, .footer-cats a,
.footer-contacts li {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}
.footer-menu a:hover, .footer-contacts a:hover, .footer-cats a:hover { color: #60a5fa; }

.site-footer__bottom {
    border-top: 1px solid #1f2937;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #4b5563;
}
.site-footer__bottom a { color: #6b7280; text-decoration: none; }
.site-footer__bottom a:hover { color: #60a5fa; }

/* ─── Page Content ───────────────────────────────────── */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
}
.page-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 32px;
}
.entry-content {
    color: #374151;
    line-height: 1.75;
    font-size: 1rem;
}
.entry-content h2 { font-size: 1.5rem; font-weight: 700; color: #111827; margin: 32px 0 16px; }
.entry-content h3 { font-size: 1.2rem; font-weight: 700; color: #111827; margin: 24px 0 12px; }
.entry-content p  { margin: 0 0 16px; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin: 0 0 16px; }
.entry-content li { margin-bottom: 6px; }
.entry-content a  { color: #1a56db; }

/* ─── Pagination ─────────────────────────────────────── */
.nav-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 40px;
}
.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
    transition: all 0.2s;
}
.nav-links .page-numbers:hover { background: #eff6ff; border-color: #1a56db; color: #1a56db; }
.nav-links .page-numbers.current { background: #1a56db; border-color: #1a56db; color: #fff; }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
    .home-links__grid { grid-template-columns: 1fr; }
    .hero__inner { grid-template-columns: 1fr; }
    .hero__stats { flex-direction: row; justify-content: center; }
    .catalog-layout { grid-template-columns: 220px 1fr; }
    .site-footer__inner { grid-template-columns: 1fr 1fr; }
    .site-footer__brand { grid-column: 1 / -1; }
    .single-service-layout { grid-template-columns: 1fr; }
    .service-price-card { position: static; }
}

@media (max-width: 900px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
    .catalog-sidebar {
        position: static;
    }
    .catalog-category-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
    .cat-filter-btn {
        border: 1.5px solid #e5e7eb;
        border-radius: 20px;
        width: auto;
    }
    .cat-filter-btn--active { border-color: #1a56db; }
}

@media (max-width: 768px) {
    .home-links {
        padding: 24px 0 8px;
    }
    .home-links__header h2 {
        font-size: 1.6rem;
    }
    .home-links__item {
        padding: 20px;
    }
    .burger { display: flex; }
    .site-header__nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px 24px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        z-index: 100;
    }
    .site-header__nav.is-open { display: block; }
    .nav-menu { flex-direction: column; gap: 4px; }
    .nav-menu a { display: block; padding: 8px 0; }
    .site-header__phone { display: none; }

    .hero { padding: 48px 0 40px; }
    .hero__title { font-size: 2rem; }
    .hero-search-form { flex-direction: column; border-radius: 12px; overflow: visible; gap: 8px; box-shadow: none; }
    .hero-search-form__input, .hero-search-form__btn { border-radius: 10px !important; }
    .hero-search-form__input { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

    .section__header { flex-direction: column; gap: 8px; }
    .cats-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: 1fr; }

    .site-footer__inner { grid-template-columns: 1fr; }
    .site-footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
    .catalog-hero__inner h1, .hero__title { font-size: 1.75rem; }
    .cats-grid { grid-template-columns: repeat(2, 1fr); }
    .modal__box { padding: 28px 20px; }
}
