:root {
  --bg: #ffffff;
  --bg-soft: #f5f7f8;
  --bg-warm: #fbfaf5;
  --text: #262a2d;
  --muted: #626b72;
  --line: #dde3e7;
  --brand: #e6d600;
  --brand-dark: #474a4d;
  --blue: #0753b5;
  --green: #2f8b36;
  --red: #d32323;
  --shadow: 0 18px 50px rgba(18, 24, 30, 0.09);
  --radius: 8px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background: var(--bg);
}

body,
button,
input {
  letter-spacing: 0;
}

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

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

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  color: var(--text);
  font-weight: 700;
}

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

.section {
  padding: 70px 0;
  scroll-margin-top: 124px;
}

.section-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(221, 227, 231, 0.9);
  box-shadow: 0 10px 28px rgba(19, 27, 34, 0.06);
  backdrop-filter: blur(12px);
}

.topbar {
  background: #f4f4f4;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.89rem;
}

.topbar__inner {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  white-space: nowrap;
}

.topbar p {
  margin: 0;
  color: var(--brand-dark);
  font-style: italic;
}

.topbar a {
  color: #1b5f9f;
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.topbar a:hover,
.main-nav a:hover {
  color: var(--blue);
}

.nav-shell__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

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

.brand img {
  width: 249px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #2f3438;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-toggle,
.nav-toggle-label {
  display: none;
}

.hero {
  position: relative;
  min-height: 360px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #141714 url("../images/tlo01.png") center / cover no-repeat;
}

.hero__video,
.light-strip video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.48) 44%, rgba(0, 0, 0, 0.12) 100%),
    radial-gradient(circle at 78% 24%, rgba(230, 214, 0, 0.22), transparent 30%);
}

.hero__content {
  position: relative;
  max-width: var(--container);
  padding: 38px 0;
  color: #fff;
}

.hero h1 {
  max-width: 660px;
  color: #fff;
  font-size: clamp(1.35rem, 2.7vw, 2.05rem);
}

.hero p {
  max-width: 590px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.01rem;
}

.hero .eyebrow {
  color: var(--brand);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 700;
}

.button--primary {
  background: var(--brand);
  color: #202020;
}

.button--ghost {
  border: 1px solid rgba(255, 255, 255, 0.54);
  color: #fff;
}

.values {
  background: var(--bg);
}

.values.section {
  padding: 32px 0 44px;
}

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

.value-card {
  min-height: 224px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
  box-shadow: 0 10px 24px rgba(18, 24, 30, 0.04);
}

.value-card__icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border: 1px solid #dfe7ec;
  border-radius: 50%;
  background: #f1f5f7;
}

.value-card__icon img {
  width: 34px;
  height: 34px;
  opacity: 0.95;
}

.value-card h2 {
  margin-bottom: 14px;
  font-size: 1.28rem;
}

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

.about {
  background: var(--bg-soft);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 54px;
  align-items: start;
}

.about__copy h2,
.section-heading h2,
.materials h2,
.contact h2 {
  margin-bottom: 18px;
  font-size: clamp(1.2rem, 2vw, 1.62rem);
}

.about__copy p,
.materials p,
.contact p {
  color: var(--muted);
}

.about__inline-bulb {
  float: right;
  width: min(250px, 38%);
  margin: 4px 0 18px 30px;
}

.about__notes {
  position: sticky;
  top: 150px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.notice {
  padding: 18px 18px 16px;
  border-left: 4px solid currentColor;
  background: #fff;
}

.notice + .notice {
  margin-top: 14px;
}

.notice p {
  margin: 0;
}

.notice--red {
  color: var(--red);
  background: #fff6f6;
}

.notice--green {
  color: var(--green);
  background: #f4fbf4;
}

.statement {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
}

.statement img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.statement__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 12, 24, 0.42), rgba(6, 12, 24, 0.12));
}

.statement__content {
  position: relative;
  width: min(100% - 40px, var(--container));
}

.statement h2 {
  color: #fff;
  font-size: clamp(1.32rem, 2.8vw, 2.05rem);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.42);
}

.statement a {
  display: inline-flex;
  margin-top: 26px;
  padding: 9px 16px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
  color: #202020;
  font-weight: 700;
}

.archive-strip {
  height: 16px;
  background: #bab8b8;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading p:last-child {
  color: var(--muted);
}

.offer.section {
  padding-bottom: 28px;
}

.tabs {
  display: grid;
  grid-template-columns: minmax(190px, 0.72fr) minmax(410px, 1.56fr) minmax(190px, 0.72fr);
  gap: 18px;
  align-items: stretch;
}

.tabs > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.tab-labels {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
}

.tab-labels label {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-soft);
  color: #30363a;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tab-labels label:hover {
  border-color: #c5d3dd;
  background: #fff;
}

.tab-panels {
  min-height: 216px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.tab-panel {
  display: none;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 16px;
  align-items: center;
  min-height: 216px;
  padding: 20px 22px;
}

.tab-panel p {
  grid-column: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.48;
}

.tab-panel .offer-art {
  grid-column: 2;
  justify-self: center;
  width: auto;
  max-width: 174px;
  max-height: 132px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(21, 29, 36, 0.12));
}

.tab-panel .offer-art--line {
  width: 82px;
  max-height: 92px;
  filter:
    brightness(0) saturate(100%) invert(27%) sepia(12%) saturate(570%) hue-rotate(160deg) brightness(90%) contrast(88%)
    drop-shadow(0 12px 18px rgba(21, 29, 36, 0.1));
  opacity: 0.92;
}

.tab-panel .offer-art--wide {
  max-width: 190px;
  max-height: 116px;
}

