:root {
  --c-primary: #2464eb;
  --c-primary-dark: #1e4fda;
  --c-primary-soft: rgba(37, 99, 235, .08);
  --c-text: #18181d;
  --c-muted: #586570;
  --c-bg: #ffffff;
  --c-bg-soft: #f8f9f7;
  --c-border: #e5e5e8;
  --c-accent: #f69d0d;

  --font-head: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 9px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 5px rgba(15, 23, 42, .06);
  --shadow:    0 7px 22px rgba(15, 23, 42, .08);
  --shadow-lg: 0 13px 37px rgba(15, 23, 42, .14);

  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 96px;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

/* === Typography === */
body {
  font-family: var(--font-body);
  font-size: clamp(16px, 0.4vw + 14.5px, 18px);
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-text);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(32px, 4vw + 12px, 56px); margin-bottom: var(--s-3); }
h2 { font-size: clamp(26px, 2vw + 14px, 40px); margin-bottom: var(--s-3); margin-top: var(--s-5); }
h3 { font-size: clamp(20px, 1vw + 14px, 26px); margin-bottom: var(--s-2); margin-top: var(--s-4); }
h4 { font-size: clamp(18px, 0.5vw + 14px, 22px); margin-bottom: var(--s-2); margin-top: var(--s-3); }

p { margin-bottom: var(--s-2); max-width: 75ch; }
.banner p, .voice p { max-width: none; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.4em; margin-bottom: var(--s-2); }
li { margin-bottom: var(--s-1); }
li > ul, li > ol { margin-top: var(--s-1); }

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color .15s;
}
a:hover { color: var(--c-primary-dark); text-decoration: underline; }

strong, b { font-weight: 700; }

hr, .block { border: none; }
hr.block-divider { height: 1px; background: var(--c-border); margin-block: var(--s-4); }

/* === Layout === */
.inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section, .block {
  padding-block: clamp(40px, 6vw, 96px);
}
.block-light { background: var(--c-bg-soft); }

/* === Header === */
.main-crown {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--c-bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.main-crown .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-block: var(--s-2);
}
.main-crown .x-logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}
.main-crown .x-logo img {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
.crown-call {
  color: var(--c-text);
  font-weight: 600;
  white-space: nowrap;
}
.crown-call:hover { color: var(--c-primary); text-decoration: none; }

.main-navi ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.main-navi li { margin: 0; }
.main-navi a {
  color: var(--c-text);
  font-weight: 500;
  padding-block: var(--s-1);
}
.main-navi a:hover { color: var(--c-primary); text-decoration: none; }


.navi-call-mob { display: none; }

.drawer-opener {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  color: var(--c-text);
}
.drawer-opener::before {
  content: "";
  width: 22px; height: 2px;
  background: currentColor;
  box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor;
}

/* === Hero === */
.banner {
  padding-block: clamp(48px, 7vw, 120px);
  background:
    radial-gradient(ellipse 90% 60% at 70% 0%, var(--c-primary-soft), transparent 70%),
    var(--c-bg);
}
.banner-body { max-width: 880px; }
.banner h1 { margin-top: 0; }


.gallery-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: var(--s-3);
  margin-top: var(--s-3);
}
.gallery-cell {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--c-bg-soft);
  aspect-ratio: 16 / 10;
}
.gallery-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.gallery-cell:hover img { transform: scale(1.04); }


.answers-items { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-3); max-width: 880px; }
.answers-cell {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.answers-cell[open] {
  border-color: color-mix(in srgb, var(--c-primary) 35%, var(--c-border));
  box-shadow: var(--shadow-sm);
}
.answers-cell summary {
  list-style: none;
  cursor: pointer;
  padding: var(--s-3);
  padding-right: 56px;
  font-weight: 600;
  font-size: 1.05em;
  position: relative;
  user-select: none;
}
.answers-cell summary::-webkit-details-marker { display: none; }
.answers-cell summary::after {
  content: "+";
  position: absolute;
  right: var(--s-3);
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  line-height: 1;
  color: var(--c-primary);
  transition: transform .25s;
}
.answers-cell[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.answers-cell .detail {
  padding: 0 var(--s-3) var(--s-3);
  color: var(--c-muted);
}
.answers-cell .detail p { color: var(--c-text); }


.product table {
  width: 100%;
  border-collapse: collapse;
  margin-block: var(--s-3);
  font-size: .95em;
  background: var(--c-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.product th, .product td {
  padding: var(--s-2);
  border-bottom: 1px solid var(--c-border);
  text-align: left;
  vertical-align: top;
}
.product th {
  background: var(--c-bg-soft);
  font-weight: 600;
  color: var(--c-text);
}
.product tr:last-child td { border-bottom: none; }
.product tbody tr:hover td { background: var(--c-primary-soft); }
.product-matrix-box { overflow-x: auto; }

/* === Team === */
.experts-block { padding-block: clamp(40px, 6vw, 96px); background: var(--c-bg-soft); }
.experts-head { text-align: center; margin-bottom: var(--s-4); }
.experts-head h2 { margin-top: 0; }
.experts-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--s-3);
  max-width: 960px;
  margin-inline: auto;
}
.experts-unit {
  background: var(--c-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.experts-unit:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.experts-unit img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--c-bg-soft);
}
.experts-facts {
  padding: var(--s-3);
  text-align: center;
}
.experts-who { font-weight: 700; font-size: 1.1em; margin-bottom: 4px; }
.experts-job { color: var(--c-muted); font-size: .92em; }

/* === Reviews === */
.testimonials-block { padding-block: clamp(40px, 6vw, 96px); }
.testimonials-head { text-align: center; margin-bottom: var(--s-4); }
.testimonials-head h2 { margin-top: 0; }
.testimonials-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--s-3);
}
.voice {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--s-4);
  position: relative;
}
.voice::before {
  content: "“";
  position: absolute;
  top: -8px;
  left: var(--s-3);
  font-size: 64px;
  line-height: 1;
  color: var(--c-primary);
  font-family: Georgia, serif;
  opacity: .35;
}
.voice p { margin-bottom: var(--s-2); color: var(--c-text); }
.voice-signer { font-weight: 600; color: var(--c-primary); }

