/* ============================================================
   HEART HEALTH — Cardiology Hospital
   Design System & Global Styles
   ============================================================ */

:root {
  --navy: #071E3D;
  --navy-800: #0A2547;
  --darkblue: #0C2E53;
  --red: #C8102E;
  --red-bright: #E3263E;
  --white: #FFFFFF;
  --paleblue: #F1F6FC;
  --softgray: #F6F8FB;
  --body: #38465A;
  --muted: #6B7A90;
  --line: #E3EAF3;
  --line-strong: #D3DEEB;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 4px 14px rgba(7, 30, 61, .06);
  --shadow: 0 14px 40px rgba(7, 30, 61, .10);
  --shadow-lg: 0 28px 60px rgba(7, 30, 61, .16);

  --container: 1200px;
  --gutter: 24px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;

  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; color: var(--navy); font-family: var(--font-head); font-weight: 700; line-height: 1.18; letter-spacing: -.01em; }
p { margin: 0; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red-bright); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 400; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 12px 0; font-weight: 700; }
.skip-link:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 88px 0; }
.section--tight { padding: 64px 0; }
.section--pale { background: var(--paleblue); }
.section--soft { background: var(--softgray); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 12.5px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); border-radius: 2px; }
.eyebrow--center::after { content: ""; width: 26px; height: 2px; background: var(--red); border-radius: 2px; }
.h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.lead { font-size: 1.06rem; color: var(--body); }
.muted { color: var(--muted); }
.red { color: var(--red); }
.navy { color: var(--navy); }
.section-head { max-width: 720px; }
.section-head--center { margin: 0 auto; text-align: center; }
.section-head p { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px; line-height: 1;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background-color .22s var(--ease), color .22s var(--ease);
  white-space: nowrap; will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 12px 26px rgba(200, 16, 46, .28); }
