/* positiv-systems.top — стиль в духе euro-business.org */
:root {
  --main-color: #00a5b7;
  --accent-color: #005b64;
  --green: #1e9e4a;
  --text-color: #333;
  --light-bg: #f5f5f5;
  --white: #ffffff;
  --gray: #e1e1e1;
  --dark-gray: #555;
  --telegram-color: #2aabee;
  --viber-color: #7b519d;
  --whatsapp-color: #25d366;
  --container-padding: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Arial', sans-serif;
  background: var(--light-bg) url('images/fon.jpg') center top / cover fixed;
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a { text-decoration: none; color: var(--main-color); transition: all 0.3s ease; }
a:hover { color: var(--accent-color); }

.wrapper {
  width: 1200px;
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Шапка ===== */
.header { background: #e1e1e1; border-bottom: 1px solid var(--gray); position: sticky; top: 0; z-index: 900; }

.header-top {
  padding: 10px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo { display: flex; align-items: center; gap: 12px; color: #234a7a; }
.logo:hover { color: #234a7a; transform: scale(1.03); }
.logo-icon {
  width: 64px; height: 64px; border-radius: 14px;
  background: linear-gradient(135deg, var(--main-color), var(--green));
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 34px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}
.logo-text b { display: block; font-size: 38px; line-height: 1.1; color: #234a7a; }
.logo-text small { display: block; font-size: 18px; color: var(--green); font-weight: bold; }

.header-contacts { text-align: right; font-size: 20px; color: var(--dark-gray); }
.header-contacts p { display: flex; align-items: center; justify-content: flex-end; margin-bottom: 2px; }
.header-contacts a { color: var(--dark-gray); }
.header-contacts i { margin-right: 8px; color: var(--main-color); }

.messenger-links { display: flex; align-items: center; gap: 15px; }
.messenger-links a {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.6); font-size: 44px; transition: all 0.3s ease;
}
.messenger-links a:hover { transform: translateY(-3px) scale(1.1); background: #fff; }
.fa-telegram { color: var(--telegram-color); }
.fa-viber { color: var(--viber-color); }
.fa-whatsapp { color: var(--whatsapp-color); }

/* ===== Главное меню ===== */
.main-menu { background: var(--main-color); }
.main-menu ul { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; }
.main-menu ul li a {
  display: block; padding: 15px 22px; color: var(--white);
  font-weight: bold; text-transform: uppercase; font-size: 12px;
}
.main-menu ul li a:hover, .main-menu ul li a.active { background: var(--accent-color); color: #fff; }
.main-menu ul li a i { margin-right: 8px; }

.mobile-menu-btn, .mobile-menu-close { display: none; }

/* ===== Боковое меню ===== */
.content-wrapper { display: flex; flex: 1; padding: var(--container-padding) 0; }

.sidebar { width: 250px; flex-shrink: 0; padding: var(--container-padding); background: var(--light-bg); }
.sidebar-menu { position: sticky; top: 200px; margin-top: 20px; }
.sidebar-menu ul { list-style: none; }
.sidebar-menu ul li { margin-bottom: 8px; }
.sidebar-menu ul li a {
  display: flex; align-items: center; padding: 12px 15px;
  background: var(--gray); color: var(--text-color); border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.sidebar-menu ul li a:hover, .sidebar-menu ul li a.active {
  background: var(--main-color); color: var(--white);
  transform: translateX(10px); box-shadow: 0 3px 6px rgba(0,0,0,0.16);
}
.sidebar-menu ul li a i { margin-right: 10px; width: 20px; text-align: center; }

.sidebar-note {
  position: sticky; top: 560px;
  margin-top: 25px; padding: 18px; border-radius: 5px; text-align: center;
  background: var(--white); box-shadow: 0 0 10px rgba(0,0,0,0.06); font-size: 14px;
}
.sidebar-note > i { font-size: 30px; color: var(--green); margin-bottom: 8px; }
.sidebar-note p { margin-bottom: 12px; }

.btn {
  display: inline-block; padding: 10px 18px; border-radius: 4px;
  background: var(--main-color); color: #fff; font-weight: bold; font-size: 14px;
}
.btn:hover { background: var(--accent-color); color: #fff; }

/* ===== Контент ===== */
.main-content { flex: 1; min-width: 0; padding: 0 20px 20px; }

h1, h2, h3 { color: var(--main-color); font-weight: 600; }
h1 { font-size: 28px; text-align: center; border-bottom: 2px solid var(--light-bg); padding: 10px 0 15px; margin-bottom: 20px; }
h2 { font-size: 24px; margin-bottom: 18px; }
h2 i { margin-right: 8px; }
h3 { font-size: 18px; margin-bottom: 8px; }

.content-block {
  background: var(--white); padding: 25px; border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05); margin-bottom: 20px;
  scroll-margin-top: 190px;
  animation: fadeIn 0.5s ease-out;
}
.content-block p { margin-bottom: 12px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.hero {
  background: linear-gradient(135deg, rgba(0,165,183,0.92), rgba(0,91,100,0.95)), url('images/fon.jpg') center / cover;
  color: #fff;
}
.hero .lead { font-size: 18px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 15px; text-align: center; }
.stats div { background: rgba(255,255,255,0.12); border-radius: 5px; padding: 12px 6px; }
.stats b { display: block; font-size: 26px; }
.stats span { font-size: 13px; opacity: 0.9; }

.features { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
.features li { display: flex; gap: 14px; align-items: flex-start; }
.features li > i { font-size: 22px; color: var(--main-color); width: 30px; text-align: center; margin-top: 3px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--light-bg); border-radius: 5px; padding: 20px; text-align: center;
  border-top: 3px solid var(--main-color); transition: all 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 6px 14px rgba(0,0,0,0.1); }
.card > i { font-size: 32px; color: var(--main-color); margin-bottom: 10px; }
.card p { font-size: 14px; margin: 0; }

.price-table { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0 25px; }
.price {
  position: relative; border: 1px solid var(--gray); border-radius: 5px; padding: 22px 18px; text-align: center;
}
.price.best { border: 2px solid var(--main-color); box-shadow: 0 6px 16px rgba(0,165,183,0.18); }
.price .badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 10px;
}
.price .sum { font-size: 30px; font-weight: bold; color: var(--accent-color); margin-bottom: 12px; }
.price .sum small { font-size: 14px; color: var(--dark-gray); font-weight: normal; }
.price ul { list-style: none; font-size: 14px; }
.price li { padding: 6px 0; border-top: 1px dashed var(--gray); }

.discounts { list-style: none; margin-bottom: 15px; }
.discounts li { padding: 6px 0; }
.discounts i { color: var(--green); width: 24px; }
.note { font-size: 14px; color: var(--dark-gray); font-style: italic; }

.types { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 25px; }
.types h3 i { margin-right: 6px; }
.types p { font-size: 15px; margin: 0; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 10px; }
.contact-grid div {
  background: var(--light-bg); border-radius: 5px; padding: 16px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.contact-grid i { font-size: 28px; color: var(--main-color); }

/* ===== Подвал ===== */
.footer { background: var(--main-color); color: var(--white); padding: 14px 0; font-size: 14px; margin-top: auto; }
.footer-content { display: flex; justify-content: space-between; align-items: center; padding: 0 30px; gap: 10px; }
.footer a { color: #fff; text-decoration: underline; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--main-color); color: #fff; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 950;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--accent-color); color: #fff; }

/* ===== Адаптивность ===== */
@media (max-width: 1220px) {
  .wrapper { width: 100%; }
}

@media (max-width: 992px) {
  .header-top { flex-wrap: wrap; justify-content: center; text-align: center; }
  .header-contacts { text-align: center; }
  .header-contacts p { justify-content: center; }
  .sidebar { display: none; }
  .cards, .price-table, .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header { position: relative; }
  .header-top { padding: 10px 60px 10px 15px; }
  .logo-text b { font-size: 26px; }
  .logo-text small { font-size: 13px; }
  .logo-icon { width: 48px; height: 48px; font-size: 24px; }
  .header-contacts { font-size: 16px; }
  .messenger-links a { width: 44px; height: 44px; font-size: 34px; }

  .mobile-menu-btn {
    display: block; position: fixed; top: 15px; right: 15px; z-index: 1100;
    background: var(--main-color); color: #fff; border: none; border-radius: 4px;
    font-size: 22px; padding: 8px 13px; cursor: pointer;
  }
  .main-menu {
    position: fixed; inset: 0; z-index: 1200; display: none;
    background: rgba(0, 91, 100, 0.97); padding-top: 70px;
  }
  .main-menu.active { display: block; }
  .main-menu ul { flex-direction: column; }
  .main-menu ul li a { font-size: 16px; padding: 16px 25px; }
  .mobile-menu-close {
    display: flex; position: absolute; top: 15px; right: 15px; width: 40px; height: 40px;
    align-items: center; justify-content: center; color: #fff; font-size: 24px; cursor: pointer;
    background: rgba(0,0,0,0.2); border-radius: 50%;
  }

  .main-content { padding: 0 10px 10px; }
  .content-block { padding: 18px; scroll-margin-top: 10px; }
  h1 { font-size: 22px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .features, .types { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .cards, .price-table, .contact-grid { grid-template-columns: 1fr; }
}

/* ===== Переключатель языка ===== */
.lang-switch { display: flex; gap: 4px; font-size: 13px; font-weight: bold; }
.lang-switch a, .lang-switch span { padding: 4px 9px; border-radius: 3px; border: 1px solid var(--main-color); }
.lang-switch a { color: var(--main-color); background: #fff; }
.lang-switch a:hover { background: var(--main-color); color: #fff; }
.lang-switch .active { background: var(--main-color); color: #fff; }

/* ===== Текстовые страницы (политика, условия) ===== */
.doc-page .content-block h3 { margin-top: 18px; }
.doc-page .content-block ul { margin: 0 0 12px 22px; }
.doc-page .content-block li { margin-bottom: 4px; }
