:root {
  --ink: #101820;
  --muted: #5f6f83;
  --bg: #f4f7fa;
  --panel: #ffffff;
  --line: #dbe3ec;
  --brand: #00a676;
  --brand-dark: #067357;
  --cro-red: #ef233c;
  --cro-blue: #1d4ed8;
  --radius: 8px;
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  z-index: 20;
  background: linear-gradient(90deg, var(--cro-red) 0 33.33%, #ffffff 33.33% 66.66%, var(--cro-blue) 66.66% 100%);
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 16px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(219, 227, 236, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  object-fit: cover;
}

nav {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 18px;
  color: #334155;
  font-weight: 800;
}

.nav-cta {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: #f8fafc;
  color: var(--brand-dark);
}

.download-menu {
  position: relative;
}

.download-menu-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
}

.download-menu-toggle:hover,
.download-menu-toggle:focus-visible {
  border-color: var(--brand);
  outline: 3px solid rgba(0, 166, 118, 0.16);
}

.hamburger-lines {
  display: grid;
  width: 20px;
  gap: 4px;
}

.hamburger-lines span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.download-panel[hidden] {
  display: none;
}

.download-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(370px, calc(100vw - 24px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(16, 24, 32, 0.18);
}

.download-panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 12px;
}

.download-panel-heading strong {
  font-size: 16px;
}

.download-panel-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.download-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 9px;
  border-top: 1px solid var(--line);
}

.download-item:hover,
.download-item:focus-visible {
  background: #f1faf7;
  outline: none;
}

.download-item img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  object-fit: cover;
}

.download-item-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.download-item-copy strong,
.download-item-copy small {
  overflow-wrap: anywhere;
}

.download-item-copy small {
  color: var(--muted);
  font-size: 12px;
}

.download-arrow {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #e7f8f1;
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 900;
}

.download-note {
  margin: 10px 4px 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 110px clamp(20px, 6vw, 86px) 70px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 18, 26, 0.86), rgba(6, 18, 26, 0.55) 42%, rgba(6, 18, 26, 0.08));
}

