/* ============================================================
   BITROCKET — общие стили
   ============================================================ */

:root {
  --black: #000000;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }
nav { display: flex; gap: 1.6rem; align-items: center; }
nav a {
  color: var(--gray-400);
  font-size: 0.82rem;
  font-weight: 500;
  transition: 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
nav a:hover, nav a.active { color: var(--white); }
.nav-cta { display: none; }
.header-right { display: flex; align-items: center; gap: 1.5rem; }
.lang-switch {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.lang-switch:hover { color: var(--gray-300); }
.btn-header {
  background: transparent;
  color: var(--white);
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: 0.2s;
  border: 1px solid var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.btn-header:hover { background: var(--white); color: var(--black); }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  width: 24px; height: 2px;
  background: var(--white);
  display: block;
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/hero.jpg') center/cover no-repeat;
  padding: 8rem 0 4rem;
}
.hero-content { max-width: 900px; }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
  color: var(--white);
  text-transform: uppercase;
}
.hero-buttons { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.btn-hero {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 18px 36px;
  border: 2px solid var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: 0.3s;
  cursor: pointer;
}
.btn-hero:hover { background: var(--white); color: var(--black); }
.btn-hero.filled { background: var(--white); color: var(--black); }
.btn-hero.filled:hover { background: var(--black); color: var(--white); }
.btn-hero.text { border: none; padding: 18px 0; border-bottom: 2px solid var(--white); }
.btn-hero.text:hover { background: transparent; color: var(--gray-300); }

/* ===== SECTION HEADER ===== */
section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.section-header p { color: var(--gray-500); font-size: 1.1rem; }

/* ===== ABOUT — компактная горизонталь ===== */
#about { padding: 4rem 0; background: var(--gray-50); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}
.about-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.about-text {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--gray-700);
  margin: 0;
}
.stats-list {
  display: flex;
  border-top: 2px solid var(--gray-200);
  padding-top: 2rem;
}
.stat-item {
  flex: 1;
  padding: 0 2rem;
  border-left: 2px solid var(--gray-200);
}
.stat-item:first-child { padding-left: 0; border-left: none; }
.stat-value {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.stat-label {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.4;
}

/* ===== CONFIGURATOR ===== */
#configurator { padding: 5rem 0; background: var(--gray-50); }
.config-layout {
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 3rem;
  align-items: start;
}
.level-1-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.type-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s;
}
.type-card:hover { border-color: var(--black); }
.type-card.active { border-color: var(--black); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.type-card img {
  width: 100%; height: 140px;
  object-fit: cover;
  filter: grayscale(100%);
  transition: 0.3s;
}
.type-card.active img { filter: grayscale(0%); }
.type-card-body { padding: 1.2rem; text-align: center; }
.type-card-title {
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.sub-level { display: none; animation: fadeIn 0.3s ease; }
.sub-level.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  margin-bottom: 1rem;
}
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.option-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  padding: 1.2rem;
  cursor: pointer;
  transition: 0.2s;
  text-align: center;
}
.option-card:hover { border-color: var(--black); }
.option-card.selected { border-color: var(--black); background: var(--gray-100); }
.opt-val {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}
.opt-lbl { font-size: 0.8rem; color: var(--gray-500); line-height: 1.4; }

.checkbox-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--white);
  border: 2px solid var(--gray-200);
  padding: 1rem;
  cursor: pointer;
  transition: 0.2s;
}
.checkbox-item:hover { border-color: var(--black); }
.checkbox-item.selected { border-color: var(--black); background: var(--gray-100); }
.cb-box {
  width: 22px; height: 22px;
  border: 2px solid var(--gray-400);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: 0.2s;
  font-size: 0.85rem;
}
.checkbox-item.selected .cb-box {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}
.cb-info { flex: 1; min-width: 0; }
.cb-title { font-weight: 700; font-size: 0.95rem; }
.cb-desc { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.25rem; }
.cb-price { font-weight: 800; font-size: 0.95rem; white-space: nowrap; }

