:root {
  --segon-bg: #f3f6f8;
  --segon-surface: #ffffff;
  --segon-surface-soft: #f8fafb;
  --segon-line: rgba(15, 23, 42, 0.1);
  --segon-line-strong: rgba(15, 23, 42, 0.16);
  --segon-text: #24362b;
  --segon-text-muted: #5f7067;
  --segon-heading: #102216;
  --segon-accent: #1f6b2d;
  --segon-accent-dark: #184f22;
  --segon-accent-soft: rgba(31, 107, 45, 0.1);
  --segon-shadow: 0 18px 40px rgba(16, 34, 22, 0.08);
  --segon-shadow-soft: 0 10px 24px rgba(16, 34, 22, 0.06);
  --segon-radius-lg: 28px;
  --segon-radius-md: 20px;
  --segon-radius-sm: 14px;
  --segon-content-width: 1320px;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f8fafb 0%, #f3f6f8 240px, #eef3f5 100%);
  color: var(--segon-text);
  font-family: "Titillium Web", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

body > .header.navigation,
body > #content,
body > .site-footer {
  width: 100%;
}

#content {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
}

a {
  color: var(--segon-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover,
a:focus {
  color: var(--segon-accent-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--segon-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.95rem, 3.5vw, 3.1rem);
}

h2 {
  font-size: clamp(1.65rem, 2.4vw, 2.4rem);
}

h3 {
  font-size: clamp(1.28rem, 1.7vw, 1.7rem);
}

h4 {
  font-size: clamp(1.08rem, 1.2vw, 1.28rem);
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.92rem;
}

p,
li {
  font-size: 1rem;
  color: var(--segon-text);
}

.container {
  max-width: var(--segon-content-width);
  padding-left: 18px;
  padding-right: 18px;
}

.section,
#front-karty,
.hero-area,
.single-page-header {
  position: relative;
}

.header.navigation {
  position: sticky;
  top: 0;
  z-index: 1040;
  padding: 0;
  background: linear-gradient(135deg, #184f22 0%, #1f6b2d 55%, #2a8b3b 100%);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.header.navigation .container {
  position: relative;
}

.header.navigation .row {
  --bs-gutter-x: 0;
  margin-left: 0;
  margin-right: 0;
}

.header.navigation .row > [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}

.navbar {
  padding: 12px 0;
  gap: 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-right: 18px;
  padding: 12px 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.navbar-brand img {
  width: auto;
  height: 26px;
}

.navbar-collapse {
  flex-grow: 1;
}

.navbar-light .navbar-nav {
  gap: 0 28px;
}

.navbar-light .navbar-nav .nav-link {
  position: relative;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .active > .nav-link,
.navbar-light .navbar-nav .nav-item.active > .nav-link {
  color: #ffffff;
}

.navbar-light .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: rgba(220, 238, 221, 0.95);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link:focus::after,
.navbar-light .navbar-nav .active > .nav-link::after,
.navbar-light .navbar-nav .nav-item.active > .nav-link::after {
  transform: scaleX(1);
}

.dropdown-menu {
  margin-top: 16px;
  padding: 12px;
  min-width: 260px;
  border: 1px solid var(--segon-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 48px rgba(10, 37, 45, 0.12);
}

.dropdown-item {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--segon-text);
  font-size: 0.95rem;
  font-weight: 600;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--segon-accent-soft);
  color: var(--segon-accent-dark);
}

.navbar-toggler {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.navbar-light .navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

.hero-area {
  padding: 10px 0 20px;
}

.hero-area .container {
  position: relative;
}

.hero-area .row,
.hero-area .col {
  position: relative;
}

.hero-area picture,
.hero-area .hero-media {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--segon-radius-lg) + 6px);
  box-shadow: var(--segon-shadow);
  min-height: clamp(420px, 68vh, 640px);
  background: linear-gradient(135deg, #15321c 0%, #1c4a26 52%, #255e31 100%);
}

.hero-area picture::before,
.hero-area .hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 12, 18, 0.48) 0%, rgba(8, 12, 18, 0.28) 34%, rgba(8, 12, 18, 0.1) 58%, rgba(8, 12, 18, 0) 100%);
  pointer-events: none;
}

.hero-area picture::after,
.hero-area .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(12, 18, 24, 0.5) 0%, rgba(12, 18, 24, 0.18) 42%, rgba(12, 18, 24, 0) 72%),
    linear-gradient(180deg, rgba(10, 12, 16, 0.04) 0%, rgba(10, 12, 16, 0.24) 100%);
  pointer-events: none;
}

.hero-area img,
.hero-area .hero-video {
  display: block;
  width: 100%;
  height: clamp(420px, 68vh, 640px);
  object-fit: cover;
  object-position: center;
}

.hero-area .hero-video {
  position: absolute;
  inset: 0;
}

.hero-area .hero-video.is-loading {
  opacity: 0;
  pointer-events: none;
}

.hero-area .hero-video.is-ready {
  opacity: 1;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.hero-area .hero-video.is-blocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-area .hero-video::-webkit-media-controls,
.hero-area .hero-video::-webkit-media-controls-panel,
.hero-area .hero-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

.hero-content {
  position: absolute;
  left: clamp(24px, 4vw, 48px);
  right: clamp(24px, 4vw, 48px);
  top: clamp(24px, 4vw, 38px);
  bottom: clamp(24px, 5vw, 46px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  max-width: 700px;
  color: #fff;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
}

.hero-content h1 {
  max-width: 13.5ch;
  margin-bottom: 0.75rem;
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 3.2rem);
  line-height: 1.04;
}

.hero-break-desktop {
  display: none;
}

.hero-content p {
  max-width: 50ch;
  margin-bottom: 0.85rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.92rem, 1.05vw, 1rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0;
}

.sector-hero-area {
  padding: 10px 0 12px;
}

.sector-hero-area .container {
  position: relative;
}

.sector-hero-media {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--segon-radius-lg) + 6px);
  box-shadow: var(--segon-shadow);
  min-height: clamp(220px, 34vh, 320px);
  background: linear-gradient(135deg, #15321c 0%, #1c4a26 52%, #255e31 100%);
}

