@font-face {
  font-family: "Nimbus Sans";
  src: url("fonts/nimbus-sans-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nimbus Sans";
  src: url("fonts/nimbus-sans-bold.woff") format("woff");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #10213d;
  --ink-soft: #405675;
  --blue: #246be8;
  --blue-dark: #164eb4;
  --sky: #bfe6ff;
  --sky-bright: #7dcaff;
  --ice: #eef8ff;
  --lavender: #e6e6ff;
  --white: #ffffff;
  --paper: #fbfdff;
  --line: #c9d9e8;
  --success: #185941;
  --danger: #a5314a;
  --shadow: 0 22px 70px rgba(35, 76, 129, 0.13);
  --radius-sm: 14px;
  --radius: 26px;
  --radius-lg: 44px;
  --shell: 1480px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Nimbus Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

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

button,
select {
  cursor: pointer;
}

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

h1,
h2,
h3 {
  line-height: 1.02;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.25rem, 6.3vw, 6.8rem);
  letter-spacing: -0.064em;
}

h2 {
  font-size: clamp(2.25rem, 4vw, 4.5rem);
  letter-spacing: -0.05em;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  letter-spacing: -0.025em;
}

p:last-child {
  margin-bottom: 0;
}

::selection {
  background: var(--sky);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 15px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
}

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

.shell {
  width: min(calc(100% - 64px), var(--shell));
  margin-inline: auto;
}

.content-width {
  width: min(calc(100% - 64px), 1030px);
  margin-inline: auto;
}

.article-width {
  width: min(calc(100% - 64px), 1040px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(16, 33, 61, 0.08);
  background: rgba(251, 253, 255, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.brand-bubble {
  position: relative;
  display: block;
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(125, 202, 255, 0.55) 54%, rgba(36, 107, 232, 0.75));
  box-shadow: inset -7px -6px 12px rgba(36, 107, 232, 0.16), 0 5px 15px rgba(36, 107, 232, 0.22);
}

.brand-bubble::before,
.brand-bubble::after,
.brand-bubble i {
  position: absolute;
  border: 1px solid rgba(36, 107, 232, 0.36);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  content: "";
}

.brand-bubble::before {
  top: -4px;
  right: -7px;
  width: 12px;
  height: 12px;
}

.brand-bubble::after {
  right: -4px;
  bottom: -3px;
  width: 7px;
  height: 7px;
}

.brand-bubble i {
  top: 7px;
  left: 8px;
  width: 8px;
  height: 5px;
  border: 0;
  transform: rotate(-25deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.3vw, 38px);
}

.nav-link {
  position: relative;
  padding: 30px 0 27px;
  font-size: 15px;
  font-weight: 700;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 2px;
  background: var(--blue);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  line-height: 1;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

.button--header {
  min-height: 46px;
  padding: 12px 20px;
  border-color: var(--blue);
  background: var(--blue);
}

.button--header:hover {
  border-color: var(--ink);
  background: var(--ink);
}

.button--outline {
  border-color: rgba(16, 33, 61, 0.28);
  background: transparent;
  color: var(--ink);
}

.button--outline:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.button--white {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.button--white:hover {
  border-color: var(--sky);
  background: var(--sky);
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 3px;
  color: var(--ink);
  font-weight: 800;
}

.text-link::after {
  content: "↗";
  transition: transform 160ms ease;
}

.text-link:hover::after {
  transform: translate(3px, -3px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 78px;
  background: linear-gradient(116deg, #f8fcff 0 31%, #e9f8ff 66%, #e8e9ff 100%);
}

.hero::before,
.hero::after,
.bubble-accent,
.bubble-accent::before,
.bubble-accent::after {
  position: absolute;
  border: 1px solid rgba(36, 107, 232, 0.2);
  border-radius: 50%;
  background: radial-gradient(circle at 31% 25%, rgba(255,255,255,.96) 0 8%, rgba(255,255,255,.18) 28%, rgba(125,202,255,.13) 54%, rgba(132,125,255,.16) 78%, rgba(255,255,255,.22));
  box-shadow: inset 12px 10px 26px rgba(255,255,255,.78), inset -12px -15px 28px rgba(36,107,232,.09), 0 16px 40px rgba(36,107,232,.08);
  content: "";
  pointer-events: none;
}

.hero::before {
  top: 4%;
  left: 47%;
  width: 108px;
  height: 108px;
}

.hero::after {
  right: 2%;
  bottom: 3%;
  width: 170px;
  height: 170px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: min(740px, calc(100vh - 145px));
  grid-template-columns: minmax(0, 0.91fr) minmax(540px, 1.09fr);
  align-items: center;
  gap: clamp(48px, 7vw, 120px);
}

.hero-copy {
  max-width: 700px;
  padding: 42px 0;
}

.hero-copy h1 {
  margin-bottom: 30px;
}

.hero-copy h1 em {
  display: block;
  color: var(--blue);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.hero-copy > p {
  max-width: 630px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: clamp(1.12rem, 1.45vw, 1.38rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.hero-photo {
  position: relative;
}

.hero-photo__frame {
  overflow: hidden;
  aspect-ratio: 1.08 / 1;
  border: 10px solid rgba(255,255,255,.68);
  border-radius: 46px 46px 160px 46px;
  box-shadow: var(--shadow);
}

.hero-photo__frame img {
  height: 100%;
  object-fit: cover;
  object-position: 59% center;
}

.hero-card {
  position: absolute;
  bottom: 26px;
  left: -50px;
  max-width: 280px;
  padding: 20px 22px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 19px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 18px 50px rgba(24,55,92,.18);
  backdrop-filter: blur(18px);
}

.hero-card strong,
.hero-card span {
  display: block;
}

.hero-card strong {
  margin-bottom: 4px;
  font-size: 18px;
}

.hero-card span {
  color: var(--ink-soft);
  font-size: 14px;
}

.bubble-accent {
  top: 0;
  right: 16px;
  width: 76px;
  height: 76px;
}

.bubble-accent::before {
  top: 72px;
  left: 50px;
  width: 34px;
  height: 34px;
}

.bubble-accent::after {
  top: 102px;
  left: 22px;
  width: 18px;
  height: 18px;
}

.proof-strip {
  position: relative;
  z-index: 3;
  margin-top: -34px;
}

.proof-strip__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid rgba(16,33,61,.08);
  border-radius: 25px;
  background: var(--white);
  box-shadow: 0 14px 45px rgba(30,76,129,.1);
}

.proof-item {
  display: flex;
  min-height: 100px;
  align-items: center;
  gap: 16px;
  padding: 25px 32px;
  border-right: 1px solid var(--line);
  font-weight: 800;
}

.proof-item:last-child {
  border-right: 0;
}

.proof-icon {
  display: grid;
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  place-items: center;
  border-radius: 50%;
  background: var(--ice);
  color: var(--blue);
  font-size: 20px;
}

.section {
  padding: clamp(88px, 9vw, 150px) 0;
}

.section--compact {
  padding: clamp(65px, 7vw, 105px) 0;
}

.section--sky {
  background: var(--ice);
}

.section--blue {
  background: var(--blue);
  color: var(--white);
}

.section--ink {
  background: var(--ink);
  color: var(--white);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .55fr);
  align-items: end;
  gap: 60px;
  margin-bottom: 55px;
}

.section-heading h2 {
  max-width: 900px;
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 560px;
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 18px;
}

.section--blue .section-heading > p,
.section--ink .section-heading > p {
  color: rgba(255,255,255,.77);
}

.section-heading--single {
  display: block;
}

.section-heading--single h2 {
  max-width: 1000px;
}

.services-showcase {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
}

.service-large,
.service-small {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
}

.service-large {
  min-height: 630px;
}

.service-large img {
  height: 100%;
  object-fit: cover;
}

.service-large__copy {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  padding: 28px 30px;
  border-radius: 21px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
}

.service-large__copy h3 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 3vw, 3.25rem);
}

.service-large__copy p {
  max-width: 650px;
  margin-bottom: 20px;
  color: var(--ink-soft);
}

.service-stack {
  display: grid;
  gap: 22px;
}

.service-small {
  display: grid;
  min-height: 194px;
  grid-template-columns: 180px 1fr;
  border: 1px solid var(--line);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.service-small:hover {
  border-color: var(--blue);
  box-shadow: 0 16px 40px rgba(30,76,129,.1);
  transform: translateY(-4px);
}

.service-small img {
  height: 100%;
  object-fit: cover;
}

.service-small__copy {
  align-self: center;
  padding: 25px;
}

.service-small h3 {
  margin-bottom: 9px;
  font-size: 1.55rem;
}

.service-small p {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 15px;
}

.service-small span {
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
}

.calculator {
  display: grid;
  grid-template-columns: 1fr .75fr .9fr 1fr;
  gap: 12px;
  padding: 20px;
  border-radius: 27px;
  background: var(--white);
  box-shadow: 0 20px 80px rgba(14,54,115,.18);
  color: var(--ink);
}

.calculator label,
.field label,
.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 800;
}

.calculator-field {
  padding: 10px 12px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 13px 15px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: 2px solid rgba(36,107,232,.16);
  outline-offset: 0;
}

.calculator-result {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 17px;
  background: var(--ice);
}

.calculator-result small,
.calculator-result strong {
  display: block;
}

.calculator-result small {
  color: var(--ink-soft);
  font-size: 13px;
}

.calculator-result strong {
  margin-top: 2px;
  font-size: 27px;
  line-height: 1;
}

.calculator-result a {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 22px;
}

.calculator-note {
  margin: 18px 0 0;
  color: rgba(255,255,255,.76);
  font-size: 14px;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(450px, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(55px, 8vw, 130px);
}

.story-grid--reverse .story-photo {
  order: 2;
}

.story-photo {
  position: relative;
}

.story-photo img {
  aspect-ratio: 1.15 / 1;
  border-radius: 34px;
  object-fit: cover;
}

.story-photo__note {
  position: absolute;
  right: -25px;
  bottom: 25px;
  max-width: 260px;
  padding: 19px 20px;
  border-radius: 17px;
  background: var(--blue);
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.story-copy h2 {
  margin-bottom: 25px;
}

.story-copy > p {
  max-width: 690px;
  color: var(--ink-soft);
  font-size: 19px;
}

.story-copy .text-link {
  margin-top: 15px;
}

.plain-list,
.check-list {
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.plain-list li,
.check-list li {
  position: relative;
  padding: 14px 0 14px 34px;
  border-bottom: 1px solid var(--line);
}

.check-list li::before {
  position: absolute;
  top: 17px;
  left: 0;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: var(--sky);
  color: var(--blue-dark);
  content: "✓";
  font-size: 13px;
  font-weight: 900;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.process-card {
  min-height: 270px;
  padding: 34px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 26px;
  background: rgba(255,255,255,.07);
}

.process-card span {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--sky);
  color: var(--ink);
  font-weight: 900;
}

.process-card h3 {
  margin-bottom: 12px;
}

.process-card p {
  color: rgba(255,255,255,.72);
}

.plan-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 60px;
  padding: clamp(45px, 6vw, 85px);
  border-radius: 40px;
  background: linear-gradient(125deg, var(--sky) 0, #d7efff 50%, var(--lavender) 100%);
}

.plan-panel::after {
  position: absolute;
  top: -70px;
  right: 33%;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  content: "";
}

.plan-panel h2 {
  margin-bottom: 25px;
}

.plan-panel p {
  max-width: 650px;
  color: var(--ink-soft);
  font-size: 19px;
}

.plan-benefits {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 11px;
}

.plan-benefit {
  padding: 21px 23px;
  border-radius: 18px;
  background: rgba(255,255,255,.8);
  font-weight: 800;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr .85fr;
  gap: 18px;
}

.quote {
  min-height: 275px;
  padding: 33px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: var(--white);
}

.quote:first-child {
  background: var(--blue);
  color: var(--white);
}

.quote p {
  font-size: 20px;
  line-height: 1.45;
}

.quote:first-child p {
  font-size: 25px;
}

.quote footer {
  margin-top: 35px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
}

.quote:first-child footer {
  color: rgba(255,255,255,.74);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item button {
  display: flex;
  width: 100%;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 0;
  background: transparent;
  padding: 22px 0;
  text-align: left;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-weight: 800;
}

.faq-item button span:last-child {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--ice);
  color: var(--blue);
  transition: transform 180ms ease;
}

.faq-item button[aria-expanded="true"] span:last-child {
  transform: rotate(45deg);
}

.faq-answer {
  max-width: 900px;
  padding: 0 70px 25px 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.cta {
  padding: 40px 0 100px;
  background: var(--paper);
}

.cta-inner {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 310px;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding: clamp(45px, 7vw, 90px);
  border-radius: 40px;
  background: var(--blue);
  color: var(--white);
}

.cta-inner::before,
.cta-inner::after {
  position: absolute;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  content: "";
}

.cta-inner::before {
  top: -100px;
  right: 23%;
  width: 260px;
  height: 260px;
}

.cta-inner::after {
  right: -70px;
  bottom: -90px;
  width: 220px;
  height: 220px;
}

.cta-copy,
.cta-inner .button {
  position: relative;
  z-index: 1;
}

.cta-copy h2 {
  max-width: 900px;
  margin-bottom: 18px;
}

.cta-copy p {
  max-width: 660px;
  color: rgba(255,255,255,.78);
  font-size: 18px;
}

.page-hero {
  padding: 64px 0 82px;
  background: linear-gradient(125deg, var(--ice), #eef0ff);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
  align-items: center;
  gap: clamp(55px, 8vw, 125px);
}

.page-hero-copy h1 {
  margin-bottom: 25px;
  font-size: clamp(3.25rem, 5.8vw, 6.2rem);
}

.page-hero-copy p {
  max-width: 680px;
  color: var(--ink-soft);
  font-size: 20px;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.page-hero-photo {
  position: relative;
}

.page-hero-photo img {
  aspect-ratio: 1.32 / 1;
  border-radius: 36px 36px 110px 36px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.page-hero-price {
  position: absolute;
  bottom: 22px;
  left: -35px;
  padding: 18px 22px;
  border-radius: 17px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.page-hero-price strong,
.page-hero-price span {
  display: block;
}

.page-hero-price strong {
  font-size: 24px;
}

.page-hero-price span {
  color: var(--ink-soft);
  font-size: 13px;
}

.subnav {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.subnav-inner {
  display: flex;
  overflow-x: auto;
  gap: 30px;
  padding: 18px 0;
  scrollbar-width: none;
}

.subnav-inner a {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
}

.subnav-inner a:hover {
  color: var(--blue);
}

.subnav-inner a.is-active {
  border-bottom: 2px solid var(--blue);
  color: var(--blue);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: var(--white);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  border-color: var(--blue);
  box-shadow: 0 18px 45px rgba(25,70,125,.11);
  transform: translateY(-5px);
}

.service-card img {
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
}

.service-card__body {
  padding: 27px;
}

.service-card h2,
.service-card h3 {
  margin-bottom: 11px;
  font-size: 1.85rem;
}

.service-card p {
  color: var(--ink-soft);
}

.service-card__price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 25px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-weight: 900;
}

.service-card__price span:last-child {
  color: var(--blue);
}

.compare-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
}

.compare-table table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 20px 23px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.compare-table th {
  background: var(--ice);
  font-size: 14px;
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.price-cards {
  display: grid;
  /* minmax(0, ...) hoiab ara, et pikk sona kaardi sees veeru laiemaks teeks */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.price-cards--secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.price-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--white);
}

.price-card--featured {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.price-card h3 {
  margin-bottom: 12px;
}

.price-card__number {
  display: block;
  margin: 25px 0;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.price-card p,
.price-card li {
  color: var(--ink-soft);
}

.price-card--featured p,
.price-card--featured li {
  color: rgba(255,255,255,.75);
}

.price-card ul {
  margin: 0;
  padding-left: 20px;
}

.details-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 70px;
}

.details-main h2 {
  margin-top: 70px;
  margin-bottom: 25px;
  font-size: clamp(2.2rem, 3.4vw, 3.6rem);
}

.details-main h2:first-child {
  margin-top: 0;
}

.details-main > p,
.details-main li {
  font-size: 18px;
}

.details-aside {
  position: sticky;
  top: 118px;
  padding: 30px;
  border-radius: 24px;
  background: var(--ice);
}

.details-aside h2 {
  margin-bottom: 18px;
  font-size: 1.65rem;
}

.details-aside dl {
  margin: 0 0 25px;
}

.details-aside dl div {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.details-aside dt {
  color: var(--ink-soft);
  font-size: 13px;
}

.details-aside dd {
  margin: 3px 0 0;
  font-weight: 800;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: var(--white);
}

.article-card img {
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
}

.article-card__body {
  padding: 26px;
}

.article-card h2,
.article-card h3 {
  margin-bottom: 12px;
  font-size: 1.75rem;
}

.article-card p {
  color: var(--ink-soft);
}

.article-card .text-link {
  margin-top: 12px;
}

.article-hero {
  padding: 70px 0 65px;
  background: var(--ice);
}

.article-hero h1 {
  max-width: 1100px;
  margin-bottom: 26px;
  font-size: clamp(3rem, 5.7vw, 6rem);
}

.article-hero p {
  max-width: 820px;
  color: var(--ink-soft);
  font-size: 21px;
}

.article-hero__meta {
  margin-top: 25px;
  font-size: 14px;
  font-weight: 800;
}

.article-body {
  padding: 80px 0 120px;
}

.article-body h2 {
  margin: 62px 0 22px;
  font-size: clamp(2rem, 3.3vw, 3.1rem);
}

.article-body h3 {
  margin: 38px 0 16px;
}

.article-body p,
.article-body li {
  font-size: 19px;
  line-height: 1.65;
}

.article-body img {
  margin: 50px 0;
  border-radius: 28px;
}

.article-callout {
  margin: 48px 0;
  padding: 30px 34px;
  border-left: 5px solid var(--blue);
  border-radius: 0 20px 20px 0;
  background: var(--ice);
}

.contact-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 70px;
}

.contact-details h2 {
  margin-bottom: 25px;
}

.contact-details address {
  font-style: normal;
}

.contact-line {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact-line span,
.contact-line strong {
  display: block;
}

.contact-line span {
  color: var(--ink-soft);
  font-size: 14px;
}

.contact-line strong {
  margin-top: 3px;
  font-size: 20px;
}

.form-card {
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.field small,
.field-help {
  display: block;
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 13px;
}

.field-help a,
.form-privacy a {
  border-bottom: 1px solid currentColor;
  font-weight: 800;
}

.form-privacy {
  margin: 20px 0 0;
}

.form-privacy + .button {
  margin-top: 20px;
}

.field.has-error input,
.field.has-error select,
.choice-group.has-error .choice-card {
  border-color: var(--danger);
}

.field.has-error::after,
.choice-group.has-error::after {
  display: block;
  margin-top: 6px;
  color: var(--danger);
  content: "Palun täida see väli.";
  font-size: 13px;
}

.form-success {
  margin-top: 22px;
  padding: 20px;
  border-radius: 16px;
  background: #e8f6ef;
  color: var(--success);
}

.booking-page {
  padding: 55px 0 110px;
  background: linear-gradient(125deg, var(--ice), var(--paper) 38%);
}

.booking-head {
  max-width: 920px;
  margin-bottom: 45px;
}

.booking-head h1 {
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 5.7vw, 6rem);
}

.booking-head p {
  color: var(--ink-soft);
  font-size: 20px;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 28px;
}

.booking-form {
  scroll-margin-top: 115px;
}

.booking-form__card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--ice);
}

.form-step {
  padding: 20px 14px;
  border-right: 1px solid var(--line);
  color: var(--ink-soft);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.form-step:last-child {
  border-right: 0;
}

.form-step.is-active {
  background: var(--blue);
  color: var(--white);
}

.form-step.is-complete {
  background: var(--sky);
  color: var(--ink);
}

.form-panel {
  padding: clamp(28px, 4.4vw, 60px);
}

.form-panel h2 {
  margin-bottom: 28px;
  font-size: clamp(2rem, 3vw, 3rem);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

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

.choice-card {
  position: relative;
  display: block;
  min-height: 105px;
  padding: 19px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  cursor: pointer;
}

.choice-card:has(input:checked) {
  border-color: var(--blue);
  background: var(--ice);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.choice-card input {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 19px;
  min-height: 19px;
  accent-color: var(--blue);
}

.choice-card strong,
.choice-card span {
  display: block;
  padding-right: 25px;
}

.choice-card strong {
  margin-bottom: 7px;
}

.choice-card span {
  color: var(--ink-soft);
  font-size: 13px;
}

.conditional-block {
  margin-top: 28px;
  padding: 25px;
  border-radius: 20px;
  background: var(--ice);
}

.extras-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.check-choice {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  cursor: pointer;
}

.check-choice:has(input:checked) {
  border-color: var(--blue);
  background: var(--ice);
}

.check-choice input {
  width: 19px;
  min-height: 19px;
  accent-color: var(--blue);
}

.check-choice span {
  font-size: 14px;
  font-weight: 700;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 22px clamp(28px, 4.4vw, 60px) 30px;
  border-top: 1px solid var(--line);
}

.booking-summary {
  position: sticky;
  top: 112px;
  padding: 27px;
  border-radius: 23px;
  background: var(--ink);
  color: var(--white);
}

.booking-summary span,
.booking-summary strong,
.booking-summary small {
  display: block;
}

.booking-summary span {
  color: rgba(255,255,255,.66);
  font-size: 14px;
}

.booking-summary strong {
  margin: 10px 0 5px;
  font-size: 38px;
  letter-spacing: -0.04em;
}

.booking-summary small {
  color: rgba(255,255,255,.66);
  line-height: 1.5;
}

.review-grid {
  display: grid;
  gap: 18px;
}

.review-grid section {
  padding: 23px;
  border-radius: 17px;
  background: var(--ice);
}

.review-grid h3 {
  margin-bottom: 15px;
  font-size: 1.35rem;
}

.review-grid dl {
  margin: 0;
}

.review-grid dl div {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.review-grid dl div:last-child {
  border-bottom: 0;
}

.review-grid dt {
  color: var(--ink-soft);
  font-size: 14px;
}

.review-grid dd {
  margin: 0;
  font-weight: 700;
}

.review-total dd {
  color: var(--blue);
  font-size: 20px;
}

.booking-success {
  padding: clamp(55px, 8vw, 105px);
  text-align: center;
}

.booking-success h2 {
  margin-bottom: 20px;
}

.booking-success p {
  max-width: 650px;
  margin-inline: auto;
  color: var(--ink-soft);
  font-size: 18px;
}

.legal-page {
  padding: 70px 0 120px;
}

.legal-page h1 {
  margin-bottom: 40px;
  font-size: clamp(3rem, 5vw, 5.2rem);
}

.legal-page h2 {
  margin: 50px 0 18px;
  font-size: 2.15rem;
}

.legal-page p,
.legal-page li {
  font-size: 18px;
}

.notice {
  margin-bottom: 40px;
  padding: 22px 25px;
  border-radius: 16px;
  background: var(--ice);
  color: var(--ink-soft);
}

.error-page {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: calc(100vh - 86px);
  place-items: center;
  padding: 70px 0;
  background: linear-gradient(140deg, var(--ice), var(--lavender));
  text-align: center;
}

.error-page::before,
.error-page::after {
  position: absolute;
  border: 1px solid rgba(36,107,232,.2);
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  content: "";
}

.error-page::before {
  top: 10%;
  left: 8%;
  width: 240px;
  height: 240px;
}

.error-page::after {
  right: 8%;
  bottom: 8%;
  width: 150px;
  height: 150px;
}

.error-content {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.error-code {
  display: block;
  color: var(--blue);
  font-size: clamp(7rem, 18vw, 14rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: .8;
}

.error-content h1 {
  margin: 30px 0 20px;
  font-size: clamp(2.7rem, 5vw, 5rem);
}

.error-content p {
  color: var(--ink-soft);
  font-size: 19px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.site-footer {
  background: var(--ink);
  color: var(--white);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.15fr .8fr .8fr 1fr;
  gap: 55px;
  padding: 85px 0 70px;
}

.brand--footer {
  margin-bottom: 22px;
}

.footer-intro p {
  max-width: 270px;
  color: rgba(255,255,255,.66);
}

.footer-intro > span,
.footer-contact {
  display: block;
}

.footer-contact {
  margin-top: 26px;
  font-size: 22px;
  font-weight: 800;
}

.footer-intro > span {
  color: rgba(255,255,255,.68);
}

.footer-links h2,
.footer-order h2 {
  margin-bottom: 22px;
  font-size: 17px;
  letter-spacing: 0;
}

.footer-links a {
  display: block;
  margin: 11px 0;
  color: rgba(255,255,255,.68);
  font-size: 15px;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-order {
  padding: 28px;
  border-radius: 22px;
  background: rgba(255,255,255,.07);
}

.footer-order p {
  color: rgba(255,255,255,.66);
  font-size: 15px;
}

.footer-order .button {
  margin-top: 12px;
}

.footer-bottom {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.54);
  font-size: 13px;
}

.footer-bottom nav {
  display: flex;
  gap: 22px;
}

.mobile-dock {
  display: none;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(21,70,160,.26);
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

[hidden] {
  display: none !important;
}

@media (max-width: 1180px) {
  .main-nav {
    gap: 18px;
  }

  .nav-link {
    font-size: 14px;
  }

  .hero-grid {
    grid-template-columns: .9fr 1.1fr;
    gap: 45px;
  }

  .services-showcase,
  .story-grid,
  .page-hero-grid {
    gap: 45px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .shell,
  .content-width,
  .article-width {
    width: min(calc(100% - 40px), var(--shell));
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 76px;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    padding: 22px 20px 100px;
  }

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

  .nav-link {
    padding: 18px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 20px;
  }

  .nav-link::after {
    display: none;
  }

  .button--header {
    margin-top: 20px;
  }

  .header-inner {
    min-height: 76px;
  }

  .hero-grid,
  .page-hero-grid,
  .story-grid,
  .plan-panel,
  .contact-grid,
  .booking-layout,
  .details-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: 0;
  }

  .hero-photo__frame {
    aspect-ratio: 1.35 / 1;
  }

  .hero-card {
    left: 20px;
  }

  .page-hero-photo {
    margin-left: 35px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .services-showcase {
    grid-template-columns: 1fr;
  }

  .service-large {
    min-height: 560px;
  }

  .story-grid--reverse .story-photo {
    order: 0;
  }

  .process-grid,
  .service-grid,
  .article-grid,
  .price-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .quote-grid {
    grid-template-columns: 1fr 1fr;
  }

  .quote:first-child {
    grid-column: 1 / -1;
  }

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

  .details-aside,
  .booking-summary {
    position: static;
  }

  .booking-summary {
    order: -1;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
    padding-bottom: 62px;
  }

  .shell,
  .content-width,
  .article-width {
    width: min(calc(100% - 28px), var(--shell));
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.7rem);
  }

  h2 {
    font-size: clamp(2.3rem, 12vw, 3.6rem);
  }

  .hero {
    padding: 35px 0 70px;
  }

  .hero-copy {
    padding: 15px 0 0;
  }

  .hero-copy > p,
  .page-hero-copy p,
  .story-copy > p {
    font-size: 17px;
  }

  .hero-actions,
  .page-hero-actions,
  .error-actions {
    flex-direction: column;
  }

  .hero-actions .button,
  .page-hero-actions .button,
  .error-actions .button {
    width: 100%;
  }

  .hero-photo__frame {
    aspect-ratio: .95 / 1;
    border-width: 6px;
    border-radius: 30px 30px 90px 30px;
  }

  .hero-photo__frame img {
    object-position: 62% center;
  }

  .hero-card {
    right: 13px;
    bottom: 13px;
    left: 13px;
    max-width: none;
  }

  .proof-strip {
    margin-top: -24px;
  }

  .proof-strip__inner {
    grid-template-columns: 1fr;
  }

  .proof-item {
    min-height: 76px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 20px;
    font-size: 14px;
  }

  .proof-item:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 76px 0;
  }

  .section-heading {
    margin-bottom: 35px;
  }

  .service-large {
    min-height: 500px;
  }

  .service-large__copy {
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 23px;
  }

  .service-small {
    min-height: 0;
    grid-template-columns: 115px 1fr;
  }

  .service-small__copy {
    padding: 19px;
  }

  .service-small p {
    display: none;
  }

  .calculator,
  .process-grid,
  .service-grid,
  .article-grid,
  .price-cards,
  .quote-grid,
  .form-grid,
  .choice-grid,
  .choice-grid--services,
  .extras-grid {
    grid-template-columns: 1fr;
  }

  .calculator {
    padding: 12px;
  }

  .calculator-result {
    min-height: 84px;
  }

  .story-photo img,
  .page-hero-photo img {
    border-radius: 25px;
  }

  .story-photo__note {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
  }

  .plan-panel,
  .cta-inner {
    padding: 35px 24px;
    border-radius: 28px;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-inner .button {
    width: 100%;
  }

  .quote:first-child {
    grid-column: auto;
  }

  .quote:first-child p,
  .quote p {
    font-size: 18px;
  }

  .page-hero {
    padding: 48px 0 65px;
  }

  .page-hero-copy h1,
  .article-hero h1,
  .booking-head h1 {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .page-hero-photo {
    margin-left: 0;
  }

  .page-hero-price {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .details-layout {
    gap: 35px;
  }

  .form-card,
  .form-panel {
    padding: 25px 20px;
  }

  .form-steps {
    overflow-x: auto;
  }

  .form-step {
    min-width: 110px;
  }

  .form-actions {
    padding: 18px 20px 25px;
  }

  .form-actions .button {
    flex: 1;
    padding-inline: 16px;
  }

  .review-grid dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 65px 0 50px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 0 28px;
  }

  .footer-bottom nav {
    flex-wrap: wrap;
  }

  .mobile-dock {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 95;
    display: grid;
    min-height: 62px;
    grid-template-columns: 1fr 1fr;
    background: var(--ink);
  }

  .mobile-dock a {
    display: grid;
    place-items: center;
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
  }

  .mobile-dock a:first-child {
    background: var(--blue);
  }

  .back-to-top {
    right: 14px;
    bottom: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Tellimisvormi veerg jai min-content laiuse peale kinni ja lukkas lehe
   mobiilis ule aariste. minmax(0, 1fr) laseb booking-layout kahanema. */
@media (max-width: 980px) {
  .booking-layout { grid-template-columns: minmax(0, 1fr); }
  .price-cards,
  .price-cards--secondary { grid-template-columns: minmax(0, 1fr); }
}
