:root {
  --green: #4fb26b;
  --green-dark: #2f7f48;
  --black: #1d1d1b;
  --ink: #252525;
  --muted: #66706a;
  --line: #dfe7e2;
  --soft: #f4f7f5;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(29, 29, 27, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

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

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

.section {
  padding: 96px 0;
}

.section.compact {
  padding: 72px 0;
}

.muted {
  background: var(--soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 16px max(24px, calc((100vw - 1280px) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(223, 231, 226, 0.85);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 35px rgba(29, 29, 27, 0.08);
}

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

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--black);
}

.mobile-nav-cta {
  display: none;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.header-cta,
.button.primary {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 14px 28px rgba(79, 178, 107, 0.22);
}

.button.ghost {
  color: var(--black);
  background: var(--white);
  border-color: var(--line);
}

.button.full {
  width: 100%;
}

.header-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--black);
}

.hero {
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 68px;
  padding-bottom: 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: 64px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  color: var(--black);
  font-size: clamp(42px, 4vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  color: var(--black);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  color: var(--black);
  font-size: 22px;
  line-height: 1.18;
}

.lead {
  max-width: 690px;
  color: var(--muted);
  font-size: 20px;
}

.lead.small {
  font-size: 18px;
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 34px;
}

.trust-row {
  margin-top: 28px;
}

.trust-row span {
  padding: 10px 14px;
  color: var(--black);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.hero-panel {
  position: relative;
  min-height: 460px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-panel img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.split {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 54px;
}

.audience-grid,
.feature-list,
.steps,
.documents-grid {
  display: grid;
  gap: 18px;
}

.audience-grid {
  grid-template-columns: repeat(3, 1fr);
}

.audience-grid article,
.feature-list article,
.steps article,
.tariff-card,
.document-card,
.inquiry-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.audience-grid article {
  position: relative;
  padding: 26px;
}

.audience-grid .audience-icon,
.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  color: var(--green-dark);
  background: #e8f6ed;
  border-radius: 999px;
  font-weight: 800;
}

.audience-grid .audience-icon {
  position: absolute;
  top: 26px;
  right: 26px;
  margin-bottom: 0;
}

.audience-grid h3 {
  padding-right: 48px;
}

.audience-grid .audience-icon img {
  width: 20px;
  height: 20px;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

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

.section-head p,
.audience-grid p,
.feature-list p,
.steps p,
.tariff-card p {
  color: var(--muted);
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.tariff-heading {
  max-width: none;
  white-space: nowrap;
}

.tab {
  min-height: 42px;
  padding: 0 18px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.tab.is-active {
  color: var(--white);
  background: var(--black);
  border-color: var(--black);
}

.tariff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tariff-card {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 26px;
}

.tariff-card[hidden] {
  display: none;
}

.tariff-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.tariff-top > div {
  min-width: 0;
}

.tariff-top span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.tariff-top strong {
  display: block;
  color: var(--black);
  font-size: 27px;
  line-height: 1.05;
}

.tariff-top .tariff-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 999px;
}

.tariff-top .tariff-icon img {
  width: 24px;
  height: 24px;
}

.tariff-elektrina {
  border-top: 3px solid var(--green);
}

.tariff-elektrina .tariff-icon {
  background: #e8f6ed;
}

.tariff-plyn {
  border-top: 3px solid #3979bc;
}

.tariff-plyn .tariff-top > div > span,
.tariff-plyn a {
  color: #3979bc;
}

.tariff-plyn .tariff-icon {
  background: #e8f1fb;
}

.price-placeholder {
  margin: 10px 0 16px;
  padding: 14px;
  color: var(--black);
  background: var(--soft);
  border-radius: 8px;
  font-weight: 800;
}

.tariff-card ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.tariff-card li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 22px;
  color: var(--muted);
}

.tariff-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 999px;
}

.tariff-card a {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  color: var(--green-dark);
  font-weight: 800;
}

.tariff-card a::after {
  content: "↗";
  margin-left: 8px;
}

.feature-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: stretch;
}

.feature-eyebrow {
  margin-bottom: 28px;
}

.feature-list {
  grid-template-columns: repeat(2, 1fr);
}

.feature-list article {
  position: relative;
  padding: 28px;
}

.feature-icon {
  position: absolute;
  top: 28px;
  right: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #e8f6ed;
  border-radius: 999px;
}

.feature-list h3 {
  padding-right: 50px;
}

.feature-icon img {
  width: 20px;
  height: 20px;
}

.feature-image {
  min-height: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-image img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.steps {
  grid-template-columns: repeat(3, 1fr);
}

.steps article {
  position: relative;
  padding: 30px;
}

.steps span {
  position: absolute;
  top: 30px;
  right: 30px;
  margin-bottom: 0;
}

.steps h3 {
  padding-right: 50px;
}

.steps-head {
  max-width: none;
}

.steps-head h2 {
  white-space: nowrap;
}

.inquiry-form {
  scroll-margin-top: 104px;
  margin-top: 48px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.field-span-2 {
  grid-column: span 2;
}

.field-span-full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--black);
  font-size: 14px;
  font-weight: 800;
}

label small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

textarea {
  resize: vertical;
}

input[type="file"] {
  padding: 8px;
  color: var(--muted);
}

input[type="file"]::file-selector-button {
  min-height: 32px;
  margin-right: 12px;
  padding: 0 14px;
  color: var(--black);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(79, 178, 107, 0.14);
}

.consent {
  grid-template-columns: 18px 1fr;
  align-items: start;
  color: var(--muted);
  font-weight: 600;
}

.consent input {
  min-height: auto;
  margin-top: 4px;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.form-footer .consent {
  max-width: 720px;
  margin-bottom: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.form-message {
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 8px;
  font-weight: 800;
}

.form-message.success {
  color: #15572a;
  background: #e8f6ed;
}

.form-message.error {
  color: #8f231d;
  background: #fae9e7;
}

.documents-head {
  max-width: 820px;
}

.documents-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.document-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.document-card .document-type {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 7px 10px;
  color: var(--green-dark);
  background: #e8f6ed;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.document-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.document-card p {
  color: var(--muted);
}

.document-card small {
  margin-top: auto;
  color: var(--muted);
}

.document-link {
  margin-top: auto;
  color: var(--green-dark);
  font-weight: 800;
}

.document-link::after {
  content: "↗";
  margin-left: 8px;
}

.document-card.is-disabled {
  pointer-events: none;
  opacity: 0.72;
}

.security-index {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 32px;
  align-items: center;
  padding: 32px;
  color: var(--white);
  background: var(--green-dark);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.security-index .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.security-index h3 {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 28px;
}

.security-index p {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.88);
}

.security-index-copy > small {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
}

.security-index-copy > small strong,
.security-index-copy > small em {
  display: block;
}

.security-index-copy > small strong {
  color: rgba(255, 255, 255, 0.88);
}

.security-index-copy > small em {
  margin-top: 4px;
}

.security-index-value {
  padding: 26px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.security-index-value span,
.security-index-value small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.security-index-value strong {
  display: block;
  margin: 10px 0;
  color: var(--white);
  font-size: clamp(34px, 3.4vw, 46px);
  line-height: 0.98;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--black);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 48px;
  padding: 32px 0 64px;
}

.footer-grid > div:nth-child(2),
.footer-grid > div:nth-child(3) {
  padding-top: 42px;
}

.footer-logo {
  width: 150px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-licenses {
  margin-top: 24px;
  font-size: 14px;
}

.site-footer h2 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 18px;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom span {
  line-height: 1.7;
}

.legal-page {
  padding: 72px 0 96px;
}

.legal-content {
  max-width: 920px;
}

.legal-content > h1 {
  max-width: none;
  margin-bottom: 48px;
  font-size: clamp(38px, 5vw, 64px);
}

.legal-content h2 {
  margin-top: 48px;
  font-size: clamp(27px, 3vw, 36px);
}

.legal-content h3 {
  margin-top: 34px;
  margin-bottom: 12px;
  font-size: 22px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 17px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 24px;
}

.legal-content li + li {
  margin-top: 10px;
}

.legal-content a {
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-meta {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-style: italic;
}

@media (max-width: 980px) {
  body.nav-open {
    overflow: hidden;
  }

  .site-header {
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    grid-template-columns: auto auto;
  }

  .site-header.nav-open,
  .site-header:has(.site-nav.is-open) {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100svh;
    background:
      radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.16), transparent 28%),
      linear-gradient(145deg, #286f40 0%, var(--green-dark) 42%, var(--green) 100%);
    border-color: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-header.nav-open .brand img,
  .site-header:has(.site-nav.is-open) .brand img {
    filter: brightness(0) invert(1);
  }

  .site-header.nav-open .brand,
  .site-header:has(.site-nav.is-open) .brand {
    position: absolute;
    top: 16px;
    left: max(24px, calc((100vw - 1280px) / 2));
  }

  .site-header.nav-open .nav-toggle,
  .site-header:has(.site-nav.is-open) .nav-toggle {
    position: absolute;
    top: 16px;
    right: max(24px, calc((100vw - 1280px) / 2));
  }

  .brand,
  .nav-toggle {
    position: relative;
    z-index: 2;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
    background: transparent;
    transition: border-color 0.25s ease;
  }

  .site-nav {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    min-height: 100svh;
    padding: 112px max(28px, calc((100vw - 720px) / 2)) 34px;
    overflow-y: auto;
    color: var(--white);
    background: transparent;
  }

  .site-nav.is-open {
    display: flex;
    animation: mobile-menu-in 0.28s ease both;
  }

  .site-nav > a:not(.mobile-nav-cta) {
    display: flex;
    align-items: center;
    min-height: 78px;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
    font-size: clamp(24px, 6vw, 32px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.03em;
  }

  .site-nav > a:not(.mobile-nav-cta):first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.24);
  }

  .site-nav > a:not(.mobile-nav-cta):hover,
  .site-nav > a:not(.mobile-nav-cta):focus-visible {
    color: var(--white);
  }

  .mobile-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    margin-top: 34px;
    padding: 0 22px;
    color: var(--green-dark);
    background: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(25, 77, 44, 0.24);
    font-size: 16px;
    font-weight: 800;
    text-align: center;
  }

  .site-header.nav-open .nav-toggle,
  .site-header:has(.site-nav.is-open) .nav-toggle {
    border-color: rgba(255, 255, 255, 0.5);
  }

  .site-header.nav-open .nav-toggle span,
  .site-header:has(.site-nav.is-open) .nav-toggle span {
    background: var(--white);
  }

  .site-header.nav-open .nav-toggle span:nth-child(1),
  .site-header:has(.site-nav.is-open) .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.nav-open .nav-toggle span:nth-child(2),
  .site-header:has(.site-nav.is-open) .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.nav-open .nav-toggle span:nth-child(3),
  .site-header:has(.site-nav.is-open) .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header-cta {
    display: none;
  }

  .hero-grid,
  .split,
  .feature-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid > div:nth-child(2),
  .footer-grid > div:nth-child(3) {
    padding-top: 0;
  }

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

  .hero-panel,
  .hero-panel img,
  .feature-image img {
    min-height: 360px;
  }

  .audience-grid,
  .tariff-grid,
  .steps,
  .documents-layout {
    grid-template-columns: repeat(2, 1fr);
  }

  .security-index {
    grid-template-columns: 1fr;
  }

  .documents-layout {
    grid-template-columns: 1fr;
  }
}

@keyframes mobile-menu-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

  .section {
    padding: 64px 0;
  }

  .hero {
    padding-top: 44px;
    padding-bottom: 36px;
  }

  .hero-grid {
    gap: 28px;
  }

  .brand img {
    width: 132px;
  }

  h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    margin-top: 24px;
  }

  .hero-actions .button {
    width: 100%;
    text-align: center;
  }

  .audience-grid,
  .tariff-grid,
  .feature-list,
  .steps,
  .documents-layout,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .field-span-2,
  .field-span-full {
    grid-column: auto;
  }

  .hero-panel,
  .hero-panel img,
  .feature-image img {
    min-height: 160px;
  }

  .steps-head h2 {
    white-space: normal;
  }

  .trust-row {
    display: none;
  }

  .tabs {
    justify-content: center;
    flex-wrap: wrap;
  }

  .feature-eyebrow {
    margin-bottom: 32px;
    font-size: 16px;
    text-align: center;
  }

  .tariff-heading {
    white-space: normal;
  }

  .inquiry-form {
    padding: 20px;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }

  .legal-page {
    padding: 48px 0 72px;
  }
}
