/* === Базовые переменные и сброс === */
:root {
  --primary: rgb(18,113,171);
  --white: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #f6f9fc;
  --card: #ffffff;
  --shadow: 0 10px 25px rgba(0,0,0,.08);
  --radius: 16px;
}


* {
  box-sizing: border-box;
}


html, body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
}
/* ====== Новости ====== */
/* ====== Новости (в стиле Маркет оборудования) ====== */
.news-carousel {
    position: relative;
    overflow: hidden;
    margin: 0 auto 50px;
    padding: 0 40px;
}

.news-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 24px;
    cursor: grab;
}

.news-track:active {
    cursor: grabbing;
}

.news-card {
    flex: 0 0 calc(33.333% - 16px);
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #eef2f7;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,.10);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-description {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 8px 0;
    margin-top: auto;
}

.news-link:hover {
    gap: 12px;
    color: #0086cc;
}

.news-link::after {
    content: "→";
    transition: transform 0.3s ease;
}

.news-link:hover::after {
    transform: translateX(4px);
}

/* Кнопки карусели новостей */
.news-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--card);
    border: 2px solid var(--primary);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-carousel-btn:hover {
    background: var(--primary);
    color: rgb(255, 255, 255);
    transform: translateY(-50%) 
}

.news-carousel-btn.prev {
    left: 0;
}

.news-carousel-btn.next {
    right: 0;
}

/* Индикаторы новостей */
.news-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.news-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 174, 239, 0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.news-indicator.active {
    background: var(--primary);
    transform: scale(1.2);
}

.news-indicator:hover:not(.active) {
    background: rgba(0, 174, 239, 0.4);
}

/* Кнопка "Все новости" */
.news-all-btn {
    text-align: center;
    margin-top: 50px;
}

/* Адаптивность */
@media (max-width: 992px) {
    .news-card {
        flex: 0 0 calc(50% - 12px);
    }
    
    .news-carousel {
        padding: 0 50px;
    }
    
    .news-carousel-btn {
        width: 40px;
        height: 40px;
    }
}

/* Чекбоксы согласия */
.consent-group {
    margin: 20px 0 15px 0;
    padding: 15px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #334155;
    line-height: 1.4;
}

.checkbox-label:last-child {
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked {
    background-color: rgb(18, 113, 171);
    border-color: rgb(18, 113, 171);
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-text a {
    color: rgb(18, 113, 171);
    text-decoration: none;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

/* Неактивная кнопка */
.submit-partner-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .news-card {
        flex: 0 0 100%;
    }
    
    .news-carousel {
        padding: 0 20px;
        margin-bottom: 40px;
    }
    
    .news-carousel-btn {
        display: none;
    }
    
    .news-title {
        font-size: 16px;
    }
    
    .news-description {
        font-size: 14px;
    }
    
    .btn-outline {
        padding: 12px 24px;
        font-size: 15px;
    }
}
/* ====== Новости ====== */
.news-section {
    padding: 80px 0;
    background: var(--bg);
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-section h2 {
    text-align: center;
    font-size: clamp(28px, 4vw, 36px);
    margin-bottom: 40px;
    color: var(--text);
}

/* Карусель новостей */
.news-carousel {
    position: relative;
    overflow: hidden;
    margin: 0 auto 50px;
    padding: 0 40px;
}

.news-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 24px;
}

.news-card {
    flex: 0 0 calc(33.333% - 16px);
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #00AEEF20, #1d4ed820);
}

.news-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-date::before {
    content: "📅";
    font-size: 12px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-description {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 8px 0;
    margin-top: auto;
}

.news-link:hover {
    gap: 12px;
    color: #0086cc;
}

.news-link::after {
    content: "→";
    transition: transform 0.3s ease;
}

.news-link:hover::after {
    transform: translateX(4px);
}

/* Кнопки карусели */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--card);
    border: 2px solid var(--primary);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* Индикаторы */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 174, 239, 0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary);
    transform: scale(1.2);
}

.indicator:hover:not(.active) {
    background: rgba(0, 174, 239, 0.4);
}

/* Кнопка "Все новости" */
.all-news-btn {
    text-align: center;
    margin-top: 50px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 174, 239, 0.3);
}

/* Адаптивность */
@media (max-width: 992px) {
    .news-card {
        flex: 0 0 calc(50% - 12px);
    }
    
    .news-carousel {
        padding: 0 50px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 60px 0;
    }
    
    .news-card {
        flex: 0 0 100%;
    }
    
    .news-carousel {
        padding: 0 20px;
        margin-bottom: 40px;
    }
    
    .carousel-btn {
        display: none;
    }
    
    .news-title {
        font-size: 16px;
    }
    
    .news-description {
        font-size: 14px;
    }
    
    .btn-outline {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* ====== Header / Навигация ====== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 900px){
  .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}
}

@media (max-width: 900px) {
  .logo-text {
    white-space: normal;
    line-height: 1.2;
    max-width: 130px;
    word-break: break-word;
    display:none;
  }
  

}

