/* ==========================================================================
   DEXSAM — site styles
   ========================================================================== */

:root {
  --blue: #0D5EF4;
  --blue-dark: #0848c2;
  --blue-light: #6a9dff;
  --blue-tint: #e8f0fe;
  --red: #F20F10;
  --navy: #0F2239;
  --navy-2: #172f4d;
  --text: #4D5765;
  --muted: #72849B;
  --smoke: #F3F7FB;
  --border: #e1e8f2;
  --white: #fff;

  --font-title: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1200px;
  --gutter: 16px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 14px 40px rgba(15, 34, 57, .10);
  --section: clamp(64px, 9vw, 110px);
  --header-h: 84px;
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 16px/1.75 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  color: var(--navy);
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.2;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }

svg.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 2px solid var(--blue);
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: var(--white);
  font: 600 15px/1.2 var(--font-title);
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn .icon { transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }

.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }

.on-dark .btn:hover { background: var(--white); border-color: var(--white); color: var(--navy); }

.btn--block { width: 100%; }

.btn-group { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- Section helpers ---------- */

.section { padding-block: var(--section); }
.section--smoke { background: var(--smoke); }
.section--navy { background: var(--navy); color: #c3cedd; }
.section--navy h2 { color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--blue);
  font: 600 15px/1.2 var(--font-title);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.on-dark .eyebrow { color: var(--blue-light); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.rounded { border-radius: var(--radius); }

/* ---------- Top bar ---------- */

.topbar { background: var(--navy); color: #c3cedd; font-size: 14px; }
.topbar__list { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-block: 10px; }
.topbar__list li { display: inline-flex; align-items: center; gap: 8px; }
.topbar__list .icon { color: var(--blue-light); }
.topbar a { color: #c3cedd; }
.topbar a:hover { color: var(--white); }

/* ---------- Header / nav ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 2px 18px rgba(15, 34, 57, .07);
}
.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.header__logo img { width: auto; height: 58px; }

.nav__list { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.nav__list a {
  position: relative;
  display: block;
  padding-block: 8px;
  color: var(--navy);
  font: 500 16px/1.3 var(--font-title);
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform .25s;
}
.nav__list a:hover,
.nav__list a[aria-current="page"] { color: var(--blue); }
.nav__list a:hover::after,
.nav__list a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  place-items: center;
  width: 46px; height: 46px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero slider ---------- */

.hero { position: relative; overflow: hidden; background: var(--navy); color: #d3dbe7; }
.hero__slides { display: grid; }
.hero__slide {
  grid-area: 1 / 1;
  position: relative;
  background-color: var(--navy);
  background-position: center;
  background-size: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease, visibility .9s;
}
.hero__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15, 34, 57, .94) 0%, rgba(15, 34, 57, .82) 55%, rgba(15, 34, 57, .7) 100%);
}
.hero__slide.is-active { opacity: 1; visibility: visible; }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 48px;
  padding-block: clamp(72px, 10vw, 130px) clamp(96px, 11vw, 140px);
}
.hero__title { color: var(--white); }
.hero__title span { color: var(--blue-light); }
.hero__text { max-width: 540px; font-size: 1.125rem; }
.hero__img img {
  width: min(100%, 470px);
  margin-left: auto;
  border-radius: 50%;
  filter: drop-shadow(-24px 22px 14px rgba(0, 0, 0, .25));
}

.hero__slide.is-active .hero__content > * { animation: rise .8s both; }
.hero__slide.is-active .hero__content > :nth-child(2) { animation-delay: .15s; }
.hero__slide.is-active .hero__content > :nth-child(3) { animation-delay: .3s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 36px;
  z-index: 2;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}
.hero__dots button {
  width: 12px; height: 12px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: width .3s, background .3s;
}
.hero__dots button[aria-current="true"] { width: 32px; background: var(--blue); }

/* ---------- Home: about images ---------- */

.about-images { position: relative; padding: 0 22% 26% 0; }
.about-images img { width: 100%; border-radius: var(--radius); }
.about-images .about-images__small {
  position: absolute;
  right: 0; bottom: 0;
  width: 55%;
  border: 8px solid var(--white);
  box-shadow: var(--shadow);
}
.about-images::before {
  content: "";
  position: absolute;
  top: -18px; left: -18px;
  width: 110px; height: 110px;
  border-radius: var(--radius);
  background: var(--blue-tint);
  z-index: -1;
}
.about-images { isolation: isolate; }

.offer h3 { margin-top: 1.6em; margin-bottom: .4em; font-size: 1.25rem; }
.offer h3:first-of-type { margin-top: .4em; }

/* ---------- Home: contact CTA ---------- */

.cta { position: relative; overflow: hidden; }
.cta__img img { width: 100%; max-width: 560px; }

/* ---------- Home: why choose us ---------- */

.why-images { position: relative; padding: 0 0 22% 0; }
.why-images img { border-radius: var(--radius); }
.why-images .why-images__main { width: 82%; }
.why-images .why-images__small {
  position: absolute;
  right: 0; bottom: 0;
  width: 50%;
  border: 8px solid var(--white);
  box-shadow: var(--shadow);
}

.checklist { display: grid; gap: 26px; margin-top: 8px; }
.checklist li { display: flex; gap: 18px; }
.checklist .icon { width: 30px; height: 30px; margin-top: 2px; color: var(--blue); }
.checklist h3 { margin-bottom: .3em; font-size: 1.25rem; }

/* ---------- Page header ---------- */

.page-header {
  position: relative;
  padding-block: clamp(70px, 10vw, 120px);
  background: var(--navy) url("../img/page-header.jpg") center / cover no-repeat;
  text-align: center;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 34, 57, .82);
}
.page-header .container { position: relative; }
.page-header h1 { margin-bottom: .35em; color: var(--white); font-size: clamp(2rem, 4.4vw, 3.2rem); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--blue-light);
  font: 500 16px/1.4 var(--font-title);
}
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: rgba(255, 255, 255, .5); }
.breadcrumb a { color: var(--white); }
.breadcrumb a:hover { color: var(--blue-light); }

