:root {
  --bg: #fbfcfe;
  --bg-2: #f3f6fb;
  --ink: #14171d;
  --muted: #556070;
  --accent: #1d5bd6;
  --accent-deep: #1546a8;
  --accent-soft: #eaf1ff;
  --line: #e4e8ef;
  --max: 1180px;
  --font: "Poppins", Arial, sans-serif;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(22, 20, 22, 0.07);
  --shadow-sm: 0 10px 28px rgba(22, 20, 22, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--accent);
  color: #fff;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin: 0 0 0.55em;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h3 {
  font-size: 1.28rem;
}

p {
  margin: 0 0 1rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 80;
}

.skip:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 252, 254, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(22, 20, 22, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 300px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.45rem;
}

.site-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 42px;
  height: 42px;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: #111;
  position: absolute;
  left: 10px;
}

.nav-toggle-bar {
  top: 20px;
}

.nav-toggle-bar::before {
  top: -7px;
}

.nav-toggle-bar::after {
  top: 7px;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 38rem;
}

.hero .lead {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  max-width: 28rem;
}

.page-hero,
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 1.6rem;
  background:
    radial-gradient(circle at 88% 8%, rgba(29, 91, 214, 0.16), transparent 32%),
    linear-gradient(180deg, #eef4ff 0%, #fbfcfe 72%);
}

.hero {
  padding-bottom: 4.2rem;
}

.hero::after {
  content: "";
  position: absolute;
  width: 28rem;
  height: 28rem;
  right: -8rem;
  bottom: -12rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 91, 214, 0.1), transparent 68%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.7fr);
  gap: 3.2rem;
  align-items: start;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-title {
  display: flex;
  flex-direction: column;
  max-width: none;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.96;
  margin-bottom: 1.1rem;
}

.hero-title .is-accent {
  color: var(--accent);
}

.stats {
  list-style: none;
  margin: 0;
  padding: 1.35rem 1.4rem;
  display: grid;
  gap: 1.15rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stats strong {
  display: block;
  font-size: 2.2rem;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--accent);
}

.stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section-head-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
}

.btn-nav {
  min-height: 44px;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.hero-actions .btn {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.75rem 1.3rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(29, 91, 214, 0.22);
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-ghost {
  border-color: #111;
  background: transparent;
}

.btn-ghost:hover {
  background: #111;
  color: #fff;
}

.text-link {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.text-link::after {
  content: " →";
}

.section {
  padding: 5rem 0 5.2rem;
}

.section-alt {
  background: var(--bg-2);
}

.section-head {
  margin-bottom: 2.4rem;
}

.section-more {
  margin: 2.2rem 0 0;
}

.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.ref-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ref-card a {
  display: block;
  text-decoration: none;
  height: 100%;
}

.ref-media {
  overflow: hidden;
  background: #eee;
}

.ref-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s ease;
}


.ref-body {
  padding: 1.25rem 1.3rem 1.45rem;
}

.ref-body h2,
.ref-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.ref-body p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag {
  display: inline-block;
  margin-bottom: 0.7rem;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(29, 91, 214, 0.16);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.offer-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.offer-cards article {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem 1.45rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.offer-cards article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.offer-cards article p {
  flex: 1;
  color: var(--muted);
}

.offer-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.8rem 0 0;
}

.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.52rem 1rem;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.chip.is-active,
.chip:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.work-card.is-hidden {
  display: none;
}

.case-layout {
  padding-bottom: 4.4rem;
}

.case-hero {
  margin: 1.6rem 0 1.8rem;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.case-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.case-note {
  color: var(--muted);
}

.case-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.6rem 0 2rem;
}

.case-blocks section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.3rem 1.25rem 1.1rem;
}

.contact-wrap {
  max-width: 760px;
  padding-bottom: 3.8rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 500;
  font-size: 0.92rem;
}

.contact-form em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.78rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(29, 91, 214, 0.22);
  border-color: var(--accent);
}

.hp {
  position: absolute;
  left: -9999px;
}

.notice {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.notice-ok {
  background: #e6f4ea;
}

.notice-err {
  background: #fde8e8;
}

.site-footer {
  background: #111;
  color: #ddd;
}

.footer-cta {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 80% 20%, rgba(29, 91, 214, 0.34), transparent 36%),
    #111;
}

.footer-cta-grid {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}

.footer-cta h2 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  max-width: none;
  margin-bottom: 0;
  white-space: nowrap;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  padding: 1.35rem 0;
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  gap: 1.1rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(920px, 94vw);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.lightbox figure {
  margin: 0;
  background: #111;
  color: #fff;
  border-radius: 14px;
  overflow: hidden;
}

.lightbox img {
  width: 100%;
}

.lightbox figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem 1.1rem;
}

.lightbox a {
  color: #b7d0ff;
}

.lightbox-close {
  position: absolute;
  right: 0.6rem;
  top: 0.6rem;
  background: #fff;
  color: #111;
  border: 0;
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .offer-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .section-head-split,
  .ref-grid,
  .offer-cards,
  .case-blocks,
  .form-grid,
  .footer-cta-grid {
    grid-template-columns: 1fr;
  }

  .footer-cta-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-cta h2 {
    white-space: normal;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    inset: 88px 0 auto 0;
    background: #fbfcfe;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.15rem 1.35rem 1.5rem;
    gap: 0.95rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .page-hero,
  .hero {
    padding: 3rem 0 2.2rem;
  }

  .section {
    padding: 3rem 0 3.4rem;
  }

  h1,
  .hero-title {
    max-width: none;
  }
}
