:root {
  --bg-main: #F7F5F0;
  --bg-soft: #EEEAE2;
  --bg-card: #FFFFFF;
  --text-main: #1D2329;
  --text-muted: #6D747C;
  --text-soft: #9299A1;
  --accent-yellow: #F7C843;
  --accent-yellow-soft: #FFE9A6;
  --accent-blue: #38BDF8;
  --accent-blue-soft: #D9F3FF;
  --graphite: #111820;
  --graphite-soft: #202A33;
  --border-light: #E4E0D7;
  --success: #21A67A;
  --danger: #C4483D;
  --shadow: 0 22px 70px rgba(29, 35, 41, 0.1);
  --shadow-soft: 0 14px 40px rgba(29, 35, 41, 0.08);
  --shell: min(1180px, calc(100% - 40px));
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-main);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  color: var(--text-main);
  background:
    linear-gradient(rgba(29, 35, 41, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 35, 41, 0.03) 1px, transparent 1px),
    var(--bg-main);
  background-size: 96px 96px;
  font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

body.is-menu-open {
  overflow: hidden;
}

body.is-loading {
  overflow: hidden;
}

.site-header,
main,
.mobile-dock {
  transition: opacity 420ms ease, transform 420ms ease;
}

body.is-loading .site-header,
body.is-loading main,
body.is-loading .mobile-dock {
  opacity: 0;
  transform: translateY(10px);
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 233, 166, 0.32), transparent 22%),
    var(--bg-main);
  transition: opacity 300ms ease, visibility 300ms ease;
}

body:not(.is-loading) .page-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__mark {
  position: relative;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(228, 224, 215, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 60px rgba(29, 35, 41, 0.12);
  overflow: hidden;
}

.page-loader__mark img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  transform: translateY(-3px);
}

.page-loader__mark span {
  position: absolute;
  left: -46%;
  top: 50%;
  width: 178%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-yellow) 34%, #fff 50%, var(--accent-blue) 66%, transparent 100%);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.55), 0 0 18px rgba(247, 200, 67, 0.48);
  transform: translateX(-115%) rotate(-24deg);
  animation: loaderDischarge 1s cubic-bezier(0.18, 0.84, 0.24, 1) both;
}

@keyframes loaderDischarge {
  0%,
  18% {
    opacity: 0;
    transform: translateX(-115%) rotate(-24deg);
  }
  28%,
  68% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(115%) rotate(-24deg);
  }
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(247, 200, 67, 0.35);
  color: var(--text-main);
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--graphite);
  color: #fff;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 72px 0;
}

#top,
#services,
#calculator,
#packages,
#process,
#faq,
#contacts {
  scroll-margin-top: 92px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::after {
  width: 48px;
  height: 5px;
  display: block;
  margin-top: 7px;
  border-top: 3px solid var(--accent-yellow);
  border-radius: 48% 54% 42% 57%;
  transform: rotate(-1.5deg) skewX(-9deg);
  content: "";
}

.section-head h2::after,
.calculator-intro h2::after,
.contacts__info h2::after {
  width: 86px;
  height: 7px;
  display: block;
  margin-top: 11px;
  border-top: 4px solid var(--accent-yellow);
  border-radius: 54% 46% 58% 42%;
  transform: rotate(-1deg) skewX(-12deg);
  content: "";
}

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

h1,
h2,
h3 {
  color: var(--text-main);
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-family: Unbounded, Manrope, system-ui, sans-serif;
  font-size: 54px;
  font-weight: 700;
  line-height: 1.04;
}

h2 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.08;
}

h3 {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.18;
}

p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.68;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease, border-color 200ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn--accent {
  background: var(--accent-yellow);
  color: var(--graphite);
  box-shadow: 0 14px 34px rgba(247, 200, 67, 0.26);
}

.btn--accent:hover,
.btn--accent:focus-visible {
  background: #FFD35F;
  box-shadow: 0 18px 44px rgba(247, 200, 67, 0.35);
}

.btn--ghost {
  border-color: var(--border-light);
  background: rgba(255, 255, 255, 0.58);
  color: var(--text-main);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: rgba(29, 35, 41, 0.18);
  background: #fff;
}

.btn--small {
  min-height: 42px;
  padding: 0 15px;
  font-size: 13px;
}

