/* ------------------------------------------------------------------------------
    Цех KRUZHKI.KZ — стили. Основа: style.css v3 старого сайта, аккуратно доведённая.
------------------------------------------------------------------------------ */

:root {
  --color-primary: #B91DBC;
  --color-secondary: #3C65E8;
  --color-accent: #FFD100;
  --color-accent-dark: #F2C400;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-background: #FFFFFF;
  --color-light-gray: #F2F2F2;
  --color-border: #E6E6E6;
  --gradient-primary: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  --border-radius: 8px;
  --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.15);
  --transition: all 0.25s ease;
  --font: "Inter", "HPSimplified", Arial, Helvetica, sans-serif;
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-text); text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
button { font: inherit; }
h1, h2, h3, h4, h5, h6 { margin-bottom: 20px; font-weight: 500; line-height: 1.25; }
h1 { font-size: 44px; }
h2 { font-size: 32px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
p { margin-bottom: 10px; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--color-accent); padding: 8px 14px; border-radius: 6px; z-index: 2000; }
.skip-link:focus { left: 8px; }

/* Заголовки секций: капс + короткая градиентная линия */
.section-title {
  position: relative;
  text-align: center;
  margin-bottom: 36px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-text);
}
.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 16px auto 0;
  border-radius: 2px;
}
.section-subtitle { text-align: center; color: var(--color-text-light); max-width: 760px; margin: -16px auto 32px; }

/* ------------------------------------------------------------------------------
    Кнопки
------------------------------------------------------------------------------ */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--color-accent);
  color: var(--color-text);
  font-weight: 700;
  font-size: 14px;
  padding: 13px 26px;
  border: 0;
  border-radius: var(--border-radius);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}