/* ===== OPTIONS — иконка «?» и раскрывающееся описание ===== */
.cb-title-row { display: flex; align-items: center; gap: 0.5rem; }
.cb-help {
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: 0.2s;
  border-radius: 50%;
}
.cb-help:hover { color: var(--black); background: var(--gray-100); }
.checkbox-item.details-open .cb-help { color: var(--black); }
.cb-details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease, padding-top 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
  border-top: 1px solid transparent;
  padding-top: 0;
}
.cb-details-inner {
  overflow: hidden;
  min-height: 0;
  font-size: 0.82rem;
  color: var(--gray-600);
  line-height: 1.6;
}
.checkbox-item.details-open .cb-details {
  grid-template-rows: 1fr;
  border-top-color: var(--gray-200);
  padding-top: 0.75rem;
}

/* ===== SPEC PANEL ===== */
.spec-panel {
  background: var(--white);
  border: 2px solid var(--gray-200);
  padding: 2rem;
  position: sticky;
  top: 100px;
}
.spec-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-600);
  margin-bottom: 1.2rem;
}
.spec-section { margin-bottom: 2rem; }
.spec-section:last-of-type { margin-bottom: 0; }
.spec-section-title {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-600);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gray-200);
}
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-200);
}
.spec-row:last-of-type { border-bottom: none; }
.spec-name { color: var(--gray-600); flex: 1; }
.spec-val { font-weight: 700; text-align: right; }
.spec-divider { height: 2px; background: var(--gray-200); margin: 1.5rem 0; }
.spec-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
}
.spec-total-lbl {
  font-size: 0.95rem;
  color: var(--gray-500);
  text-transform: uppercase;
}
.spec-total-val { font-size: 1.8rem; font-weight: 900; }
.spec-form { display: flex; flex-direction: column; gap: 0.75rem; }
.spec-input {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  padding: 12px;
  color: var(--black);
  font-size: 0.9rem;
  transition: 0.2s;
  font-family: inherit;
}
.spec-input:focus { outline: none; border-color: var(--black); }
.spec-btn {
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
  padding: 14px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.2s;
  width: 100%;
  text-transform: uppercase;
}
.spec-btn:hover:not(:disabled) { background: var(--white); color: var(--black); }
.spec-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--gray-500);
  cursor: pointer;
}
.consent-label input {
  margin-top: 2px;
  width: 15px; height: 15px;
  flex-shrink: 0;
  accent-color: var(--black);
  cursor: pointer;
}
.consent-label a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ===== PRICING ===== */
#pricing { padding: 5rem 0; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.price-block {
  background: var(--white);
  border: 2px solid var(--gray-200);
  padding: 2rem;
}
.price-block h3 {
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.price-table { width: 100%; border-collapse: collapse; }
.price-table td {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9rem;
  vertical-align: top;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table td:first-child { color: var(--gray-600); }
.price-table td:last-child {
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}
.price-table .pt-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 400;
  margin-top: 0.15rem;
}
.price-note {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 1rem;
  line-height: 1.5;
}

/* ===== FEATURES — один ряд, индексы ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  counter-reset: feat;
}
.feature-card {
  position: relative;
  background: var(--white);
  border: 2px solid var(--gray-200);
  padding: 1.5rem 1.25rem;
  transition: 0.3s;
  counter-increment: feat;
  overflow: hidden;
}
.feature-card::before {
  content: counter(feat, decimal-leading-zero);
  position: absolute;
  top: 0.85rem; right: 1rem;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gray-200);
  letter-spacing: 0.02em;
  line-height: 1;
  transition: 0.3s;
}
.feature-card:hover { border-color: var(--black); transform: translateY(-4px); }
.feature-card:hover::before { color: var(--gray-300); }
.feature-icon {
  width: 40px; height: 40px;
  background: var(--black);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--white);
}
.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  line-height: 1.2;
}
.feature-card p {
  color: var(--gray-600);
  font-size: 0.85rem;
  line-height: 1.55;
}

/* ===== PRODUCTION ===== */
#production { background: var(--white); }
.production-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.production-video-wrap {
  background: var(--black);
  border: 2px solid var(--gray-200);
}
.production-video-wrap video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
}
.production-list { display: flex; flex-direction: column; gap: 1.1rem; }
.production-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.production-item::before {
  content: '';
  width: 10px; height: 10px;
  background: var(--black);
  flex-shrink: 0;
  margin-top: 6px;
}
.production-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.1rem;
}
.production-item p {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ===== CONTACTS ===== */
#contacts { background: var(--gray-50); border-top: 2px solid var(--gray-200); }
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.contacts-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  margin-bottom: 1rem;
}
.contact-form-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  padding: 2rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  padding: 14px;
  color: var(--black);
  font-size: 1rem;
  font-family: inherit;
}
.contact-form input:focus { outline: none; border-color: var(--black); }
.contact-form button {
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
  padding: 16px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s;
  text-transform: uppercase;
  font-family: inherit;
}
.contact-form button:hover:not(:disabled) { background: var(--white); color: var(--black); }
.contact-form button:disabled { opacity: 0.4; cursor: not-allowed; }
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--white);
  border: 2px solid var(--gray-200);
  padding: 1rem;
  transition: 0.2s;
}
.contact-card:hover { border-color: var(--black); transform: translateY(-2px); }
.contact-card-icon {
  width: 40px; height: 40px;
  background: var(--black);
  color: var(--white);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-card-icon svg { width: 20px; height: 20px; }
.contact-card-text { display: flex; flex-direction: column; min-width: 0; }
.contact-card-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  margin-bottom: 0.2rem;
}
.contact-card-value {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--black);
  word-break: break-word;
}
.contact-card:hover .contact-card-value { opacity: 0.7; }
.contact-address {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--white);
  border: 2px solid var(--gray-200);
  padding: 1rem;
  margin-top: 1rem;
}
.contact-address .contact-card-icon {
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--black);
}
.channels-row { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.channel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}
.channel-icon {
  width: 48px; height: 48px;
  background: var(--black);
  border: 2px solid var(--black);
  color: var(--white);
  display: grid;
  place-items: center;
  transition: 0.2s;
}
.channel-icon svg { width: 24px; height: 24px; }
.channel-item:hover .channel-icon { background: var(--white); color: var(--black); }
.channel-label {
  font-size: 0.75rem;
  color: var(--gray-600);
  font-weight: 600;
}