/* === Tag cloud (footer) === */
.tag-cloud-box { margin-top: var(--s-4); }
.x-tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
  justify-content: center;
}
.x-tagcloud .tag-cloud-anchor {
  display: inline-block;
  padding: 6px 14px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: 1002px;
  color: var(--c-text);
  font-size: .85em;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.x-tagcloud .tag-cloud-anchor:hover {
  background: var(--c-primary);
  color: #ffffff;
  border-color: var(--c-primary);
  text-decoration: none;
}


.product.block .inner > .x-row > h2,
.product.block .inner > .x-row > p {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}
.x-forma {
  max-width: 640px;
  margin: var(--s-4) auto 0;
  background: var(--c-bg);
  padding: var(--s-4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--c-border);
}
.apply-at {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2);
}
.x-validate-input-at { position: relative; }
.x-input-at {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 1em;
  transition: border-color .15s, box-shadow .15s;
}
.x-input-at::placeholder { color: var(--c-muted); }
.x-input-at:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-soft);
}
textarea.x-input-at { min-height: 120px; resize: vertical; }
.x-input-at[type="checkbox"] {
  width: 18px; height: 18px;
  padding: 0;
  accent-color: var(--c-primary);
  vertical-align: middle;
  margin-right: 8px;
}
.apply-at label {
  font-size: .88em;
  color: var(--c-muted);
  line-height: 1.5;
}
.apply-at label a { color: var(--c-primary); }
.apply-at-btn {
  padding: 14px 28px;
  background: var(--c-primary);
  color: #feffff;
  border: none;
  border-radius: var(--radius);
  font-size: 1em;
  font-weight: 600;
  letter-spacing: .01em;
  transition: background .15s, transform .1s;
  width: 100%;
}
.apply-at-btn:hover:not(:disabled) { background: var(--c-primary-dark); }
.apply-at-btn:active { transform: translateY(1px); }
.apply-at-btn:disabled { opacity: .5; cursor: not-allowed; }
.x-focus-input-at { display: none; }
.x-result-at { color: var(--c-primary); font-weight: 500; }


@media (min-width: 600px) {
  .apply-at {
    grid-template-columns: 1fr 1fr;
  }
  .apply-at > textarea,
  .apply-at > .x-input-at[type="checkbox"],
  .apply-at > label,
  .apply-at > .apply-at-btn,
  .apply-at > [type="hidden"],
  .apply-at > .x-result-at,
  .apply-at > .x-validate-input-at:not(.x-w-50) {
    grid-column: 1 / -1;
  }
}

/* === Footer === */
.main-base {
  background: var(--c-bg-soft);
  padding-block: var(--s-4);
  margin-top: var(--s-6);
  border-top: 1px solid var(--c-border);
}
.main-base .inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: space-between;
  align-items: center;
}
.main-base p { color: var(--c-muted); margin: 0; }

