:root {
  --green: #19b45b;
  --green-dark: #0b7d3b;
  --black: #0b0f0d;
  --white: #ffffff;
  --muted: #f3f6f4;
  --text-soft: #5f6964;
  --line: #dce5df;
  --danger: #c83232;
  --radius: 8px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

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

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header:hover {
  box-shadow: 0 10px 30px rgba(11, 15, 13, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  min-width: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: transform 0.25s var(--ease);
}

.brand:hover img {
  transform: rotate(-3deg) scale(1.04);
}

.brand span {
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 9px 12px;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.menu-toggle:hover {
  border-color: var(--green);
  transform: translateY(-1px);
}

.menu-icon {
  display: grid;
  gap: 4px;
}

.menu-icon span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--black);
  border-radius: 999px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav a:hover,
.footer-actions a:hover {
  color: var(--green-dark);
}

.nav a {
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.header-call {
  padding: 10px 16px;
  color: var(--white);
  background: var(--black);
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.header-call:hover {
  transform: translateY(-1px);
  background: var(--green);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  min-height: 76vh;
  padding: clamp(44px, 8vw, 96px) clamp(16px, 5vw, 72px);
  color: var(--white);
  background:
    radial-gradient(circle at 78% 42%, rgba(25, 180, 91, 0.26), transparent 28%),
    linear-gradient(105deg, rgba(11, 15, 13, 0.96) 0%, rgba(11, 15, 13, 0.86) 42%, rgba(11, 15, 13, 0.42) 100%),
    repeating-linear-gradient(45deg, rgba(25, 180, 91, 0.16) 0 2px, transparent 2px 18px),
    url("../img/hero-removal.png"),
    var(--black);
  background-size: auto, auto, 160px 160px, cover, auto;
  background-position: center, center, 0 0, center right, center;
  animation: heroPattern 18s linear infinite;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  mix-blend-mode: overlay;
  transform: translateX(-100%);
  animation: heroSweep 5.5s var(--ease) infinite;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: linear-gradient(90deg, var(--green), transparent, var(--green));
  opacity: 0.9;
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: fadeUp 0.75s var(--ease) both;
}

.hero-panel {
  animation: fadeUp 0.75s var(--ease) 0.14s both, softFloat 5s ease-in-out 1.1s infinite;
}

.hero h1,
.page-hero h1,
.admin-head h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 680px;
  margin: 20px 0 0;
  color: #dbe8e0;
  font-size: clamp(19px, 3vw, 28px);
}

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

.hero-actions,
.contact-actions,
.footer-actions,
.request-actions,
.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(11, 15, 13, 0.16);
}

.btn:active,
.header-call:active,
.social-link:active {
  transform: translateY(0);
}

.btn-primary {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 0 0 rgba(25, 180, 91, 0);
}

.btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 16px 34px rgba(25, 180, 91, 0.34);
}

.btn-secondary {
  color: var(--black);
  background: var(--white);
  border-color: var(--line);
}

.btn-whatsapp {
  color: var(--white);
  background: var(--black);
}

.btn-danger {
  color: var(--white);
  background: var(--danger);
}

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

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--white);
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease), opacity 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.social-link:hover {
  transform: translateY(-2px) scale(1.04);
  filter: brightness(1.06);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-whatsapp {
  background: #25d366;
}

.social-viber {
  background: #7360f2;
}

.social-instagram {
  background: #e4405f;
}

.social-facebook {
  background: #1877f2;
}

.social-disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.hero-panel {
  padding: 26px;
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius);
  border-left: 8px solid var(--green);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(25, 180, 91, 0.9), transparent 44%);
  opacity: 0.55;
  filter: blur(18px);
}

.hero-panel span {
  color: var(--green-dark);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
}

.hero-panel strong {
  display: block;
  margin: 12px 0;
  font-size: 26px;
  line-height: 1.15;
}

.section,
.page-hero,
.form-section,
.admin-head,
.admin-tools,
.requests-list,
.admin-login {
  padding: clamp(40px, 7vw, 78px) clamp(16px, 5vw, 72px);
}

.section-title {
  max-width: 740px;
  margin-bottom: 24px;
}