/* ===== FOOTER ===== */
footer { background: var(--black); color: var(--white); padding: 3rem 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-col h4 {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
}
.footer-col a, .footer-col p {
  display: block;
  color: var(--gray-400);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.footer-col a:hover { color: var(--white); }
.footer-legal p {
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 0.35rem;
  color: var(--gray-400);
}
.footer-legal strong { color: var(--gray-300); font-weight: 700; }
.footer-channels { display: flex; gap: 1rem; margin-top: 1rem; }
.footer-channels .channel-icon {
  background: transparent;
  border: 2px solid var(--gray-700);
  color: var(--white);
  width: 42px; height: 42px;
}
.footer-channels .channel-icon svg { width: 20px; height: 20px; }
.footer-channels .channel-item:hover .channel-icon {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-800);
  color: var(--gray-500);
  font-size: 0.85rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-bottom a {
  color: var(--gray-400);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-bottom a:hover { color: var(--white); }

/* ===== DEV / COOKIE / TOAST ===== */
.dev-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  background: #1a1a1a;
  color: var(--white);
  border-bottom: 2px solid var(--gray-700);
  padding: 0.65rem 2rem;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.dev-banner.show { display: flex; }
.dev-banner-text { color: var(--gray-200); }
.dev-banner-text strong { color: var(--white); font-weight: 800; }
.dev-banner-close {
  background: transparent;
  border: 1px solid var(--gray-500);
  color: var(--white);
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: 0.2s;
  flex-shrink: 0;
  font-family: inherit;
}
.dev-banner-close:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
body.has-dev-banner { padding-top: 42px; }
body.has-dev-banner header { top: 42px; }
html:has(body.has-dev-banner) { scroll-padding-top: 122px; }

.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--black);
  color: var(--white);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  z-index: 1500;
  border-top: 2px solid var(--gray-700);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--gray-300);
  flex: 1;
}
.cookie-banner-text a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}
.cookie-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--gray-300);
  cursor: pointer;
  max-width: 220px;
}
.cookie-consent-label input {
  margin-top: 2px;
  width: 16px; height: 16px;
  flex-shrink: 0;
  accent-color: var(--white);
  cursor: pointer;
}
.cookie-banner-btn {
  background: var(--white);
  color: var(--black);
  border: none;
  padding: 10px 24px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
  white-space: nowrap;
}
.cookie-banner-btn:hover:not(:disabled) { background: var(--gray-200); }
.cookie-banner-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.toast {
  position: fixed;
  bottom: 80px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--black);
  color: var(--white);
  padding: 14px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  border: 1px solid var(--gray-700);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== PROJECTS PAGE ===== */