.btn--primary:hover { background: var(--red-bright); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(200, 16, 46, .34); }
.btn--navy { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn--navy:hover { background: var(--darkblue); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line-strong); }
.btn--ghost:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--red); box-shadow: 0 12px 26px rgba(7, 30, 61, .18); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(7, 30, 61, .26); }
.btn--outline-light { border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); }
.btn--block { width: 100%; }
.btn--lg { padding: 17px 34px; font-size: 16px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; color: var(--red); font-size: 14.5px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .22s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ============================================================
   TOP INFORMATION BAR
   ============================================================ */
.topbar {
  background: var(--navy); color: #cfe0f5; font-size: 13.5px;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 42px; padding: 6px 0;
}
.topbar__left { display: flex; align-items: center; gap: 10px; }
.topbar__left svg { width: 16px; height: 16px; color: var(--red-bright); flex: none; }
.topbar__left span { color: #dbe8f8; }
.topbar__right { display: flex; align-items: center; gap: 22px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; color: #cfe0f5; transition: color .2s var(--ease); }
.topbar__item svg { width: 15px; height: 15px; color: var(--red-bright); }
.topbar__item:hover { color: #fff; }
.topbar__socials { display: flex; align-items: center; gap: 8px; padding-left: 22px; border-left: 1px solid rgba(255,255,255,.14); }
.topbar__socials a {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.topbar__socials a:hover { background: var(--red); transform: translateY(-2px); }
.topbar__socials svg { width: 14px; height: 14px; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), padding .3s var(--ease);
}
.header.is-stuck { box-shadow: 0 10px 30px rgba(7,30,61,.09); }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand svg { height: 46px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 21px; color: var(--navy); letter-spacing: .01em; }
.brand__sub { font-size: 8.5px; letter-spacing: .26em; color: var(--red); font-weight: 800; text-transform: uppercase; margin-top: 3px; }

.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; padding: 10px 15px; border-radius: 8px;
  font-weight: 700; font-size: 14.5px; color: var(--navy);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 2px; height: 2.5px;
  background: var(--red); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__link:hover { color: var(--red); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--red); }
.nav__link.is-active::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 12px; flex: none; }

.hamburger {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: #fff; place-items: center;
}
.hamburger span { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.hamburger span + span { margin-top: 5px; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(7,30,61,.55);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(360px, 88vw);
  background: #fff; padding: 22px; overflow-y: auto;
  transform: translateX(100%); transition: transform .34s var(--ease);
  box-shadow: -20px 0 60px rgba(7,30,61,.2);
}
.mobile-menu.is-open .mobile-menu__panel { transform: translateX(0); }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mobile-menu__close { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--navy); }
.mobile-menu__close svg { width: 20px; height: 20px; }
.mobile-nav { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }
.mobile-nav a {
  padding: 13px 16px; border-radius: 12px; font-weight: 700; color: var(--navy); font-size: 16px;
  border: 1px solid transparent; transition: background-color .2s var(--ease), color .2s var(--ease);
}
.mobile-nav a:hover, .mobile-nav a.is-active { background: var(--paleblue); color: var(--red); }
.mobile-menu__contact { padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.mobile-menu__contact a { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--body); font-weight: 600; }
.mobile-menu__contact svg { width: 17px; height: 17px; color: var(--red); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 88% -8%, #E7F0FB 0%, rgba(231,240,251,0) 60%),
    linear-gradient(180deg, #FBFDFF 0%, #FFFFFF 100%);
}
.hero__ecg {
  position: absolute; left: 0; right: 0; top: 46%; height: 90px; width: 100%;
  opacity: .5; pointer-events: none; z-index: 0;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding: 74px 0 84px;
}
.hero__title { margin: 18px 0 0; }
.hero__lead { margin-top: 22px; max-width: 520px; font-size: 1.08rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__trust {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; margin-top: 42px;
}
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item__icon {
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); display: grid; place-items: center;
  color: var(--red); box-shadow: var(--shadow-sm);
}
.trust-item__icon svg { width: 22px; height: 22px; }
.trust-item span { font-size: 14px; font-weight: 700; color: var(--navy); line-height: 1.3; }

.hero__media { position: relative; }
.hero__frame {
  position: relative; border-radius: 40% 40% 24px 24px / 26% 26% 24px 24px;
  overflow: hidden; background: var(--paleblue);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  aspect-ratio: 5 / 6;
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero__badge {
  position: absolute; left: -14px; bottom: 34px;
  background: #fff; border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px; border: 1px solid var(--line);
}
.hero__badge svg { width: 30px; height: 30px; color: var(--red); }
.hero__badge b { display: block; color: var(--navy); font-family: var(--font-head); font-size: 17px; }
.hero__badge small { color: var(--muted); font-size: 12px; }
.hero__float {
  position: absolute; right: -10px; top: 40px; background: #fff; border-radius: 16px;
  padding: 12px 16px; box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.hero__float svg { width: 22px; height: 22px; color: var(--red); }
.hero__float span { font-weight: 800; color: var(--navy); font-size: 13.5px; }

/* ============================================================
   HIGHLIGHTS PANEL
   ============================================================ */
.highlights { padding-top: 0; }
.highlights__panel {
  background: linear-gradient(160deg, var(--navy) 0%, var(--darkblue) 100%);
  border-radius: var(--radius-lg); padding: 18px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.highlights__panel::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px; opacity: .5; pointer-events: none;
}
.highlights__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.highlight {
  padding: 32px 26px; border-radius: var(--radius); position: relative;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.highlight + .highlight::before {
  content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px;
  background: rgba(255,255,255,.12);
}
.highlight:hover { background: rgba(255,255,255,.06); transform: translateY(-3px); }
.highlight__icon {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(227, 38, 62, .16); color: var(--red-bright); margin-bottom: 18px;
  border: 1px solid rgba(227,38,62,.3);
}
.highlight__icon svg { width: 27px; height: 27px; }
.highlight h3 { color: #fff; font-size: 1.12rem; margin-bottom: 8px; }
.highlight p { color: #b9cbe2; font-size: 14.5px; }

/* ============================================================
   CARD GRIDS
   ============================================================ */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Service cards */
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm); height: 100%;
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--red), var(--navy)); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  background: var(--paleblue); color: var(--red); margin-bottom: 20px;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.service-card:hover .service-card__icon { background: var(--navy); color: #fff; }
.service-card__icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.service-card p { font-size: 14.8px; margin-bottom: 18px; }
.service-card .link-arrow { margin-top: auto; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { }
.about__grid { display: grid; grid-template-columns: 1fr 1.15fr .95fr; gap: 44px; align-items: center; }
.about__media { position: relative; aspect-ratio: 4 / 5; }
.about__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; height: 100%; object-fit: cover; }
.about__media-accent {
  position: absolute; right: -16px; bottom: -16px; background: var(--navy); color: #fff;
  padding: 18px 22px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.about__media-accent b { font-family: var(--font-head); font-size: 24px; display: block; }
.about__media-accent span { font-size: 12.5px; color: #b9cbe2; }
.about__body p { margin-top: 16px; }
.signature { margin-top: 22px; display: flex; align-items: center; gap: 14px; }
.signature svg { width: 120px; height: 40px; color: var(--navy); }
.signature small { font-size: 12px; color: var(--muted); }

.about__features { display: grid; gap: 22px; }
.feature-item { display: flex; gap: 16px; }
.feature-item__icon {
  width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #fff; box-shadow: 0 10px 22px rgba(200,16,46,.28);
}
.feature-item__icon svg { width: 23px; height: 23px; }
.feature-item h4 { font-family: var(--font-body); font-size: 15px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--navy); margin-bottom: 5px; }
.feature-item p { font-size: 14.6px; }

/* ============================================================
   WHY CHOOSE
   ============================================================ */
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.why__media { position: relative; aspect-ratio: 4 / 3; }
.why__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; height: 100%; object-fit: cover; }
.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 22px; margin: 26px 0 30px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 700; color: var(--navy); font-size: 15px; }
.check-list svg { width: 22px; height: 22px; color: var(--red); flex: none; margin-top: 1px; }

/* ============================================================
   DOCTORS
   ============================================================ */
.doctor-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); height: 100%;
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.doctor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.doctor-card__photo { position: relative; background: var(--paleblue); overflow: hidden; }
.doctor-card__photo img { width: 100%; height: 300px; object-fit: cover; object-position: top center; transition: transform .5s var(--ease); }
.doctor-card:hover .doctor-card__photo img { transform: scale(1.05); }
.doctor-card__photo::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(7,30,61,.06));
}
.doctor-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.doctor-card__role { color: var(--red); font-weight: 800; font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; }
.doctor-card h3 { font-size: 1.22rem; margin: 6px 0 10px; }
.doctor-card p { font-size: 14.4px; margin-bottom: 18px; }
.doctor-card__actions { display: flex; gap: 10px; margin-top: auto; }
.doctor-card__actions .btn { flex: 1; padding: 11px 14px; font-size: 13.5px; }

/* ============================================================
   DIAGNOSTICS
   ============================================================ */
.diag-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); height: 100%;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.diag-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--red); }
.diag-card__top { display: flex; align-items: center; gap: 14px; }
.diag-card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--navy); color: #fff; flex: none;
}
.diag-card__icon svg { width: 26px; height: 26px; }
.diag-card h3 { font-size: 1.08rem; }
.diag-card p { font-size: 14.4px; }
.diag-card .link-arrow { margin-top: auto; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px; box-shadow: var(--shadow-sm); height: 100%; position: relative;
}
.testimonial__quote { font-family: var(--font-head); font-size: 58px; line-height: .6; color: var(--red); opacity: .22; }
.testimonial p { font-size: 15.5px; color: var(--body); margin: 12px 0 22px; position: relative; z-index: 1; }
.testimonial__author { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.testimonial__avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--paleblue); color: var(--navy);
  display: grid; place-items: center; font-weight: 800; font-family: var(--font-head);
}
.testimonial__author b { display: block; color: var(--navy); font-size: 14.5px; }
.testimonial__author small { color: var(--muted); font-size: 12.5px; }