.sector-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(11, 30, 17, 0.72) 0%, rgba(24, 79, 34, 0.52) 36%, rgba(31, 107, 45, 0.2) 64%, rgba(31, 107, 45, 0.02) 100%),
    linear-gradient(180deg, rgba(10, 28, 16, 0.08) 0%, rgba(10, 28, 16, 0.28) 100%);
  pointer-events: none;
}

.sector-hero-media picture,
.sector-hero-media img {
  display: block;
  width: 100%;
  height: clamp(220px, 34vh, 320px);
}

.sector-hero-media img {
  object-fit: cover;
  object-position: center;
}

.sector-hero-content {
  position: absolute;
  left: clamp(22px, 3vw, 40px);
  right: clamp(22px, 3vw, 40px);
  bottom: clamp(22px, 4vw, 36px);
  z-index: 1;
  display: flex;
  justify-content: flex-start;
}

.sector-hero-title {
  display: inline-flex;
  align-items: center;
  max-width: min(14ch, 100%);
  margin: 0;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: rgba(11, 30, 17, 0.34);
  color: #fff;
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  line-height: 1.04;
  box-shadow: 0 18px 40px rgba(5, 18, 10, 0.16);
  backdrop-filter: blur(10px);
}

.bg-gray {
  background: transparent !important;
}

.o-nas.section {
  padding: 6px 0 18px;
}

#front-karty {
  padding: 6px 0 24px;
}

.o-nas .container,
#front-karty .container,
.page-single .container,
.kontakt .container,
.single-page-header .container {
  position: relative;
  z-index: 1;
}

.o-nas .container {
  padding: 38px 18px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--segon-radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--segon-shadow-soft);
}

.home-about-shell {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.home-about-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.3fr);
  gap: 34px;
  align-items: start;
}

.home-about-intro {
  max-width: 520px;
}

.home-about-grid-simple {
  grid-template-columns: 1fr;
}

.home-about-grid-simple .home-about-intro {
  max-width: none;
  width: 100%;
}

.home-about-grid-simple .home-about-intro h2 {
  max-width: none;
}

.home-about-actions {
  margin-top: 1.25rem;
}

.home-about-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 1.5rem;
  padding-top: 0.35rem;
}

.home-about-steps::before {
  content: "";
  position: absolute;
  top: 1.05rem;
  left: 4%;
  right: 4%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(31, 107, 45, 0.14), rgba(31, 107, 45, 0.3), rgba(31, 107, 45, 0.14));
}

.home-about-steps span {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 76px;
  padding: 2.5rem 0.5rem 0;
  color: var(--segon-accent-dark);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.home-about-steps span::before {
  content: "";
  position: absolute;
  top: 0.28rem;
  left: 50%;
  width: 22px;
  height: 22px;
  transform: translateX(-50%);
  border: 5px solid rgba(255, 255, 255, 0.98);
  border-radius: 999px;
  background: var(--segon-accent);
  box-shadow: 0 0 0 1px rgba(31, 107, 45, 0.12);
}

.home-about-steps span::after {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--segon-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 6px 16px rgba(16, 34, 22, 0.08);
}

.home-about-steps span:nth-child(1)::after {
  content: "01";
}

.home-about-steps span:nth-child(2)::after {
  content: "02";
}

.home-about-steps span:nth-child(3)::after {
  content: "03";
}

.home-about-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-about-copy-block {
  min-height: 100%;
  padding: 22px 24px;
  border: 1px solid rgba(31, 107, 45, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(31, 107, 45, 0.06) 0%, rgba(255, 255, 255, 0.98) 42%),
    rgba(255, 255, 255, 0.98);
}

.section-label {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  padding: 0.42rem 0.78rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--segon-accent-soft);
  color: var(--segon-accent-dark);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.o-nas h2 {
  margin-bottom: 0;
  font-size: clamp(1.85rem, 2.7vw, 2.6rem);
  line-height: 1.12;
}

.o-nas p {
  margin-bottom: 0;
  font-size: 1rem;
  color: var(--segon-text-muted);
}

.o-nas p:last-child {
  margin-bottom: 0;
}

.section-intro {
  display: grid;
  gap: 0.7rem;
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.section-intro h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.6vw, 2.45rem);
  line-height: 1.12;
}

.section-intro p {
  margin: 0;
  font-size: 1rem;
  color: var(--segon-text-muted);
}

.blog.section .container {
  position: relative;
  z-index: 1;
}

.blog.section .row {
  --bs-gutter-x: 1.3rem;
  --bs-gutter-y: 1.3rem;
}

.blog.section .card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: var(--segon-radius-md);
  background:
    linear-gradient(180deg, rgba(31, 107, 45, 0.08) 0%, rgba(255, 255, 255, 0.98) 28%),
    rgba(255, 255, 255, 0.98);
  box-shadow: var(--segon-shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog.section .card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 107, 45, 0.18);
  box-shadow: 0 20px 44px rgba(10, 37, 45, 0.12);
}

.blog.section .card-body {
  padding: 24px;
}

.blog.section .card-title {
  margin-bottom: 0.7rem;
  color: var(--segon-heading);
  font-size: clamp(1.08rem, 1.35vw, 1.22rem);
  line-height: 1.28;
}

.blog.section .card-text {
  color: var(--segon-text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.blog.section .btn {
  margin-top: auto;
  align-self: flex-start !important;
}

#front-karty .row {
  --bs-gutter-x: 1.3rem;
  --bs-gutter-y: 1.3rem;
}

#front-karty .card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: var(--segon-radius-md);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--segon-shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#front-karty .card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 107, 45, 0.18);
  box-shadow: 0 20px 44px rgba(10, 37, 45, 0.12);
}

#front-karty .card-body {
  padding: 28px;
}