@media (max-width: 768px) {
  .mobile-top-icons {
    gap: 10px;
  }
  
  /* Убедитесь, что иконки карты хорошо выглядят */
  #mobileTopMapIcon a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
  }
  
  #mobileTopMapIcon a:hover {
    background-color: rgba(0, 174, 239, 0.1);
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:inherit;
  font-weight:700;
  font-size:14px;
}

.logo {
  width: 55px;
  height: 55px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgb(18,113,171), #66d6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(0, 174, 239, 0.3);;
}

@media (max-width: 900px){
.logo {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgb(18,113,171), #66d6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 8px 20px rgba(0, 174, 239, 0.3);;
}

.logo-text {
  font-weight: 700;
  font-size: 18px;
}
}


.logo-text {
  font-weight: 700;
  font-size: 18px;
}

.menu {
  display:flex;
  align-items:center;
  gap: 8px;
}

.menu > li {
  position: relative;
  list-style: none;
}

.menu > li > a {
  display:flex;
  align-items:center;
  gap:6px;
  padding:10px 12px;
  border-radius:10px;
  text-decoration:none;
  color: #111827;
  font-weight: 600;
}

.menu > li > a:hover,
.menu > li > a.active {
  background: rgba(0,174,239,.1);
}

/* Dropdown */
.dropdown {
  position:absolute;
  left:0;
  top:100%;
  min-width: 220px;
  background: var(--white);
  border-radius: 12px;
  padding: 8px;
  box-shadow: var(--shadow);
  display:none;
  z-index: 1000;
}

.dropdown a {
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px 12px;
  text-decoration:none;
  color:#111827;
  border-radius:8px;
}

.dropdown a:hover {
  background: rgba(0,174,239,.08);
}

.menu > li:hover > .dropdown {
  display:block;
}

/* Mobile nav */
.burger {
  display:none;
  background:transparent;
  border:0;
  width:42px;
  height:42px;
  border-radius:10px;
  cursor: pointer;
}


.mobile-panel {
  display:none;
}

@media (max-width: 900px) {
  .menu {
    display:none;
  }
  .burger {
    display:block;
  }
  .mobile-panel {
    display:block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 1000;
    opacity:0;
    pointer-events:none;
    transition: .2s ease;
  }
  .mobile-panel.open {
    opacity:1;
    pointer-events: all;
  }
  .drawer {
    position:absolute;
    right:0;
    top:0;
    width: 82%;
    max-width: 360px;
    height: 100%;
    background: var(--white);
    padding: 20px;
    box-shadow: var(--shadow);
    transform: translateX(100%);
    transition: .25s ease;
    overflow:auto;
  }
  .mobile-panel.open .drawer {
    transform: translateX(0);
  }
  .m-list {
    list-style:none;
    padding:0;
    margin:0;
  }
  .m-list > li {
    border-bottom: 1px solid #eef2f7;
  }
  .m-list a {
    display:block;
    padding:14px 6px;
    text-decoration:none;
    color:#111827;
    font-weight:600;
  }
  .m-sub {
    padding: 0 0 16px 10px;
  }
  .m-sub a {
    font-weight: 500;
    color:#374151;
    padding: 8px 6px;
  }
}

/* ====== Hero / Banner (главная) ====== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('images/header.png') center/cover no-repeat;
    color: var(--white);
    padding: 80px 0;
    position: relative;
}

.hero-inner {
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items:center;
}

.hero-copy {
  max-width: 760px;
}

.badge {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 14px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero h1 {
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.2;
    margin: 0 0 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8),
                 0 0 20px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: clamp(16px, 2.4vw, 18px);
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 30px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.6;
    max-width: 600px;
}

.hero-cta {
  display:flex;
  gap:12px;
  align-items:center;
}
.hero-card li {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}


.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  height:44px;
  padding:0 16px;
  border-radius: 12px;
  text-decoration:none;
  font-weight:700;
  border: 1px solid transparent;
  cursor:pointer;
}

.btn.primary {
  background: var(--primary);
  color: #ffffff;
}

.btn.ghost {
  background: transparent;
  border-color: rgba(255,255,255,.35);
  color: var(--white);
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.hero-card h3 {
    margin: 0 0 16px;
    font-size: 20px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.hero-card ul {
    margin: 0;
    padding-left: 20px;
    line-height: 1.8;
}

#slideTitle,
#slideText,
#bullets {
    transition: opacity 0.28s ease, transform 0.28s ease;
    will-change: opacity, transform;
}

#slideTitle.hero-slide-out,
#slideText.hero-slide-out,
#bullets.hero-slide-out {
    opacity: 0;
    transform: translateY(-8px);
}

#slideTitle.hero-slide-in,
#slideText.hero-slide-in,
#bullets.hero-slide-in {
    opacity: 0;
    transform: translateY(10px);
}

#bullets {
    flex: 1 1 auto;
}

.switcher {
  display:flex;
  gap:8px;
  margin-top: auto;
  padding-top: 14px;
}

.switcher button {
  width:40px;
  height:40px;
  border-radius:10px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.08);
  color: var(--white);
  cursor:pointer;
}

.switcher button:hover {
  background: rgba(255,255,255,.15);
}

@media (prefers-reduced-motion: reduce) {
  #slideTitle,
  #slideText,
  #bullets {
    transition: none;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

/* ====== Общие секции / карточки ====== */
.section {
  padding: 10px 0;
}