/* ============================================================
   BLOG
   ============================================================ */
.blog-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); height: 100%;
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-card__media { overflow: hidden; background: var(--paleblue); }
.blog-card__media img { width: 100%; height: 210px; object-fit: cover; transition: transform .5s var(--ease); }
.blog-card:hover .blog-card__media img { transform: scale(1.06); }
.blog-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.tag {
  align-self: flex-start; background: var(--paleblue); color: var(--red);
  font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}
.blog-card h3 { font-size: 1.18rem; margin-bottom: 10px; line-height: 1.3; }
.blog-card p { font-size: 14.4px; margin-bottom: 18px; }
.blog-card .link-arrow { margin-top: auto; }
.blog-card__meta { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; display: flex; gap: 14px; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #A50D26 0%, var(--red) 45%, var(--red-bright) 100%);
  border-radius: var(--radius-lg); padding: 46px 44px;
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: auto 1fr auto; gap: 34px; align-items: center;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0; opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='80' viewBox='0 0 160 80'%3E%3Cpath d='M0 40h34l8-20 10 40 10-30 8 10h90' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: center; pointer-events: none;
}
.cta-banner__icon { position: relative; z-index: 1; width: 96px; height: 96px; flex: none; filter: drop-shadow(0 12px 24px rgba(0,0,0,.2)); }
.cta-banner__body { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.25rem); }
.cta-banner p { color: rgba(255,255,255,.9); margin-top: 10px; max-width: 620px; }
.cta-banner__action { position: relative; z-index: 1; }

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--darkblue) 100%);
  color: #fff; padding: 66px 0 70px;
}
.page-hero::after {
  content: ""; position: absolute; right: -60px; top: -40px; width: 340px; height: 340px;
  border-radius: 50%; background: radial-gradient(circle, rgba(227,38,62,.28), transparent 65%);
}
.page-hero h1 { color: #fff; position: relative; z-index: 1; }
.page-hero p { color: #c4d5ea; max-width: 620px; margin-top: 14px; position: relative; z-index: 1; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: #9fb6d2; margin-bottom: 14px; position: relative; z-index: 1; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: .6; }

/* ============================================================
   FORMS
   ============================================================ */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 38px; box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; color: var(--navy); font-size: 14px; }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line-strong);
  border-radius: 12px; background: #fff; color: var(--body);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(200,16,46,.12);
}
.field .hint { font-size: 12.5px; color: var(--muted); }
.field .error-msg { font-size: 12.5px; color: var(--red); display: none; font-weight: 700; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); background: #FFF6F7; }
.field.has-error .error-msg { display: block; }