#front-karty .card-home {
  background:
    linear-gradient(180deg, rgba(31, 107, 45, 0.08) 0%, rgba(255, 255, 255, 0.98) 28%),
    rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(31, 107, 45, 0.1);
  box-shadow: var(--segon-shadow-soft);
}

#front-karty .home-card-top {
  position: relative;
  padding-bottom: 1.05rem;
  padding-top: 0.9rem;
  margin-bottom: 1.05rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

#front-karty .home-card-top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--segon-accent-dark), #2f9141);
}

#front-karty .card-title {
  margin-bottom: 0.65rem;
  color: var(--segon-heading);
  font-size: clamp(1.18rem, 1.55vw, 1.32rem);
  line-height: 1.24;
}

#front-karty .card-description {
  margin-bottom: 0;
  color: var(--segon-text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

#front-karty .home-card-list {
  margin-bottom: 1.15rem;
}

#front-karty .card-text {
  margin-bottom: 0.42rem !important;
}

#front-karty .card-text a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--segon-text);
  text-decoration: none;
}

#front-karty .card-text a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 8px;
  background: rgba(31, 107, 45, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

#front-karty .card-text a:hover {
  color: var(--segon-accent-dark);
}

#front-karty .card-text a:hover::before {
  transform: scale(1.25);
  background: var(--segon-accent);
}

#front-karty .home-card-footer {
  padding-top: 0.95rem;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}

#front-karty .home-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--segon-accent-dark);
  font-weight: 600;
  text-decoration: none;
}

#front-karty .home-card-link::after {
  content: "\203A";
  font-size: 1.1rem;
}

#front-karty .home-card-link:hover,
#front-karty .home-card-link:focus {
  color: var(--segon-accent);
}

.single-page-header {
  padding: 10px 0 0;
}

.single-page-header .container {
  padding: 12px 18px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.single-page-header .row {
  --bs-gutter-x: 0;
  margin-left: 0;
  margin-right: 0;
}

.single-page-header .row > [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}

.single-page-header .container::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 12px;
  background: linear-gradient(90deg, rgba(31, 107, 45, 0.42), rgba(31, 107, 45, 0.1) 58%, transparent 100%);
}

.single-page-header h2,
.content-shell > h2:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
}

.single-page-header h2 {
  max-width: 20ch;
  font-size: clamp(1.45rem, 1.9vw, 2rem);
  line-height: 1.06;
}

.single-page-header h2::before,
.content-shell > h2:first-child::before {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.3rem 0.62rem;
  margin-bottom: 0.55rem;
  border-radius: 999px;
  background: var(--segon-accent-soft);
  color: var(--segon-accent-dark);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.single-page-header h2::before {
  content: "Obszar rozwiązań";
}

.content-shell > h2:first-child::before {
  content: "Szczegóły rozwiązania";
}

.content-shell-product > h2:first-child::before {
  content: "Produkty SEGON";
}

.content-shell-sector > h2:first-child::before {
  content: "Sektor";
}

.single-page-header-plain h2::before,
.content-shell-plain > h2:first-child::before {
  display: none;
  content: none;
}

.page-single.section,
.kontakt.section {
  padding: 8px 0 28px !important;
}

.page-single-sector.section {
  padding-top: 4px !important;
}

.page-single.section > .container:first-child,
.kontakt.section > .container:first-child {
  padding-top: 0.35rem !important;
}

.page-single .row {
  justify-content: center;
}

.page-single .row > .col-md-8,
.page-single .row > .col-lg-8,
.page-single .row > .col-xl-8 {
  flex: 0 0 100%;
  max-width: 100%;
}

.content-shell {
  width: min(100%, 1040px);
  padding: 34px 40px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--segon-radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--segon-shadow-soft);
}

.content-shell > :first-child {
  margin-top: 0;
}

.content-shell-sector-body {
  position: relative;
}

.content-shell h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 2.1vw, 2.3rem);
  line-height: 1.12;
}

.content-shell h3,
.content-shell h4,
.content-shell h5,
.content-shell h6 {
  line-height: 1.2;
}

.content-shell h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  font-size: clamp(1.35rem, 1.7vw, 1.7rem);
}

.content-shell h4 {
  margin-top: 1.55rem;
  margin-bottom: 0.7rem;
  font-size: clamp(1.18rem, 1.35vw, 1.36rem);
}

.content-shell h5 {
  margin-top: 1.4rem;
  margin-bottom: 0.65rem;
  font-size: 1.08rem;
}

.content-shell h6 {
  margin-top: 1.2rem;
  margin-bottom: 0.55rem;
  font-size: 0.96rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.content-shell p,
.content-shell li {
  font-size: 1rem;
  color: var(--segon-text);
}

.content-shell ul {
  padding-left: 1.3rem;
}

.content-shell p + ul,
.content-shell p + ol {
  margin-top: -0.2rem;
}

.content-shell > img:first-of-type,
.content-shell > picture:first-of-type img {
  width: 100%;
  max-width: 100%;
  margin-bottom: 1.6rem !important;
}

.content-shell img,
.content-shell picture img {
  border-radius: 18px;
  box-shadow: 0 16px 30px rgba(10, 37, 45, 0.08);
}

.product-story {
  display: grid;
  gap: 1.35rem;
}

.product-story-opera {
  margin-top: 0.9rem;
}

.product-story-osmosis {
  margin-top: 0.9rem;
}

.product-story-opera .product-intro-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 22px;
}

.product-story-opera .product-intro-card p {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.58;
}

.product-story-opera .product-intro-card .product-lead {
  margin-bottom: 0.8rem;
  font-size: clamp(0.98rem, 0.9vw, 1.06rem);
  line-height: 1.6;
}

.product-story-opera .product-block-grid .product-section-head {
  align-items: center;
}

.product-story-opera .product-block-grid .product-section-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.product-story-opera .product-specs-inline {
  margin-top: 0.95rem;
  padding-top: 0.9rem;
}