.section h2 {
  font-size: clamp(24px, 4vw, 34px);
  margin: 0 0 18px;
}

.muted {
  color: var(--muted);
}

.grid {
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.tile {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  border: 1px solid #eef2f7;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.10);
}

.tile-head {
  display:flex;
  align-items:center;
  gap: 12px;
  margin-bottom: 0px;
}

.tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0,174,239,.12);
  display:grid;
  place-items:center;
  color: #036389;
  font-weight:800;
}

.tile a {
  text-decoration:none;
  color: var(--primary);
  font-weight:700;
}

/* Иконки услуг */
.tile-icon-fire img,
.tile-icon-car img,
.tile-icon-bigcar img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.tile-icon-car-menu i {
  font-size: 20px;
  color: black;
  margin-top:-8px;
}

/* ====== Карусель категорий на главной ====== */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 40px; /* Добавляем отступы для кнопок */
}

.carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
    cursor: grab;
}

.carousel::-webkit-scrollbar {
    height: 6px;
}

.carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
.carousel::-webkit-scrollbar {
    height: 6px;
}

.carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.category-tile {
  flex: 0 0 calc(25% - 12px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  text-decoration: none;
  color: #111827;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between; /* Равномерное распределение */
  padding: 20px;
  transition: transform .2s ease;
  position: relative;
  overflow: hidden;
}

.category-tile:hover {
  transform: translateY(-4px);
}

.category-tile img {
  width: 100%; /* Занимает всю ширину */
  height: 120px; /* Фиксированная высота */
  object-fit: contain; /* Сохраняет пропорции */
  margin-bottom: 12px;
  flex-shrink: 0;
}

.category-tile span {
  font-weight: 600;
  text-align: center;
  z-index: 1; /* Текст поверх изображения */
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgb(255, 255, 255);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.carousel-btn:hover {
    background: var(--primary);
    transform: translateY(-50%);
    color: rgb(255, 255, 255);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

@media (max-width: 768px) {
    .carousel-wrapper {
        padding: 0 35px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .category-tile {
        flex: 0 0 calc(50% - 8px);
        min-width: calc(50% - 8px);
    }
}

@media (max-width: 480px) {
    .category-tile {
        flex: 0 0 calc(100% - 8px);
        min-width: calc(100% - 8px);
    }
}

/* ====== Hero / баннер услуг (services) ====== */
.hero1 {
  position:relative;
  height:260px;
  color:#ffffff;
  justify-content:center;
  display:flex;
  align-items:flex-start;
  padding-top:70px;
  text-align:center;
}

.hero1::after {
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(rgba(8, 26, 44, 0.56), rgba(8, 26, 44, 0.56)),
    url('images/motback.png') center/cover no-repeat;
  background-blend-mode: multiply;
  z-index:1;
}

.hero1 .wrap {
  position:relative;
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:28px 20px;
  z-index:2;
}

.hero1 h1 {
  margin:0;
  font-size:clamp(22px,4.6vw,40px);
  letter-spacing:.2px;
}

/* ====== Основная сетка services (.page) ====== */
.page {
  max-width:1200px;
  margin:24px auto;
  padding:0 20px;
  display:grid;
  grid-template-columns:280px 1fr;
  gap:20px;
}

@media (max-width: 900px) {
  .page {
    grid-template-columns:1fr;
  }
}

/* Левая колонка — переключатели */
.side {
  position:sticky;
  top:84px;
  align-self:start;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.tab {
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:12px;
  background:#fff;
  border:1px solid #e5e7eb;
  box-shadow:10px 7px 5px rgb(116, 115, 115);
  text-decoration:none;
  color:var(--text);
  font-weight:600;

}

@media (max-width: 900px) {
  .tab {
      width: 450px;
  }
}

.tab[aria-selected="true"],
.tab:hover {
  outline:0;
  border-color:rgba(0,174,239,.45);
  box-shadow:10px 6px 5px rgba(0,174,239);
}

/* Правая колонка — панели */
.panel {
  display:none;
  background:var(--card);
  border-radius:16px;
  border:1px solid #e5e7eb;
  box-shadow:var(--shadow);
  padding:18px;
}


.panel.active {
  display:block;
}

.panel h2 {
  margin:0 0 10px;
}

/* Списки преимуществ */
.feature-list {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px 30px;
  margin:12px 30px 18px;
  padding:0;
}

.feature-list li {
  list-style:"✔ ";
  padding-left:8px;
}

@media (max-width: 700px){
  .feature-list {
    grid-template-columns:1fr;
    margin:12px 0 18px;
  }
}



/* Таблица */
.table {
  width:100%;
  border-collapse:collapse;
  overflow:hidden;
  border-radius:12px;
  border:1px solid #e5e7eb;
}

.table th,
.table td {
  padding:12px 12px;
  text-align:left;
  vertical-align:top;
  border-top:1px solid #eef2f7;
}

.table thead th {
  background:#f8fafc;
  font-weight:700;
}

.tag {
  display:inline-block;
  padding:2px 8px;
  border-radius:999px;
  background:rgba(0,174,239,.12);
  color:#036389;
  font-weight:600;
  font-size:16px;
}

/* Обратная связь на services */
.feedback {
  max-width:1200px;
  margin:24px auto 60px;
  padding:0 20px;
}

.card {
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:18px;
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:18px;
}

@media (max-width: 900px){
  .card {
    grid-template-columns:1fr;
  }
}

.card h3 {
  margin:4px 0 10px;
}

.card .phone {
  font-size:22px;
  font-weight:800;
  color:#036389;
}

.card form {
  display:grid;
  gap:10px;
}

.card input,
.card textarea {
  width:100%;
  height:44px;
  border-radius:12px;
  border:1px solid #cbd5e1;
  padding:0 12px;
  font:inherit;
}

.card textarea {
  height:50px;
  padding:12px;
}

/* Кнопка отправки формы — использовать стиль primary */
.feedback .btn.primary {
  background:var(--primary);
  color:#00374a;
}

/* ====== Управление блоком .page на мобильных ====== */
.page-hidden {
  /* на десктопе класс игнорируется, управляем только в media */
}

.page-toggle {
  display:none;
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:60;
  border-radius:999px;
  border:none;
  padding:10px 16px;
  background:var(--primary);
  color:#00374a;
  font-weight:700;
  font-size:14px;
  align-items:center;
  justify-content:center;
  box-shadow:var(--shadow);
  cursor:pointer;
}

@media (max-width: 900px) {
  .page.page-hidden {
    display:none;
  }
  .page-toggle {
    display:inline-flex;
  }
}

/* ===== Footer ===== */
footer {
  padding: 28px 0 48px;
  color:#6b7280;
}

/* Стили для кнопки с изолирующими классами */
.tile-btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 5px 20px;
    background: white;
    color: black;
    border: 3px solid rgb(18,113,171);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.tile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 5px 20px;
    background: #ffffff;
    color: rgb(18,113,171);
    border: 3px solid rgb(18,113,171);
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
    margin-bottom: 0;
}
.tile p {
  flex-grow: 1;
  margin-bottom: 10px;
}

/* Класс для растягивания на всю ширину */
.tile-btn--fullwidth {
    width: 100%;
    max-width: 100%;
}

/* Элемент для плавной заливки */
.tile-btn__fill {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.1) 0%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0.1) 100%);
    transition: left 0.6s ease;
    z-index: 1;
}

.tile-btn--fill:hover .tile-btn__fill {
    left: 100%;
}

.tile-btn__text {
    position: relative;
    z-index: 2;
	color: rgb(18,113,171);
}

.tile-btn__arrow {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
	color: white;
}

.tile-btn--animated:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
    background:  #d4f1fc;
}
.tile-btn--animated-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
    background:  #d4f1fc;
}

