:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #17324d;
  --ink-soft: #63768b;
  --line: rgba(23, 50, 77, 0.1);
  --accent: #ee5a24;
  --accent-blue: #178fdf;
  --shadow: 0 18px 46px rgba(19, 41, 62, 0.1);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --content: 1240px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

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

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

button {
  font: inherit;
}

.v4-header-inner,
main,
.v4-footer {
  width: min(calc(100% - 2rem), var(--content));
  margin: 0 auto;
}

.v4-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e6ebf0;
}

.v4-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5.25rem;
}

.v4-brand img {
  width: clamp(10rem, 16vw, 12rem);
}

.v4-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.45rem);
}

.v4-nav a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s ease;
}

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

.v4-controls,
.lang-switch {
  display: flex;
  align-items: center;
}

.lang-switch {
  gap: 0.35rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: #eef3f8;
}

.lang-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  min-height: 2.6rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5d7185;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.lang-button.is-active {
  color: #fff;
  background: var(--ink);
}

.v4-hero {
  display: grid;
  place-items: center;
  min-height: 34rem;
  overflow: hidden;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  background:
    linear-gradient(rgba(16, 28, 40, 0.55), rgba(16, 28, 40, 0.55)),
    url("assets/images/hero-photo-01.jpeg") center/cover no-repeat;
}

.v4-hero-overlay {
  width: min(calc(100% - 2rem), 900px);
  text-align: center;
  color: #fff;
  padding: 4rem 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: #ffb08f;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.9rem, 6vw, 4.8rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.v4-hero-kicker,
.v4-about-copy p,
.v4-side-cards p,
.v4-product-card p,
.v4-quality-box p,
.v4-certificate-row p,
.v4-steps p,
.v4-materials-card p,
.v4-contact-card p,
.gallery-counter,
.gallery-figure figcaption {
  color: var(--ink-soft);
  line-height: 1.75;
}

.v4-hero-overlay .v4-hero-kicker {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.v4-actions,
.gallery-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
}

.button-primary {
  color: #fff;
  background: var(--accent-blue);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
}

.v4-section {
  padding: 4rem 0;
}

.v4-trust-band {
  padding: 3rem 0 2.5rem;
}

.v4-trust-shell {
  width: 100%;
  margin: 0 auto;
  padding: 1.9rem 2rem 2.1rem;
  color: #fff;
  background:
    linear-gradient(135deg, #0e3557, #143f67 55%, #0d304f);
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 40px rgba(11, 33, 57, 0.16);
}

.v4-trust-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
}

.v4-trust-brand img {
  width: 9rem;
}

.v4-trust-head {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  margin-top: 0.2rem;
  text-align: center;
}

.v4-trust-title,
.v4-trust-item h3 {
  color: #fff;
}

.v4-trust-title {
  position: relative;
  padding-bottom: 0.9rem;
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  letter-spacing: 0;
  text-transform: uppercase;
}

.v4-trust-title::after {
  content: "";
  width: 5.8rem;
  height: 2px;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  background: rgba(38, 115, 173, 0.85);
  border-radius: 999px;
}

.v4-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.9rem;
}

.v4-trust-item {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 0.7rem;
  padding: 0.2rem 1.3rem 0;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.v4-trust-item:first-child {
  border-left: 0;
}

.v4-trust-icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.94);
}