/* ---------- Article + sidebar layout ---------- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: start;
  gap: clamp(36px, 5vw, 60px);
}

.prose > img { width: 100%; margin-bottom: 36px; border-radius: var(--radius); }
.prose h2 { margin-top: 1.4em; font-size: clamp(1.6rem, 2.6vw, 2rem); }
.prose h3 { margin-top: 1.6em; margin-bottom: .45em; font-size: 1.3rem; }
.prose > img + h2,
.prose > h2:first-child { margin-top: 0; }
.prose h2 + h3 { margin-top: .6em; }

.sidebar { display: grid; gap: 28px; }

.card { padding: clamp(24px, 4vw, 36px); border-radius: 18px; background: var(--smoke); }
.card__head { margin-bottom: 24px; text-align: center; }
.card__head h2,
.card__head h3 { margin-bottom: .3em; font-size: 1.6rem; }

.info-card { padding: 28px; border: 1px solid var(--border); border-radius: 18px; }
.info-card h3 { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); font-size: 1.3rem; }

.info-list { display: grid; gap: 14px; }
.info-list li { display: flex; align-items: flex-start; gap: 12px; }
.info-list .icon { margin-top: 5px; color: var(--blue); }
.info-list strong { color: var(--navy); font-weight: 500; }
.info-list a { color: var(--text); overflow-wrap: anywhere; }
.info-list a:hover { color: var(--blue); }

/* ---------- Forms ---------- */

.form-grid { display: grid; gap: 16px; }
.form-grid--2 { grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }

.field input,
.field textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  font: 400 16px/1.5 var(--font-body);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(13, 94, 244, .18);
}

.form-status { margin: 16px 0 0; font-size: 15px; }
.form-status:empty { display: none; }
.form-status.is-success { color: #1d7a3a; }
.on-dark .form-status.is-success { color: #7ee2a0; }
.form-status a { font-weight: 500; }

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: start;
  gap: clamp(36px, 5vw, 64px);
}
.contact-items { display: grid; gap: 26px; margin-top: 32px; }
.contact-item { display: flex; gap: 18px; }
.contact-item__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue);
}
.contact-item__icon .icon { width: 24px; height: 24px; }
.contact-item h3 { margin-bottom: .2em; font-size: 1.15rem; }
.contact-item p,
.contact-item a { display: block; margin: 0; color: var(--text); }
.contact-item a:hover { color: var(--blue); }

/* ---------- 404 ---------- */

.not-found { text-align: center; }
.not-found__code { margin-bottom: 0; color: var(--blue); font: 700 clamp(5rem, 16vw, 9rem)/1 var(--font-title); }

/* ---------- Footer ---------- */

.footer { background: var(--navy); color: #b6c2d3; font-size: 15px; }
.footer a { color: #b6c2d3; }
.footer a:hover { color: var(--white); }

.footer__contacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-block: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer__contact { display: flex; align-items: center; gap: 16px; }
.footer__contact-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
}
.footer__contact-icon .icon { width: 22px; height: 22px; }
.footer__contact p { margin: 0; font-size: 14px; }
.footer__contact a,
.footer__contact span { color: var(--white); font: 500 18px/1.4 var(--font-title); overflow-wrap: anywhere; }
.footer__contact a:hover { color: var(--blue-light); }

.footer__main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-block: 64px;
}
.footer__logo img { width: auto; height: 64px; margin-bottom: 20px; }
.footer__about { max-width: 380px; }
.footer h2 { margin-bottom: 20px; color: var(--white); font-size: 1.3rem; }
.footer__links { display: grid; gap: 10px; }
.footer__links a { display: inline-flex; align-items: center; gap: 8px; }
.footer__links .icon { width: 14px; height: 14px; color: var(--blue-light); }
.footer__phones p { margin-bottom: .6em; }
.footer__phones strong { color: var(--white); font-weight: 500; }

.footer__bottom {
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 14px;
  text-align: center;
}

/* ---------- Back to top ---------- */

.to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, visibility .3s, transform .3s, background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy); }
.to-top .icon { width: 22px; height: 22px; }

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
  .header__cta { display: none; }
}

@media (max-width: 991px) {
  :root { --header-h: 74px; }

  .topbar { display: none; }

  .header__logo img { height: 50px; }
  .nav-toggle { display: grid; }
  .nav {
    position: absolute;
    top: 100%;
    left: calc(var(--gutter) * -1);
    right: calc(var(--gutter) * -1);
    display: none;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 16px 30px rgba(15, 34, 57, .12);
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .nav__list a { padding: 14px 4px; border-bottom: 1px solid var(--border); }
  .nav__list li:last-child a { border-bottom: 0; }
  .nav__list a::after { display: none; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__img { display: none; }

  .split,
  .layout,
  .contact-grid { grid-template-columns: 1fr; }

  .split--reverse-mobile > :first-child { order: 2; }

  .about-images,
  .why-images { max-width: 600px; }
  .cta__img { display: none; }

  .footer__main { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .footer__contacts { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 575px) {
  .form-grid--2 { grid-template-columns: 1fr; }
  .footer__main { grid-template-columns: 1fr; padding-block: 48px; }
  .btn-group .btn { flex: 1 1 auto; }
  .hero__dots { bottom: 26px; }
}

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