.tab-panel .offer-art--meter {
  max-width: 132px;
  max-height: 138px;
}

.tab-panel .offer-art--logo {
  max-width: 170px;
  max-height: 58px;
  filter: none;
}

#tab-instalacje:checked ~ .tab-labels label[for="tab-instalacje"],
#tab-remonty:checked ~ .tab-labels label[for="tab-remonty"],
#tab-pomiary:checked ~ .tab-labels label[for="tab-pomiary"],
#tab-osprzet:checked ~ .tab-labels label[for="tab-osprzet"],
#tab-tv:checked ~ .tab-labels label[for="tab-tv"],
#tab-fibaro:checked ~ .tab-labels label[for="tab-fibaro"] {
  border-color: var(--blue);
  background: #eef5ff;
  color: var(--blue);
}

#tab-instalacje:checked ~ .tab-panels #panel-instalacje,
#tab-remonty:checked ~ .tab-panels #panel-remonty,
#tab-pomiary:checked ~ .tab-panels #panel-pomiary,
#tab-osprzet:checked ~ .tab-panels #panel-osprzet,
#tab-tv:checked ~ .tab-panels #panel-tv,
#tab-fibaro:checked ~ .tab-panels #panel-fibaro {
  display: grid;
}

.light-strip {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background: #0d0e0d url("../images/tlo01.png") center / cover no-repeat;
}

.materials {
  background: var(--bg-warm);
}

.materials.section {
  padding-top: 46px;
}

.materials__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 44px;
  align-items: center;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.logo-grid img {
  width: 100%;
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}

.contact {
  background: #202428;
  color: #fff;
}

.contact h2,
.contact .section-kicker {
  color: #fff;
}

.contact p {
  color: rgba(255, 255, 255, 0.72);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(420px, 1.28fr);
  gap: 34px;
  align-items: stretch;
}

.contact-card {
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow);
}

.contact-card--details {
  display: grid;
  min-height: 384px;
  align-content: stretch;
  grid-template-rows: auto auto 1fr;
  gap: 32px;
  font-size: 0.94rem;
  line-height: 1.45;
  font-style: normal;
}

.contact-card__brand {
  padding-top: 4px;
}

.contact-card__brand img {
  width: 210px;
  max-width: 100%;
  height: auto;
  margin-bottom: 12px;
}

.contact-card__brand > strong {
  display: block;
  font-size: 1rem;
}

.contact-card__body {
  display: grid;
  gap: 24px;
}

.contact-card__footer {
  align-self: end;
  padding-bottom: 2px;
}

.contact-group {
  display: grid;
  gap: 0;
}

.contact-group + .contact-group {
  margin-top: 0;
}

.contact-group--links span {
  white-space: nowrap;
}

.contact-card a {
  color: var(--blue);
  font-weight: 700;
}

.contact-card--map {
  display: grid;
  grid-template-rows: minmax(320px, 1fr) auto;
  gap: 14px;
  padding: 16px;
}

.contact-card--map iframe {
  width: 100%;
  min-height: 320px;
  height: 100%;
  border: 0;
  border-radius: 6px;
}

.map-link {
  justify-self: start;
  margin: 0 0 2px;
}

.site-footer {
  padding: 22px 0;
  background: #171a1d;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .topbar__inner {
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 8px 0;
    white-space: normal;
  }

  .topbar__links {
    gap: 16px;
    margin-left: auto;
  }

  .topbar p,
  .topbar span {
    display: none;
  }

  .nav-shell__inner {
    min-height: 68px;
  }

  .brand img {
    width: 216px;
  }

  .nav-toggle-label {
    display: grid;
    gap: 5px;
    width: 42px;
    height: 42px;
    align-content: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
  }

  .nav-toggle-label span {
    width: 19px;
    height: 2px;
    background: var(--text);
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 18px 20px 22px;
    border-top: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 18px 28px rgba(18, 24, 30, 0.08);
  }

  .nav-toggle:checked ~ .main-nav {
    display: grid;
    gap: 14px;
  }

  .hero {
    min-height: 420px;
  }

  .hero__content {
    padding: 46px 0;
  }

  .values__grid,
  .about__grid,
  .materials__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .contact__grid {
    align-items: start;
  }

  .contact-card--details {
    min-height: 0;
    gap: 18px;
  }

  .contact-card__body {
    align-content: start;
    gap: 14px;
  }

  .about__notes {
    position: static;
  }

  .about__inline-bulb {
    width: min(220px, 42%);
    margin-left: 22px;
  }

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

  .tab-labels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .tab-labels--left {
    margin-bottom: 8px;
  }

  .tab-labels--right {
    margin-bottom: 8px;
    order: 2;
  }

  .tab-panels {
    order: 3;
    min-height: 0;
  }

  .tab-panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .tab-panel .offer-art {
    grid-column: 1;
    grid-row: auto;
    max-height: 150px;
  }

  .tab-panel .offer-art--line {
    width: 86px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 56px 0;
    scroll-margin-top: 116px;
  }

  .topbar__inner {
    justify-content: center;
    font-size: 0.82rem;
  }

  .topbar a[href^="mailto"] {
    display: none;
  }

  .brand img {
    width: 188px;
  }

  .hero h1 {
    font-size: 1.55rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero__actions,
  .button {
    width: 100%;
  }

  .statement {
    min-height: 250px;
  }

  .about__inline-bulb {
    float: none;
    width: min(230px, 74%);
    margin: 0 auto 22px;
  }

  .tab-labels {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .tab-panel {
    padding: 24px 20px;
  }

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

  .contact-card {
    padding: 20px;
  }

  .contact-group--links span {
    white-space: normal;
  }
}
