:root {
  --navy: #12315f;
  --blue: #0b6cab;
  --blue-dark: #084f7d;
  --sky: #e8f4fb;
  --ink: #162033;
  --muted: #5d6c7b;
  --line: #e4edf4;
  --paper: #f4f8fb;
  --white: #fff;
  --gold: #e0a11a;
  --shadow: 0 16px 40px rgba(18, 49, 95, 0.08);
  --radius: 22px;
  --header: 84px;
  --font: "Heebo", "Segoe UI", Arial, sans-serif;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip {
  position: absolute;
  right: 12px;
  top: -40px;
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

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

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

h1 {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.25;
  margin-bottom: 10px;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38rem;
}

.section {
  padding: 92px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 108, 171, 0.25);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-ghost {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}

.btn-whatsapp {
  background: #1faa59;
  color: #fff;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(18, 49, 95, 0.05);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 58px;
  width: auto;
}

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

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
  color: var(--navy);
}

.nav a:hover,
.nav a.is-active {
  background: var(--sky);
  color: var(--blue);
}

.header-call {
  white-space: nowrap;
}

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

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

.hero {
  padding: 28px 0 72px;
  background:
    radial-gradient(820px 380px at 100% 0%, #d9eef9 0%, transparent 62%),
    linear-gradient(#fff, var(--paper));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 32px;
}

.hero-points {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-points strong {
  display: block;
  font-size: 1.45rem;
  color: var(--navy);
  line-height: 1.1;
}

.hero-points span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-photo {
  position: relative;
  height: 620px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.hero-badge strong {
  display: block;
  font-size: 1.4rem;
  color: var(--blue);
  line-height: 1;
}

.hero-badge span {
  color: var(--muted);
  font-size: 0.9rem;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-photo {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 460px;
  box-shadow: var(--shadow);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.years {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: var(--navy);
  color: #fff;
  border-radius: 18px;
  padding: 16px 18px;
  min-width: 132px;
}

.years strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.years span {
  font-size: 0.92rem;
  opacity: 0.85;
}

.about {
  background: var(--paper);
}

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

.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(18, 49, 95, 0.02);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-media {
  height: 190px;
  background: var(--sky);
}

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

.service div {
  padding: 18px 18px 20px;
}

.service h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.service p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.works {
  background: var(--paper);
}

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

.gallery button {
  padding: 0;
  border: 0;
  background: #dbe7f0;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1;
}

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

.gallery button:hover img {
  transform: scale(1.04);
}

.cta {
  position: relative;
  color: #fff;
  min-height: 380px;
  display: grid;
  place-items: center;
  text-align: center;
  background: #12315f center / cover no-repeat;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 28, 56, 0.55), rgba(10, 28, 56, 0.72));
}

.cta .container {
  position: relative;
  z-index: 1;
  padding: 72px 0;
}

.cta h2 {
  max-width: 16ch;
  margin-inline: auto;
}

.cta p {
  color: rgba(255, 255, 255, 0.86);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: -48px;
  position: relative;
  z-index: 2;
}

.stat {
  background: #fff;
  border-radius: 20px;
  padding: 22px 12px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-size: 2.2rem;
  color: var(--blue);
  line-height: 1.1;
}

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

.reviews-wrap {
  position: relative;
}

.rev-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.rev-track::-webkit-scrollbar {
  display: none;
}

.review {
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 1px 0 rgba(18, 49, 95, 0.03);
}

.review header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review img,
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.avatar {
  display: grid;
  place-items: center;
  background: var(--sky);
  color: var(--blue);
  font-weight: 800;
}

.review h3 {
  margin: 0;
  font-size: 1rem;
}

.stars {
  color: var(--gold);
  letter-spacing: 1px;
  font-size: 0.9rem;
}

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

.rev-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 14px;
}

.rev-nav button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-size: 1.2rem;
}

.rev-nav button:hover {
  background: var(--sky);
}

.midrag {
  margin-top: 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px 20px;
}

.midrag img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.midrag h3 {
  margin-bottom: 4px;
}

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

.midrag-link {
  background: #cd4778;
  color: #fff;
}

.video-block {
  background: var(--paper);
}

.video-frame {
  display: block;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  border: 0;
  border-radius: 24px;
  background: #0d2138;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.contact {
  background: #fff;
}

.contact-card,
.form {
  background: var(--paper);
  border-radius: 28px;
  padding: 28px;
}

.contact-card h2 {
  margin-bottom: 8px;
}

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

.contact-list a,
.contact-list li {
  display: block;
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
}

.contact-list small {
  display: block;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
}

.form input,
.form textarea {
  width: 100%;
  border: 1px solid #d5e1ea;
  background: #fbfdfe;
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--ink);
}

.form input:focus,
.form textarea:focus {
  outline: 2px solid #b9ddf3;
  border-color: var(--blue);
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 500 !important;
}

.check input {
  width: 18px;
  height: 18px;
}

.form-message {
  min-height: 1.2em;
  font-weight: 700;
}

.form-message.ok {
  color: #0d7a3f;
}

.form-message.bad {
  color: #b42318;
}

.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 22px 16px 28px;
  font-size: 0.92rem;
}

.whatsapp-float {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 35;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #1faa59;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(31, 170, 89, 0.35);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.dock {
  display: none;
}

dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(960px, calc(100vw - 32px));
  width: 100%;
}

dialog::backdrop {
  background: rgba(8, 18, 32, 0.82);
}

dialog img {
  width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 16px;
  margin: 0 auto;
}

.lightbox-close {
  position: absolute;
  top: 8px;
  left: 8px;
  border: 0;
  background: #fff;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 700;
}

:focus-visible {
  outline: 3px solid #8ec9ea;
  outline-offset: 2px;
}

@media (max-width: 900px) {
  :root {
    --header: 68px;
  }

  body {
    padding-bottom: 86px;
  }

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

  .section {
    padding: 56px 0;
  }

  .menu-btn {
    display: flex;
  }

  .header-call {
    display: none;
  }

  .logo img {
    height: 46px;
  }

  .nav {
    position: fixed;
    inset: var(--header) 0 86px 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    gap: 6px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav a {
    font-size: 1.15rem;
    padding: 14px 16px;
    background: var(--paper);
  }

  .hero {
    padding-top: 12px;
  }

  .hero-grid,
  .about-grid,
  .contact-grid,
  .services-grid,
  .gallery,
  .stats,
  .midrag {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    height: 320px;
    border-radius: 22px;
    order: -1;
  }

  .hero-actions,
  .hero-points {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-points {
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
  }

  .hero-points li {
    flex: 1;
  }

  .about-photo {
    min-height: 280px;
  }

  .service {
    display: grid;
    grid-template-columns: 108px 1fr;
    align-items: center;
  }

  .service:hover {
    transform: none;
  }

  .service-media {
    height: 108px;
  }

  .service div {
    padding: 12px 12px 12px 0;
  }

  .service p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

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

  .gallery button {
    border-radius: 14px;
  }

  .cta {
    min-height: 0;
    text-align: center;
  }

  .cta .container {
    padding: 64px 0;
  }

  .stats {
    margin-top: 18px;
    gap: 10px;
  }

  .stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    text-align: right;
    padding: 14px 16px;
  }

  .stat strong {
    font-size: 1.6rem;
  }

  .rev-track {
    grid-auto-columns: 100%;
  }

  .midrag {
    justify-items: center;
    text-align: center;
  }

  .contact-card,
  .form {
    padding: 18px;
    border-radius: 20px;
  }

  .form {
    order: -1;
  }

  .whatsapp-float {
    display: none;
  }

  .dock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }

  .dock .btn {
    width: 100%;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .services-grid,
  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .rev-track {
    grid-auto-columns: calc((100% - 16px) / 2);
  }

  .hero-photo {
    height: 520px;
  }
}

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

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