:root {
  --navy: #09143e;
  --navy-soft: #172452;
  --orange: #ff4b16;
  --orange-dark: #dd3e12;
  --text: #384052;
  --muted: #6f7788;
  --line: #e8eaf0;
  --paper: #ffffff;
  --paper-soft: #fbf8f6;
  --outer: #d4d8de;
  --shadow: 0 24px 70px rgba(9, 20, 62, 0.12);
  --radius: 26px;
  --shell: min(100% - 88px, 920px);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--outer);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: geometricPrecision;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

.page-shell {
  width: min(100% - 96px, 1100px);
  margin: 68px auto;
  overflow: hidden;
  border-radius: 0;
  background:
    radial-gradient(circle at 5% 80px, rgba(255, 75, 22, 0.85) 0 3px, transparent 4px),
    radial-gradient(circle at 96% 66px, rgba(255, 75, 22, 0.85) 0 3px, transparent 4px),
    var(--paper);
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  width: var(--shell);
  min-height: 86px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  border-bottom: 1px solid rgba(232, 234, 240, 0.85);
}

.brand,
.header-phone,
.site-nav a,
.button,
.service-card > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand {
  justify-self: start;
  gap: 9px;
  color: var(--orange);
  font-size: 0.98rem;
  font-weight: 850;
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(255, 75, 22, 0.24);
}

.site-nav {
  display: inline-flex;
  gap: 8px;
  justify-self: center;
}

.site-nav a {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #697184;
  font-size: 0.75rem;
  font-weight: 720;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  border-color: rgba(255, 75, 22, 0.38);
  background: #fff8f5;
  color: var(--navy);
}

.header-phone {
  justify-self: end;
  gap: 7px;
  min-height: 42px;
  padding: 0 14px;
  border: 3px solid #ffe1d5;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(255, 75, 22, 0.22);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  box-shadow: 0 14px 28px rgba(255, 75, 22, 0.24);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  width: var(--shell);
  margin: 0 auto;
  padding: 74px 0 62px;
  overflow: clip;
}

.hero::before,
.hero::after {
  position: absolute;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(9, 20, 62, 0.06);
  border-radius: 50%;
}

.hero::before {
  inset: 72px auto auto -130px;
  width: 340px;
  height: 160px;
  transform: rotate(-9deg);
}

.hero::after {
  inset: 78px -150px auto auto;
  width: 340px;
  height: 170px;
  transform: rotate(8deg);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(270px, 0.95fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
}

.hero-kicker,
.section-label {
  margin-bottom: 14px;
  color: var(--orange);
  font-size: 0.74rem;
  font-weight: 880;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 11.5ch;
  margin-bottom: 0;
  color: var(--navy);
  font-size: clamp(3.15rem, 6vw, 5.15rem);
  line-height: 0.99;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 13px;
  color: var(--navy);
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  color: var(--navy);
  font-size: 1.18rem;
  line-height: 1.18;
}

.hero-copy {
  padding-top: 20px;
}

.hero-copy p {
  max-width: 54ch;
  margin-bottom: 26px;
  color: #586174;
  font-size: 1rem;
  line-height: 1.75;
}

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

.button {
  min-height: 48px;
  gap: 12px;
  padding: 0 18px 0 20px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 860;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible,
.service-card > a:hover,
.service-card > a:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 16px 28px rgba(255, 75, 22, 0.22);
}

.button-primary span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
}

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

.button-secondary:hover {
  border-color: rgba(255, 75, 22, 0.35);
}

.hero-media {
  position: relative;
  z-index: 1;
  margin-top: 42px;
  overflow: hidden;
  border-radius: 21px;
  background: #f2f4f8;
  box-shadow: 0 18px 45px rgba(9, 20, 62, 0.16);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 730 / 345;
  object-fit: cover;
}

.numbers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 70px auto 0;
  text-align: center;
}

.numbers article {
  min-width: 0;
  padding: 0 22px;
}

.numbers article + article {
  border-left: 1px solid rgba(255, 75, 22, 0.42);
}

.numbers strong {
  display: block;
  color: var(--orange);
  font-size: clamp(1.95rem, 4vw, 3.1rem);
  line-height: 1;
  letter-spacing: 0;
}

.numbers span {
  display: block;
  margin-top: 8px;
  color: #818899;
  font-size: 0.78rem;
}

.section {
  width: var(--shell);
  margin: 0 auto;
  padding: 78px 0;
}

.section-heading {
  max-width: 560px;
  margin-bottom: 42px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading p,
.workflow-copy > p,
.contact > div > p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.service-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.service-card {
  position: relative;
  display: flex;
  min-height: 330px;
  flex-direction: column;
  align-items: center;
  padding: 26px 25px 28px;
  border: 1px solid #f0e9e5;
  border-radius: 17px;
  background: var(--paper-soft);
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card.is-featured {
  transform: translateY(-12px);
}

.service-card:hover {
  box-shadow: 0 18px 44px rgba(9, 20, 62, 0.1);
}

.service-visual {
  position: relative;
  display: grid;
  width: min(100%, 210px);
  aspect-ratio: 1 / 0.82;
  place-items: center;
  margin-bottom: 24px;
}

.service-visual::before {
  position: absolute;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.service-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 13px;
  box-shadow: 0 13px 24px rgba(9, 20, 62, 0.1);
}

.service-card p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.58;
}

.service-card > a {
  width: 38px;
  height: 38px;
  margin-top: auto;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(255, 75, 22, 0.22);
}

.workflow {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 78px);
  align-items: center;
  background: linear-gradient(90deg, rgba(251, 248, 246, 0) 0%, rgba(251, 248, 246, 0) 46%, #fbf8f6 46%, #fbf8f6 100%);
}

.workflow-photo {
  overflow: hidden;
  border-radius: 21px;
  background: #f3f4f7;
  box-shadow: 0 16px 38px rgba(9, 20, 62, 0.12);
}

.workflow-photo img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
}

