/* oswald-200 - cyrillic_latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 200;
  src: url('../fonts/oswald-v57-cyrillic_latin_latin-ext-200.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* oswald-300 - cyrillic_latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/oswald-v57-cyrillic_latin_latin-ext-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* oswald-regular - cyrillic_latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/oswald-v57-cyrillic_latin_latin-ext-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* oswald-500 - cyrillic_latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/oswald-v57-cyrillic_latin_latin-ext-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* oswald-600 - cyrillic_latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/oswald-v57-cyrillic_latin_latin-ext-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* oswald-700 - cyrillic_latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/oswald-v57-cyrillic_latin_latin-ext-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}







/* ============================================
   LikeGifts — общая тема
   ============================================ */

:root {
    --primary: #ce8946;
    --primary-dark: #a97142;
    --primary-light: #EDE9FE;
    --text: #D2D2D2;
    --text-muted: #DFDFDF;
    --border: #a97142;
    --bg: #F9FAFB;
    --white: #35353d;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.4);
    --shadow-hover: 0 0px 8px rgba(255,255,255,.5);
}



* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: linear-gradient(to right,#35353d,#141416);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

main.container { flex: 1; padding: 30px 20px 60px; }

a { color: inherit; text-decoration: none; }

/* ---------- Шапка ---------- */
.site-header {
    background: #35353D;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
	box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
	margin-left: 32px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    display: block;
    height: 48px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: opacity .15s;
}

.logo:hover .logo-img {
    opacity: .85;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav a {
    color: #DFDFDF;
    font-weight: 500;
    transition: color .2s;
	font-size: 20px;
}

.main-nav a:hover { color: #d9a428; }

.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: none;
    border-radius: 8px;
    color: #D9A428 !important;
	font-weight: 600;
}

.cart-icon {
    flex-shrink: 0;
    display: block;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #D9A428;
    color: black;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    padding: 1px 6px;
    min-width: 18px;
    text-align: center;
}

/* ============================================
   Баннер на главной
   ============================================ */

.hero-banner {
    display: block;
    width: 100%;
    margin-bottom: 30px;
    border-radius: var(--radius);
    overflow: hidden;
    background: none; /* серый фон на время загрузки */
    transition: transform .2s, box-shadow .2s;
}

.hero-banner:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.hero-media {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    /* Ограничиваем высоту, чтобы на огромных мониторах не было слишком большим */
    max-height: 500px; 
}

/* Мобильный вид */
@media (max-width: 768px) {
    .hero-banner {
        margin-bottom: 20px;
        border-radius: 10px;
    }
    .hero-media {
        max-height: 300px;
    }
}

/* ---------- Категории ---------- */
.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.category-chip {
    padding: 8px 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    transition: all .2s;
}

.category-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.category-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ---------- Сетка товаров ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: none;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover: white;);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    aspect-ratio: 1/1;
    background: #35353D;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
	border-radius: 12px;
	padding: 3px;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    opacity: .4;
}

.product-body {
    padding: 14px 30px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
	background: #35353d;
}

.product-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 6px;
	display: none;
}

.product-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    flex: 1;
	text-align: center;
	color: #e5e5e5;
}

.product-description {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
    flex: 1;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.product-price {
    font-size: 19px;
    font-weight: 700;
    color: var(--primary);
	color: #D9A428;
}

.product-btn {
    font-size: 13px;
    font-weight: 600;
    color: #D9A428;
    background: #35353d;
    padding: 5px 12px 7px;
    border-radius: 20px;
    white-space: nowrap;
	border: 2px solid #D9A428;
}

.empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    background: none;
    border-radius: var(--radius);
	font-size: 20px;
}

/* ---------- Подвал ---------- */
.site-footer {
    background: #35353D;
    border-top: 1px solid var(--border);
    padding: 12px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.site-footer .small {
    font-size: 12px;
    margin-top: 6px;
}

/* ---------- Адаптив ---------- */
@media (max-width: 600px) {
    .header-inner { height: 60px; }
    .logo-text { display: none; }
    .main-nav { gap: 14px; font-size: 14px; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
    .product-title { font-size: 15px; }
    .product-price { font-size: 16px; padding: 0 0 0 8px; }
}


/* ============================================
   Этап 4: страница товара + корзина
   ============================================ */

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.breadcrumbs a:hover { color: var(--primary); }

.page-title {
    font-size: 26px;
    margin-bottom: 24px;
	color: #dfdfdf;
	text-align: center;
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
    text-align: center;
    line-height: 1.2;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: #ce8946;
    color: white;
}
.btn-primary:hover { background: #a97142; color: white; }

.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; margin-top: 20px;}

.btn-link {
    background: transparent;
    color: var(--text-muted);
    padding: 8px 12px;
    font-weight: 500;
}
.btn-link:hover { color: var(--primary); }

/* ---------- Страница одиночного товара ---------- */
.product-single-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.product-single-image {
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--primary-light);
}
.product-single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-single-info h1 {
    font-size: 30px;
    margin: 10% 0 16px;
    line-height: 1.2;
	text-align: center;
}

.product-single-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
	text-align: center;
}

.product-single-lead {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.6;
}

.add-to-cart {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.add-to-cart .btn {
    align-self: center;
}

/* ---------- Секции на странице товара ---------- */
.product-single-section,
.product-set .product-single-section {
    background: #35353d;
    border-radius: var(--radius);
    padding: 22px 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
	border: 1px solid #a97142;
}
.product-single-section h2 {
    font-size: 20px;
    margin-bottom: 16px;
	padding: 0px 0 10px 10px;
}

.characteristics {
    list-style: none;
    display: grid;
    gap: 10px;
}
.characteristics li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}
.characteristics li:last-child { border-bottom: none; }
.characteristics span { color: var(--text-muted); }

/* ---------- Блок организации ---------- */
.org-block {
    background: none;
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 16px;
}
.org-block-single { background: #F9FAFB; border: 1px solid var(--border); }

.org-name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--text);
}
.org-line {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.org-line a { color: var(--primary); }
.org-line a:hover { text-decoration: underline; }

.text-block {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
}

/* ---------- Шапка набора ---------- */
.product-set-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.product-set-image {
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    overflow: hidden;
    background: none;
}
.product-set-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-set-info h1 {
    font-size: 30px;
    margin: 10px 0 16px;
    line-height: 1.2;
	text-align: center;
}

/* ---------- Список услуг (аккордеон) ---------- */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-left: 44px; /* место слева для выступающей иконки */
}

.service-item {
    position: relative;
    border-radius: var(--radius);
    overflow: visible; /* чтобы иконка могла выступать */
}

/* ---------- Заголовок услуги (цветная плашка) ---------- */
.service-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 20px 16px 72px; /* слева больше — под иконку */
    width: 100%;
    background: var(--service-color, var(--primary));
    color: white;
    cursor: pointer;
    border: none;
    font: inherit;
    text-align: left;
    border-radius: var(--radius);
    transition: filter .15s, border-radius .3s;
    min-height: 88px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.service-header:hover { filter: brightness(1.05); }

.service-item.open .service-header {
    
}

/* ---------- Круглая иконка-медальон ---------- */
.service-icon {
    position: absolute;
    left: -44px;
    top: 50%;
    transform: translateY(-50%);
    width: 96px;
    height: 96px;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.25));
    pointer-events: none;
}

