:root {
  --ink: #0f2a38;
  --navy: #044b69;
  --blue: #5a90af;
  --orange: #f69321;
  --orange-dark: #d9790b;
  --green: #91b43d;
  --sand: #faf6ef;
  --sand-dark: #f1e9dc;
  --line: #e7dfd1;
  --text: #33434d;
  --muted: #6b7780;
  --white: #fff;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 20px 50px -20px rgba(15, 42, 56, 0.25);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--orange-dark);
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
}

h3 {
  font-size: 20px;
  font-weight: 700;
}

p {
  margin: 0 0 16px;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

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

.center {
  text-align: center;
}

.muted {
  color: var(--muted);
}

.fine {
  font-size: 14px;
  color: var(--muted);
}

.fine.light {
  color: rgba(255, 255, 255, 0.6);
  margin-top: 32px;
}

/* Kicker label */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-dark);
}

.kicker::before {
  content: '';
  width: 22px;
  height: 2px;
  background: currentColor;
}

.kicker--light {
  color: var(--orange);
}

.hero .kicker::before {
  display: none;
}

.kicker__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(145, 180, 61, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

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

.btn--lg {
  padding: 15px 26px;
  font-size: 16px;
}

.btn--block {
  width: 100%;
}

.btn--orange {
  background: var(--orange);
  color: var(--ink);
}

.btn--orange:hover {
  background: var(--orange-dark);
  color: var(--white);
}

.btn--line {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--line:hover {
  background: var(--ink);
  color: var(--white);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--white);
  color: var(--white);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  color: var(--navy);
}

.link-arrow .icon {
  transition: transform 0.2s;
}

.link-arrow:hover .icon {
  transform: translateX(4px);
}

/* Top bar */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

.topbar span,
.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar__right {
  gap: 22px !important;
}

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

.topbar a:hover {
  color: var(--orange);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 24px -16px rgba(15, 42, 56, 0.3);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 78px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}

.header__city {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a:not(.btn) {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s;
}

.nav a:not(.btn):hover {
  background: var(--sand-dark);
  color: var(--ink);
}

.nav__apply {
  margin-left: 10px;
}

.nav__close {
  display: none;
}

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.header__phone .icon {
  width: 36px;
  height: 36px;
  padding: 9px;
  border-radius: 50%;
  background: var(--sand-dark);
  color: var(--orange-dark);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  cursor: pointer;
}

.burger span:not(.visually-hidden) {
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

.burger span:nth-child(2) {
  width: 70%;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(15, 42, 56, 0.5);
}

/* Hero */
.hero {
  position: relative;
  padding: 64px 0 150px;
  background: linear-gradient(180deg, var(--white) 0%, var(--sand) 100%);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 56px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--orange-dark);
  background: linear-gradient(transparent 70%, rgba(246, 147, 33, 0.25) 70%);
}

.hero__lead {
  font-size: 19px;
  max-width: 540px;
}

.ticks {
  list-style: none;
  margin: 24px 0 32px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ticks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--ink);
}

.ticks .icon {
  width: 24px;
  height: 24px;
  padding: 4px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  stroke-width: 3;
}

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

.hero__visual {
  position: relative;
}

.hero__visual picture img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 200px 28px 28px 28px;
  box-shadow: var(--shadow);
}

.hero__badge {
  position: absolute;
  left: -28px;
  bottom: 36px;
  display: grid;
  max-width: 220px;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.4;
  box-shadow: var(--shadow);
}

.hero__badge strong {
  font-size: 32px;
  color: var(--orange);
  letter-spacing: -0.02em;
}

.ridge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 110px;
  fill: var(--ink);
}

/* Difference band */
.difference {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 20px 0 72px;
}

.difference__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}

.difference__list li {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.difference__num {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--orange);
}

.difference h3 {
  color: var(--white);
  font-size: 19px;
}

.difference p {
  font-size: 15px;
  margin: 0;
}

/* Sections */
.section {
  padding: 104px 0;
}

.section--sand {
  background: var(--sand);
}

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

