:root {
  --bg: #f3f6fb;
  --bg-2: #eef3fa;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-dark: #0f1f35;
  --text: #10243e;
  --muted: #5f7189;
  --line: rgba(16, 36, 62, 0.1);
  --line-strong: rgba(16, 36, 62, 0.16);
  --primary: #dc1631;
  --primary-2: #ff4a63;
  --accent: #133a67;
  --shadow-lg: 0 32px 90px rgba(10, 29, 55, 0.12);
  --shadow-md: 0 20px 48px rgba(13, 31, 58, 0.10);
  --shadow-sm: 0 10px 28px rgba(13, 31, 58, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1200px;
  --header-h: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.68;
  background:
    radial-gradient(circle at 0% 0%, rgba(220, 22, 49, 0.09), transparent 26%),
    radial-gradient(circle at 100% 10%, rgba(19, 58, 103, 0.10), transparent 24%),
    linear-gradient(180deg, #f7faff 0%, #f3f6fb 48%, #eef3fa 100%);
}

body.menu-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.28) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 10%, black 12%, transparent 72%);
  opacity: 0.32;
}

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

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

main,
footer,
header {
  position: relative;
  z-index: 1;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(244, 248, 252, 0.72);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 30px rgba(18, 39, 68, 0.04);
}

.nav-wrap {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  width: clamp(180px, 18vw, 250px);
  height: auto;
}

.main-nav ul,
.footer-links,
.clean-list,
.side-links,
.contact-lines {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
  transition: color 0.24s ease, background 0.24s ease, transform 0.24s ease;
}

.main-nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.75);
}

.main-nav a.active {
  color: var(--text);
  background: rgba(255,255,255,0.9);
  box-shadow: inset 0 0 0 1px rgba(19, 58, 103, 0.08), 0 8px 24px rgba(12, 32, 60, 0.08);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(16, 36, 62, 0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.85);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.menu-toggle span {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.menu-toggle span:nth-child(1) { top: 15px; transform: translateX(-50%); }
.menu-toggle span:nth-child(2) { top: 22px; transform: translateX(-50%); }
.menu-toggle span:nth-child(3) { top: 29px; transform: translateX(-50%); }

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 22px;
  transform: translateX(-50%) rotate(45deg);
}

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

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 22px;
  transform: translateX(-50%) rotate(-45deg);
}

.hero,
.page-hero {
  padding: 68px 0 26px;
}

.page-hero.narrow {
  padding-bottom: 6px;
}

.hero-grid,
.split-grid,
.contact-layout,
.product-layout,
.footer-grid,
.metrics-grid,
.card-grid,
.reference-grid {
  display: grid;
  gap: 24px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  align-items: center;
  gap: 44px;
}

.split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 40px;
}

.split-grid.reverse > :first-child {
  order: 2;
}

.eyebrow,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(220, 22, 49, 0.08);
  border: 1px solid rgba(220, 22, 49, 0.12);
  color: var(--primary);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.section h2,
.cta-panel h2,
.product-card h3,
.service-card h2,
.info-card h3,
.news-card h3,
.contact-card h2,
.feature-stack h3,
.sticky-panel h3 {
  margin: 0;
  letter-spacing: -0.035em;
}

.hero h1,
.page-hero h1,
.section h2,
.cta-panel h2 {
  margin-top: 18px;
  line-height: 1.03;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(2.85rem, 6vw, 5.1rem);
}

.page-hero h1,
.section h2,
.cta-panel h2 {
  max-width: 15ch;
  font-size: clamp(2.05rem, 3.7vw, 3.4rem);
}

.hero p,
.page-hero p,
.section p,
.footer-text,
.info-card p,
.service-card p,
.product-card p,
.news-card p,
.reference-item,
.contact-card p,
.feature-stack p,
.metric-label,
.section-note,
.glass-card span,
.hero-points span,
.footer-links li,
.mini-panel p {
  color: var(--muted);
}

.hero-copy p {
  max-width: 60ch;
  margin: 18px 0 0;
  font-size: 1.05rem;
}

.page-hero p,
.section p {
  margin-top: 16px;
}

.hero-copy {
  position: relative;
}

.hero-copy::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -18px;
  top: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 22, 49, 0.10), transparent 70%);
  filter: blur(10px);
  z-index: -1;
}