.info-list { display: grid; gap: 16px; }
.info-card {
  display: flex; gap: 16px; padding: 22px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm);
}
.info-card__icon { width: 50px; height: 50px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--paleblue); color: var(--red); }
.info-card__icon svg { width: 24px; height: 24px; }
.info-card h4 { font-family: var(--font-body); font-size: 15.5px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.info-card p, .info-card a { font-size: 14.4px; color: var(--body); }
.info-card a:hover { color: var(--red); }

.map-placeholder {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background:
    linear-gradient(120deg, #EAF2FB, #F7FAFE),
    repeating-linear-gradient(0deg, #DDE8F5 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, #DDE8F5 0 1px, transparent 1px 46px);
  min-height: 340px; display: grid; place-items: center; text-align: center; padding: 30px;
}
.map-placeholder__pin { width: 56px; height: 56px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; margin: 0 auto 14px; box-shadow: var(--shadow); }
.map-placeholder__pin svg { width: 28px; height: 28px; }
.map-placeholder b { color: var(--navy); font-size: 16px; }

/* ============================================================
   MODAL
   ============================================================ */
.modal {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px;
  background: rgba(7,30,61,.6); opacity: 0; visibility: hidden;
  transition: opacity .28s var(--ease), visibility .28s var(--ease);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__dialog {
  background: #fff; border-radius: var(--radius-lg); max-width: 560px; width: 100%; padding: 34px;
  box-shadow: var(--shadow-lg); transform: translateY(14px) scale(.98);
  transition: transform .3s var(--ease); max-height: 90vh; overflow-y: auto;
  position: relative;
}
.modal.is-open .modal__dialog { transform: translateY(0) scale(1); }
.modal__close { position: absolute; top: 18px; right: 18px; }
.modal__icon { width: 72px; height: 72px; border-radius: 50%; background: rgba(200,16,46,.1); color: var(--red); display: grid; place-items: center; margin: 0 auto 18px; }
.modal__icon svg { width: 38px; height: 38px; }
.modal h3 { text-align: center; font-size: 1.5rem; }
.modal p { text-align: center; margin-top: 10px; }
.modal__summary { margin: 20px 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.modal__summary div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 16px; font-size: 14px; }
.modal__summary div:nth-child(odd) { background: var(--softgray); }
.modal__summary dt { color: var(--muted); }
.modal__summary dd { margin: 0; font-weight: 700; color: var(--navy); text-align: right; }
.modal__dialog .btn { margin-top: 8px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy); color: #b9cbe2; padding: 66px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.15fr 1.3fr 1.4fr; gap: 36px; }
.footer__brand svg { height: 46px; margin-bottom: 16px; }
.footer__tagline { color: #fff; font-family: var(--font-head); font-size: 17px; margin-bottom: 10px; }
.footer__desc { font-size: 14px; color: #9fb6d2; }
.footer h4 { color: #fff; font-family: var(--font-body); font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { display: grid; gap: 11px; }
.footer a { font-size: 14px; color: #b9cbe2; transition: color .2s var(--ease), padding-left .2s var(--ease); }
.footer a:hover { color: #fff; padding-left: 4px; }
.footer__contact li { display: flex; gap: 10px; font-size: 13.8px; color: #b9cbe2; }
.footer__contact svg { width: 16px; height: 16px; color: var(--red-bright); flex: none; margin-top: 4px; }
.footer__socials { display: flex; gap: 10px; margin-top: 18px; }
.footer__socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; }
.footer__socials a:hover { background: var(--red); padding-left: 0; transform: translateY(-2px); }
.footer__socials svg { width: 16px; height: 16px; }
.newsletter { position: relative; margin-top: 14px; }
.newsletter input { width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; }
.newsletter input::placeholder { color: #8fa7c6; }
.newsletter input:focus { outline: none; border-color: var(--red-bright); box-shadow: 0 0 0 4px rgba(227,38,62,.18); }
.newsletter button { margin-top: 10px; width: 100%; }
.newsletter__note { font-size: 12px; color: #8fa7c6; margin-top: 10px; display: none; }
.newsletter__note.show { display: block; color: #7ee2a8; }

.footer__bottom { margin-top: 52px; border-top: 1px solid rgba(255,255,255,.12); padding: 24px 0; }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__bottom p { font-size: 13px; }
.footer__legal { display: flex; gap: 20px; }
.footer__legal a { font-size: 13px; }
.footer__disclaimer { font-size: 12px; color: #8098b8; margin-top: 14px; max-width: 900px; line-height: 1.6; }

/* ============================================================
   UTILITIES
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .3s var(--ease), visibility .3s var(--ease);
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--red); }

.notice {
  border-left: 4px solid var(--red); background: var(--paleblue); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px; font-size: 13.6px; color: var(--darkblue);
}
.notice--center { border-left: none; border-radius: var(--radius); text-align: center; }
.demo-label { display: inline-block; background: rgba(200,16,46,.1); color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.disclaimer-text { font-size: 12.5px; color: var(--muted); }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat b { font-family: var(--font-head); font-size: 2.2rem; color: var(--navy); display: block; }
.stat span { font-size: 13.5px; color: var(--muted); }
.stat--light b { color: #fff; }
.stat--light span { color: #b9cbe2; }

.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq-item + .faq-item { margin-top: 14px; }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 800; color: var(--navy); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 20px; height: 20px; color: var(--red); transition: transform .25s var(--ease); flex: none; }
.faq-item[open] summary svg { transform: rotate(45deg); }
.faq-item__body { padding: 0 24px 22px; font-size: 14.8px; color: var(--body); }

.article { max-width: 780px; margin: 0 auto; }
.article__meta { display: flex; gap: 16px; align-items: center; color: var(--muted); font-size: 13.5px; margin: 16px 0 26px; }
.article__hero { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px; box-shadow: var(--shadow); }
.article h2 { font-size: 1.6rem; margin: 34px 0 14px; }
.article h3 { font-size: 1.25rem; margin: 26px 0 10px; }
.article p { margin-bottom: 16px; font-size: 16.5px; }
.article ul { list-style: disc; padding-left: 22px; margin: 0 0 18px; display: grid; gap: 8px; }
.article li { font-size: 16.5px; }

.empty-state { text-align: center; padding: 40px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1060px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; padding: 52px 0 64px; }
  .hero__media { max-width: 560px; margin: 0 auto; }
  .highlights__grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .highlight + .highlight::before { display: none; }
  .about__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .about__features { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); display: grid; gap: 24px; }
  .why__grid { grid-template-columns: 1fr; gap: 40px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
  .cta-banner { grid-template-columns: auto 1fr; }
  .cta-banner__action { grid-column: 1 / -1; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (max-width: 860px) {
  .nav__menu, .nav__actions .btn { display: none; }
  .hamburger { display: grid; }
  .section { padding: 64px 0; }
  .topbar__right .topbar__item:nth-child(2) { display: none; }
  .topbar__socials { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .section { padding: 52px 0; }
  .hero__trust { grid-template-columns: 1fr; gap: 14px; }
  .highlights__grid { grid-template-columns: 1fr; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .about__features { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-banner { grid-template-columns: 1fr; text-align: center; padding: 34px 24px; }
  .cta-banner__icon { margin: 0 auto; width: 78px; height: 78px; }
  .cta-banner__action .btn { width: 100%; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__badge { left: 6px; bottom: 6px; }
  .hero__float { display: none; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
  .footer__legal { flex-wrap: wrap; justify-content: center; }
  .btn { padding: 13px 20px; }
  .modal__dialog { padding: 26px; }
  .testimonial__quote { font-size: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