.btn:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 14px max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(228, 224, 215, 0.82);
  background: rgba(247, 245, 240, 0.98);
}

.site-header .brand--handdrawn {
  width: 176px;
  flex-basis: 176px;
}

.site-header .brand__handdrawn-logo {
  width: 176px;
  height: 73px;
  object-fit: contain;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand--handdrawn {
  width: 146px;
  flex: 0 0 146px;
}

.brand__handdrawn-logo {
  width: 146px;
  height: 50px;
  object-fit: contain;
}

.brand--paper {
  padding: 3px 8px;
  border-radius: 7px 5px 8px 4px;
  background: var(--bg-main);
  transform: rotate(-0.4deg);
}

.brand__mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(29, 35, 41, 0.08);
}

.brand__mark img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: contain;
}

.brand__text {
  display: grid;
  gap: 2px;
}

.brand__name {
  color: var(--text-main);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.brand__meta {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border: 1px solid rgba(228, 224, 215, 0.75);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
}

.site-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text-main);
  background: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-phone {
  color: var(--text-main);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #fff;
}

.menu-toggle span:not(.sr-only) {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--graphite);
  transition: transform 200ms ease, opacity 200ms ease;
}

.is-menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.is-menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.is-menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  min-height: min(650px, calc(100svh - 180px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 74px 0 92px;
  background:
    linear-gradient(90deg, rgba(247, 245, 240, 0.98) 0%, rgba(247, 245, 240, 0.92) 34%, rgba(247, 245, 240, 0.46) 58%, rgba(247, 245, 240, 0.08) 100%),
    linear-gradient(180deg, rgba(247, 245, 240, 0.36) 0%, rgba(247, 245, 240, 0.05) 62%, var(--bg-main) 100%),
    url("../images/hero-desktop.png") center right / cover no-repeat;
  overflow: hidden;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 640px);
  align-items: center;
}

.hero__content {
  max-width: 640px;
}

.hero__wordmark {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.hero__letter-logo {
  width: 0.7em;
  height: 1em;
  display: inline-grid;
  flex: 0 0 0.7em;
  place-items: center;
  margin: 0 0.03em;
  transform: translate(-0.07em, 0.08em) rotate(-1deg);
}

.hero__letter-logo img {
  width: 1em;
  height: 100%;
  max-width: none;
  object-fit: contain;
  transform: translateX(-0.05em);
}

.hero__lead {
  max-width: 690px;
  margin-bottom: 16px;
  color: var(--text-main);
  font-size: 24px;
  line-height: 1.36;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.result-box span {
  display: block;
  margin-bottom: 3px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-head {
  max-width: 800px;
  margin-bottom: 28px;
}

.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 32px;
  align-items: end;
}

.section-head p:last-child {
  margin-bottom: 0;
}

.service-card p,
.package-card p,
.process-step p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.62;
}

.services {
  background: rgba(238, 234, 226, 0.55);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  --card-bg: url("../assets/images/card-blueprint.png");
  --card-opacity: 0.36;
  --card-opacity-hover: 0.48;
  min-height: 168px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: var(--bg-card);
  box-shadow: 0 10px 28px rgba(29, 35, 41, 0.04);
  transform-origin: center;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--card-bg);
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  opacity: var(--card-opacity);
  transform: scale(1.02);
  transition: opacity 220ms ease, transform 220ms ease;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.8) 48%, rgba(255, 255, 255, 0.2) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.34));
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-4px) scale(1.025);
  border-color: rgba(56, 189, 248, 0.34);
  box-shadow: var(--shadow-soft);
}

.service-card:hover::before {
  opacity: var(--card-opacity-hover);
  transform: scale(1.07);
}

.service-card h3,
.service-card p {
  position: relative;
  z-index: 2;
  max-width: 72%;
}

.service-card--wiring {
  --card-bg: url("../assets/images/card-wiring.png");
  --card-opacity: 0.4;
  --card-opacity-hover: 0.52;
}

.service-card--panel {
  --card-bg: url("../assets/images/card-panel.png");
  --card-opacity: 0.42;
  --card-opacity-hover: 0.54;
}

.service-card--sockets {
  --card-bg: url("../assets/images/card-sockets.png");
  --card-opacity: 0.42;
  --card-opacity-hover: 0.54;
}

