:root {
  --ink: #10202f;
  --muted: #5d6a76;
  --line: #dce5eb;
  --paper: #f7fafb;
  --white: #ffffff;
  --navy: #102c42;
  --teal: #0aa6b7;
  --green: #5f9c61;
  --gold: #d9a441;
  --coral: #d96a50;
  --shadow: 0 20px 60px rgba(16, 32, 47, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

body.is-loaded .hero-content {
  animation: hero-rise 4000ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

body.is-loaded .hero-bg {
  animation: hero-drift 20s ease-in-out infinite alternate;
}

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

img,
svg {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 250, 251, 0.92);
  border-bottom: 1px solid rgba(220, 229, 235, 0.8);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--teal));
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.02rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #334657;
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--teal);
}

.nav-toggle {
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100svh - 74px);
  overflow: hidden;
  display: grid;
  align-items: center;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: url("assets/clovetik-hero.png");
  background-size: cover;
  background-position: center right;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(247, 250, 251, 0.98) 0%, rgba(247, 250, 251, 0.9) 34%, rgba(247, 250, 251, 0.35) 64%, rgba(16, 44, 66, 0.12) 100%),
    linear-gradient(0deg, rgba(247, 250, 251, 0.96) 0%, rgba(247, 250, 251, 0) 30%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0 104px;
}

.eyebrow,
.section-kicker,
.tag {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  color: #334657;
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

.hero-actions,
.section-heading,
.cta-band,
.footer {
  display: flex;
  align-items: center;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 1000ms ease, box-shadow 1000ms ease, background 180ms ease, border-color 180ms ease;
}

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

.btn-primary {
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 14px 28px rgba(16, 44, 66, 0.2);
}

.btn-secondary {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(16, 44, 66, 0.16);
}

.btn-light {
  color: var(--navy);
  background: var(--white);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px;
  gap: 14px;
  margin: 54px 0 0;
}

.hero-stats div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(220, 229, 235, 0.9);
  border-radius: 8px;
  transition: transform 2000ms ease, box-shadow 2000ms ease;
}

.hero-stats div:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(16, 32, 47, 0.12);
}

.hero-stats dt {
  color: var(--navy);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 4000ms ease, transform 720ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.8fr);
  gap: 56px;
  align-items: start;
}

.intro h2,
.section-heading h2,
.cta-band h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.intro p,
.section-heading p,
.work-body p,
.contact-copy p,
.process-list p,
.service-card p {
  color: var(--muted);
}

.section-heading {
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 34px;
}

.section-heading p {
  max-width: 380px;
  margin-bottom: 0;
}

.service-grid,
.work-grid,
.process-list {
  display: grid;
  gap: 18px;
}

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

.service-card,
.work-card,
.process-list article,
.contact-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(16, 32, 47, 0.06);
}

.service-card {
  min-height: 284px;
  padding: 26px;
  transition: transform 2000ms ease, box-shadow 2000ms ease, border-color 220ms ease;
}

.service-card:hover,
.work-card:hover,
.process-list article:hover {
  transform: translateY(-6px);
  border-color: rgba(10, 166, 183, 0.38);
  box-shadow: 0 22px 52px rgba(16, 32, 47, 0.12);
}

.icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  color: var(--teal);
  background: #e8f7f8;
  border-radius: 8px;
  transition: transform 2000ms ease, background 2000ms ease, color 220ms ease;
}

.service-card:hover .icon {
  color: var(--white);
  background: var(--teal);
  transform: rotate(-3deg) scale(1.06);
}

.icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.service-card h3,
.work-body h3,
.process-list h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.work {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100% - 1120px) / 2));
  background: #eef4f5;
}

.results-band {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: 34px;
  align-items: center;
  padding: 54px 0 88px;
}

.results-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
}

.results-copy p {
  max-width: 540px;
  margin-bottom: 0;
  color: var(--muted);
}

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

.results-grid article {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 24px;
  color: var(--white);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0)),
    var(--navy);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 18px 40px rgba(16, 32, 47, 0.14);
}

.results-grid article:nth-child(2) {
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    #0b7782;
}

.results-grid article:nth-child(3) {
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    #5f7f63;
}

.results-grid article::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -46px;
  top: -40px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
}

.results-grid strong {
  position: relative;
  z-index: 1;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.9;
}

.results-grid span {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

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

.work-card {
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.work-preview {
  min-height: 210px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 18px;
  color: rgba(255, 255, 255, 0.95);
  background: var(--navy);
  position: relative;
}

.work-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(16, 32, 47, 0), rgba(16, 32, 47, 0.22)),
    linear-gradient(135deg, rgba(10, 166, 183, 0.18), rgba(217, 164, 65, 0.08));
}

.work-preview img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 520ms ease;
}

.preview-two {
  background: #0b7782;
}

.preview-three {
  background: #5f9c61;
}

.work-preview span {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: rgba(16, 32, 47, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-weight: 800;
}

.work-card:hover .work-preview img {
  transform: scale(1.06);
}

.work-body {
  padding: 24px;
}

.tag {
  color: var(--coral);
  font-size: 0.72rem;
}

.process-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: process;
}

.process-list article {
  padding: 24px;
  transition: transform 2000ms ease, box-shadow 2000ms ease, border-color 2000ms ease;
}

.process-list span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: var(--white);
  background: var(--green);
  border-radius: 8px;
  font-weight: 800;
}

.cta-band {
  width: min(1120px, calc(100% - 32px));
  margin: 22px auto 0;
  justify-content: space-between;
  gap: 28px;
  padding: 42px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(10, 166, 183, 0.22), transparent 36%),
    var(--navy);
  border-radius: 8px;
}

.cta-band .section-kicker {
  color: #8fe3e9;
}

.cta-band h2 {
  max-width: 780px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 44px;
  padding: 38px;
}

.contact-details {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  color: var(--navy);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: #304457;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfdfd;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(10, 166, 183, 0.18);
  border-color: var(--teal);
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.06) translate3d(-14px, -8px, 0);
  }
}

.footer {
  width: min(1120px, calc(100% - 32px));
  min-height: 84px;
  margin: 0 auto;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer p {
  margin-bottom: 0;
}

.footer a {
  color: var(--navy);
  font-weight: 800;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-grid;
  }

  .nav-links {
    position: absolute;
    top: 74px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    padding: 13px 12px;
  }

  .hero {
    min-height: auto;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(247, 250, 251, 0.98) 0%, rgba(247, 250, 251, 0.88) 54%, rgba(247, 250, 251, 0.96) 100%),
      rgba(16, 44, 66, 0.08);
  }

  .hero-bg {
    background-position: 65% center;
  }

  .hero-content {
    padding: 72px 0 86px;
  }

  .intro-grid,
  .contact-panel,
  .results-band {
    grid-template-columns: 1fr;
  }

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

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

  .section-heading,
  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .brand small {
    display: none;
  }

  .hero-content,
  .section,
  .cta-band,
  .footer {
    width: min(100% - 24px, 1120px);
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .hero-stats,
  .service-grid,
  .process-list,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats div,
  .service-card,
  .process-list article {
    min-height: auto;
  }

  .section {
    padding: 64px 0;
  }

  .results-band {
    width: min(100% - 24px, 1120px);
    padding: 54px 0 64px;
  }

  .work {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .cta-band,
  .contact-panel {
    padding: 24px;
  }

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

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

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