.product-story-opera .product-specs-inline h3 {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.product-story-opera .product-spec-meter + .product-spec-meter {
  margin-top: 0.75rem;
}

.product-story-opera .product-spec-meter-head {
  margin-bottom: 0.35rem;
}

.product-story-opera .product-spec-meter-head span,
.product-story-opera .product-spec-meter-head strong {
  font-size: 0.9rem;
}

.product-story-opera .product-spec-meter-track {
  height: 10px;
}

.product-intro {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 22px;
  align-items: start;
}

.product-cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 22px;
  border: 1px solid rgba(31, 107, 45, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(31, 107, 45, 0.07), rgba(255, 255, 255, 0.98) 58%),
    rgba(255, 255, 255, 0.98);
  box-shadow: var(--segon-shadow-soft);
}

.product-cta-strip p {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--segon-heading);
}

.product-cta-strip .btn {
  flex: 0 0 auto;
}

.home-cta-section {
  padding-bottom: 18px;
}

.product-hero-image {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(31, 107, 45, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(31, 107, 45, 0.04), rgba(255, 255, 255, 0.98)),
    rgba(255, 255, 255, 0.98);
  box-shadow: var(--segon-shadow-soft);
}

.product-hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

.product-intro-card {
  min-height: 100%;
}

.product-intro-card .product-lead {
  margin-bottom: 1rem;
}

.product-specs-inline {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(31, 107, 45, 0.1);
}

.product-specs-inline h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.product-spec-meter + .product-spec-meter {
  margin-top: 0.95rem;
}

.product-spec-meter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0.45rem;
  color: var(--segon-heading);
}

.product-spec-meter-head span {
  font-weight: 600;
}

.product-spec-meter-head strong {
  flex: 0 0 auto;
  font-size: 0.96rem;
  color: var(--segon-accent-dark);
}

.product-spec-meter-track {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(31, 107, 45, 0.06), rgba(31, 107, 45, 0.12)),
    rgba(31, 107, 45, 0.08);
}

.product-spec-meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f6b2d, #57a56a);
  box-shadow: 0 4px 12px rgba(31, 107, 45, 0.2);
  transform-origin: left center;
}

.product-spec-meter-fill.meter-pumps {
  width: 72%;
}

.product-spec-meter-fill.meter-pressure {
  width: 88%;
  animation: product-spec-fill 1.15s ease-out both;
}

.product-spec-meter-fill.meter-flow {
  width: 94%;
  animation: product-spec-fill 1.35s ease-out both 0.12s;
}

@keyframes product-spec-fill {
  0% {
    transform: scaleX(0);
    opacity: 0.35;
  }
  100% {
    transform: scaleX(1);
    opacity: 1;
  }
}

.product-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0.15rem;
}

.product-anchor-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(31, 107, 45, 0.1);
  border-radius: 999px;
  background: rgba(31, 107, 45, 0.05);
  color: var(--segon-accent-dark);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.product-anchor-nav a:hover,
.product-anchor-nav a:focus-visible {
  border-color: rgba(31, 107, 45, 0.28);
  background: rgba(31, 107, 45, 0.09);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(16, 34, 22, 0.08);
}

.product-lead {
  margin-bottom: 0;
  font-size: clamp(1.04rem, 1.15vw, 1.16rem);
  line-height: 1.72;
  color: var(--segon-heading);
}

.product-block {
  padding: 24px 26px;
  border: 1px solid rgba(31, 107, 45, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(31, 107, 45, 0.04) 0%, rgba(255, 255, 255, 0.98) 44%),
    rgba(255, 255, 255, 0.98);
  box-shadow: var(--segon-shadow-soft);
}

.product-block > :last-child {
  margin-bottom: 0;
}

.product-section-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 1rem;
}

.product-section-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(31, 107, 45, 0.09);
  color: var(--segon-accent);
  font-size: 1.2rem;
  box-shadow: inset 0 0 0 1px rgba(31, 107, 45, 0.08);
}

.product-section-copy {
  min-width: 0;
}

.product-section-copy .section-label,
.product-section-copy h3 {
  margin-bottom: 0;
}

.product-block-highlight {
  padding: 26px 28px;
  border-color: rgba(31, 107, 45, 0.14);
}

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

.product-specs {
  background:
    linear-gradient(180deg, rgba(16, 34, 22, 0.02), rgba(255, 255, 255, 0.98)),
    rgba(255, 255, 255, 0.98);
}

.product-specs-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-specs-list li {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(31, 107, 45, 0.08);
  border-radius: 16px;
  background: rgba(31, 107, 45, 0.04);
}

.product-specs-list strong {
  color: var(--segon-heading);
}

.dso-story .product-specs-list {
  gap: 0.5rem;
}

.dso-story .dso-section-copy {
  margin-bottom: 1rem;
}

.dso-story .dso-section-copy .section-label {
  margin-bottom: 0.45rem;
}

.dso-story .dso-section-copy h3 {
  margin-bottom: 0;
}

.dso-story .product-specs-list li {
  padding: 0.72rem 0.9rem;
  border-radius: 14px;
  line-height: 1.4;
}

.dso-hero-image,
.plain-hero-image {
  width: 100px;
  height: 100px;
  margin-left: 0;
  margin-right: 0;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--segon-shadow-soft);
}

.dso-hero-image img,
.plain-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dso-plain-copy,
.plain-copy {
  display: grid;
  gap: 0.95rem;
}

.dso-plain-copy h3,
.plain-copy h3 {
  margin: 0.4rem 0 0;
  font-size: 1.2rem;
}

.dso-plain-copy p,
.plain-copy p {
  margin: 0;
}

.fire-hero-image,
.hero-image-300 {
  width: fit-content;
  max-width: 100%;
  height: 300px;
}

.fire-hero-image img,
.hero-image-300 img {
  width: auto;
  height: 100%;
  object-fit: contain;
}

.hero-image-250 {
  width: fit-content;
  max-width: 100%;
  height: 250px;
}

.hero-image-250 img {
  width: auto;
  height: 100%;
  object-fit: contain;
}

