:root {
  --deep: #001d2a;
  --cyan: #00bde9;
  --paper: #f2f6f7;
  --ink: #002332;
  --line: rgba(0, 189, 233, 0.28);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
.ideal-page {
  background: var(--deep);
  color: #eaf4f7;
}
.ideal-page em {
  font-style: normal;
  color: var(--cyan);
}
.site-header {
  background: #001e2a;
}
.ideal-hero {
  position: relative;
  min-height: 790px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(
    circle at 78% 42%,
    #0b5269 0%,
    #003247 30%,
    #001824 70%
  );
}
.ideal-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 20, 31, 0.98),
    rgba(0, 26, 40, 0.78) 54%,
    rgba(0, 20, 31, 0.12)
  );
}
.ideal-hero-art {
  position: absolute;
  right: 4%;
  top: 8%;
  bottom: 12%;
  width: 46%;
  background: radial-gradient(
    circle at 58% 44%,
    #0b5168 0%,
    #063447 48%,
    #001f2e 100%
  );
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(0, 189, 233, 0.2);
}
.ideal-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
}
.ideal-copy {
  position: relative;
  z-index: 2;
  width: min(650px, 46%);
  margin-left: clamp(28px, 6vw, 100px);
}
.back {
  display: inline-block;
  color: #91dff4;
  text-decoration: none;
  margin-bottom: 42px;
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #84d9f0;
  font-weight: 800;
}
.ideal-copy h1 {
  font-size: clamp(3.4rem, 6.3vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  margin: 21px 0 30px;
}
.ideal-copy > p:last-of-type {
  color: #c5d9df;
  font-size: 1.08rem;
  line-height: 1.7;
}
.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.button {
  display: inline-flex;
  padding: 17px 24px;
  background: var(--cyan);
  border: 1px solid var(--cyan);
  color: #00202b;
  text-decoration: none;
  font-weight: 800;
}
.button.ghost {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.35);
}
.ideal-specs {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(0, 28, 42, 0.92);
  border-top: 1px solid var(--line);
}
.ideal-specs span {
  padding: 26px 4vw;
  border-right: 1px solid var(--line);
  color: #91afba;
  font-size: 0.72rem;
  text-transform: uppercase;
}
.ideal-specs b {
  display: block;
  color: white;
  font-size: 1.28rem;
  text-transform: none;
  margin-bottom: 5px;
}
.section {
  width: min(1180px, calc(100% - 80px));
  margin: auto;
  padding: 108px 0;
}
.ideal-intro,
.section-heading,
.profile-layout,
.glazing-layout,
.window-cta {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 8vw;
}
.ideal-intro h2,
.section-heading h2,
.window-cta h2 {
  font-size: clamp(2.35rem, 4.2vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  margin: 16px 0;
}
.ideal-intro > div:last-child,
.heading-note,
.glazing-layout > div > p {
  color: #afc6ce;
  line-height: 1.75;
  font-size: 1.03rem;
}
.ideal-intro li {
  margin: 11px 0;
}
.profile-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 48%, rgba(0, 189, 233, 0.12), transparent 34%),
    linear-gradient(135deg, #00374d 0%, #002536 44%, #001823 100%);
  color: #eef8fb;
  border-block: 1px solid var(--line);
}
.profile-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 62%, rgba(0, 189, 233, 0.035) 62% 63%, transparent 63%);
}
.profile-section .eyebrow,
.profile-data b {
  color: #009fc8;
}
.heading-note {
  align-self: end;
  margin: 0;
}
.profile-section .heading-note {
  color: #afc7d0;
}
.profile-layout {
  margin-top: 55px;
  align-items: start;
}
.profile-layout figure {
  margin: 0;
  background: linear-gradient(145deg, rgba(8, 55, 72, 0.88), rgba(0, 24, 36, 0.96));
  border: 1px solid rgba(0, 189, 233, 0.32);
  padding: 24px;
  box-shadow: 0 28px 70px rgba(0, 8, 14, 0.28);
}
.profile-layout figure img {
  display: block;
  width: 100%;
  height: 650px;
  object-fit: contain;
  object-position: center;
}
.profile-layout figcaption {
  padding-top: 14px;
  color: #8db0bd;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.profile-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(0, 189, 233, 0.24);
  border: 1px solid rgba(0, 189, 233, 0.25);
  box-shadow: 0 28px 70px rgba(0, 8, 14, 0.2);
}
.profile-data article {
  background: linear-gradient(145deg, rgba(4, 47, 64, 0.94), rgba(0, 30, 45, 0.96));
  padding: 30px;
  min-height: 220px;
}
.profile-data h3 {
  font-size: 1.4rem;
  margin: 18px 0 9px;
}
.profile-data p {
  color: #a9c2cc;
  line-height: 1.65;
  font-size: 0.86rem;
}
.glazing-layout {
  margin-top: 55px;
  align-items: center;
}
.glazing-layout h3 {
  font-size: 2rem;
}
.glazing-layout img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #f7f9f9;
}
.glass-facts {
  display: grid;
  gap: 1px;
  background: var(--line);
  margin-top: 32px;
}
.glass-facts span {
  display: grid;
  grid-template-columns: 110px 1fr;
  padding: 17px;
  background: #052c3b;
  color: #aac3cc;
}
.glass-facts b {
  color: white;
}
.benefits {
  background: linear-gradient(135deg, #001521, #00324a);
  border-block: 1px solid var(--line);
}
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 55px;
}
.benefit-card {
  position: relative;
  display: block;
  min-height: 430px;
  border: 1px solid var(--line);
  background: #03283c;
  overflow: hidden;
  text-decoration: none;
  color: #eef8fb;
  transition: 0.25s;
}
.benefit-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 18, 30, 0.98),
    rgba(0, 27, 43, 0.9) 50%,
    rgba(0, 20, 34, 0.14)
  );
}
.benefit-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.benefit-card > div {
  position: relative;
  z-index: 2;
  width: 64%;
  padding: 34px;
}
.benefit-card span,
.benefit-card b {
  color: var(--cyan);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}
