@charset "windows-1251";

:root {
  --primary: #d90429;
  --primary-hover: #ef233c;
  --primary-soft: #fff0f3;
  --telegram: #229ED9;
  --telegram-hover: #1b86ba;
  --dark: #111827;
  --dark-light: #1f2937;
  --text: #374151;
  --text-muted: #6b7280;
  --bg-page: #e2e2e2;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 6px 16px -2px rgba(0,0,0,0.07), 0 4px 6px -2px rgba(0,0,0,0.03);
  --shadow-lg: 0 12px 28px -4px rgba(0,0,0,0.1), 0 6px 10px -3px rgba(0,0,0,0.04);
  --transition: all 0.25s ease;
}

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



body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

@media (max-width: 768px) {
  /* Скрываем кнопку Telegram только в нижней фиксированной панели вызова */
  .mobile-call-bar .mobile-tg-btn,
  .mobile-call-bar a[href*="t.me"] {
    display: none !important;
  }
}

/* Восстановление стилей и фона верхней шапки */
.top-bar {
  background: #111827 !important;
  color: #9ca3af !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 13px !important;
  border-bottom: 1px solid #2d3748 !important;
}

.top-bar a,
.top-bar span {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  color: inherit;
}

header {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.nav-bar {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.nav-bar a,
.nav-menu-link,
.logo-text,
.logo-subtitle,
.contact-phone,
.contact-meta {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}


/* Top Utility Bar */
.top-bar {
  background: var(--dark);
  color: #9ca3af;
  font-size: 13px;
  border-bottom: 1px solid #2d3748;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  flex-wrap: wrap;
  gap: 10px;
}

.top-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e5e7eb;
}

.top-badge span.dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
}

.top-links {
  display: flex;
  gap: 18px;
}

.top-links a:hover {
  color: #fff;
}

/* Header Main */
header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

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

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.logo-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  border-left: 1px solid var(--border);
  padding-left: 10px;
  display: block;
  line-height: 1.3;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-block {
  text-align: right;
}

.contact-phone {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  display: block;
}

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

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

.btn-tg-header {
  background: #e7f5fd;
  color: var(--telegram);
  border: 1px solid #cce9fb;
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-tg-header:hover {
  background: var(--telegram);
  color: #fff;
  border-color: var(--telegram);
  transform: translateY(-1px);
}

/* Навигационная панель */
.nav-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.nav-menu-list {
  display: flex;
  list-style: none;
  gap: 6px;
  align-items: center;
  padding: 6px 0;
  margin: 0;
}

.nav-menu-item {
  position: relative;
}

.nav-menu-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-light);
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  background: transparent;
  border: none;
  font-family: inherit;
}

.nav-menu-link:hover,
.nav-menu-item:hover > .nav-menu-link {
  background: var(--primary-soft);
  color: var(--primary);
}

.nav-menu-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.nav-menu-item:hover > .nav-menu-link .nav-menu-arrow {
  transform: rotate(180deg);
}

@media (min-width: 769px) {
  .nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 250px;
    max-height: 480px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1100;
  }
  .nav-dropdown.mega-2col {
    min-width: 460px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 10px;
    padding: 10px 12px;
  }
  .nav-menu-item:hover > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-dropdown a {
    display: block;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.35;
    border-radius: 4px;
  }
  .nav-dropdown a:hover {
    background: #f8fafc;
    color: var(--primary);
    padding-left: 19px;
  }
  .mobile-contact-link, #mobileDrawer, #mobileDrawerOverlay {
    display: none !important;
  }
}

/* Мобильный Drawer (шторка меню) */
#mobileDrawerOverlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99998;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

#mobileDrawerOverlay.active {
  display: block;
  opacity: 1;
}

#mobileDrawer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 80vh;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.35);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.1, 0.9, 0.2, 1);
}

#mobileDrawer.active {
  transform: translateY(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.drawer-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
}

.drawer-close {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
}

.drawer-body {
  padding: 10px 20px 80px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.drawer-body a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  border-bottom: 1px solid #f1f5f9;
}

.drawer-body a:active {
  color: var(--primary);
}

/* Контент страницы */
.content-area {
  padding: 30px 0 60px;
}

.page-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 14px;
  line-height: 1.2;
}

.intro-box {
  position: relative;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px -2px rgba(245, 158, 11, 0.08), var(--shadow-sm);
  overflow: hidden;
  background: linear-gradient(
    120deg,
    #fffbeb 0%,
    #fff1f2 25%,
    #fef3c7 50%,
    #d3d3dd 75%,
    #fffbeb 100%
  );
  background-size: 300% 300%;
  animation: warmShimmer 12s ease infinite;
}