.cta-button:hover { background-color: var(--color-accent-dark); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14); }
.cta-button:active { transform: translateY(1px); box-shadow: none; }
.cta-button img { width: 18px; height: 18px; }

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background-color: var(--color-light-gray);
  color: var(--color-text);
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.back-button:hover { background-color: #E6E6E6; }

/* ------------------------------------------------------------------------------
    Шапка
------------------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--gradient-primary);
  padding: 6px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.header-content { display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
.logo { display: block; width: 190px; }
.logo img { width: 100%; height: auto; }
.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 26px; }
.nav-item { display: flex; align-items: center; }
.nav-item--social { gap: 12px; }
.social-icon { display: block; width: 36px; height: 36px; opacity: 0.95; }
.social-icon:hover { opacity: 1; transform: translateY(-1px); }
.social-icon img { width: 100%; height: 100%; object-fit: contain; }
.contact-link { color: #FFFFFF; font-weight: 500; font-size: 15px; }
.contact-link:hover { text-decoration: underline; }
.nav-link { color: #FFFFFF; font-weight: 500; font-size: 15px; opacity: 0.92; }
.nav-link:hover, .nav-link[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav-mobile-only { display: none; }

.language-switcher { position: relative; }
.current-language { display: flex; align-items: center; gap: 6px; color: #FFFFFF; font-weight: 500; font-size: 15px; background: rgba(255,255,255,0.14); padding: 6px 12px; border-radius: 6px; cursor: pointer; border: 0; }
.current-language:hover { background: rgba(255,255,255,0.22); }
.language-switcher.active .lang-arrow { transform: rotate(180deg); }
.language-dropdown {
  position: absolute; top: 100%; right: 0; min-width: 130px; margin-top: 6px;
  background: #FFFFFF; border-radius: var(--border-radius); box-shadow: var(--box-shadow); overflow: hidden; display: none; z-index: 100;
}
.language-switcher.active .language-dropdown { display: block; }
.lang-item { display: block; padding: 9px 15px; font-size: 14px; color: var(--color-text); }
.lang-item:hover { background: var(--color-light-gray); }
.lang-item.active { font-weight: 600; background: var(--color-light-gray); }

.menu-toggle { display: none; background: transparent; border: 0; cursor: pointer; width: 34px; height: 30px; position: relative; z-index: 1001; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 100%; height: 3px; background: #FFFFFF; position: absolute; left: 0; border-radius: 2px; transition: var(--transition);
}
.menu-toggle span { top: 50%; transform: translateY(-50%); }
.menu-toggle span::before, .menu-toggle span::after { content: ''; }
.menu-toggle span::before { top: -10px; }
.menu-toggle span::after { bottom: -10px; }
.menu-toggle.active span { background: transparent; }
.menu-toggle.active span::before { transform: rotate(45deg); top: 0; }
.menu-toggle.active span::after { transform: rotate(-45deg); bottom: 0; }

/* ------------------------------------------------------------------------------
    Герой
------------------------------------------------------------------------------ */
.hero { background: var(--gradient-primary); padding: 44px 0 36px; overflow: hidden; }
.hero-content { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-text { flex: 1; color: #FFFFFF; max-width: 640px; }
.hero-title { font-size: 44px; font-weight: 700; text-transform: uppercase; color: #FFFFFF; margin-bottom: 14px; line-height: 1.15; }
.hero-lead { font-size: 17px; color: rgba(255,255,255,0.92); margin-bottom: 26px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-mascot { display: flex; align-items: flex-end; max-width: 420px; gap: 16px; }
.mascot-image { width: 130px; height: auto; object-fit: contain; align-self: flex-end; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.25)); }
.speech-bubble { position: relative; background: #FFFFFF; border-radius: var(--border-radius); padding: 12px 14px; flex: 1; align-self: center; font-size: 14px; line-height: 1.5; box-shadow: var(--box-shadow); }
.speech-bubble::before {
  content: ''; position: absolute; left: -12px; top: 22px; width: 0; height: 0;
  border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-right: 12px solid #FFFFFF;
}
.speech-bubble p { color: var(--color-text); margin: 0; }
.speech-bubble.on-white { background: var(--color-light-gray); box-shadow: none; }
.speech-bubble.on-white::before { border-right-color: var(--color-light-gray); }

/* ------------------------------------------------------------------------------
    Промо
------------------------------------------------------------------------------ */
.promo-banner { background: var(--color-accent); color: var(--color-text); padding: 10px 0; text-align: center; font-weight: 500; font-size: 15px; }
.promo-banner p { margin: 0; }

/* ------------------------------------------------------------------------------
    Секции
------------------------------------------------------------------------------ */
.section { padding: 48px 0; }
.section--gray { background: var(--color-light-gray); }
.section--tight { padding: 32px 0; }
.services-categories { padding: 48px 0 8px; }

.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.category-card {
  background: var(--color-light-gray); border-radius: var(--border-radius); padding: 28px 24px; text-align: center;
  border: 1px solid transparent; transition: var(--transition);
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--box-shadow); background: #FFFFFF; border-color: var(--color-border); }
.category-icon { margin-bottom: 14px; }
.category-icon img { width: 56px; height: 56px; margin: 0 auto; }
.category-card h3 { font-size: 20px; margin-bottom: 6px; text-transform: uppercase; font-weight: 500; }
.category-card p { color: var(--color-text-light); margin: 0; font-size: 14px; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.product-card { position: relative; display: block; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--box-shadow); height: 250px; transition: var(--transition); background: var(--color-light-gray); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--box-shadow-hover); }
.product-image { width: 100%; height: 100%; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.1) 60%, transparent);
}
.product-overlay h3 { color: #FFFFFF; margin: 0; font-size: 18px; font-weight: 500; text-transform: uppercase; line-height: 1.25; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.product-overlay .product-price { color: rgba(255,255,255,0.9); font-size: 14px; margin-top: 4px; }

/* ------------------------------------------------------------------------------
    О нас
------------------------------------------------------------------------------ */
.about-content { display: flex; gap: 40px; margin-bottom: 40px; align-items: center; }
.about-text { flex: 1.2; }
.about-text h3 { color: var(--color-primary); margin-bottom: 14px; }
.about-text p { color: var(--color-text); }
.video-container { flex: 1; }
.video-wrapper { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--box-shadow); background: #000; }
.video-wrapper iframe, .video-wrapper .video-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { background: #000; cursor: pointer; padding: 0; }
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: var(--transition); }
.video-play:hover img { opacity: 1; }
.video-play::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.65) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/28px no-repeat;
  border-radius: 12px;
}
.video-play:hover::after { background-color: var(--color-primary); }