/* ---------- Текст услуги ---------- */
.service-info {
    flex: 1;
    min-width: 0;
    display: block;
    padding-right: 8px;
}
.service-name {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.service-meta {
    display: block;
    font-size: 14px;
    opacity: .95;
}

/* ---------- Кнопка «Подробнее» ---------- */
.service-toggle {
    flex-shrink: 0;
    min-width: 130px;          /* ← фиксированная ширина */
    text-align: center;         /* ← центрируем текст */
    box-sizing: border-box;     /* ← учитываем padding в ширину */
    padding: 10px 20px;
    background: rgba(255,255,255,.22);
    border: 2px solid rgba(255,255,255,.4);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
    transition: background .15s, transform .1s;
    position: relative;
    z-index: 3;
}
.service-header:hover .service-toggle {
    background: rgba(255,255,255,.35);
}
.service-header:active .service-toggle {
    transform: scale(.97);
}

.service-item .label-close { display: none; }
.service-item.open .label-open { display: none; }
.service-item.open .label-close { display: inline; }

/* ---------- Плавное раскрытие ---------- */
.service-details-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s ease;
    background: none;
    border-radius: 0 0 var(--radius) var(--radius);
}
.service-item.open .service-details-wrap {
    grid-template-rows: 1fr;
}
.service-details-wrap > .service-details {
    overflow: hidden;
}

.service-details {
    padding: 0 20px;
    transition: padding .3s ease;
}
.service-item.open .service-details {
    padding: 20px;
}

/* ---------- Корзина ---------- */
.cart-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    display: grid;
    grid-template-columns: 90px 1fr auto auto auto;
    gap: 16px;
    align-items: center;
    background: #35353d;
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow);
	border: 1px solid #a97142;
}
.cart-item-image {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-image .product-placeholder { font-size: 36px; }

.cart-item-title {
    font-weight: 600;
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
}
.cart-item-title:hover { color: var(--primary); }
.cart-item-price { font-size: 13px; color: var(--text-muted); }

.cart-item-qty input {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #a0a0a0;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.cart-item-total {
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
}

.cart-item-remove button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
}
.cart-item-remove button:hover { color: #DC2626; background: #FEE2E2; }

.cart-clear { text-align: right; margin-top: 8px; }

/* ---------- Итого ---------- */
.cart-summary {
    background: #35353d;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 90px;
	border: 1px solid #a97142;
}
.cart-summary h2 {
    font-size: 20px;
    margin-bottom: 16px;
}
.cart-total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-muted);
}
.cart-grand {
    font-size: 18px !important;
    font-weight: 700;
    color: var(--text) !important;
    border-top: 1px solid #a0a0a0;
    margin-top: 8px;
    padding-top: 16px;
    margin-bottom: 20px;
}

/* ---------- Адаптив ---------- */
@media (max-width: 800px) {
    .product-single-grid,
    .product-set-header {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .product-single-info h1,
    .product-set-info h1 { font-size: 24px; }
    .product-single-price { font-size: 26px; }

    .cart-grid { grid-template-columns: 1fr; }
    .cart-item {
        grid-template-columns: 70px 1fr auto;
        grid-template-rows: auto auto;
    }
    .cart-item-image { width: 70px; height: 70px; grid-row: span 2; }
    .cart-item-qty { grid-column: 2; }
    .cart-item-total { grid-column: 3; text-align: right; }
    .cart-item-remove { grid-column: 3; grid-row: 2; }

    /* ---------- Услуги: мобильный вид ---------- */
    .services-list {
        padding-left: 32px;
        gap: 18px;
    }

    .service-header {
        padding: 14px 16px 14px 56px;
        min-height: 76px;
        gap: 12px;
    }

    .service-icon {
        left: -32px;
        width: 72px;
        height: 72px;
    }

    .service-name {
        font-size: 15px;
        margin-bottom: 2px;
    }
    .service-meta {
        font-size: 12px;
    }

    .service-toggle {
        padding: 8px 14px;
        font-size: 11px;
    }
	
    .service-toggle {
        min-width: 100px;
        padding: 8px 14px;
        font-size: 11px;
    }
}
	
	
}

@media (max-width: 500px) {
    .services-list {
        padding-left: 28px;
    }

    .service-header {
        padding: 12px 12px 12px 50px;
        min-height: 68px;
    }

    .service-icon {
        left: -28px;
        width: 62px;
        height: 62px;
    }

    .service-name {
        font-size: 14px;
    }

	.service-toggle {
        min-width: 80px;
        padding: 6px 10px;
        font-size: 10px;
        border-width: 1px;
    }
}


/* ============================================
   Этап 5: оформление заказа + спасибо
   ============================================ */

/* ---------- Сетка оформления ---------- */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: start;
}

.checkout-form {
    background: #35353d;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 18px;
	border: 1px solid #a97142;
}

/* ---------- Поля формы ---------- */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.field-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.field-label em {
    color: #DC2626;
    font-style: normal;
}
.field input,
.field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #a0a0a0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, .12);
}
.field textarea {
    resize: vertical;
    min-height: 90px;
}

.checkout-note {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: -4px;
}

/* ---------- Сообщение об ошибке ---------- */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
}
.alert-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}
.alert-error ul {
    margin: 8px 0 0 18px;
    padding: 0;
}
.alert-error li { margin-bottom: 4px; }

/* ---------- Сводка заказа ---------- */
.checkout-summary {
    background: #35353d;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 90px;
	border: 1px solid #a97142;
}
.checkout-summary h2 {
    font-size: 18px;
    margin-bottom: 16px;
}
.checkout-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    padding: 8px 0;
    color: var(--text);
    border-bottom: 1px dashed #a0a0a0;
}
.checkout-line:last-child { border-bottom: none; }
.checkout-line-name { flex: 1; }
.checkout-line-name .muted { color: var(--text-muted); }
.checkout-line-price { white-space: nowrap; font-weight: 500; }

.checkout-grand {
    font-size: 17px;
    font-weight: 700;
    border-top: 2px solid #a0a0a0;
    border-bottom: none !important;
    margin-top: 10px;
    padding-top: 14px;
}

/* ---------- Страница «Спасибо» ---------- */
.thanks {
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
    background: #35353d;
    border-radius: var(--radius);
    padding: 50px 30px;
    box-shadow: var(--shadow);
	border: 1px solid #a97142;
}
.thanks-icon {
    font-size: 64px;
    margin-bottom: 16px;
    line-height: 1;
}
.thanks h1 {
    font-size: 28px;
    margin-bottom: 16px;
}
.thanks p {
    margin-bottom: 12px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
}
.thanks .muted { color: var(--text-muted); font-size: 14px; }
.thanks-order {
    display: inline-block;
    background: none;
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 8px;
    margin: 8px 0 16px;
}
.thanks .btn { margin-top: 20px; }

/* ---------- Адаптив ---------- */
@media (max-width: 800px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
    .checkout-form { padding: 20px; }
    .thanks { padding: 32px 20px; margin: 20px auto; }
    .thanks-icon { font-size: 48px; }
    .thanks h1 { font-size: 22px; }
}


/* ============================================
   Этап 6: Админка (авторизация + каркас)
   ============================================ */

/* ---------- Страница логина ---------- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6D28D9 0%, #9333EA 100%);
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 380px;
    background: white;
    border-radius: 16px;
    padding: 36px 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-title {
    font-size: 22px;
    text-align: center;
    margin-bottom: 6px;
    color: var(--text);
}

.login-back {
    text-align: center;
    font-size: 13px;
    margin-top: 6px;
}
.login-back a {
    color: var(--text-muted);
}
.login-back a:hover { color: var(--primary); }

/* ---------- Общий каркас админки ---------- */
.admin-body {
    background: #35353D;
    min-height: 100vh;
    display: block;
}

.admin-topbar {
    background: #111827;
    color: white;
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
    color: white;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

.admin-user-name {
    color: #D1D5DB;
}

.admin-link {
    color: #9CA3AF;
    transition: color .15s;
}
.admin-link:hover { color: white; }

.admin-link-danger {
    padding: 6px 12px;
    background: rgba(220, 38, 38, .15);
    border-radius: 6px;
    color: #FCA5A5;
}
.admin-link-danger:hover {
    background: #DC2626;
    color: white;
}

/* ---------- Раскладка ---------- */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
    min-height: calc(100vh - 60px);
}

