:root {
  --blue-950: #031a46;
  --blue-900: #062a68;
  --blue-800: #073f96;
  --blue-700: #0759c9;
  --yellow: #ffd21f;
  --yellow-strong: #f2b900;
  --green: #16824a;
  --ink: #071526;
  --muted: #54657b;
  --line: #d6e2f1;
  --page: #f4f8ff;
  --shadow: 0 18px 50px rgba(7, 32, 83, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
}

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

.inline-link {
  color: var(--blue-700);
  font-weight: 900;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 8px max(18px, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 92px;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 92px;
  height: auto;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topnav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: #24405f;
  font-size: 0.92rem;
  font-weight: 850;
  text-decoration: none;
}

.topnav a:hover {
  color: var(--blue-700);
}

.phone-link {
  justify-self: end;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--blue-800);
  border-radius: 8px;
  background: var(--blue-800);
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(112deg, #ffffff 0%, #ffffff 48%, rgba(232, 242, 255, 0.92) 48%, rgba(232, 242, 255, 0.92) 100%),
    var(--page);
}

.hero-bg {
  position: absolute;
  inset: auto -80px 0 auto;
  width: min(620px, 48%);
  height: 100%;
  background-image: url("/akcia-k2net.png?v=20260708-0815");
  background-size: cover;
  background-position: center top;
  opacity: 0.1;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(218, 235, 255, 0.78));
  z-index: -1;
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(390px, 0.72fr);
  align-items: center;
  gap: 42px;
  padding: 38px 0 44px;
}

.offer-copy {
  display: grid;
  align-content: center;
  gap: 20px;
}

.eyebrow {
  margin: 0;
  color: var(--blue-700);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 10ch;
  color: var(--blue-950);
  font-size: 5.35rem;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lede {
  max-width: 54ch;
  color: #263f60;
  font-size: 1.22rem;
  line-height: 1.5;
}

.discount-panel {
  width: min(430px, 100%);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 0 16px;
  padding: 18px;
  border: 1px solid rgba(7, 63, 150, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.discount-panel span {
  grid-column: 1 / -1;
  color: var(--blue-800);
  font-size: 0.95rem;
  font-weight: 950;
  text-transform: uppercase;
}

.discount-panel strong {
  color: var(--blue-950);
  font-size: 4.6rem;
  line-height: 0.95;
}

.discount-panel small {
  color: var(--green);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
}

.offer-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 670px;
}

.offer-strip span {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--blue-900);
  font-size: 0.88rem;
  font-weight: 900;
  text-align: center;
}

.form-panel {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #c8d7ed;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.form-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.form-head h2,
.section-head h2,
.flyer-layout h2 {
  color: var(--blue-950);
  font-size: 2rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.form-head p,
.flyer-layout p {
  color: var(--muted);
  line-height: 1.55;
}

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

.address-picker {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d7e4f5;
  border-radius: 8px;
  background: #f7fbff;
}

.address-picker-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.address-picker-head strong {
  color: var(--blue-950);
  font-size: 1rem;
}

.address-picker-head span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-align: right;
}

.address-picker-head span[data-kind="success"] {
  color: var(--green);
}

.address-picker-head span[data-kind="error"] {
  color: #b42318;
}

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

label {
  display: grid;
  gap: 6px;
  color: #163050;
  font-size: 0.9rem;
  font-weight: 850;
}

.wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #bfd0e7;
  border-radius: 8px;
  background: #f9fbff;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  padding: 10px 11px;
}

textarea {
  min-height: 76px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(255, 210, 31, 0.45);
  border-color: var(--blue-700);
  background: #ffffff;
}

input[readonly] {
  background: #eef5ff;
  color: #1f3c5e;
}

.check-line {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  margin-top: 12px;
  color: #253d5b;
  font-weight: 700;
  line-height: 1.35;
}

.check-line input {
  min-height: 18px;
  margin: 1px 0 0;
}

.submit-button {
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--yellow), var(--yellow-strong));
  color: var(--blue-950);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(242, 185, 0, 0.25);
}

