:root {
  --bg: #f5f8ff;
  --surface: #ffffff;
  --surface-2: #ecf2fb;
  --text: #0f172a;
  --muted: #475569;
  --line: #d3deee;
  --brand-1: #0a2a6e;
  --brand-2: #1f4fd0;
  --accent: #1f9a77;
  --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.10);
  --shadow-card: 0 8px 28px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

body {
  line-height: 1.5;
}

a {
  color: var(--brand-2);
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0 0 0.65rem;
  line-height: 1.2;
}

p {
  margin: 0.2rem 0 0.9rem;
}

ul {
  margin: 0.1rem 0 0;
  padding-left: 1.2rem;
}

li {
  margin: 0.35rem 0;
}

.container {
  width: min(100%, 1120px);
  margin-inline: auto;
  padding: 0 1.2rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(160deg, var(--brand-1), var(--brand-2));
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.22);
}

.site-header .nav-shell {
  display: flex;
  align-items: center;
  padding: 0.85rem 0;
  gap: 0.9rem;
}

.brand {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  object-fit: cover;
}

.menu-toggle {
  display: none;
}

.menu-toggle-btn {
  margin-left: auto;
  display: none;
  width: 2.6rem;
  height: 2.5rem;
  border: 0;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.14);
  align-items: center;
  justify-content: center;
}

.menu-toggle-btn:focus-visible {
  outline: 2px solid #dbeafe;
  outline-offset: 2px;
}

.hamburger {
  width: 1.18rem;
  height: 0.9rem;
  position: relative;
}

.hamburger span {
  position: absolute;
  inset-inline: 0;
  height: 2px;
  border-radius: 99px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 0.4rem; }
.hamburger span:nth-child(3) { top: 0.8rem; }

#menu-toggle:checked + .menu-toggle-btn .hamburger span:nth-child(1) {
  top: 0.4rem;
  transform: rotate(45deg);
}

#menu-toggle:checked + .menu-toggle-btn .hamburger span:nth-child(2) {
  opacity: 0;
}

#menu-toggle:checked + .menu-toggle-btn .hamburger span:nth-child(3) {
  top: 0.4rem;
  transform: rotate(-45deg);
}

.site-header nav {
  margin-left: auto;
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.site-header nav a {
  color: #eff6ff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  transition: background-color 0.2s ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.site-header nav a.active {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.hero {
  background: radial-gradient(120% 120% at 15% 10%, #dbeafe 0%, var(--bg) 55%);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 0 2.1rem;
}

.hero-shell {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.hero .phone {
  margin: 0.35rem 0;
  font-weight: 700;
}

.hero-copy .badge {
  display: inline-flex;
  margin: 0;
  color: #1f4fd0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.84rem;
}

.hero-media img {
  width: 100%;
  height: clamp(280px, 45vw, 420px);
  object-fit: cover;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.05rem;
}

.section {
  padding: 1.9rem 0;
}

.section-muted {
  background: var(--surface);
}

.section:nth-of-type(even):not(.section-muted) {
  background: #f8fbff;
}

.grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.95rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.95rem;
  box-shadow: var(--shadow-card);
  color: inherit;
  display: block;
}

.card h3,
.card h2 {
  margin-top: 0;
}

.service-tile {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.13);
}

.content-image {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  display: block;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.section-head h1,
.section-head h2 {
  margin: 0;
}

.section-head img {
  width: min(100%, 220px);
  border-radius: 0.9rem;
  border: 1px solid var(--line);
}

.split {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: start;
}

.split img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0.9rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-weight: 700;
  background: linear-gradient(140deg, var(--brand-2), #3b82f6);
  color: #fff;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.button-outline {
  background: transparent;
  color: var(--brand-2);
  border: 1px solid #93c5fd;
  box-shadow: none;
}

.button:hover {
  filter: brightness(1.04);
}

.form-quick-links,
.quick-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.quick-links a,
.form-quick-links a {
  text-decoration: none;
}

footer {
  margin-top: 1.8rem;
  background: linear-gradient(140deg, #0a225f, var(--brand-1));
  color: #fff;
  padding: 1.15rem 0;
}

.contact-form {
  display: grid;
  gap: 0.5rem;
}

.contact-form label {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.65rem 0.75rem;
  font: inherit;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.22);
}

.contact-form button {
  width: fit-content;
  padding: 0.72rem 1.05rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(140deg, var(--brand-2), #3b82f6);
  color: #fff;
  font-weight: 700;
}

.gallery {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.65rem;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  width: 100%;
  display: block;
  border-radius: 0.7rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}

@media (max-width: 860px) {
  .hero-shell {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    height: clamp(240px, 55vw, 380px);
  }
}

@media (max-width: 740px) {
  .menu-toggle-btn {
    display: inline-flex;
  }

  .site-header .nav-shell {
    flex-wrap: wrap;
    position: relative;
    align-items: center;
  }

  .site-header nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding-top: 0.65rem;
  }

  #menu-toggle:checked + .menu-toggle-btn + nav {
    display: flex;
  }

  .site-header nav a {
    border-radius: 0.6rem;
  }

  .hero {
    padding-top: 1.6rem;
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
}