.service-card--lighting {
  --card-bg: url("../assets/images/card-lighting.png");
  --card-opacity: 0.44;
  --card-opacity-hover: 0.56;
}

.service-card--lowvoltage {
  --card-bg: url("../assets/images/card-blueprint.png");
  --card-accent: #4cb3e6;
  --card-opacity: 0.43;
  --card-opacity-hover: 0.55;
  border-color: rgba(76, 179, 230, 0.2);
}

.service-card--equipment {
  --card-bg: url("../assets/images/card-blueprint.png");
  --card-opacity: 0.4;
  --card-opacity-hover: 0.52;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(204px, 1fr));
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
}

.package-card {
  min-height: 264px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: var(--bg-card);
  box-shadow: 0 10px 28px rgba(29, 35, 41, 0.04);
  scroll-snap-align: start;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.package-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../assets/images/card-blueprint.png") right center / cover no-repeat;
  opacity: 0.11;
  transform: scale(1.02);
  transition: opacity 220ms ease, transform 220ms ease;
}

.package-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 62%, rgba(255, 255, 255, 0.74) 100%);
  pointer-events: none;
}

.package-card:hover {
  transform: translateY(-4px) scale(1.018);
  border-color: rgba(247, 200, 67, 0.48);
  box-shadow: var(--shadow-soft);
}

.package-card:hover::before {
  opacity: 0.18;
  transform: scale(1.06);
}

.package-card--primary {
  border-color: rgba(247, 200, 67, 0.62);
  box-shadow: 0 16px 42px rgba(247, 200, 67, 0.14);
}

.package-card > * {
  position: relative;
  z-index: 2;
}

.package-card__top {
  display: grid;
  gap: 10px;
}

.package-card strong {
  display: inline-flex;
  width: fit-content;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--accent-yellow-soft);
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.25;
}

.package-card small {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.package-card small span {
  display: block;
}

.package-card small span + span {
  margin-top: 3px;
}

.calculator-section {
  overflow: hidden;
  padding-top: 54px;
  padding-bottom: 54px;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  column-gap: 28px;
  row-gap: 18px;
  align-items: start;
}

.calculator-heading {
  grid-column: 1 / -1;
}

.calculator-heading h2 {
  max-width: none;
  margin-bottom: 0;
  white-space: nowrap;
}

.calculator-intro {
  position: sticky;
  top: 104px;
}

.calculator-intro img {
  width: 100%;
  margin-top: 26px;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.calculator {
  position: relative;
  scroll-margin-top: 78px;
  isolation: isolate;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.calculator::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: min(390px, 54%);
  height: 240px;
  background: url("../assets/images/card-blueprint.png") right top / cover no-repeat;
  opacity: 0.13;
  pointer-events: none;
}

.calculator > * {
  position: relative;
  z-index: 2;
}

.calculator__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 18px;
  align-items: center;
  padding: 17px 20px;
  border-bottom: 1px solid var(--border-light);
  background:
    linear-gradient(135deg, rgba(255, 233, 166, 0.28), rgba(217, 243, 255, 0.35)),
    #fff;
}

.calculator__label {
  display: block;
  margin-bottom: 3px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.calculator__top h3 {
  margin-bottom: 0;
  font-size: 21px;
}

.calculator__progress {
  height: 8px;
  overflow: hidden;
  border-radius: 52% 46% 58% 44%;
  background: rgba(228, 224, 215, 0.86);
  transform: rotate(-0.3deg);
}

.calculator__progress span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-yellow), var(--accent-blue));
  clip-path: polygon(0 18%, 22% 5%, 48% 14%, 71% 2%, 100% 16%, 100% 84%, 74% 96%, 49% 86%, 24% 98%, 0 82%);
  transition: width 260ms ease;
}

.calc-form {
  padding: 16px 20px;
}

