/* ===== DESIGN TOKENS ===== */
:root {
  --green:        #1D9E75;
  --green-light:  #E1F5EE;
  --green-mid:    #9FE1CB;
  --green-dark:   #0F6E56;
  --green-deeper: #085041;
  --text:         #1a1a1a;
  --text-muted:   #6b7280;
  --border:       #e5e7eb;
  --bg:           #ffffff;
  --bg-soft:      #f9fafb;
  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    14px;
  --shadow:       0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:    0 4px 12px rgba(0,0,0,.10);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, sans-serif; color: var(--text); background: var(--bg); line-height: 1.7; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== LAYOUT ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }

/* ===== NAV ===== */
.nav { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.nav__logo { display:flex; align-items:center; gap:10px; white-space:nowrap; text-decoration:none; }
.nav__logo-emblem { flex-shrink:0; transition:transform .25s; }
.nav__logo:hover .nav__logo-emblem { transform:rotate(-6deg) scale(1.05); }
.nav__logo-text { display:flex; flex-direction:column; line-height:1.15; }
.nav__logo-name { font-family:'Playfair Display', Georgia, serif; font-weight:700; font-size:1rem; color:var(--green-dark); letter-spacing:.01em; }
.nav__logo-latin { font-size:.62rem; font-weight:500; color:#1D9E75; letter-spacing:.14em; text-transform:uppercase; opacity:.85; }
.nav__links { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.nav__links a { padding: 7px 11px; border-radius: var(--radius-sm); font-size: .9rem; color: var(--text-muted); transition: background .15s, color .15s; white-space: nowrap; }
.nav__links a:hover { background: var(--bg-soft); color: var(--text); }
.nav__links a.active { color: var(--green-dark); background: var(--green-light); font-weight: 600; }
.nav__cta { background: var(--green); color: #fff !important; border-radius: var(--radius-sm); padding: 7px 15px !important; font-weight: 600; transition: background .15s !important; }
.nav__cta:hover { background: var(--green-dark) !important; }

/* Digest button in nav */
.nav__digest {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff7e6; color: #b45309 !important;
  border: 1px solid #fcd34d; border-radius: var(--radius-sm);
  padding: 6px 12px !important; font-weight: 600 !important; font-size: .85rem !important;
  transition: background .15s !important;
}
.nav__digest:hover { background: #fef3c7 !important; color: #92400e !important; }

/* Contact strip in nav (phone + messengers) */
.nav__contact {
  display: flex; align-items: center; gap: 8px; margin-left: 6px;
}
.nav__phone {
  font-size: .82rem; font-weight: 600; color: var(--green-dark);
  white-space: nowrap; text-decoration: none;
}
.nav__phone:hover { color: var(--green); }
.nav__messenger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  transition: transform .15s, opacity .15s;
}
.nav__messenger:hover { transform: scale(1.12); opacity: .85; }
.nav__messenger--viber { background: #7360F2; }
.nav__messenger--tg    { background: #29A8E0; }
.nav__messenger--fb    { background: #1877F2; }
.nav__messenger svg    { width: 16px; height: 16px; fill: #fff; }

/* ── Floating Viber button ─────────────────────────────────── */
.float-viber {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #7360F2;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(115,96,242,.45);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.float-viber:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(115,96,242,.55); }
.float-viber svg { width: 28px; height: 28px; fill: #fff; }
.float-viber__tooltip {
  position: absolute; right: 66px; top: 50%; transform: translateY(-50%);
  background: #1a1a1a; color: #fff; font-size: .78rem; font-weight: 500;
  padding: 5px 10px; border-radius: 6px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.float-viber__tooltip::after {
  content: ''; position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  border: 5px solid transparent; border-left-color: #1a1a1a;
}
.float-viber:hover .float-viber__tooltip { opacity: 1; }

/* ── Hamburger button ───────────────────────────────────────── */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  padding: 4px; border-radius: var(--radius-sm);
  transition: background .15s;
  flex-shrink: 0;
}
.nav__burger:hover { background: var(--bg-soft); }
.nav__burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav drawer ──────────────────────────────────────── */
.nav__mobile {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 99;
  padding: 12px 0 20px;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform .25s, opacity .25s;
  pointer-events: none;
}
.nav__mobile.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav__mobile a {
  display: block;
  padding: 12px 20px;
  font-size: 1rem; color: var(--text);
  border-radius: 0;
  transition: background .15s, color .15s;
}
.nav__mobile a:hover { background: var(--bg-soft); color: var(--green-dark); }
.nav__mobile a.active { color: var(--green-dark); font-weight: 600; background: var(--green-light); }
.nav__mobile .nav__mobile-cta {
  margin: 12px 16px 0;
  display: block;
  background: var(--green); color: #fff !important;
  border-radius: var(--radius); padding: 13px 20px !important;
  font-weight: 600; text-align: center;
}
.nav__mobile .nav__mobile-cta:hover { background: var(--green-dark) !important; }

@media (max-width: 900px) {
  .nav__contact { display: none; }
  .nav__links a { padding: 6px 8px; font-size: .82rem; }
}
@media (max-width: 768px) {
  .nav__burger { display: flex; }
  .nav__links { display: none; }
  .nav__mobile { display: block; }
}
@media (max-width: 640px) {
  .float-viber { bottom: 16px; right: 16px; width: 50px; height: 50px; }
  .float-viber svg { width: 24px; height: 24px; }
}

/* ===== HERO ===== */
.hero { padding: 80px 0 72px; }
.hero__tag { display: inline-flex; align-items: center; gap: 6px; background: var(--green-light); color: var(--green-dark); font-size: .82rem; font-weight: 600; padding: 4px 12px; border-radius: 20px; margin-bottom: 20px; letter-spacing: .03em; text-transform: uppercase; }
.hero__title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.2; margin-bottom: 16px; max-width: 680px; }
.hero__title span { color: var(--green); }
.hero__sub { font-size: 1.1rem; color: var(--text-muted); max-width: 560px; margin-bottom: 36px; }
.hero__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius); font-weight: 600; font-size: .95rem; cursor: pointer; border: none; transition: background .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); }
.btn--outline { background: transparent; color: var(--green-dark); border: 2px solid var(--green-mid); }
.btn--outline:hover { background: var(--green-light); }

/* ===== STATS ===== */
.stats { display: flex; gap: 32px; flex-wrap: wrap; padding: 32px 0; border-top: 1px solid var(--border); margin-top: 48px; }
.stats__item { }
.stats__num { font-size: 1.8rem; font-weight: 700; color: var(--green-dark); }
.stats__label { font-size: .85rem; color: var(--text-muted); }

/* ===== CARDS GRID ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__icon { width: 48px; height: 48px; background: var(--green-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--green); margin-bottom: 16px; }
.card__icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card__title { font-weight: 700; font-size: 1rem; margin-bottom: 8px; }
.card__text { font-size: .9rem; color: var(--text-muted); line-height: 1.55; }
.card__badges { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.badge { font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; background: var(--green-light); color: var(--green-dark); }

/* ===== STEPS ===== */
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.step { display: flex; gap: 16px; }
.step__num { flex-shrink: 0; width: 40px; height: 40px; background: var(--green); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .95rem; }
.step__title { font-weight: 700; margin-bottom: 6px; }
.step__text { font-size: .9rem; color: var(--text-muted); }

/* ===== DOCTOR CARD ===== */
.doctor-card { background: var(--green-light); border-radius: var(--radius-lg); padding: 36px; display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.doctor-card__avatar { width: 100px; height: 100px; border-radius: 50%; background: var(--green-mid); flex-shrink: 0; object-fit: cover; }
.doctor-card__name { font-size: 1.25rem; font-weight: 700; color: var(--green-deeper); }
.doctor-card__role { color: var(--green-dark); font-size: .9rem; margin-bottom: 10px; }
.doctor-card__text { font-size: .92rem; color: var(--text); max-width: 500px; }

/* ===== CTA STRIP ===== */
.cta-strip { background: var(--green); color: #fff; text-align: center; padding: 56px 20px; }
.cta-strip h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; }
.cta-strip p { opacity: .88; margin-bottom: 28px; }
.btn--white { background: #fff; color: var(--green-dark); }
.btn--white:hover { background: var(--green-light); }

/* ===== SERVICES PAGE ===== */
.service-row { display: flex; gap: 20px; align-items: flex-start; padding: 24px 0; border-bottom: 1px solid var(--border); }
.service-row:last-child { border-bottom: none; }
.service-row__icon { flex-shrink: 0; width: 44px; height: 44px; background: var(--green-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--green); }
.service-row__icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-row__title { font-weight: 700; margin-bottom: 6px; }
.service-row__desc { font-size: .9rem; color: var(--text-muted); }

.format-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 40px; }
.format-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.format-card__title { font-weight: 700; margin-bottom: 8px; }
.format-card__text { font-size: .88rem; color: var(--text-muted); }

/* ===== HOSPICE PAGE ===== */
.perks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.perk { background: var(--bg-soft); border-radius: var(--radius); padding: 22px; }
.perk__icon { font-size: 1.6rem; margin-bottom: 10px; }
.perk__title { font-weight: 700; margin-bottom: 6px; }
.perk__text { font-size: .88rem; color: var(--text-muted); }

/* ===== CONTACTS PAGE ===== */
.contact-methods { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }
.contact-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 28px; display: flex; align-items: center; gap: 14px; min-width: 220px; }
.contact-card__icon { color: var(--green); }
.contact-card__icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-card__label { font-size: .8rem; color: var(--text-muted); }
.contact-card__value { font-weight: 600; }

.hours-block { background: var(--green-light); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 48px; }
.hours-block h3 { color: var(--green-dark); margin-bottom: 14px; font-weight: 700; }
.hours-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--green-mid); font-size: .92rem; }
.hours-row:last-child { border-bottom: none; }

.form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); }
.form__header { margin-bottom: 28px; }
.form__header h2 { font-size: 1.5rem; margin-bottom: 6px; color: var(--green-dark); }
.form__header p { color: var(--text-muted); font-size: .95rem; }
.form__req { color: #dc2626; font-weight: 700; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__group { display: flex; flex-direction: column; gap: 7px; }
.form__group--full { grid-column: 1 / -1; }
.form label { font-size: .9rem; font-weight: 600; color: var(--text); }
.form input, .form select, .form textarea { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 1rem; font-family: inherit; width: 100%; outline: none; transition: border-color .15s, box-shadow .15s; color: var(--text); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(29,158,117,.12); }
.form textarea { resize: vertical; min-height: 130px; }
.form__consent { display: flex; align-items: flex-start; gap: 8px; font-size: .88rem; color: var(--text-muted); cursor: pointer; line-height: 1.5; }
.form__hint { margin-top: 12px; font-size: .88rem; color: var(--text-muted); line-height: 1.6; }
.btn--lg { padding: 14px 32px; font-size: 1.05rem; }
.form__success { display: none; text-align: center; padding: 40px 20px; }
.form__success h3 { color: var(--green-dark); margin-bottom: 8px; }

/* ===== PAGE TITLE ===== */
.page-hero { background: linear-gradient(135deg, var(--green-light) 0%, var(--bg) 60%); padding: 52px 0 48px; border-bottom: 1px solid var(--border); }
.page-hero__tag { display: inline-block; background: var(--green-light); color: var(--green-dark); font-size: .8rem; font-weight: 700; padding: 3px 12px; border-radius: 20px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; color: var(--green-deeper); margin-bottom: 10px; }
.page-hero p { color: var(--text-muted); max-width: 540px; }

/* ===== FOOTER ===== */
.footer { background: var(--green-deeper); color: rgba(255,255,255,.7); padding: 48px 0 32px; }
.footer__inner { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 36px; align-items: start; }
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__logo { display: flex; align-items: center; font-weight: 700; font-size: 1.1rem; color: #fff; }
.footer__desc { font-size: .85rem; line-height: 1.65; color: rgba(255,255,255,.6); }
.footer__socials { display: flex; gap: 8px; margin-top: 4px; }
.footer__socials a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; transition: opacity .2s, transform .2s; }
.footer__socials a:hover { opacity: .85; transform: translateY(-2px); }
.footer__col h4 { color: #fff; font-size: .82rem; margin-bottom: 14px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.footer__col a { display: block; font-size: .85rem; margin-bottom: 9px; color: rgba(255,255,255,.6); transition: color .15s; }
.footer__col a:hover { color: #5DE8B4; }
/* Office info block (contacts page) */
.office-block { background: var(--green-light); border-left: 3px solid var(--green); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; }
.office-block__header { display: flex; align-items: center; gap: 8px; color: var(--green-dark); margin-bottom: 10px; }
.office-block p { font-size: .92rem; line-height: 1.65; color: var(--text); margin-bottom: 8px; }
.office-block p:last-child { margin-bottom: 0; }
.office-block a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 2px; }
.office-block a:hover { color: var(--green); }
.office-block__record { background: rgba(29,158,117,.12); border-radius: var(--radius-sm); padding: 10px 14px; margin-top: 12px !important; }

.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; text-align: center; color: rgba(255,255,255,.4); }

/* ===== SECTION HEADING ===== */
.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 700; margin-bottom: 8px; }
.section-head p { color: var(--text-muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1.5fr 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  /* nav__links hidden — mobile drawer handles it */
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .form__grid { grid-template-columns: 1fr; }
  .doctor-card { flex-direction: column; text-align: center; }
  /* hero grid → single column */
  .hero-lc .container { grid-template-columns: 1fr; padding-block: 48px; gap: 32px; }
  .hero-lc h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
}
@media (max-width: 480px) {
  .footer__inner { grid-template-columns: 1fr; }
  .hero-lc .container { padding-block: 36px; }
}
@media (max-width: 520px) {
  .hero { padding: 48px 0 40px; }
  .section { padding: 40px 0; }
}
