:root {
  --brand-yellow: #ffd55f;
  --brand-white: #ffffff;
  --brand-blue: #1f3393;
  --brand-sky: #c5faff;
  --brand-green: #25af43;
  --brand-red: #ea523d;
  --ink: #17231d;
  --muted: #64736b;
  --surface: #f7fbf4;
  --line: #d9e8dd;
  --shadow: 0 18px 50px rgba(23, 35, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 10px clamp(18px, 4vw, 52px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(31, 51, 147, 0.12);
  backdrop-filter: blur(18px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  width: min(280px, 42vw);
}

.brand-logo {
  width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
  color: #34433a;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a {
  padding: 10px 0;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--brand-blue);
}

.header-action,
.primary-button,
.secondary-button,
.pse-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-action,
.primary-button,
.pse-button {
  color: var(--brand-white);
  background: var(--brand-blue);
  box-shadow: 0 10px 22px rgba(31, 51, 147, 0.18);
}

.secondary-button {
  color: var(--ink);
  background: var(--brand-yellow);
}

.secondary-button.on-blue {
  color: var(--brand-blue);
  background: var(--brand-white);
}

.header-action:hover,
.primary-button:hover,
.secondary-button:hover,
.pse-button:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 38px));
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-media img,
.hero-media video,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img,
.hero-media video {
  object-fit: cover;
}

.hero-media img {
  animation: calm-pan 18s ease-in-out infinite alternate;
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(12, 28, 17, 0.75) 0%, rgba(12, 28, 17, 0.48) 38%, rgba(31, 51, 147, 0.08) 100%),
    linear-gradient(0deg, rgba(23, 35, 29, 0.45), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: inherit;
  width: min(760px, 100%);
  padding: clamp(68px, 10vw, 130px) clamp(20px, 6vw, 86px);
  color: var(--brand-white);
}

.hero-fragu-logo {
  width: min(260px, 58vw);
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}

.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 12vw, 9.5rem);
  line-height: 0.85;
  letter-spacing: 0;
}

.hero p {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  font-weight: 700;
}

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

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(52px, 8vw, 86px) clamp(20px, 5vw, 72px);
  color: var(--brand-white);
  background: var(--brand-blue);
}

.intro-band h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
}

.intro-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  font-weight: 700;
}

.section {
  padding: clamp(62px, 9vw, 112px) clamp(20px, 5vw, 72px);
}

.section-heading {
  width: min(820px, 100%);
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.compact {
  margin-left: 0;
  text-align: left;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand-red);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0;
  color: var(--brand-blue);
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
}

.product-section {
  background: var(--surface);
}

.product-toolbar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 26px;
}

.filter-button {
  min-width: 104px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--brand-white);
  font-weight: 800;
  cursor: pointer;
}

.filter-button.is-active {
  color: var(--brand-white);
  border-color: var(--brand-blue);
  background: var(--brand-blue);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
}

.product-card {
  display: grid;
  grid-template-rows: 220px auto;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--brand-white);
  box-shadow: 0 8px 28px rgba(31, 51, 147, 0.08);
}

.product-image {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--brand-sky);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--brand-white);
  background: var(--brand-green);
  font-size: 0.78rem;
  font-weight: 900;
}

.product-badge.is-empty {
  background: var(--brand-red);
}

.product-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 18px;
}

.product-body h3 {
  margin: 0;
  min-height: 58px;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.product-price {
  color: var(--brand-blue);
  font-size: 1.35rem;
  font-weight: 900;
}

.product-description {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.pse-button {
  width: 100%;
  margin-top: auto;
  border: 0;
  cursor: pointer;
}

.pse-button[aria-disabled="true"] {
  color: #7c7c7c;
  background: #e7e7e7;
  box-shadow: none;
  cursor: not-allowed;
}

.process-card,
.promise-list article {
  border-radius: 8px;
}

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

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.process-card {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.process-card .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border-radius: 50%;
  color: var(--brand-blue);
  background: var(--brand-yellow);
  font-weight: 900;
}

.process-card h3 {
  margin: 0 0 10px;
  color: var(--brand-blue);
  font-size: 1.2rem;
}

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

.promise-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 34px;
  align-items: center;
  color: var(--brand-white);
  background: var(--brand-blue);
}

.promise-section .eyebrow,
.promise-section h2 {
  color: var(--brand-white);
}

.promise-copy p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.82);
}

.promise-list {
  display: grid;
  gap: 12px;
}

.promise-list article {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 70px;
  padding: 18px;
  background: var(--brand-white);
  color: var(--ink);
}

.promise-list span {
  color: var(--brand-red);
  font-size: 0.9rem;
  font-weight: 900;
}

.promise-list strong {
  color: var(--brand-blue);
  font-size: 1.15rem;
}

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

.gallery-band img {
  width: 100%;
  height: clamp(220px, 30vw, 420px);
  object-fit: cover;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(20px, 5vw, 72px);
  background: #f4f7ef;
}

.footer-logo {
  width: 160px;
}

.site-footer p {
  margin: 10px 0 0;
  color: var(--muted);
}

.site-footer a {
  color: var(--brand-blue);
  font-weight: 900;
}

@keyframes calm-pan {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

@media (max-width: 1080px) {
  .products-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promise-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .brand-link {
    width: min(240px, 58vw);
  }

  .intro-band {
    grid-template-columns: 1fr;
  }

  .gallery-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 12px;
    min-height: 64px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .header-action {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    justify-content: flex-end;
    width: 100vw;
    max-width: 100vw;
    padding-top: 48px;
    padding-bottom: 46px;
  }

  .hero-fragu-logo {
    width: min(220px, 62vw);
    margin-bottom: 12px;
  }

  .hero h1 {
    font-size: clamp(3.7rem, 19vw, 5.6rem);
  }

  .hero p {
    max-width: calc(100vw - 56px);
    margin-top: 18px;
    font-size: 1rem;
  }

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

  .intro-band {
    padding-top: 44px;
    padding-bottom: 48px;
  }

  .intro-band h2 {
    font-size: clamp(1.85rem, 11vw, 2.7rem);
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .intro-band p {
    font-size: 1rem;
  }

  .primary-button,
  .secondary-button,
  .filter-button {
    width: 100%;
  }

  .products-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

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

  .promise-list article {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

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