:root{
  --bg:#ffffff;
  --text:#0b1220;
  --muted:#64748b;
  --brand:#0ea5e9; /* pharma-sky */
  --brand-600:#0284c7;
  --card:#f8fafc;
  --ring:rgba(2,132,199,.15);
}

*{box-sizing:border-box}
html,body{
  margin:0;padding:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);background:var(--bg);
  scroll-behavior:smooth
}
a{color:var(--brand);text-decoration:none}
.container{max-width:1120px;margin:0 auto;padding:0 20px}
.section{padding:72px 0}
.narrow{max-width:800px;margin:0 auto}
.lead{font-size:1.125rem;color:var(--muted)}

.btn{
  display:inline-block;padding:12px 18px;border-radius:12px;
  background:var(--brand);color:#fff;font-weight:600;
  box-shadow:0 6px 20px var(--ring);
  transition:transform .12s ease, background .2s ease, box-shadow .2s ease
}
.btn:hover{background:var(--brand-600);transform:translateY(-1px)}
.btn-lite{background:#fff;color:var(--brand);border:1px solid var(--brand);box-shadow:none}
.muted{color:var(--muted)}

.table{width:100%;border-collapse:collapse}
.table th,.table td{border-bottom:1px solid #e5e7eb;padding:8px;text-align:left}

.alert{padding:10px 12px;background:#fff3cd;border:1px solid #ffe08a;border-radius:8px;margin:12px 0}
.alert.success{background:#e6ffed;border-color:#abf5b1}

.row{display:flex;gap:12px;flex-wrap:wrap}
.grid{display:grid;gap:20px}
.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}

.header-grid{
  display:grid;grid-template-columns:1fr auto auto;gap:16px;
  align-items:center;padding:14px 0
}
.logo{display:flex;gap:10px;align-items:center;font-weight:800;color:var(--text)}
.logo img{height:40px;width:auto}
.nav a{margin:0 10px;font-weight:600;color:var(--text)}
.nav a:hover{color:var(--brand)}
.lang-switch a{margin-left:10px;padding:6px 8px;border-radius:8px;border:1px solid transparent}
.lang-switch a.active{border-color:var(--brand);background:rgba(2,132,199,.08)}
.site-header{position:sticky;top:0;background:#fff;border-bottom:1px solid #eef;z-index:50}

.site-footer{background:#0b1220;color:#fff;padding:36px 0}
.site-footer a{color:#fff;text-decoration:underline}
.footer-grid{display:grid;grid-template-columns:2fr 2fr 1fr;gap:20px;align-items:center}

/* ===== HERO (базовое) ===== */
.hero{background:linear-gradient(180deg,#eff6ff,transparent)}
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:30px;align-items:center}
.hero h1{font-size:2.4rem;margin:0 0 12px}
.hero-media{position:relative}
.hero-media img{width:100%;border-radius:20px;box-shadow:0 20px 60px rgba(2,132,199,.15)}
.pill{position:absolute;border-radius:999px;filter:blur(10px)}
.pill-1{width:120px;height:120px;background:rgba(14,165,233,.25);top:-10px;right:-10px}
.pill-2{width:80px;height:80px;background:rgba(2,132,199,.25);bottom:-10px;left:-10px}

/* ===== PRODUCTS (табы и карточки) ===== */
.products .tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.tab{padding:10px 14px;border-radius:12px;border:1px solid #e5e7eb;background:#fff;cursor:pointer;font-weight:600}
.tab.active, .tab:hover{border-color:var(--brand);box-shadow:0 6px 16px var(--ring)}
.tabpanes .tabpanel{display:none}
.tabpanes .tabpanel.active{display:block}
.cards{grid-template-columns:repeat(3,minmax(0,1fr))}
.card{
  background:var(--card);border:1px solid #eef;border-radius:16px;
  overflow:hidden;display:flex;flex-direction:column;
  transition:transform .15s ease, box-shadow .2s ease
}
.card:hover{transform:translateY(-2px);box-shadow:0 16px 40px rgba(2,132,199,.12)}
.card img{width:100%;height:180px;object-fit:cover}
.card-body{padding:14px}
.card h3{margin:0 0 6px;font-size:1.05rem}
.sku{font-size:.9rem;color:var(--muted);margin:6px 0}

/* ===== CONTACTS ===== */
.contacts .map-box{
  background:var(--card);border:1px solid #eef;border-radius:16px;
  min-height:240px;display:flex;align-items:center;justify-content:center
}
.map-placeholder{color:var(--muted)}

/* ===== ADMIN ===== */
.admin-top{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  background:#fff;border-bottom:1px solid #eef;padding:10px 16px
}
label{display:grid;gap:6px;margin:8px 0}
input,select,textarea{padding:10px;border:1px solid #e5e7eb;border-radius:10px;width:100%}
button.btn, .btn{cursor:pointer}

/* ===== ENHANCED HERO: красивый фон, орбы, фичи, счётчики ===== */
.hero.enhanced{
  position:relative;overflow:hidden;
  background:
    radial-gradient(1200px 600px at 10% -10%, #e6f6ff 0%, transparent 60%),
    linear-gradient(180deg,#f5faff 0%,#ffffff 100%)
}
.bg-orbs{position:absolute;inset:0;pointer-events:none;z-index:0}
.bg-orbs .orb{position:absolute;border-radius:999px;filter:blur(30px);opacity:.6;animation:float 12s ease-in-out infinite}
.bg-orbs .orb-a{width:360px;height:360px;background:#b3e2ff;top:-80px;left:-60px}
.bg-orbs .orb-b{width:280px;height:280px;background:#d0f0ff;right:10%;top:20%}
.bg-orbs .orb-c{width:240px;height:240px;background:#e0f7ff;left:35%;bottom:-60px;animation-duration:14s}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-16px)}}

.hero-cta{display:flex;gap:12px;margin-top:14px;flex-wrap:wrap}
.hero-features{
  display:flex;gap:12px;flex-wrap:wrap;margin:16px 0 8px;
  padding:0;list-style:none;color:var(--muted)
}
.counters{display:flex;gap:18px;flex-wrap:wrap;margin-top:10px}
.counter{
  background:#fff;border:1px solid #eef;padding:10px 14px;border-radius:12px;
  box-shadow:0 8px 20px rgba(2,132,199,.08)
}
.counter .num{font-weight:800;font-size:1.2rem}
.floating-card{
  position:absolute;right:-6px;bottom:-10px;background:#fff;
  border:1px solid #e6f2fb;border-radius:14px;padding:10px 12px;
  box-shadow:0 18px 60px rgba(2,132,199,.15);
  animation:bob 4s ease-in-out infinite
}
@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}

/* ===== REVEAL-АНИМАЦИИ при скролле ===== */
.reveal-up{opacity:0;transform:translateY(18px);transition:opacity .6s ease, transform .6s ease}
.reveal-fade{opacity:0;transition:opacity .8s ease}
.reveal-show{opacity:1;transform:none}

/* ===== ABOUT (усилено) ===== */
.about.enhanced{background:linear-gradient(180deg,#ffffff 0%, #f8fbff 100%)}
.about-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:24px;align-items:stretch}
.about-card{
  background:#fff;border:1px solid #eef;border-radius:16px;
  padding:20px;box-shadow:0 10px 26px rgba(0,0,0,.04)
}
.ticks{margin:14px 0 0;padding-left:0;list-style:none}
.ticks li{margin:6px 0;color:var(--text)}
.about-cards{display:grid;grid-template-columns:1fr;gap:16px}
.about-cards .mini{
  border-radius:16px;padding:16px;border:1px solid #eaf2ff;
  background:linear-gradient(180deg,#ffffff 0,#f7fbff 100%);
  box-shadow:0 8px 20px rgba(2,132,199,.06)
}
.mini.stat .stat-num{font-size:1.8rem;font-weight:900}
.mini.note .note-title{font-weight:800;margin-bottom:6px}
.mini.badge .badge-title{
  display:inline-block;font-weight:900;border:2px dashed var(--brand);
  padding:2px 8px;border-radius:999px
}

/* ===== Адаптив ===== */
@media (max-width: 960px){
  .hero-grid{grid-template-columns:1fr}
  .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer-grid{grid-template-columns:1fr}
  .about-grid{grid-template-columns:1fr}
}
@media (max-width: 600px){
  .cards{grid-template-columns:1fr}
  .header-grid{grid-template-columns:1fr;gap:8px}
  .nav{display:flex;gap:12px;flex-wrap:wrap}
}

/* ===== Уважение к reduced motion ===== */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
}
/* === Глобальный фон сайта (на всю страницу) === */
body{
  /* мягкий белый оверлей поверх фоновой картинки — читабельность + фирменный стиль */
  background:
    linear-gradient(rgba(255,255,255,.88), rgba(255,255,255,.88)),
    url('/uploads/fon.png') center / cover fixed no-repeat !important;
}

/* На iOS/мобилках fixed бывает тяжёлым — заменим на scroll ниже 768px */
@media (max-width: 768px){
  body{
    background:
      linear-gradient(rgba(255,255,255,.92), rgba(255,255,255,.92)),
      url('/uploads/fon.png') center / cover no-repeat !important;
    background-attachment: scroll;
  }
}
/* === Красно-розовые акценты по всему сайту === */
:root{
  --brand:#e11d48;      /* rose-600 — мягко красный */
  --brand-600:#be123c;  /* rose-700 */
  --ring:rgba(225,29,72,.16);
}

/* WhatsApp кнопка */
.wa-btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px; border-radius:999px; font-weight:700;
  background:#25D366; color:#fff; border:1px solid rgba(0,0,0,.05);
  box-shadow:0 8px 18px rgba(37,211,102,.25);
}
.wa-btn:hover{ filter:brightness(1.03); transform:translateY(-1px); transition:.15s ease }
.wa-btn .wa-ic{ width:18px; height:18px }

/* Desktop-only / Mobile-only helpers */
.hide-on-mobile{ display:inline-flex }
.show-on-mobile{ display:none }
@media (max-width: 900px){
  .hide-on-mobile{ display:none !important }
  .show-on-mobile{ display:inline-flex !important }
}

/* Бургер и мобильное меню */
.burger{
  width:40px;height:40px;border:1px solid #eee;border-radius:10px;background:#fff;
  display:inline-grid;place-items:center;gap:0 0;cursor:pointer
}
.burger span{display:block;width:20px;height:2px;background:#111;border-radius:2px;margin:2px 0}
.burger.close span:nth-child(2){opacity:0}
.burger.close span:nth-child(1){transform:translateY(4px) rotate(45deg)}
.burger.close span:nth-child(3){transform:translateY(-4px) rotate(-45deg)}

.mobile-menu{position:fixed;inset:0;z-index:100;display:grid;grid-template-columns:1fr;align-items:stretch;opacity:0;pointer-events:none;transition:opacity .2s ease}
.mobile-menu.open{opacity:1;pointer-events:auto}
.mobile-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.35)}
.mobile-panel{
  position:absolute;right:0;top:0;height:100%;width:min(88vw,380px);background:#fff;color:#111;
  padding:16px;display:grid;gap:10px;grid-auto-rows:min-content;
  border-left:1px solid #eee;transform:translateX(100%);transition:transform .2s ease
}
.mobile-menu.open .mobile-panel{ transform:translateX(0) }
.mobile-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.mobile-panel a{padding:12px 10px;border-radius:10px;border:1px solid #eee;background:#fff}
.mobile-panel a:hover{border-color:var(--brand)}
.mobile-lang{display:flex;gap:10px;margin-top:6px}
.mobile-lang a{padding:8px 10px;border:1px solid #eee;border-radius:10px}
.mobile-lang a.active{border-color:var(--brand);background:rgba(225,29,72,.08)}
.wa-btn.wide{justify-content:center;margin-top:8px}
.no-scroll{overflow:hidden}

/* Разделители между секциями */
.section + .section{
  border-top:1px solid rgba(225,29,72,.18);
  background:
    linear-gradient(0deg, rgba(225,29,72,.06), rgba(225,29,72,0)) top/100% 28px no-repeat,
    inherit;
}

/* «Заполнить бока» — делаем шире контейнер и более гибкую сетку карточек */
.container{ max-width:1360px }
.cards{ grid-template-columns:repeat(auto-fit,minmax(240px,1fr)) }

/* Тёплые оттенки в hero pills/orbs */
.pill-1{ background:rgba(244,63,94,.25) }   /* rose-500 */
.pill-2{ background:rgba(225,29,72,.25) }   /* rose-600 */
.bg-orbs .orb-a{ background:#ffc0ca }  /* светло-розовый */
.bg-orbs .orb-b{ background:#ffd6de }
.bg-orbs .orb-c{ background:#ffe6ea }

/* Полноэкранный фон: сохраним читабельность */
body{
  background:
    linear-gradient(rgba(255,255,255,.56), rgba(255,255,255,.86)),
    url('/uploads/fon.png') center / cover fixed no-repeat !important;
}
@media (max-width: 768px){
  body{
    background:
      linear-gradient(rgba(255,255,255,.92), rgba(255,255,255,.92)),
      url('/uploads/fon.png') center / cover no-repeat !important;
    background-attachment: scroll;
  }
}

/* Навигация: на мобилке скрываем верхнюю, используем бургер */
@media (max-width: 900px){
  .nav{ display:none }
  .actions{ display:flex; gap:10px; align-items:center }
}

/* Небольшие акценты для кнопок/таба при красной теме */
.tab.active, .tab:hover{ border-color:var(--brand); box-shadow:0 6px 16px var(--ring) }
.btn{ box-shadow:0 8px 24px var(--ring) }

/* Кнопка WhatsApp внутри карточек */
.card .wa-btn.card-wa{
  width:100%;
  justify-content:center;
  margin-top:8px;
  font-weight:800;
}