.tile-btn--animated:hover .tile-btn__arrow {
    transform: translateX(3px);
}

.tile-btn--animated:active {
    transform: translateY(0);
}

/* Эффект всплывающей волны при клике */
.tile-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
    z-index: 2;
}

.tile-btn:active::before {
    width: 100px;
    height: 100px;
}

/* Обеспечиваем изоляцию от других стилей */
.tile .tile-btn {
    margin-top: 15px;
    font-family: inherit;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .tile-btn {
        padding: 5px 20px;
        font-size: 16px;
    }
}

.appointment-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.appointment-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c5aa0;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-input, .form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.form-input::placeholder {
    color: #999;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background:#00aeef;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.8);
    background: #00aeff;
}

.submit-btn:active {
    transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .appointment-form {
        padding: 20px;
        margin: 10px;
    }
}

/* Калькулятор */
.calculator {
    max-width: 1200px;
    padding: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.calculator h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c5aa0;
    font-size: 24px;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.calculator-inputs {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e1e5e9;
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2c5aa0;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    background: #1e3a8a;
    transform: scale(1.1);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2c5aa0;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

.calculator-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #2c5aa0;
}

.result-card h3 {
    margin: 0 0 15px 0;
    color: #2c5aa0;
    font-size: 18px;
}

.cost-comparison {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e1e5e9;
}

.fuel-type {
    font-weight: 500;
}

.cost-amount {
    font-weight: 600;
    color: #333;
}

.savings {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    background: #e8f5e8;
    margin: 0 -10px;
    padding: 12px 10px;
    border-radius: 6px;
}

.savings-label {
    font-weight: 500;
    color: #2d5016;
}

.savings-amount {
    font-weight: 700;
    color: #2d5016;
    font-size: 18px;
}

.total-savings {
    text-align: center;
}

.total-amount {
    font-size: 32px;
    font-weight: 700;
    color: #2d5016;
    margin-bottom: 10px;
}

.savings-percent {
    font-size: 18px;
    color: #666;
    font-weight: 500;
}

.calculation-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #e1e5e9;
}