.workflow-copy > p {
  max-width: 56ch;
  margin-bottom: 28px;
}

.workflow-list {
  display: grid;
  gap: 15px;
}

.workflow-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.workflow-list span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #fff2eb;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 900;
}

.workflow-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.gallery {
  padding-top: 38px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.gallery-grid figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.gallery-large {
  grid-row: span 2;
}

.gallery-large img {
  height: 100%;
  min-height: 538px;
  object-fit: cover;
  padding: 0;
  background: #f6f7fa;
}

figcaption {
  padding: 15px 18px 17px;
  color: var(--muted);
  font-size: 0.86rem;
}

.reviews {
  padding-top: 40px;
}

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

blockquote {
  min-height: 210px;
  margin-bottom: 0;
  padding: 24px;
  border: 1px solid #f0e9e5;
  border-radius: 18px;
  background: var(--paper-soft);
}

blockquote::before {
  display: block;
  margin-bottom: 22px;
  color: var(--orange);
  content: "“";
  font-size: 4rem;
  font-weight: 900;
  line-height: 0.62;
}

blockquote p {
  margin-bottom: 24px;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.58;
}

cite {
  color: var(--muted);
  font-style: normal;
  font-weight: 780;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.78fr);
  gap: 38px;
  align-items: center;
  margin-bottom: 18px;
  padding: 62px 52px;
  border-radius: 24px;
  background: var(--navy);
  color: #fff;
}

.contact h2,
.contact .section-label {
  color: #fff;
}

.contact > div > p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-card {
  display: grid;
  gap: 13px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-card .button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

address {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
  line-height: 1.72;
  font-size: 0.92rem;
}

.site-footer {
  width: var(--shell);
  margin: 0 auto;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 38px;
  color: #737b8c;
  font-size: 0.84rem;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer nav {
  display: inline-flex;
  gap: 18px;
  font-weight: 760;
}

.site-footer a:hover {
  color: var(--navy);
}

@media (max-width: 1020px) {
  :root {
    --shell: min(100% - 52px, 920px);
  }

  .page-shell {
    width: min(100% - 36px, 1100px);
    margin: 28px auto;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav {
    position: fixed;
    top: 78px;
    left: 50%;
    width: min(calc(100% - 52px), 420px);
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(9, 20, 62, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  .site-nav a {
    min-height: 42px;
    justify-content: flex-start;
    padding: 0 16px;
  }

  .header-phone {
    display: none;
  }

  .hero-grid,
  .workflow,
  .contact,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 0;
  }

  h1 {
    max-width: 12ch;
  }

  .service-row,
  .review-row {
    grid-template-columns: 1fr;
  }

  .service-card.is-featured {
    transform: none;
  }

  .workflow {
    background: #fff;
  }

  .workflow-photo img,
  .gallery-large img {
    min-height: 0;
  }

  .gallery-large {
    grid-row: auto;
  }

  .contact {
    padding: 42px 32px;
  }
}

@media (max-width: 680px) {
  :root {
    --shell: min(100% - 32px, 920px);
  }

  body {
    background: #fff;
  }

  .page-shell {
    width: 100%;
    margin: 0;
    box-shadow: none;
  }

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

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }

  .menu-toggle span {
    margin: 0;
  }

  .brand {
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 52px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 10.8vw, 2.95rem);
    line-height: 1.04;
    text-wrap: balance;
  }

  h2 {
    font-size: clamp(1.85rem, 10vw, 2.45rem);
  }

  .hero-actions,
  .contact-card {
    align-items: stretch;
    width: 100%;
  }

  .button {
    width: 100%;
    max-width: 100%;
  }

  .hero-media {
    margin-top: 34px;
  }

  .hero-media img {
    aspect-ratio: 1.14 / 1;
  }

  .numbers {
    grid-template-columns: 1fr 1fr;
    gap: 22px 0;
    margin-top: 44px;
  }

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

  .numbers article {
    padding: 0 14px;
  }

  .numbers strong {
    font-size: clamp(1.65rem, 8.6vw, 2rem);
  }

  .numbers span {
    font-size: 0.73rem;
  }

  .section {
    padding: 58px 0;
  }

  .service-card {
    min-height: 0;
  }

  .workflow-photo img,
  .gallery-grid img {
    height: 240px;
  }

  .gallery-large img {
    height: auto;
    min-height: 0;
    padding: 20px;
  }

  .contact {
    width: calc(100% - 32px);
    padding: 34px 22px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 30px;
  }
}

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