.projects-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('images/projects-hero.jpg') center/cover;
  padding: 8rem 0 4rem;
}
.projects-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.projects-hero p { color: var(--gray-300); font-size: 1.1rem; max-width: 600px; }

.project-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}
.gallery-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}
.gallery-filter {
  background: var(--white);
  border: 2px solid var(--gray-200);
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-family: inherit;
}
.gallery-filter:hover { border-color: var(--black); }
.gallery-filter.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.gallery-masonry { column-count: 3; column-gap: 1rem; }
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  background: var(--white);
  border: 2px solid var(--gray-200);
  cursor: pointer;
  transition: 0.3s;
}
.gallery-item:hover { border-color: var(--black); transform: translateY(-4px); }
.gallery-item img {
  width: 100%;
  display: block;
  filter: grayscale(100%);
  transition: 0.3s;
}
.gallery-item:hover img { filter: grayscale(0%); }
.gallery-caption {
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.5;
}
.gallery-caption strong {
  display: block;
  color: var(--black);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-content { max-width: 90%; max-height: 90%; position: relative; }
.lightbox-content img { max-width: 100%; max-height: 85vh; display: block; }
.lightbox-caption {
  color: var(--white);
  text-align: center;
  padding: 1rem;
  font-size: 1rem;
}
.lightbox-caption strong { display: block; margin-bottom: 0.5rem; font-size: 1.1rem; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  font-size: 3rem;
  cursor: pointer;
  background: rgba(0,0,0,0.5);
  border: none;
  padding: 1rem;
  transition: 0.2s;
}
.lightbox-nav:hover { background: rgba(0,0,0,0.8); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.video-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  overflow: hidden;
  transition: 0.3s;
}
.video-card:hover { border-color: var(--black); transform: translateY(-4px); }
.video-info { padding: 1.25rem; }
.video-info h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  min-height: 1.5em;
}
.video-info p {
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.6;
}
lite-rutube {
  background-color: #000;
  position: relative;
  display: block;
  contain: content;
  background-position: center center;
  background-size: cover;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  width: 100%;
}
lite-rutube .lty-playbtn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  background: var(--black);
  border: 2px solid var(--white);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 0.2s;
  z-index: 1;
}
lite-rutube:hover .lty-playbtn { background: var(--white); }
lite-rutube .lty-playbtn::after {
  content: '▶';
  color: var(--white);
  font-size: 1.3rem;
  margin-left: 4px;
  transition: 0.2s;
}
lite-rutube:hover .lty-playbtn::after { color: var(--black); }
lite-rutube.lyt-activated { cursor: default; }
lite-rutube.lyt-activated .lty-playbtn { display: none; }
lite-rutube iframe {
  width: 100%; height: 100%;
  position: absolute;
  top: 0; left: 0;
  border: 0;
}
.channel-link {
  display: inline-block;
  color: var(--black);
  font-weight: 700;
  border-bottom: 2px solid var(--black);
  padding-bottom: 2px;
  transition: 0.2s;
}
.channel-link:hover { opacity: 0.65; }

.video-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  font-size: 0.78rem;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-200);
}
.video-duration {
  background: var(--black);
  color: var(--white);
  padding: 2px 8px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.videos-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--white);
  border: 2px dashed var(--gray-300);
  color: var(--gray-600);
}
.videos-error a { color: var(--black); font-weight: 700; text-decoration: underline; }
.skeleton-video {
  aspect-ratio: 16 / 9;
  background: var(--black);
  position: relative;
  overflow: hidden;
}
.skeleton-video .skeleton-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 30%;
  margin: 0;
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ===== BLOG PAGE ===== */
.blog-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  background: var(--black);
  padding: 8rem 0 4rem;
}
.blog-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.blog-hero p {
  color: var(--gray-400);
  font-size: 1.1rem;
  max-width: 600px;
  margin-top: 1rem;
}
.tg-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}
.tg-post {
  background: var(--white);
  border: 2px solid var(--gray-200);
  overflow: hidden;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}
