/* Medimaging: site stylesheet */

:root {
  --navy: #242F9B;
  --navy-dark: #1B2478;
  --blue: #3A70E2;
  --sky: #88AEFF;
  --sky-soft: #DCE7FF;
  --ink: #181818;
  --text: #6E6E6E;
  --line: #E4E6F0;
  --white: #FFFFFF;
  --max: 1140px;
  --shadow: 0 18px 40px rgba(36, 47, 155, 0.14);
  --grad: linear-gradient(90deg, var(--sky) 0%, var(--white) 100%);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }

h1, h2, h3, h4 { margin: 0 0 16px; line-height: 1.2; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(34px, 4.4vw, 52px); }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: 19px; }
p { margin: 0 0 14px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

.kicker {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
}
.navy-title { color: var(--navy); }

.icon { width: 24px; height: 24px; flex-shrink: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 0;
  border-radius: 6px;
  background: var(--navy);
  color: var(--white);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--navy-dark); transform: translateY(-2px); }
.btn-link { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 600; text-decoration: none; }
.btn-link .icon { width: 18px; height: 18px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 4px 18px rgba(36, 47, 155, 0.08); }
.header-inner { display: flex; align-items: stretch; gap: 24px; }
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 150px;
  padding: 12px 10px;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-decoration: none;
}
.logo img { width: 70px; }
.header-main { flex: 1; display: flex; flex-direction: column; }
.topbar {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; }
.topbar .icon { width: 16px; height: 16px; color: var(--blue); }
.nav-row { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: block;
  padding: 8px 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--navy); border-bottom-color: var(--navy); }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 600; text-decoration: none; }
.header-phone .icon { width: 26px; height: 26px; }
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}
.menu-toggle svg { width: 28px; height: 28px; }
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-open { display: none; }
.menu-open .menu-toggle .icon-close { display: inline; }

/* Sections */
.section { padding: 90px 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.split > * { min-width: 0; }

/* Hero */
.hero { padding: 80px 0 90px; background: var(--grad); }
.hero h1 span { display: block; color: var(--navy); }
.hero .tagline { margin-bottom: 6px; color: var(--ink); font-weight: 800; font-size: 15px; letter-spacing: .5px; text-transform: uppercase; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 28px; }
.hero-media { position: relative; min-height: 380px; }
.hero-media img { position: absolute; object-fit: cover; box-shadow: var(--shadow); }
.hero-media img:first-child { top: 30px; left: 0; width: 66%; aspect-ratio: 3 / 2; }
.hero-media img:last-child { bottom: 0; right: 4%; width: 52%; aspect-ratio: 4 / 3; border-left: 6px solid var(--navy); }
.deco-square { position: absolute; width: 56px; height: 56px; border: 6px solid var(--sky); border-radius: 6px; opacity: .8; }
.hero-media .deco-square { top: -14px; left: 34%; }

/* About */
.about-media { position: relative; }
.about-media > img { width: 62%; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: var(--shadow); }
.about-card {
  position: absolute;
  right: 0; top: 14%;
  width: 52%;
  padding: 26px 24px;
  background: var(--white);
  border-left: 5px solid var(--navy);
  box-shadow: var(--shadow);
}
.about-card h3 { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.about-card h3:first-child { padding-top: 0; }
.about-card img { width: 120px; margin: 18px auto 0; }
.quote-border { padding-left: 16px; border-left: 4px solid var(--navy); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin: 22px 0; padding: 0; list-style: none; font-size: 15px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; }
.checks .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--navy); }
.bars { padding-top: 22px; border-top: 1px solid var(--line); }
.bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--blue);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Support band */
.band {
  position: relative;
  padding: 70px 0;
  background: url("../img/support-bg.jpg") center / cover no-repeat;
  color: var(--white);
}
.band::before { content: ""; position: absolute; inset: 0; background: rgba(36, 47, 155, 0.72); }
.band .container { position: relative; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 50px; align-items: center; }
.band h2 { color: var(--white); margin: 0; }
.band blockquote {
  margin: 0;
  padding: 26px 30px;
  background: var(--white);
  border-left: 5px solid var(--navy);
  color: var(--text);
  font-style: italic;
}

/* Services */
.services-media { position: relative; }
.services-media > img { width: 82%; aspect-ratio: 5 / 6; object-fit: cover; box-shadow: var(--shadow); }
.call-card {
  position: absolute;
  right: 0; bottom: -30px;
  padding: 22px 26px;
  background: var(--white);
  border-left: 5px solid var(--navy);
  box-shadow: var(--shadow);
}
.call-card .icon { width: 32px; height: 32px; margin-bottom: 8px; color: var(--navy); }
.call-card strong { display: block; color: var(--ink); }
.call-card a { color: var(--text); text-decoration: none; }
.feature { display: flex; gap: 18px; margin-bottom: 22px; }
.feature .icon { width: 34px; height: 34px; color: var(--navy); margin-top: 2px; }
.feature h3 { margin-bottom: 6px; font-size: 17px; }
.feature p { margin: 0; font-size: 15px; }
.services-more { margin-top: 80px; }
.collage { position: relative; min-height: 380px; }
.collage img { position: absolute; object-fit: cover; box-shadow: var(--shadow); }
.collage .c1 { top: 0; right: 0; width: 48%; aspect-ratio: 1 / 1; border-left: 5px solid var(--navy); }
.collage .c2 { top: 26%; left: 4%; width: 52%; aspect-ratio: 3 / 2; border: 6px solid var(--white); }
.collage .c3 { bottom: 0; left: 46%; width: 132px; padding: 16px; background: var(--white); border-left: 5px solid var(--navy); }
.collage .deco-square { top: -4px; left: 4%; }