.section-title h2,
.contact-band h2,
.page-hero h1,
.login-form h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.intro p {
  max-width: 900px;
  margin: 0;
  font-size: 20px;
}

.grid {
  display: grid;
  gap: 14px;
}

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

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

.card,
.why .grid div,
.gallery-card,
.request-card,
.empty,
.login-form,
.request-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}

.card:hover,
.why .grid div:hover,
.gallery-card:hover,
.request-card:hover {
  transform: translateY(-4px);
  border-color: rgba(25, 180, 91, 0.55);
  box-shadow: 0 16px 34px rgba(11, 15, 13, 0.12);
}

.steps,
.gallery,
.admin-login {
  background: var(--muted);
}

.card {
  padding: 22px;
}

.card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--white);
  background: var(--green);
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s var(--ease);
}

.card:hover span {
  transform: scale(1.08);
}

.card h3 {
  margin: 18px 0 8px;
  font-size: 22px;
}

.card p {
  margin: 0;
  color: var(--text-soft);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags span {
  padding: 12px 16px;
  color: var(--white);
  background: var(--black);
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.tags span:hover {
  transform: translateY(-2px);
  background: var(--green-dark);
}

.why {
  color: var(--white);
  background: var(--black);
}

.why .grid div {
  padding: 18px;
  color: var(--black);
  font-weight: 900;
  border-left: 6px solid var(--green);
}

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

.gallery-card {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: var(--white);
  background: var(--green-dark);
  isolation: isolate;
}

.gallery-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.45s var(--ease), filter 0.45s var(--ease);
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(11, 15, 13, 0.08), rgba(11, 15, 13, 0.94)),
    linear-gradient(110deg, rgba(25, 180, 91, 0.38), transparent 42%);
  transition: opacity 0.3s var(--ease);
}

.gallery-card strong,
.gallery-card span {
  position: relative;
  z-index: 2;
}

.gallery-card:hover img {
  transform: scale(1.14) rotate(0.8deg);
  filter: saturate(1.2) contrast(1.08);
}

.gallery-card:hover::after {
  opacity: 0.86;
}

.gallery-grid strong {
  font-size: 24px;
  transform: translateY(0);
  transition: transform 0.28s var(--ease);
}

.gallery-grid span {
  color: #dfece4;
  transform: translateY(0);
  transition: transform 0.28s var(--ease);
}

.gallery-card:hover strong,
.gallery-card:hover span {
  transform: translateY(-4px);
}

.reviews-section {
  background:
    linear-gradient(135deg, rgba(25, 180, 91, 0.08), transparent 38%),
    var(--white);
}

.reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: start;
}

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

.review-card,
.review-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(11, 15, 13, 0.08);
}

.review-card {
  padding: 18px;
  border-left: 6px solid var(--green);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(11, 15, 13, 0.13);
}

.review-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.review-top strong {
  font-size: 18px;
}

.review-top span,
.form-note {
  color: var(--text-soft);
  font-size: 14px;
}

.stars {
  display: flex;
  gap: 2px;
  color: #c8d1cb;
  font-size: 24px;
  line-height: 1;
}

.stars .star-filled {
  color: #ffc107;
  text-shadow: 0 0 14px rgba(255, 193, 7, 0.32);
}

.review-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  position: sticky;
  top: 92px;
}

.review-form h3 {
  margin: 0;
  font-size: 26px;
}

.rating-field {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: 900;
}

.rating-field legend {
  padding: 0;
}

.rating-options {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
}

.rating-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-options label {
  display: block;
  color: #c8d1cb;
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transition: transform 0.18s var(--ease), color 0.18s var(--ease), text-shadow 0.18s var(--ease);
}

.rating-options label:hover,
.rating-options label:hover ~ label,
.rating-options input:checked ~ label {
  color: #ffc107;
  text-shadow: 0 0 18px rgba(255, 193, 7, 0.38);
}

.rating-options label:hover {
  transform: scale(1.12);
}

.review-empty {
  grid-column: 1 / -1;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  color: var(--white);
  background: var(--black);
}

.contact-band p {
  max-width: 680px;
  color: #dbe8e0;
}

.contact-actions {
  align-items: center;
}

.contact-actions .social-links {
  padding-left: 4px;
}

.page-hero .social-links {
  margin-left: 2px;
}