.hero-image-350 {
  width: fit-content;
  max-width: 100%;
  height: 350px;
}

.hero-image-350 img {
  width: auto;
  height: 100%;
  object-fit: contain;
}

.content-body-visual {
  width: 100%;
  margin: 1.6rem 0 0;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--segon-shadow-soft);
}

.content-body-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.service-ring-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.2rem 0 0;
}

.service-ring-gallery figure {
  margin: 0;
  height: 220px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--segon-shadow-soft);
}

.service-ring-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.water-methods-table-wrap {
  margin-top: 0.35rem;
  overflow-x: auto;
}

.water-methods-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  min-width: 640px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(31, 107, 45, 0.12);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--segon-shadow-soft);
}

.water-methods-table th,
.water-methods-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(31, 107, 45, 0.08);
}

.water-methods-table th {
  background: rgba(31, 107, 45, 0.07);
  color: var(--segon-heading);
  font-weight: 600;
}

.water-methods-table tr:last-child td {
  border-bottom: 0;
}

.osmosis-story {
  gap: 1.15rem;
}

.product-intro-osmosis .product-intro-card {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.product-intro-osmosis .product-section-copy h3 {
  font-size: 1.05rem;
}

.product-intro-osmosis .osmosis-benefits-list {
  gap: 0.55rem;
}

.product-intro-osmosis .osmosis-application-groups {
  grid-template-columns: 1fr;
  gap: 12px;
}

.product-intro-osmosis .osmosis-application-card {
  padding: 14px 16px;
}

.product-intro-osmosis .osmosis-application-card .section-label {
  margin-bottom: 0.65rem;
}

.product-intro-osmosis .osmosis-application-list {
  gap: 0.45rem;
}

.osmosis-application-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.osmosis-application-card {
  padding: 18px 18px 16px;
  border: 1px solid rgba(31, 107, 45, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(31, 107, 45, 0.04), rgba(255, 255, 255, 0.98)),
    rgba(255, 255, 255, 0.98);
}

.osmosis-application-card .section-label {
  margin-bottom: 0.85rem;
}

.osmosis-application-list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.osmosis-application-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--segon-heading);
}

.osmosis-application-list li::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--segon-accent);
}

.osmosis-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.osmosis-list-grid li {
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(31, 107, 45, 0.08);
  border-radius: 16px;
  background: rgba(31, 107, 45, 0.04);
  color: var(--segon-heading);
}

.osmosis-benefits-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.osmosis-benefits-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--segon-heading);
}

.osmosis-benefits-list li::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--segon-accent);
}

.osmosis-services {
  display: grid;
  gap: 16px;
}

.osmosis-service-card {
  padding: 20px 22px;
  border: 1px solid rgba(31, 107, 45, 0.08);
  border-radius: 18px;
  background: rgba(31, 107, 45, 0.035);
}

