:root {
  --blue: #086bd8;
  --blue-dark: #0455b6;
  --navy: #0d1b33;
  --ink: #142039;
  --muted: #647086;
  --soft: #f1f5f9;
  --line: #dce4ed;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 16px 44px rgba(13, 27, 51, .11);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy); line-height: 1.14; letter-spacing: -.03em; }
h1 { font-size: clamp(2.45rem, 5vw, 4.35rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.2rem; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { z-index: 9999; top: 10px; left: 10px; width: auto; height: auto; padding: 10px 14px; clip: auto; background: #fff; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 1px solid var(--blue); border-radius: 9px; color: var(--blue); background: #fff; font-size: .92rem; font-weight: 700; line-height: 1.2; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(6, 107, 216, .2); }
.button--primary { color: #fff; background: var(--blue); }
.button--primary:hover { color: #fff; background: var(--blue-dark); }
.button--outline { color: var(--navy); background: rgba(255,255,255,.9); }
.button--small { min-height: 40px; padding: 0 14px; font-size: .83rem; }
.button--light { color: var(--blue); background: #fff; border-color: #fff; }

.topbar { color: #e5edf6; background: #172330; font-size: .76rem; }
.topbar__inner, .topbar__contacts, .topbar a, .opening-state { display: flex; align-items: center; }
.topbar__inner { min-height: 34px; justify-content: space-between; gap: 24px; }
.topbar__contacts { gap: 34px; }
.topbar a, .opening-state, .topbar__branches { gap: 8px; color: inherit; }
.topbar .icon { width: 15px; height: 15px; }
.opening-state strong { color: #fff; font-weight: 600; }
.opening-state.is-open strong::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #35d07f; }
.navbar { position: relative; z-index: 30; background: #fff; box-shadow: 0 2px 14px rgba(13,27,51,.06); }
.navbar__inner { display: flex; min-height: 84px; align-items: center; gap: 32px; }
.site-brand { flex: 0 0 230px; color: var(--navy); }
.site-brand img { max-width: 215px; max-height: 62px; object-fit: contain; }
.brand-wordmark { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 7px; font-size: 1.75rem; font-weight: 800; font-style: italic; letter-spacing: -.06em; }
.brand-wordmark strong { color: var(--blue); }
.brand-wordmark small { flex-basis: 100%; font-size: .48rem; font-style: normal; letter-spacing: .08em; }
.primary-nav { margin-left: auto; }
.primary-nav ul, .site-footer ul { padding: 0; margin: 0; list-style: none; }
.primary-nav > ul { display: flex; align-items: center; gap: 29px; }
.primary-nav a { color: var(--navy); font-size: .88rem; font-weight: 650; }
.primary-nav a:hover { color: var(--blue); }
.navbar__cta { min-width: 205px; }
.nav-toggle { display: none; padding: 8px; border: 0; color: var(--navy); background: transparent; }
.nav-toggle .icon-close { display: none; }

.hero-slider { position: relative; min-height: 510px; overflow: hidden; background: #e9f0f7; }
.hero-slider__track { min-height: inherit; }
.hero-slide { position: absolute; inset: 0; display: grid; min-height: inherit; align-items: center; visibility: hidden; opacity: 0; background-color: #e7eef5; background-image: var(--hero-image); background-repeat: no-repeat; background-position: var(--hero-position, center); background-size: cover; transition: opacity .9s ease, visibility .9s ease; }
.hero-slide.is-active { z-index: 2; visibility: visible; opacity: 1; }
.hero-slide--fallback { position: relative; background: radial-gradient(circle at 80% 50%, #b6d5ef 0, transparent 31%), linear-gradient(110deg,#fff 20%,#eef5fa 58%,#c5d6e4); }
.hero-slide__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(249,252,255,.97) 0%, rgba(249,252,255,.88) 36%, rgba(249,252,255,.17) 68%, rgba(249,252,255,0) 100%); }
.hero-slide__content { position: relative; z-index: 2; padding-block: 58px 42px; }
.hero-slide__content > * { max-width: 590px; }
.eyebrow { margin-bottom: 14px; color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero-slide h1 { margin-bottom: 14px; }
.hero-slide h1 span { display: block; color: var(--blue); }
.hero-slide__text { color: #4d5c73; font-size: 1.12rem; max-width: 535px; }
.hero-slide__text p:last-child { margin-bottom: 0; }
.hero-slide__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.hero-slide__proof { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; color: #657287; font-size: .76rem; }
.hero-slide__proof span { display: flex; align-items: center; gap: 7px; }
.hero-slide__proof .icon { color: var(--blue); }
.hero-slider__controls { position: absolute; z-index: 5; bottom: 14px; left: 50%; display: flex; justify-content: center; align-items: center; gap: 12px; transform: translateX(-50%); }
.hero-slider__controls > button { display: grid; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 50%; color: var(--blue); background: #fff; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,.1); }
.hero-slider__dots { display: flex; gap: 7px; }
.hero-slider__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #aab8c8; cursor: pointer; }
.hero-slider__dots button.is-active { width: 24px; border-radius: 8px; background: var(--blue); }

.benefit-strip { border-bottom: 1px solid var(--line); background: rgba(250,252,254,.96); }
.benefit-grid { display: grid; grid-template-columns: repeat(4,1fr); padding-block: 24px; }
.benefit { display: flex; min-height: 62px; align-items: center; gap: 15px; padding-inline: 25px; border-right: 1px solid var(--line); }
.benefit:first-child { padding-left: 0; }
.benefit:last-child { padding-right: 0; border-right: 0; }
.benefit > .icon { width: 34px; height: 34px; color: var(--blue); }
.benefit strong, .benefit span { display: block; }
.benefit strong { font-size: .95rem; }
.benefit span { margin-top: 2px; color: var(--muted); font-size: .72rem; }

.section { padding-block: 54px; }
.section-heading { display: flex; justify-content: space-between; margin-bottom: 25px; }
.section-heading--center { display: block; text-align: center; }
.section-heading h2 { margin-bottom: 5px; }
.section-heading p { margin-bottom: 0; color: var(--muted); }
.process-section { padding-bottom: 30px; }
.process-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 48px; margin-top: 32px; }
.process-step { position: relative; display: grid; grid-template-columns: 46px 48px 1fr; align-items: start; gap: 14px; }
.process-step:not(:last-child)::after { content: "›"; position: absolute; top: 12px; right: -31px; color: #9fb0c2; font-size: 2rem; font-weight: 300; }
.process-step__number, .process-step__icon { display: grid; place-items: center; border-radius: 50%; }
.process-step__number { width: 46px; height: 46px; color: var(--blue); background: #eaf4ff; font-size: 1.25rem; font-weight: 800; }
.process-step__icon { width: 48px; height: 48px; color: var(--blue); }
.process-step__icon .icon { width: 34px; height: 34px; }
.process-step h3 { margin: 4px 0 7px; font-size: 1rem; }
.process-step p { margin: 0; color: var(--muted); font-size: .83rem; }

.services-section { padding-top: 30px; }
.services-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.service-card { position: relative; display: flex; min-height: 330px; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: #f2f5f8; box-shadow: 0 7px 18px rgba(13,27,51,.06); }
.service-card__image { height: 150px; overflow: hidden; }
.service-card__image img { width: 100%; height: 100%; object-fit: cover; }
.service-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 17px; }
.service-card h3 { margin-bottom: 9px; font-size: 1.25rem; }
.service-card__body div { color: #536073; font-size: .86rem; }
.service-card__body div p { margin-bottom: 15px; }
.service-card .button { margin-top: auto; }
.service-card__badge { position: absolute; z-index: 2; top: 16px; left: 16px; padding: 5px 9px; border-radius: 20px; color: #fff; background: rgba(4,85,182,.85); font-size: .63rem; font-weight: 800; text-transform: uppercase; }
.service-card--featured { color: #fff; background-image: linear-gradient(90deg,rgba(4,80,162,.96),rgba(4,80,162,.42)), var(--card-image); background-position: center; background-size: cover; }
.service-card--featured .service-card__image { display: none; }
.service-card--featured .service-card__body { justify-content: flex-end; padding: 20px; }
.service-card--featured h3, .service-card--featured .service-card__body div { color: #fff; }

.insurers-section { padding-block: 25px; overflow: hidden; border-block: 1px solid var(--line); background: linear-gradient(90deg,#f6f9fc,#edf3f8,#f8fafc); }
.insurers-layout { display: grid; grid-template-columns: 390px 1fr; align-items: center; gap: 30px; }
.insurers-copy { padding-right: 30px; border-right: 1px solid #cfd9e5; }
.insurers-copy h2 { margin-bottom: 5px; font-size: 1.25rem; }
.insurers-copy p { margin: 0; color: var(--muted); font-size: .78rem; }
.logo-slider { overflow: hidden; }
.logo-slider__track { display: flex; width: max-content; align-items: center; will-change: transform; transition: transform .65s cubic-bezier(.4,0,.2,1); }
.insurer-logo { display: grid; width: 180px; min-height: 65px; place-items: center; padding: 10px 25px; border-right: 1px solid #cfd9e5; color: #8b9aad; font-weight: 800; text-align: center; }
.insurer-logo img { max-width: 130px; max-height: 45px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .25s ease; }
.insurer-logo:hover img { filter: grayscale(0); opacity: 1; }

.branches-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.branch-card { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.branch-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.branch-card__image { height: 125px; margin: 8px; overflow: hidden; border-radius: 6px; background: var(--soft); }
.branch-card__image img { width: 100%; height: 100%; object-fit: cover; }
.branch-card__body { padding: 6px 12px 15px; }
.branch-card h3 { margin-bottom: 8px; font-size: 1rem; }
.branch-card p { display: flex; gap: 8px; min-height: 50px; margin-bottom: 9px; color: var(--muted); font-size: .76rem; }
.branch-card p .icon { width: 17px; height: 17px; color: var(--blue); }
.branch-card a { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 700; }
.branch-card a .icon { width: 15px; height: 15px; }

.bottom-cta { color: #fff; background: linear-gradient(105deg,#075dbd,#0877e7); }
.bottom-cta__inner { display: grid; grid-template-columns: 1.2fr 2fr auto; min-height: 104px; align-items: center; gap: 30px; }
.bottom-cta h2 { margin: 0; color: #fff; font-size: 1.6rem; }
.bottom-cta__benefits { display: flex; justify-content: center; gap: 32px; }
.bottom-cta__benefits span { display: flex; align-items: center; gap: 9px; font-size: .76rem; }
.bottom-cta__benefits .icon { width: 27px; height: 27px; }

.site-footer { color: #c9d2dc; background: #17232f; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3,1fr); gap: 50px; padding-block: 42px; }
.site-brand--footer { display: block; filter: brightness(0) invert(1); }
.footer-brand p { margin-top: 12px; color: #9fabb7; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.site-footer h2 { color: #fff; font-size: .9rem; letter-spacing: 0; }
.site-footer li { margin: 7px 0; font-size: .78rem; }
.site-footer a { color: #c9d2dc; }
.site-footer a:hover { color: #fff; }
.footer-contact li, .footer-contact a { display: flex; align-items: center; gap: 9px; }
.footer-contact .icon { width: 16px; height: 16px; }
.socials { display: flex; gap: 8px; margin-top: 17px; }
.socials a { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #536171; border-radius: 50%; font-weight: 700; }
.footer-bottom { border-top: 1px solid #32404f; color: #8995a2; font-size: .7rem; }
.footer-bottom .container { display: flex; min-height: 58px; align-items: center; justify-content: space-between; }

.content-layout { min-height: 50vh; padding-block: 60px; }
.content-layout article { max-width: 850px; }
.branch-detail__image { float: right; width: 45%; margin: 0 0 30px 45px; overflow: hidden; border-radius: var(--radius); }
.branch-detail__contact { padding: 20px; border-radius: var(--radius); background: var(--soft); }
.branch-detail__contact p, .branch-detail__contact a { display: flex; align-items: flex-start; gap: 9px; }

@media (max-width: 1080px) {
  .topbar__branches { display: none; }
  .topbar__inner { justify-content: flex-end; }
  .navbar__inner { min-height: 72px; }
  .site-brand { margin-right: auto; }
  .nav-toggle { display: block; cursor: pointer; }
  .navbar__cta { min-width: auto; }
  .primary-nav { position: fixed; z-index: 100; top: 106px; right: 0; bottom: 0; width: min(360px,90vw); padding: 28px; background: #fff; box-shadow: -10px 20px 40px rgba(13,27,51,.16); transform: translateX(105%); transition: transform .3s ease; }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav > ul { display: block; }
  .primary-nav li { margin-bottom: 18px; }
  .primary-nav a { font-size: 1rem; }
  .process-grid { gap: 25px; }
  .process-step { grid-template-columns: 40px 1fr; }
  .process-step__icon { display: none; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .insurers-layout { grid-template-columns: 330px 1fr; }
  .bottom-cta__inner { grid-template-columns: 1fr auto; padding-block: 25px; }
  .bottom-cta__benefits { grid-column: 1/-1; grid-row: 2; justify-content: flex-start; }
}

@media (max-width: 780px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .topbar__contacts { width: 100%; justify-content: space-between; gap: 10px; }
  .topbar__contacts > a:nth-child(2) { display: none; }
  .navbar__cta { display: none; }
  .site-brand { flex-basis: auto; }
  .site-brand img { max-width: 170px; max-height: 52px; }
  .primary-nav { top: 106px; }
  .hero-slider { min-height: 590px; }
  .hero-slide { align-items: end; background-position: 66% center; }
  .hero-slide__shade { background: linear-gradient(0deg,rgba(249,252,255,.99) 0%,rgba(249,252,255,.94) 58%,rgba(249,252,255,.12) 100%); }
  .hero-slide__content { padding-block: 170px 55px; }
  .hero-slide h1 { font-size: 2.55rem; }
  .hero-slide__text { font-size: 1rem; }
  .hero-slide__proof { display: none; }
  .hero-slide__actions .button { flex: 1 1 100%; }
  .benefit-grid { grid-template-columns: repeat(2,1fr); gap: 20px 0; }
  .benefit { padding-inline: 15px; }
  .benefit:nth-child(2) { border-right: 0; }
  .benefit:nth-child(3) { padding-left: 0; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step:not(:last-child)::after { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 290px; }
  .insurers-layout { grid-template-columns: 1fr; }
  .insurers-copy { padding-right: 0; border-right: 0; }
  .branches-grid { grid-template-columns: repeat(2,1fr); }
  .bottom-cta__inner { grid-template-columns: 1fr; }
  .bottom-cta__benefits { grid-column: auto; grid-row: auto; flex-direction: column; gap: 10px; }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 520px) {
  .opening-state { font-size: 0; }
  .opening-state strong, .opening-state .icon { font-size: .72rem; }
  .brand-wordmark { font-size: 1.45rem; }
  .hero-slide h1 { font-size: 2.15rem; }
  .benefit-grid, .branches-grid, .footer-grid { grid-template-columns: 1fr; }
  .benefit { padding-inline: 0; border-right: 0; }
  .section { padding-block: 42px; }
  .footer-bottom .container { flex-direction: column; justify-content: center; gap: 7px; text-align: center; }
  .branch-detail__image { float: none; width: 100%; margin: 0 0 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