.social-links-footer {
  justify-content: flex-end;
}

.page-hero {
  color: var(--white);
  background: var(--black);
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  color: #dbe8e0;
  font-size: 19px;
}

.request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 980px;
  padding: clamp(18px, 4vw, 34px);
}

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

label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: var(--white);
}

textarea {
  resize: vertical;
}

.flash-wrap {
  position: fixed;
  top: 78px;
  left: 50%;
  z-index: 30;
  width: min(92vw, 720px);
  transform: translateX(-50%);
}

.flash {
  margin-bottom: 8px;
  padding: 13px 16px;
  border-radius: var(--radius);
  font-weight: 800;
  background: var(--white);
  border: 1px solid var(--line);
  animation: slideDown 0.32s var(--ease) both;
}

.flash.success {
  border-color: var(--green);
}

.flash.error {
  border-color: var(--danger);
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--white);
  background: var(--black);
}

.admin-tools {
  padding-top: 24px;
  padding-bottom: 24px;
  background: var(--muted);
}

.search-form input {
  max-width: 420px;
}

.requests-list {
  display: grid;
  gap: 14px;
}

.request-card {
  padding: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal-delay-1 {
  transition-delay: 0.06s;
}

.reveal-delay-2 {
  transition-delay: 0.12s;
}

.reveal-delay-3 {
  transition-delay: 0.18s;
}

.request-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.request-top strong {
  display: block;
  font-size: 20px;
}

.request-top span {
  color: var(--text-soft);
}

.status {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.status-novo {
  color: var(--white) !important;
  background: var(--green);
}

.status-kontaktirano {
  color: var(--black) !important;
  background: #ffd95a;
}

.status-završeno {
  color: var(--white) !important;
  background: var(--black);
}

.request-actions {
  align-items: center;
  margin-top: 14px;
}

.request-actions form {
  display: flex;
  gap: 8px;
}

.empty {
  padding: 26px;
  font-weight: 800;
}

.login-form {
  width: min(100%, 420px);
  display: grid;
  gap: 16px;
  padding: 24px;
  margin: 0 auto;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(16px, 5vw, 72px);
  color: var(--white);
  background: #050706;
}

.site-footer p {
  margin: 6px 0 0;
  color: #b9c5be;
}

.footer-actions {
  align-items: center;
  font-weight: 800;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroPattern {
  from {
    background-position: center, center, 0 0, center right, center;
  }

  to {
    background-position: center, center, 160px 160px, 52% center, center;
  }
}

@keyframes heroSweep {
  0%,
  35% {
    transform: translateX(-110%);
  }

  70%,
  100% {
    transform: translateX(110%);
  }
}

@keyframes softFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: center;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .contact-band,
  .reviews-layout {
    grid-template-columns: 1fr;
  }

  .three,
  .five,
  .gallery-grid,
  .reviews-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-form {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    padding: 10px 14px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand span {
    font-size: 14px;
  }

  .header-call {
    min-height: 42px;
    padding: 9px 12px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 8px;
    overflow: visible;
    font-size: 15px;
    background: var(--black);
    border-radius: var(--radius);
  }

  .menu-open .nav {
    display: flex;
    animation: menuDrop 0.24s var(--ease) both;
  }

  .menu-open .menu-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-open .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  .menu-open .menu-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav a {
    padding: 13px 12px;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .nav a:hover {
    color: var(--white);
    background: var(--green-dark);
    border-radius: 6px;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .hero-actions .btn,
  .contact-actions .btn,
  .request-form .btn,
  .search-form .btn {
    width: 100%;
  }

  .hero-actions .social-links,
  .contact-actions .social-links {
    width: 100%;
    justify-content: center;
  }

  .social-link {
    width: 48px;
    height: 48px;
  }

  .three,
  .five,
  .gallery-grid,
  .request-form,
  .reviews-list {
    grid-template-columns: 1fr;
  }

  .request-actions,
  .request-actions form,
  .search-form {
    width: 100%;
  }

  .request-actions form {
    flex-direction: column;
  }

  .admin-head,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .social-links-footer {
    justify-content: flex-start;
  }

  .flash-wrap {
    top: 120px;
  }
}

@keyframes menuDrop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