.features-cta { display: flex; gap: 40px; align-items: stretch; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; flex: 2; }
.feature { text-align: center; }
.feature-icon { margin-bottom: 12px; }
.feature-icon img { width: 48px; height: 48px; margin: 0 auto; }
.feature h4 { margin-bottom: 6px; color: var(--color-primary); font-size: 18px; }
.feature p { font-size: 14px; color: var(--color-text-light); margin: 0; }
.cta-box { background: var(--color-light-gray); border-radius: var(--border-radius); padding: 28px; text-align: center; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.cta-box h3 { color: var(--color-primary); margin-bottom: 10px; }
.cta-box p { margin-bottom: 18px; }

/* ------------------------------------------------------------------------------
    Карта
------------------------------------------------------------------------------ */
.map-container { border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--box-shadow); }
.map-container iframe { display: block; width: 100%; border: 0; }
.map-address { text-align: center; color: var(--color-text-light); margin: -12px 0 24px; }
.map-address a { color: var(--color-secondary); font-weight: 500; }
.map-address a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------------------
    Баннер историй
------------------------------------------------------------------------------ */
.kru-stories-banner-section { padding: 8px 0 48px; }
.kru-stories-banner { position: relative; display: block; height: 250px; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--box-shadow); transition: var(--transition); }
.kru-stories-banner:hover { transform: translateY(-3px); box-shadow: var(--box-shadow-hover); }
.banner-image, .banner-image img { width: 100%; height: 100%; }
.banner-image img { object-fit: cover; transition: transform 0.4s ease; }
.kru-stories-banner:hover .banner-image img { transform: scale(1.04); }
.banner-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 80%);
}
.banner-content { color: #FFFFFF; max-width: 460px; }
.banner-content h3 { font-size: 24px; margin-bottom: 8px; color: #FFFFFF; }
.banner-content p { font-size: 14px; margin: 0; opacity: 0.9; line-height: 1.45; }

/* ------------------------------------------------------------------------------
    Футер
------------------------------------------------------------------------------ */
.site-footer { background: var(--gradient-primary); color: #FFFFFF; padding: 36px 0 24px; }
.footer-content { display: flex; justify-content: space-between; gap: 40px; }
.footer-info, .footer-address { flex: 1; }
.footer-info h4, .footer-address h4 { color: #FFFFFF; margin-bottom: 14px; font-size: 17px; }
.footer-info p, .footer-address p { color: rgba(255, 255, 255, 0.92); line-height: 1.8; }
.footer-info a, .footer-address a { color: #FFFFFF; }
.footer-info a:hover, .footer-address a:hover { text-decoration: underline; color: var(--color-accent); }
.footer-social { display: flex; gap: 10px; margin: 6px 0 16px; }
.footer-social a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 6px; background: rgba(255,255,255,0.14); font-size: 14px; font-weight: 500; }
.footer-social a:hover { background: rgba(255,255,255,0.24); text-decoration: none; color: #FFFFFF; }
.footer-social img { width: 18px; height: 18px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; }
.footer-nav a { color: rgba(255,255,255,0.92); font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.25); font-size: 13px; color: rgba(255,255,255,0.8); }
.footer-bottom a { color: #FFFFFF; margin-left: 12px; }
.footer-bottom a[aria-current] { text-decoration: underline; text-underline-offset: 3px; }

.kru-chat-banner-compact {
  background: var(--color-accent); border-radius: var(--border-radius); padding: 12px 16px; display: flex; align-items: center; gap: 14px;
  margin: 4px 0 16px; max-width: 420px; color: var(--color-text); transition: var(--transition);
}
.kru-chat-banner-compact:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.15); }
.kru-icon-small { width: 42px; height: 42px; flex-shrink: 0; }
.kru-icon-small img { width: 100%; height: 100%; object-fit: contain; }
.kru-text-compact { flex: 1; color: var(--color-text); }
.kru-text-compact strong { display: block; font-size: 14px; }
.kru-text-compact span { font-size: 12px; color: var(--color-text-light); }
.chat-btn-compact { background: #FFFFFF; color: var(--color-text) !important; padding: 7px 14px; border-radius: 6px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.chat-btn-compact:hover { background: var(--color-text); color: #FFFFFF !important; text-decoration: none !important; }

/* ------------------------------------------------------------------------------
    Хлебные крошки
------------------------------------------------------------------------------ */
.breadcrumbs { padding: 14px 0 0; font-size: 13px; color: var(--color-text-light); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.breadcrumbs li + li::before { content: '›'; margin-right: 6px; color: #BBBBBB; }
.breadcrumbs a { color: var(--color-text-light); }
.breadcrumbs a:hover { color: var(--color-primary); }

/* ------------------------------------------------------------------------------
    Страница услуги
------------------------------------------------------------------------------ */
.product-detail { padding: 24px 0 0; }
.product-detail .section-title { margin-top: 8px; }
.product-detail-content { display: flex; gap: 40px; margin-bottom: 40px; align-items: flex-start; }
.product-gallery { flex: 1; min-width: 0; }
.product-info { flex: 1; min-width: 0; }

/* Галерея: главный кадр со свайпом + миниатюры */
.gallery-main { position: relative; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--box-shadow); background: var(--color-light-gray); }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 1; cursor: zoom-in; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,0.9); color: var(--color-text); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: var(--box-shadow); transition: var(--transition);
}
.gallery-arrow:hover { background: #FFFFFF; }
.gallery-arrow--prev { left: 12px; }
.gallery-arrow--next { right: 12px; }
.gallery-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.gallery-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.55); transition: var(--transition); }
.gallery-dots span.active { background: #FFFFFF; width: 20px; border-radius: 4px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.gallery-thumb { border-radius: 6px; overflow: hidden; border: 2px solid transparent; cursor: pointer; padding: 0; background: var(--color-light-gray); aspect-ratio: 1; transition: var(--transition); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--color-primary); }
.gallery-thumb:hover { opacity: 0.85; }
.gallery-hint { font-size: 13px; color: var(--color-text-light); margin-top: 10px; }

.product-info h3 { color: var(--color-primary); margin-bottom: 14px; }
.product-price-from { display: inline-block; font-size: 15px; color: var(--color-text-light); margin-bottom: 18px; }
.product-price-from strong { color: var(--color-text); font-weight: 600; }
.product-description { margin-bottom: 24px; }
.product-features, .product-types { margin-bottom: 24px; }
.product-features h4, .product-types h4 { color: var(--color-secondary); margin-bottom: 10px; font-size: 17px; }
.product-features ul, .product-types ul { padding-left: 4px; }
.product-features li, .product-types li { margin-bottom: 6px; position: relative; padding-left: 16px; }
.product-features li::before, .product-types li::before { content: '•'; color: var(--color-primary); position: absolute; left: 0; }
.product-cta { margin-top: 8px; }
.product-cta-hint { font-size: 13px; color: var(--color-text-light); margin-top: 10px; }

/* Таблица цен */
.price-table { margin: 8px 0 0; }
.price-table-wrap { overflow-x: auto; border-radius: var(--border-radius); box-shadow: var(--box-shadow); background: #FFFFFF; }
.price-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table th { background: var(--gradient-primary); color: #FFFFFF; padding: 14px 16px; font-weight: 500; text-align: center; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.price-table th:first-child, .price-table td:first-child { text-align: left; padding-left: 22px; }
.price-table td { padding: 13px 16px; text-align: center; border-bottom: 1px solid var(--color-border); font-size: 16px; white-space: nowrap; }
.price-table tbody th { background: none; color: var(--color-text); font-weight: 600; font-size: 15px; text-transform: none; letter-spacing: 0; padding: 13px 16px 13px 22px; text-align: left; white-space: nowrap; }
.price-table tbody tr:nth-child(even) { background-color: #FAFAFA; }
.price-table tbody tr:hover { background-color: rgba(185, 29, 188, 0.06); }
.price-table tbody tr:last-child td, .price-table tbody tr:last-child th { border-bottom: 0; }
.price-notes { margin-top: 20px; padding: 16px 20px; background: var(--color-light-gray); border-radius: var(--border-radius); font-size: 14px; }
.price-notes ul { padding-left: 0; }
.price-notes li { position: relative; padding-left: 16px; margin-bottom: 4px; }
.price-notes li::before { content: '•'; color: var(--color-primary); position: absolute; left: 0; }
.disclaimer { font-size: 12px; color: var(--color-text-light); margin: 12px 0 0; font-style: italic; line-height: 1.5; }

.care-tips { margin: 32px 0 0; padding: 20px 24px; background: var(--color-light-gray); border-radius: var(--border-radius); }
.mascot-message { display: flex; align-items: center; gap: 16px; }
.mascot-small { width: 80px; height: auto; flex-shrink: 0; }
.care-tips .speech-bubble { background: #FFFFFF; box-shadow: none; font-size: 15px; }
.care-tips .speech-bubble strong { color: var(--color-primary); }

.related-products { margin: 40px 0 0; }
.related-products .products-grid { grid-template-columns: repeat(3, 1fr); }
.product-detail .back-button { margin: 28px 0 40px; }

/* ------------------------------------------------------------------------------
    Лайтбокс
------------------------------------------------------------------------------ */
.modal { position: fixed; inset: 0; background: rgba(255, 255, 255, 0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); z-index: 1100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.active { display: flex; }
.modal-content { position: relative; max-width: 92vw; max-height: 90vh; }
.modal-content img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: var(--border-radius); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); }
.modal-close, .modal-prev, .modal-next {
  position: absolute; color: #FFFFFF; font-size: 28px; cursor: pointer; background: rgba(51, 51, 51, 0.85); width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; border: 0; line-height: 1; transition: var(--transition);
}
.modal-close:hover, .modal-prev:hover, .modal-next:hover { background: var(--color-primary); }
.modal-close { top: -52px; right: 0; }
.modal-prev, .modal-next { top: 50%; transform: translateY(-50%); }
.modal-prev { left: -22px; }
.modal-next { right: -22px; }

/* ------------------------------------------------------------------------------
    Истории Кру
------------------------------------------------------------------------------ */
.stories-video { max-width: 900px; margin: 0 auto 8px; }
.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.story-card { display: block; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--box-shadow); background: #FFFFFF; transition: var(--transition); }
.story-card:hover { transform: translateY(-4px); box-shadow: var(--box-shadow-hover); }
.story-card-image { position: relative; aspect-ratio: 7/5; background: var(--color-light-gray); overflow: hidden; }
.story-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.story-card:hover .story-card-image img { transform: scale(1.04); }
.story-episode { position: absolute; left: 12px; top: 12px; background: var(--color-accent); color: var(--color-text); font-weight: 700; font-size: 12px; padding: 4px 9px; border-radius: 6px; letter-spacing: 0.04em; }
.story-card-body { padding: 16px 18px 18px; }
.story-title { font-size: 18px; font-weight: 600; margin-bottom: 6px; line-height: 1.3; }
.story-description { font-size: 14px; color: var(--color-text-light); margin-bottom: 8px; }
.story-meta { font-size: 12px; color: var(--color-text-light); }
.story-card.coming-soon { opacity: 0.55; box-shadow: none; border: 1px dashed var(--color-border); }
.story-card.coming-soon .story-card-image { display: flex; align-items: center; justify-content: center; color: var(--color-text-light); font-weight: 500; }

.story-page { max-width: 820px; margin: 0 auto; }
.story-page .section-title { font-size: 30px; }
.story-lead { text-align: center; color: var(--color-text-light); margin: -16px 0 6px; }
.story-reading { text-align: center; color: var(--color-text-light); font-size: 13px; margin-bottom: 24px; }
.story-banner { border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--box-shadow); margin-bottom: 28px; }
.story-banner img { width: 100%; }
.story-content { font-size: 17px; line-height: 1.75; }
.story-content h2 { font-size: 24px; color: var(--color-primary); font-weight: 500; margin: 34px 0 12px; }
.story-content p { margin-bottom: 14px; }
.story-content blockquote { margin: 22px 0; padding: 16px 22px; border-left: 4px solid var(--color-primary); background: var(--color-light-gray); border-radius: 0 var(--border-radius) var(--border-radius) 0; }
.story-content em { color: var(--color-text-light); }
.story-navigation { display: flex; justify-content: space-between; gap: 14px; margin-top: 36px; }
.story-nav-button { display: flex; flex-direction: column; flex: 1; padding: 14px 18px; border-radius: var(--border-radius); background: var(--color-light-gray); color: var(--color-text); transition: var(--transition); }
.story-nav-button:hover { background: #E6E6E6; }
.story-nav-button.next { text-align: right; }
.story-nav-button.disabled { opacity: 0.45; pointer-events: none; }
.story-nav-button small { font-size: 12px; color: var(--color-text-light); text-transform: uppercase; letter-spacing: 0.04em; }
.story-nav-button strong { font-weight: 500; font-size: 15px; }
.action-buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 28px 0 40px; }

.stories-banner-cta { display: flex; align-items: center; gap: 20px; padding: 22px 26px; background: var(--color-light-gray); border-radius: var(--border-radius); margin-top: 36px; }
.stories-banner-cta img { width: 72px; height: 72px; flex-shrink: 0; }
.stories-banner-cta div { flex: 1; }
.stories-banner-cta h3 { color: var(--color-primary); margin-bottom: 4px; font-size: 20px; }
.stories-banner-cta p { margin: 0; color: var(--color-text-light); font-size: 14px; }

/* ------------------------------------------------------------------------------
    Чат с Кру
------------------------------------------------------------------------------ */
.chat-wrapper { max-width: 760px; margin: 0 auto; }
.chat-container { background: #FFFFFF; border: 1px solid var(--color-border); border-radius: var(--border-radius); box-shadow: var(--box-shadow); display: flex; flex-direction: column; overflow: hidden; }
.chat-header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--color-light-gray); border-bottom: 1px solid var(--color-border); }
.chat-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #FFFFFF; flex-shrink: 0; }
.chat-avatar img { width: 100%; height: 100%; object-fit: contain; }
.chat-info { flex: 1; }
.chat-info h2 { font-size: 17px; margin: 0; font-weight: 600; }
.online-status { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--color-text-light); }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #2ECC71; }
.chat-header .chat-btn-compact { background: var(--color-light-gray); border: 1px solid var(--color-border); }
.chat-messages { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; min-height: 320px; max-height: 60vh; overflow-y: auto; }
.message { display: flex; gap: 10px; max-width: 85%; align-items: flex-end; }
.message.user { align-self: flex-end; flex-direction: row-reverse; }
.message-avatar { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; background: var(--color-light-gray); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--color-text-light); }
.message-avatar img { width: 100%; height: 100%; object-fit: contain; }
.message-bubble { padding: 10px 14px; border-radius: 14px; background: var(--color-light-gray); font-size: 15px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.message.kru .message-bubble { border-bottom-left-radius: 4px; }
.message.user .message-bubble { background: var(--color-secondary); color: #FFFFFF; border-bottom-right-radius: 4px; }
.message.operator .message-bubble { background: #FFF4BF; border-bottom-left-radius: 4px; }
.message.operator .message-avatar { background: var(--color-accent); color: var(--color-text); }
.message.system { align-self: center; max-width: 100%; }
.message.system .message-bubble { background: transparent; color: var(--color-text-light); font-size: 13px; text-align: center; }
.message-bubble a { color: inherit; text-decoration: underline; }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--color-text-light); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.quick-replies { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.quick-reply { border: 1px solid var(--color-border); background: #FFFFFF; color: var(--color-text); border-radius: 20px; padding: 7px 14px; font-size: 13px; cursor: pointer; transition: var(--transition); }
.quick-reply:hover { border-color: var(--color-primary); color: var(--color-primary); }
.chat-input { display: flex; gap: 10px; padding: 12px 16px 14px; border-top: 1px solid var(--color-border); }
.chat-input textarea { flex: 1; resize: none; border: 1px solid var(--color-border); border-radius: var(--border-radius); padding: 10px 14px; font: inherit; font-size: 15px; line-height: 1.4; max-height: 140px; }
.chat-input textarea:focus { outline: none; border-color: var(--color-secondary); }
.send-button { padding: 10px 20px; }

/* ------------------------------------------------------------------------------
    Ошибка
------------------------------------------------------------------------------ */
.error-page { text-align: center; padding: 40px 0 60px; }
.error-page img { margin: 0 auto 16px; width: 140px; }
.error-page .section-title { margin-bottom: 12px; }
.error-page .section-title::after { display: none; }
.error-page p { color: var(--color-text-light); margin-bottom: 24px; }

/* ------------------------------------------------------------------------------
    Адаптив
------------------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .hero-title { font-size: 38px; }
  .about-content { flex-direction: column; }
  .features-cta { flex-direction: column; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .footer-content { flex-direction: column; gap: 24px; }
  .nav-list { gap: 18px; }
  .nav-item--email { display: none; }
}

@media (max-width: 768px) {
  h2 { font-size: 26px; }
  .section { padding: 36px 0; }
  .services-categories { padding-top: 36px; }
  .section-title { margin-bottom: 28px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: var(--gradient-primary);
    display: flex; flex-direction: column; justify-content: center; transition: right 0.3s ease; z-index: 1000; padding: 20px;
  }
  .main-nav.active { right: 0; }
  .nav-list { flex-direction: column; text-align: center; gap: 0; }
  .nav-item { margin: 10px 0; justify-content: center; }
  .nav-item--social { flex-direction: row; gap: 20px; margin-bottom: 18px; }
  .nav-mobile-only { display: flex; }
  .nav-link, .contact-link { font-size: 20px; }
  .language-switcher { margin-top: 16px; }
  .language-dropdown { left: 50%; right: auto; transform: translateX(-50%); }
  .hero { padding: 32px 0 28px; }
  .hero-content { flex-direction: column; gap: 24px; }
  .hero-text { text-align: center; max-width: 100%; }
  .hero-title { font-size: 32px; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-mascot { max-width: 100%; width: 100%; }
  .mascot-image { width: 110px; }
  .categories-grid { grid-template-columns: 1fr; gap: 14px; }
  .category-card { padding: 20px; display: flex; align-items: center; gap: 16px; text-align: left; }
  .category-icon { margin: 0; }
  .category-icon img { width: 44px; height: 44px; }
  .category-card h3 { font-size: 17px; margin-bottom: 2px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-card { height: 200px; }
  .product-overlay { padding: 12px 14px; }
  .product-overlay h3 { font-size: 14px; }
  .product-overlay .product-price { font-size: 12px; }
  .features { grid-template-columns: 1fr; gap: 20px; }
  .product-detail-content { flex-direction: column; gap: 28px; }
  .gallery-thumbs { display: none; }
  .gallery-arrow { display: none; }
  .related-products .products-grid { grid-template-columns: repeat(2, 1fr); }
  .stories-grid { grid-template-columns: 1fr; }
  .story-navigation { flex-direction: column; }
  .story-nav-button.next { text-align: left; }
  .stories-banner-cta { flex-direction: column; text-align: center; }
  .kru-stories-banner { height: auto; aspect-ratio: 2/1; }
  .banner-overlay { flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 22px; background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.35)); }
  .banner-content { max-width: 100%; }
  .banner-content h3 { font-size: 21px; }
  .kru-chat-banner-compact { max-width: 100%; }
  .chat-messages { max-height: none; min-height: 260px; }
  .message { max-width: 92%; }
  .modal-prev { left: 4px; } .modal-next { right: 4px; }
  .modal-close { top: -50px; right: 4px; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .hero-title { font-size: 28px; }
  .section-title { font-size: 24px; }
  .logo { width: 150px; }
  .products-grid { gap: 12px; }
  .product-card { height: 170px; }
  .price-table th, .price-table td, .price-table tbody th { padding: 10px 8px; font-size: 14px; }
  .price-table th:first-child, .price-table td:first-child, .price-table tbody th { padding-left: 12px; }
  .care-tips { padding: 16px; }
  .mascot-message { flex-direction: column; text-align: center; }
  .care-tips .speech-bubble::before { display: none; }
  .chat-input .send-button span { display: none; }
}
