/*
Theme Name: ООО "ОПТИУМ"
Theme URI: http://onoroff.ru/
Author: ООО ОПТИУМ
Author URI: http://onoroff.ru/
Description: Профессиональная тема для компании 1С-услуг и ИТ-аутсорсинга. Современный дизайн с фирменными цветами.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maximum
Tags: one-column, custom-menu, custom-logo, featured-images, theme-options, translation-ready

ООО "ОПТИУМ" - 1С решения для вашего бизнеса
http://onoroff.ru/
*/

/* ========== SYSTEM FONTS (removed Inter.ttf - using system stack) =========== */

/* ========== FROM: montserrat.css ========== */
/* Montserrat Font - локальная версия */
/* Поддерживает основные веса: 300, 400, 500, 600, 700 */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/Montserrat-Light.woff2') format('woff2'),
       url('assets/fonts/Montserrat-Light.ttf') format('truetype');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('assets/fonts/Montserrat-Regular.woff2') format('woff2'),
       url('assets/fonts/Montserrat-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/Montserrat-Medium.woff2') format('woff2'),
       url('assets/fonts/Montserrat-Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/Montserrat-SemiBold.woff2') format('woff2'),
       url('assets/fonts/Montserrat-SemiBold.ttf') format('truetype');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/Montserrat-Bold.woff2') format('woff2'),
       url('assets/fonts/Montserrat-Bold.ttf') format('truetype');
}

/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
    --color-primary: #418296;
    --color-secondary: #5a9caf;
    --color-accent: #74b5c4;
    --color-dark: #274f59;
    --gradient-main: linear-gradient(135deg, #274f59 0%, #418296 50%, #5a9caf 100%);
    --gradient-hover: linear-gradient(135deg, #316775 0%, #4b93a7 50%, #68adbd 100%);
}

/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f9fafb;
    color: #374151;
    line-height: 1.6;
    font-synthesis: none;
}

/* Montserrat шрифт для ключевых UI элементов */
.site-title,
.site-title a,
.main-navigation a,
.menu-toggle,
.btn,
.section-title,
.card-title,
.hero-title,
.hero-title .hero-subtitle,
.footer-title,
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-synthesis: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== УТИЛИТЫ ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

.gradient-bg {
    background: var(--gradient-main);
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
}

.btn-primary:hover {
    background: var(--gradient-hover);
    opacity: 0.9;
}

.btn-secondary {
    background: white;
    color: var(--color-dark);
}