.tg-post:hover { border-color: var(--black); transform: translateY(-4px); }
.tg-post-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--black);
  position: relative;
}
.tg-post-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: 0.4s;
}
.tg-post:hover .tg-post-media img { filter: grayscale(0%); }
.tg-post-placeholder {
  width: 100%; height: 100%;
  background: var(--black);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 3rem;
  opacity: 0.2;
}
.tg-post-gallery-count {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.75);
  color: var(--white);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
}
.tg-post-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.tg-post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}
.tg-post-date {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.tg-post-views { display: flex; align-items: center; gap: 0.35rem; }
.tg-post-text {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--gray-800);
  margin-bottom: 1.25rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tg-post-text a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tg-post-hashtags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.tg-hashtag {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
}
.tg-post-link {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: 2px solid var(--black);
  padding-bottom: 2px;
  transition: 0.2s;
}
.tg-post-link:hover { opacity: 0.65; }
.tg-channel-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--black);
  color: var(--white);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.tg-channel-info { display: flex; align-items: center; gap: 1rem; }
.tg-channel-avatar {
  width: 48px; height: 48px;
  background: var(--white);
  color: var(--black);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.1rem;
}
.tg-channel-name {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}
.tg-channel-handle {
  font-size: 0.82rem;
  color: var(--gray-400);
}
.tg-channel-subscribe {
  display: inline-block;
  background: var(--white);
  color: var(--black);
  padding: 10px 24px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: 0.2s;
}
.tg-channel-subscribe:hover { background: var(--gray-200); }
.tg-updated {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 2rem;
}
.tg-load-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--white);
  border: 2px dashed var(--gray-300);
  color: var(--gray-600);
}
.tg-load-error a { color: var(--black); font-weight: 700; text-decoration: underline; }
.skeleton-line {
  height: 12px;
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-bottom: 0.75rem;
}
.tg-post-skeleton {
  background: var(--white);
  border: 2px solid var(--gray-200);
  padding: 1.5rem;
  min-height: 340px;
}
.tg-post-skeleton .skeleton-line:nth-child(1) { width: 40%; }
.tg-post-skeleton .skeleton-line:nth-child(2) { width: 100%; height: 160px; }
.tg-post-skeleton .skeleton-line:nth-child(3) { width: 90%; }
.tg-post-skeleton .skeleton-line:nth-child(4) { width: 100%; }
.tg-post-skeleton .skeleton-line:nth-child(5) { width: 75%; }
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1280px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 2rem; }
  .stats-list { flex-wrap: wrap; gap: 1.5rem 0; }
  .stat-item { flex: 1 1 33%; border-left: none; padding: 0 1.5rem 0 0; }
  .stat-item:first-child { padding-left: 0; }
  .config-layout { grid-template-columns: 1fr; gap: 2rem; }
  .spec-panel { position: static; }
  .contacts-grid { grid-template-columns: 1fr; }
  .production-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .gallery-masonry { column-count: 2; }
  .header-right { display: none; }
  .burger { display: flex; }
  nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(0,0,0,0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 0;
    padding: 1rem 2rem 1.5rem;
    border-top: 1px solid var(--gray-800);
  }
  nav.open { display: flex; }
  nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--gray-800);
    font-size: 0.95rem;
  }
  .nav-cta {
    display: block;
    margin-top: 1.25rem;
    text-align: center;
    border: 1px solid var(--white);
    padding: 12px;
    color: var(--white);
  }
  .level-1-grid { grid-template-columns: 1fr; }
  .options-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.5rem; }
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1.5rem;
    gap: 1rem;
  }
  .cookie-banner-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
  }
  .cookie-consent-label {
    max-width: 100%;
    justify-content: center;
    text-align: left;
  }
  .cookie-banner-btn { width: 100%; }
  .dev-banner { padding: 0.55rem 1rem; font-size: 0.75rem; gap: 0.75rem; }
  body.has-dev-banner { padding-top: 38px; }
  body.has-dev-banner header { top: 38px; }
  .footer-legal p { font-size: 0.8rem; }
}
@media (max-width: 760px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero-buttons { flex-direction: column; align-items: flex-start; }
  .btn-hero { width: 100%; text-align: center; }
  .btn-hero.text { width: auto; }
  .stat-item { flex: 1 1 100%; padding: 1rem 0 0; border-top: 1px solid var(--gray-200); }
  .stat-item:first-child { border-top: none; padding-top: 0; }
  .contact-cards { grid-template-columns: 1fr; }
  .gallery-masonry { column-count: 1; }
  .lightbox-nav { font-size: 2rem; padding: 0.5rem; }
}
@media (max-width: 460px) {
  .features-grid { grid-template-columns: 1fr; }
}