.admin-sidebar {
    background: #35353d;
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 80px;
    align-self: start;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: background .15s, color .15s;
}
.admin-nav-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.admin-nav-link.active {
    background: var(--primary);
    color: white;
}

.admin-content {
    background: #35353d;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    min-height: 400px;
}

/* ---------- Заголовок страницы ---------- */
.admin-page-title {
    font-size: 24px;
    margin-bottom: 6px;
}
.admin-page-sub {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

/* ---------- Карточки статистики ---------- */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.admin-stat {
    display: block;
    background: #35353D;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.admin-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.admin-stat-icon {
    font-size: 32px;
    margin-bottom: 6px;
    line-height: 1;
}
.admin-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}
.admin-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.admin-stat-accent {
    background: #35353D;
    border-color: #FDE68A;
}
.admin-stat-accent .admin-stat-value { color: #B45309; }

/* ---------- Информационный блок ---------- */
.admin-note {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 8px;
    padding: 16px 18px;
    font-size: 14px;
    color: #1E40AF;
    line-height: 1.6;
}

/* ---------- Адаптив ---------- */
@media (max-width: 800px) {
    .admin-layout {
        grid-template-columns: 1fr;
        padding: 12px;
    }
    .admin-sidebar { position: static; }
    .admin-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 4px;
    }
    .admin-nav-link {
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 13px;
    }
    .admin-content { padding: 20px 16px; }
    .admin-user-name { display: none; }
    .admin-stat-value { font-size: 22px; }
}

/* ============================================
   Этап 7: CRUD товаров
   ============================================ */

/* ---------- Заголовок страницы с действием ---------- */
.admin-page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.btn-secondary {
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ---------- Флеш-сообщения ---------- */
.alert {
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}
.alert-success {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
}
.alert ul { margin: 8px 0 0 18px; padding: 0; }
.alert li { margin-bottom: 4px; }

/* ---------- Фильтры ---------- */
.admin-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.admin-filters .category-chip {
    font-size: 13px;
    padding: 6px 14px;
}

/* ---------- Таблица ---------- */
.admin-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #35353D;
    min-width: 900px;
}

.admin-table th {
    text-align: left;
    padding: 12px 14px;
    background: #35353D;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: .3px;
}

.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
	display: table-cell;
	font-size: 12px;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover { background: #46464F; }

.admin-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
.admin-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    font-size: 22px;
    opacity: .6;
}

.admin-link-strong {
    font-weight: 600;
    color: var(--text);
}
.admin-link-strong:hover { color: var(--primary); }

.admin-slug {
    font-size: 12px;
    color: var(--text-muted);
    font-family: ui-monospace, monospace;
    margin-top: 2px;
}

/* ---------- Бейджи ---------- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.badge-set { background: #E0E7FF; color: #3730A3; }
.badge-single { background: #FEF3C7; color: #92400E; }
.badge-on { background: #D1FAE5; color: #065F46; }
.badge-off { background: #F3F4F6; color: #6B7280; }

/* ---------- Действия в строке ---------- */
.admin-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #35353D;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
}
.icon-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}
.icon-btn-danger:hover {
    border-color: #DC2626;
    background: #FEE2E2;
    color: #DC2626;
}

.inline-form { display: inline; }

.admin-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    background: #F9FAFB;
    border-radius: var(--radius);
    border: 1px dashed var(--border);
}

/* ---------- Форма ---------- */
.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: start;
}

.admin-form-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-form-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.admin-side-box {
    background: #35353d;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-side-box .field-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* ---------- Radio-карточки (тип товара) ---------- */
.radio-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #35353d;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all .15s;
}
.radio-card:hover { border-color: var(--primary); }
.radio-card input { margin-top: 4px; flex-shrink: 0; }
.radio-card input:checked + .radio-card-body strong { color: var(--primary); }

.radio-card-body { display: flex; flex-direction: column; gap: 2px; }
.radio-card-body strong { font-size: 14px; }
.radio-card-body small { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

.checkbox-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #35353d;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}
.checkbox-card input { flex-shrink: 0; }

.field-hint {
    font-size: 12px;
    color: var(--text-muted);
}

.field-file {
    font-size: 13px;
    padding: 8px;
    background: #35353d;
    border: 1px dashed var(--border);
    border-radius: 6px;
    width: 100%;
    cursor: pointer;
}

.admin-image-preview {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #35353d;
}
.admin-image-preview img {
    display: block;
    width: 100%;
    max-height: 180px;
    object-fit: cover;
}

.admin-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

select {
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: #35353D;
    width: 100%;
}
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(109,40,217,.12);
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
    .admin-form-grid { grid-template-columns: 1fr; }
    .admin-form-row { grid-template-columns: 1fr; }
    .admin-page-head { flex-direction: column; }
}


/* ============================================
   Этап 8: Организации
   ============================================ */

.admin-cell-muted {
    color: var(--text-muted);
    font-size: 13px;
}

/* Узкая форма для организаций (нет сайдбара с картинкой) */
.admin-form-narrow {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 600px;
}

/* ============================================
   Этап 9: Управление услугами
   ============================================ */

.admin-page-head-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ---------- Список услуг в админке ---------- */
.services-admin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-admin-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    background: #35353D;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .15s, box-shadow .15s;
}
.service-admin-item:hover {
    border-color: #D1D5DB;
    box-shadow: var(--shadow);
}

.service-admin-preview {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.service-admin-preview img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.2));
}
.service-admin-noimg {
    color: rgba(255,255,255,.85);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
}

.service-admin-info {
    min-width: 0;
}
.service-admin-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}
.service-admin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: var(--text-muted);
}
.service-admin-meta span { white-space: nowrap; }

.service-admin-order {
    display: flex;
    gap: 2px;
}
.service-admin-order .icon-btn[disabled] {
    opacity: .35;
    cursor: not-allowed;
}
.service-admin-order .icon-btn[disabled]:hover {
    border-color: var(--border);
    background: white;
}

.service-admin-actions {
    display: flex;
    gap: 4px;
}

/* ---------- Цветовой пикер ---------- */
.color-picker-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.color-input {
    width: 56px;
    height: 42px;
    padding: 2px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    cursor: pointer;
}
.color-text {
    flex: 1;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: ui-monospace, monospace;
    font-size: 14px;
    text-transform: uppercase;
}

/* ---------- PNG-превью с фоном цвета ---------- */
.admin-image-preview-png {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    padding: 14px;
}
.admin-image-preview-png img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.2));
    width: auto;
    height: auto;
}

/* ---------- Адаптив ---------- */
@media (max-width: 800px) {
    .service-admin-item {
        grid-template-columns: 60px 1fr;
        grid-template-areas:
            "preview info"
            "order   actions";
        gap: 10px;
    }
    .service-admin-preview { grid-area: preview; width: 60px; height: 60px; }
    .service-admin-info { grid-area: info; }
    .service-admin-order { grid-area: order; justify-content: flex-start; }
    .service-admin-actions { grid-area: actions; justify-content: flex-end; }
    .admin-page-head-actions { width: 100%; }
    .admin-page-head-actions .btn { flex: 1; }
}



/* ============================================
   Этап 10: Категории
   ============================================ */

.categories-admin-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

.categories-admin-form {
    background: #35353D;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    position: sticky;
    top: 20px;
}

.admin-side-title {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--text);
}

/* Заблокированная кнопка */
.icon-btn[disabled] {
    opacity: .35;
    cursor: not-allowed;
}
.icon-btn[disabled]:hover {
    border-color: var(--border);
    background: white;
}

@media (max-width: 900px) {
    .categories-admin-grid { grid-template-columns: 1fr; }
    .categories-admin-form { position: static; }
	.cart-link-text { display: none; }
}

