*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* блокує скрол убік */
}


:root {
  --ink: #101418;
  --ink-soft: #3c4652;
  --line: #d5dee8;
  --paper: #f4f7fb;
  --white: #ffffff;
  --navy: #0a3a6b;
  --navy-2: #082c52;
  --blue: #1e6fd9;
  --blue-deep: #1557ad;
  --mist: #e7eef6;
  --ok: #0e7a45;
  --shadow: 0 18px 40px rgba(16, 20, 24, 0.12);
  --radius: 18px;
  --max: 1120px;
  --font: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.topbar {
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}
.topbar a { text-decoration: none; }
.topbar span { opacity: 0.82; }

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 20px;
}
.logo small {
  display: block;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--navy);
  display: grid;
  place-items: center;
  flex: none;
}
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.burger {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  place-items: center;
  gap: 5px;
  background: var(--white);
}
.burger i, .burger i::before, .burger i::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  content: "";
  position: relative;
}
.burger i::before { position: absolute; top: -6px; }
.burger i::after { position: absolute; top: 6px; }
.nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 8px 16px 16px;
}
.nav a {
  display: block;
  text-decoration: none;
  padding: 12px 8px;
  border-bottom: 1px solid var(--mist);
  font-weight: 600;
}
.nav-toggle:checked ~ .nav { display: block; }
.header-cta { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 0;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  background: var(--blue);
  color: var(--white);
}
.btn:hover { background: var(--blue-deep); }
.btn.ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
}
.btn.light { background: var(--white); color: var(--navy); }
.btn.full { width: 100%; }

.hero { padding: 28px 0 8px; }
.hero-grid { display: grid; gap: 22px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 10px;
}
h1 {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.lead { margin: 0 0 18px; color: var(--ink-soft); font-size: 17px; }
.hero-points { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.hero-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600;
}
.dot {
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 99px;
  background: var(--blue);
  flex: none;
}
.hero-visual {
  border-radius: 24px;
  overflow: hidden;
  background: var(--navy);
  min-height: 220px;
  box-shadow: var(--shadow);
}
.hero-visual img { width: 100%; height: 280px; object-fit: cover; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card h2, .form-card h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.03em; }
.muted { color: var(--ink-soft); margin: 0 0 14px; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 10px 12px;
  color: var(--ink);
}
textarea { min-height: 88px; resize: vertical; }
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 550;
  font-size: 13px;
  color: var(--ink-soft);
}
.check input { width: 18px; height: 18px; min-height: 18px; margin-top: 2px; }
.form-note { min-height: 22px; font-size: 14px; font-weight: 700; margin: 8px 0 0; }
.form-note.ok { color: var(--ok); }
.form-note.bad { color: #9b1c1c; }
.fine { font-size: 12px; color: var(--ink-soft); margin: 10px 0 0; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 22px 0 8px;
}
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.stat b { display: block; font-size: 26px; letter-spacing: -0.04em; color: var(--navy); }
.stat span { color: var(--ink-soft); font-size: 13px; }

section { padding: 36px 0; }
.section-head { margin-bottom: 16px; }
h2 { margin: 0 0 8px; font-size: 30px; letter-spacing: -0.04em; line-height: 1.15; }
.section-head p { margin: 0; color: var(--ink-soft); }

.grid-2, .grid-3, .prices, .reviews, .cases { display: grid; gap: 12px; }
.service, .price, .review, .case, .step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}
.service h3, .price h3, .case h3, .step h3 { margin: 8px 0; font-size: 18px; letter-spacing: -0.02em; }
.service p, .price p, .review p, .case p, .step p { margin: 0; color: var(--ink-soft); }
.icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--mist);
  display: grid;
  place-items: center;
}
.price .sum { font-size: 28px; font-weight: 800; letter-spacing: -0.04em; color: var(--navy); margin: 8px 0; }
.price ul { margin: 0; padding-left: 18px; color: var(--ink-soft); }
.case img, .about-photo img { width: 100%; height: 180px; object-fit: cover; border-radius: 14px; background: var(--mist); }
.case figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }

.band {
  background: var(--navy);
  color: var(--white);
}
.band .muted, .band p { color: rgba(255,255,255,0.78); }
.steps { display: grid; gap: 10px; counter-reset: step; }
.step { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: var(--white); }
.step p { color: rgba(255,255,255,0.75); }
.num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #9cc4ff;
}

.review header { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.stars { color: var(--navy); letter-spacing: 2px; font-size: 14px; }

.split { display: grid; gap: 16px; }
.about-photo img { height: 330px; border-radius: 22px; }

details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
summary { cursor: pointer; font-weight: 700; min-height: 32px; }
details p { margin: 8px 0 0; color: var(--ink-soft); }

.footer {
  background: var(--ink);
  color: var(--white);
  padding: 28px 0 110px;
}
.footer a { color: var(--white); }
.footer .muted { color: rgba(255,255,255,0.7); }
.footer-grid { display: grid; gap: 16px; }
.footer h3 { margin: 0 0 8px; font-size: 16px; }

.dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 8px;
  z-index: 40;
}
.dock a { box-shadow: var(--shadow); }

/* ========================================
   PROJECT CTA BLOCK
======================================== */

.project-cta {
    width: 100%;
    background: #1c1d23;
    color: #ffffff;
    padding: 140px 4.1%;
    box-sizing: border-box;
    overflow: hidden;
}

.project-cta * {
    box-sizing: border-box;
}

.project-cta__content {
    max-width: 1500px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    gap: 60px;
}

.project-cta__label {
    display: block;
    margin-bottom: 34px;

    color: #b8b4ca;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.project-cta__title {
    margin: 0;

    font-size: clamp(48px, 6vw, 88px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -3px;
}

.project-cta__title span {
    color: #a18aff;
}

.project-cta__description {
    margin: 38px 0 0;

    color: #b8b8c2;
    font-size: 18px;
    line-height: 1.6;
}

.project-cta__action {
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-cta__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 27px 34px;

    background: #6d4df0;
    color: #ffffff;

    font-size: 18px;
    font-weight: 700;
    text-decoration: none;

    border-radius: 12px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.project-cta__button:hover {
    background: #8065f5;
    transform: translateY(-3px);
}

.project-cta__button span {
    transition: transform 0.25s ease;
}

.project-cta__button:hover span {
    transform: translate(3px, -3px);
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 900px) {

    .project-cta {
        padding: 100px 5%;
    }

    .project-cta__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-cta__action {
        justify-content: flex-start;
    }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {

    .project-cta {
        padding: 75px 22px;
    }

    .project-cta__label {
        font-size: 11px;
        margin-bottom: 25px;
    }

    .project-cta__title {
        font-size: clamp(42px, 11vw, 58px);
        letter-spacing: -2px;
    }

    .project-cta__description {
        font-size: 15px;
        margin-top: 25px;
    }

    .project-cta__button {
        width: 100%;
        justify-content: center;
        padding: 22px 18px;
        font-size: 16px;
    }

}

@media (min-width: 760px) {
  .burger { display: none; }
  .nav {
    display: flex;
    position: static;
    padding: 0;
    border: 0;
    background: transparent;
    gap: 4px;
  }
  .nav a { border: 0; padding: 8px 10px; font-size: 14px; }
  .header-cta { display: inline-flex; }
  h1 { font-size: 56px; }
  .hero-grid, .split { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .grid-3, .cases, .reviews { grid-template-columns: repeat(3, 1fr); }
  .grid-2, .prices { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .dock { display: none; }
  .footer { padding-bottom: 28px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .hero-visual img { height: 100%; min-height: 460px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
