:root {
  --bg: #ffffff;
  --surface: #f7f7f4;
  --surface-strong: #eeeeea;
  --text: #171717;
  --muted: #64645f;
  --line: #deddd6;
  --accent: #40584f;
  --accent-dark: #243b33;
  --max: 1120px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 28px 0;
}

.brand {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 0;
}

.nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  transition: color 160ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.section {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 86px 0;
}

.hero {
  display: grid;
  min-height: 620px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-content {
  max-width: 780px;
}

.intro,
.section-label,
.card-number {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 28px;
  font-size: clamp(46px, 8vw, 86px);
  line-height: 0.98;
  font-weight: 680;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: 0;
}

.hero-text {
  max-width: 640px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.55;
}

.actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--text);
  border-radius: var(--radius);
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 620;
  line-height: 1.2;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button.primary {
  background: var(--text);
  color: var(--bg);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button.secondary {
  background: transparent;
  color: var(--text);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: var(--surface);
}

.section-heading {
  max-width: 660px;
  margin-bottom: 44px;
}

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

.offer-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  background: var(--bg);
}

.offer-card p:not(.card-number) {
  color: var(--muted);
}

.facts {
  display: grid;
  gap: 14px;
  margin: 34px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.facts div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.facts dt {
  color: var(--muted);
  font-size: 14px;
}

.facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  text-align: right;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 80px;
  border-top: 1px solid var(--line);
}

.sticky-heading {
  position: sticky;
  top: 32px;
  align-self: start;
}

.process-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.process-list li:first-child {
  padding-top: 0;
}

.process-list span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.process-list p {
  max-width: 580px;
  margin-bottom: 0;
  color: var(--muted);
}

.fit-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.fit-column {
  border-radius: var(--radius);
  padding: 42px;
  background: var(--surface);
}

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

.check-list,
.tag-list {
  display: grid;
  gap: 13px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
}

.check-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 80px;
  border-top: 1px solid var(--line);
}

.about-text {
  color: var(--muted);
  font-size: 18px;
}

.tag-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 34px;
}

.tag-list li {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--text);
  font-size: 15px;
  font-weight: 620;
}

.contact {
  padding-bottom: 100px;
}

.contact-box {
  display: grid;
  gap: 24px;
  border-radius: var(--radius);
  padding: clamp(34px, 6vw, 62px);
  background: var(--text);
  color: var(--bg);
}

.contact-box .section-label,
.contact-box p {
  color: #d5ddd8;
}

.contact-box h2 {
  color: var(--bg);
}

.contact-box p {
  max-width: 620px;
  margin-bottom: 0;
  font-size: 19px;
}

.contact-box .button.primary {
  border-color: var(--bg);
  background: var(--bg);
  color: var(--text);
}

.contact-box .button.secondary {
  border-color: #5c5c58;
  color: var(--bg);
}

.contact-box .button.secondary:hover,
.contact-box .button.secondary:focus-visible {
  background: #2a2a28;
}

address {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: #d5ddd8;
  font-style: normal;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 14px;
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  color: var(--muted);
  font-size: 14px;
  transition: color 160ms ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--text);
}

.legal-page {
  max-width: 660px;
  padding-top: 64px;
  padding-bottom: 100px;
}

.legal-page h1 {
  font-size: clamp(32px, 5vw, 52px);
  margin-top: 36px;
  margin-bottom: 36px;
}

.legal-page p {
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.legal-page a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.back-link {
  display: inline-block;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 160ms ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--text);
}

.legal-note {
  margin-top: 48px;
  padding: 18px 22px;
  border-left: 3px solid var(--line);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
}

/* ── Service group grid ── */
.service-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.service-group-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px 24px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-group-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-group-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  flex: 1;
}

.service-group-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
}

.service-group-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line);
  content: "";
}

.service-group-link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: auto;
}

.section-more {
  margin-top: 32px;
  font-size: 15px;
  width: min(100% - 40px, var(--max));
  margin-left: auto;
  margin-right: auto;
}

.section-more a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Subpage layout ── */
.subpage {
  padding-top: 64px;
  padding-bottom: 100px;
}

.subpage-inner {
  max-width: 720px;
}

.subpage h1 {
  font-size: clamp(32px, 5vw, 52px);
  margin-top: 36px;
  margin-bottom: 24px;
}

.subpage .lead {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 48px;
}

.subpage h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin-top: 52px;
  margin-bottom: 16px;
  padding-top: 52px;
  border-top: 1px solid var(--line);
}

.subpage h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.subpage p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.subpage ul {
  margin: 16px 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.subpage ul li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 16px;
}

.subpage ul li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.info-box {
  margin: 32px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--line);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px;
  color: var(--muted);
}

.info-box p {
  margin-bottom: 0;
  font-size: 15px;
}

/* Sprint detail cards */
.sprint-block {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

.sprint-block:last-child {
  border-bottom: 1px solid var(--line);
}

.sprint-block h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  margin-bottom: 14px;
  font-size: clamp(20px, 2.5vw, 26px);
}

.sprint-block .sprint-meta {
  display: flex;
  gap: 32px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.sprint-meta span strong {
  display: block;
  color: var(--text);
  font-weight: 650;
  font-size: 15px;
}

/* Contact subpage */
.contact-subpage {
  max-width: 620px;
}

.contact-subpage .contact-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
}

.contact-subpage .contact-item:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-subpage .contact-label {
  min-width: 80px;
  color: var(--muted);
  font-size: 14px;
}

.contact-subpage .contact-value a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    gap: 18px;
  }

  .nav {
    gap: 16px;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    min-height: 560px;
  }

  .offer-grid,
  .split,
  .fit-section,
  .about,
  .service-group-grid {
    grid-template-columns: 1fr;
  }

  .split,
  .about {
    gap: 36px;
  }

  .sticky-heading {
    position: static;
  }

  .offer-card {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .site-header,
  .site-footer {
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    font-size: 13px;
  }

  .section {
    width: min(100% - 28px, var(--max));
    padding: 54px 0;
  }

  .hero {
    min-height: 520px;
  }

  h1 {
    font-size: clamp(42px, 14vw, 58px);
  }

  .hero-text {
    font-size: 18px;
  }

  .button {
    width: 100%;
  }

  .offer-card,
  .fit-column {
    padding: 24px;
  }

  .facts div {
    display: grid;
    gap: 2px;
  }

  .facts dd {
    text-align: left;
  }

  .process-list li {
    grid-template-columns: 42px 1fr;
    gap: 18px;
  }

  .tag-list {
    grid-template-columns: 1fr;
  }
}
