/* =========================================================
   Medica — Hospital & Doctors template
   Design tokens derived from the reference template
   ========================================================= */
:root {
  --texts: #666f77;
  --titles: #061829;
  --accent: #247cff;
  --accent-hover: #1a4ed2;
  --borders: #dbe5ee;
  --bg-grey: #f1f6fb;
  --bg-grey-2: #becbdc;
  --accent-light: #f8fbff;
  --midnight: #19253e;
  --card-shadow: 0 3px 6px 0 rgba(155, 188, 232, 0.29);
  --card-shadow-hover: 0 22px 44px -18px rgba(36, 124, 255, 0.45);
  --radius: 8px;
  --container: 1128px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--texts);
  font-family: Poppins, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; border: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

h1, h2, h3, h4, h5 {
  color: var(--titles);
  font-weight: 700;
  margin: 0 0 10px;
}
h1 { font-size: 54px; line-height: 1.115; letter-spacing: -0.01em; }
h2 { font-size: 36px; line-height: 1.25; }
h3 { font-size: 22px; line-height: 30px; }
h4 { font-size: 18px; line-height: 24px; }
p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }

/* ---------- layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.section { padding: 140px 0; }
.section--grey { background: var(--bg-grey); }
.section--tight { padding: 96px 0; }
.center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-28 { margin-top: 28px; }
.mt-32 { margin-top: 32px; }
.lead { font-size: 20px; line-height: 1.6; }
.muted { color: var(--texts); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.split--reverse .split__content { order: 2; }
.split--reverse .split__media { order: 1; }
.split__media img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- eyebrow / subheading ---------- */
.subheading-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.subheading {
  display: inline-block;
  color: var(--texts);
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.subheading--accent { color: var(--accent); }
.subheading--white { color: rgba(255, 255, 255, 0.85); }
.sufix-line {
  display: inline-block;
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}
.sufix-line--white { background: rgba(255, 255, 255, 0.8); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 19px 38px;
  border: 2px solid transparent;
  border-radius: 5px;
  background: none;
  color: var(--accent);
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  box-shadow: 0 14px 26px -12px rgba(36, 124, 255, 0.7);
}
.btn--ghost {
  background: #fff;
  border-color: var(--accent);
  color: var(--accent);
}
.btn--ghost:hover { background: var(--accent); color: #fff; }
.btn--white {
  background: #fff;
  border-color: #fff;
  color: var(--accent);
}
.btn--white:hover { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn--outline-white {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn--outline-white:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn--block { width: 100%; }
.btn--sm { padding: 14px 26px; font-size: 16px; }
.btn:focus-visible,
a:focus-visible,
button:focus-visible { outline: 3px solid rgba(36, 124, 255, 0.45); outline-offset: 3px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--titles);
  font-weight: 600;
  font-size: 16px;
}
.icon-btn:hover { color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; flex: none; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: relative;
  z-index: 90;
  background: #fff;
  border-bottom: 1px solid var(--borders);
}
.site-header__top { border-bottom: 1px solid var(--borders); }
.site-header__top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 62px;
}
.contact-list { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--titles);
  font-size: 17px;
  font-weight: 500;
}
.contact-item:hover { color: var(--accent); }
.contact-item svg { width: 20px; height: 20px; flex: none; color: var(--midnight); }
.social-list { display: flex; align-items: center; gap: 22px; }
.social-list a { color: var(--accent); display: inline-flex; }
.social-list a:hover { color: var(--accent-hover); transform: translateY(-1px); }
.social-list svg { width: 18px; height: 18px; }

.site-header__nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 106px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--titles);
}
.brand:hover { color: var(--titles); }
.brand svg { width: 44px; height: 44px; flex: none; }
.brand__name { font-size: 30px; font-weight: 700; letter-spacing: -0.01em; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 14px;
  border: 0;
  background: none;
  color: var(--titles);
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.site-nav__link:hover,
.site-nav__link.is-active { color: var(--accent); }
.site-nav__link .caret { width: 11px; height: 11px; transition: transform 0.25s var(--ease); }
.has-dropdown { position: relative; }
.has-dropdown.is-open .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 232px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--borders);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -22px rgba(6, 24, 41, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  z-index: 95;
}
.has-dropdown.is-open .dropdown,
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 11px 14px;
  border-radius: 5px;
  color: var(--titles);
  font-size: 16px;
  font-weight: 500;
}
.dropdown a:hover { background: var(--bg-grey); color: var(--accent); }
.site-nav__cta { margin-left: 18px; padding: 20px 42px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 10px;
  border: 1px solid var(--borders);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--titles);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; background: #fff; }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 700px;
}
.hero__content {
  display: flex;
  align-items: center;
  padding: 80px 40px 80px max(24px, calc((100vw - var(--container)) / 2 + 24px));
}
.hero__body { max-width: 520px; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 36px; max-width: 470px; }
.hero__media { position: relative; background: var(--bg-grey); }
.hero__image {
  width: 100%;
  height: 100%;
  min-height: 700px;
  object-fit: cover;
}
.hero__dots {
  position: absolute;
  left: -104px;
  top: 14%;
  width: 96px;
  height: 128px;
  background-image: radial-gradient(#c9d7e6 1.9px, transparent 1.9px);
  background-size: 14px 14px;
  z-index: 2;
  pointer-events: none;
}
.hero__square {
  position: absolute;
  left: -66px;
  top: 17%;
  width: 78px;
  height: 78px;
  background: var(--accent);
  z-index: 3;
  pointer-events: none;
}
.hero__square--soft {
  top: auto;
  bottom: 6%;
  background: #bfe0f5;
}

/* =========================================================
   Contact bar
   ========================================================= */
.section-contact-bar { padding: 0 0 90px; background: var(--bg-grey); }
.contact-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: -60px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -30px rgba(6, 24, 41, 0.35);
  overflow: hidden;
}
.contact-bar__item {
  display: flex;
  gap: 20px;
  padding: 40px 34px;
  border-right: 1px solid var(--borders);
}
.contact-bar__item:last-child { border-right: 0; }
.contact-bar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
}
.contact-bar__icon svg { width: 24px; height: 24px; }
.contact-bar__title { color: var(--titles); font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.contact-bar__line { display: block; color: var(--texts); font-size: 16px; line-height: 1.7; }
a.contact-bar__line:hover { color: var(--accent); }

/* =========================================================
   Cards
   ========================================================= */
.card {
  background: #fff;
  border: 1px solid #f0f5f8;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 36px 26px 40px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--accent-light);
  color: var(--accent);
}
.card__icon svg { width: 32px; height: 32px; }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 17px; margin-bottom: 24px; }