/* Brands */
.brands { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: center; }
.brand-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: nowrap;
  gap: 20px;
  padding: 30px 26px;
  border-radius: 8px;
  background: var(--grad);
}
.brand-strip img { height: 26px; width: auto; max-width: 20%; object-fit: contain; }
.brand-strip img.square { height: 44px; }

/* Equipment */
.eq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.eq {
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(36, 47, 155, 0.12);
}
.eq img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.eq span {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.eq-grid .eq:last-child:nth-child(3n + 1) { grid-column: 2; }

/* Clients */
.clients-text p { color: var(--ink); font-size: 22px; line-height: 1.45; }
.clients-text img { width: 100%; aspect-ratio: 16 / 5; object-fit: cover; margin-top: 24px; }
.client-list { margin: 0; padding: 0; list-style: none; }
.client-list li {
  margin-bottom: 12px;
  padding: 14px 20px;
  border-radius: 6px;
  background: var(--grad);
  color: var(--ink);
  font-weight: 700;
}

/* Values */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 44px; }
.value .icon { width: 36px; height: 36px; color: var(--navy); margin-bottom: 14px; }
.value h3 { margin-bottom: 8px; }
.value p { font-size: 15px; }

/* Contact */
.contact-media { position: relative; padding: 30px 0 0 30px; }
.contact-media img { position: relative; width: 100%; aspect-ratio: 2 / 3; max-height: 620px; object-fit: cover; border-radius: 0 160px 0 160px; box-shadow: var(--shadow); }
.contact-media::before { content: ""; position: absolute; top: 0; left: 0; width: 120px; height: 120px; border-radius: 50%; background: var(--navy); }
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.form input, .form textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  border: 1px solid #D5D7E2;
  border-radius: 8px;
  background: var(--white);
}
.form input { height: 50px; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(36, 47, 155, 0.12); }
.form .btn { justify-content: center; width: 100%; padding: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { margin: 0; color: #C0392B; font-size: 14px; }
.form-thanks { margin-top: 24px; padding: 34px 26px; text-align: center; border: 2px solid var(--line); border-radius: 12px; }
.form-thanks h3 { color: var(--navy); }
.form-thanks p { margin: 0; }

/* Info cards */
.info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 70px; }
.info-card { padding: 30px 20px; text-align: center; border-radius: 8px; }
.info-card:nth-child(2) { background: var(--grad); }
.info-card .icon { width: 34px; height: 34px; margin: 0 auto 12px; color: var(--navy); }
.info-card h3 { margin-bottom: 4px; font-size: 18px; }
.info-card p, .info-card a { margin: 0; color: var(--text); font-size: 15px; text-decoration: none; }

/* Legal pages */
.legal { max-width: 860px; }
.legal h1 { color: var(--navy); margin-bottom: 30px; }
.legal h2 { font-size: 24px; margin-top: 30px; }
.legal h3 { margin-top: 22px; }

/* 404 */
.not-found { padding: 120px 0; text-align: center; }
.not-found .code { font-size: clamp(80px, 14vw, 140px); font-weight: 800; line-height: 1; color: var(--sky-soft); -webkit-text-stroke: 2px var(--navy); }

/* Footer */
.site-footer { padding: 60px 0 0; background: var(--navy); color: rgba(255, 255, 255, 0.85); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.site-footer h4 { margin-bottom: 18px; padding-bottom: 12px; color: var(--white); font-size: 20px; position: relative; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; background: var(--blue); }
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-logo img { width: 110px; margin-bottom: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.footer-contact { margin: 0; padding: 0; list-style: none; }
.footer-contact li { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.footer-contact .icon { width: 16px; height: 16px; color: var(--sky); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, 0.2); font-size: 13px; }
.footer-bottom nav { display: flex; gap: 16px; }

/* Tablet */
@media (max-width: 1024px) {
  .topbar { display: none; }
  .header-inner { align-items: center; }
  .logo { flex-direction: row; width: auto; padding: 10px 14px; }
  .logo img { width: 44px; }
  .nav-row { min-height: 70px; }
  .header-phone span { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    background: var(--white);
    box-shadow: 0 16px 30px rgba(36, 47, 155, 0.12);
  }
  .menu-open .nav { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 10px 24px 20px; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-row { justify-content: flex-end; gap: 12px; }

  .section { padding: 70px 0; }
  .split, .band .container, .brands { grid-template-columns: 1fr; gap: 44px; }
  .hero-media, .about-media, .services-media, .collage, .contact-media { max-width: 560px; width: 100%; margin: 0 auto; }
  .services-more .collage { order: -1; }
  .eq-grid { grid-template-columns: repeat(2, 1fr); }
  .eq-grid .eq:last-child:nth-child(3n + 1) { grid-column: auto; }
  .eq-grid .eq:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 50%; justify-self: center; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 767px) {
  body { font-size: 15px; }
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .hero { padding: 50px 0 60px; }
  .hero-media { min-height: 280px; }
  .about-media > img { width: 70%; }
  .about-card { width: 56%; padding: 18px 16px; }
  .about-card h3 { font-size: 15px; padding: 10px 0; }
  .about-card img { width: 90px; }
  .checks { grid-template-columns: 1fr; }
  .collage { min-height: 300px; }
  .eq-grid, .values, .info, .footer-grid { grid-template-columns: 1fr; }
  .eq-grid .eq:last-child:nth-child(odd) { max-width: none; }
  .clients-text p { font-size: 19px; }
  .contact-media img { border-radius: 0 110px 0 110px; }
  .info { margin-top: 50px; }
  .brand-strip { flex-wrap: wrap; justify-content: center; }
  .brand-strip img { max-width: 40%; }
  .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
}