.btn-secondary:hover {
    background: #f3f4f6;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===== НАВИГАЦИЯ ===== */
.site-header {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

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

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.custom-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
}

.custom-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Главное меню */
.main-navigation {
    display: none;
}

@media (min-width: 768px) {
    .main-navigation {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: #374151;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--color-primary);
}

.main-navigation .menu-item-cta a {
    background: var(--gradient-main);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
}

.main-navigation .menu-item-cta a:hover {
    opacity: 0.9;
}

/* Мобильное меню */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #374151;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

.mobile-navigation {
    display: none;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 1rem;
}

.mobile-navigation.active {
    display: block;
}

.mobile-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-navigation li {
    margin-bottom: 0.75rem;
}

.mobile-navigation a {
    display: block;
    color: #374151;
    padding: 0.5rem 0;
}

.mobile-navigation a:hover {
    color: var(--color-primary);
}

/* ===== СЕКЦИИ ===== */
.section {
    padding: 5rem 0;
}

.section-gray {
    background: #f3f4f6;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-subtitle {
    color: #6b7280;
    max-width: 42rem;
    margin: 0 auto 4rem;
    text-align: center;
}

/* ===== ГЕРОЙ ===== */
.hero-section {
    background: var(--gradient-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 64px;
    position: relative;
    overflow: hidden;
}

/* Мобильная оптимизация героя */
@media (max-width: 767px) {
    .hero-section {
        min-height: auto;
        padding-bottom: 2rem;
    }
}

/* Фоновое изображение героя */
.hero-section::before {
    content: '';
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%) scale(1.05);
    width: 50%;
    height: 100%;
    background-image: var(--hero-bg-image-url, none);
    background-repeat: no-repeat;
    background-position: center right;
    /* Растягиваем фон по вертикали на всю высоту блока, сохраняя пропорции */
    background-size: auto 100%;
    opacity: 0.1;
    /* Плавное появление изображения слева: маска от полной прозрачности слева к полной видимости справа */
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
    /* Лёгкий эффект стекла: размытие, неровные края менее заметны */
    filter: blur(6px);
    pointer-events: none;
    z-index: 0;
}

/* Контент поверх фона */
.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-content {
    color: white;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* Мобильная оптимизация заголовка героя */
@media (max-width: 767px) {
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-stats {
        margin: 1.5rem 0;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-visual {
    display: none;
}

@media (min-width: 768px) {
    .hero-visual {
        display: block;
    }
}


.hero-card {
    position: relative;
}

.hero-card-bg {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    transform: rotate(6deg);
}

.hero-card-content {
    position: relative;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    border-radius: 1.5rem;
    padding: 2rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    min-height: 60px;
}

.hero-feature > div:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-height: 48px;
}

.hero-feature:last-child {
    margin-bottom: 0;
}

.hero-feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    max-width: 48px;
    max-height: 48px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.hero-feature-icon i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.hero-feature-icon svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    object-fit: contain;
}

.hero-feature-title {
    color: white;
    font-weight: 600;
}

.hero-feature-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.hero-title .hero-subtitle {
    font-size: 0.8em;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    justify-content: center;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

.hero-trust {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.trust-item a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ===== КАРТОЧКИ ===== */
.cards-grid {
    display: grid;
    gap: 2rem;
}

/* Выравнивание карточек: одинаковые отступы у заголовков, чтобы текст начинался на одном уровне */
.card .card-icon { margin-bottom: 1rem; }
.card .card-title { margin: 0.25rem 0 0.5rem; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-clamp: 2; overflow: hidden; }
.card .card-text { margin-top: 0.25rem; }

@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .cards-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cards-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(65, 130, 150, 0.2);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-main);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.card-icon-sm {
    width: auto;
    height: auto;
    background: none;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.card-text {
    color: #6b7280;
    font-size: 0.875rem;
}

/* ===== СТАТИСТИКА ===== */
.stats-section {
    background: var(--gradient-main);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
    color: white;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 3rem;
    }
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== НОВОСТИ ===== */
.news-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(65, 130, 150, 0.2);
}

.news-image {
    height: 192px;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-image i {
    font-size: 3rem;
    color: white;
    opacity: 0.5;
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.news-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.news-excerpt {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.news-link {
    color: var(--color-primary);
    font-weight: 600;
}

.news-link:hover {
    text-decoration: underline;
}

/* ===== КОНТАКТЫ ===== */
.contact-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-main);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.contact-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.contact-value {
    font-weight: 600;
    color: #1f2937;
}

.contact-value a:hover {
    color: var(--color-primary);
}

/* Форма */
.contact-form {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(65, 130, 150, 0.2);
}

.form-textarea {
    resize: none;
    min-height: 120px;
}

.form-submit {
    width: 100%;
}

/* ===== ФУТЕР ===== */
.site-footer {
    background: #111827;
    color: white;
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-description {
    color: #9ca3af;
    margin-top: 1rem;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.5rem;
}

.footer-menu a {
    color: #9ca3af;
}

.footer-menu a:hover {
    color: white;
}

.footer-contacts {
    color: #9ca3af;
}

.footer-contacts a {
    color: #9ca3af;
}

.footer-contacts a:hover {
    color: white;
}

.footer-contacts p {
    margin-bottom: 0.5rem;
}

.footer-contacts i {
    margin-right: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #1f2937;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.social-link:hover {
    background: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid #1f2937;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* ===== СТРАНИЦЫ ===== */
.page-header {
    background: var(--gradient-main);
    padding: 8rem 0 4rem;
    text-align: center;
    color: white;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.page-content {
    padding: 4rem 0;
}

.entry-content {
    max-width: 800px;
    margin: 0 auto;
}

.entry-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 2rem 0 1rem;
}

.entry-content p {
    margin-bottom: 1rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

/* ===== АРХИВ/БЛОГ ===== */
.posts-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.post-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(65, 130, 150, 0.2);
}

.post-thumbnail {
    height: 200px;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.post-title a:hover {
    color: var(--color-primary);
}

.post-excerpt {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--color-primary);
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: white;
    color: #374151;
}

.pagination .current {
    background: var(--gradient-main);
    color: white;
}

.pagination a:hover {
    background: #f3f4f6;
}

/* ===== ВИДЖЕТЫ ===== */
.widget {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: #374151;
}

.widget a:hover {
    color: var(--color-primary);
}

/* ===== АНИМАЦИИ ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== WORDPRESS СПЕЦИФИЧНЫЕ ===== */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin: 0 auto 1rem;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    margin-top: 0.5rem;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Комментарии */
.comments-area {
    margin-top: 3rem;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 600;
    color: #1f2937;
}

.comment-meta {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.comment-content {
    color: #374151;
}

.comment-reply-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.comment-respond {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
}

.comment-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.comment-form .submit {
    background: var(--gradient-main);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
}

.comment-form .submit:hover {
    opacity: 0.9;
}

/* ===== КЛИКАБЕЛЬНЫЕ КАРТОЧКИ УСЛУГ ===== */
.card-link {
    display: block;
    text-decoration: none;
    position: relative;
    cursor: pointer;
}

.card-link:hover {
    transform: translateY(-10px);
}

.card-link .card-title {
    transition: color 0.3s ease;
}

.card-link:hover .card-title {
    color: var(--color-primary);
}

.card-link-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 32px;
    height: 32px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.card-link:hover .card-link-arrow {
    opacity: 1;
    transform: translateX(0);
}

.card-thumbnail {
    height: 150px;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 0.5rem;
}

/* ===== ШАБЛОН СТРАНИЦЫ УСЛУГИ ===== */
.service-header {
    background: var(--gradient-main);
    padding: 8rem 0 4rem;
    color: white;
}

.service-header .breadcrumbs {
    margin-bottom: 2rem;
    opacity: 0.8;
}

.service-header .breadcrumbs a {
    color: white;
}

.service-header-content {
    text-align: center;
}

.service-icon-large {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.service-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.service-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .service-grid {
        grid-template-columns: 1fr 350px;
    }
}

.service-main {
    order: 2;
}

@media (min-width: 1024px) {
    .service-main {
        order: 1;
    }
}

.service-sidebar {
    order: 1;
}

@media (min-width: 1024px) {
    .service-sidebar {
        order: 2;
    }
}

.service-image {
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.service-image img {
    width: 100%;
    height: auto;
}

.service-features {
    background: #f9fafb;
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
}

.service-features h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.features-list li:last-child {
    margin-bottom: 0;
}

.features-list i {
    color: var(--color-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* Боковая панель услуги */
.sidebar-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.sidebar-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #6b7280;
    font-size: 0.875rem;
}

.info-value {
    font-weight: 600;
    color: #1f2937;
}

.info-value.price {
    color: var(--color-primary);
    font-size: 1.125rem;
}

.sidebar-form .form-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.quick-form .form-group {
    margin-bottom: 1rem;
}

.quick-form .form-input {
    padding: 0.625rem 1rem;
}

.sidebar-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #374151;
    font-weight: 500;
}

.contact-link:hover {
    color: var(--color-primary);
}

.contact-link i {
    width: 32px;
    height: 32px;
    background: var(--gradient-main);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
}

/* Связанные услуги */
.related-services {
    margin-top: 3rem;
}

.related-services h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.related-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(65, 130, 150, 0.2);
}

.related-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-main);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1rem;
}

.related-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.related-arrow {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--color-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-card:hover .related-arrow {
    opacity: 1;
}

/* CTA секция */
.cta-section {
    background: var(--gradient-main);
    padding: 4rem 0;
}

.cta-content {
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ===== ШАБЛОН ПРОДУКТА 1С ===== */
.product-header {
    background: #f9fafb;
    padding: 8rem 0 4rem;
}

.product-header .breadcrumbs {
    margin-bottom: 2rem;
}

.product-header-grid {
    display: grid;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 768px) {
    .product-header-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.product-header-image {
    /* Убрали белый фон/рамку и внутренние отступы, тень переносим на изображение */
    background: transparent;
    border-radius: 1rem;
    padding: 0;
    box-shadow: none;
    overflow: hidden;
}

.product-header-image img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.product-placeholder {
    height: 300px;
    background: var(--gradient-main);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
    opacity: 0.5;
}

.product-badge {
    display: inline-block;
    background: var(--gradient-main);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .product-title {
        font-size: 2.5rem;
    }
}

.product-excerpt {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.product-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.product-meta-item i {
    color: var(--color-primary);
}

.product-price-block {
    background: white;
    border-radius: 1rem;
    padding: 1rem; /* уменьшили отступ */
    margin-bottom: 1rem; /* компактнее блок */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.price-label {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.price-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-outline-dark {
    background: transparent;
    border: 2px solid #374151;
    color: #374151;
}

.btn-outline-dark:hover {
    background: #374151;
    color: white;
}

/* Вкладки продукта */
.product-tabs {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--color-primary);
}

.tab-btn.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.tabs-content {
    padding: 2rem;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.features-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.75rem;
}

.feature-number {
    width: 32px;
    height: 32px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.feature-text {
    color: #374151;
}

.requirements-default ul {
    list-style: none;
    padding: 0;
}

.requirements-default li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.requirements-default li:last-child {
    border-bottom: none;
}

.no-content {
    color: #6b7280;
    font-style: italic;
}

/* Секция заказа */
.order-section {
    background: #f3f4f6;
}

.order-grid {
    display: grid;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 768px) {
    .order-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.order-info h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.order-info > p {
    color: #6b7280;
    margin-bottom: 2rem;
}

.order-benefits {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.benefit-item i {
    color: var(--color-primary);
    font-size: 1.25rem;
}

.benefit-item span {
    color: #374151;
    font-weight: 500;
}

.order-contacts p {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.order-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.order-phone:hover {
    color: var(--color-dark);
}

.order-form-wrapper {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.order-form .required {
    color: #ef4444;
}

.form-note {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
    margin-top: 1rem;
}

/* Похожие продукты */
.related-products {
    background: white;
}

.product-card .card-price {
    margin-top: auto;
}

/* ===== ПОИСК В НАВИГАЦИИ ===== */

/* Контейнер поиска - часть навигации */
.nav-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
}

/* Кнопка открытия поиска */
.nav-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: #374151;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.nav-search-toggle:hover {
    background: #f3f4f6;
    color: var(--color-primary);
}

/* Кнопка остаётся на месте, форма появляется поверх */

/* Форма поиска - скрыта по умолчанию, появляется поверх */
.nav-search-form {
    display: none;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    align-items: center;
    background: white;
    border-radius: 9999px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0.25rem;
    z-index: 100;
}

.nav-search.active .nav-search-form {
    display: flex;
}

.nav-search-input {
    width: 250px;
    padding: 0.625rem 1rem;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    outline: none;
}

.nav-search-input::placeholder {
    color: #9ca3af;
}

.nav-search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--gradient-main);
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-search-submit:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.nav-search-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.nav-search-close:hover {
    background: #e5e7eb;
    color: #374151;
}

/* Скрываем на мобильных */
@media (max-width: 767px) {
    .nav-search {
        display: none;
    }
}

/* Мобильный поиск - показываем в мобильном меню */
.mobile-search {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.mobile-search-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.mobile-search-btn {
    width: 42px;
    height: 42px;
    background: var(--gradient-main);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .search-inline {
        display: none !important;
    }
}

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.breadcrumbs {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.breadcrumbs a {
    color: inherit;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.breadcrumbs .current {
    color: #374151;
    font-weight: 500;
}

/* ===== FOOTER LEGAL ===== */
.footer-legal {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: #9ca3af;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: white;
}

/* ===== COOKIE BANNER (152-ФЗ) ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 1.25rem;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .cookie-banner-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.cookie-banner-text {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.cookie-banner-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-main);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.cookie-banner-message p {
    margin: 0;
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.5;
}

.cookie-banner-message p:first-child {
    margin-bottom: 0.25rem;
}

.cookie-banner-message a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-banner-message a:hover {
    color: var(--color-dark);
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cookie-btn-accept {
    background: var(--gradient-main);
    color: white;
}

.cookie-btn-accept:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.cookie-btn-settings {
    background: transparent;
    border: 2px solid #e5e7eb;
    color: #374151;
}

.cookie-btn-settings:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.cookie-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.cookie-btn-secondary:hover {
    background: #e5e7eb;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.cookie-modal-content {
    position: relative;
    background: white;
    border-radius: 1rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.cookie-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.3s ease;
}

.cookie-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.cookie-modal-body {
    padding: 1.5rem;
}

.cookie-modal-body > p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
}

.cookie-option:last-of-type {
    margin-bottom: 1.5rem;
}

.cookie-option-info {
    flex: 1;
}

.cookie-option-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    margin-bottom: 0.25rem;
}

.cookie-option-label input[type="checkbox"] {
    display: none;
}

.cookie-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cookie-option-label input[type="checkbox"]:checked + .cookie-checkbox {
    background: var(--gradient-main);
    border-color: var(--color-primary);
}

.cookie-option-label input[type="checkbox"]:checked + .cookie-checkbox::after {
    content: '✓';
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
}

.cookie-option-label input[type="checkbox"]:disabled + .cookie-checkbox {
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-option-label strong {
    color: #1f2937;
}

.cookie-option-desc {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
    padding-left: 2rem;
}

.cookie-option-required {
    font-size: 0.75rem;
    color: #9ca3af;
    background: #e5e7eb;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    flex-shrink: 0;
}

.cookie-legal-info {
    background: linear-gradient(135deg, rgba(39, 79, 89, 0.05), rgba(65, 130, 150, 0.05));
    border-left: 3px solid var(--color-primary);
    padding: 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

.cookie-legal-info p {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.cookie-legal-info i {
    color: var(--color-primary);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.cookie-modal-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 0 0 1rem 1rem;
}

.cookie-modal-footer .cookie-btn {
    flex: 1;
}

/* ===== АРХИВ НОВОСТЕЙ С ФИЛЬТРАМИ ===== */
.archive-content {
    padding: 4rem 0;
}

.archive-filters {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.filters-form {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .filters-form {
        grid-template-columns: 2fr 1fr 1fr 1fr auto;
        align-items: end;
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-label i {
    margin-right: 0.25rem;
    color: var(--color-primary);
}

.filter-input,
.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    background: white;
    transition: all 0.3s ease;
    width: 100%;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(65, 130, 150, 0.1);
}

.filter-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
}

.search-input-wrapper .filter-input {
    padding-right: 3rem;
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: var(--gradient-main);
    border: none;
    border-radius: 0.5rem;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-btn:hover {
    opacity: 0.9;
    transform: translateY(-50%) scale(1.05);
}

.filter-reset {
    display: flex;
    align-items: flex-end;
}

.reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.reset-btn:hover {
    background: #fecaca;
}

/* Активные фильтры */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.active-filters-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: var(--gradient-main);
    color: white;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.active-filter-tag i {
    font-size: 0.625rem;
    opacity: 0.8;
}

/* Количество результатов */
.results-count {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.results-count strong {
    color: var(--color-primary);
}

/* Карточки новостей в архиве */
.news-card .news-image {
    position: relative;
    height: 200px;
}

.news-card .news-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.news-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image-placeholder i {
    font-size: 3rem;
    color: white;
    opacity: 0.5;
}

.news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.news-category a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: white;
    color: var(--color-primary);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-category a:hover {
    background: var(--color-primary);
    color: white;
}

.news-card .news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.news-date,
.news-author {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.news-date i,
.news-author i {
    color: var(--color-primary);
    font-size: 0.625rem;
}

.news-card .news-title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.news-card .news-title a {
    color: #1f2937;
    transition: color 0.3s ease;
}

.news-card .news-title a:hover {
    color: var(--color-primary);
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.news-footer .news-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.news-footer .news-link i {
    transition: transform 0.3s ease;
}

.news-footer .news-link:hover i {
    transform: translateX(4px);
}

.news-comments {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Пагинация архива */
.archive-pagination {
    margin-top: 3rem;
}

.pagination-nav {
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination-item a,
.pagination-item span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.pagination-item a:hover {
    background: #f9fafb;
    color: var(--color-primary);
}

.pagination-item .current {
    background: var(--gradient-main);
    color: white;
}

.pagination-item .prev,
.pagination-item .next {
    font-weight: 600;
}

/* Нет результатов */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.no-results-icon {
    width: 100px;
    height: 100px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.no-results-icon i {
    font-size: 2.5rem;
    color: #9ca3af;
}

.no-results h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.no-results p {
    color: #6b7280;
    max-width: 400px;
    margin: 0 auto 2rem;
}

/* ===== СТРАНИЦА ПОИСКА ===== */
.search-form-wrapper {
    margin-bottom: 2rem;
}

.search-form-large {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-input-large {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 9999px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input-large:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(65, 130, 150, 0.1);
}

.search-submit-large {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--gradient-main);
    color: white;
    border: none;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-submit-large:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Результаты поиска */
.search-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-result-item {
    display: flex;
    gap: 1.5rem;
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-result-item:hover {
    box-shadow: 0 10px 25px rgba(65, 130, 150, 0.15);
}

.search-result-content {
    flex: 1;
}

.search-result-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.search-result-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.search-result-title a:hover {
    color: var(--color-primary);
}

.search-result-excerpt {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.search-result-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-result-date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.search-result-date i {
    color: var(--color-primary);
}

.search-result-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
}

.search-result-link:hover {
    text-decoration: underline;
}

.search-result-link i {
    transition: transform 0.3s ease;
}

.search-result-link:hover i {
    transform: translateX(4px);
}

.search-result-thumbnail {
    width: 150px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    display: none;
}

@media (min-width: 640px) {
    .search-result-thumbnail {
        display: block;
    }
}

.search-result-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== КАРУСЕЛИ ===== */
.carousel-container {
    position: relative;
    margin: 0 auto;
    padding: 0 3rem;
    overflow: hidden;
}

/* Мобильная оптимизация карусели */
@media (max-width: 767px) {
    .carousel-container {
        padding: 0 1rem;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        top: 40%;
    }

    .carousel-btn.prev-btn {
        left: 0.5rem;
    }

    .carousel-btn.next-btn {
        right: 0.5rem;
    }
}

.carousel-track-container {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: transform 0.5s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .review-carousel .carousel-slide {
        flex: 0 0 50%;
    }
    .cert-carousel .carousel-slide {
        flex: 0 0 50%;
    }
}

@media (min-width: 1024px) {
    .review-carousel .carousel-slide {
        flex: 0 0 33.333%;
    }
    .cert-carousel .carousel-slide {
        flex: 0 0 33.333%;
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #e5e7eb;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--gradient-main);
    color: white;
    border-color: transparent;
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

/* Карточка отзыва */
.review-card {
    background: white;
    padding: 1.5rem 1.5rem 1.75rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Большое превью скана отзыва сверху, во всю ширину карточки */
.review-scan-thumb {
    width: 100%;
    height: 220px;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #f3f4f6;
    position: relative;
    margin-bottom: 1rem;
}

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

.review-scan-thumb .zoom-icon {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    cursor: pointer;
    font-size: 1.5rem;
}

.review-scan-thumb:hover .zoom-icon {
    opacity: 1;
}

/* Аватар (если используется где-то ещё) оставляем маленьким кружком */
.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.review-rating {
    color: #fbbf24;
    margin-bottom: 0.75rem;
}

.review-rating .active {
    color: #fbbf24;
}

.review-rating i:not(.active) {
    color: #e5e7eb;
}

.review-text {
    font-style: italic;
    color: #4b5563;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.review-meta {
    font-size: 0.875rem;
}

.review-meta strong {
    display: block;
    color: #1f2937;
}

.review-meta span {
    color: #6b7280;
}

/* Карточка сертификата */
.cert-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.cert-image {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem;
    cursor: pointer;
}

.cert-image img {
    width: 100%;
    height: auto;
    display: block;
}

.cert-placeholder {
    aspect-ratio: 3/4;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #d1d5db;
}

.cert-image .zoom-icon {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.cert-image:hover .zoom-icon {
    opacity: 1;
}

.cert-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.875rem;
}

/* Lightbox (framed, 2x zoom) */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}
.lightbox.active { display: flex; }

/* Внутренняя рамка */
.lightbox-box {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    max-width: min(1000px, 92vw);
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s;
}
.lightbox-close:hover { color: var(--color-primary); }

/* Сетки для архивов */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

/* ===== OVERRIDES: PRODUCT HEADER OPTIMIZATION ===== */
/* Make main image visually compact, keep text+price visible on average monitors */
.product-header-image {
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 1rem;
    overflow: hidden;
}
/* Fix main image area height to prevent layout shifts; keep image contained */
.product-header-image .product-main-img {
    width: 100%;
    height: 420px; /* fixed visual window height */
    object-fit: contain; /* keep proportions, no crop */
    background: #fff; /* subtle background behind transparent PNGs */
    border-radius: 0.75rem;
    /* softer shadow */
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    display: block;
}
@media (max-width: 767.98px) {
    .product-header-image .product-main-img { height: 320px; }
}

/* Title smaller for better above-the-fold layout */
.product-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
    .product-title { font-size: 2rem; }
}
.product-excerpt { margin-bottom: 1rem; }

/* Price block compact */
.product-price-block { padding: 0.75rem; margin-bottom: 0.75rem; }
.price-value { font-size: 1.5rem; }

/* ===== PRODUCT THUMBS: centered scroller with fade edges below main image ===== */
.product-thumbs-scroller {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.25rem 1.75rem 0.25rem; /* side padding to keep fade not covering thumbs */
    margin-top: 0.75rem; /* move away from main image shadow */
    text-align: center; /* center inline-flex row when not overflowing */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.product-thumbs-scroller::-webkit-scrollbar { height: 6px; }
.product-thumbs-scroller::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }
.product-thumbs-scroller::before,
.product-thumbs-scroller::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 24px;
    pointer-events: none;
}
.product-thumbs-scroller::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}
.product-thumbs-scroller::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
}

.product-thumbs-row {
    display: inline-flex; /* inline to allow text-align:center on scroller to center contents */
    gap: 0.5rem;
    align-items: center;
}
.product-thumbs-row .product-thumb-switch {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    flex: 0 0 auto;
    position: relative;
    outline: none;
}
.product-thumbs-row img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    display: block;
    transition: box-shadow .2s ease, transform .2s ease, filter .2s ease;
}
.product-thumbs-row img:hover { filter: brightness(0.95); }
.product-thumbs-row .product-thumb-switch.active img {
    box-shadow: 0 0 0 2px var(--color-primary);
    transform: translateY(-1px);
}

/* Slightly tighter meta row spacing */
.product-meta-list { margin-bottom: 1rem; }

/* ===== UNIFIED BOX-SHADOW OVERRIDES (v1.0.1) ===== */
:root { --shadow-unified: 0 0px 10px rgba(0, 0, 0, 0.12); }
.site-header,
.card,
.card:hover,
.news-card,
.news-card:hover,
.post-card,
.post-card:hover,
.widget,
.contact-form,
.product-price-block,
.product-tabs,
.order-form-wrapper,
.pagination-item a,
.pagination-item span,
.no-results,
.search-result-item,
.search-result-item:hover,
.carousel-btn,
.review-card,
.related-card,
.related-card:hover,
.product-header-image img,
.product-header-image .product-main-img,
.lightbox-box,
.lightbox-content,
.cookie-banner,
.cookie-modal-content {
  box-shadow: var(--shadow-unified) !important;
}

/* ========== FROM: calculator.css ========== */
/* ===== КАЛЬКУЛЯТОР УСЛУГ ===== */

.calculator-wrapper {
    /* Использовать ширину родительского контейнера (соответствует основной ширине страницы) */
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

/* Вкладки типов услуг */
.service-type-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 1rem;
}

.service-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.service-tab-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.service-tab-btn.active {
    background: var(--gradient-main);
    border-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(65, 130, 150, 0.3);
}

.service-tab-btn i {
    font-size: 1.25rem;
}

/* Секции калькулятора */
.calculator-section {
    display: none;
}

.calculator-section.active {
    display: block;
}

.calculator-layout {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 1024px) {
    .calculator-layout {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Левая панель - элементы управления */
.calculator-left-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.calculator-block {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.block-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}

.block-title i {
    color: var(--color-primary);
    font-size: 1.2rem;
}

/* Правая панель - результат */
.calculator-right-panel {
    display: flex;
    justify-content: center;
}

.result-summary {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px;
}

.result-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem 0;
}

.total-cost {
    text-align: center;
    margin-bottom: 1.25rem;
    padding: 0.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 12px;
    color: white;
    width: 100%;
}

.cost-amount {
    font-size: 2.5rem;
    font-weight: 700;
}

.cost-currency {
    font-size: 1.5rem;
    opacity: 0.9;
}

.cost-period {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Карточки услуг */
.services-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.service-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

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

.service-card.selected {
    border: 2px solid var(--color-primary);
    box-shadow: 0 4px 16px rgba(65, 130, 150, 0.3);
}

.service-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 0;
}

.service-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #418296;
    font-size: 1.25rem;
}

.service-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--color-primary);
}

.service-card-content {
    padding: 1rem 1.5rem 1.5rem;
}

.service-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.service-price {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1rem;
}

/* Выбор часов */
.hours-selection {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
}

.hours-selection h3 {
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.hours-controls {
    margin-bottom: 1.5rem;
}

#1c-hours-slider,
#it-hours-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

#1c-hours-slider::-webkit-slider-thumb,
#it-hours-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-main);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#1c-hours-slider::-moz-range-thumb,
#it-hours-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-main);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.hours-display {
    text-align: center;
    margin-top: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.hours-presets {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hours-preset {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hours-preset:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.hours-preset.active {
    background: var(--gradient-main);
    border-color: var(--color-primary);
    color: white;
}

/* Включенные услуги в списке */
.included-service-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    position: relative;
}

.included-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9 0%, #06b6d4 100%);
    border-radius: 12px 12px 0 0;
}

.included-icon {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: white;
}

.included-checkbox {
    position: relative;
    cursor: not-allowed;
    opacity: 0.8;
}

.included-checkbox-input {
    cursor: not-allowed !important;
}

.included-label {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #0ea5e9;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.included-badge {
    background: #dcfce7;
    color: #166534;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

.included-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.price-note {
    font-size: 0.8rem;
    color: #059669;
    font-weight: 500;
}

/* Выделение выбранных услуг */
.service-card.selected {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.included-selected {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

/* Модификаторы */
/* Modifiers styles removed */

/* Результат расчета */
.calculation-result {
    position: sticky;
    top: 2rem;
}

.result-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    text-align: center;
}

.result-card h3 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.total-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.price-breakdown {
    text-align: left;
    margin-bottom: 2rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.price-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.price-breakdown-item:last-child {
    border-bottom: none;
    color: #1f2937;
}

.price-breakdown-label {
    color: #6b7280;
}

.price-breakdown-value {
    font-weight: 600;
}

/* Списки услуг */
.included-services-list,
.additional-services-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.service-item:hover {
    background: #e9ecef;
}

.service-item.included-item {
    /* Gradient using corporate accent #d791da */
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border-left: 3px solid rgba(215,145,218,0.28);
    box-shadow: 0 6px 16px rgba(145,73,138,0.08);
}

/* Hours input styling and +/- buttons */
.hours-presets-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.75rem;
}

.hours-input-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hours-input {
    width: 160px;
    height: 48px;
    font-size: 1.125rem;
    text-align: center;
    border: 2px solid var(--color-primary);
    border-radius: 10px;
    padding: 4px 8px;
    background: #fff;
    color: var(--color-text, #111827);
    box-shadow: 0 2px 6px rgba(2,6,23,0.04);
}

/* Скрытие стрелок спиннера для Chrome, Safari, Edge */
.hours-input::-webkit-outer-spin-button,
.hours-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Скрытие стрелок спиннера для Firefox */
.hours-input[type="number"] {
    -moz-appearance: textfield;
}

.hours-increment,
.hours-decrement {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.25rem;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
    box-shadow: 0 4px 10px rgba(16,24,40,0.08);
}

.hours-increment:hover,
.hours-decrement:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(16,24,40,0.12);
}

.service-item input[type="checkbox"] {
    margin-top: 0.125rem;
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}

.service-item.included-item .service-name,
.service-item.included-item .service-price,
.service-item.included-item .service-description {
    color: white;
    opacity: 0.95;
}

.service-item.included-item .service-price {
    font-weight: 700;
}

/* Hide the disabled included checkbox to keep compact corporate look */
.service-item.included-item .included-checkbox-input {
    display: none;
}

.included-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.service-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.service-name {
    font-weight: 500;
    color: #1f2937;
    flex: 1;
}

.service-price {
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}

.service-description {
    display: none; /* Убираем видимое описание */
}

.service-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    max-width: 280px;
    box-shadow: 0 8px 24px rgba(65, 130, 150, 0.4);
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.3;
}

.service-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--color-primary);
}

.service-name {
    position: relative;
}

.service-name:hover .service-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}

/* Детализация цены */
.price-breakdown {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.breakdown-header {
    background: #f8f9fa;
    padding: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.breakdown-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.breakdown-content {
    padding: 0.75rem;
}

/* Таблица выбранных услуг */
.selected-services-table {
    margin-bottom: 2rem;
}

.selected-services-table h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

/* Уменьшенные отступы в таблице выбранных услуг */
.selected-services-table .services-table th,
.selected-services-table .services-table td {
    padding: 0.5rem 0.5rem;
}

/* Уменьшить шрифт списка услуг в итоговой таблице */
.selected-services-table .services-table th,
.selected-services-table .services-table td {
    font-size: 0.875rem;
}

/* Центрирование кнопок отправки в правом блоке калькулятора на всех вкладках */
.calculator-right-panel .result-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.calculator-right-panel .result-summary .selected-services-table,
.calculator-right-panel .result-summary .price-breakdown,
.calculator-right-panel .result-summary .included-features {
    width: 100%;
}
.calculator-right-panel .result-summary .btn {
    margin: 1.25rem auto 0;
}

.services-table {
    width: 100%;
    border-collapse: collapse;
}

.services-table th {
    background: var(--color-primary);
    color: white;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
}

.services-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.services-table tbody tr:last-child td {
    border-bottom: none;
}

/* Часы */
.hours-controls {
    margin-bottom: 0.5rem;
}

.hours-controls input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.hours-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hours-controls input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hours-display {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0.25rem 0;
}

.hours-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hours-preset {
    padding: 0.375rem 0.75rem;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hours-preset:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.hours-preset.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Что входит в стоимость */
.included-features {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.included-features h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem 0;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.features-list li:last-child {
    margin-bottom: 0;
}

.features-list i {
    color: var(--color-primary);
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Модальное окно заявки */
.calculator-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.calculator-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.calculator-modal .modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    z-index: 10001;
}

.calculator-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.calculator-modal .modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1f2937;
}

.calculator-modal .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.calculator-modal .modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.calculator-modal .modal-body {
    padding: 2rem;
}

.calculator-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
    background: #f8f9fa;
}

/* Формы в модальном окне */
#calculator-order-form .form-row {
    margin-bottom: 1.5rem;
}

#calculator-order-form .form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

#calculator-order-form .form-row input,
#calculator-order-form .form-row textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

#calculator-order-form .form-row input:focus,
#calculator-order-form .form-row textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(65, 130, 150, 0.1);
}

#calculator-order-form .form-row textarea {
    resize: vertical;
    min-height: 100px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .calculator-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-type-tabs {
        flex-direction: column;
        align-items: center;
    }

    .service-tab-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .hours-presets {
        justify-content: center;
    }

    .calculation-result {
        position: static;
    }

    .result-card {
        padding: 1.5rem;
    }

    .total-price {
        font-size: 2rem;
    }

    .calculator-modal .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }

    .calculator-modal .modal-header,
    .calculator-modal .modal-body,
    .calculator-modal .modal-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

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

    .service-card-header {
        padding: 1rem 1rem 0;
    }

    .service-card-content {
        padding: 1rem;
    }

    .hours-selection {
        padding: 1.5rem;
    }

    .service-type-tabs {
        gap: 0.5rem;
    }

    .service-tab-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Анимации */
.calculator-section {
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeInScale 0.4s ease;
    animation-fill-mode: both;
}

/* ===== PARTNERS ===== */
.partners-grid {
    display: flex;
    justify-content: center;
}

.hidden-home-section {
    display: none !important;
}

.home-partner-card {
    width: 100%;
    max-width: 320px;
    min-height: 360px;
    padding: 2.5rem 2rem 1.75rem;
    border-radius: 1.75rem;
    text-align: center;
    box-shadow: 0 24px 48px rgba(39, 79, 89, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.partner-card-logo {
    width: 118px;
    height: 118px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.partner-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.partner-card-title {
    font-size: 1.85rem;
    line-height: 1.1;
    margin: 0 0 1.75rem;
}

.partner-card-cta {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    border-radius: 9999px;
    border: 1.5px solid rgba(65, 130, 150, 0.3);
    color: var(--color-primary);
    background: rgba(65, 130, 150, 0.06);
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.partner-card-cta:hover {
    background: var(--gradient-main);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(65, 130, 150, 0.22);
}

.partner-catalog-hero {
    background: linear-gradient(135deg, rgba(65, 130, 150, 0.08) 0%, rgba(116, 181, 196, 0.12) 100%);
    border: 1px solid rgba(65, 130, 150, 0.12);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.partner-catalog-brand {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

.partner-catalog-icon {
    width: 112px;
    height: 112px;
    border-radius: 1.5rem;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 40px rgba(39, 79, 89, 0.12);
}

.partner-catalog-icon img {
    width: 88px;
    height: 88px;
    object-fit: contain;
}

.partner-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 9999px;
    background: rgba(65, 130, 150, 0.12);
    color: var(--color-dark);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.partner-catalog-brand h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.partner-catalog-brand p {
    color: #4b5563;
    max-width: 48rem;
}

.partner-catalog-points {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.partner-catalog-point {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #374151;
}

.partner-catalog-point i {
    color: var(--color-primary);
    margin-top: 0.15rem;
}

.partner-products-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 920px;
    margin: 0 auto;
}

.partner-product-card {
    padding: 2rem;
}

.partner-product-thumb {
    height: 340px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef6f8 100%);
}

.partner-product-thumb img {
    object-fit: contain;
    padding: 1rem;
}

.partner-product-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.9rem;
    padding: 0.45rem 0.85rem;
    border-radius: 9999px;
    background: rgba(65, 130, 150, 0.1);
    color: var(--color-dark);
    font-size: 0.85rem;
    font-weight: 600;
}

.partner-product-features {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.25rem;
    color: #4b5563;
}

.partner-product-features span {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.partner-product-features i {
    color: var(--color-primary);
    width: 18px;
    text-align: center;
}

.partner-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .partner-catalog-brand {
        grid-template-columns: auto 1fr;
    }
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Состояния загрузки */
.calculator-wrapper.loading {
    opacity: 0.7;
    pointer-events: none;
}

.calculator-wrapper.loading::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ========== FROM: admin-calculator.css ========== */
/* ===== АДМИНКА КАЛЬКУЛЯТОРА УСЛУГ ===== */

.maximum-calculator-settings {
    margin: 20px 0;
}

.maximum-calculator-settings .nav-tab-wrapper {
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
}

.maximum-calculator-settings .nav-tab {
    margin-bottom: -1px;
}

.maximum-calculator-settings .tab-content {
    display: none;
    padding: 20px 0;
}

.maximum-calculator-settings .tab-content.active {
    display: block;
}

/* Заголовки секций */
.services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1e1e1;
}

.services-header h2 {
    margin: 0;
    font-size: 1.3em;
    color: #23282d;
}

/* Список услуг */
.services-list {
    margin-bottom: 20px;
}

.service-item {
    display: flex;
    align-items: center;
    padding: 5px 10px 5px 10px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.service-item:hover {
    border-color: #007cba;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.service-drag-handle {
    color: #b4b9be;
    font-size: 20px;
    cursor: move;
    padding: 0 15px 0 5px;
    user-select: none;
}

.service-content {
    flex: 1;
}

.service-title {
    font-weight: 600;
    color: #23282d;
    margin-bottom: 5px;
}

.service-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 13px;
    color: #666;
}

.service-rate,
.service-price {
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 500;
}

.service-status.active {
    color: #46b450;
}

.service-status.inactive {
    color: #dc3232;
}

.service-individual {
    background: #fef3c7;
    color: #92400e;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

.service-description-preview {
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin-top: 4px;
    padding: 4px 0;
    border-top: 1px solid #eee;
    line-height: 1.3;
}

.service-applies {
    font-style: italic;
}

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

/* Модальные окна */
.maximum-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    position: relative;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 100001;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e1e1e1;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #23282d;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f1f1f1;
    color: #23282d;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid #e1e1e1;
    background: #f8f9fa;
}

/* Формы */
.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #23282d;
}

.form-row input[type="text"],
.form-row input[type="number"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-row input[type="text"]:focus,
.form-row input[type="number"]:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0,124,186,0.1);
}

.form-row textarea {
    resize: vertical;
    min-height: 80px;
}

/* Иконки в селекторе иконок */
.icon-select-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.icon-select-list .icon-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
}

.icon-select-list .icon-option i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.icon-select-list .icon-option.active {
    border-color: #007cba;
    background: #eaf6fb;
}

.icon-select-list .icon-option:hover {
    border-color: #c7e6f8;
}

/* Радио-кнопки */
.form-row input[type="radio"] {
    margin-right: 5px;
}

/* Чекбоксы */
.form-row input[type="checkbox"] {
    margin-right: 8px;
}

/* Ценообразование */
.pricing-settings {
    max-width: 600px;
}

.pricing-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.pricing-row label {
    min-width: 200px;
    margin-bottom: 0;
}

.pricing-row input {
    max-width: 150px;
}

.pricing-settings h3 {
    margin: 30px 0 15px 0;
    color: #23282d;
    font-size: 16px;
}

/* Уровни скидок */
.discount-tier {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 4px;
}

.discount-tier input {
    width: 100px;
    text-align: center;
}

.discount-tier .remove-tier {
    margin-left: auto;
}

/* Сортировка */
.sortable-list .service-item {
    cursor: move;
}

.sortable-list.sortable-ghost .service-item {
    opacity: 0.5;
}

.sortable-list.sortable-chosen .service-item {
    opacity: 0.8;
}

/* Submit секция */
.submit-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e1e1e1;
}

/* Адаптивность */
@media (max-width: 782px) {
    .services-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .service-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .service-drag-handle {
        padding: 5px 0;
    }

    .service-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .pricing-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .pricing-row label {
        min-width: auto;
    }

    .discount-tier {
        flex-direction: column;
        gap: 8px;
    }

    .discount-tier input {
        width: 100%;
    }
}

/* Уведомления */
.notice-success {
    border-left-color: #46b450;
}

.notice-success .notice-dismiss:before {
    color: #46b450;
}

/* Кнопки */
.button-primary.add-service {
    background: #007cba;
    border-color: #007cba;
    color: #fff;
}

.button-primary.add-service:hover {
    background: #005a87;
    border-color: #005a87;
}

/* Статусы */
.service-status.active:before {
    content: "● ";
    color: #46b450;
}

.service-status.inactive:before {
    content: "● ";
    color: #dc3232;
}

/* Загрузка */
.maximum-calculator-settings.loading {
    opacity: 0.7;
    pointer-events: none;
}

.maximum-calculator-settings.loading:after {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 100002;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