/* ============================================
   Множественные категории у товара
   ============================================ */

.checkbox-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    padding: 12px;
    background: #35353d;
    border: 1px solid var(--border);
    border-radius: 8px;
    max-height: 240px;
    overflow-y: auto;
}

.checkbox-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #35353d;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: border-color .15s, background .15s;
	width: 50px;
}
.checkbox-list-item:hover {
    border-color: var(--primary);
}
.checkbox-list-item input {
    flex-shrink: 0;
    cursor: pointer;
}
.checkbox-list-item input:checked + span {
    color: var(--primary);
    font-weight: 600;
}

/* ============================================
   Этап 11: Заказы
   ============================================ */

/* ---------- Бейджи статусов ---------- */
.badge.status-new        { background: #FEF3C7; color: #92400E; }
.badge.status-processing { background: #DBEAFE; color: #1E40AF; }
.badge.status-done       { background: #D1FAE5; color: #065F46; }
.badge.status-cancelled  { background: #F3F4F6; color: #6B7280; }

/* ---------- Раскладка страницы заказа ---------- */
.order-view-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}

.order-view-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-view-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 20px;
}

.order-card {
    background: #35353D;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.order-card-title {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.order-card-danger {
    background: #FEF2F2;
    border-color: #FECACA;
}
.order-card-danger .order-card-title { color: #991B1B; }

/* ---------- Таблица состава ---------- */
.order-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.order-items-table th {
    text-align: left;
    padding: 8px 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}
.order-items-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.order-items-table tfoot td {
    border-bottom: none;
    padding-top: 16px;
}

/* ---------- Информация о клиенте ---------- */
.order-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.order-info-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.order-info-value {
    font-size: 15px;
    font-weight: 500;
}
.order-info-value a { color: var(--primary); }
.order-info-value a:hover { text-decoration: underline; }

.order-info-comment {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    background: #F9FAFB;
    padding: 12px 14px;
    border-radius: 8px;
    margin-top: 4px;
}

/* ---------- Форма статуса ---------- */
.order-status-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ---------- Кнопка «Опасная» ---------- */
.btn-danger {
    background: #DC2626;
    color: white;
}
.btn-danger:hover {
    background: #B91C1C;
    color: white;
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
    .order-view-grid { grid-template-columns: 1fr; }
    .order-view-side { position: static; }
    .order-info-grid { grid-template-columns: 1fr; }

    .order-items-table { font-size: 13px; }
    .order-items-table th, .order-items-table td { padding: 8px 6px; }
}

/* ============================================
   SEO-секция в форме товара
   ============================================ */

.admin-form-section {
    margin-top: 24px;
    background: #35353d;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.admin-form-section-summary {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background .15s;
    user-select: none;
}
.admin-form-section-summary::-webkit-details-marker { display: none; }
.admin-form-section-summary::marker { display: none; content: ''; }

.admin-form-section-summary:hover {
    background: #35353d;
}

.admin-form-section-summary::before {
    content: '▶';
    font-size: 11px;
    color: var(--text-muted);
    transition: transform .2s;
    display: inline-block;
}
.admin-form-section[open] .admin-form-section-summary::before {
    transform: rotate(90deg);
}

.admin-form-section-hint {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 6px;
}

.admin-form-section-body {
    padding: 4px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.admin-form-section-body .field-label {
    color: var(--text);
}

/* ============================================
   Каталог: боковое меню категорий
   ============================================ */

.catalog-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
    align-items: start;
}

/* ---------- Сайдбар ---------- */
.catalog-sidebar {
    position: sticky;
    top: 90px; /* 70px header + 20px отступ */
    background: #35353d;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.catalog-sidebar-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 14px;
    padding: 0 6px;
}

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

.catalog-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: #D6D6D6;
    font-size: 14px;
    font-weight: 600;
    transition: background .15s, color .15s;
    line-height: 1.3;
}

.catalog-nav-link:hover {
    color: #D9A428;
}

.catalog-nav-link.active {
    color: white;
    font-weight: 600;
	border: 2px solid #D9A428;
}

.catalog-nav-link.active .catalog-nav-count {
    background: rgba(255,255,255,.25);
    color: white;
}

.catalog-nav-count {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 4px 10px 5px;
    border-radius: 25px;
    min-width: 38px;
    text-align: center;
    transition: background .15s, color .15s;
	color: #9c9c9c;
	border: 1px solid;
}

.catalog-nav-link:hover .catalog-nav-count {

}

/* ---------- Сетка товаров в правой колонке ---------- */
.catalog-layout .products-grid {
    /* Уже не на всю ширину, поэтому карточек в ряду меньше */
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
    .catalog-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .catalog-sidebar {
        position: static;
        max-height: none;
        padding: 14px;
    }

    /* На мобильном меню — горизонтальной полосой */
    .catalog-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .catalog-nav-link {
        white-space: nowrap;
        padding: 8px 14px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .catalog-nav-count {
        font-size: 11px;
        padding: 1px 6px;
        min-width: 22px;
    }

    .catalog-layout .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }
}

@media (max-width: 600px) {
    .catalog-nav-link {
        padding: 7px 12px;
        font-size: 12px;
    }
	.header-inner { gap: 10px; }
    .header-left { gap: 8px; }
    .logo-text { display: none; }
}


/* ============================================
   Верхнее меню + выпадающие подменю
   ============================================ */

/* ---------- Кнопка-гамбургер ---------- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    padding: 0 10px;
}
.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Основное меню ---------- */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
	font-family: Oswald;
	margin-left: 25px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px 10px;
    border-radius: 8px;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    transition: background .15s, color .15s;
    white-space: nowrap;
    cursor: pointer;
}
.nav-link:hover {

}
.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-caret {
    font-size: 16px;
    opacity: .7;
}

/* ---------- Активация (красная) ---------- */
.nav-link-activation {
    color: #D9A428 !important;
    font-weight: 700;
}
.nav-link-activation:hover {
    color: #F92D2D !important;
}
.nav-link-activation.active {
    background: #DC2626 !important;
    color: white !important;
    border-color: #DC2626;
}

/* ---------- Выпадающие меню ---------- */
.nav-item-dropdown {
    position: relative;
}

.dropdown,
.submenu {
    position: absolute;
    background: #35353d;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    padding: 8px;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s, transform .18s, visibility .18s;
    z-index: 200;
}

.dropdown {
    top: calc(100% + 8px);
    left: 0;
}

.dropdown a {
    display: block;
    padding: 9px 14px;
    border-radius: 6px;
    color: #E1E1E1;
    font-size: 14px;
    transition: background .12s, color .12s;
    white-space: nowrap;
}
.dropdown a:hover {
    background: none;
    color: #d9a428;
}

.nav-item-dropdown:hover .dropdown,
.dropdown-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ---------- Подменю второго уровня ---------- */
.dropdown-submenu {
    position: relative;
}

.dropdown-link-sub {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

.submenu {
    top: -8px;
    left: calc(100% + 6px);
}

.submenu::before {
    /* Невидимая «дорожка», чтобы курсор не срывался */
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    width: 10px;
    height: 100%;
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
    .menu-toggle { display: flex; }

 .header-left { gap: 12px; }


    .main-nav {
        position: fixed;
        top: 70px;
        right: 0;
        bottom: 0;
        width: 280px;
        max-width: 90vw;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        background: #35353d;
        border-left: 1px solid var(--border);
        padding: 16px;
        overflow-y: auto;
        transform: translateX(110%);
        transition: transform .25s ease;
        z-index: 150;
    }
    .main-nav.open { transform: translateX(0); }

    .nav-link {
        padding: 12px 14px;
        font-size: 15px;
        justify-content: space-between;
    }

    .nav-item-dropdown { position: static; }

    .dropdown,
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 12px;
        margin: 0;
        min-width: auto;
        display: none;
    }
    .nav-item-dropdown.open > .dropdown,
    .dropdown-submenu.open > .submenu {
        display: block;
    }

    .dropdown a,
    .submenu a {
        padding: 10px 12px;
        font-size: 14px;
        white-space: normal;
    }

    .cart-link {
        margin-top: 8px;
        text-align: center;
        justify-content: center;
    }
}

/* ============================================
   Текстовые страницы (page.php)
   ============================================ */
.text-page {
    background: #35353d;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    max-width: 100%;
}
.text-page h1 {
    font-size: 32px;
    margin-bottom: 24px;
    line-height: 1.2;
}
.text-page-content {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
}
.text-page-content p { margin-bottom: 16px; }
.text-page-content h2 { font-size: 22px; margin: 24px 0 12px; }
.text-page-content h3 { font-size: 18px; margin: 20px 0 10px; }
.text-page-content ul, .text-page-content ol { margin: 12px 0 16px 24px; }
.text-page-content li { margin-bottom: 6px; }
.text-page-content a { color: var(--primary); }
.text-page-content a:hover { text-decoration: underline; }
.text-page-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 12px 0; }
.text-page-content blockquote { border-left: 4px solid var(--primary-light); padding-left: 16px; color: var(--text-muted); font-style: italic; margin: 16px 0; }

