:root {
  --color-ink: #18212f;
  --color-muted: #5d6878;
  --color-line: #d9e1ea;
  --color-surface: #ffffff;
  --color-field: #f5f8fb;
  --color-ice: #e9f6fb;
  --color-navy: #12335f;
  --color-red: #b72034;
  --color-teal: #187c86;
  --shadow-soft: 0 16px 44px rgba(24, 33, 47, 0.12);
  --radius: 8px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  color: var(--color-ink);
  background: var(--color-surface);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  text-size-adjust: 100%;
}

body {
  margin: 0;
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 max(20px, calc((100vw - var(--container)) / 2));
  border-bottom: 1px solid var(--color-line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--color-ink);
  font-size: 20px;
  font-weight: 800;
}

.brand img {
  width: auto;
  height: 44px;
  max-width: min(300px, 42vw);
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  color: var(--color-ink);
}

.account-avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #ffffff !important;
  font-size: 13px;
  letter-spacing: 0;
  text-decoration: none;
}

.account-avatar[hidden],
[hidden] {
  display: none !important;
}

.home-hero,
.solution-hero,
.page-hero {
  background: linear-gradient(180deg, var(--color-ice), #ffffff);
}

.home-hero,
.solution-hero {
  padding: 64px 0 40px;
}

.page-hero {
  padding: 56px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 40px;
  align-items: center;
}

.hero-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  background: var(--color-field);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 0 18px;
  max-width: 780px;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

p {
  margin: 0 0 16px;
  color: var(--color-muted);
}

.primary-link,
.service-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: var(--color-red);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.primary-link:hover,
.service-card a:hover {
  background: #961b2c;
  text-decoration: none;
}

.content-section {
  padding: 48px 0;
}

.home-banner-section {
  padding: 28px 0 0;
  background: #ffffff;
}

.home-banner-link {
  display: block;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-field);
  box-shadow: var(--shadow-soft);
}

.home-banner-link:hover {
  text-decoration: none;
}

.home-banner-link:focus-visible {
  outline: 3px solid var(--color-teal);
  outline-offset: 4px;
}

.home-banner-link img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1916 / 821;
}

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

.service-card {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.service-card p {
  min-height: 72px;
}

.text-flow {
  max-width: 860px;
}

.page-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 0 0 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  background: var(--color-field);
}

.text-flow p {
  margin-bottom: 18px;
  color: #364152;
}

.faq-item {
  padding: 0 0 22px;
  margin: 0 0 22px;
  border-bottom: 1px solid var(--color-line);
}

.faq-item h2 {
  margin-bottom: 8px;
}

.faq-item p {
  margin-bottom: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 32px;
  padding: 32px max(20px, calc((100vw - var(--container)) / 2));
  border-top: 1px solid var(--color-line);
  background: var(--color-ink);
  color: #ffffff;
}

.footer-contact {
  display: grid;
  gap: 8px;
}

.site-footer span,
.site-footer a {
  color: #d7e0ea;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

form {
  display: grid;
  gap: 14px;
  max-width: 720px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--color-ink);
  font-weight: 700;
}

input,
select,
textarea,
button {
  width: 100%;
  font: inherit;
}

input,
select,
textarea {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-field);
  color: var(--color-ink);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-navy);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: var(--color-teal);
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 16px;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
  }

  .hero-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .home-hero,
  .solution-hero {
    padding: 40px 0 28px;
  }

  h1 {
    font-size: 34px;
  }

  .brand img {
    height: 38px;
    max-width: min(280px, 72vw);
  }

  .service-card {
    min-height: 0;
  }

  .service-card p {
    min-height: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