.card--post { padding: 0; overflow: hidden; }
.card--post:hover { transform: translateY(-6px); }
.card--post a { color: inherit; display: block; }
.post-media { position: relative; overflow: hidden; }
.post-media img { width: 100%; height: 232px; object-fit: cover; transition: transform 0.5s var(--ease); }
.card--post:hover .post-media img { transform: scale(1.05); }
.post-date {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.post-body { padding: 26px 26px 30px; }
.post-body h3 { font-size: 21px; line-height: 1.35; margin-bottom: 10px; }
.post-body p { font-size: 16px; margin-bottom: 18px; }
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
}
.read-more svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.card--post:hover .read-more svg { transform: translateX(4px); }

.doctor-card { text-align: center; }
.doctor-card .doctor-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.doctor-role { color: var(--accent); font-size: 15px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

/* =========================================================
   CTA banner
   ========================================================= */
.banner-cta {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: #fff;
}
.banner-cta__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 96px 0;
}
.banner-cta h2 { color: #fff; margin-bottom: 16px; }
.banner-cta p { color: rgba(255, 255, 255, 0.88); }
.banner-cta__buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.banner-cta__media img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
}
.banner-cta__ring {
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  border: 40px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

/* =========================================================
   Contact / appointment
   ========================================================= */
.contact-us {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
.form { display: grid; gap: 18px; margin-top: 26px; }
.field { display: block; }
.label {
  display: block;
  margin-bottom: 8px;
  color: var(--titles);
  font-size: 15px;
  font-weight: 600;
}
.input {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--borders);
  border-radius: 6px;
  background: #fff;
  color: var(--titles);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.input::placeholder { color: #a9b6c4; }
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(36, 124, 255, 0.14);
}
textarea.input { min-height: 132px; resize: vertical; }
.field.is-invalid .input { border-color: #d64545; }
.field__error { display: none; margin-top: 6px; color: #d64545; font-size: 14px; }
.field.is-invalid .field__error { display: block; }
.form__status {
  display: none;
  margin: 4px 0 0;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
}
.form__status.is-success { display: block; background: #eaf7ee; color: #1f7a43; }
.form__status.is-error { display: block; background: #fdecec; color: #b32d2d; }
.form__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__hint { font-size: 14px; color: var(--texts); }

.contact-us__info h3 { margin-bottom: 18px; }
.contact-us__info h3 + .contact-buttons { margin-bottom: 36px; }
.contact-buttons { display: grid; gap: 14px; }
.contact-buttons .btn { justify-content: flex-start; }
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.office h4 { margin-bottom: 8px; }
.office__line { display: block; color: var(--texts); font-size: 16px; line-height: 1.7; }
.office a.office__line:hover { color: var(--accent); }

/* =========================================================
   Inner page hero
   ========================================================= */
.page-hero {
  position: relative;
  isolation: isolate;
  padding: 118px 0 96px;
  background: var(--midnight);
  color: #fff;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  z-index: -1;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(6, 24, 41, 0.9), rgba(25, 37, 62, 0.6));
  z-index: -1;
}
.page-hero h1 { color: #fff; margin: 0; max-width: 760px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.72);
}
.breadcrumb a { color: rgba(255, 255, 255, 0.9); }
.breadcrumb a:hover { color: #fff; }

/* ---------- article / rich text ---------- */
.rich { font-size: 18px; }
.rich h2 { margin: 40px 0 14px; font-size: 30px; }
.rich h3 { margin: 32px 0 12px; }
.rich ul { margin: 0 0 22px; padding-left: 22px; list-style: disc; }
.rich li { margin-bottom: 10px; }
.rich img { width: 100%; height: auto; border-radius: var(--radius); margin: 26px 0; }
.rich blockquote {
  margin: 26px 0;
  padding: 20px 26px;
  border-left: 4px solid var(--accent);
  background: var(--bg-grey);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--titles);
  font-weight: 500;
}
.article-layout { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.side-card {
  padding: 28px;
  background: var(--bg-grey);
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.side-card h3 { font-size: 20px; margin-bottom: 12px; }
.side-card ul { display: grid; gap: 10px; }
.side-card a { color: var(--titles); font-weight: 500; }
.side-card a:hover { color: var(--accent); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--midnight);
  color: rgba(255, 255, 255, 0.72);
  padding-top: 80px;
}
.site-footer a { color: rgba(255, 255, 255, 0.72); }
.site-footer a:hover { color: #fff; }
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.footer-brand svg { width: 40px; height: 40px; }
.footer-brand span { color: #fff; font-size: 27px; font-weight: 700; }
.footer-social { display: flex; gap: 20px; }
.footer-social a { color: #fff; display: inline-flex; opacity: 0.85; }
.footer-social a:hover { opacity: 1; }
.footer-social svg { width: 18px; height: 18px; }
.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  padding: 54px 0 60px;
}
.footer-column h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 18px;
}
.footer-column li { margin-bottom: 11px; }
.footer-column li:last-child { margin-bottom: 0; }
.footer-column p { font-size: 15px; line-height: 1.7; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact-item svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--accent); }
.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { margin: 0; }

/* ---------- back to top ---------- */
.go-up {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 26px -10px rgba(36, 124, 255, 0.8);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.go-up.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.go-up svg { width: 20px; height: 20px; }

/* ---------- reveal on scroll ---------- */
[data-reveal] {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-reveal-pending { opacity: 0; transform: translateY(24px); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1200px) {
  .hero__content { padding-left: 40px; }
}

@media (max-width: 991px) {
  body { font-size: 17px; }
  h1 { font-size: 44px; }
  h2 { font-size: 30px; }
  .section { padding: 96px 0; }
  .section--tight { padding: 72px 0; }

  .site-header__nav-row { min-height: 84px; }
  .menu-toggle { display: flex; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 26px;
    background: #fff;
    border-bottom: 1px solid var(--borders);
    box-shadow: 0 24px 40px -28px rgba(6, 24, 41, 0.5);
  }
  .site-nav.is-open { display: flex; }
  .site-nav__link { padding: 15px 0; width: 100%; justify-content: space-between; }
  .site-nav__cta { margin: 14px 0 0; padding: 18px 24px; }
  .has-dropdown { position: static; }
  .dropdown {
    position: static;
    display: none;
    margin: 4px 0 8px;
    padding: 6px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    border-color: var(--borders);
  }
  .has-dropdown.is-open .dropdown { display: block; }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.is-open:hover .dropdown { display: block; }

  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__content { padding: 64px 24px 56px; order: 2; }
  .hero__media { order: 1; }
  .hero__image { min-height: 0; height: 380px; }
  .hero__dots, .hero__square { display: none; }
  .hero .lead { font-size: 18px; }

  .split { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__content { order: 1; }
  .split--reverse .split__media { order: 2; }
  .split__media img { height: 340px; }

  .contact-bar { grid-template-columns: 1fr; margin-top: -50px; }
  .contact-bar__item { border-right: 0; border-bottom: 1px solid var(--borders); }
  .contact-bar__item:last-child { border-bottom: 0; }

  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-us { grid-template-columns: 1fr; gap: 48px; }
  .banner-cta__grid { grid-template-columns: 1fr; padding: 72px 0; }
  .banner-cta__media { order: -1; }
  .article-layout { grid-template-columns: 1fr; }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
  .page-hero { padding: 84px 0 70px; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
  .section { padding: 72px 0; }
  .site-header__top-row { min-height: 54px; }
  .contact-list { gap: 18px; }
  .contact-item { font-size: 15px; }
  .site-header__nav-row { min-height: 74px; }
  .brand svg { width: 36px; height: 36px; }
  .brand__name { font-size: 24px; }
  .hero__content { padding: 48px 20px 44px; }
  .hero__image { height: 300px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .offices { grid-template-columns: 1fr; }
  .btn { padding: 16px 26px; font-size: 16px; }
  .contact-bar__item { padding: 28px 22px; }
  .banner-cta__media img { height: 240px; }
  .footer-columns { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .page-hero h1 { font-size: 30px; }
  .split__media img { height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal].is-reveal-pending { opacity: 1; transform: none; }
}

/* =========================================================
   Extra components
   ========================================================= */
.check-list { display: grid; gap: 12px; margin: 26px 0 10px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--titles);
  font-size: 17px;
  font-weight: 500;
}
.check-list svg { width: 20px; height: 20px; flex: none; margin-top: 4px; color: var(--accent); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stat {
  padding: 30px 24px;
  background: #fff;
  border: 1px solid #f0f5f8;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.stat__value { display: block; color: var(--accent); font-size: 38px; font-weight: 700; line-height: 1.1; }
.stat__label { display: block; margin-top: 6px; color: var(--titles); font-size: 16px; font-weight: 600; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
  color: var(--texts);
  font-size: 15px;
}
.tag {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.profile-facts { display: grid; gap: 14px; margin: 26px 0 30px; }
.profile-facts div { display: flex; gap: 12px; }
.profile-facts dt { color: var(--titles); font-weight: 600; min-width: 132px; }
.profile-facts dd { margin: 0; color: var(--texts); }

@media (max-width: 991px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .stats { grid-template-columns: 1fr; }
  .profile-facts dt { min-width: 108px; }
}

/* Active navigation state */
.site-nav__link.is-active,
.site-nav .has-dropdown.is-active > .dropdown-toggle { color: var(--accent); }
.dropdown a.is-active { color: var(--accent); font-weight: 600; }

/* Banner heading needs a touch more line box so descenders are not clipped */
.banner-cta h2 { line-height: 1.34; }
.hero h1 { line-height: 1.18; }

/* Decorative ring lives in its own clipping layer so the banner box never overflows */
.banner-cta__ring-wrap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

/* Fade-only reveal keeps the pending state inside its own box */
[data-reveal].is-reveal-pending { transform: none; }

/* Keep heading line boxes tall enough that descenders are never clipped */
h1, h2, .hero h1, .banner-cta h2 { line-height: 1.32; }
