:root {
  --red: #d71920;
  --red-dark: #aa1118;
  --ink: #20252b;
  --muted: #66707c;
  --line: #e5e8ec;
  --soft: #f6f7f9;
  --white: #ffffff;
  --shadow: 0 18px 55px rgba(32, 37, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

img,
svg {
  display: block;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 232, 236, 0.78);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 34px rgba(32, 37, 43, 0.08);
}

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

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border-radius: 8px;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(215, 25, 32, 0.24);
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

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

.main-nav a {
  padding: 10px 13px;
  border-radius: 7px;
  color: #3d444d;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--red);
  background: #fff1f2;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(48px, 8vw, 92px) clamp(18px, 5vw, 72px) 54px;
  background:
    linear-gradient(110deg, rgba(246, 247, 249, 0.95) 0%, rgba(255, 255, 255, 0.96) 56%, rgba(255, 241, 242, 0.72) 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}

.hero-copy {
  max-width: 720px;
  margin: 22px 0 0;
  color: #4d5662;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

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

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

.button.primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 14px 26px rgba(215, 25, 32, 0.25);
}

.button.primary:hover {
  background: var(--red-dark);
}

.button.secondary {
  color: var(--red);
  background: var(--white);
  border-color: #f0bdc0;
}

.button.light {
  color: var(--red);
  background: var(--white);
  white-space: nowrap;
}

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

.hero-stats div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-stats dt {
  color: var(--red);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.hero-stats dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 480px;
}

.hero-visual img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-badge {
  position: absolute;
  right: 22px;
  bottom: 22px;
  max-width: 280px;
  padding: 18px;
  color: var(--white);
  background: rgba(32, 37, 43, 0.88);
  border-left: 5px solid var(--red);
  border-radius: 8px;
  box-shadow: 0 16px 30px rgba(32, 37, 43, 0.2);
}

.hero-badge strong,
.hero-badge span {
  display: block;
}

.hero-badge span {
  margin-top: 6px;
  color: #dce2e8;
  font-size: 14px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.trust-strip span {
  min-height: 78px;
  display: grid;
  place-items: center;
  padding: 16px;
  color: #4a525c;
  font-weight: 800;
  text-align: center;
  border-right: 1px solid var(--line);
}

.trust-strip span:last-child {
  border-right: 0;
}

.seo-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  padding: clamp(42px, 6vw, 68px) clamp(18px, 5vw, 72px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.seo-intro h2 {
  font-size: clamp(26px, 2.8vw, 38px);
}

.seo-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.section {
  padding: clamp(60px, 8vw, 102px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.section-heading.compact {
  max-width: 780px;
}

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

.service-card {
  min-height: 260px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(32, 37, 43, 0.06);
}

.service-card:hover {
  border-color: #f0bdc0;
  box-shadow: 0 18px 42px rgba(32, 37, 43, 0.1);
}

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

.icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 22px;
  color: var(--red);
  background: #fff1f2;
  border-radius: 8px;
}

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

.applications {
  padding: clamp(60px, 8vw, 102px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.application-row {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1fr);
  gap: clamp(22px, 4vw, 58px);
  align-items: center;
  padding: 26px;
  margin-top: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(32, 37, 43, 0.07);
}

.application-row.reverse {
  grid-template-columns: minmax(360px, 1fr) minmax(0, 0.88fr);
}

.application-row.reverse .application-copy {
  order: 2;
}

.application-row.reverse img {
  order: 1;
}

.application-copy {
  padding: clamp(4px, 2vw, 18px);
}

.application-copy span {
  display: block;
  margin-bottom: 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.application-copy h3 {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.12;
}

.application-copy p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.application-row img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(32, 37, 43, 0.1);
}

.project-gallery {
  padding: clamp(60px, 8vw, 102px) clamp(18px, 5vw, 72px);
  background: var(--white);
  border-top: 1px solid var(--line);
}

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

.gallery-item {
  position: relative;
  min-height: 230px;
  margin: 0;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(32, 37, 43, 0.07);
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 220ms ease;
}

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

.gallery-item figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 11px 12px;
  color: var(--white);
  background: rgba(32, 37, 43, 0.88);
  border-left: 4px solid var(--red);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 800;
}

.experience {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.75fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  padding: clamp(60px, 8vw, 102px) clamp(18px, 5vw, 72px);
  background: var(--soft);
}

.experience-text p:not(.eyebrow) {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.experience-list {
  display: grid;
  gap: 14px;
}

.experience-list div {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.experience-list strong,
.experience-list span {
  display: block;
}

.experience-list span {
  margin-top: 8px;
  color: var(--muted);
}

.process {
  background: var(--white);
}

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

.process-steps article {
  padding: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.process-steps span {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
}

.process-steps p {
  margin: 12px 0 0;
  color: var(--muted);
}

.seo-services,
.faq-section {
  padding: clamp(60px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.seo-services {
  background: var(--soft);
}

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

.keyword-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

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

.keyword-grid article,
.faq-grid article {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(32, 37, 43, 0.06);
}

.faq-grid article {
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
}

.keyword-grid p,
.faq-grid p {
  margin: 12px 0 0;
  color: var(--muted);
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(42px, 6vw, 68px) clamp(18px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(174, 19, 27, 0.96), rgba(215, 25, 32, 0.9)),
    url("assets/hero-panel.png") center/cover;
}

.cta-band .eyebrow {
  color: #ffe7e8;
}

.cta-band h2 {
  max-width: 820px;
  font-size: clamp(26px, 3vw, 40px);
}

.contact {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr);
  min-height: 560px;
  background: var(--soft);
}

.contact-panel {
  padding: clamp(42px, 6vw, 72px);
  background: var(--white);
}

.contact-panel p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.contact-list a {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.contact-list a:hover,
.contact-list a:focus-visible {
  border-color: #f0bdc0;
  box-shadow: 0 12px 28px rgba(32, 37, 43, 0.08);
}

.contact-list span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-list strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
}

.contact-list em,
.contact-list small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
}

.contact-list small {
  font-size: 13px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  filter: grayscale(0.25);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: #616a75;
  background: #f1f3f5;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

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

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(215, 25, 32, 0.26);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover,
.scroll-top:focus-visible {
  background: var(--red-dark);
}

.scroll-top svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

@media (max-width: 980px) {
  .hero,
  .seo-intro,
  .experience,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-visual img {
    height: 440px;
  }

  .service-grid,
  .process-steps,
  .keyword-grid,
  .faq-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-item.wide {
    grid-column: span 2;
  }

  .application-row,
  .application-row.reverse {
    grid-template-columns: 1fr;
  }

  .application-row.reverse .application-copy,
  .application-row.reverse img {
    order: initial;
  }

  .application-row img {
    aspect-ratio: 16 / 9;
  }

  .trust-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 68px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

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

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

  .main-nav a {
    padding: 13px;
  }

  h1 {
    font-size: clamp(34px, 12vw, 46px);
  }

  .hero-stats,
  .service-grid,
  .process-steps,
  .keyword-grid,
  .faq-grid,
  .gallery-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .gallery-item.wide {
    grid-column: auto;
  }

  .application-row {
    padding: 16px;
  }

  .hero-visual img {
    height: 330px;
  }

  .hero-badge {
    position: static;
    max-width: none;
    margin-top: 12px;
  }

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

  .cta-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .scroll-top {
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