.section--dark {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.heading--center {
  margin-inline: auto;
  text-align: center;
}

/* Tabs */
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.tabs__list button {
  padding: 12px 22px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

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

.tabs__list button[aria-selected='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.tabs__panel {
  max-width: 820px;
  padding: 44px 48px;
  border-radius: var(--radius);
  background: var(--sand);
  border-left: 6px solid var(--orange);
  animation: fade-in 0.35s ease;
}

.tabs__panel h3 {
  font-size: clamp(22px, 2.6vw, 30px);
}

.js .tabs__panel[data-hidden] {
  display: none;
}

/* Without JS, show every panel stacked. */
html:not(.js) .tabs__list {
  display: none;
}

html:not(.js) .tabs__panel + .tabs__panel {
  margin-top: 20px;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* Estimate */
.estimate {
  display: grid;
  grid-template-columns: 1fr 460px;
  align-items: center;
  gap: 64px;
}

.estimate__card {
  padding: 36px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.estimate__card label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.money {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
  border: 2px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.2s;
}

.money:focus-within {
  border-color: var(--orange);
}

.money span {
  padding-left: 16px;
  font-weight: 700;
  color: var(--muted);
}

.money input {
  width: 100%;
  padding: 14px 16px 14px 6px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  outline: none;
}

.estimate__result {
  display: grid;
  gap: 2px;
  margin: 6px 0 22px;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--sand);
  text-align: center;
}

.estimate__result span {
  font-size: 14px;
  color: var(--muted);
}

.estimate__result output {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--green);
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 16%;
  right: 16%;
  border-top: 2px dashed rgba(255, 255, 255, 0.25);
}

.timeline li {
  position: relative;
  text-align: center;
}

.timeline__dot {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 0 0 8px var(--ink);
}

.timeline__when {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}

.timeline p:last-child {
  max-width: 300px;
  margin-inline: auto;
}

/* Quadrants */
.quad-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 64px;
}

.nearby {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.nearby strong {
  margin-right: 4px;
  color: var(--ink);
}

.nearby span {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--sand-dark);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.quads {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quad {
  padding: 28px;
  min-height: 210px;
  background: var(--sand);
  transition: transform 0.25s, background-color 0.25s;
}

.quad:hover {
  transform: scale(1.02);
  background: var(--sand-dark);
}

.quad--nw {
  border-radius: var(--radius) 6px 6px 6px;
}

.quad--ne {
  border-radius: 6px var(--radius) 6px 6px;
}

.quad--sw {
  border-radius: 6px 6px 6px var(--radius);
}

.quad--se {
  border-radius: 6px 6px var(--radius) 6px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.quad--se:hover {
  background: var(--navy);
}

.quad--se h3 {
  color: var(--white);
}

.quad__code {
  display: block;
  margin-bottom: 8px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--orange);
}

.quad h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.quad p {
  margin: 0;
  font-size: 15px;
}

.quads__centre {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  border: 5px solid var(--white);
  border-radius: 50%;
  background: var(--orange);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Reviews */
.reviews {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px 64px;
  align-items: start;
}

.reviews__controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

html:not(.js) .reviews__controls {
  display: none;
}

.reviews__count {
  min-width: 48px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}

.round-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.round-btn:hover {
  background: var(--ink);
  color: var(--white);
}

.reviews__track {
  position: relative;
  padding: 48px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.reviews__track::before {
  content: '\201C';
  position: absolute;
  top: -18px;
  left: 36px;
  font-size: 120px;
  line-height: 1;
  font-weight: 800;
  color: var(--orange);
}

.review {
  margin: 0;
  animation: fade-in 0.4s ease;
}

.js .review[data-hidden] {
  display: none;
}

html:not(.js) .review + .review {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.review blockquote {
  margin: 0 0 24px;
}

.review blockquote p {
  margin: 0;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

.review figcaption {
  color: var(--muted);
}

.review figcaption strong {
  color: var(--ink);
}

.reviews > .link-arrow {
  grid-column: 2;
}

/* Facts */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.fact {
  padding: 32px 28px;
}

.fact + .fact {
  border-left: 1px solid var(--line);
}

.fact strong {
  display: block;
  margin-bottom: 10px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.fact p {
  margin: 0;
  font-size: 15px;
}

/* News */
.news-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
}

.news {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news li + li {
  border-top: 1px solid var(--line);
}

.news a {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  text-decoration: none;
  color: var(--ink);
}

.news img {
  width: 120px;
  height: 80px;
  flex: none;
  object-fit: cover;
  border-radius: 12px;
  background: var(--sand-dark);
}

.news time {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--muted);
}

.news strong {
  font-size: 17px;
  line-height: 1.4;
}

.news a:hover strong {
  color: var(--orange-dark);
}

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: start;
}

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

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

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

.faq summary .icon {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 50%;
  background: var(--white);
  color: var(--orange-dark);
  transition: transform 0.25s, background-color 0.25s;
}

.faq details[open] summary .icon {
  transform: rotate(45deg);
  background: var(--orange);
  color: var(--ink);
}

.faq details p {
  padding-right: 54px;
  margin-bottom: 22px;
}

/* Tip */
.tip {
  padding: 88px 0;
  background: linear-gradient(120deg, rgba(15, 42, 56, 0.94), rgba(4, 75, 105, 0.86)), url('../images/calgary-hero-800.webp') center / cover;
  color: rgba(255, 255, 255, 0.85);
}

.tip__inner {
  max-width: 820px;
}

.tip h2 {
  color: var(--white);
  font-size: clamp(26px, 3.4vw, 38px);
}

.tip p:last-child {
  margin: 0;
  font-size: 18px;
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  border-radius: 28px;
  overflow: hidden;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
}

.contact__main {
  padding: 56px;
}

.contact h2 {
  color: var(--white);
}

.contact a {
  color: var(--white);
}

.contact a:hover {
  color: var(--orange);
}

.contact__big {
  display: inline-block;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--orange) !important;
}

.contact__sub {
  margin-bottom: 28px;
}

.contact__list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.contact__list li {
  display: flex;
  gap: 14px;
}

.contact__list .icon {
  margin-top: 4px;
  color: var(--orange);
}

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

.contact__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer */
.footer {
  padding: 72px 0 36px;
  background: #0a1f2a;
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__grid img {
  margin-bottom: 18px;
}

.footer h3 {
  margin-bottom: 14px;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}

.footer nav a {
  display: block;
  padding: 4px 0;
  color: inherit;
  text-decoration: none;
}

.footer nav a:hover {
  color: var(--orange);
}

.footer__legal {
  padding-top: 28px;
  font-size: 13px;
}

/* Back to top */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--orange);
  color: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Reveal on scroll */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .header__phone span {
    display: none;
  }

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

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

  .fact:nth-child(3) {
    border-left: 0;
  }

  .fact:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 960px) {
  .topbar__inner > span:first-child {
    display: none;
  }

  .topbar__inner {
    justify-content: center;
  }

  .burger {
    display: flex;
  }

  /* backdrop-filter would make the header the containing block for the fixed drawer. */
  .header {
    background: var(--white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    width: min(340px, 86vw);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 84px 24px 24px;
    background: var(--white);
    box-shadow: -20px 0 50px rgba(15, 42, 56, 0.2);
    clip-path: inset(0 0 0 100%);
    visibility: hidden;
    transition: clip-path 0.3s ease, visibility 0.3s;
  }

  .nav.is-open {
    clip-path: inset(0 0 0 -60px);
    visibility: visible;
  }

  .nav a:not(.btn) {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 17px;
  }

  .nav__apply {
    margin: 16px 0 0;
  }

  .nav__close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--sand-dark);
    color: var(--ink);
    cursor: pointer;
  }

  .hero {
    padding: 40px 0 120px;
  }

  .hero__grid,
  .estimate,
  .quad-layout,
  .reviews,
  .news-layout,
  .faq-layout,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    gap: 40px;
  }

  .hero__visual picture img {
    border-radius: 120px 22px 22px 22px;
  }

  .hero__badge {
    left: 16px;
    bottom: -24px;
  }

  .estimate,
  .quad-layout,
  .news-layout,
  .faq-layout {
    gap: 40px;
  }

  .reviews > .link-arrow {
    grid-column: auto;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .timeline::before {
    top: 26px;
    bottom: 26px;
    left: 26px;
    right: auto;
    border-top: 0;
    border-left: 2px dashed rgba(255, 255, 255, 0.25);
  }

  .timeline li {
    padding-left: 80px;
    text-align: left;
  }

  .timeline__dot {
    position: absolute;
    left: 0;
    top: 0;
  }

  .timeline p:last-child {
    margin-inline: 0;
  }

  .contact__photo {
    order: -1;
    max-height: 260px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .wrap {
    width: calc(100% - 36px);
  }

  .topbar {
    display: none;
  }

  .header__inner {
    gap: 12px;
    min-height: 68px;
  }

  .header__logo img {
    width: 150px;
  }

  .header__city {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .difference__list,
  .facts {
    grid-template-columns: 1fr;
  }

  .fact + .fact {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .tabs__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -18px;
    padding: 0 18px 6px;
    scrollbar-width: none;
  }

  .tabs__list button {
    flex: none;
  }

  .tabs__panel {
    padding: 28px 24px;
  }

  .estimate__card {
    padding: 24px;
  }

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

  .quads__centre {
    display: none;
  }

  .quad {
    min-height: 0;
  }

  .quad--nw {
    border-radius: var(--radius) var(--radius) 6px 6px;
  }

  .quad--ne,
  .quad--sw {
    border-radius: 6px;
  }

  .quad--se {
    border-radius: 6px 6px var(--radius) var(--radius);
  }

  .reviews__track {
    padding: 40px 24px 28px;
  }

  .news img {
    width: 88px;
    height: 64px;
  }

  .news strong {
    font-size: 15px;
  }

  .faq details p {
    padding-right: 0;
  }

  .contact__main {
    padding: 32px 24px;
  }

  .contact__actions .btn {
    width: 100%;
  }

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

  .footer__grid > div:first-child {
    grid-column: 1 / -1;
  }
}

a[href^='tel:'] {
  white-space: nowrap;
}