.benefit-card h3 {
  font-size: 1.75rem;
  margin: 74px 0 13px;
}
.benefit-card p {
  color: #b4ccd5;
  font-size: 0.84rem;
  line-height: 1.68;
}
.benefit-card b {
  display: inline-block;
  margin-top: 20px;
  text-transform: uppercase;
}
.benefit-card:hover {
  transform: translateY(-5px);
  border-color: var(--cyan);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.3);
}
.benefit-card:hover img {
  transform: scale(1.035);
}
.window-cta {
  width: min(1340px, 100%);
  padding: 100px max(40px, calc((100% - 1180px) / 2));
  background: linear-gradient(120deg, #00425a, #002230);
  align-items: end;
}
.window-cta p {
  color: #b7cbd2;
}
.window-cta .actions {
  justify-content: flex-end;
}
@media (max-width: 900px) {
  .ideal-copy {
    width: 47%;
    margin-left: 25px;
  }
  .ideal-hero-art {
    right: 2%;
    width: 49%;
  }
  .section {
    width: calc(100% - 40px);
    padding: 76px 0;
  }
  .ideal-intro,
  .section-heading,
  .profile-layout,
  .glazing-layout,
  .window-cta {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .window-cta .actions {
    justify-content: flex-start;
  }
}
@media (max-width: 600px) {
  .ideal-hero {
    min-height: 800px;
    align-items: flex-end;
  }
  .ideal-hero-art {
    top: 25px;
    left: 20px;
    right: 20px;
    width: auto;
    height: 315px;
    bottom: auto;
  }
  .ideal-hero:after {
    background: linear-gradient(
      180deg,
      rgba(0, 18, 30, 0.06),
      rgba(0, 18, 30, 0.99) 57%
    );
  }
  .ideal-copy {
    width: auto;
    margin: 0 22px 190px;
  }
  .ideal-copy h1 {
    font-size: 3rem;
  }
  .ideal-copy > p:last-of-type {
    font-size: 0.95rem;
  }
  .ideal-specs {
    grid-template-columns: 1fr 1fr;
  }
  .ideal-specs span {
    padding: 16px 20px;
  }
  .profile-data,
  .benefit-grid {
    grid-template-columns: 1fr;
  }
  .profile-layout figure {
    padding: 9px;
  }
  .profile-layout figure img {
    height: 470px;
  }
  .benefit-card {
    min-height: 430px;
  }
  .benefit-card:after {
    background: linear-gradient(
      180deg,
      rgba(0, 18, 30, 0.14),
      rgba(0, 18, 30, 0.98) 58%
    );
  }
  .benefit-card > div {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    padding: 24px;
  }
  .benefit-card h3 {
    margin: 18px 0 10px;
  }
  .glass-facts span {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* V24: rzeczywisty przekroj INTERTEC 85 MD */
.ideal-hero-art img,
.profile-layout figure img,
.ideal7-real img {
  object-fit: contain;
  object-position: center;
}
.benefit-card img {
  object-position: center 70%;
}