.hero-actions,
.cta-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

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

.btn.full {
  width: 100%;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 18px 36px rgba(220, 22, 49, 0.24);
}

.btn-primary:hover {
  box-shadow: 0 22px 42px rgba(220, 22, 49, 0.30);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255,255,255,0.8);
  border-color: rgba(16, 36, 62, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.96);
  box-shadow: var(--shadow-sm);
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.hero-points div,
.metrics-grid article,
.info-card,
.service-card,
.product-card,
.news-card,
.contact-card,
.sticky-panel,
.image-card,
.cta-panel,
.reference-item,
.mini-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.76));
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.hero-points div::before,
.metrics-grid article::before,
.info-card::before,
.service-card::before,
.product-card::before,
.news-card::before,
.contact-card::before,
.sticky-panel::before,
.reference-item::before,
.mini-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(255,255,255,0.45), transparent 35%, transparent 75%, rgba(19,58,103,0.05));
}

.hero-points div {
  padding: 18px 18px 16px;
  border-radius: 20px;
}

.hero-points strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.hero-points span {
  display: block;
  font-size: 0.9rem;
  line-height: 1.5;
}

.hero-visual {
  position: relative;
}

.hero-visual img,
.image-card img,
.product-card img {
  width: 100%;
  object-fit: cover;
}

.hero-visual img,
.image-card,
.cta-panel,
.product-card,
.info-card,
.service-card,
.news-card,
.contact-card,
.sticky-panel,
.reference-item,
.mini-panel,
.metrics-grid article {
  border-radius: var(--radius-xl);
}

.hero-visual img {
  min-height: 640px;
  box-shadow: var(--shadow-lg);
}

.hero-visual::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(19, 58, 103, 0.18), transparent 70%);
  z-index: -1;
}

.glass-card {
  position: absolute;
  right: 20px;
  bottom: 20px;
  max-width: 300px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.68);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.glass-card strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.45;
}

.section {
  padding: 40px 0 92px;
}

.alt-bg {
  background: linear-gradient(180deg, rgba(232, 239, 248, 0.66), rgba(232, 239, 248, 0.24));
  border-top: 1px solid rgba(16, 36, 62, 0.04);
  border-bottom: 1px solid rgba(16, 36, 62, 0.04);
}

.metrics-strip {
  padding-top: 12px;
  padding-bottom: 46px;
}

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

.metrics-grid article {
  padding: 30px 28px 26px;
}

.metric-value {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
}

.metric-label {
  display: block;
  font-weight: 600;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.section-head.compact {
  margin-bottom: 20px;
}

.section-note {
  max-width: 54ch;
}

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

.card-grid.two,
.contact-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.service-card,
.news-card,
.contact-card,
.sticky-panel {
  padding: 30px;
}

.product-card {
  display: grid;
  grid-template-rows: 230px auto;
}

.product-card > div {
  padding: 24px;
}

.product-card.wide {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: none;
}

.product-card.wide img {
  height: 100%;
  min-height: 360px;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(220, 22, 49, 0.14), rgba(19, 58, 103, 0.08));
  color: var(--primary);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(220,22,49,0.08);
}

.clean-list li {
  position: relative;
  margin-top: 11px;
  padding-left: 18px;
  color: var(--text);
}

.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.image-card {
  overflow: hidden;
}

.image-card img {
  min-height: 470px;
  height: 100%;
}

.reference-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.reference-list span {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(16,36,62,0.08);
  color: var(--text);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

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

.reference-item {
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 24px 20px;
  text-align: center;
  font-weight: 800;
  color: var(--text);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 800;
}

.text-link::after {
  content: "→";
  transition: transform 0.24s ease;
}

.text-link:hover::after {
  transform: translateX(3px);
}

.feature-stack {
  display: grid;
  gap: 0;
}

.feature-stack article {
  padding: 22px 0;
  border-bottom: 1px solid rgba(16, 36, 62, 0.08);
}

.feature-stack article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.cta-section {
  padding-top: 10px;
}

.cta-panel {
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,255,255,0.12), transparent 26%),
    linear-gradient(135deg, #0e2038, #17345a 68%, #102948);
  color: #fff;
}

.cta-panel .section-tag {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}