.submit-button:hover {
  filter: brightness(1.02);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-message {
  min-height: 24px;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 850;
  line-height: 1.4;
}

.form-message[data-kind="success"] {
  color: #126236;
}

.form-message[data-kind="error"] {
  color: #b42318;
}

.package-band,
.flyer-band {
  padding: 62px 0;
}

.package-band {
  background: var(--blue-950);
  color: #ffffff;
}

.section-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.package-band .eyebrow,
.package-band h2 {
  color: #ffffff;
}

.packages {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.packages article {
  min-height: 206px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: #ffffff;
  color: var(--blue-950);
  text-align: center;
}

.packages article h3 {
  min-height: 22px;
  color: var(--blue-800);
  font-size: 1rem;
}

.packages article strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.packages article small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.packages article p {
  display: grid;
  gap: 2px;
  margin-top: auto;
  padding: 10px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--blue-950);
  font-weight: 900;
}

.packages article p span {
  font-size: 1.45rem;
}

.packages article em {
  display: inline-flex;
  justify-self: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--blue-950);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.packages .is-popular {
  border-color: var(--yellow);
  box-shadow: 0 0 0 2px rgba(255, 210, 31, 0.55);
}

.flyer-band {
  background: #ffffff;
}

.flyer-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(300px, 0.44fr);
  align-items: start;
  gap: 46px;
}

.flyer-layout > div {
  display: grid;
  gap: 12px;
}

.flyer-link {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.flyer-link img {
  display: block;
  width: 100%;
  height: auto;
}

footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 24px 16px;
  background: #061a45;
  color: #ffffff;
  font-weight: 850;
}

footer a {
  text-decoration: none;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid #bfd0e7;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner div {
  display: grid;
  gap: 5px;
}

.cookie-banner strong {
  color: var(--blue-950);
}

.cookie-banner p {
  color: var(--muted);
  line-height: 1.45;
}

.cookie-banner a {
  color: var(--blue-700);
  font-weight: 900;
}

.cookie-banner button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--blue-800);
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.legal-page {
  background: var(--page);
}

.legal-main {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.legal-card {
  display: grid;
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.legal-card h1 {
  max-width: none;
  font-size: 3rem;
}

.legal-section {
  display: grid;
  gap: 10px;
}

.legal-section h2 {
  color: var(--blue-950);
  font-size: 1.25rem;
}

.legal-section p,
.legal-section li {
  color: #263f60;
  line-height: 1.6;
}

.legal-section ul {
  margin: 0;
  padding-left: 20px;
}

@media (max-width: 1040px) {
  .hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  h1 {
    max-width: 12ch;
    font-size: 4.2rem;
  }

  .form-panel {
    width: min(720px, 100%);
  }

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

@media (max-width: 820px) {
  .topbar {
    grid-template-columns: auto auto;
  }

  .topnav {
    order: 3;
    grid-column: 1 / -1;
  }

  .hero {
    background: #f7fbff;
  }

  .hero-bg {
    width: 100%;
    opacity: 0.07;
  }

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

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

  .section-head {
    display: grid;
  }
}

@media (max-width: 620px) {
  .topbar {
    gap: 10px;
    padding: 8px 12px;
  }

  .brand,
  .brand img {
    width: 78px;
  }

  .phone-link {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.92rem;
  }

  .topnav {
    width: 100%;
  }

  .topnav a {
    flex: 1;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
  }

  .hero-inner {
    width: min(100% - 20px, 1180px);
    min-height: auto;
    gap: 24px;
    padding: 28px 0 38px;
  }

  h1 {
    max-width: 10ch;
    font-size: 3.15rem;
  }

  .lede {
    font-size: 1.04rem;
  }

  .discount-panel {
    grid-template-columns: 1fr;
  }

  .discount-panel strong {
    font-size: 3.6rem;
  }

  .offer-strip,
  .address-grid,
  .field-grid,
  .packages,
  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .form-panel {
    padding: 18px;
  }

  .form-head h2,
  .section-head h2,
  .flyer-layout h2 {
    font-size: 1.62rem;
  }

  .package-band,
  .flyer-band {
    padding: 42px 0;
  }

  .legal-card {
    padding: 22px;
  }

  .legal-card h1 {
    font-size: 2.25rem;
  }

  .cookie-banner button {
    width: 100%;
  }
}