@media (max-width: 700px) {
    .text-page { padding: 24px 20px; }
    .text-page h1 { font-size: 24px; }
    .text-page-content { font-size: 15px; }
}

/* ============================================
   Контакты
   ============================================ */
.contacts-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}
.contacts-info {
    background: none;
    border-radius: var(--radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
	text-align: center;
}
.contact-block { display: flex; flex-direction: column; gap: 4px; }
.contact-label {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--text-muted);
    font-weight: 600;
}
.contact-value {
    font-size: 17px;
    font-weight: 500;
    color: #DFDFDF;
    line-height: 1.5;
}
.contact-value a, a.contact-value { color: #DFDFDF; }
.contact-value a:hover, a.contact-value:hover { text-decoration: underline; }

.contacts-form {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}
.contacts-form h2 { font-size: 20px; margin-bottom: 20px; }

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

/* ============================================
   Активация сертификата
   ============================================ */
.activation-box {
    max-width: 560px;
    margin: 20px auto 40px;
    background: white;
    border-radius: var(--radius);
    padding: 40px 32px;
    box-shadow: var(--shadow);
    text-align: center;
}
.activation-box h1 { font-size: 28px; margin-bottom: 12px; }
.activation-lead {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}
.activation-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    margin-bottom: 20px;
}
.activation-help {
    font-size: 14px;
    color: var(--text-muted);
}
.activation-help a { color: var(--primary); font-weight: 600; }

@media (max-width: 600px) {
    .activation-box { padding: 28px 20px; }
    .activation-box h1 { font-size: 22px; }
}

/* ============================================
   Админка меню
   ============================================ */

.menu-admin-table td {
    vertical-align: top;
}

.menu-admin-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.menu-admin-branch {
    color: var(--text-muted);
    font-family: ui-monospace, monospace;
    opacity: .5;
}

/* Форма: скрытие ненужных полей по типу ссылки */
.menu-type-field {
    display: none;
}

.field code {
    background: #F3F4F6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

/* Радио-кнопки в списке */
.checkbox-list-item input[type="radio"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

/* ============================================
   Админка страниц + Quill
   ============================================ */

/* Контейнер редактора */
#editorContainer {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    min-height: 360px;
    font-size: 15px;
    font-family: inherit;
}

/* Панель инструментов Quill */
.ql-toolbar.ql-snow {
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    background: #F9FAFB;
    padding: 8px 10px;
}

.ql-container.ql-snow {
    border: 1px solid var(--border);
    border-radius: 0 0 8px 8px;
    font-family: inherit;
    font-size: 15px;
}

.ql-editor {
    min-height: 320px;
    padding: 18px 20px;
    line-height: 1.7;
}

.ql-editor h2 { font-size: 24px; margin: 20px 0 10px; }
.ql-editor h3 { font-size: 20px; margin: 18px 0 8px; }
.ql-editor h4 { font-size: 17px; margin: 14px 0 6px; }
.ql-editor p { margin-bottom: 12px; }
.ql-editor ul, .ql-editor ol { padding-left: 24px; margin-bottom: 12px; }
.ql-editor blockquote {
    border-left: 4px solid var(--primary-light);
    padding-left: 14px;
    color: var(--text-muted);
    font-style: italic;
    margin: 12px 0;
}
.ql-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 8px 0;
}
.ql-editor a { color: var(--primary); text-decoration: underline; }

.ql-snow .ql-stroke { stroke: var(--text-muted); }
.ql-snow .ql-fill { fill: var(--text-muted); }
.ql-snow .ql-picker { color: var(--text-muted); }
.ql-snow.ql-toolbar button:hover .ql-stroke,
.ql-snow.ql-toolbar button.ql-active .ql-stroke {
    stroke: var(--primary);
}
.ql-snow.ql-toolbar button:hover .ql-fill,
.ql-snow.ql-toolbar button.ql-active .ql-fill {
    fill: var(--primary);
}
.ql-snow.ql-toolbar .ql-picker-label:hover,
.ql-snow.ql-toolbar .ql-picker-label.ql-active {
    color: var(--primary);
}

/* Мобильная адаптация Quill */
@media (max-width: 700px) {
    .ql-editor { padding: 14px; font-size: 14px; }
    .ql-editor h2 { font-size: 20px; }
    .ql-editor h3 { font-size: 17px; }
    .ql-toolbar.ql-snow { padding: 6px; }
}

/* ============================================
   Загрузка картинок в редактор + SEO страниц
   ============================================ */

/* Панель действий в SEO-секции */
.admin-seo-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--border);
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
}

/* Индикатор перетаскивания файла в редактор */
#editorContainer.ql-dragover,
.ql-container.ql-dragover .ql-editor {
    background: #F5F3FF;
    outline: 2px dashed var(--primary);
    outline-offset: -4px;
}

/* Плейсхолдер Quill — цвет как у остальных полей */
.ql-editor.ql-blank::before {
    color: var(--text-muted);
    font-style: normal;
    opacity: .7;
}

/* Прогресс-индикатор для долгой загрузки */
.ql-editor::after {
    /* пусто, чтобы не мешало — оставил для будущего */
}

/* Мобильная адаптация панели */
@media (max-width: 700px) {
    .admin-seo-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   Расширенный редактор: цвета, видео, отступы
   ============================================ */

/* Контейнер редактора */
.editor-wrap {
    background: white;
    border-radius: 8px;
}

.editor-container {
    font-size: 15px;
    font-family: inherit;
    background: #35353d;
    border-radius: 0 0 8px 8px;
}

.editor-container .ql-editor {
    padding: 16px 18px;
    line-height: 1.7;
    min-height: inherit;
}

.editor-container .ql-editor h2 { font-size: 22px; margin: 16px 0 10px; }
.editor-container .ql-editor h3 { font-size: 18px; margin: 14px 0 8px; }
.editor-container .ql-editor h4 { font-size: 16px; margin: 12px 0 6px; }
.editor-container .ql-editor p { margin-bottom: 10px; }
.editor-container .ql-editor ul,
.editor-container .ql-editor ol { padding-left: 22px; margin-bottom: 10px; }
.editor-container .ql-editor blockquote {
    border-left: 4px solid var(--primary-light);
    padding-left: 14px;
    color: var(--text-muted);
    font-style: italic;
    margin: 12px 0;
}
.editor-container .ql-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 8px 0;
    display: block;
}
.editor-container .ql-editor a { color: var(--primary); text-decoration: underline; }

