:root {
  color-scheme: light;
  --ink: #111318;
  --muted: #5c6573;
  --paper: #f2f6fb;
  --surface: #ffffff;
  --line: #dde1e6;
  --blue: #135dff;
  --blue-dark: #0c2b6c;
  --amber: #ffb21a;
  --green: #1c8a62;
  --danger: #b42318;
  --shadow: 0 20px 60px rgba(17, 19, 24, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  content: none;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 24, 55, 0.9);
  color: #fff;
  backdrop-filter: blur(18px);
}

.topbar,
.nav,
.section-inner,
.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

.topbar a {
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-weight: 900;
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-name {
  font-weight: 800;
}

.brand-sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.84rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 0.75rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.94rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: transparent;
  color: #fff;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1.05rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--amber);
  color: #171103;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-ghost {
  border-color: currentColor;
  background: transparent;
}

.hero {
  min-height: 80svh;
  display: grid;
  align-items: end;
  position: relative;
  overflow: clip;
  color: #fff;
  background: var(--blue-dark);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 22, 51, 0.96) 0%, rgba(6, 22, 51, 0.84) 42%, rgba(6, 22, 51, 0.28) 76%, rgba(6, 22, 51, 0.12) 100%),
    url("../../images/IMG_20171124_111306.jpg") 78% 48% / auto 104% no-repeat;
}

.hero::after {
  content: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
  padding: 8rem 0 5.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--amber);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: currentColor;
}

.hero h1 {
  max-width: 860px;
  margin: 1rem 0;
  font-size: clamp(2.8rem, 7vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.12rem, 2vw, 1.45rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(var(--max), calc(100% - 32px));
  margin: -38px auto 0;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow);
}

.fact {
  display: grid;
  gap: 0.25rem;
  min-height: 112px;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.fact strong {
  font-size: 1.05rem;
}

.fact span {
  color: var(--muted);
  font-size: 0.93rem;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section.alt {
  background: #e8f0fa;
}

.section.dark {
  background: var(--ink);
  color: #fff;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.5fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-title {
  margin: 0.35rem 0 0;
  max-width: 760px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-copy {
  margin: 0;
  color: var(--muted);
}

.dark .section-copy {
  color: rgba(255, 255, 255, 0.72);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.intro-text {
  display: grid;
  gap: 1rem;
  font-size: 1.05rem;
}

.check-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.75rem;
  align-items: start;
}

.check-list span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.media-stack {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 1rem;
  align-items: end;
}

.media-stack img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
}

.media-stack img:last-child {
  aspect-ratio: 1 / 1;
}

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

.service-card,
.review-card,
.contact-panel,
.calculator-panel,
.price-group,
.gallery-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.service-card {
  display: grid;
  gap: 1rem;
  min-height: 230px;
  padding: 1.4rem;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.service-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: #e7f0ff;
  color: var(--blue);
  font-size: 1.35rem;
  transition: transform 220ms ease, background-color 220ms ease, color 220ms ease;
}

.service-card h3,
.price-group h3,
.contact-panel h3 {
  margin: 0;
  font-size: 1.2rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

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

.calculator-panel {
  padding: 1rem;
}

.price-list {
  display: grid;
  gap: 1rem;
}

.price-group {
  padding: 1rem;
}

.price-group h3 {
  margin-bottom: 0.75rem;
}

.price-row {
  display: grid;
  grid-template-columns: 1fr 88px;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.price-row:first-of-type {
  border-top: 0;
}

.price-row-text {
  display: grid;
  gap: 0.12rem;
}

.price-row small {
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfd6df;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 0.75rem;
}

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

.total-box {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 1rem;
}

.total-value {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  font-weight: 900;
}

.price-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.gallery-item {
  overflow: hidden;
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery-item span {
  display: block;
  padding: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.review-card {
  padding: 1.25rem;
}

.stars {
  color: #f5a400;
  font-size: 1.1rem;
}

.review-card blockquote {
  margin: 0.75rem 0;
  color: rgba(255, 255, 255, 0.82);
}

.review-card cite {
  color: rgba(255, 255, 255, 0.58);
  font-style: normal;
}

.dark .review-card {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.55fr);
  gap: 1rem;
}

.contact-panel {
  padding: 1.25rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.form-message {
  padding: 0.8rem 1rem;
  border-radius: 8px;
}

.form-message.success {
  background: #e9f8f0;
  color: #0f6b48;
}

.form-message.error {
  background: #fff0ed;
  color: var(--danger);
}

.contact-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.contact-line {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.contact-line small {
  color: var(--muted);
}

.map {
  width: 100%;
  min-height: 300px;
  margin-top: 1rem;
  border: 0;
  border-radius: 8px;
}

.site-footer {
  background: #0b0d11;
  color: #fff;
  padding: 3rem 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: end;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
}

.lightbox {
  width: min(980px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #0b0d11;
  color: #fff;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.lightbox img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
}

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

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

@media (hover: hover) and (pointer: fine) {
  .service-card:hover,
  .gallery-item:hover {
    transform: translateY(-5px);
    border-color: rgba(19, 93, 255, 0.32);
    box-shadow: 0 18px 42px rgba(12, 43, 108, 0.13);
  }

  .service-card:hover .service-icon {
    transform: translateY(-2px) rotate(-3deg) scale(1.07);
    background: var(--blue);
    color: #fff;
  }

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

@media (max-width: 960px) {
  .menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    inset: 100% 16px auto;
    display: none;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #071837;
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    width: 100%;
  }

  .section-head,
  .intro-grid,
  .calculator-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

  .total-box {
    position: static;
  }
}

@media (max-width: 680px) {
  .topbar {
    display: none;
  }

  .hero {
    min-height: 82svh;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(6, 22, 51, 0.91), rgba(6, 22, 51, 0.5)),
      url("../../images/IMG_20171124_111306.jpg") center 44% / cover no-repeat;
  }

  .hero-inner {
    padding: 6rem 0 4.5rem;
  }

  .hero-facts,
  .services-grid,
  .reviews-grid,
  .gallery-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .media-stack {
    grid-template-columns: 1fr;
  }

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

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

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

  .service-card,
  .service-icon,
  .gallery-item,
  .gallery-item img {
    transition: none;
  }
}
