/* ========================================
   VARIABLES
   ======================================== */
:root {
  --bg: #FAFAFA;
  --text: #1A1A1A;
  --text-mid: #6B6B6B;
  --text-light: #999;
  --accent: #1C3D7A;
  --accent-hover: #152F60;
  --font: 'Manrope', system-ui, -apple-system, sans-serif;
}

/* ========================================
   RESET
   ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ========================================
   HEADER
   ======================================== */
.hd {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  transition: background .3s, box-shadow .3s;
}
.hd.scrolled {
  background: rgba(250,250,250,.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.hd__in {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.hd__logo {
  display: flex; align-items: center;
}
.hd__logo-img {
  height: 36px; width: auto;
}
.hd__right {
  display: flex; align-items: center; gap: 16px;
}
.hd__phone {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 600;
  color: var(--text-mid);
  transition: color .2s;
}
.hd__phone svg { flex-shrink: 0; opacity: .5; }
.hd__phone:hover { color: var(--text); }
.hd__phone:hover svg { opacity: .8; }
.hd__tg {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 700;
  border-radius: 8px;
  transition: background .2s;
}
.hd__tg:hover { background: var(--accent-hover); }

/* ========================================
   HERO
   ======================================== */
.hero {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center;
  background: var(--bg);
  padding-top: 64px;
}

.hero__inner {
  width: 100%; max-width: 1120px; margin: 0 auto;
  padding: 96px 24px 48px;
  display: flex; flex-direction: column;
}

.hero__content {
  max-width: 600px;
}

/* --- H1 --- */
.hero h1 {
  font-size: 32px; font-weight: 800;
  line-height: 1.22; letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 32px;
}
.hero h1 em {
  font-style: normal;
  color: #fff;
  background: #3B82F6;
  padding: 0 10px;
  border-radius: 4px;
}

/* --- Brand logos --- */
.hero__brands {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.hero__brands-img {
  width: 100%; max-width: 520px;
  height: auto;
}

/* --- Subheading --- */
.hero__sub {
  font-size: 17px; line-height: 1.6;
  color: var(--text-mid);
  margin-bottom: 36px;
}

/* --- CTA --- */
.hero__cta {
  display: inline-block;
  padding: 16px 40px;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 16px;
  border-radius: 10px;
  transition: background .2s, transform .15s;
}
.hero__cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.hero__cta:active { transform: none; }

/* --- Trust line --- */
.hero__trust {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-light);
}

/* --- Photo --- */
.hero__photo {
  margin-top: 48px;
  display: flex; justify-content: center;
}
.hero__img-placeholder {
  width: 240px; aspect-ratio: 4/5;
  background: #F0F0F0;
  border-radius: 16px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  color: #C0C0C0; font-size: 13px; font-weight: 600;
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.how {
  background: #F5F5F5;
  padding: 80px 0;
}
.how__inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
}
.how h2 {
  font-size: 28px; font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 48px;
}
.how__steps {
  display: flex; flex-direction: column;
  gap: 0;
}
.how__step {
  padding: 0 0 32px;
}
.how__num {
  font-size: 40px; font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}
.how__step h3 {
  font-size: 18px; font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.how__step p {
  font-size: 15px; line-height: 1.6;
  color: var(--text-mid);
  max-width: 340px;
}
.how__line {
  width: 1px; height: 32px;
  background: #D5D5D5;
  margin: 0 0 32px 18px;
}
.how__cta {
  margin-top: 48px;
}

/* ========================================
   CASES (slider)
   ======================================== */
.cases {
  background: var(--bg);
  padding: 100px 0 80px;
  overflow: hidden;
}
.cases__head {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 48px;
}
.cases h2 {
  font-size: 32px; font-weight: 800;
  letter-spacing: -.02em;
}
.cases__arrows {
  display: flex; gap: 8px;
}
.cases__arrow {
  width: 48px; height: 48px;
  border: 1px solid #D5D5D5;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  cursor: pointer; background: #fff;
  transition: border-color .2s, color .2s;
}
.cases__arrow:hover {
  border-color: var(--text);
}
.cases__arrow:disabled {
  opacity: .3; pointer-events: none;
}

/* Track */
.cases__track {
  display: flex;
  gap: 24px;
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}

/* Single case card */
.case {
  flex: 0 0 100%;
  display: flex; gap: 32px;
  background: #fff;
  border: 1px solid #EBEBEB;
  border-radius: 16px;
  padding: 24px;
  min-height: 0;
}

/* Photo collage (left) */
.case__photos {
  flex: 0 0 46%;
  display: flex; flex-direction: column; gap: 8px;
}
.case__ph {
  background: #F0F0F0;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #B0B0B0; font-size: 12px; font-weight: 600;
}
.case__ph--main {
  flex: 1;
  min-height: 200px;
}
.case__ph-row {
  display: flex; gap: 8px;
}
.case__ph--small {
  flex: 1;
  height: 120px;
}

/* Text (right) */
.case__text {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
}
.case__car {
  font-size: 22px; font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.case__problem {
  font-size: 15px; line-height: 1.6;
  color: var(--text-mid);
  margin-bottom: 16px;
}
.case__solution {
  font-size: 15px; line-height: 1.6;
  color: var(--text);
  margin-bottom: 24px;
}
.case__result {
  font-size: 18px; font-weight: 700;
  margin-bottom: 8px;
}
.case__saving {
  font-size: 20px; font-weight: 800;
  color: var(--accent);
  margin-bottom: 16px;
}
.case__emotion {
  font-size: 14px; line-height: 1.5;
  color: var(--text-light);
  font-style: italic;
}

/* Dots */
.cases__dots {
  display: flex; justify-content: center; gap: 10px;
  margin-top: 32px;
}
.cases__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none; background: #D5D5D5;
  cursor: pointer;
  transition: background .2s;
}
.cases__dot--active {
  background: var(--accent);
}

/* CTA */
.cases__cta {
  max-width: 1120px; margin: 48px auto 0; padding: 0 24px;
}

/* ========================================
   METRICS
   ======================================== */
.metrics {
  background: #F5F5F5;
  padding: 64px 0;
}
.metrics__inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: flex-start;
  gap: 0;
}
.metrics__item {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}
.metrics__num {
  font-size: 36px; font-weight: 800;
  color: var(--accent);
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 10px;
}
.metrics__num--icon {
  display: flex; justify-content: center;
  color: var(--accent);
}
.metrics__label {
  font-size: 14px; line-height: 1.5;
  color: var(--text-mid);
}
.metrics__div {
  width: 1px;
  align-self: stretch;
  background: #D8D8D8;
  flex-shrink: 0;
}

/* ========================================
   WHY ME
   ======================================== */
.why {
  background: var(--bg);
  padding: 100px 0;
}
.why__inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: flex; gap: 64px; align-items: flex-start;
}
.why__content {
  flex: 1;
}
.why h2 {
  font-size: 32px; font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 40px;
  line-height: 1.2;
}
.why__list {
  display: flex; flex-direction: column;
  gap: 28px;
}
.why__item {
  display: flex; gap: 16px;
  align-items: flex-start;
}
.why__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: #F0F0F0;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.why__body h3 {
  font-size: 16px; font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -.01em;
}
.why__body p {
  font-size: 15px; line-height: 1.55;
  color: var(--text-mid);
}
.why__photo {
  flex: 0 0 380px;
  position: sticky; top: 40px;
}
.why__ph {
  width: 100%; aspect-ratio: 3/4;
  background: #F0F0F0;
  border-radius: 16px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  color: #B0B0B0; font-size: 14px; font-weight: 600;
}

/* ========================================
   KNOWLEDGE BASE
   ======================================== */
.kb {
  background: #F5F5F5;
  padding: 100px 0;
}
.kb__inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
}
.kb h2 {
  font-size: 32px; font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 48px;
}
.kb__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.kb__card {
  background: #fff;
  border: 1px solid #EBEBEB;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .25s, border-color .25s;
}
.kb__card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.kb__img {
  overflow: hidden;
  aspect-ratio: 16/9;
}
.kb__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.kb__card:hover .kb__img img {
  transform: scale(1.03);
}
.kb__ph {
  width: 100%; height: 100%;
  background: #E8E8E8;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  color: #A0A0A0;
  transition: transform .4s;
}
.kb__card:hover .kb__ph {
  transform: scale(1.03);
}
.kb__body {
  padding: 20px 22px 24px;
}
.kb__card h3 {
  font-size: 16px; font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.kb__card p {
  font-size: 14px; line-height: 1.5;
  color: var(--text-mid);
}

/* ========================================
   FAQ
   ======================================== */
.faq {
  background: var(--bg);
  padding: 100px 0;
}
.faq__inner {
  max-width: 720px; margin: 0 auto; padding: 0 24px;
}
.faq h2 {
  font-size: 32px; font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 48px;
}
.faq__list {
  display: flex; flex-direction: column;
}
.faq__item {
  border-bottom: 1px solid #E8E8E8;
}
.faq__item:first-child { border-top: 1px solid #E8E8E8; }
.faq__q {
  width: 100%; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; text-align: left;
  font-size: 16px; font-weight: 700;
  background: none; border: none; cursor: pointer;
  color: var(--text);
}
.faq__q span { flex: 1; }
.faq__chevron {
  flex-shrink: 0;
  color: var(--text-light);
  transition: transform .3s;
}
.faq__item.open .faq__chevron {
  transform: rotate(180deg);
}
.faq__a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
}
.faq__a p {
  padding: 0 0 20px;
  font-size: 15px; line-height: 1.6;
  color: var(--text-mid);
}

/* ========================================
   FINAL CTA + FOOTER (unified)
   ======================================== */
.final-ft {
  background: #1A1A1A;
  padding: 100px 0 32px;
}

/* CTA area */
.final-ft__cta {
  max-width: 640px; margin: 0 auto; padding: 0 24px;
  text-align: center;
}
.final-ft h2 {
  font-size: 32px; font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.final-ft__sub {
  font-size: 17px; line-height: 1.6;
  color: rgba(255,255,255,.5);
  margin-bottom: 40px;
}
.final-ft__btn {
  display: inline-flex; gap: 10px;
}
.final-ft__alt {
  margin-top: 24px;
  font-size: 14px;
  color: rgba(255,255,255,.35);
}
.final-ft__alt a {
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.final-ft__alt a:hover { color: #fff; }

/* Divider */
.final-ft__divider {
  max-width: 1120px; margin: 64px auto 0;
  padding: 0 24px;
  border-top: 1px solid rgba(255,255,255,.1);
}

/* Footer area */
.final-ft__footer {
  max-width: 1120px; margin: 0 auto;
  padding: 32px 24px 0;
  display: flex; justify-content: space-between; align-items: center;
}
.final-ft__contacts {
  display: flex; gap: 24px;
}
.final-ft__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.final-ft__link:hover { color: #fff; }
.final-ft__link svg { flex-shrink: 0; opacity: .7; }
.final-ft__link:hover svg { opacity: 1; }
.final-ft__legal {
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; color: rgba(255,255,255,.3);
}
.final-ft__legal a {
  color: rgba(255,255,255,.3);
  transition: color .2s;
}
.final-ft__legal a:hover { color: rgba(255,255,255,.6); }

/* ========================================
   MODAL
   ======================================== */
.modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.modal.open {
  opacity: 1; pointer-events: auto;
}
.modal__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
}
.modal__card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  padding: 36px 32px;
  transform: translateY(20px);
  transition: transform .3s;
}
.modal.open .modal__card {
  transform: none;
}
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light); background: none; border: none;
  cursor: pointer; border-radius: 8px;
  transition: background .2s, color .2s;
}
.modal__close:hover { background: #F0F0F0; color: var(--text); }
.modal__title {
  font-size: 22px; font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.modal__sub {
  font-size: 14px; line-height: 1.5;
  color: var(--text-mid);
  margin-bottom: 28px;
}
.modal__form {
  display: flex; flex-direction: column; gap: 14px;
}
.modal__input {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid #E0E0E0;
  border-radius: 10px;
  font-size: 15px; color: var(--text);
  background: #FAFAFA;
  outline: none;
  transition: border-color .2s, background .2s;
}
.modal__input:focus {
  border-color: var(--accent); background: #fff;
}
.modal__input::placeholder { color: #A0A0A0; }
.modal__textarea { resize: vertical; min-height: 72px; }

/* Drop zone */
.modal__drop {
  display: block; cursor: pointer;
  border: 1.5px dashed #D0D0D0;
  border-radius: 10px;
  padding: 20px;
  transition: border-color .2s, background .2s;
}
.modal__drop:hover,
.modal__drop.dragover {
  border-color: var(--accent); background: rgba(28,61,122,.03);
}
.modal__file-input {
  position: absolute; width: 0; height: 0; opacity: 0;
}
.modal__drop-content {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  color: #A0A0A0;
}
.modal__drop-content span { font-size: 13px; }
.modal__files {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 8px;
}
.modal__file-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: #F0F0F0;
  border-radius: 6px;
  font-size: 12px; color: var(--text-mid);
}
.modal__file-rm {
  background: none; border: none; cursor: pointer;
  color: var(--text-light); font-size: 14px; line-height: 1;
  padding: 0;
}
.modal__file-rm:hover { color: var(--text); }

/* Submit */
.modal__submit {
  width: 100%; padding: 15px;
  background: var(--accent); color: #fff;
  font-size: 16px; font-weight: 700;
  border: none; border-radius: 10px;
  cursor: pointer;
  transition: background .2s;
}
.modal__submit:hover { background: var(--accent-hover); }
.modal__submit:disabled { opacity: .5; pointer-events: none; }
.modal__legal {
  font-size: 12px; color: var(--text-light);
  text-align: center;
}
.modal__legal a { color: var(--text-mid); text-decoration: underline; }

/* Success */
.modal__success {
  text-align: center; padding: 24px 0;
}
.modal__success svg {
  color: var(--accent); margin-bottom: 16px;
}
.modal__success h3 {
  font-size: 22px; font-weight: 800;
  margin-bottom: 8px;
}
.modal__success p {
  font-size: 15px; color: var(--text-mid);
  line-height: 1.5;
}

/* ========================================
   UTILITIES
   ======================================== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   DESKTOP (900px+)
   ======================================== */
@media (min-width: 900px) {

  .hd__in { height: 72px; }

  .hero__inner {
    flex-direction: row;
    align-items: center;
    padding-top: 0; padding-bottom: 0;
    min-height: 100vh; min-height: 100dvh;
    gap: 48px;
  }

  .hero__content {
    flex: 1 1 58%;
  }

  .hero h1 { font-size: 40px; }

  .hero__photo {
    flex: 0 0 36%;
    margin-top: 0;
    align-self: center;
    justify-content: flex-end;
  }

  .hero__img-placeholder {
    width: 100%; max-width: 340px;
    aspect-ratio: 3/4;
    border-radius: 20px;
  }

  .how { padding: 100px 0; }
  .how h2 { font-size: 32px; margin-bottom: 56px; }
  .how__steps {
    flex-direction: row;
    gap: 0;
    align-items: flex-start;
  }
  .how__step {
    flex: 1; padding: 0 24px 0 0;
  }
  .how__line {
    width: 1px; height: 80px;
    margin: 12px 24px 0 0;
    flex-shrink: 0;
  }
  .how__cta { margin-top: 56px; }
}

@media (min-width: 1100px) {
  .hero h1 { font-size: 46px; }
  .hero__inner { gap: 64px; }
  .hero__img-placeholder { max-width: 420px; }
}