/* Видео (вставленные через кнопку video — iframe в редакторе) */
.editor-container .ql-editor .video-embed,
.editor-container .ql-editor iframe {
    max-width: 100%;
    border-radius: 8px;
    margin: 12px 0;
}

/* Подсветка при перетаскивании файла */
.ql-container.ql-dragover {
    outline: 2px dashed var(--primary);
    outline-offset: -4px;
    background: #F5F3FF;
}

/* Тулбар */
.ql-toolbar.ql-snow {
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    background: #F9FAFB;
    padding: 8px 10px;
    position: sticky;
    top: 60px;
    z-index: 10;
}
.ql-container.ql-snow {
    border: 1px solid var(--border);
    font-family: inherit;
}
.ql-editor.ql-blank::before {
    color: var(--text-muted);
    font-style: normal;
    opacity: .7;
}

/* Цветовые палитры Quill */
.ql-snow .ql-picker.ql-color .ql-picker-item,
.ql-snow .ql-picker.ql-background .ql-picker-item {
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 3px;
    width: 20px;
    height: 20px;
}
.ql-snow .ql-color-picker .ql-picker-item[data-value="#FFFFFF"],
.ql-snow .ql-color-picker .ql-picker-item[data-value="#ffffff"] {
    border: 1px solid #D1D5DB;
}

/* ---------- Красивый вывод на сайте ---------- */

/* Описания в карточке товара и услуги */
.product-single-lead {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 24px;
	text-align: center;
}
.product-single-lead p { margin-bottom: 10px; }
.product-single-lead h2 { font-size: 20px; margin: 16px 0 8px; }
.product-single-lead h3 { font-size: 17px; margin: 14px 0 6px; }
.product-single-lead ul,
.product-single-lead ol { padding-left: 22px; margin-bottom: 10px; }
.product-single-lead li { margin-bottom: 4px; }
.product-single-lead a { color: var(--primary); text-decoration: underline; }
.product-single-lead img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 8px 0;
}
.product-single-lead iframe {
    max-width: 100%;
    border-radius: 8px;
    aspect-ratio: 16 / 9;
    height: auto;
    width: 100%;
}

/* Описания внутри «Подробнее» на странице набора */
.service-details .text-block {
    font-size: 15px;
    line-height: 1.7;
}
.service-details .text-block p {  }
.service-details .text-block ul,
.service-details .text-block ol { padding-left: 22px; margin-bottom: 10px; }
.service-details .text-block a { color: var(--primary); text-decoration: underline; }
.service-details .text-block img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 8px 0;
}
.service-details .text-block iframe {
    max-width: 100%;
    border-radius: 8px;
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
}

/* Текстовые страницы page.php — уже были стили, добавим видео */
.text-page-content iframe {
    max-width: 100%;
    border-radius: 8px;
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    margin: 12px 0;
}

/* ============================================
   Кнопка Source в редакторе
   ============================================ */

/* Textarea в режиме source */
.editor-source {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 0 0 8px 8px;
    font-family: ui-monospace, 'SF Mono', Consolas, Menlo, monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #111827;
    background: #F9FAFB;
    resize: vertical;
    outline: none;
    tab-size: 2;
    white-space: pre-wrap; /* ← код будет переноситься */
    word-break: break-all; /* ← длинные теги не будут вылезать */
    overflow-y: auto;      /* ← вертикальная прокрутка */
}
.editor-source:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, .12);
    background: white;
}

/* Скрытие Quill в source-режиме */
.editor-container[style*="display: none"] + .editor-source {
    border-radius: 0 0 8px 8px;
}

/* Активная кнопка source */
.ql-snow.ql-toolbar .ql-source.ql-active,
.ql-snow.ql-toolbar .ql-source:hover {
    color: var(--primary);
}
.ql-snow.ql-toolbar .ql-source.ql-active .ql-stroke,
.ql-snow.ql-toolbar .ql-source:hover .ql-stroke {
    stroke: var(--primary);
}

/* Тулбар не должен ломаться при малом числе кнопок */
.ql-toolbar.ql-snow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
}

/* Мобильный вид */
@media (max-width: 700px) {
    .editor-source {
        font-size: 12px;
        padding: 10px 12px;
    }
}

/* ============================================
   Страница активации сертификата
   ============================================ */

.activation-box {
    max-width: 600px;
    margin: 20px auto 60px;
    background: none;
    border-radius: var(--radius);
    padding: 40px 36px;
    box-shadow: var(--shadow);
	border: 1px solid #a97142;
}

.activation-box h1 {
    font-size: 28px;
    margin-bottom: 12px;
    text-align: center;
}

.activation-lead {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 28px;
    text-align: center;
}

.activation-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.activation-form .field-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0px;
}

.activation-form .field input,
.activation-form .field textarea {
    width: 100%;
    padding: 9px 14px 11px;
    border: 1px solid #a0a0a0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}

.activation-form .field input:focus,
.activation-form .field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, .12);
}

.activation-form .field-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.activation-form .checkbox-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: #35353D;
    border: 1px solid #a0a0a0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.activation-form .checkbox-card input {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

.activation-form .checkbox-card a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.activation-help {
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
}
.activation-help a {
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 600px) {
    .activation-box {
        padding: 28px 20px;
        margin: 10px auto 40px;
    }
    .activation-box h1 { font-size: 22px; }
    .activation-form .admin-form-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}


/* ============================================
   Страница благодарности после активации
   ============================================ */

.activation-thanks {
    max-width: 620px;
    padding: 60px 40px;
}

.activation-thanks .thanks-icon {
    font-size: 72px;
    margin-bottom: 20px;
}

.activation-thanks h1 {
    font-size: 30px;
    line-height: 1.25;
    margin-bottom: 24px;
    color: var(--primary);
}

.activation-thanks .thanks-order {
    display: block;
    background: transparent;
    color: var(--text);
    font-size: 17px;
    line-height: 1.7;
    padding: 0;
    border-radius: 0;
    margin: 0 0 20px;
}

.activation-thanks .thanks-actions {
    margin-top: 28px;
}

@media (max-width: 600px) {
    .activation-thanks {
        padding: 40px 24px;
    }
    .activation-thanks .thanks-icon {
        font-size: 56px;
    }
    .activation-thanks h1 {
        font-size: 22px;
    }
    .activation-thanks .thanks-order {
        font-size: 15px;
    }
}

/* ============================================
   Оформление заказа: сертификаты и согласия
   ============================================ */

/* ---------- Кнопки выбора сертификата ---------- */
.cert-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.cert-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    padding: 20px 16px;
    min-height: 100px;
    background: #35353d;
    border: 1px solid #a0a0a0;
    border-radius: 10px;
    cursor: pointer;
    transition: background .18s, border-color .18s, color .18s, box-shadow .18s, transform .1s;
    user-select: none;
}

.cert-btn:hover {
    border-color: #C4B5FD;
    transform: translateY(-1px);
}

.cert-btn:active {
    transform: translateY(0);
}

/* Скрываем сам radio — но клик по label его выбирает */
.cert-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.cert-btn-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    transition: color .18s;
}

.cert-btn-hint {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-muted);
    transition: color .18s, opacity .18s;
}

/* Активная (выбранная) кнопка */
.cert-btn:has(input:checked) {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 6px 18px rgba(109, 40, 217, .28);
}

.cert-btn:has(input:checked) .cert-btn-title,
.cert-btn:has(input:checked) .cert-btn-hint {
    color: white;
}

.cert-btn:has(input:checked) .cert-btn-hint {
    opacity: .9;
}

/* Fallback для старых браузеров без :has() */
.cert-btn input:checked ~ .cert-btn-title,
.cert-btn input:checked ~ .cert-btn-hint {
    color: white;
}

/* ---------- Галочки согласий (без рамок) ---------- */
.consents {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px dashed var(--border);
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
}

.consent-row input[type="checkbox"] {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
}

.consent-row a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .15s;
}

