:root {
  --ink: #18232f;
  --muted: #5c6875;
  --paper: #f7f8fa;
  --surface: #ffffff;
  --line: #dfe5eb;
  --accent: #0b7a75;
  --accent-dark: #065f5b;
  --warm: #f2b84b;
  --shadow: 0 22px 60px rgba(18, 32, 45, 0.12);
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  min-height: 680px;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 24, 36, 0.9), rgba(10, 24, 36, 0.5)),
    url("../slike/kase.png") center / cover no-repeat;
  transform: scale(1.04);
  transition: transform 700ms ease;
  z-index: 0;
}

.site-header:hover::before {
  transform: scale(1.08);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 170px;
  background: linear-gradient(180deg, rgba(247, 248, 250, 0), var(--paper));
  z-index: 0;
}

.topbar {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 140px;
}

.brand img {
  width: min(390px, 72vw);
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.hero {
  width: min(1120px, calc(100% - 40px));
  min-height: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 104px 0 96px;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--warm);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 9.6vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.18rem;
  line-height: 1.65;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.service-card a,
.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--card-accent, var(--accent)), #ffffff 48%);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--card-accent, var(--accent-dark));
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.hero-action:hover,
.hero-action:focus-visible {
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  transform: translateY(-3px);
}

.service-card a:hover,
.login-button:hover,
.service-card a:focus-visible,
.login-button:focus-visible {
  border-color: var(--card-accent, var(--accent));
  background: color-mix(in srgb, var(--card-accent, var(--accent)), #ffffff 90%);
  box-shadow: 0 10px 24px rgba(18, 32, 45, 0.14);
  color: var(--card-accent, var(--accent-dark));
  transform: translateY(-3px);
}

.services {
  width: min(1120px, calc(100% - 40px));
  margin: -72px auto 0;
  position: relative;
  z-index: 2;
  padding-bottom: 88px;
}

.section-heading {
  margin-bottom: 24px;
  padding: 32px 0 0;
}

.section-heading h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.65rem);
  line-height: 1.05;
}

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

.service-card {
  min-height: 310px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.service-card::before {
  content: "";
  height: 5px;
  position: absolute;
  inset: 0 0 auto;
  background: var(--card-accent, var(--accent));
}

.service-card:nth-child(1) {
  --card-accent: #008d86;
  background: linear-gradient(180deg, rgba(0, 141, 134, 0.24), #ffffff 52%);
}

.service-card:nth-child(2) {
  --card-accent: #285fd6;
  background: linear-gradient(180deg, rgba(40, 95, 214, 0.23), #ffffff 52%);
}

.service-card:nth-child(3) {
  --card-accent: #d66f00;
  background: linear-gradient(180deg, rgba(214, 111, 0, 0.26), #ffffff 52%);
}

.service-card:hover,
.service-card:focus-within {
  border-color: color-mix(in srgb, var(--card-accent), #ffffff 55%);
  box-shadow: 0 28px 70px rgba(18, 32, 45, 0.18);
  transform: translateY(-8px);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: color-mix(in srgb, var(--card-accent, var(--accent)), #ffffff 86%);
  color: var(--card-accent, var(--accent-dark));
  font-weight: 800;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.service-card:hover .service-icon,
.service-card:focus-within .service-icon {
  background: var(--card-accent, var(--accent));
  color: #ffffff;
  transform: scale(1.06);
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.service-card p {
  margin-bottom: 24px;
  color: var(--muted);
  line-height: 1.65;
}

.service-card a,
.login-button {
  margin-top: auto;
}

.page-header {
  min-height: auto;
}

.page-hero {
  width: min(1120px, calc(100% - 40px));
  min-height: 520px;
  margin: 0 auto;
  padding: 82px 0 104px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.login-panel {
  width: min(460px, 100%);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.2);
  color: var(--ink);
  position: relative;
}

.panel-close {
  width: 32px;
  height: 32px;
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(24, 35, 47, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.52);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.panel-close:hover,
.panel-close:focus-visible {
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  transform: translateY(-2px);
}

.login-panel .eyebrow {
  color: var(--accent);
}

.login-panel h1 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 5vw, 3rem);
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-form label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font: inherit;
}

.login-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 122, 117, 0.14);
  outline: none;
}

.form-button {
  min-height: 40px;
  margin-top: 8px;
  border: 1px solid color-mix(in srgb, var(--accent), #ffffff 48%);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-dark);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.form-button:hover,
.form-button:focus-visible {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent), #ffffff 90%);
  color: var(--accent-dark);
  box-shadow: 0 10px 24px rgba(18, 32, 45, 0.16);
  transform: translateY(-3px);
}

.registration-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--accent), #ffffff 45%);
  border-radius: 6px;
  background: rgba(11, 122, 117, 0.08);
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 700;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.registration-link:hover,
.registration-link:focus-visible {
  border-color: var(--accent);
  background: rgba(11, 122, 117, 0.13);
  transform: translateY(-3px);
}

.site-footer {
  background: #17212d;
  color: #ffffff;
  position: relative;
}

.footer-content {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 40px;
}

.footer-content h2 {
  margin-bottom: 12px;
  font-size: 2rem;
}

.footer-content p {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

address {
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
}

address strong {
  color: #ffffff;
}

.visit-counter {
  position: absolute;
  right: 20px;
  bottom: 16px;
  padding: 7px 10px;
  display: grid;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
}

.counter-label {
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visit-counter strong {
  color: #ffffff;
}

@media (max-width: 860px) {
  .site-header {
    min-height: 620px;
  }

  .service-grid,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .services {
    margin-top: -44px;
  }
}

@media (max-width: 560px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links a {
    padding-left: 0;
  }

  .hero {
    min-height: 460px;
    padding-bottom: 72px;
  }

  .hero p:not(.eyebrow) {
    font-size: 1rem;
  }

  .service-card {
    min-height: auto;
    padding: 24px;
  }

  .visit-counter {
    position: static;
    width: min(1120px, calc(100% - 40px));
    margin: -24px auto 20px;
  }
}