@keyframes warmShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.intro-highlight {
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
}

/* Галерея образцов */
.gallery-section {
  margin-bottom: 40px;
}

.section-h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.gallery-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-card:hover img {
  transform: scale(1.03);
}

.gallery-card-desc {
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--dark-light);
}

/* Lightbox Modal */
.image-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 40px 20px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.image-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.image-modal-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 96vw;
  max-height: 90vh;
  margin: auto;
}

.image-modal-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 94vw;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  background: #ffffff;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-modal-overlay.active .image-modal-img {
  transform: scale(1);
}

.image-modal-caption {
  color: #f8fafc;
  font-size: 15px;
  font-weight: 600;
  margin-top: 14px;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  max-width: 800px;
}

.image-modal-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  z-index: 1000000;
  transition: var(--transition);
}

.image-modal-close:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.1);
}

/* Преимущества */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.reason-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.reason-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

/* Таблицы */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 40px;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.table-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.content-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
  margin-bottom: 16px;
}

.content-table th, .content-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.content-table th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--dark);
}

.table-notes {
  list-style: none;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}

.table-notes li {
  margin-bottom: 4px;
}

/* Кнопки */
.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  margin-top: 10px;
  box-shadow: 0 4px 12px rgba(217, 4, 41, 0.25);
}

.btn-action:hover {
  background: var(--primary-hover);
  color: #fff;
}

.features-list {
  list-style: none;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.features-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #003C00;
}

.features-list li span.check {
  color: #10b981;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}

.order-cta-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 40px;
  text-align: center;
}

.related-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.related-links a {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
}

.related-links a:hover {
  background: var(--primary-soft);
}

/* Footer */
footer {
  background: var(--dark);
  color: #9ca3af;
  padding: 50px 0 24px;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.footer-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
}

/* Mobile bar */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
  z-index: 1000;
  align-items: center;
  gap: 8px;
}

.mobile-call-btn {
  flex: 1.2;
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 10px 6px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
}

.mobile-mail-btn {
  flex: 1;
  background: #f1f5f9;
  color: var(--dark);
  text-align: center;
  padding: 10px 6px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--border);
}

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

/* Мобильные стили */
@media (max-width: 768px) {
  body {
    padding-bottom: 70px;
  }
  .top-bar {
    display: none;
  }
  .container {
    padding: 0 14px;
  }
  .header-contacts .contact-block,
  .btn-tg-header {
    display: none !important;
  }

  /* Горизонтальное меню на мобильных */
  .nav-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-bar::-webkit-scrollbar {
    display: none;
  }
  .nav-bar .container {
    padding: 0;
  }
  .nav-menu-list {
    display: inline-flex;
    padding: 8px 12px;
    gap: 8px;
  }
  .nav-menu-link {
    font-size: 13px;
    padding: 7px 14px;
    background: #f1f5f9;
    border-radius: 20px;
    flex-shrink: 0;
  }
  .nav-dropdown {
    display: none !important;
  }
  .nav-menu-item.hide-on-mobile {
    display: none !important;
  }
  .mobile-contact-link {
    display: inline-flex !important;
    align-items: center;
    margin-right: 10px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: 8px;
    white-space: nowrap;
  }

  .page-title {
    font-size: 22px;
  }
  .intro-box {
    padding: 16px;
  }
  .intro-highlight {
    font-size: 15px;
  }
  .features-list {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
  }
  .gallery-card img {
    height: 140px;
  }
  .gallery-card-desc {
    font-size: 12px;
    padding: 8px;
  }

  /* Таблицы */
  .table-container {
    padding: 14px 10px;
    margin: 0 -4px 24px -4px;
    border-radius: 8px;
  }
  .content-table {
    min-width: 600px;
    font-size: 12px;
  }
  .content-table th, 
  .content-table td {
    padding: 8px 10px;
    white-space: nowrap;
  }
  .content-table th:first-child,
  .content-table td:first-child {
    position: sticky;
    left: 0;
    background: #ffffff;
    z-index: 2;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    white-space: normal;
    min-width: 130px;
    max-width: 140px;
  }
  .content-table th:first-child {
    background: #f8fafc;
    z-index: 3;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .mobile-call-bar {
    display: flex;
  }
  .image-modal-close {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
}