.consent-row a:hover {
    color: var(--primary-dark);
}

@media (max-width: 600px) {
    .cert-options {
        grid-template-columns: 1fr;
    }
    .cert-btn {
        min-height: 86px;
        padding: 16px 14px;
    }
    .cert-btn-title {
        font-size: 14px;
    }
}

/* ============================================
   Телефон в шапке
   ============================================ */

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border-radius: 8px;
    color: var(--text);
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    transition: color .15s, background .15s;
    margin-right: 4px;
}

.header-phone:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.header-phone-icon {
    font-size: 14px;
    line-height: 1;
}

.header-phone-text {
    line-height: 1;
}

/* ---------- Планшет: скрываем текст, оставляем иконку ---------- */
@media (max-width: 1100px) {
    .header-phone-text {
        display: none;
    }
    .header-phone {
        padding: 8px 10px;
    }
}

/* ---------- Мобильный: скрываем телефон полностью ---------- */
@media (max-width: 900px) {
    .header-phone {
        display: none;
    }
}



@media (max-width: 500px) {
    main.container {
        padding: 5px;
    }
	
	.product-single-section, .product-set .product-single-section {
		padding: 8px;		
	}
	
	.service-toggle {
		min-width: 50px;
		padding: 5px;
		font-size: 5px;
		display: none;
	}
	
	.service-header {
		min-height: 67px;
		padding: 12px 10px 14px 54px;
	}
	
	.service-name {
		font-size: 14px;
		font-family: 'Oswald', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
		font-weight: 400;
	}
	
	.org-block {
		padding: 8px 18px;
	}
	.org-name {
		margin-bottom: 4px;
		font-size: 12px;
	}
	.service-item.open .service-details-wrap {
		width: 115%;
		margin-left: -45px;
	}
	
	.service-details .text-block {
		font-size: 11px;
		line-height: 1.4;
	}
	
	.org-line {
		font-size: 12px;
	}
	
	.product-single-lead p {
		padding: 0 10px;
		font-size: 12px;
	}
	
	.product-single-info h1, .product-set-info h1 {
		padding: 0 30px;
	}
	
	.cart-link {
		margin-top: 0px;
	}
	
	.activation-lead {
		font-size: 12px;
	}
	.activation-form .field-label {
		font-size: 12px;
	}
	.activation-form .field input, .activation-form .field textarea {
		font-size: 14px;
		padding: 7px 10px 9px;
	}
	.main-nav a {
		font-size: 15px;
	}
	.text-page h1 {
		font-size: 20px;
	}
	.text-page-content {
		font-size: 13px;
	}
	.product-body {
		padding: 14px 10px 10px;
	}
	.product-title {
		font-size: 13px;
	}
	:root {
		--radius: 6px;
	}
	
	.catalog-layout .products-grid {
		gap: 8px;
	}
	.header-left {
		margin-left: 0;
	}
	.logo-img {
		max-width: 120px;
	}

	
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border-radius: 8px;
    color: #E7E7E7;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    transition: color .15s, background .15s;
    margin-right: 4px;
}

.header-phone svg,
.header-phone .header-phone-icon {
    flex-shrink: 0;
    color: #D9A428; /* фиолетовая иконка */
    display: block;
}

.header-phone:hover {
    background: none;
    color: #D9A428;
}

/* ============================================
   Характеристики услуги (в раскрытом блоке)
   ============================================ */

.service-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--border);
	width: 50%;
}

.service-spec {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.3;
    color: var(--text);
    transition: border-color .15s, background .15s;
}


.service-spec-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.service-spec-value {
    font-weight: 600;
    color: var(--text);
    word-break: break-word;
}

/* Если у услуги только одно-два значения — они всё равно растягиваются красиво */
.service-specs:has(.service-spec:only-child) {
    grid-template-columns: 1fr;
}

/* ---------- Адаптив ---------- */
@media (max-width: 500px) {
    .service-specs {
        gap: 8px;
    }
    .service-spec {
        padding: 10px 12px;
        font-size: 13px;
        gap: 8px;
    }
    .service-spec-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.service-spec-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

	.service-specs {
		width: 100%;
	}
	.site-footer {
		font-size: 12px;
	}

}

/* ============================================
   Страница электронного сертификата
   ============================================ */

.product-certificate {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cert-title {
    font-size: 32px;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 4px;
}

.cert-instruction {
    background: #303037;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
	border: 1px solid #a97142;
}

.cert-instruction img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
}

.cert-lead {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: white;
    border-radius: var(--radius);
    padding: 24px 28px;
    box-shadow: var(--shadow);
	display: none;
}

.cert-lead p { margin-bottom: 12px; }
.cert-lead p:last-child { margin-bottom: 0; }

/* Кнопка "Активация" внизу страницы */
.cert-cta {
    display: flex;
    justify-content: center;
    margin-top: 12px;
    margin-bottom: 40px;
}

.btn-activation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 48px;
    background: #DC2626;
    color: white;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(220, 38, 38, .3);
    transition: background .18s, box-shadow .18s, transform .1s;
    text-align: center;
    white-space: nowrap;
}

.btn-activation::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    flex-shrink: 0;
}

.btn-activation:hover {
    background: #B91C1C;
    color: white;
    box-shadow: 0 8px 26px rgba(220, 38, 38, .4);
    transform: translateY(-1px);
}

.btn-activation:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(220, 38, 38, .3);
}

/* Адаптив */
@media (max-width: 700px) {
    .cert-title {
        font-size: 22px;
    }
    .cert-instruction {
        padding: 12px;
    }
    .cert-lead {
        padding: 18px 20px;
        font-size: 15px;
    }
    .btn-activation {
        padding: 16px 32px;
        font-size: 16px;
        width: 100%;
    }
}

/* Блок «Основной товар» в админке */
.cert-link-box select {
    margin-top: 4px;
}

.cart-link-text {
	color: #E7E7E7;
}

.cart-link-text:hover {
	color: #D9A428;
}

/* ============================================
   Слайдер галереи товара
   ============================================ */

.product-slider {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-slider-main {
    position: relative;
    aspect-ratio: 1 / 0.95;
    border-radius: var(--radius);
    overflow: hidden;
    background: none;
}

.product-slider-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}

.product-slider-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Кнопки ← → */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(53, 53, 61,.85);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s, transform .15s;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    z-index: 2;
}
.slider-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.05);
}
.slider-nav:active {
    transform: translateY(-50%) scale(.95);
}

.slider-prev { left: 12px; }
.slider-next { right: 12px; }

/* Превью-полоска */
.product-slider-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
	justify-content: center;
}

.product-slider-thumb {
    width: 78px;
    height: 60px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgb(53, 53, 61);
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .15s, transform .1s;
}

.product-slider-thumb:hover {
    border-color: #C4B5FD;
}

.product-slider-thumb.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(109, 40, 217, .15);
}

.product-slider-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Галерея в админке ---------- */
.gallery-admin-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-bottom: 6px;
}

.gallery-admin-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gallery-admin-preview {
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: white;
}

.gallery-admin-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-admin-actions {
    display: flex;
    justify-content: center;
    gap: 2px;
}

.gallery-admin-actions .icon-btn {
    width: 24px;
    height: 24px;
    font-size: 11px;
}

.gallery-admin-actions .icon-btn[disabled] {
    opacity: .3;
    cursor: not-allowed;
}

/* Адаптив */
@media (max-width: 700px) {
    .slider-nav {
        width: 25px;
        height: 25px;
    }
    .slider-prev { left: 8px; }
    .slider-next { right: 8px; }

    .product-slider-thumb {
        width: 70px;
        height: 50px;
    }
}

.product-set-info {
	margin-top: 10%;
}


/* ============================================
   Разделитель и компактные действия
   ============================================ */

.admin-actions-sep {
    display: inline-block;
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 4px;
    vertical-align: middle;
}