.hero::before {
  content: "";
  position: absolute;
  left: clamp(20px, 6vw, 86px);
  bottom: 38px;
  z-index: 1;
  width: min(430px, calc(100% - 40px));
  height: 28px;
  opacity: 0.9;
  background: conic-gradient(from 90deg, var(--cro-red) 90deg, #ffffff 0 180deg, var(--cro-red) 0 270deg, #ffffff 0);
  background-size: 28px 28px;
  border-radius: var(--radius);
  mask-image: linear-gradient(90deg, #000, transparent);
}

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

.hero-content {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  color: #ffffff;
}

.croatian-ribbon {
  display: flex;
  width: 120px;
  height: 6px;
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: 999px;
}

.croatian-ribbon span {
  flex: 1;
}

.croatian-ribbon span:nth-child(1) {
  background: var(--cro-red);
}

.croatian-ribbon span:nth-child(2) {
  background: #ffffff;
}

.croatian-ribbon span:nth-child(3) {
  background: var(--cro-blue);
}

.eyebrow {
  margin: 0 0 10px;
  color: #26d59f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(62px, 10vw, 118px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.hero-copy {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 21px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 18px;
  border: 0;
  font-weight: 900;
  cursor: pointer;
}

.primary-btn {
  background: var(--brand);
  color: #052e22;
}

.secondary-btn {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.customer-app-section {
  scroll-margin-top: 82px;
  padding: 34px 20px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.customer-app-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(220px, auto);
  align-items: center;
  gap: 22px;
}

.customer-app-inner > img {
  width: 92px;
  height: 92px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 10px 26px rgba(16, 24, 32, 0.14);
}

.customer-app-copy h2 {
  margin-bottom: 8px;
  font-size: 30px;
}

.customer-app-copy p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 7px;
  color: var(--muted);
  line-height: 1.55;
}

.customer-app-copy span {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.customer-app-action {
  display: grid;
  justify-items: stretch;
  gap: 8px;
  text-align: center;
}

.customer-app-action small {
  max-width: 280px;
  color: var(--muted);
  line-height: 1.4;
}

.order-section,
.info-grid,
.split-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.order-section {
  padding: 58px 0;
}

.section-title {
  margin-bottom: 20px;
}

.section-title .eyebrow,
.split-section .eyebrow {
  color: var(--brand-dark);
}

.order-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--ink);
  background: #ffffff;
}

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

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.pricing-section,
.info-grid {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.pricing-section {
  padding: 10px 0 58px;
}

.pricing-section .section-title p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.6;
}

.pricing-section .section-title .pricing-status {
  margin-top: 10px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

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

.tariff-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.tariff-card.featured {
  border-color: rgba(0, 166, 118, 0.48);
  box-shadow: 0 18px 48px rgba(0, 166, 118, 0.1);
}

.tariff-loading {
  min-height: 520px;
  background: linear-gradient(90deg, var(--panel) 25%, #f0f4f3 50%, var(--panel) 75%);
  background-size: 200% 100%;
  animation: tariff-loading 1.4s ease-in-out infinite;
}

@keyframes tariff-loading {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.pricing-error {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid rgba(196, 46, 46, 0.25);
  border-radius: var(--radius);
  background: #fff5f5;
  color: #842029;
}

.pricing-error a {
  color: inherit;
  font-weight: 900;
}

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

.tariff-heading h3 {
  margin-bottom: 0;
}

.tariff-time {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.tariff-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: var(--radius);
  background: #e7f8f1;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.tariff-badge.night {
  background: #e9eefc;
  color: var(--cro-blue);
}

.rate-list {
  margin: 6px 0 0;
}

.rate-group-title {
  margin: 22px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.rate-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.rate-list dt {
  color: var(--muted);
}

.rate-list dd {
  margin: 0;
  font-weight: 900;
  text-align: right;
}

.estimate-row {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  padding: 14px;
  border-left: 4px solid var(--brand);
  background: #f1faf7;
}

.estimate-row span {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.category-multipliers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.category-multipliers div {
  display: grid;
  gap: 5px;
  padding: 16px;
  background: #ffffff;
}

.category-multipliers span,
.pricing-note {
  color: var(--muted);
  line-height: 1.55;
}

.pricing-note {
  margin: 14px 0 0;
  font-size: 13px;
}

.checker-strip {
  display: block;
  width: 96px;
  height: 18px;
  border-radius: var(--radius);
  background:
    conic-gradient(from 90deg, var(--cro-red) 90deg, #ffffff 0 180deg, var(--cro-red) 0 270deg, #ffffff 0);
  background-size: 18px 18px;
  border: 1px solid #f1c0c8;
}

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

.info-grid article,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 22px;
}

.info-grid span {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--brand-dark);
  font-weight: 900;
}

.info-grid p,
.split-section p,
.contact-card p {
  color: var(--muted);
  line-height: 1.6;
}

.cro-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.cro-card span {
  display: block;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: conic-gradient(from 90deg, var(--cro-red) 90deg, #ffffff 0 180deg, var(--cro-red) 0 270deg, #ffffff 0);
  background-size: 23px 23px;
  border: 1px solid #f1c0c8;
}

.cro-card p {
  margin: 0;
}

.split-section {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 26px;
  align-items: start;
  padding: 58px 0 76px;
  border-top: 1px solid var(--line);
}

.contact-card {
  display: grid;
  gap: 10px;
}

.contact-card a {
  color: var(--brand-dark);
  font-weight: 900;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-phone span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #e7f8f1;
  color: var(--brand-dark);
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer a {
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-page {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 64px;
}

.legal-page .eyebrow {
  color: var(--brand-dark);
}

.legal-page .lead {
  max-width: 68ch;
  color: #334155;
  font-size: 18px;
  line-height: 1.65;
}

.legal-page ul {
  display: grid;
  gap: 10px;
  max-width: 72ch;
  margin: 0;
  padding-left: 22px;
  line-height: 1.65;
}

.legal-page li::marker {
  color: var(--brand-dark);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.legal-callout {
  margin: 24px 0 0;
  padding: 18px;
  border-left: 4px solid var(--brand);
  background: #f1faf7;
  color: #164b3b;
  line-height: 1.65;
}

.legal-callout p:last-child {
  margin-bottom: 0;
}

.legal-contact {
  display: grid;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.legal-contact a {
  color: var(--brand-dark);
  font-weight: 900;
}

.legal-nav {
  gap: 14px;
  font-size: 13px;
}

.legal-nav a {
  white-space: nowrap;
}

.legal-nav .is-active {
  color: var(--brand-dark);
}

.legal-page h1 {
  margin: 8px 0 20px;
  font-size: 48px;
  line-height: 1.05;
}

@media (max-width: 640px) {
  .legal-page h1 {
    font-size: 36px;
  }
}

.legal-page section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.legal-page h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.legal-page p {
  max-width: 72ch;
  line-height: 1.7;
}

.legal-page .primary-btn {
  display: inline-flex;
  margin-top: 10px;
}

@media (max-width: 780px) {
  .site-header {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 20px 18px 14px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 0;
  }

  .download-panel {
    width: min(370px, calc(100vw - 50px));
  }

  .download-menu {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  nav > a:not(.phone-link):not(.nav-cta) {
    display: grid;
    min-height: 38px;
    place-items: center;
    text-align: center;
    font-size: 14px;
  }

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

  .legal-nav a {
    white-space: normal;
  }

  footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    padding: 22px 18px 30px;
  }

  footer span:first-child,
  footer span:nth-child(2) {
    grid-column: 1 / -1;
  }

  footer a {
    min-width: 0;
    min-height: 38px;
    display: flex;
    align-items: center;
    overflow-wrap: anywhere;
  }

  .phone-link {
    grid-column: 1 / -1;
    justify-content: center;
    white-space: nowrap;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    min-height: 760px;
    padding-top: 48px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(6, 18, 26, 0.86), rgba(6, 18, 26, 0.45));
  }

  .hero::before {
    bottom: 24px;
    height: 18px;
  }

  .order-form,
  .tariff-grid,
  .category-multipliers,
  .info-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .customer-app-inner {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
  }

  .customer-app-inner > img {
    width: 72px;
    height: 72px;
  }

  .customer-app-copy h2 {
    font-size: 25px;
  }

  .customer-app-action {
    grid-column: 1 / -1;
  }

  .customer-app-action small {
    max-width: none;
  }
}
