/* MediBula — Frontend Design System v2 */
:root {
  --fe-navy:     #012935;
  --fe-navy-2:   #01404f;
  --fe-teal:     #0CB8B6;
  --fe-teal-d:   #0aa09e;
  --fe-teal-l:   #e6f9f9;
  --fe-white:    #ffffff;
  --fe-bg:       #f7f9fb;
  --fe-text:     #1a2e35;
  --fe-text2:    #4a6070;
  --fe-text3:    #8097a4;
  --fe-border:   #e2e8f0;
  --fe-rad:      10px;
  --fe-shadow:   0 2px 8px rgba(1,41,53,.08);
  --fe-shadow-l: 0 8px 28px rgba(1,41,53,.13);
  --fe-mw:       1200px;
}

*,*::before,*::after { box-sizing: border-box; }

/* ── Header ── */
.fe-hdr {
  background: var(--fe-navy);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 16px rgba(1,41,53,.22);
}
.fe-hdr__in {
  max-width: var(--fe-mw);
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.fe-hdr__logo {
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -.025em;
  flex-shrink: 0;
}
.fe-hdr__logo img { height: 36px; width: auto; display: block; filter: brightness(0) invert(1); }
.fe-hdr__logo-t span { color: var(--fe-teal); }
.fe-hdr__nav {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.fe-hdr__nav a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color .15s;
  white-space: nowrap;
}
.fe-hdr__nav a:hover { color: var(--fe-teal); }
@media (max-width: 600px) {
  .fe-hdr__nav { display: none; }
}

/* ── Hero ── */
.fe-hero {
  background: linear-gradient(135deg, var(--fe-navy) 0%, var(--fe-navy-2) 100%);
  padding: 60px 24px 68px;
  text-align: center;
}
.fe-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(12,184,182,.12);
  color: var(--fe-teal);
  border: 1px solid rgba(12,184,182,.25);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.fe-hero__h1 {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  color: #fff;
  line-height: 1.18;
  margin: 0 0 14px;
  letter-spacing: -.025em;
}
.fe-hero__h1 em { color: var(--fe-teal); font-style: normal; }
.fe-hero__sub {
  font-size: 16px;
  color: rgba(255,255,255,.58);
  margin: 0 auto 34px;
  max-width: 460px;
  line-height: 1.65;
}
.fe-hero__srch {
  max-width: 540px;
  margin: 0 auto;
  position: relative;
}
.fe-hero__srch input {
  width: 100%;
  height: 52px;
  padding: 0 52px 0 18px;
  border-radius: 12px;
  border: 2px solid rgba(12,184,182,.35);
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color .2s, background .2s;
}
.fe-hero__srch input::placeholder { color: rgba(255,255,255,.38); }
.fe-hero__srch input:focus {
  border-color: var(--fe-teal);
  background: rgba(255,255,255,.11);
}
.fe-hero__srch-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--fe-teal);
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background .15s;
}
.fe-hero__srch-btn:hover { background: var(--fe-teal-d); }
.fe-hero__srch-res {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--fe-shadow-l);
  overflow: hidden;
  z-index: 50;
  max-height: 320px;
  overflow-y: auto;
}
.fe-hero__srch-res a {
  display: block;
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--fe-text);
  border-bottom: 1px solid var(--fe-border);
  text-decoration: none;
  transition: background .12s;
}
.fe-hero__srch-res a:last-child { border-bottom: none; }
.fe-hero__srch-res a:hover { background: var(--fe-teal-l); }

/* ── Section wrapper ── */
.fe-sec {
  max-width: var(--fe-mw);
  margin: 0 auto;
  padding: 52px 24px 48px;
}
.fe-sec__hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 26px;
}
.fe-sec__title {
  font-size: 21px;
  font-weight: 700;
  color: var(--fe-text);
  letter-spacing: -.015em;
}
.fe-sec__more {
  font-size: 13px;
  color: var(--fe-teal);
  text-decoration: none;
  font-weight: 500;
}
.fe-sec__more:hover { text-decoration: underline; }

/* ── Card grid ── */
.fe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 860px) { .fe-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .fe-grid { grid-template-columns: 1fr; } }

.fe-card {
  background: #fff;
  border: 1px solid var(--fe-border);
  border-radius: var(--fe-rad);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.fe-card:hover {
  box-shadow: var(--fe-shadow-l);
  transform: translateY(-2px);
  border-color: rgba(12,184,182,.3);
}
.fe-card__ico {
  width: 38px;
  height: 38px;
  background: var(--fe-teal-l);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fe-card__ico svg { width: 18px; height: 18px; stroke: var(--fe-teal); fill: none; stroke-width: 1.8; }
.fe-card__name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fe-text);
  line-height: 1.35;
}
.fe-card__intro {
  font-size: 12.5px;
  color: var(--fe-text2);
  line-height: 1.6;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fe-card__cta {
  font-size: 12px;
  font-weight: 600;
  color: var(--fe-teal);
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ── Footer ── */
.fe-ftr { background: var(--fe-navy); }
.fe-ftr__top {
  max-width: var(--fe-mw);
  margin: 0 auto;
  padding: 52px 24px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 700px) {
  .fe-ftr__top { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
}
.fe-ftr__brand-name {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -.02em;
}
.fe-ftr__brand-name span { color: var(--fe-teal); }
.fe-ftr__brand-desc {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
  max-width: 260px;
}
.fe-ftr__col-h {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(255,255,255,.4);
  margin: 0 0 14px;
}
.fe-ftr__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.fe-ftr__links a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: 13px;
  transition: color .15s;
}
.fe-ftr__links a:hover { color: var(--fe-teal); }
.fe-ftr__bot {
  max-width: var(--fe-mw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,.32);
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Bula page layout ── */
.fe-bula-wrap {
  max-width: var(--fe-mw);
  margin: 0 auto;
  padding: 28px 24px 56px;
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: flex-start;
}
.fe-bula-main {
  flex: 1;
  min-width: 0;
}
@media (max-width: 880px) {
  .fe-bula-wrap { flex-direction: column; }
  .fe-bula-aside { display: none; }
}

/* Breadcrumb */
.fe-bc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--fe-text3);
  margin-bottom: 18px;
}
.fe-bc a { color: var(--fe-teal); text-decoration: none; }
.fe-bc a:hover { text-decoration: underline; }
.fe-bc__sep { color: var(--fe-border); }

/* Bula header */
.fe-bula-hdr {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--fe-teal-l);
}
.fe-bula-hdr__h1 {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  color: var(--fe-navy);
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.fe-bula-hdr__intro {
  font-size: 14px;
  color: var(--fe-text2);
  line-height: 1.7;
  background: var(--fe-teal-l);
  border-left: 3px solid var(--fe-teal);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 0;
}

/* Sidebar */
.fe-bula-aside {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 78px;
}
.fe-aside-card {
  background: #fff;
  border: 1px solid var(--fe-border);
  border-radius: var(--fe-rad);
  padding: 16px;
  margin-bottom: 16px;
}
.fe-aside-card__title {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--fe-text3);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--fe-border);
}
.fe-rel-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--fe-border);
  text-decoration: none;
}
.fe-rel-item:last-child { border-bottom: none; }
.fe-rel-item__dot {
  width: 6px;
  height: 6px;
  background: var(--fe-teal);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.fe-rel-item__t {
  font-size: 12.5px;
  color: var(--fe-text);
  line-height: 1.4;
  transition: color .12s;
}
.fe-rel-item:hover .fe-rel-item__t { color: var(--fe-teal); }

/* ── Body base ── */
body { background: var(--fe-bg); }