.osmosis-service-card h4 {
  margin-bottom: 0.65rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.osmosis-service-card p:last-child {
  margin-bottom: 0;
}

.ro-page-shell {
  overflow: hidden;
}

.ro-intro {
  max-width: 72ch;
  margin-bottom: 0;
}

.ro-demo {
  margin-top: 1.8rem;
  padding: 28px;
  border: 1px solid rgba(31, 107, 45, 0.12);
  border-radius: calc(var(--segon-radius-lg) - 2px);
  background:
    radial-gradient(circle at top right, rgba(31, 107, 45, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(249, 251, 252, 0.98), rgba(243, 247, 249, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ro-demo-head {
  max-width: 70ch;
  margin-bottom: 1.45rem;
}

.ro-demo-head h3 {
  margin-top: 0.45rem;
  margin-bottom: 0.55rem;
}

.ro-demo-head p {
  margin-bottom: 0;
}

.ro-diagram {
  position: relative;
  padding: 108px 8px 12px;
}

.ro-label {
  position: absolute;
  z-index: 2;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(16, 34, 22, 0.74);
  transition: color 0.25s ease, opacity 0.25s ease;
}

.ro-label::after {
  content: "";
  position: absolute;
  height: 2px;
  background: rgba(16, 34, 22, 0.2);
}

.ro-label-pressure {
  top: 30px;
  left: 2%;
}

.ro-label-pressure::after {
  top: calc(100% + 8px);
  left: 38px;
  width: 58px;
  transform: rotate(40deg);
  transform-origin: left center;
}

.ro-label-dirty {
  top: 0;
  left: 14%;
}

.ro-label-dirty::after {
  top: calc(100% + 12px);
  left: 104px;
  width: 78px;
  transform: rotate(46deg);
  transform-origin: left center;
}

.ro-label-membrane {
  top: -2px;
  left: 51%;
  transform: translateX(-10%);
}

.ro-label-membrane::after {
  top: calc(100% + 8px);
  left: 46px;
  width: 82px;
  transform: rotate(110deg);
  transform-origin: left center;
}

.ro-label-clean {
  top: 18px;
  right: 5%;
  text-align: right;
}

.ro-label-clean::after {
  top: calc(100% + 12px);
  right: 72px;
  width: 66px;
  transform: rotate(132deg);
  transform-origin: right center;
}

.ro-pipe {
  position: relative;
  height: 220px;
  border: 8px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(226, 245, 250, 0.96) 0%, rgba(161, 220, 236, 0.96) 56%, rgba(134, 205, 226, 0.98) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(18, 74, 96, 0.16),
    inset 0 20px 30px rgba(255, 255, 255, 0.34),
    0 18px 36px rgba(20, 56, 70, 0.12);
}

.ro-pipe::before {
  content: "";
  position: absolute;
  inset: 14px 20px 48%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.ro-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  transition: background 0.25s ease, opacity 0.25s ease;
}

.ro-zone-left {
  left: 0;
  width: 51%;
  background: linear-gradient(90deg, rgba(34, 155, 190, 0.1), rgba(34, 155, 190, 0));
}

.ro-zone-right {
  right: 0;
  width: 42%;
  background: linear-gradient(90deg, rgba(197, 244, 255, 0.1), rgba(112, 196, 224, 0.16));
}

.ro-pressure-cap {
  position: absolute;
  top: 50%;
  left: 22px;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle at 36% 32%, #772741 0%, #6d2141 28%, #ff214b 30%, #ff214b 64%, #cc0e3c 72%, #5e294e 100%);
  box-shadow:
    inset 0 0 0 9px rgba(255, 255, 255, 0.3),
    0 0 0 10px rgba(26, 188, 213, 0.42);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ro-membrane {
  position: absolute;
  top: 50%;
  left: 52%;
  width: 88px;
  height: 148px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.22), transparent 65%),
    repeating-linear-gradient(90deg, rgba(142, 111, 68, 0.22), rgba(142, 111, 68, 0.22) 2px, rgba(196, 171, 132, 0.15) 2px, rgba(196, 171, 132, 0.15) 5px),
    linear-gradient(180deg, #d9c5a1, #c8b087);
  border: 4px solid rgba(98, 67, 35, 0.8);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 10px 22px rgba(44, 31, 18, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ro-particle {
  position: absolute;
  top: var(--top);
  left: var(--left);
  z-index: 1;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.12) 30%, currentColor 72%);
  color: #2f97c4;
  opacity: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.ro-particle.is-accent {
  color: #f12048;
}

.ro-particle.is-warm {
  color: #f2a419;
}

.ro-particle-pass {
  animation: ro-flow-pass var(--duration, 5.4s) linear infinite;
  animation-delay: var(--delay, 0s);
}

.ro-particle-reject {
  animation: ro-flow-reject var(--duration, 4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.ro-stage-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 1.25rem;
}

.ro-stage-chip {
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(31, 107, 45, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--segon-heading);
  font-weight: 600;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.ro-stage-chip:hover,
.ro-stage-chip:focus-visible {
  border-color: rgba(31, 107, 45, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(16, 34, 22, 0.08);
}

.ro-stage-chip.is-active {
  border-color: rgba(31, 107, 45, 0.45);
  background: linear-gradient(135deg, rgba(31, 107, 45, 0.14), rgba(31, 107, 45, 0.05));
  color: var(--segon-accent-dark);
  box-shadow: inset 0 0 0 1px rgba(31, 107, 45, 0.08);
}

.ro-stage-copy {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(31, 107, 45, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.ro-stage-copy strong {
  color: var(--segon-heading);
}

.ro-demo[data-ro-stage="pressure"] .ro-pressure-cap {
  transform: translateY(-50%) scale(1.04);
  box-shadow:
    inset 0 0 0 9px rgba(255, 255, 255, 0.3),
    0 0 0 10px rgba(26, 188, 213, 0.42),
    0 0 0 18px rgba(255, 33, 75, 0.12);
}

.ro-demo[data-ro-stage="dirty"] .ro-zone-left {
  background: linear-gradient(90deg, rgba(34, 155, 190, 0.22), rgba(34, 155, 190, 0.04));
}

.ro-demo[data-ro-stage="membrane"] .ro-membrane {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 10px 22px rgba(44, 31, 18, 0.16),
    0 0 0 16px rgba(200, 176, 135, 0.18);
}

.ro-demo[data-ro-stage="clean"] .ro-zone-right {
  background: linear-gradient(90deg, rgba(197, 244, 255, 0.18), rgba(112, 196, 224, 0.32));
}

.ro-demo[data-ro-stage="pressure"] .ro-label-pressure,
.ro-demo[data-ro-stage="dirty"] .ro-label-dirty,
.ro-demo[data-ro-stage="membrane"] .ro-label-membrane,
.ro-demo[data-ro-stage="clean"] .ro-label-clean {
  color: var(--segon-accent-dark);
}

@keyframes ro-flow-pass {
  0% {
    transform: translateX(0) scale(0.88);
    opacity: 0;
  }
  14% {
    transform: translateX(calc(var(--distance) * 0.12)) scale(1);
    opacity: 0.92;
  }
  56% {
    transform: translateX(calc(var(--distance) * 0.58)) scale(1);
    opacity: 0.92;
  }
  86% {
    transform: translateX(calc(var(--distance) * 0.9)) scale(0.98);
    opacity: 0.9;
  }
  100% {
    transform: translateX(var(--distance)) scale(0.88);
    opacity: 0;
  }
}

@keyframes ro-flow-clean {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  18% {
    opacity: 0.86;
  }
  84% {
    transform: translateX(var(--distance));
    opacity: 0.9;
  }
  100% {
    transform: translateX(calc(var(--distance) + 24px));
    opacity: 0;
  }
}

@keyframes ro-flow-reject {
  0% {
    transform: translateX(0) translateY(0) scale(0.92);
    opacity: 0;
  }
  18% {
    transform: translateX(8px) translateY(-1px) scale(1);
    opacity: 0.95;
  }
  42% {
    transform: translateX(26px) translateY(-5px) scale(1.03);
    opacity: 0.95;
  }
  52% {
    transform: translateX(30px) translateY(2px) scale(1.06);
    opacity: 1;
  }
  74% {
    transform: translateX(-20px) translateY(9px) scale(0.96);
    opacity: 0.9;
  }
  100% {
    transform: translateX(-48px) translateY(1px) scale(0.88);
    opacity: 0;
  }
}

#map {
  min-height: 400px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--segon-radius-lg);
  overflow: hidden;
  box-shadow: var(--segon-shadow);
}

.kontakt .container:first-child {
  margin-bottom: 0.9rem;
}

.kontakt-meta-blok {
  height: 100%;
  padding: 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: var(--segon-radius-md);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--segon-shadow-soft);
  text-align: left;
}

.kontakt-meta-blok i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 0.85rem;
  border-radius: 14px;
  background: var(--segon-accent-soft);
  color: var(--segon-accent);
  font-size: 1.45rem;
}

.kontakt-meta-blok h4 {
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
}

.kontakt-meta-blok p {
  margin-bottom: 0;
  font-size: 0.98rem;
  color: var(--segon-text-muted);
}

.kontakt-email-display {
  display: inline-block;
  min-height: 1.6rem;
  font-weight: 600;
  color: var(--segon-heading);
}

.kontakt-email-display a {
  color: var(--segon-accent);
  text-decoration: none;
}

.kontakt-email-display a:hover,
.kontakt-email-display a:focus {
  color: var(--segon-accent-dark);
  text-decoration: underline;
}

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

.contact-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.contact-consent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 11, 0.56);
  backdrop-filter: blur(6px);
}

.contact-consent-dialog {
  position: relative;
  width: min(100%, 680px);
  padding: 28px 28px 24px;
  border: 1px solid rgba(31, 107, 45, 0.14);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(31, 107, 45, 0.08) 0%, rgba(255, 255, 255, 0.98) 36%),
    rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(10, 28, 16, 0.24);
}

.contact-consent-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 107, 45, 0.1);
  color: var(--segon-accent-dark);
}

.contact-consent-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.78rem;
  margin-bottom: 0.9rem;
  border-radius: 999px;
  background: rgba(31, 107, 45, 0.1);
  color: var(--segon-accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-consent-dialog h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
}

.contact-consent-dialog p {
  margin-bottom: 1rem;
  color: var(--segon-text-muted);
}

.contact-consent-note {
  padding: 16px 18px;
  border: 1px solid rgba(31, 107, 45, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--segon-text);
  font-size: 0.95rem;
  line-height: 1.65;
}

.contact-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.1rem;
}

.btn,
.btn-outline-success {
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  font-weight: 600;
  box-shadow: none;
}

.btn-success {
  border-color: var(--segon-accent);
  background: var(--segon-accent);
}

.btn-success:hover,
.btn-success:focus {
  border-color: var(--segon-accent-dark);
  background: var(--segon-accent-dark);
}

.btn-outline-success {
  border-color: rgba(31, 107, 45, 0.32);
  color: var(--segon-accent);
}

.btn-outline-success:hover,
.btn-outline-success:focus {
  border-color: var(--segon-accent);
  background: var(--segon-accent);
  color: #fff;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  border-color: #fff;
  background: #fff;
  color: var(--segon-accent-dark);
}

.site-footer {
  margin-top: auto;
  padding: 26px 0 28px;
  background: linear-gradient(135deg, #15321c 0%, #1c4a26 52%, #255e31 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .container {
  padding: 0 18px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

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

.footer-brand,
.footer-card {
  height: 100%;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.footer-brand img {
  height: 30px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p,
.footer-title,
.footer-links a,
.footer-bottom h5 {
  color: rgba(246, 250, 252, 0.92);
}

.footer-brand p {
  margin-bottom: 0;
  font-size: 0.98rem;
  line-height: 1.58;
  color: rgba(232, 241, 244, 0.78);
}

.footer-title {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 0.2rem;
}

.footer-links a {
  font-size: 0.96rem;
  line-height: 1.58;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #ffffff;
}

.footer-contact-details p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.58;
  color: rgba(246, 250, 252, 0.92);
}

.footer-contact-details strong {
  font-weight: 700;
  color: #ffffff;
}

.footer-contact-details p + p {
  margin-top: 0.2rem;
}

.footer-partners {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
}

.footer-partners-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
  color: rgba(246, 250, 252, 0.92);
}

.footer-partners-logos {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.footer-partners-logos img {
  display: block;
  width: min(100%, 520px);
  height: auto;
  object-fit: contain;
  opacity: 0.92;
}

.footer-bottom {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom h5 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

:focus-visible {
  outline: 3px solid rgba(31, 107, 45, 0.28);
  outline-offset: 3px;
}

@media (max-width: 991.98px) {
  .header.navigation {
    padding-top: 0;
  }

  .navbar {
    padding: 10px 0;
    gap: 12px;
  }

  .navbar-brand {
    margin-right: 0;
    padding: 10px 0;
  }

  .navbar-collapse {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .dropdown-menu {
    min-width: 100%;
    margin-top: 6px;
    box-shadow: none;
  }

  .navbar-light .navbar-nav {
    gap: 0;
  }

  .o-nas .container,
  .content-shell,
  .single-page-header .container,
  .blog.section .container,
  .site-footer .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-content {
    top: 24px;
    bottom: 24px;
    max-width: 560px;
  }

  .hero-area {
    padding: 8px 0 18px;
  }

  .ro-demo {
    padding: 22px 20px;
  }

  .ro-diagram {
    padding-top: 100px;
  }

  .ro-pipe {
    height: 196px;
  }

  .ro-label {
    font-size: 0.76rem;
  }

  .ro-label-dirty {
    left: 12%;
  }

  .ro-label-membrane {
    left: 54%;
  }

  .ro-stage-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-block-grid {
    grid-template-columns: 1fr;
  }

  .osmosis-list-grid {
    grid-template-columns: 1fr;
  }

  .osmosis-application-groups {
    grid-template-columns: 1fr;
  }

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

  .product-cta-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-anchor-nav {
    gap: 8px;
  }


  .product-anchor-nav a {
    padding: 0.6rem 0.88rem;
  }

  .sector-hero-area {
    padding: 8px 0 12px;
  }

  .sector-hero-media,
  .sector-hero-media picture,
  .sector-hero-media img {
    min-height: 240px;
    height: 240px;
  }

  .sector-hero-title {
    max-width: 16ch;
    padding: 0.82rem 1rem;
    font-size: clamp(1.35rem, 4vw, 2rem);
  }

  .o-nas .container {
    padding: 32px 30px;
  }

  .home-about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .home-about-intro {
    max-width: 100%;
  }

  .home-about-copy {
    grid-template-columns: 1fr;
  }

  #front-karty .card-body {
    padding: 24px;
  }

  #front-karty .home-card-top::before {
    width: 56px;
  }

  .hero-content h1 {
    max-width: 13ch;
    font-size: clamp(1.55rem, 3.4vw, 2.45rem);
  }

  .hero-content p {
    max-width: 44ch;
    font-size: 0.95rem;
  }



  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 992px) {
  .hero-content h1 {
    max-width: 24ch;
  }

  .hero-break-desktop {
    display: block;
  }

  .footer-partners-title {
    font-size: 1.16rem;
  }

  .footer-partners-logos img {
    width: min(50%, 620px);
  }
}

@media (max-width: 767.98px) {
  .kontakt .row.mb-3 {
    row-gap: 14px;
  }

  .ro-demo {
    padding: 18px 16px;
  }

  .ro-demo-head h3 {
    margin-top: 0.35rem;
  }

  .product-hero-image {
    width: 100%;
    border-radius: 22px;
  }

  .product-spec-meter-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .product-block,
  .product-block-highlight {
    padding: 20px 18px;
    border-radius: 20px;
  }

  .product-section-head {
    gap: 12px;
    margin-bottom: 0.9rem;
  }

  .product-section-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1.08rem;
  }

  .product-anchor-nav a {
    width: 100%;
    justify-content: flex-start;
  }

  .ro-diagram {
    padding-top: 98px;
    padding-bottom: 6px;
  }

  .ro-pipe {
    height: 158px;
    border-width: 6px;
  }

  .ro-pressure-cap {
    left: 14px;
    width: 72px;
    height: 72px;
    box-shadow:
      inset 0 0 0 7px rgba(255, 255, 255, 0.3),
      0 0 0 8px rgba(26, 188, 213, 0.36);
  }

  .ro-membrane {
    width: 66px;
    height: 108px;
    border-width: 3px;
  }

  .ro-label {
    max-width: 9ch;
    font-size: 0.66rem;
    letter-spacing: 0.04em;
  }

  .ro-label-pressure {
    top: 22px;
    left: 0;
  }

  .ro-label-pressure::after {
    left: 26px;
    width: 36px;
  }

  .ro-label-dirty {
    top: 0;
    left: 15%;
  }

  .ro-label-dirty::after {
    left: 56px;
    width: 48px;
  }

  .ro-label-membrane {
    top: -4px;
    left: 50%;
    transform: translateX(-18%);
  }

  .ro-label-membrane::after {
    left: 34px;
    width: 58px;
  }

  .ro-label-clean {
    top: 16px;
    right: 1%;
  }

  .ro-label-clean::after {
    right: 40px;
    width: 42px;
  }

  .ro-stage-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ro-stage-chip {
    min-height: 44px;
    padding: 0.68rem 0.9rem;
  }

  .home-about-steps {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 0;
    padding-left: 2.2rem;
  }

  .home-about-steps::before {
    top: 0.6rem;
    bottom: 0.6rem;
    left: 0.75rem;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, rgba(31, 107, 45, 0.24), rgba(31, 107, 45, 0.4), rgba(31, 107, 45, 0.24));
  }

  .home-about-steps span {
    min-height: 0;
    justify-content: flex-start;
    padding: 0 0 0 0.4rem;
    text-align: left;
  }

  .home-about-steps span::before {
    top: 0.12rem;
    left: -1.45rem;
    transform: none;
  }

  .home-about-steps span::after {
    top: 0.12rem;
    left: -1.45rem;
    transform: translate(-50%, -120%);
  }

  .hero-area {
    padding: 6px 0 16px;
  }

  .sector-hero-area {
    padding: 6px 0 12px;
  }

  .hero-area img,
  .hero-area .hero-video,
  .hero-area .hero-media {
    min-height: 520px;
    height: 520px;
  }

  .hero-content {
    left: 20px;
    right: 20px;
    top: 20px;
    bottom: 20px;
  }

  .sector-hero-media,
  .sector-hero-media picture,
  .sector-hero-media img {
    min-height: 220px;
    height: 220px;
  }

  .sector-hero-content {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .sector-hero-title {
    max-width: none;
    padding: 0.78rem 0.92rem;
    border-radius: 18px;
    font-size: clamp(1.3rem, 6vw, 1.9rem);
  }

  .hero-content h1 {
    max-width: none;
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .hero-content p {
    max-width: none;
    font-size: 0.96rem;
  }

  #front-karty .home-card-list {
    margin-bottom: 1.35rem;
  }

  #front-karty .home-card-top {
    padding-top: 0.82rem;
  }

  #front-karty .home-card-top::before {
    width: 52px;
  }

  .contact-consent-modal {
    padding: 18px;
  }

  .contact-consent-dialog {
    padding: 22px 20px 20px;
    border-radius: 24px;
  }

  .contact-consent-actions .btn {
    width: 100%;
    justify-content: center;
  }

  #front-karty .card-text {
    margin-bottom: 0.72rem !important;
  }

  #front-karty .card-text:last-child {
    margin-bottom: 0 !important;
  }

  #front-karty .card-text a {
    align-items: flex-start;
    line-height: 1.45;
  }

  .hero-actions {
    margin-bottom: 0;
  }

  .section-intro {
    margin-bottom: 1.35rem;
  }

  .o-nas .container {
    padding: 26px 18px;
  }

  .home-about-copy-block {
    padding: 18px 18px;
    border-radius: 18px;
  }

  .single-page-header .container {
    padding: 10px 18px 8px;
  }

  .content-shell,
  .blog.section .card-body {
    padding: 22px;
  }

  #front-karty {
    padding-bottom: 18px;
  }

  #front-karty .card-body {
    padding: 22px;
  }

  .single-page-header h2 {
    max-width: none;
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .content-shell h2 {
    font-size: clamp(1.55rem, 6vw, 2rem);
  }

  .content-shell h3 {
    font-size: clamp(1.24rem, 4.8vw, 1.5rem);
  }

  .content-shell h4 {
    font-size: clamp(1.08rem, 4vw, 1.24rem);
  }

  .single-page-header .container,
  .content-shell {
    border-radius: 22px;
  }

  #map {
    min-height: 320px;
  }
}