.calculator-chart {
    margin-top: 30px;
}

.chart-container {
    height: 300px;
    position: relative;
}

/* Анимация при изменении значений */
.input-group span {
    transition: color 0.3s ease;
}

.input-group input:active + .slider-labels + span {
    color: #2c5aa0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    
    .total-amount {
        font-size: 24px;
    }
    
    .input-group label {
        font-size: 14px;
    }
}

/* Подсветка активного ползунка */
.slider:focus {
    background: #d0d9f0;
}

.slider:active {
    background: #c0cff0;
}


.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    animation: modalAppear 0.3s ease;
}
 
@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}
/*
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #333;
}
*/
.modal h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #2c5aa0;
}

/* Кнопки авторизации */
.auth-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.auth-btn.primary {
    background: #2c5aa0;
    color: white;
}

.auth-btn.primary:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
}

.auth-btn.secondary {
    background: #f8f9fa;
    color: #2c5aa0;
    border: 2px solid #2c5aa0;
}

.auth-btn.secondary:hover {
    background: #2c5aa0;
    color: white;
    transform: translateY(-2px);
}

/* Формы */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 5px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 14px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #2c5aa0;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: #2c5aa0;
    text-decoration: none;
    font-size: 14px;
}

.auth-links a:hover {
    text-decoration: underline;
}
/* Стили для dropdown пользователя */
.dropdown.show {
    display: block;
}

/* Уведомления */
.notification {
    animation: slideIn 0.3s ease;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Адаптивность для мобильного меню */
@media (max-width: 768px) {
    #userMenu .dropdown {
        position: static;
        box-shadow: none;
        display: none;
    }
    
    #userMenu .dropdown.show {
        display: block;
    }
}