.cta-panel p {
  color: rgba(255,255,255,0.7);
}

.cta-panel .btn-secondary {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
}

.site-footer {
  padding-top: 28px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.06), transparent 25%),
    #0c1a2d;
  color: #fff;
}

.footer-grid {
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 36px;
  padding: 30px 0 24px;
}

.footer-logo {
  width: 220px;
  margin-bottom: 16px;
  filter: brightness(1.06);
}

.footer-text {
  max-width: 40ch;
  color: rgba(255,255,255,0.68);
}

.site-footer h4 {
  margin: 0 0 16px;
}

.footer-links li {
  margin-bottom: 12px;
  color: rgba(255,255,255,0.74);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.62);
}

.product-layout {
  grid-template-columns: 310px minmax(0, 1fr);
  align-items: start;
}

.sticky-panel {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.side-links li + li {
  margin-top: 12px;
}

.side-links a {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(19,58,103,0.05);
  color: var(--text);
  font-weight: 700;
  transition: background 0.24s ease, transform 0.24s ease;
}

.side-links a:hover {
  background: rgba(220,22,49,0.08);
  transform: translateX(2px);
}

.mini-panel {
  margin-top: 22px;
  padding: 18px;
}

.mini-panel span {
  display: block;
  margin-bottom: 14px;
  font-weight: 800;
}

.product-content {
  display: grid;
  gap: 28px;
}

.product-section {
  scroll-margin-top: calc(var(--header-h) + 22px);
}

.news-list {
  display: grid;
  gap: 18px;
}

.news-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.news-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(220,22,49,0.08);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.contact-lines,
.contact-actions.stacked {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.contact-lines a,
.contact-lines span {
  font-weight: 700;
}

.contact-lines a:hover {
  color: var(--accent);
}

.info-card:hover,
.service-card:hover,
.product-card:hover,
.news-card:hover,
.contact-card:hover,
.reference-item:hover,
.metrics-grid article:hover {
  transform: translateY(-4px);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  box-shadow: 0 26px 56px rgba(10, 29, 55, 0.14);
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-hero h1,
  .section h2,
  .cta-panel h2 {
    max-width: 100%;
  }

  .hero-visual {
    max-width: 760px;
  }

  .hero-visual img {
    min-height: 560px;
  }

  .product-layout,
  .footer-grid,
  .split-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .product-layout,
  .footer-grid {
    display: grid;
  }

  .sticky-panel {
    position: static;
  }
}

@media (max-width: 980px) {
  .metrics-grid,
  .card-grid.three,
  .reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .section,
  .hero,
  .page-hero {
    padding-top: 48px;
  }

  .section {
    padding-bottom: 74px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 76px;
  }

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

  .menu-toggle {
    display: inline-block;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 12px auto 12px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(16, 36, 62, 0.08);
    box-shadow: 0 30px 60px rgba(10, 29, 55, 0.18);
  }

  .main-nav a {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 16px;
    border-radius: 14px;
  }

  .hero,
  .page-hero {
    padding-top: 34px;
  }

  .hero-points,
  .metrics-grid,
  .card-grid.three,
  .card-grid.two,
  .reference-grid,
  .news-card,
  .contact-layout,
  .product-card.wide {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 11vw, 3.5rem);
  }

  .page-hero h1,
  .section h2,
  .cta-panel h2 {
    font-size: clamp(1.85rem, 8vw, 2.55rem);
  }

  .hero-visual img,
  .image-card img,
  .product-card img,
  .product-card.wide img {
    min-height: 260px;
    height: auto;
  }

  .glass-card {
    position: static;
    max-width: none;
    margin: -26px 14px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-card,
  .service-card,
  .news-card,
  .contact-card,
  .sticky-panel,
  .metrics-grid article,
  .product-card > div {
    padding: 22px;
  }

  .product-card {
    grid-template-rows: auto auto;
  }

  .cta-panel {
    padding: 28px 22px;
  }

  .footer-grid {
    gap: 24px;
    padding-top: 8px;
  }

  .brand img {
    width: 172px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 20px), var(--container));
  }

  .hero-actions,
  .cta-actions,
  .contact-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .news-card {
    gap: 16px;
  }

  .hero-copy::after,
  .hero-visual::after,
  body::before {
    opacity: 0.18;
  }
}