.calc-step {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.calc-step.is-active {
  display: block;
  animation: stepIn 220ms ease both;
}

.calc-step legend {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.choice-grid,
.checkbox-grid,
.field-grid,
.lead-form {
  display: grid;
  gap: 8px;
}

.choice-grid--objects {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 10px;
}

.choice-grid--materials {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-card,
.check-card {
  position: relative;
  display: block;
}

.choice-card input,
.check-card input,
.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card span,
.check-card span {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: 11px 8px 12px 9px;
  background: #fff;
  color: var(--text-main);
  font-weight: 800;
  line-height: 1.25;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.choice-card small {
  display: block;
  margin-top: -10px;
  padding: 0 12px 10px;
  border: 1px solid var(--border-light);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #fff;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
  transition: border-color 180ms ease, background 180ms ease;
}

.choice-card input:checked + span,
.check-card input:checked + span {
  border-color: rgba(247, 200, 67, 0.96);
  background: linear-gradient(135deg, rgba(255, 233, 166, 0.74), rgba(255, 255, 255, 0.9));
  box-shadow: 2px 1px 0 rgba(247, 200, 67, 0.42), -1px -1px 0 rgba(29, 35, 41, 0.08), 0 10px 26px rgba(247, 200, 67, 0.16);
}

.choice-card input:checked + span + small {
  border-color: rgba(247, 200, 67, 0.96);
  background: rgba(255, 251, 237, 0.9);
}

.field-grid,
.lead-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 5px;
}

.field span {
  color: var(--text-main);
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: #fff;
  color: var(--text-main);
  padding: 0 14px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field textarea {
  min-height: 66px;
  padding: 10px 12px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(56, 189, 248, 0.72);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.13);
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: rgba(196, 72, 61, 0.8);
  box-shadow: 0 0 0 4px rgba(196, 72, 61, 0.09);
}

.field--full {
  grid-column: 1 / -1;
}

.hint {
  margin: 9px 0 0;
  padding: 9px 11px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  background: rgba(217, 243, 255, 0.42);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.checkbox-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.conditional-options {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: rgba(238, 234, 226, 0.45);
}

.conditional-options p {
  margin-bottom: 7px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented label {
  position: relative;
}

.segmented span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: #fff;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.segmented input:checked + span {
  border-color: var(--graphite);
  background: var(--graphite);
  color: #fff;
}

.result-box {
  padding: 13px 16px;
  border-radius: 16px;
  background: var(--graphite);
  color: #fff;
}

.result-box span {
  color: rgba(255, 255, 255, 0.68);
}

.result-box strong {
  display: block;
  color: #fff;
  font-size: 40px;
  line-height: 1;
}

.result-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 8px 0 0;
}

.result-breakdown div {
  padding: 9px 10px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: #fff;
}

.result-breakdown dt {
  margin-bottom: 3px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.result-breakdown dd {
  margin: 0;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 800;
}

.lead-form {
  margin-top: 10px;
}

.calc-result-step .lead-form .field--full {
  grid-column: auto;
}

.privacy-note {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
}

.privacy-note a {
  color: var(--text-main);
  font-weight: 800;
}

.form-trap {
  position: fixed !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.file-field {
  position: relative;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px dashed rgba(29, 35, 41, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.file-field input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.form-message {
  min-height: 18px;
  margin: 6px 0 0;
  color: var(--success);
  font-size: 14px;
  font-weight: 800;
}

.form-message.is-error {
  color: var(--danger);
}

.calculator__buttons {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.calculator .btn {
  min-height: 42px;
}

.process {
  height: 270svh;
  min-height: 1780px;
  padding: 0;
  background: var(--bg-main);
}

.process__sticky {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 104px 0 72px;
  overflow: hidden;
  isolation: isolate;
}

.process__sticky::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../assets/images/paper-texture.webp") center / 960px 214px repeat;
  opacity: 0.76;
  content: "";
}

.process__sticky::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(247, 245, 240, 0.34);
  content: "";
}

.process-steps {
  --process-progress: 0%;
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  min-height: 300px;
  padding: 18px 12px 20px;
}

.process-steps::before,
.process-steps::after {
  content: "";
  position: absolute;
  left: 40px;
  right: 40px;
  top: 57%;
  height: 5px;
  border-radius: 56% 44% 53% 47%;
  transform: rotate(-0.2deg);
}

.process-steps::before {
  background: rgba(228, 224, 215, 0.95);
}

.process-steps::after {
  width: var(--process-progress);
  right: auto;
  background: linear-gradient(90deg, var(--accent-yellow), var(--accent-blue));
  clip-path: polygon(0 26%, 14% 6%, 31% 24%, 49% 2%, 68% 20%, 84% 8%, 100% 30%, 100% 78%, 82% 96%, 64% 76%, 48% 98%, 28% 80%, 13% 94%, 0 72%);
  transition: width 240ms ease;
}

.process-step {
  position: relative;
  z-index: 1;
  align-self: end;
  min-height: 156px;
  padding: 18px;
  border: 1px solid var(--border-light);
  border-radius: 9px 6px 10px 7px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(29, 35, 41, 0.04);
  opacity: 0.48;
  transform: translateY(8px);
  transition: opacity 320ms ease, transform 420ms cubic-bezier(0.2, 0.74, 0.24, 1), box-shadow 320ms ease, border-color 320ms ease, background 320ms ease;
}

.process-step:nth-child(2n) {
  border-radius: 6px 10px 7px 9px;
}

.process-step:nth-child(3n) {
  border-radius: 10px 7px 6px 9px;
}

.process-step.is-active {
  opacity: 1;
  transform: translateY(-12px) scale(1.018);
  border-color: rgba(247, 200, 67, 0.56);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.process-step span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border: 2px solid rgba(29, 35, 41, 0.18);
  border-radius: 48% 53% 46% 55%;
  background: rgba(238, 234, 226, 0.74);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
  transition: background 220ms ease, color 220ms ease;
}

.process-step span::after {
  position: absolute;
  inset: -4px -3px -3px -4px;
  border: 1px solid rgba(29, 35, 41, 0.12);
  border-radius: 54% 45% 56% 44%;
  transform: rotate(8deg);
  content: "";
}

.process-step.is-active span {
  border-color: rgba(29, 35, 41, 0.38);
  background: var(--accent-yellow);
  color: var(--graphite);
}

.faq {
  background: rgba(238, 234, 226, 0.55);
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: 44px;
  align-items: start;
}

.faq__list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 28px rgba(29, 35, 41, 0.04);
}

.faq-item summary {
  position: relative;
  cursor: pointer;
  padding: 18px 54px 18px 20px;
  color: var(--text-main);
  font-weight: 800;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--graphite);
  border-bottom: 2px solid var(--graphite);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 180ms ease;
  content: "";
}

.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq-item p {
  max-width: 70ch;
  margin: 0;
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.contacts {
  padding: 56px 0;
  background: var(--graphite);
  color: #fff;
}

.contacts h2,
.contacts h3 {
  color: #fff;
}

.contacts p,
.contacts .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.contacts__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: 28px;
  align-items: start;
}

.contacts__grid--compact {
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
}

.contacts__info {
  position: sticky;
  top: 104px;
}

.contacts__logo {
  width: min(230px, 72%);
  margin-bottom: 16px;
  transform: rotate(-0.8deg);
}

.contacts-card__telegram {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.telegram-contact {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.telegram-contact img {
  width: min(178px, 100%);
  border-radius: 8px;
}

.telegram-contact strong {
  color: #fff;
  font-size: 16px;
}

.contacts__phone {
  display: inline-flex;
  margin: 8px 0 0;
  color: #fff;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
}

.contacts-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.18);
}

.contacts-card div {
  min-height: 96px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 200ms ease, background 200ms ease;
}

.contacts-card div:hover {
  transform: translateY(-4px) scale(1.018);
  background: rgba(255, 255, 255, 0.12);
}

.contacts-card span {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.contacts-card a,
.contacts-card p {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.mobile-dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 90;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(228, 224, 215, 0.8);
  border-radius: 14px;
  background: rgba(247, 245, 240, 0.9);
  box-shadow: 0 14px 42px rgba(29, 35, 41, 0.18);
  backdrop-filter: blur(16px);
}

.mobile-dock a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--graphite);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.mobile-dock a:nth-child(2) {
  background: var(--accent-yellow);
  color: var(--graphite);
}

.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-header {
  border-bottom: 1px solid var(--border-light);
  background: rgba(247, 245, 240, 0.94);
}

.legal-header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.legal-content {
  max-width: 820px;
  flex: 1;
  padding-top: 72px;
  padding-bottom: 86px;
}

.legal-content h1 {
  max-width: 760px;
  margin-bottom: 30px;
  font-size: clamp(38px, 6vw, 62px);
}

.legal-content h2 {
  margin-top: 38px;
  margin-bottom: 12px;
  font-size: 24px;
}

.legal-content p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
}

.legal-content a {
  color: var(--text-main);
  font-weight: 800;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 36px;
  }

  .site-nav,
  .header-phone {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    left: 20px;
    right: 20px;
    top: 84px;
    z-index: 85;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 48px;
    justify-content: center;
  }

  .hero__grid,
  .calculator-layout {
    grid-template-columns: 1fr;
  }

  .contacts__grid--compact {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 20px;
  }

  .contacts__logo {
    width: min(190px, 70%);
  }

  .contacts-card {
    padding: 10px;
  }

  .contacts-card div {
    min-height: 88px;
    padding: 12px;
  }

  .telegram-contact img {
    width: min(150px, 100%);
  }

  .hero {
    min-height: min(580px, calc(100svh - 164px));
    background:
      linear-gradient(90deg, rgba(247, 245, 240, 0.98) 0%, rgba(247, 245, 240, 0.88) 46%, rgba(247, 245, 240, 0.38) 100%),
      linear-gradient(180deg, rgba(247, 245, 240, 0.18) 0%, var(--bg-main) 100%),
      url("../images/hero-tablet.png") center right / cover no-repeat;
  }

  .calculator-intro,
  .contacts__info {
    position: static;
  }

  .calculator-heading h2 {
    font-size: 30px;
  }

  .calculator {
    order: 2;
  }

  .calculator-intro {
    order: 1;
  }

  .calculator-intro img {
    display: none;
  }

  .process {
    height: auto;
    min-height: 0;
  }

  .process__sticky {
    position: relative;
    min-height: 0;
    padding: 72px 0;
  }

  .process-step {
    opacity: 1;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: auto;
    gap: 12px;
    padding: 18px 0 0;
  }

  .process-steps::before,
  .process-steps::after {
    display: none;
  }

  .process-step,
  .process-step.is-active {
    transform: translateY(0);
  }

  .process-step.is-active {
    transform: translateY(-8px);
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 28px, 1180px);
  }

  body {
    padding-bottom: 0;
    background-size: 72px 72px;
  }

  .section {
    padding: 54px 0;
  }

  .site-header {
    position: relative;
    top: auto;
    min-height: 68px;
    padding: 10px 14px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 14px;
    right: 14px;
  }

  .site-header .brand--handdrawn {
    width: 148px;
    flex-basis: 148px;
  }

  .site-header .brand__handdrawn-logo {
    width: 148px;
    height: 61px;
  }

  .brand__mark {
    width: 40px;
    height: 40px;
  }

  .brand__mark img {
    width: 31px;
    height: 31px;
  }

  .brand__name {
    font-size: 15px;
  }

  .brand__meta {
    max-width: 156px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-actions .btn {
    display: none;
  }

  .hero {
    min-height: min(500px, calc(100svh - 180px));
    padding: 54px 0 72px;
    background:
      linear-gradient(180deg, rgba(247, 245, 240, 0.99) 0%, rgba(247, 245, 240, 0.96) 38%, rgba(247, 245, 240, 0.68) 66%, var(--bg-main) 100%),
      url("../images/hero-mobile.png") center bottom / cover no-repeat;
  }

  h1 {
    font-size: 34px;
    line-height: 1.04;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  h2 {
    font-size: 30px;
  }

  .calculator-heading h2 {
    white-space: normal;
  }

  .hero__grid {
    gap: 30px;
  }

  .hero__lead {
    font-size: 20px;
  }

  .hero__actions,
  .calculator__buttons {
    display: grid;
  }

  .calculator__buttons {
    display: flex;
  }

  .calculator__buttons .btn {
    flex: 1;
    padding: 0 12px;
  }

  .service-grid,
  .section-head--split,
  .faq__grid,
  .field-grid,
  .choice-grid--materials,
  .process-steps,
  .contacts__grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    gap: 10px;
  }

  .service-card {
    min-height: 132px;
    padding: 16px;
  }

  .service-card h3,
  .service-card p {
    max-width: 76%;
  }

  .choice-grid--objects,
  .checkbox-grid,
  .lead-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choice-grid--objects .choice-card:last-child {
    grid-column: 1 / -1;
  }

  .choice-grid--materials small {
    display: none;
  }

  .calc-result-step .lead-form .field--full {
    grid-column: auto;
  }

  .result-breakdown {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 8px;
  }

  .process-step {
    min-height: 104px;
    align-self: stretch;
    padding: 12px;
  }

  .process-step span {
    width: 30px;
    height: 30px;
    margin-bottom: 8px;
    font-size: 11px;
  }

  .process-step h3 {
    margin-bottom: 0;
    font-size: 16px;
  }

  .process-step p {
    display: none;
  }

  .package-grid {
    grid-template-columns: repeat(5, minmax(258px, 1fr));
    margin-right: 0;
    padding-right: 0;
  }

  .calculator__top {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px 12px;
  }

  .calculator__label {
    font-size: 11px;
  }

  .calculator__top h3 {
    font-size: 18px;
  }

  .calc-form {
    padding: 14px;
  }

  .result-box {
    padding: 10px 12px;
  }

  .result-box strong {
    font-size: 34px;
  }

  .result-breakdown div {
    padding: 7px;
  }

  .calc-result-step .hint {
    padding: 7px 9px;
    line-height: 1.28;
  }

  .calc-result-step .privacy-note {
    font-size: 10.5px;
    line-height: 1.35;
  }

  .calculator__progress {
    width: 100%;
  }

  .segmented {
    display: grid;
    grid-template-columns: 1fr;
  }

  .calculator .segmented {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .segmented span {
    width: 100%;
  }

  .calculator .segmented span {
    min-height: 38px;
    padding: 4px 5px;
    font-size: 11px;
    line-height: 1.15;
    text-align: center;
  }

  .contacts-card__telegram {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .contacts {
    padding: 38px 0 0;
  }

  .contacts__grid {
    gap: 22px;
  }

  .contacts__info {
    display: grid;
    grid-template-columns: minmax(112px, 0.42fr) minmax(0, 1fr);
    column-gap: 16px;
    align-items: center;
  }

  .contacts__logo {
    width: 100%;
    max-width: 142px;
    grid-row: 1 / span 2;
    margin: 0;
  }

  .contacts__info .eyebrow {
    margin: 0 0 6px;
  }

  .contacts__info h2 {
    margin: 0;
    font-size: 27px;
    line-height: 1.08;
  }

  .contacts__info > p:not(.eyebrow),
  .contacts__phone {
    grid-column: 1 / -1;
  }

  .contacts__info > p:not(.eyebrow) {
    margin: 14px 0 0;
    font-size: 14px;
    line-height: 1.55;
  }

  .contacts-card {
    grid-template-columns: minmax(0, 1fr) minmax(112px, 0.72fr);
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
  }

  .contacts-card div {
    min-height: 0;
    padding: 12px;
    border-radius: 10px;
  }

  .contacts-card > div:first-child {
    grid-column: 1;
    grid-row: 1;
  }

  .contacts-card > div:last-child {
    grid-column: 2;
    grid-row: 1;
  }

  .contacts-card span {
    margin-bottom: 7px;
    font-size: 10px;
  }

  .contacts-card a,
  .contacts-card p {
    font-size: 13px;
  }

  .telegram-contact {
    grid-template-columns: 92px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    gap: 12px;
  }

  .telegram-contact img {
    width: 92px;
  }

  .telegram-contact strong {
    font-size: 14px;
  }

  .contacts__phone {
    margin-top: 12px;
    font-size: 27px;
  }

  .mobile-dock {
    position: static;
    display: grid;
    margin: 0;
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    background: var(--graphite);
    box-shadow: none;
    backdrop-filter: none;
  }

  body.is-calculator-in-view .mobile-dock {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .legal-page {
    padding-bottom: 0;
  }

  .legal-header__inner {
    min-height: 68px;
  }

  .legal-content {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .legal-content h1 {
    font-size: 36px;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 29px;
  }

  h2 {
    font-size: 27px;
  }

  .hero__lead {
    font-size: 18px;
  }
}

@media (max-width: 760px) and (max-height: 650px) {
  .hero {
    min-height: 0;
    padding-top: 30px;
    padding-bottom: 34px;
  }

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

  .process__sticky {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .process .section-head {
    margin-bottom: 8px;
  }

  .process .section-head > p {
    display: none;
  }

  .process .eyebrow {
    margin-bottom: 8px;
  }

  .process-step {
    min-height: 76px;
    padding: 9px 11px;
  }

  .process-step span {
    width: 25px;
    height: 25px;
    margin-bottom: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