/*серкеты лехи*/

    /* Каталог */
    .catalog{
      padding:0 18px 40px;
    }
    .catalog-inner{
      max-width:1200px;
      margin:0 auto;
      background:var(--white);
      border-radius:var(--radius-big);
      box-shadow:var(--shadow);
      padding:26px;
      display:flex;
      gap:28px;
    }

    /* Сайдбар категорий */
    .catalog-sidebar{
      flex:0 0 260px;
      display:flex;
      flex-direction:column;
      gap:14px;
    }
    .category-tab{
      border:none;
      text-align:left;
      padding:14px 20px;
      border-radius:18px;
      background:#f9fafb;
      font-size:16px;
      cursor:pointer;
      font-weight:600;
      color:var(--text);
      box-shadow:0 1px 3px rgba(15,23,42,.04);
      display:flex;
      align-items:center;
      justify-content:space-between;
      transition:background .15s,box-shadow .15s,transform .08s,color .15s;
    }
    .category-tab span{
      font-size:13px;
      font-weight:500;
      color:var(--muted);
    }
    .category-tab.active{
      background:linear-gradient(135deg,#0ea5e9,#1d4ed8);
      color:#fff;
      box-shadow:0 12px 25px rgba(37,99,235,.45);
      transform:translateY(-1px);
    }
    .category-tab.active span{
      color:#e0f2fe;
    }

    /* Контент с товарами */
    .catalog-content{
      flex:1;
      min-width:0;
    }
    .products-panel{
      display:none;
    }
    .products-panel.active{
      display:block;
    }
    .products-title{
      font-size:24px;
      font-weight:700;
      margin-bottom:6px;
    }
    .products-subtitle{
      font-size:14px;
      color:var(--muted);
      margin-bottom:18px;
    }

    .products-grid{
      display:grid;
      grid-template-columns:repeat(3,minmax(0,1fr));
      gap:18px;
    }
    .product-card{
      border-radius:18px;
      overflow:hidden;
      background:#f9fafb;
      box-shadow:0 8px 18px rgba(15,23,42,.07);
      display:flex;
      flex-direction:column;
      transition:transform .12s,box-shadow .12s;
    }
    .product-card:hover{
      transform:translateY(-3px);
      box-shadow:0 16px 28px rgba(15,23,42,.16);
    }
    .product-img-wrap{
      position:relative;
      padding-top:80%;
      overflow:hidden;
      background:#e5e7eb;
    }
    .product-img-wrap img{
      position:absolute;
      inset:0;
      width:100%;
      height:100%;
      object-fit:cover;
    }
    .product-body{
      padding:10px 12px 12px;
    }
    .product-name{
      font-size:14px;
      font-weight:600;
      margin-bottom:4px;
    }
    .product-tag{
      font-size:11px;
      text-transform:uppercase;
      letter-spacing:.04em;
      color:var(--muted);
    }

    /* Адаптив */
    @media (max-width: 700px){

  .catalog-inner{
    flex-direction: column;
  }

  /* Сайдбар становится вертикальным списком */
  .catalog-sidebar{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0;
  }

  /* Стили кнопки — как на вашем изображении */
  .category-tab{
    width: 100%;
    border-radius: 22px;
    background: #fff;
    padding: 16px 20px;
    font-size: 17px;
    font-weight: 600;
    box-shadow:
        4px 6px 12px rgba(0,0,0,0.15),
        inset 0 0 0 rgba(0,0,0,0);
    border: 1px solid #e5e7eb;
  }

  /* Активная кнопка — голубой свет справа */
  .category-tab.active{
    background: #fff;
    color: #111;
    position: relative;
    box-shadow:
        5px 5px 18px rgba(0,0,0,0.25),
        18px 0 28px rgba(0,125,255,0.45);
    border: 1px solid #d0eaff;
  }

  /* Убираем текст "8 товаров" */
  .category-tab span{
    display: none;
  }
}

   @media (max-width: 900px) {
    .hero {
        padding: 28px 0 36px;
        min-height: auto;
        background-position: 60% center;
    }
    
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 0;
        align-items: stretch;
    }

    .hero-copy {
        max-width: 100%;
        padding: 18px 16px;
        border-radius: 18px;
        background: rgba(3, 10, 20, 0.58);
        border: 1px solid rgba(255, 255, 255, 0.14);
        box-shadow: 0 14px 28px rgba(2, 8, 20, 0.38);
        backdrop-filter: blur(3px);
    }
    
    .hero h1 {
        font-size: 32px;
        line-height: 1.24;
        margin-bottom: 12px;
        letter-spacing: -0.01em;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
    }
    
    .hero p {
        font-size: 16px;
        line-height: 1.58;
        margin-bottom: 18px;
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .hero-cta .btn {
        height: 50px;
        border-radius: 14px;
        font-size: 16px;
        font-weight: 700;
        width: 100%;
        justify-content: center;
    }
    
    /* На мобильных скрываем блок "Ключевые преимущества" и переключатель слайдов */
    .hero-card {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 20px 0 28px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 15px;
    }
    
    .badge {
        padding: 8px 16px;
        font-size: 13px;
    }
}


    :root{
      --bg:#f3f4f6;
      --white:#ffffff;
      --text:#111827;
      --muted:#6b7280;
      --accent:#1d9bf0;
      --accent-soft:#e0f2fe;
      --radius-big:26px;
      --shadow:0 18px 40px rgba(15,23,42,.18);
    }

    *{box-sizing:border-box;margin:0;padding:0}
    body{
      font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,system-ui,sans-serif;
      color:var(--text);
      background:var(--bg);
      line-height:1.5;
    }


    /* Общий контейнер */
    .page1{
      max-width:1200px;
      margin:0 auto;
      padding:5px 18px 40px;
    }

    /* БОЛЬШОЙ БЛОК С ФОТО И НАЗВАНИЕМ */
    .product-hero{
      margin-top:5px;
      background:var(--white);
      border-radius:var(--radius-big);
      box-shadow:var(--shadow);
      padding:22px 24px;
      display:flex;
      gap:26px;
      align-items:stretch;
    }
    .section-product-hero {
  display: flex;
  gap: 26px;
}
    .product-hero-image{
      flex:0 0 360px;
      border-radius:20px;
      overflow:hidden;
      background:#ffffff;
      display:flex;
      align-items:center;
      justify-content:center;
    }
    .product-hero-image img{
      width:100%;
      height:250px;
      object-fit:contain;
    }
    .product-hero-body{
      flex:1;
      display:flex;
      flex-direction:column;
      justify-content:space-between;
      gap:14px;
    }
    .product-category{
      display:inline-flex;
      align-items:center;
      gap:6px;
      font-size:13px;
      color:#0369a1;
      background:var(--accent-soft);
      padding:4px 10px;
      border-radius:999px;
      font-weight:600;
    }
    .product-title{
      font-size:30px;
      font-weight:800;
    }
    .product-short{
      font-size:14px;
      color:var(--muted);
    }
    .product-keylist{
      margin-top:6px;
      font-size:14px;
      color:var(--text);
    }
    .product-keylist li{
      margin-bottom:4px;
    }

    /* Хлебные крошки */
    .breadcrumbs{
      font-size:13px;
      color:var(--muted);
    }
    .breadcrumbs a{
      color:var(--muted);
      text-decoration:none;
    }
    .breadcrumbs span{
      color:#4b5563;
      font-weight:500;
    }

    /* Блоки информации */
    .blocks{
      margin-top:24px;
      display:flex;
      flex-direction:column;
      gap:18px;
    }
    .info-block{
      background:var(--white);
      border-radius:20px;
      box-shadow:0 10px 24px rgba(15,23,42,.12);
      padding:18px 20px 18px;
    }
    .info-block-header{
      font-size:16px;
      font-weight:700;
      margin-bottom:8px;
      border-bottom:1px solid #e5e7eb;
      padding-bottom:6px;
    }
    .info-block p{
      font-size:14px;
      color:#111827;
    }

    /* Блок с доп. фото */
    .extra-photo-wrap{
      display:flex;
      justify-content:center;
      align-items:center;
      background:#ffffff;
      border-radius:16px;
      padding:12px;

    }
    .extra-photo-wrap img{
      width:500px;
      height:auto;
      object-fit:contain;
    }


     

        /* Таблицы */
    .table-wrap{
      overflow:auto;
      margin-top:4px;
    }
    table{
      width:100%;
      border-collapse:collapse;
      font-size:13px;
      min-width:480px;
    }
    thead{
      background:#b2d7fa;
    }
    th,td{
      padding:8px 10px;
      border-bottom:1px solid #e5e7eb;
      text-align:left;
    }
    th{
      font-weight:700;
      text-transform:uppercase;
      font-size:12px;
      letter-spacing:.03em;
      color:#1f2933;
    }
    tbody tr:nth-child(even){
      background:#f9fafb;
    }

    .badge-ok{
      display:inline-block;
      padding:2px 8px;
      border-radius:999px;
      background:#dcfce7;
      color:#15803d;
      font-size:11px;
      font-weight:600;
    }

    /* Адаптив */
    @media (max-width:960px){
      .product-hero{
        flex-direction:column;
      }
      .section-product-hero {
        flex-direction:column;
      }
      .product-hero-image{
        flex:0 0 auto;
        align-self:center;
        width:100%;
      }
      .extra-photo-wrap img{
      width:400px;
      height:auto;
      object-fit:contain;
    }


  }


    :root{
      --bg:#f3f4f6;
      --white:#ffffff;
      --text:#111827;
      --muted:#6b7280;
      --accent:#1d9bf0;
      --accent-soft:#e0f2fe;
      --radius-big:26px;
      --shadow:0 18px 40px rgba(15,23,42,.18);
    }

    *{box-sizing:border-box;margin:0;padding:0}
    body{
      font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,system-ui,sans-serif;
      color:var(--text);
      background:var(--bg);
      line-height:1.5;
    }


    /* Общий контейнер */
    .page1{
      max-width:1200px;
      margin:0 auto;
      padding:5px 18px 40px;
    }

    /* БОЛЬШОЙ БЛОК С ФОТО И НАЗВАНИЕМ */
    .product-hero{
      margin-top:5px;
      background:var(--white);
      border-radius:var(--radius-big);
      box-shadow:var(--shadow);
      padding:22px 24px;
      display:flex;
      gap:26px;
      align-items:stretch;
    }
    .section-product-hero {
  display: flex;
  gap: 26px;
}
    .product-hero-image{
      flex:0 0 360px;
      border-radius:20px;
      overflow:hidden;
      background:#ffffff;
      display:flex;
      align-items:center;
      justify-content:center;
    }
    .product-hero-image img{
      width:100%;
      height:250px;
      object-fit:contain;
    }
    .product-hero-body{
      flex:1;
      display:flex;
      flex-direction:column;
      justify-content:space-between;
      gap:14px;
    }
    .product-category{
      display:inline-flex;
      align-items:center;
      gap:6px;
      font-size:13px;
      color:#0369a1;
      background:var(--accent-soft);
      padding:4px 10px;
      border-radius:999px;
      font-weight:600;
    }
    .product-title{
      font-size:30px;
      font-weight:800;
    }
    .product-short{
      font-size:14px;
      color:var(--muted);
    }
    .product-keylist{
      margin-top:6px;
      font-size:14px;
      color:var(--text);
    }
    .product-keylist li{
      margin-bottom:4px;
    }

    /* Хлебные крошки */
    .breadcrumbs{
      font-size:13px;
      color:var(--muted);
    }
    .breadcrumbs a{
      color:var(--muted);
      text-decoration:none;
    }
    .breadcrumbs span{
      color:#4b5563;
      font-weight:500;
    }

    /* Блоки информации */
    .blocks{
      margin-top:24px;
      display:flex;
      flex-direction:column;
      gap:18px;
    }
    .info-block{
      background:var(--white);
      border-radius:20px;
      box-shadow:0 10px 24px rgba(15,23,42,.12);
      padding:18px 20px 18px;
    }
    .info-block-header{
      font-size:16px;
      font-weight:700;
      margin-bottom:8px;
      border-bottom:1px solid #e5e7eb;
      padding-bottom:6px;
    }
    .info-block p{
      font-size:14px;
      color:#111827;
    }

    /* Блок с доп. фото */
    .extra-photo-wrap{
      display:flex;
      justify-content:center;
      align-items:center;
      background:#ffffff;
      border-radius:16px;
      padding:12px;

    }
    .extra-photo-wrap img{
      width:500px;
      height:auto;
      object-fit:contain;
    }



    /* Адаптив */
    @media (max-width:960px){
      .product-hero{
        flex-direction:column;
      }
      .section-product-hero {
 flex-direction:column;
}
      .product-hero-image{
        flex:0 0 auto;
        align-self:center;
        width:100%;
      }
      .extra-photo-wrap img{
      width:400px;
      height:auto;
      object-fit:contain;
    }
  }


/*test */
.ecosystem {
    background: linear-gradient(135deg, #1e3a8a 0%, #2c5aa0 100%);
    color: white;
    padding: 60px 0;
    margin: 40px 0;
}

.ecosystem-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ecosystem h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    font-weight: 700;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.ecosystem-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease;
}

.ecosystem-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.ecosystem-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.ecosystem-item h3 {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.ecosystem-item p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Стили для кнопок */
.ecosystem-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.eco-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.eco-btn-primary {
    background: #00d664;
    color: white;
}

.eco-btn-primary:hover {
    background: #00b854;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 214, 100, 0.3);
}

.eco-btn-secondary {
    background: white;
    color: #2c5aa0;
}

.eco-btn-secondary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.eco-btn-icon {
    font-size: 20px;
}

/* Стили для выпадающих секций */
.dropdown-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.dropdown-content {
    max-width: 1000px;
    margin: 40px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e1e5e9;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.dropdown-header h3 {
    margin: 0;
    color: #2c5aa0;
    font-size: 24px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 30px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #e1e5e9;
    color: #333;
}

/* Стили для формы партнера */
.partner-form {
    padding: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.contact-info h4 {
    margin-bottom: 20px;
    color: #2c5aa0;
    font-size: 20px;
}

.form-actions {
    margin-top: 30px;
    text-align: center;
}

.submit-partner-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #00d664 0%, #00b854 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-partner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 214, 100, 0.3);
}

.btn-icon {
    font-size: 20px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .ecosystem-grid {
        grid-template-columns: 1fr;
    }
    
    .ecosystem-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .eco-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .dropdown-content {
        margin: 20px auto;
    } 
    
    .dropdown-header {
        padding: 20px;
    }
    
    .partner-form {
        padding: 20px;
    }
}
/* Стили для нового футера - светлый вариант */
.site-footer {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: #334155;
  padding: 70px 0 30px;
  margin-top: 80px;
  position: relative;
  border-top: 1px solid #e2e8f0;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    var(--primary) 0%, 
    #00d664 50%, 
    var(--primary) 100%);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Верхняя часть футера */
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  margin-bottom: -20px;
}

@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Блок с логотипом */
.footer-brand {
  max-width: 380px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.footer-logo .logo {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgb(18,113,171), #66d6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(0, 174, 239, 0.3);
}

.logo-text {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-description {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 30px;
  font-size: 15px;
  padding-left: 5px;
}

.footer-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  text-align: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.action-btn i {
  font-size: 16px;
}

.action-btn.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.2);
}

.action-btn.primary:hover {
  background: #0090d0;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 174, 239, 0.3);
}

.action-btn.secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.1);
}