/* === Hero variants === */
.banner-split {
  background:
    linear-gradient(135deg, var(--c-primary-soft), transparent 60%),
    var(--c-bg);
}
.banner-split .inner {
  display: grid;
  gap: var(--s-5);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .banner-split .inner { grid-template-columns: 2.4fr 1fr; }
}
.banner-aside {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--s-3);
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 320px;
  margin-inline: auto;
  width: 100%;
}
.banner-aside-note {
  color: var(--c-muted);
  font-size: .82em;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.banner-aside-call {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(20px, 1vw + 14px, 24px);
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: var(--s-1);
  text-decoration: none;
  white-space: nowrap;
}
.banner-aside-call:hover { text-decoration: underline; }
.banner-aside-txt {
  color: var(--c-muted);
  font-size: .85em;
  margin-bottom: var(--s-2);
  max-width: none;
}
.banner-aside .x-btn-primary {
  display: block;
  text-align: center;
  padding: 10px 20px;
  font-size: .95em;
}
.banner-bold {
  background: linear-gradient(160deg, var(--c-primary), var(--c-primary-dark));
  color: #fffefd;
  text-align: center;
}
.banner-bold h1, .banner-bold h2, .banner-bold h3 { color: #fdfdfe; }
.banner-bold p, .banner-bold li { color: rgba(255,255,255,.92); }
.banner-bold .banner-body { margin-inline: auto; }

/* === Stats === */
.metrics { padding-block: clamp(40px, 5vw, 72px); }
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: var(--s-3);
  text-align: center;
}
.counter {
  padding: var(--s-3);
  background: var(--c-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
}
.counter-digit {
  font-family: var(--font-head);
  font-size: clamp(36px, 4vw + 8px, 56px);
  font-weight: 800;
  color: var(--c-primary);
  line-height: 1;
  margin-bottom: var(--s-1);
  letter-spacing: -0.02em;
}
.counter-note { color: var(--c-muted); font-size: .95em; }

/* === CTA banner === */
.push { padding-block: clamp(40px, 5vw, 80px); }
.push-unit {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  color: #fdffff;
  padding: clamp(24px, 4vw, 56px);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.push-unit h2 {
  color: #fffffd;
  margin-top: 0;
  font-size: clamp(22px, 2vw + 14px, 32px);
}
.push-unit p {
  color: rgba(255,255,255,.92);
  margin-inline: auto;
  margin-bottom: var(--s-3);
  max-width: 60ch;
}
.x-btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--c-bg);
  color: var(--c-primary);
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.x-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.2); text-decoration: none; }

/* === Features === */
.benefits-head { text-align: center; margin-bottom: var(--s-4); }
.benefits-head h2 { margin-top: 0; }
.benefits-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--s-3);
}
.plus {
  padding: var(--s-4);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
}
.plus .f-sign {
  width: 40px; height: 40px;
  color: var(--c-primary);
  margin-bottom: var(--s-2);
  background: var(--c-primary-soft);
  padding: 8px;
  border-radius: var(--radius);
  box-sizing: content-box;
}
.plus h3 { margin-top: 0; font-size: 1.15em; }
.plus p { color: var(--c-muted); margin-bottom: 0; max-width: none; }

/* === Process flow (How we work — index_process_first) === */
.path-head { text-align: center; margin-bottom: var(--s-4); }
.path-head h2 { margin-top: 0; }
.path-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--s-3);
}
.x-step {
  padding: var(--s-4);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  text-align: center;
}
.step-digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4em;
  line-height: 1;
  margin-bottom: var(--s-2);
}
.x-step h4 { margin: var(--s-1) 0 var(--s-2); font-size: 1.1em; }
.x-step p { color: var(--c-muted); margin-bottom: 0; max-width: none; }

/* === Guarantees (index_process_first) === */
.safety-head { text-align: center; margin-bottom: var(--s-4); }
.safety-head h2 { margin-top: 0; }
.safety-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: var(--s-3);
}
.x-guarantee {
  padding: var(--s-3);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  text-align: center;
}
.x-guarantee .g-sign {
  width: 36px; height: 36px;
  color: var(--c-primary);
  background: var(--c-primary-soft);
  padding: 8px;
  border-radius: var(--radius);
  margin-bottom: var(--s-2);
  box-sizing: content-box;
}
.x-guarantee p { margin: 0; font-weight: 600; color: var(--c-text); max-width: none; }


.txt-centered { text-align: center; }
.x-row { display: block; }

/* === Mobile === */
@media (max-width: 860px) {
  .drawer-opener { display: inline-flex; }
  .main-navi {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 82vw);
    background: var(--c-bg);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform .25s ease;
    padding: calc(var(--s-5) + 12px) var(--s-3) var(--s-3);
    z-index: 60;
    overflow-y: auto;
  }
  .main-navi.shown { transform: translateX(0); }
  .main-navi ul { flex-direction: column; gap: var(--s-2); }
  .main-navi a { font-size: 1.1em; display: block; padding-block: var(--s-2); }
  .navi-veil {
    position: fixed; inset: 0;
    background: rgba(8, 12, 20, .45);
    z-index: 55;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
  }
  .navi-veil.shown { opacity: 1; pointer-events: auto; }
  body.navi-shown { overflow: hidden; }
  .crown-call { display: none; }
  .navi-call-mob { display: list-item; }
}

@media (max-width: 480px) {
  .banner { padding-block: var(--s-5); }
  .x-forma { padding: var(--s-3); }
  .voice { padding: var(--s-3); }
  .voice::before { font-size: 48px; }
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

a[href^="mailto:"] { overflow-wrap: anywhere; }