.admin-actions {
    gap: 3px;
}

.admin-actions .icon-btn {
    width: 30px;
    height: 30px;
    font-size: 13px;
}

/* ============================================
   Быстрые цвета для услуги
   ============================================ */

.color-swatches {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 42px;
    height: 42px;
    border: 3px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: transform .12s, box-shadow .15s, border-color .15s;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}

.color-swatch:hover {
    transform: scale(1.08);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 4px 12px rgba(0, 0, 0, .15);
}

.color-swatch:active {
    transform: scale(1);
}

/* Активный цвет — обводка + галочка */
.color-swatch.active {
    border-color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 0 0 3px rgba(109, 40, 217, .15);
}

.color-swatch.active::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
    pointer-events: none;
}

/* На мобильном чуть компактнее */
@media (max-width: 700px) {
    .color-swatch {
        width: 38px;
        height: 38px;
    }
	.product-set-info {
		margin-top: 0;
	}
	.product-btn {
		font-size: 10px;
	}
	.catalog-sidebar {
		display: none;
	}
}

/* ============================================
   Вторая строка названия товара
   ============================================ */

.product-name-line2 {
    display: block;
    /* По умолчанию — те же стили, что и у основного названия.
       Если хотите акцент — раскомментируйте одну из строк ниже: */

    /* font-size: 0.9em; */
    /* color: var(--primary); */
    /* font-weight: 400; */
}

/* Если название в каталоге слишком длинное и ломается —
   можно ограничить высоту и убрать многоточие */
.product-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   Разделитель в меню категорий
   ============================================ */

.catalog-nav-separator {
    height: 1px;
    background: var(--border);
    margin: 8px 12px;
    border-radius: 1px;
}

/* На мобильном меню — горизонтальное, разделитель превращается в вертикальную черту */
@media (max-width: 900px) {
    .catalog-nav-separator {
        width: 1px;
        height: 24px;
        margin: auto 6px;
        flex-shrink: 0;
    }
}

/* ============================================
   Админка: список вариантов услуги
   ============================================ */

.variants-admin-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.variant-admin-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color .15s, box-shadow .15s;
}

.variant-admin-item:hover {
    border-color: #D1D5DB;
    box-shadow: var(--shadow);
}

.variant-admin-item.inactive {
    opacity: .55;
}

.variant-admin-info {
    min-width: 0;
    flex: 1;
}

.variant-admin-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.variant-admin-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--primary);
}

.variant-admin-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

@media (max-width: 700px) {
    .variant-admin-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .variant-admin-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ============================================
   Варианты услуги (на странице товара)
   ============================================ */

.product-variants {
    margin-bottom: 20px;
}

.product-variants-title {
    font-size: 16px;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .3px;
	text-align: center;
}

.product-variants-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, 160px);
    justify-content: center;
    gap: 10px;
}

.product-variant {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px 12px;
    background: #35353d;
    border: 1px solid #dfdfdf;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: border-color .15s, background .15s, transform .1s, box-shadow .15s;
    user-select: none;
}

.product-variant:hover {
    border-color: #C4B5FD;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
}

.product-variant:active {
    transform: translateY(0);
}

/* Скрываем сам radio */
.product-variant input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.product-variant-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.product-variant-price {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: white;
    line-height: 1.3;
}

/* Активная кнопка */
.product-variant.active {
    background: #ce8946;
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(109, 40, 217, .18);
}

.product-variant.active .product-variant-name {
    color: white;
}

/* Мобильный — компактнее */
@media (max-width: 600px) {
    .product-variants-list {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .product-variant {
        padding: 12px 10px;
    }
    .product-variant-name {
        font-size: 14px;
    }
    .product-variant-price {
        font-size: 12px;
    }
}

/* Кнопка «Добавить в корзину» — на всю ширину, если есть варианты */
.product-variants + button,
form#addToCartForm .btn {
    width: 250px;
}


/* ============================================
   Корзина и оформление: варианты
   ============================================ */

.cart-item-variant {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.checkout-variant {
    color: var(--primary);
    font-weight: 600;
}

.admin-variant-name {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    margin-top: 2px;
}

/* ============================================
   Сортировка в списке товаров
   ============================================ */

.admin-sort-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #35353D;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.admin-sort-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    margin-right: 4px;
}

.admin-sort-bar .category-chip {
    font-size: 13px;
    padding: 6px 14px;
}

/* ============================================
   Honeypot — невидимое поле для ботов
   ============================================ */

.spam-hp {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.spam-hp label,
.spam-hp input {
    position: absolute !important;
    left: -9999px !important;
}

.lite333 {
	color: #dfdfdf;
}

/* ============================================
   Отзывы к товарам
   ============================================ */

.reviews-section {
    margin-top: 40px;
    padding: 28px;
    background: #35353d;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.reviews-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.reviews-header h2 {
    font-size: 22px;
    margin: 0;
}

.reviews-count {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 18px;
}

.reviews-avg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.reviews-avg .stars {
    display: inline-flex;
    gap: 1px;
    color: #F59E0B;
}

.reviews-avg-value {
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
}

.reviews-avg-meta {
    color: var(--text-muted);
}

/* Звёзды */
.stars {
    display: inline-flex;
    gap: 1px;
    color: #F59E0B;
    vertical-align: middle;
}

.star svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    stroke: #F59E0B;
    stroke-width: 1;
    display: block;
}

.star-empty svg {
    fill: transparent;
    stroke: #D1D5DB;
}

.star-half svg {
    fill: url(#half-grad);
}

/* Список отзывов */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.review-card {
    padding: 16px 18px;
    background: #35353d;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.review-author {
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
}

.review-stars .star svg {
    width: 16px;
    height: 16px;
}

.review-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 10px;
}

.review-photo {
    margin-top: 8px;
}

.review-photo img {
    max-width: 220px;
    max-height: 220px;
    border-radius: 8px;
    display: block;
}

.reviews-empty {
    color: var(--text-muted);
    font-size: 15px;
    padding: 20px 0;
}

/* Форма отзыва */
.review-form-block {
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.review-form-block h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.review-form-note {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 18px;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 640px;
}

.review-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: end;
}

/* Рейтинг в форме — интерактивный */
.rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
	justify-content: center;
}

.rating-input input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.rating-input label {
    cursor: pointer;
    color: #D1D5DB;
    transition: color .15s, transform .1s;
    line-height: 0;
}

.rating-input label svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 0;
    transition: transform .1s;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
    color: #F59E0B;
}

.rating-input label:hover svg {
    transform: scale(1.1);
}

/* Подсветка выбранного значения при hover */
.rating-input:hover input:checked ~ label {
    color: #D1D5DB;
}
.rating-input:hover label:hover,
.rating-input:hover label:hover ~ label {
    color: #F59E0B;
}

.review-file {
    padding: 10px 14px;
    border: 1px dashed var(--border);
    border-radius: 8px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    max-width: 400px;
}

@media (max-width: 700px) {
    .reviews-section { padding: 8px; }
    .reviews-header h2 { font-size: 18px; }
    .review-form-row { grid-template-columns: 1fr; }
    .rating-input label svg { width: 28px; height: 28px; }
    .review-photo img { max-width: 100%; }
}

/* ============================================
   Админка: превью отзывов
   ============================================ */

.review-preview-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
    max-width: 340px;
}

.admin-table .rating-input {
    transform: scale(.7);
    transform-origin: left center;
}

.admin-table .stars {
    margin-right: 6px;
}

/* ============================================
   SEO-текст внизу категории
   ============================================ */
.category-seo-text {
    margin-top: 40px;
    padding: 24px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
}
.category-seo-text .text-block h2 { font-size: 20px; color: var(--text); margin-bottom: 12px; }
.category-seo-text .text-block p { margin-bottom: 12px; }