:root {
  --ink: #111a32;
  --muted: #65708a;
  --line: #dfe4ef;
  --purple: #7f28d8;
  --purple-dark: #5513a5;
  --teal: #22bfb7;
  --blue: #235a95;
  --navy: #06142c;
  --surface: #ffffff;
  --soft: #f7f9fd;
  --shadow: 0 18px 50px rgba(28, 22, 68, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

main {
  flex: 1 0 auto;
}

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

.container {
  max-width: 1180px;
}

.ai-navbar {
  right: 0;
  left: 0;
  min-height: 64px;
  margin: 0 0 14px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.25s ease, background 0.25s ease, margin 0.25s ease, border-radius 0.25s ease, left 0.25s ease, right 0.25s ease;
}

.ai-navbar .container {
  min-height: 64px;
}

.ai-navbar.is-scrolled {
  right: 14px;
  left: 14px;
  margin-top: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
}

.brand-mark img {
  width: 36px;
  height: 36px;
  display: block;
}

.nav-links {
  gap: 30px;
  font-size: 16px;
  font-weight: 700;
}

.nav-link {
  color: var(--ink);
  padding: 8px 0;
}

.nav-link:hover,
.language-switch button:hover,
.drawer-menu a:hover {
  color: var(--purple);
}

.language-switch {
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
}

.language-switch form,
.drawer-row form {
  margin: 0;
}

.language-switch button,
.drawer-row button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
}

.language-switch span {
  width: 1px;
  height: 14px;
  background: #b8bfd0;
}

.language-switch .active {
  color: var(--purple);
}

.drawer-toggle {
  display: inline-grid;
  gap: 5px;
  border: 0;
  background: transparent;
  padding: 10px;
}

.drawer-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(6, 20, 44, 0.35);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1050;
  width: min(86vw, 360px);
  height: 100vh;
  padding: 22px;
  background: #fff;
  box-shadow: -24px 0 60px rgba(17, 24, 39, 0.24);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.drawer-open .drawer-overlay {
  opacity: 1;
  visibility: visible;
}

.drawer-open .mobile-drawer {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.drawer-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.drawer-close img {
  width: 18px;
  height: 18px;
  display: block;
}

.drawer-menu {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
  font-weight: 800;
}

.drawer-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.drawer-row button {
  width: 48px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.drawer-row .active {
  color: #fff;
  background: var(--purple);
  border-color: var(--purple);
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 700;
}

.hero-section {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 22%, rgba(34, 191, 183, 0.18), transparent 24%),
    radial-gradient(circle at 86% 22%, rgba(127, 40, 216, 0.22), transparent 30%),
    linear-gradient(90deg, #f6fffd 0%, #fff 45%, #fbf4ff 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(34, 191, 183, 0.09) 1px, transparent 1px),
    linear-gradient(35deg, rgba(127, 40, 216, 0.08) 1px, transparent 1px);
  background-size: 110px 110px, 90px 90px;
  mask-image: linear-gradient(90deg, transparent 0, #000 35%, #000 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-particles canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 72px;
}

.hero-content .min-vh-100 {
  min-height: 680px !important;
}

.hero-copy {
  position: relative;
  text-align: center;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: -44px -36px -36px -44px;
  z-index: -1;
  border-radius: 18px;
  background: radial-gradient(circle at 22% 50%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.68) 44%, rgba(255, 255, 255, 0) 72%);
}

.eyebrow {
  margin-bottom: 18px;
  color: #425070;
  font-size: 15px;
  font-weight: 600;
}

.hero-section h1 {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 18px;
  font-size: clamp(36px, 4.3vw, 58px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-section h1 span,
.estimate-card strong,
.more,
.section-title-row a {
  color: var(--purple);
}

.hero-lead {
  max-width: 540px;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 26px;
  color: #19223d;
  font-size: 20px;
}

.hero-bullets {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0 auto 28px;
  width: fit-content;
  list-style: none;
  color: #24304d;
  font-weight: 600;
}

.hero-bullets li {
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
}

.hero-bullets span,
.hero-note span {
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #fff;
  background: #54c7a2;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.hero-bullets span img,
.hero-note span img {
  width: 14px;
  height: 14px;
  display: block;
  filter: brightness(0) invert(1);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.hero-actions {
  justify-content: center;
}

.btn {
  min-height: 46px;
  border-radius: 6px;
  padding: 12px 22px;
  font-weight: 800;
}

.btn-primary-gradient {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #7328d2, #9b18c9);
  box-shadow: 0 12px 24px rgba(127, 40, 216, 0.22);
}

.btn-primary-gradient:hover {
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-accent {
  color: var(--purple);
  border: 1px solid var(--purple);
  background: rgba(255, 255, 255, 0.72);
}

.hero-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.hero-note span {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
  font-size: 10px;
}

.hero-note span img {
  width: 12px;
  height: 12px;
}

.section {
  padding: 54px 0;
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading h2,
.section-title-row h2,
.partners-section h2,
.calculator-panel h2,
.final-cta h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  font-weight: 900;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.service-card {
  display: flex;
  min-height: 160px;
  height: auto;
  flex-direction: column;
  align-items: center;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  border-color: #a45af0;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 900;
}

.service-icon img {
  width: 30px;
  height: 30px;
  display: block;
}

.service-icon.purple { color: #8b3feb; background: #f3e9ff; }
.service-icon.mint { color: #45b994; background: #dff9ee; }
.service-icon.blue { color: #47a9ff; background: #e9f5ff; }
.service-icon.orange { color: #ef8b36; background: #fff0e2; }
.service-icon.violet { color: #a26af0; background: #f0e8ff; }
.service-icon.teal { color: #18b7a3; background: #e5faf7; }

.service-card h3,
.work-step h3,
.case-card h3,
.review-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 900;
}

.service-card p {
  min-height: 5px;
  margin: 0 0 18px;
  color: #36415f;
  font-size: 13px;
}

.services-page-hero {
  position: relative;
  padding: 142px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(34, 191, 183, 0.17), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(127, 40, 216, 0.2), transparent 30%),
    linear-gradient(100deg, #f6fffd 0%, #fff 50%, #fbf4ff 100%);
}

.services-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(34, 191, 183, 0.09) 1px, transparent 1px),
    linear-gradient(35deg, rgba(127, 40, 216, 0.08) 1px, transparent 1px);
  background-size: 110px 110px, 90px 90px;
  opacity: 0.72;
}

.services-page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  text-align: center;
  margin: 0 auto;
}

.services-page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.04;
  font-weight: 900;
}

.services-page-hero p {
  max-width: 660px;
  margin: 0 auto 28px;
  color: #26314d;
  font-size: 20px;
}

.services-page-hero .hero-actions {
  margin-bottom: 0;
}

.services-back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--purple);
  font-weight: 900;
}

.services-page-section {

  margin-top: 50px;
  background: #fff;
}

.services-detail-section {
  padding-top: 112px;
}

.services-category-list {
  display: grid;
  gap: 22px;
}

.services-category {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(18, 24, 43, 0.05);
}

.services-category__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}

.services-category__head .service-icon {
  margin-bottom: 0;
}

.services-category h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
}

.services-category__head p,
.services-list__item p,
.services-empty,
.services-empty-state p {
  margin: 0;
  color: var(--muted);
}

.services-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.services-list__item {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.services-detail-list .services-list__item {
  background: var(--surface);
}

.services-list__item .service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.services-list__item .service-icon img {
  width: 26px;
  height: 26px;
}

.services-list__item h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.24;
  font-weight: 900;
}

.services-list__item p {
  font-size: 14px;
}

.service-detail-card {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 2fr;
  gap: 24px;
  align-items: stretch;
  min-height: 220px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.service-detail-card:hover,
.service-detail-card:focus-visible {
  border-color: #a45af0;
  box-shadow: var(--shadow);
  outline: 0;
  transform: translateY(-3px);
}

.service-detail-card__media {
  display: grid;
  min-height: 100%;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(34, 191, 183, 0.12), rgba(127, 40, 216, 0.14)),
    var(--soft);
}

.service-detail-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.service-detail-card__content {
  display: grid;
  gap: 12px;
  align-content: center;
  padding: 26px 28px 26px 0;
}

.service-detail-card__label {
  color: var(--purple);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.service-detail-card__content strong {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
}

.service-detail-card__content span:last-child {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.service-modal .modal-content {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.service-modal .modal-header,
.service-modal .modal-footer {
  padding: 22px 26px;
}

.service-modal .modal-body {
  padding: 0 26px 26px;
}

.service-modal .modal-title {
  margin-top: 4px;
  font-size: 28px;
  font-weight: 900;
}

.service-modal__intro {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding: 22px;
  border-radius: 8px;
  background: var(--soft);
}

.service-modal__intro img {
  width: 50%;
  height: 50%;

}

.service-modal__intro p,
.service-modal__details p {
  margin: 0;
  color: #33405f;
}

.service-modal__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.service-modal__details > div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-modal__details h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 900;
}

.service-modal__details ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #33405f;
}

.services-empty-state {
  max-width: 560px;
  margin: 0 auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  background: var(--surface);
}

.services-empty-state h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 900;
}

.service-card strong {
  margin-top: auto;
  color: var(--ink);
  font-size: 16px;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-weight: 800;
}

.more img,
.section-title-row a img,
.step-arrow img {
  width: 16px;
  height: 16px;
  display: block;
}

.reveal-card {
  opacity: 0;
  transform: translateY(18px);
}

.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.work-section {
  padding-top: 28px;
}

.work-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: start;
}

.work-step {
  position: relative;
  text-align: center;
}

.step-number {
  position: absolute;
  top: -8px;
  left: calc(50% - 100px);
  z-index: 1;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff;
  background: var(--purple);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
}

.step-icon {
  display: grid;
  width: min(100%, 220px);
  aspect-ratio: 640 / 420;
  margin: 0 auto 18px;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(21, 33, 62, 0.1);
}

.step-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.step-icon.doc {
  color: #56a8ed;
  background: #e9f5ff;
}

.step-icon.rocket,
.step-icon.phone {
  color: #54c6a4;
}

.work-step h3 {
  font-size: 19px;
  line-height: 1.22;
}

.work-step p {
  max-width: 240px;
  margin: 0 auto;
  color: #4c5874;
  font-size: 15px;
  line-height: 1.45;
}

.step-arrow {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-top: 52px;
  color: var(--ink);
}

.metrics-section {
  padding: 26px 0 48px;
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 0;
  padding: 24px 44px 20px;
  color: #fff;
  border-radius: 8px;
  background: linear-gradient(110deg, #28bdb1 0%, #5c4fa3 52%, #a000c8 100%);
}

.metric {
  min-height: 100px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.4);
}

.metric:last-of-type {
  border-right: 0;
}

.metric strong {
  display: block;
  font-size: 42px;
  line-height: 1;
  font-weight: 500;
}

.metric p,
.metrics-note {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.25;
}

.metrics-note {
  grid-column: 1 / -1;
  text-align: center;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-title-row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
}

.case-card {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 220px;
  height: 100%;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(rgba(5, 19, 43, 0.68), rgba(5, 19, 43, 0.78)), var(--case-bg);
  background-size: cover;
  background-position: center;
}

.case { --case-bg: linear-gradient(135deg, #14395d, #08152f); }

.case-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.45;
}

.case-card > * {
  position: relative;
  z-index: 1;
}

.case-card span {
  display: inline-flex;
  max-width: 100%;
  align-self: flex-start;
  margin-bottom: 28px;
  padding: 5px 10px;
  border-radius: 4px;
  background: #4ecb9a;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-card h3,
.case-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.case-card h3 {
  line-clamp: 2;
  -webkit-line-clamp: 2;
}

.case-card p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-clamp: 2;
  -webkit-line-clamp: 2;
}

.case-card a {
  display: inline-flex;
  align-self: flex-start;
  margin-top: auto;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
}

.partners-section {
  padding: 4px 0 28px;
  text-align: center;
}

.logo-marquee {
  max-width: 100%;
  margin: 20px auto 0;
  overflow: hidden;
}

.logo-track {
  display: flex;
  width: max-content;
  gap: 58px;
  align-items: center;
  animation: marquee 60s linear infinite;
}

.logo-track img {
  width: 60px;
  height: 60px;
  color: #5c6474;
  filter: grayscale(100%);
  opacity: 0.72;
  font-size: 22px;
  font-weight: 800;
  transition: filter 0.3s ease, opacity 0.3s ease, color 0.3s ease;
}

.logo-track img:hover {
  color: var(--purple);
  filter: grayscale(0%);
  opacity: 1;
}

.logo-marquee:hover .logo-track {
  animation-play-state: paused;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.calculator-section {
  padding: 0 0 48px;
}

.calculator-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(18, 24, 43, 0.04);
}

.calculator-panel h2 {
  text-align: center;
}

.calculator-panel .form-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.form-control,
.form-select {
  min-height: 44px;
  border-color: var(--line);
  border-radius: 6px;
  font-size: 14px;
}

.service-checks {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.check-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  color: #28334f;
  font-size: 14px;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--purple);
}

.estimate-card {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
  padding: 34px 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.estimate-card p {
  margin: 0;
  color: #313c58;
}

.estimate-card strong {
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.estimate-card small,
.estimate-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.estimate-card small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.estimate-card small img {
  width: 14px;
  height: 14px;
  opacity: 0.55;
}

.reviews-section {
  padding-top: 0;
}

.reviews-carousel {
  position: relative;
}

.reviews-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.reviews-scroll::-webkit-scrollbar {
  display: none;
}

.review-card {
  display: grid;
  flex: 0 0 calc((100% - 40px) / 3);
  grid-template-columns: 10px 1fr auto;
  column-gap: 16px;
  align-items: start;
  min-height: 178px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  scroll-snap-align: start;
}

.avatar {
  display: grid;
  grid-row: span 4;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #17446a, #c8a083);
  font-weight: 900;
}

.avatar.woman {
  background: linear-gradient(135deg, #2fb9a6, #7837a7);
}

.review-card p {
  grid-column: 2 / 4;
  margin: 0 0 14px;
  font-size: 14px;
}

.review-card h3,
.review-card span {
  grid-column: 2 / 3;
}

.review-card span {
  color: var(--muted);
  font-size: 12px;
}

.review-card strong {
  align-self: end;
  color: #5a6475;
  font-size: 18px;
}

.review-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--purple);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  font-size: 30px;
  line-height: 1;
  transform: translateY(-50%);
}

.review-nav img {
  width: 22px;
  height: 22px;
  display: block;
  filter: brightness(0) saturate(100%) invert(23%) sepia(76%) saturate(3131%) hue-rotate(267deg) brightness(85%) contrast(97%);
}

.review-prev {
  left: -20px;
}

.review-next {
  right: -20px;
}

.review-nav:disabled {
  cursor: default;
  opacity: 0.35;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.slider-dots button,
.slider-dots span {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d9dce6;
}

.slider-dots .active,
.slider-dots button[aria-current="true"] {
  background: var(--purple);
}

.final-cta {
  padding: 8px 0 0;

  margin-bottom: 30px;
}

.cta-band {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 38px;
  align-items: center;
  padding: 42px 64px;
  color: #fff;
  border-radius: 8px;
  background: linear-gradient(110deg, #25bdb3, #4b5fa8 52%, #a200c6);
}

.final-cta h2 {
  font-size: 36px;
}

.final-cta p {
  font-size: 18px;
}

.quick-fields {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0;
}

.quick-fields .form-control,
.quick-fields .btn {
  border-radius: 0;
}

.quick-fields .form-control:first-child {
  border-radius: 6px 0 0 6px;
}

.quick-fields .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  color: var(--purple);
  border-radius: 0 6px 6px 0;
}

.quick-form small {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.quick-form small a{
  text-decoration: underline;
}

.form-success {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.site-footer {
  padding: 32px 0 0;
  color: #dce7ff;
  background: #06142c;
}

.site-footer .brand {
  color: #fff;
  margin-bottom: 14px;
}

.site-footer .brand-mark img {
  filter: brightness(0) invert(1);
}

.site-footer p,
.site-footer a {
  display: block;
  color: #c2cce0;
  margin-bottom: 9px;
  font-size: 14px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #9aa7bf;
  font-size: 12px;
}

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

.portfolio-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.portfolio-card:hover,
.portfolio-card:focus-visible {
  border-color: #a45af0;
  box-shadow: var(--shadow);
  outline: 0;
  transform: translateY(-4px);
}

/* Thumb — фиксированная высота, скриншот заполняет */
.portfolio-card__thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--soft);
  flex-shrink: 0;
}

.portfolio-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.portfolio-card:hover .portfolio-card__thumb img {
  transform: scale(1.04);
}

/* Placeholder когда картинки ещё нет */
.portfolio-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(34, 191, 183, 0.12), rgba(127, 40, 216, 0.14)),
    var(--soft);
}

/* Body — текст под картинкой */
.portfolio-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 24px;
  flex: 1;
}

.portfolio-card__category {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.portfolio-card__body h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}

.portfolio-card__body p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}


/* ─── Portfolio detail page ─────────────────────────────────────────────────── */

.portfolio-detail {
  max-width: 860px;
  margin: 0 auto;
  padding-top: 8px;
}

.portfolio-detail__header {
  margin-bottom: 28px;
}

.portfolio-detail__header h1 {
  margin: 8px 0 0;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 900;
  line-height: 1.1;
}

/* Markdown-описание */
.portfolio-detail__description {
  font-size: 16px;
  line-height: 1.7;
  color: #26314d;
  margin-bottom: 48px;
}

.portfolio-detail__description p { margin: 0 0 16px; }
.portfolio-detail__description h2 { font-size: 22px; font-weight: 900; margin: 32px 0 12px; }
.portfolio-detail__description h3 { font-size: 18px; font-weight: 900; margin: 24px 0 10px; }
.portfolio-detail__description ul,
.portfolio-detail__description ol { padding-left: 22px; margin-bottom: 16px; }
.portfolio-detail__description li { margin-bottom: 6px; }
.portfolio-detail__description strong { font-weight: 700; }

/* Галерея */
.portfolio-detail__gallery h2 {
  margin: 0 0 22px;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 900;
}

.portfolio-detail__gallery {
  margin-bottom: 30px;
}

.portfolio-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.portfolio-gallery-item {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft);
  width: 300px;
  height: 300px;
}

.portfolio-gallery-item button {
  width: 100%;
  height: 100% ;
}

.portfolio-gallery-img {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
  object-fit: cover;
}

.portfolio-gallery-item:hover img {
  transform: scale(1.03);
}

.portfolio-gallery-item figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}


/* ─── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 991.98px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card__thumb {
    height: 180px;
  }

  .portfolio-gallery-grid {
    grid-template-columns: 1fr;
  }
}


/* ─── Dark theme ─────────────────────────────────────────────────────────────── */

body.dark-theme .portfolio-card,
body.dark-theme .portfolio-gallery-item {
  background: #0c1830;
}

body.dark-theme .portfolio-card__thumb,
body.dark-theme .portfolio-card__thumb-placeholder {
  background: #0b152a;
}

body.dark-theme .portfolio-detail__description {
  color: var(--muted);
}


body.dark-theme {
  --ink: #ecf3ff;
  --muted: #a8b3c7;
  --line: #2d3852;
  --surface: #0c1830;
  --soft: #0b152a;
  background: #071225;
}

body.dark-theme .mobile-drawer,
body.dark-theme .ai-navbar,
body.dark-theme .service-card,
body.dark-theme .service-detail-card,
body.dark-theme .service-modal .modal-content,
body.dark-theme .service-modal__details > div,
body.dark-theme .services-category,
body.dark-theme .services-empty-state,
body.dark-theme .calculator-panel,
body.dark-theme .estimate-card,
body.dark-theme .review-card {
  background: #0c1830;
}

body.dark-theme .services-page-hero {
  background: linear-gradient(90deg, #071225, #101a32, #160d28);
}

body.dark-theme .services-page-section,
body.dark-theme .services-list__item,
body.dark-theme .service-detail-card__media,
body.dark-theme .service-modal__intro {
  background: var(--soft);
}

body.dark-theme .service-modal__intro p,
body.dark-theme .service-modal__details p,
body.dark-theme .service-modal__details ul {
  color: var(--muted);
}

body.dark-theme .hero-section {
  background: linear-gradient(90deg, #071225, #101a32, #160d28);
}

body.dark-theme .form-control,
body.dark-theme .form-select {
  color: #ecf3ff;
  background-color: #0f1c35;
}

body.dark-theme .brand-mark img {
  filter: brightness(0) invert(1);
}

@media (max-width: 1199.98px) {
  .service-card {
    min-height: 250px;
  }
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
  }

  .hero-content .min-vh-100 {
    min-height: auto !important;
  }

  .hero-content {
    padding-top: 112px;
    padding-bottom: 58px;
  }

  .work-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .step-arrow {
    margin: 0;
    text-align: center;
    transform: rotate(90deg);
  }

  .metrics-band,
  .cta-band {
    grid-template-columns: 1fr 1fr;
    padding: 28px;
  }

  .metrics-note,
  .cta-band > * {
    grid-column: 1 / -1;
  }

  .reviews-scroll {
    padding-bottom: 12px;
  }

  .review-card {
    flex-basis: 78vw;
    scroll-snap-align: center;
  }

  .quick-fields {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .quick-fields .form-control,
  .quick-fields .form-control:first-child,
  .quick-fields .btn {
    border-radius: 6px;
  }
}

@media (max-width: 767.98px) {
  .ai-navbar {
    right: 0;
    left: 0;
    margin: 0 0 10px;
    border-radius: 0;
  }

  .ai-navbar.is-scrolled {
    right: 10px;
    left: 10px;
    margin-top: 8px;
    border-radius: 8px;
  }

  .hero-section h1 {
    font-size: 42px;
  }

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

  .hero-actions {
    display: grid;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 42px 0;
  }

  .services-page-hero {
    padding: 118px 0 52px;
  }

  .services-page-hero p {
    font-size: 18px;
  }

  .services-category {
    padding: 20px;
  }

  .services-category__head,
  .services-list {
    grid-template-columns: 1fr;
  }

  .services-category__head {
    gap: 14px;
  }

  .service-detail-card,
  .service-modal__intro,
  .service-modal__details {
    grid-template-columns: 1fr;
  }

  .service-detail-card__media {
    min-height: 154px;
  }

  .service-detail-card__content {
    padding: 22px;
  }

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .metrics-band {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    padding: 18px 0;
  }

  .metric:last-of-type {
    border-bottom: 0;
  }

  .logo-track {
    gap: 36px;
    animation-duration: 34s;
  }

  .calculator-panel {
    padding: 20px 14px;
  }

  .estimate-card {
    position: static;
    padding: 24px 18px;
  }

  .review-card {
    grid-template-columns: 54px 1fr;
    flex-basis: 86vw;
  }

  .review-prev {
    left: -4px;
  }

  .review-next {
    right: -4px;
  }

  .review-card p,
  .review-card h3,
  .review-card span {
    grid-column: 2 / 3;
  }

  .review-card strong {
    grid-column: 1 / -1;
    margin-top: 10px;
  }

  .cta-band {
    padding: 30px 20px;
  }

  .final-cta h2 {
    font-size: 30px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