.action-btn.secondary:hover {
  background: rgba(0, 174, 239, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 174, 239, 0.15);
}

/* Колонки с ссылками */
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 768px) {
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
}

.footer-column h3 {
  color: #1e293b;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #00d664);
  border-radius: 2px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 14px;
}

.footer-column ul li a {
  color: #64748b;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  padding-left: 0;
}

.footer-column ul li a::before {
  content: '→';
  position: absolute;
  left: -18px;
  opacity: 0;
  color: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-5px);
}

.footer-column ul li a:hover {
  color: var(--primary);
  padding-left: 18px;
}

.footer-column ul li a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Контактная информация */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0px;
  margin-bottom: 0px;
}  

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.contact-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.contact-item i {
  color: var(--primary);
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.contact-item div {
  display: flex;
  flex-direction: column;
}

.contact-value {
  color: #1e293b;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
  margin-bottom: 4px;
}

.contact-value:hover {
  color: var(--primary);
}

.contact-label {
  font-size: 13px;
  color: #94a3b8;
}

/* Социальные сети */
.footer-social h4 {
  color: #1e293b;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 18px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-link.vk {
  background: #4c75a3;
}

.social-link.telegram {
  background: #2aabee;
}

.social-link.youtube {
  background: #ff0000;
}

.social-link.whatsapp {
  background: #25d366;
}

.social-link:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Разделитель */
.footer-divider {
  margin: 40px 0;
  opacity: 0.5;
}

/* Нижняя часть футера */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  padding-top: 30px;
  border-top: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}

.footer-left {
  flex: 1;
  min-width: 300px;
}

.copyright {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 12px;
}

.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.legal-link {
  color: #64748b;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
}

.legal-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.legal-link:hover {
  color: var(--primary);
}

.legal-link:hover::after {
  width: 100%;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-end;
}

@media (max-width: 768px) {
  .footer-right {
    align-items: center;
  }
}

.payment-methods {
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-methods span {
  color: #64748b;
  font-size: 14px;
}

.payment-icons {
  display: flex;
  gap: 10px;
  font-size: 24px;
}

.payment-icons i {
  color: #475569;
}

.developers {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 14px;
}

.developers i {
  color: #ef4444;
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Анимация для появления футера */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer > * {
  animation: fadeInUp 0.6s ease-out;
}

/* Кнопка "Наверх" */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 174, 239, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #0086cc;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 174, 239, 0.6);
}

/* Адаптивность */
@media (max-width: 480px) {
  .site-footer {
    padding: 50px 0 25px;
  }
  
  .footer-top {
    gap: 30px;
  }
  
  .footer-logo .logo {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .footer-legal {
    flex-direction: column;
    gap: 10px;
  }
  
  .payment-methods {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 900px){
.footer-dispaly-none{
  display: none;
}
}