.v4-trust-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.v4-trust-item h3 {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.v4-trust-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  max-width: 16rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.v4-section-head {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.8rem;
}

.v4-section-head.center {
  text-align: center;
}

.v4-section-head.center h2 {
  max-width: 24ch;
  margin-inline: auto;
}

.v4-about-layout,
.v4-process-materials {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.3rem;
}

.v4-about-copy,
.v4-side-cards article,
.v4-product-card,
.v4-quality-box,
.v4-certificate-row,
.v4-process-card,
.v4-materials-card,
.v4-logo-grid figure,
.v4-contact-card,
.gallery-dialog {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.v4-about-copy,
.v4-process-card,
.v4-materials-card,
.v4-contact-card {
  padding: 1.6rem;
  border-radius: var(--radius-xl);
}

.v4-side-cards {
  display: grid;
  gap: 1rem;
}

.v4-side-cards article,
.v4-quality-box {
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius-lg);
}

.v4-product-cards,
.v4-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.v4-quality-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.v4-product-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.v4-product-card h3,
.v4-product-card p {
  padding-inline: 1.2rem;
}

.v4-product-card h3 {
  padding-top: 1.15rem;
}

.v4-product-card p {
  padding-bottom: 1.25rem;
}

.gallery-thumb {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-thumb img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.v4-product-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.v4-certificate-tile {
  display: grid;
  place-items: center;
  padding: 1rem;
}

.v4-certificate-tile img {
  width: 100%;
  max-width: 10rem;
  height: auto;
  border-radius: var(--radius-lg);
}

.text-link {
  display: inline-flex;
  margin-top: 0.8rem;
  color: var(--accent-blue);
  font-weight: 700;
}

.v4-steps {
  display: grid;
  gap: 1rem;
}

.v4-steps article {
  position: relative;
  padding-left: 3.2rem;
}

.v4-steps span {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-blue);
  font-weight: 700;
}

.v4-material-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0;
  margin: 1.4rem 0;
  list-style: none;
}

.v4-material-list li {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: #eef4f9;
  color: var(--ink);
  font-weight: 700;
}

.v4-logo-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.v4-logo-grid figure {
  display: grid;
  place-items: center;
  min-height: 9rem;
  margin: 0;
  padding: 1rem;
  border-radius: var(--radius-lg);
}

.v4-logo-grid img {
  max-width: 100%;
  max-height: 4.6rem;
}

.v4-contact-card {
  text-align: center;
}

.v4-contact-card h2 {
  max-width: 18ch;
  margin-inline: auto;
}

.v4-contact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
}

.v4-contact-list div {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  background: #eff4f9;
}

.v4-contact-list dt {
  margin-bottom: 0.35rem;
  color: var(--accent-blue);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.v4-contact-list dd {
  margin: 0;
  line-height: 1.65;
}

.v4-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 2.4rem;
  color: var(--ink-soft);
}

.v4-footer-brand p {
  margin: 0;
}

.v4-footer-brand p + p {
  margin-top: 0.35rem;
}

.v4-footer-iso {
  display: inline-flex;
  width: 5.5rem;
  flex: 0 0 auto;
}

.gallery-modal[hidden] {
  display: none;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 23, 36, 0.72);
  backdrop-filter: blur(10px);
}

.gallery-dialog {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), 1040px);
  margin: 4vh auto;
  padding: 1rem;
  border-radius: var(--radius-xl);
}

.gallery-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.gallery-icon-button,
.gallery-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--ink);
  background: #edf3f9;
  cursor: pointer;
}

.gallery-icon-button {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 1.8rem;
}

.gallery-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.gallery-nav {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  font-size: 2rem;
}

.gallery-figure {
  margin: 0;
}

.gallery-figure img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

@media (max-width: 1100px) {
  .v4-about-layout,
  .v4-process-materials,
  .v4-contact-list {
    grid-template-columns: 1fr;
  }

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

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

  .v4-trust-grid {
    grid-template-columns: 1fr;
  }

  .v4-trust-item {
    padding: 0 0 1rem;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .v4-trust-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

@media (max-width: 980px) {
  .v4-header-inner {
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
    padding: 0.75rem 0;
  }

  .v4-brand {
    margin-right: auto;
  }

  .v4-controls {
    margin-left: auto;
  }

  .v4-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: thin;
  }

  .v4-nav a {
    flex: 0 0 auto;
  }
}

@media (max-width: 760px) {
  .v4-header-inner,
  .v4-product-cards,
  .v4-product-strip,
  .v4-quality-grid,
  .v4-logo-grid,
  .gallery-stage {
    grid-template-columns: 1fr;
  }

  .v4-header-inner {
    min-height: auto;
    padding: 0.75rem 0;
  }

  .gallery-dialog {
    width: min(calc(100% - 1rem), 1040px);
    margin: 2vh auto;
  }

  .gallery-nav {
    width: 100%;
    border-radius: 999px;
  }

  .v4-footer {
    flex-direction: column;
  }
}
