/* =============================================
   LINGUA CONCEPT – Styles
   ============================================= */

/* --- Reset & Custom Properties --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Palette — Light theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f7f7f8;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;

  --text-heading: #1B2030;
  --text-body: #6b7280;
  --text-muted: #9ca3af;

  --accent-purple: #9898ff;
  --accent-purple: color(display-p3 0.5960784314 0.5960784314 1);
  --accent-teal: #1fa2b0;
  --accent-dark: #1B2030;

  --border-color: #e5e7eb;
  --border-color-hover: #d1d5db;

  /* Typography */
  --font-family: "Inter", system-ui, -apple-system, sans-serif;

  /* Sizing */
  --container-max: 1140px;
  --section-padding: 100px;
  --radius: 12px;
  --radius-lg: 16px;

  /* Transitions */
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-heading);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* --- Layout --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.section-title {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-heading);
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: #8040be;
  border-radius: 2px;
  margin-top: 12px;
}

.section-title__accent {
  font-style: normal;
  font-weight: 700;
  color: #8040be;
}

/* --- Word-by-word title reveal --- */
.title-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  filter: blur(8px);
  will-change: opacity, transform, filter;
}

.title-word.word-visible {
  animation: wordReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes wordReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.65;
}

.section-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: inherit;
}

.btn--dark {
  background: var(--accent-dark);
  color: #fff;
}

.btn--dark:hover {
  background: #2d2d40;
  transform: translateY(-1px);
}

.btn--purple {
  background: var(--accent-purple);
  color: #fff;
}

.btn--purple:hover {
  background: #8585f2;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(152, 152, 255, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--text-heading);
  border: 1px solid var(--border-color);
}

.btn--ghost:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-secondary);
}

.btn--lg {
  padding: 14px 36px;
  font-size: 0.95rem;
}

.btn__arrow {
  font-size: 1.1em;
}

.link-arrow {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-teal);
  transition: var(--transition);
}

.link-arrow:hover {
  opacity: 0.75;
}

/* =============================================
   HEADER / NAV
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  transition: var(--transition);
}

.header.scrolled {
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.nav__logo-icon {
  height: 36px;
  width: auto;
  display: block;
}

.nav__logo--light {
  color: #fff;
}

.nav__links {
  display: flex;
  gap: 36px;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-heading);
  transition: var(--transition);
}

.nav__links a:hover {
  color: var(--text-body);
}

.nav__actions .btn {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-heading);
  border-radius: 2px;
  transition: var(--transition);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  padding: 160px 0 60px;
  text-align: center;
  overflow: hidden;
}

.hero__content {
  position: relative;
}

.hero__title {
  font-size: clamp(3rem, 7vw, 5.2rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text-heading);
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.hero__icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.hero__new-badge {
  position: absolute;
  top: -10px;
  right: -4px;
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--accent-purple);
  letter-spacing: 0.02em;
}

.hero__ghost-icon {
  display: inline-block;
  vertical-align: middle;
}

.hero__subtitle {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
  color: var(--text-body);
  line-height: 1.65;
  animation: titleRevealSub 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.95s both;
}

/* --- Title reveal keyframes --- */
@keyframes titleReveal {
  from {
    opacity: 0;
    transform: translateY(32px);
    filter: blur(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes titleRevealSub {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Hero title — Plus Jakarta Sans */
.hero__title-lingua {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-style: italic;
  color: #0d0d0d;
  letter-spacing: 0.01em;
  animation: titleReveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero__title-concept {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-style: normal;
  color: #8040be;
  letter-spacing: -0.02em;
  animation: titleReveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

/* Decorative rule — thin typographic separator */
.hero__title-accent {
  width: 40px;
  height: 1px;
  background: #0d0d0d;
  opacity: 0.18;
  margin: 0 auto 52px;
  animation: titleRevealSub 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

.hero__highlight {
  color: var(--accent-teal);
  text-decoration: underline;
  text-decoration-color: var(--accent-teal);
  text-underline-offset: 3px;
}

.hero__cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 112px;
  animation: titleRevealSub 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.15s both;
}

/* --- Translation Illustration --- */
.hero__illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  max-width: 700px;
  margin: 0 auto;
}

.hero__doc {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  width: 260px;
  transition: var(--transition);
}

.hero__doc:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

.hero__doc-header {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.hero__doc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color-hover);
}

.hero__doc--left .hero__doc-dot:first-child { background: #ef4444; }
.hero__doc--left .hero__doc-dot:nth-child(2) { background: #f59e0b; }
.hero__doc--left .hero__doc-dot:nth-child(3) { background: #22c55e; }

.hero__doc--right .hero__doc-dot:first-child { background: #ef4444; }
.hero__doc--right .hero__doc-dot:nth-child(2) { background: #f59e0b; }
.hero__doc--right .hero__doc-dot:nth-child(3) { background: #22c55e; }

.hero__doc-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
  transition: opacity 0.3s ease;
}

.hero__doc--left .hero__doc-lang {
  color: var(--accent-purple);
}

.hero__doc--right .hero__doc-lang {
  color: var(--accent-teal);
}

.hero__doc-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero__doc-line {
  height: 8px;
  border-radius: 4px;
  background: var(--border-color);
}

.hero__doc--left .hero__doc-line {
  background: #e0ddf5;
}

.hero__doc--right .hero__doc-line {
  background: #d0ecef;
}

.hero__swap-btn {
  appearance: none;
  font-family: var(--font-family);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  color: var(--accent-purple);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.2s ease, transform 0.45s ease;
}

.hero__swap-btn:hover {
  background: var(--bg-card);
  border-color: var(--border-color-hover);
}

.hero__swap-btn--swapped {
  transform: rotate(180deg);
  color: var(--accent-teal);
  border-color: var(--accent-teal);
}

/* --- Line reveal animation (right card) --- */
.hero__doc-lines--reveal .hero__doc-line {
  opacity: 0;
  animation: lineReveal 0.45s ease forwards;
}

.hero__doc-lines--reveal .hero__doc-line:nth-child(1) { animation-delay: 0.7s; }
.hero__doc-lines--reveal .hero__doc-line:nth-child(2) { animation-delay: 1.1s; }
.hero__doc-lines--reveal .hero__doc-line:nth-child(3) { animation-delay: 1.5s; }
.hero__doc-lines--reveal .hero__doc-line:nth-child(4) { animation-delay: 1.9s; }
.hero__doc-lines--reveal .hero__doc-line:nth-child(5) { animation-delay: 2.3s; }

@keyframes lineReveal {
  from { opacity: 0; transform: scaleX(0.15); transform-origin: left; }
  to   { opacity: 1; transform: scaleX(1); }
}

@keyframes dotTravel {
  0%   { left: 4px;              opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: calc(100% - 14px); opacity: 0; }
}

/* --- Doc card real text --- */
.hero__doc-text {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text-body);
  margin: 0;
  transition: opacity 0.3s ease;
}

.hero__typing-cursor {
  color: var(--accent-teal);
  font-weight: 300;
  margin-left: 1px;
  animation: cursorBlink 0.75s step-end infinite;
}

.hero__typing-cursor--done {
  opacity: 0;
  animation: none;
  transition: opacity 0.4s ease;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* --- Language badges row --- */
.hero__lang-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.hero__lang-badge {
  /* button reset */
  appearance: none;
  font-family: var(--font-family);
  cursor: pointer;
  /* visual */
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-body);
  letter-spacing: 0.03em;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hero__lang-badge:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
}

.hero__lang-badge--active {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: #fff;
}


/* =============================================
   BUILDERS / TESTIMONIALS
   ============================================= */
.builders {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.builders .section-header {
  text-align: left;
  max-width: 600px;
  margin: 0 0 56px;
}

.builders .section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.builders .section-desc {
  font-size: 1.15rem;
  color: var(--text-body);
  line-height: 1.55;
}

.builders .section-actions {
  justify-content: flex-start;
  margin-top: 28px;
  gap: 14px;
}

.builders .btn--dark {
  background: var(--accent-purple);
  color: #fff;
}

.builders .btn--dark:hover {
  background: #8585f2;
}

.builders .btn--ghost {
  background: #fff;
  border: 1px solid var(--border-color);
  color: var(--text-heading);
}

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

.builder-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
}

.builder-card:hover {
  border-color: var(--border-color-hover);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.builder-card__logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.builder-card__quote {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 16px;
  font-style: italic;
}

.builder-card__author {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* =============================================
   INFO CARD (Footer-style section)
   ============================================= */
.info-card-section {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.info-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.info-card__grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr;
  gap: 24px;
  padding: 52px 48px 40px;
  align-items: start;
}

.info-card__brand .section-title {
  margin-bottom: 16px;
  text-align: left;
}

.info-card__disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 340px;
  margin-bottom: 32px;
}

.info-card__socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 12px 48px 36px;
}

.info-card__socials a {
  color: var(--text-muted);
  transition: var(--transition);
}

.info-card__socials a:hover {
  color: var(--text-heading);
}

.info-card__details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 8px;
}

.info-card__row {
  display: flex;
  gap: 16px;
}

.info-card__label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
  min-width: 160px;
  text-align: right;
  flex-shrink: 0;
}

.info-card__value {
  font-size: 0.95rem;
  color: var(--text-body);
}

.info-card__rainbow {
  height: 4px;
  background: linear-gradient(
    90deg,
    #2EBAC6 0%,
    #50c878 15%,
    #a8d948 25%,
    #f5d020 35%,
    #f09030 45%,
    #e84060 55%,
    #d050b0 65%,
    #9898ff 75%,
    #60b0f0 85%,
    #2EBAC6 100%
  );
}

@media (max-width: 768px) {
  .info-card__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 28px 28px;
  }
}

@media (max-width: 480px) {
  .info-card__grid {
    padding: 28px 20px 24px;
  }

  .info-card__row {
    flex-direction: column;
    gap: 4px;
  }

  .info-card__label {
    text-align: left;
    min-width: unset;
  }

  .info-card__socials {
    padding: 12px 20px 28px;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* =============================================
   CIJENIK (Pricing page)
   ============================================= */
.cjenik {
  padding: 160px 0 var(--section-padding);
}

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

.cjenik__card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  transition: var(--transition);
}

.cjenik__card:hover {
  border-color: var(--border-color-hover);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.cjenik__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.cjenik__icon--1 {
  background: #e0f2f1;
  color: var(--accent-teal);
}

.cjenik__icon--2 {
  background: #ede7f6;
  color: var(--accent-purple);
}

.cjenik__icon--3 {
  background: #fff3e0;
  color: #ef6c00;
}

.cjenik__card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-heading);
}

.cjenik__card p {
  color: var(--text-body);
  margin-bottom: 20px;
  line-height: 1.65;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .cjenik__grid {
    grid-template-columns: 1fr;
  }
}


/* =============================================
   GOVERNANCE
   ============================================= */
.governance {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.governance__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.governance__text .section-title,
.governance__text .section-desc {
  text-align: left;
}

.governance__text .section-desc {
  margin-bottom: 28px;
}

.governance__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.governance__logo {
  max-width: 240px;
  width: 100%;
  height: auto;
}


/* =============================================
   FOOTER
   ============================================= */
.footer {
  padding: 48px 0 24px;
  background: var(--accent-dark);
  color: #fff;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.footer__brand-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  max-width: 220px;
  line-height: 1.5;
}

.footer__nav {
  display: flex;
  gap: 48px;
}

.footer__nav-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 2px;
}

.footer__nav-link {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: var(--transition);
}

.footer__nav-link:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer__credit {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer__credit a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: var(--transition);
}

.footer__credit a:hover {
  color: #fff;
}

.footer__socials {
  display: flex;
  gap: 16px;
}

.footer__socials a {
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.footer__socials a:hover {
  color: #fff;
}

@media (max-width: 640px) {
  .footer__top {
    flex-direction: column;
    gap: 28px;
  }

  .footer__nav {
    gap: 28px;
    flex-wrap: wrap;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 400px) {
  .footer__nav {
    flex-direction: column;
    gap: 24px;
  }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  :root {
    --section-padding: 72px;
  }

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

  .builders__grid .builder-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }
}

@media (max-width: 1024px) {
  .hero__doc {
    width: 220px;
  }

  .hero__illustration {
    gap: 20px;
  }

  .about-hero__columns,
  .about-services__columns {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 56px;
  }

  .header {
    background: #fff;
    backdrop-filter: none;
  }

  .nav__links,
  .nav__actions {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    padding: 28px 24px;
    gap: 22px;
    z-index: 99;
    border-top: 1px solid var(--border-color);
  }

  .nav__links.active a {
    font-size: 1.15rem;
  }

  .hero {
    padding: 120px 0 40px;
  }

  .hero__title {
    font-size: clamp(2.4rem, 9vw, 3.5rem);
  }

  .hero__title-accent {
    margin-bottom: 36px;
  }

  .hero__cta {
    margin-bottom: 56px;
  }

  .hero__illustration {
    gap: 12px;
    max-width: 100%;
  }

  .hero__doc {
    width: 170px;
    padding: 16px;
  }

  .hero__doc-text {
    font-size: 0.75rem;
  }

  .builders__grid {
    grid-template-columns: 1fr;
  }

  .builders__grid .builder-card:last-child {
    max-width: 100%;
  }

  .governance__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .governance__visual {
    display: none;
  }

  .governance__text .section-title,
  .governance__text .section-desc {
    text-align: center;
  }
}

@media (max-width: 560px) {
  .hero__cta {
    flex-direction: column;
    align-items: center;
    margin-bottom: 48px;
  }

  .hero__cta .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .hero__illustration {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .hero__doc {
    width: 100%;
    max-width: 300px;
  }

  .hero__swap-btn {
    transform: rotate(90deg);
  }

  .hero__swap-btn--swapped {
    transform: rotate(270deg);
  }

  .hero__lang-badges {
    gap: 8px;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .section-actions {
    flex-direction: column;
    align-items: center;
  }

  .section-actions .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero__illus-wrap {
    display: none;
  }

  .hero__cta {
    margin-bottom: 0;
  }
}


/* =============================================
   ABOUT PAGE
   ============================================= */
.about-hero {
  padding: 160px 0 var(--section-padding);
  background: var(--bg-primary);
}

.about-hero__visual {
  width: 100%;
  height: 340px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-teal) 100%);
  margin-bottom: 48px;
}

.about-hero__heading {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 48px;
  color: var(--text-heading);
}

.about-hero__columns {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.about-hero__bold-text {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.45;
}

.about-hero__body-text {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-hero__body-text:last-child {
  margin-bottom: 0;
}

/* --- About Value Cards (colored) --- */
.about-vcard {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.about-vcard__title {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-heading);
}

.about-vcard__desc {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 48px;
}

.about-vcard__row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.about-vcard__card {
  flex: 1;
  min-width: 0;
  border-radius: 20px;
  padding: 32px 24px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  position: relative;
  transition: transform 0.35s ease;
}

.about-vcard__card--1 { background: #ef4444; transform: rotate(-3deg); }
.about-vcard__card--2 { background: #f59e0b; transform: rotate(-1.5deg); }
.about-vcard__card--3 { background: #0d9488; transform: rotate(0deg); }
.about-vcard__card--4 { background: #2196f3; transform: rotate(1.5deg); }
.about-vcard__card--5 { background: #1e3a5f; transform: rotate(3deg); }

.about-vcard__card:hover {
  transform: rotate(0deg) translateY(-8px);
  z-index: 2;
}

.about-vcard__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: auto;
  color: #fff;
}

.about-vcard__card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.about-vcard__card-desc {
  font-size: 0.82rem;
  line-height: 1.55;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .about-vcard__row {
    flex-wrap: nowrap;
    overflow-x: auto;
    align-items: stretch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 -24px;
    padding: 8px 24px 20px;
    gap: 12px;
  }

  .about-vcard__row::-webkit-scrollbar {
    display: none;
  }

  .about-vcard__card {
    flex: 0 0 220px;
    min-height: 200px;
    transform: rotate(0deg) !important;
  }

  .about-vcard__card:hover {
    transform: translateY(-6px) !important;
  }
}

/* --- About Perks (horizontal scroll) --- */
.about-perks {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.about-perks__title {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-heading);
}

.about-perks__desc {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.65;
  max-width: 620px;
  margin-bottom: 48px;
}

.about-perks__slider {
  position: relative;
}

.about-perks__scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: 4px;
  cursor: grab;
}

.about-perks__scroll::-webkit-scrollbar {
  display: none;
}

.about-perks__scroll.is-dragging {
  cursor: grabbing;
}

.about-perks__scroll.is-dragging .about-perks__card {
  pointer-events: none;
}

.about-perks__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.about-perks__arrow:hover {
  border-color: var(--border-color-hover);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  background: var(--bg-primary);
}

.about-perks__arrow--left {
  left: -22px;
}

.about-perks__arrow--right {
  right: -22px;
}

@media (max-width: 768px) {
  .about-perks__arrow {
    display: none;
  }

  .about-perks__card {
    flex: 0 0 240px;
  }
}

.about-perks__card {
  flex: 0 0 280px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition);
}

.about-perks__card:hover {
  border-color: var(--border-color-hover);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.about-perks__card--muted {
  background: var(--bg-secondary);
  border-style: dashed;
}

.about-perks__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}

.about-perks__card:hover .about-perks__icon {
  transform: scale(1.15) rotate(-8deg);
}

.about-perks__icon--1 { background: #ede7f6; color: #7c4dff; }
.about-perks__icon--2 { background: #fff3e0; color: #ef6c00; }
.about-perks__icon--3 { background: #e0f2f1; color: var(--accent-teal); }
.about-perks__icon--4 { background: #e3f2fd; color: #1976d2; }
.about-perks__icon--5 { background: #fce4ec; color: #e91e63; }
.about-perks__icon--6 { background: #e8f5e9; color: #388e3c; }
.about-perks__icon--7 { background: #fff8e1; color: #f9a825; }
.about-perks__icon--8 { background: #e0f7fa; color: #00838f; }
.about-perks__icon--9 { background: transparent; color: var(--text-muted); }

.about-perks__label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.about-perks__card-desc {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- About Services --- */
.about-services {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.about-services__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

.about-services__title {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0;
  color: var(--text-heading);
}

.about-services__columns {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.about-services__col-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 24px;
}

.about-services__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-services__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--text-body);
  font-weight: 500;
}

.about-services__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.about-services__dot--teal { background: var(--accent-teal); }
.about-services__dot--purple { background: var(--accent-purple); }
.about-services__dot--orange { background: #ef6c00; }
.about-services__dot--blue { background: #2196f3; }

/* --- About History --- */
.about-history {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.about-history__inner {
  max-width: 720px;
}

.about-history__inner .section-title {
  text-align: left;
}

.about-history__divider {
  width: 48px;
  height: 3px;
  background: var(--accent-purple);
  border-radius: 2px;
  margin-bottom: 24px;
}

.about-history__inner .section-desc {
  text-align: left;
  margin-bottom: 20px;
}

/* --- About Stats --- */
.about-stats {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.about-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.about-stats__card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
}

.about-stats__card:hover {
  border-color: var(--border-color-hover);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.about-stats__number {
  display: block;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--accent-purple);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.about-stats__label {
  font-size: 0.9rem;
  color: var(--text-body);
  font-weight: 500;
}

/* --- About Values --- */
.about-values {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.about-values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.about-values__card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
}

.about-values__card:hover {
  border-color: var(--border-color-hover);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.about-values__card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.about-values__card-desc {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.65;
}

/* --- About Responsive --- */
@media (max-width: 768px) {
  .about-hero {
    padding: 120px 0 40px;
  }

  .about-hero__visual {
    height: 220px;
    margin-bottom: 32px;
  }

  .about-hero__heading {
    margin-bottom: 32px;
  }

  .about-hero__columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-services__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .about-services__columns {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

@media (max-width: 480px) {
  .about-stats__grid {
    grid-template-columns: 1fr;
  }

  .about-values__grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   PAGE HERO — shared inner-page header
   ============================================= */
.page-hero {
  padding: 140px 0 80px;
  background: var(--bg-primary);
}

.page-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.page-hero__badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7c4dff;
  background: #ede7f6;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.page-hero__title {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text-heading);
}

.page-hero__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: #8040be;
  border-radius: 2px;
  margin-top: 12px;
}

.page-hero__desc {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 440px;
}

.page-hero__image-wrap {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.10);
}

.page-hero__image {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  display: block;
}

.page-hero__image--kontakt {
  object-position: center 80%;
}

/* O nama bio section */
.about-intro {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

/* Read-more toggle — desktop: always visible, button hidden */
.about-intro__expandable {
  display: block;
}

.about-intro__read-more {
  display: none;
}

/* Read-more toggle — mobile */
@media (max-width: 768px) {
  .about-intro__expandable {
    display: none;
  }

  .about-intro__expandable.is-open {
    display: block;
    margin-top: 20px;
  }

  .about-intro__read-more {
    display: flex;
    margin: 0 auto;
  }

  .about-intro__read-more-arrow {
    transition: transform 0.25s ease;
    flex-shrink: 0;
  }

  .about-intro__read-more.is-open .about-intro__read-more-arrow {
    transform: rotate(180deg);
  }
}

@media (max-width: 900px) {
  .page-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .page-hero__image {
    height: 300px;
  }
}

@media (max-width: 560px) {
  .page-hero {
    padding: 120px 0 56px;
  }

  .page-hero__image {
    height: 220px;
  }
}

/* PAGE HERO — entrance & interaction animations */
@keyframes heroImageReveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0%   0 0); }
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0);   }
}

.page-hero__badge {
  animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.page-hero__desc {
  animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

.page-hero__image {
  animation: heroImageReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.page-hero__image-wrap {
  will-change: transform;
}

.page-hero__image-wrap.tilt-resetting {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}


/* Purple accent line for about-page section titles */
.about-hero__heading::after,
.about-vcard__title::after,
.about-perks__title::after,
.about-services__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: #8040be;
  border-radius: 2px;
  margin-top: 12px;
}

/* =============================================
   USLUGE PAGE
   ============================================= */
.usluge-hero {
  padding: 160px 0 72px;
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-teal) 100%);
  color: #fff;
}

.usluge-hero__title {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #fff;
}

.usluge-hero__desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  max-width: 560px;
}

.usluge-section {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.usluge-section--alt {
  background: var(--bg-secondary);
}

.usluge-section__title {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-heading);
}

.usluge-section__subtitle {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 40px;
}

/* Purple accent line for usluge/cjenik section titles */
.usluge-section__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: #8040be;
  border-radius: 2px;
  margin-top: 12px;
}

/* White accent line for hero title on coloured background */
.usluge-hero__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  margin-top: 12px;
}

.usluge-section__title + .usluge-grid {
  margin-top: 40px;
}

/* Card grid */
.usluge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

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

.usluge-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition);
}

.usluge-card:hover {
  border-color: var(--border-color-hover);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.usluge-card--muted {
  border-style: dashed;
  background: var(--bg-secondary);
}

.usluge-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}

.usluge-card:hover .usluge-card__icon {
  transform: scale(1.1) rotate(-6deg);
}

.usluge-card__icon--teal { background: #e0f2f1; color: var(--accent-teal); }
.usluge-card__icon--purple { background: #ede7f6; color: #7c4dff; }
.usluge-card__icon--orange { background: #fff3e0; color: #ef6c00; }
.usluge-card__icon--blue { background: #e3f2fd; color: #1976d2; }
.usluge-card__icon--muted { background: transparent; color: var(--text-muted); }

.usluge-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.usluge-card__desc {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.55;
}

/* Pills */
.usluge-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.usluge-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}

.usluge-pill:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Grouped table rows */
.usluge-table {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.usluge-table--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
}

@media (max-width: 768px) {
  .usluge-table--grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.usluge-table__group-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.usluge-table__group-label--purple { background: #ede7f6; color: #7c4dff; }
.usluge-table__group-label--teal { background: #e0f2f1; color: var(--accent-teal); }
.usluge-table__group-label--orange { background: #fff3e0; color: #ef6c00; }
.usluge-table__group-label--muted { background: var(--bg-secondary); color: var(--text-muted); }

.usluge-table__row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.usluge-table__row:last-child {
  border-bottom: none;
}

.usluge-table__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-heading);
  flex-shrink: 0;
}

.usluge-table__detail {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.usluge-pill--teal {
  background: #e0f2f1;
  color: var(--accent-teal);
}

.usluge-pill--purple {
  background: #ede7f6;
  color: #7c4dff;
}

.usluge-pill--orange {
  background: #fff3e0;
  color: #ef6c00;
}

.usluge-pill--blue {
  background: #e3f2fd;
  color: #1976d2;
}

.usluge-pill--red {
  background: #fce4ec;
  color: #c62828;
}

.usluge-pill--green {
  background: #e8f5e9;
  color: #2e7d32;
}

.usluge-pill--pink {
  background: #fce4ec;
  color: #ad1457;
}

.usluge-pill--cyan {
  background: #e0f7fa;
  color: #00838f;
}

.usluge-pill--indigo {
  background: #e8eaf6;
  color: #283593;
}

.usluge-pill--muted {
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px dashed var(--border-color);
}

/* Staggered fade-in animation */
.usluge-table__group {
  opacity: 0;
  transform: translateY(12px);
}

.usluge-table__group.pill-visible {
  animation: pillFadeIn 0.4s ease forwards;
}

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

/* Mind map layout */
.mindmap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: center;
  position: relative;
  padding: 20px 0;
}

.mindmap__center {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.mindmap__hub {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-teal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(152, 152, 255, 0.25);
}

.mindmap__branch {
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
}

.mindmap__branch--left {
  align-items: flex-end;
  padding-right: 40px;
}

.mindmap__branch--right {
  align-items: flex-start;
  padding-left: 40px;
}

/* Mind map items */
.mindmap__item {
  display: flex;
  flex-direction: column;
  position: relative;
}

.mindmap__branch--left .mindmap__item {
  align-items: flex-end;
}

.mindmap__branch--right .mindmap__item {
  align-items: flex-start;
}

/* Sub-items (second level) */
.mindmap__subs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.mindmap__branch--left .mindmap__subs {
  justify-content: flex-end;
}

.mindmap__sub {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-body);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

/* Connecting lines from items to hub */
.mindmap__branch--left .mindmap__item::after {
  content: "";
  position: absolute;
  right: -40px;
  top: 20px;
  width: 40px;
  height: 1px;
  background: var(--border-color);
}

.mindmap__branch--right .mindmap__item::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 20px;
  width: 40px;
  height: 1px;
  background: var(--border-color);
}

.mindmap__lines {
  display: none;
}

@media (max-width: 768px) {
  .mindmap {
    grid-template-columns: 1fr;
    gap: 24px;
    justify-items: center;
  }

  .mindmap__center {
    order: -1;
  }

  .mindmap__hub {
    width: 130px;
    height: 130px;
    font-size: 0.85rem;
  }

  .mindmap__branch--left,
  .mindmap__branch--right {
    align-items: center;
    padding: 0;
  }

  .mindmap__branch--left .mindmap__item::after,
  .mindmap__branch--right .mindmap__item::before {
    display: none;
  }

  .mindmap__branch--left .mindmap__item,
  .mindmap__branch--right .mindmap__item {
    align-items: center;
  }

  .mindmap__branch--left .mindmap__subs {
    justify-content: center;
  }

  .mindmap__branch {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Large text with accent divider */
.usluge-largetext {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.usluge-largetext__title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.usluge-largetext__desc {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.7;
  max-width: 560px;
}

.usluge-largetext__divider {
  width: 48px;
  height: 3px;
  background: var(--accent-purple);
  border-radius: 2px;
}

/* Side-by-side prose columns */
.usluge-prose-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
}

.usluge-prose-cols__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.usluge-prose-cols__desc {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .usluge-hero {
    padding: 120px 0 48px;
  }

  .usluge-grid--2 {
    grid-template-columns: 1fr;
  }

  .usluge-grid--intelekt {
    gap: 0;
  }

  .usluge-grid--intelekt .usluge-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    padding: 14px 0;
    box-shadow: none;
    transform: none;
  }

  .usluge-grid--intelekt .usluge-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .usluge-grid--intelekt .usluge-card:hover {
    border-color: transparent;
    box-shadow: none;
    transform: none;
  }

  .usluge-grid--intelekt .usluge-card__icon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .usluge-grid--intelekt .usluge-card__icon svg {
    display: none;
  }

  .usluge-grid--intelekt .usluge-card__title {
    margin-bottom: 0;
    font-size: 0.95rem;
    font-weight: 500;
  }

  .usluge-grid--intelekt .usluge-card__desc {
    display: none;
  }

  .usluge-prose-cols {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .usluge-section__subtitle {
    margin-bottom: 24px;
  }
}

@media (max-width: 480px) {
  .usluge-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   CIJENIK PAGE (new)
   ============================================= */
.cjenik-stat {
  display: block;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 12px;
}

.cjenik-stat--teal {
  color: var(--accent-teal);
}

.cjenik-stat--purple {
  color: var(--accent-purple);
}

.cjenik-stat--accent {
  color: #ef6c00;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0;
  flex-shrink: 0;
}

/* Norms — big number + text, side by side */
.cjenik-norms {
  display: flex;
  align-items: center;
  gap: 48px;
}

.cjenik-norms__row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex: 1;
}

.cjenik-norms__number {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  flex-shrink: 0;
}

.cjenik-norms__number--teal {
  color: var(--accent-teal);
}

.cjenik-norms__number--purple {
  color: var(--accent-purple);
}

.cjenik-norms__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cjenik-norms__label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
}

.cjenik-norms__dir {
  font-size: 0.95rem;
  color: var(--text-body);
}

.cjenik-norms__separator {
  width: 1px;
  height: 56px;
  background: var(--border-color);
  flex-shrink: 0;
}

.cjenik-norms--3 .cjenik-norms__row {
  flex: 1;
  gap: 16px;
}

.cjenik-norms__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
}

.cjenik-norms__icon--purple { background: #ede7f6; color: #7c4dff; }
.cjenik-norms__icon--teal { background: #e0f2f1; color: var(--accent-teal); }
.cjenik-norms__icon--orange { background: #fff3e0; color: #ef6c00; }

@media (max-width: 768px) {
  .cjenik-norms--3 {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .cjenik-norms--3 .cjenik-norms__separator {
    width: 100%;
    height: 1px;
  }
}

@media (max-width: 640px) {
  .cjenik-norms {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .cjenik-norms__separator {
    width: 100%;
    height: 1px;
  }
}

/* Factors sticky-scroll layout */
.cjenik-factors__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.cjenik-factors__left {
  position: sticky;
  top: 120px;
}

.cjenik-factors__right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 768px) {
  .cjenik-factors__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cjenik-factors__left {
    position: static;
  }

  .cjenik-factors__right {
    gap: 0;
  }

  .cjenik-factors__right .usluge-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    padding: 14px 0;
    box-shadow: none;
    transform: none;
  }

  .cjenik-factors__right .usluge-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .cjenik-factors__right .usluge-card:hover {
    border-color: transparent;
    box-shadow: none;
    transform: none;
  }

  .cjenik-factors__right .usluge-card__icon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .cjenik-factors__right .usluge-card__icon svg {
    display: none;
  }

  .cjenik-factors__right .usluge-card__title {
    margin-bottom: 0;
    font-size: 0.95rem;
    font-weight: 500;
  }

  .cjenik-factors__right .usluge-card__desc {
    display: none;
  }
}

.cjenik-highlight {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid #ef6c00;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}

.cjenik-highlight__header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}

.cjenik-highlight__list {
  padding-top: 4px;
}

@media (max-width: 768px) {
  .cjenik-highlight {
    padding: 28px 20px;
  }

  .cjenik-highlight__header {
    flex-direction: column;
    gap: 12px;
  }
}

/* Lektura / Korektura — zigzag layout */
.cjenik-zigzag {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.cjenik-zigzag__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.cjenik-zigzag__item--reverse {
  direction: rtl;
}

.cjenik-zigzag__item--reverse > * {
  direction: ltr;
}

.cjenik-zigzag__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.cjenik-zigzag__image--purple {
  background: linear-gradient(135deg, var(--accent-purple) 0%, #7c4dff 100%);
}

.cjenik-zigzag__image--teal {
  background: linear-gradient(135deg, var(--accent-teal) 0%, #0d9488 100%);
}

.cjenik-zigzag__title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.cjenik-zigzag__desc {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .cjenik-zigzag__item,
  .cjenik-zigzag__item--reverse {
    grid-template-columns: 1fr;
    gap: 24px;
    direction: ltr;
  }
}

@media (max-width: 600px) {
  .cjenik-zigzag__image {
    display: none;
  }

  .cjenik-zigzag {
    gap: 32px;
  }
}

/* =============================================
   KOREKTURA — word-by-word spell-check animation
   ============================================= */

/* Card fade — whole card fades out then resets invisibly */
@keyframes kor-card {
  0%   { opacity: 1; }
  86%  { opacity: 1; }
  96%  { opacity: 0; }
  100% { opacity: 0; }
}

.korektura-doc {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 18px 22px 26px;
  width: 84%;
  animation: kor-card 12s linear infinite;
}

.korektura-doc__titlebar {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.korektura-doc__titlebar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.50);
}

.korektura-doc__row {
  display: flex;
  gap: 8px;
  margin-bottom: 22px; /* room below bars for ticks */
}

.korektura-doc__row:last-child {
  margin-bottom: 0;
}

/* Word bars */
.kor-item {
  height: 9px;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.28);
  position: relative;
  flex: 1;
}

/* Tick mark below each bar */
.kor-item__tick {
  position: absolute;
  bottom: -17px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 900;
  color: #4ade80;
  line-height: 1;
  opacity: 0;
}

/* Wavy underline for error bar */
.kor-item__wavy {
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='4'%3E%3Cpath d='M0 3 Q1.5 1 3 3 Q4.5 5 6 3' fill='none' stroke='%23f87171' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0;
  animation: kor-wavy 12s linear infinite;
}

/* ── Bar highlight animations (scan sweep) ──
   Timing: each regular item = 8%, error item = 23%
   Items: 1(0%), 2(8%), 3(16%), 4(24%), err(32%), 5(55%), 6(63%), 7(71%)
   Pause: 79-86%, Fade: 86-96%, Reset: 96-100%
*/
@keyframes kor-bar-1 {
  0%    { background-color: rgba(255,255,255,0.28); }
  2%    { background-color: rgba(255,255,255,0.60); }
  7%    { background-color: rgba(255,255,255,0.28); }
  100%  { background-color: rgba(255,255,255,0.28); }
}
@keyframes kor-bar-2 {
  0%,8% { background-color: rgba(255,255,255,0.28); }
  10%   { background-color: rgba(255,255,255,0.60); }
  15%   { background-color: rgba(255,255,255,0.28); }
  100%  { background-color: rgba(255,255,255,0.28); }
}
@keyframes kor-bar-3 {
  0%,16%{ background-color: rgba(255,255,255,0.28); }
  18%   { background-color: rgba(255,255,255,0.60); }
  23%   { background-color: rgba(255,255,255,0.28); }
  100%  { background-color: rgba(255,255,255,0.28); }
}
@keyframes kor-bar-4 {
  0%,24%{ background-color: rgba(255,255,255,0.28); }
  26%   { background-color: rgba(255,255,255,0.60); }
  31%   { background-color: rgba(255,255,255,0.28); }
  100%  { background-color: rgba(255,255,255,0.28); }
}
@keyframes kor-bar-err {
  /* Normal → scan red → hold red → flash out → flash in bright → settle */
  0%,32%  { background-color: rgba(255,255,255,0.28); }
  34%     { background-color: rgba(239, 68, 68, 0.65); }
  45%     { background-color: rgba(239, 68, 68, 0.65); }
  47%     { background-color: rgba(255,255,255,0.00); } /* word vanishes */
  50%     { background-color: rgba(255,255,255,0.65); } /* corrected word flashes */
  55%     { background-color: rgba(255,255,255,0.28); } /* settles */
  100%    { background-color: rgba(255,255,255,0.28); }
}
@keyframes kor-bar-5 {
  0%,55%{ background-color: rgba(255,255,255,0.28); }
  57%   { background-color: rgba(255,255,255,0.60); }
  62%   { background-color: rgba(255,255,255,0.28); }
  100%  { background-color: rgba(255,255,255,0.28); }
}
@keyframes kor-bar-6 {
  0%,63%{ background-color: rgba(255,255,255,0.28); }
  65%   { background-color: rgba(255,255,255,0.60); }
  70%   { background-color: rgba(255,255,255,0.28); }
  100%  { background-color: rgba(255,255,255,0.28); }
}
@keyframes kor-bar-7 {
  0%,71%{ background-color: rgba(255,255,255,0.28); }
  73%   { background-color: rgba(255,255,255,0.60); }
  78%   { background-color: rgba(255,255,255,0.28); }
  100%  { background-color: rgba(255,255,255,0.28); }
}

/* ── Tick appear animations ── */
@keyframes kor-tick-1   { 0%,6%  { opacity:0; } 8%  { opacity:1; } 86% { opacity:1; } 94% { opacity:0; } 100% { opacity:0; } }
@keyframes kor-tick-2   { 0%,14% { opacity:0; } 16% { opacity:1; } 86% { opacity:1; } 94% { opacity:0; } 100% { opacity:0; } }
@keyframes kor-tick-3   { 0%,22% { opacity:0; } 24% { opacity:1; } 86% { opacity:1; } 94% { opacity:0; } 100% { opacity:0; } }
@keyframes kor-tick-4   { 0%,30% { opacity:0; } 32% { opacity:1; } 86% { opacity:1; } 94% { opacity:0; } 100% { opacity:0; } }
@keyframes kor-tick-err { 0%,52% { opacity:0; } 55% { opacity:1; } 86% { opacity:1; } 94% { opacity:0; } 100% { opacity:0; } }
@keyframes kor-tick-5   { 0%,61% { opacity:0; } 63% { opacity:1; } 86% { opacity:1; } 94% { opacity:0; } 100% { opacity:0; } }
@keyframes kor-tick-6   { 0%,69% { opacity:0; } 71% { opacity:1; } 86% { opacity:1; } 94% { opacity:0; } 100% { opacity:0; } }
@keyframes kor-tick-7   { 0%,77% { opacity:0; } 79% { opacity:1; } 86% { opacity:1; } 94% { opacity:0; } 100% { opacity:0; } }

/* ── Wavy underline ── */
@keyframes kor-wavy {
  0%,33%  { opacity: 0; }
  37%     { opacity: 1; }
  45%     { opacity: 1; }
  48%     { opacity: 0; }
  100%    { opacity: 0; }
}

/* Apply animations */
.kor-item--1   { flex: 5;   animation: kor-bar-1   12s linear infinite; }
.kor-item--2   { flex: 2;   animation: kor-bar-2   12s linear infinite; }
.kor-item--3   { flex: 3.5; animation: kor-bar-3   12s linear infinite; }
.kor-item--4   { flex: 3;   animation: kor-bar-4   12s linear infinite; }
.kor-item--err { flex: 4.5; animation: kor-bar-err 12s linear infinite; }
.kor-item--5   { flex: 1.5; animation: kor-bar-5   12s linear infinite; }
.kor-item--6   { flex: 4;   animation: kor-bar-6   12s linear infinite; }
.kor-item--7   { flex: 3;   animation: kor-bar-7   12s linear infinite; }

.kor-item__tick--1   { animation: kor-tick-1   12s linear infinite; }
.kor-item__tick--2   { animation: kor-tick-2   12s linear infinite; }
.kor-item__tick--3   { animation: kor-tick-3   12s linear infinite; }
.kor-item__tick--4   { animation: kor-tick-4   12s linear infinite; }
.kor-item__tick--err { animation: kor-tick-err 12s linear infinite; }
.kor-item__tick--5   { animation: kor-tick-5   12s linear infinite; }
.kor-item__tick--6   { animation: kor-tick-6   12s linear infinite; }
.kor-item__tick--7   { animation: kor-tick-7   12s linear infinite; }

/* =============================================
   LEKTURA — pen-tracing + detection + restructure
   Timing (9s loop):
     Trace  line 1:  0 – 15%
     Trace  line 2: 19 – 34%
     Trace  line 3: 38 – 53%   ← line 3 is the "problem" line
     Trace  line 4: 57 – 67%
     Detect (red):  67 – 71%
     Rearrange:     71 – 83%   (bars resize, lines 2+4 shift)
     Fixed:         83 – 89%
     Fade:          89 – 97%
     Reset:         97 – 100%
   ============================================= */
.lektura-doc {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 18px 22px 22px;
  width: 84%;
}

.lektura-doc__titlebar {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.lektura-doc__titlebar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.50);
}

.lektura-doc__line {
  margin-bottom: 13px;
  position: relative; /* needed for translateY */
}

.lektura-doc__line:last-child {
  margin-bottom: 0;
}

.lektura-doc__bar {
  height: 9px;
  border-radius: 5px;
  margin-bottom: 7px;
}

.lektura-doc__ul {
  height: 3px;
  border-radius: 2px;
  position: relative;
  overflow: visible;
  width: 0;
}

.lektura-doc__pen {
  position: absolute;
  right: -14px;
  top: -16px;
  width: 18px;
  height: 18px;
  color: #fff;
  opacity: 0;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.25));
}

/* ── Bar animations (control width + colour) ── */
/* Bar 1: shrinks when line 3 restructures (content moves down) */
@keyframes lektura-bar-1 {
  0%    { width: 88%; background: rgba(255,255,255,0.28); }
  71%   { width: 88%; background: rgba(255,255,255,0.28); }
  81%   { width: 70%; background: rgba(255,255,255,0.28); }
  97%   { width: 70%; background: rgba(255,255,255,0.28); }
  100%  { width: 88%; background: rgba(255,255,255,0.28); }
}
/* Bar 2: grows (absorbs redistributed content from line 3) */
@keyframes lektura-bar-2 {
  0%    { width: 74%; background: rgba(255,255,255,0.28); }
  71%   { width: 74%; background: rgba(255,255,255,0.28); }
  81%   { width: 90%; background: rgba(255,255,255,0.28); }
  97%   { width: 90%; background: rgba(255,255,255,0.28); }
  100%  { width: 74%; background: rgba(255,255,255,0.28); }
}
/* Bar 3: turns red, shrinks (the restructured problem line) */
@keyframes lektura-bar-3 {
  0%    { width: 82%; background: rgba(255,255,255,0.28); }
  67%   { width: 82%; background: rgba(255,255,255,0.28); }
  70%   { width: 82%; background: rgba(248,113,113,0.55); }
  81%   { width: 54%; background: rgba(248,113,113,0.55); }
  87%   { width: 54%; background: rgba(255,255,255,0.28); }
  97%   { width: 54%; background: rgba(255,255,255,0.28); }
  100%  { width: 82%; background: rgba(255,255,255,0.28); }
}
/* Bar 4: grows (receives content redistributed from line 3) */
@keyframes lektura-bar-4 {
  0%    { width: 58%; background: rgba(255,255,255,0.28); }
  71%   { width: 58%; background: rgba(255,255,255,0.28); }
  81%   { width: 78%; background: rgba(255,255,255,0.28); }
  97%   { width: 78%; background: rgba(255,255,255,0.28); }
  100%  { width: 58%; background: rgba(255,255,255,0.28); }
}

.lektura-doc__bar--1 { animation: lektura-bar-1 9s linear infinite; }
.lektura-doc__bar--2 { animation: lektura-bar-2 9s linear infinite; }
.lektura-doc__bar--3 { animation: lektura-bar-3 9s linear infinite; }
.lektura-doc__bar--4 { animation: lektura-bar-4 9s linear infinite; }

/* ── Line shift animations (lines 2 and 4 physically move) ── */
@keyframes lektura-shift-2 {
  0%, 71%  { transform: translateY(0); }
  78%      { transform: translateY(-9px); }
  86%      { transform: translateY(-9px); }
  92%      { transform: translateY(0); }
  100%     { transform: translateY(0); }
}
@keyframes lektura-shift-4 {
  0%, 71%  { transform: translateY(0); }
  78%      { transform: translateY(9px); }
  86%      { transform: translateY(9px); }
  92%      { transform: translateY(0); }
  100%     { transform: translateY(0); }
}

.lektura-line--2 { animation: lektura-shift-2 9s linear infinite; }
.lektura-line--4 { animation: lektura-shift-4 9s linear infinite; }

/* ── Underline growth + colour change + rearrangement ── */
@keyframes lektura-ul-1 {
  0%      { width: 0;   opacity: 1; background: #fff; box-shadow: 0 0 6px rgba(255,255,255,0.5); }
  15%     { width: 88%; opacity: 1; background: #fff; box-shadow: 0 0 6px rgba(255,255,255,0.5); }
  71%     { width: 88%; opacity: 1; background: #fff; }
  81%     { width: 70%; opacity: 1; background: #fff; }
  89%     { width: 70%; opacity: 1; }
  97%     { width: 70%; opacity: 0; }
  100%    { width: 0;   opacity: 0; background: #fff; }
}
@keyframes lektura-ul-2 {
  0%, 19% { width: 0;   opacity: 1; background: #fff; box-shadow: 0 0 6px rgba(255,255,255,0.5); }
  34%     { width: 74%; opacity: 1; background: #fff; box-shadow: 0 0 6px rgba(255,255,255,0.5); }
  71%     { width: 74%; opacity: 1; background: #fff; }
  81%     { width: 90%; opacity: 1; background: #fff; }
  89%     { width: 90%; opacity: 1; }
  97%     { width: 90%; opacity: 0; }
  100%    { width: 0;   opacity: 0; background: #fff; }
}
/* Line 3: draws → turns red → shrinks → fixed colour */
@keyframes lektura-ul-3 {
  0%, 38% { width: 0;   opacity: 1; background: #fff;    box-shadow: 0 0 6px rgba(255,255,255,0.5); }
  53%     { width: 82%; opacity: 1; background: #fff;    box-shadow: 0 0 6px rgba(255,255,255,0.5); }
  67%     { width: 82%; opacity: 1; background: #fff;    box-shadow: 0 0 6px rgba(255,255,255,0.5); }
  70%     { width: 82%; opacity: 1; background: #f87171; box-shadow: 0 0 8px rgba(248,113,113,0.7); }
  81%     { width: 54%; opacity: 1; background: #f87171; box-shadow: 0 0 8px rgba(248,113,113,0.7); }
  87%     { width: 54%; opacity: 1; background: #fff;    box-shadow: 0 0 6px rgba(255,255,255,0.5); }
  89%     { width: 54%; opacity: 1; }
  97%     { width: 54%; opacity: 0; }
  100%    { width: 0;   opacity: 0; background: #fff; }
}
@keyframes lektura-ul-4 {
  0%, 57% { width: 0;   opacity: 1; background: #fff; box-shadow: 0 0 6px rgba(255,255,255,0.5); }
  67%     { width: 58%; opacity: 1; background: #fff; box-shadow: 0 0 6px rgba(255,255,255,0.5); }
  71%     { width: 58%; opacity: 1; background: #fff; }
  81%     { width: 78%; opacity: 1; background: #fff; }
  89%     { width: 78%; opacity: 1; }
  97%     { width: 78%; opacity: 0; }
  100%    { width: 0;   opacity: 0; background: #fff; }
}

/* ── Pen visibility (9s loop) ── */
@keyframes lektura-pen-1 {
  0%      { opacity: 1; }
  15%     { opacity: 1; }
  17%     { opacity: 0; }
  100%    { opacity: 0; }
}
@keyframes lektura-pen-2 {
  0%, 18% { opacity: 0; }
  19%     { opacity: 1; }
  34%     { opacity: 1; }
  36%     { opacity: 0; }
  100%    { opacity: 0; }
}
@keyframes lektura-pen-3 {
  0%, 37% { opacity: 0; }
  38%     { opacity: 1; }
  53%     { opacity: 1; }
  55%     { opacity: 0; }
  100%    { opacity: 0; }
}
@keyframes lektura-pen-4 {
  0%, 56% { opacity: 0; }
  57%     { opacity: 1; }
  67%     { opacity: 1; }
  69%     { opacity: 0; }
  100%    { opacity: 0; }
}

.lektura-doc__ul--1 { animation: lektura-ul-1 9s linear infinite; }
.lektura-doc__ul--2 { animation: lektura-ul-2 9s linear infinite; }
.lektura-doc__ul--3 { animation: lektura-ul-3 9s linear infinite; }
.lektura-doc__ul--4 { animation: lektura-ul-4 9s linear infinite; }

.lektura-doc__pen--1 { animation: lektura-pen-1 9s linear infinite; }
.lektura-doc__pen--2 { animation: lektura-pen-2 9s linear infinite; }
.lektura-doc__pen--3 { animation: lektura-pen-3 9s linear infinite; }
.lektura-doc__pen--4 { animation: lektura-pen-4 9s linear infinite; }

/* =============================================
   KONTAKT FORM
   ============================================= */
.kontakt-form-section {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

[hidden] { display: none !important; }

.kontakt-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 56px 64px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.05);
}

.kontakt-form-card__header {
  margin-bottom: 40px;
}

.kontakt-form-card__title {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.kontakt-form-card__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: #8040be;
  border-radius: 2px;
  margin-top: 12px;
}

.kontakt-form-card__subtitle {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-top: 16px;
}

/* Form layout */
.kontakt-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.kontakt-form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.kontakt-form__group--half {
  max-width: calc(50% - 10px);
  margin-bottom: 20px;
}

.kontakt-form__row .kontakt-form__group {
  margin-bottom: 0;
}

/* Labels */
.kontakt-form__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 6px;
}

.kontakt-form__required {
  color: #7c4dff;
  font-weight: 700;
}

.kontakt-form__optional {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 2px 8px;
  border-radius: 50px;
}

/* Inputs & textarea */
.kontakt-form__input,
.kontakt-form__textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius);
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: var(--text-heading);
  background: var(--bg-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  width: 100%;
}

.kontakt-form__input::placeholder,
.kontakt-form__textarea::placeholder {
  color: var(--text-muted);
}

.kontakt-form__input:focus,
.kontakt-form__textarea:focus {
  border-color: #7c4dff;
  box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.12);
}

.kontakt-form__input.is-invalid,
.kontakt-form__textarea.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.10);
}

.kontakt-form__textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

/* Inline error messages */
.kontakt-form__error {
  font-size: 0.8rem;
  color: #ef4444;
  font-weight: 500;
  display: none;
}

.kontakt-form__error.is-visible {
  display: block;
}

/* Footer row */
.kontakt-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.kontakt-form__note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Success state */
.kontakt-form__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
  gap: 16px;
  animation: heroFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.kontakt-form__success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ede7f6;
  color: #7c4dff;
  margin-bottom: 8px;
}

.kontakt-form__success-title {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--text-heading);
}

.kontakt-form__success-desc {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.65;
  max-width: 420px;
  margin-bottom: 8px;
}

/* Submit loading state */
.kontakt-form__submit.is-loading {
  opacity: 0.7;
  pointer-events: none;
  cursor: not-allowed;
}

/* Form-level error (network / server) */
.kontakt-form__form-error {
  font-size: 0.85rem;
  color: #ef4444;
  margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .kontakt-form-card {
    padding: 36px 28px;
  }

  .kontakt-form__row {
    grid-template-columns: 1fr;
  }

  .kontakt-form__group--half {
    max-width: 100%;
  }

  .kontakt-form__footer {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .kontakt-form__submit {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .kontakt-form-card {
    padding: 28px 20px;
  }
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== PRICE CTA ===== */
.price-cta {
  background: linear-gradient(135deg, #7c4dff 0%, #4c1d95 100%);
  padding: 88px 0 96px;
  text-align: center;
}

.price-cta__inner {
  max-width: 580px;
  margin: 0 auto;
}

.price-cta__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.price-cta__title {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
  width: fit-content;
  margin: 0 auto 20px;
}

.price-cta__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  margin: 12px 0 0;
}

.price-cta__desc {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
  margin-bottom: 40px;
}

.price-cta__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn--white {
  background: #fff;
  color: #4c1d95;
  border: none;
}

.btn--white:hover {
  background: #f0ebff;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.btn--ghost-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn--ghost-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.price-cta__pills {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.price-cta__pill {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

.price-cta__pill + .price-cta__pill::before {
  content: '·';
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 768px) {
  .price-cta {
    padding: 56px 0 64px;
  }
}

@media (max-width: 600px) {
  .price-cta__actions {
    flex-direction: column;
    align-items: center;
  }

  .price-cta__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .price-cta__pill + .price-cta__pill::before {
    display: none;
  }

  .price-cta__pills {
    gap: 6px 0;
    flex-direction: column;
  }
}

/* --- CTA inline form --- */
.price-cta__inner {
  max-width: 640px;
}

@keyframes ctaFormIn {
  from { opacity: 0; transform: translateY(24px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

/* --- Scroll-triggered block reveal (same feel as section title words) --- */
.section-reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  will-change: opacity, transform, filter;
}

.section-reveal.is-visible {
  animation: wordReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.section-reveal--delay.is-visible {
  animation-delay: 0.18s;
}

.price-cta__form-wrap {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: left;
  animation: ctaFormIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.price-cta__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.price-cta__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.price-cta__form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price-cta__form-group--half {
  max-width: calc(50% - 8px);
}

.price-cta__form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.price-cta__form-required { color: #fca5a5; }

.price-cta__form-optional {
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 4px;
}

.price-cta__form-input,
.price-cta__form-textarea {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: #fff;
  width: 100%;
  outline: none;
  transition: border-color 0.18s, background 0.18s;
}

.price-cta__form-input::placeholder,
.price-cta__form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.price-cta__form-input:focus,
.price-cta__form-textarea:focus {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.18);
}

.price-cta__form-input.is-invalid,
.price-cta__form-textarea.is-invalid {
  border-color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
}

.price-cta__form-textarea {
  resize: vertical;
  min-height: 110px;
}

.price-cta__form-error {
  font-size: 0.8rem;
  color: #fca5a5;
  display: none;
}

.price-cta__form-error.is-visible { display: block; }

.price-cta__form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.price-cta__form-note {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.price-cta__form-success {
  text-align: center;
  padding: 36px 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.price-cta__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  margin-bottom: 16px;
}

.price-cta__form-success h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.price-cta__form-success p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .price-cta__form-row { grid-template-columns: 1fr; }
  .price-cta__form-group--half { max-width: 100%; }
  .price-cta__form-footer { flex-direction: column-reverse; align-items: flex-start; }
  .price-cta__form-footer .btn { width: 100%; justify-content: center; }
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 32px));
  z-index: 9999;
  width: calc(100% - 48px);
  max-width: 680px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  opacity: 0;
}

.cookie-banner--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.cookie-banner__text {
  flex: 1;
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.55;
  margin: 0;
}

.cookie-banner__text a {
  color: #7c4dff;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.cookie-banner__text a:hover {
  color: #4c1d95;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner__btn {
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  white-space: nowrap;
}

.cookie-banner__btn--ghost {
  background: transparent;
  border-color: #d1d5db;
  color: #374151;
}

.cookie-banner__btn--ghost:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}

.cookie-banner__btn--accept {
  background: linear-gradient(135deg, #7c4dff, #4c1d95);
  color: #fff;
  border-color: transparent;
}

.cookie-banner__btn--accept:hover {
  background: linear-gradient(135deg, #6d3de8, #3b1580);
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    bottom: 16px;
    width: calc(100% - 32px);
    gap: 14px;
  }

  .cookie-banner__actions {
    justify-content: flex-end;
  }
}

/* ===== QUOTE SECTION (Cjenik) ===== */
.quote-section {
  background: linear-gradient(135deg, #7c4dff 0%, #4c1d95 100%);
  padding: 88px 0 96px;
}

.quote-section__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.quote-section__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.quote-section__title {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 20px;
}

.quote-section__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  margin-top: 12px;
}

.quote-section__desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
  margin-bottom: 32px;
}

.quote-section__trust {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quote-section__trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
}

.quote-section__trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  flex-shrink: 0;
}

.quote-section__form-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 36px;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quote-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.quote-form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quote-form__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.quote-form__required { color: #fca5a5; }

.quote-form__optional {
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 4px;
}

.quote-form__input,
.quote-form__select,
.quote-form__textarea {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: #fff;
  width: 100%;
  outline: none;
  transition: border-color 0.18s, background 0.18s;
  -webkit-appearance: none;
  appearance: none;
}

.quote-form__input::placeholder,
.quote-form__textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.quote-form__select option {
  background: #4c1d95;
  color: #fff;
}

.quote-form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.quote-form__input:focus,
.quote-form__select:focus,
.quote-form__textarea:focus {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.18);
}

.quote-form__input.is-invalid,
.quote-form__select.is-invalid,
.quote-form__textarea.is-invalid {
  border-color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
}

.quote-form__textarea {
  resize: vertical;
  min-height: 130px;
}

.quote-form__error {
  font-size: 0.8rem;
  color: #fca5a5;
  display: none;
}

.quote-form__error.is-visible { display: block; }

.quote-form__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.quote-form__note {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.quote-form__success {
  text-align: center;
  padding: 40px 24px;
}

.quote-form__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  margin-bottom: 16px;
}

.quote-form__success h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.quote-form__success p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .quote-section__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .quote-section {
    padding: 56px 0 64px;
  }
}

@media (max-width: 600px) {
  .quote-section__form-card { padding: 24px 20px; }
  .quote-form__row { grid-template-columns: 1fr; }
  .quote-form__footer { flex-direction: column-reverse; align-items: flex-start; }
  .quote-form__footer .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   KONTAKT — tablet fixes (collapses at same 900 px breakpoint
   as the page-hero so layout stays consistent)
   ============================================================ */
@media (max-width: 900px) {
  /* Remove narrow max-width on hero description in single-column layout */
  .page-hero__desc {
    max-width: none;
  }

  /* Collapse info-card grid to single column (prevents auto-column overflow) */
  .info-card__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 36px 28px;
  }
}

/* Kontakt podatci — mobile: hide disclaimer text and row labels */
@media (max-width: 768px) {
  .info-card__disclaimer {
    display: none;
  }

  .info-card__label {
    display: none;
  }
}

/* Footer — mobile: hide Stranice and Pravno nav groups */
@media (max-width: 768px) {
  .footer__nav {
    display: none;
  }
}

/* ===== MOBILE ACCORDION — Cjenik page ===== */

/* Flex row: title + chevron button */
.accordion-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

/* Button hidden on desktop */
.accordion-toggle {
  display: none;
}

@media (max-width: 768px) {
  /* Tighten section padding so collapsed sections feel compact */
  .accordion-section {
    padding: 28px 0;
  }

  /* Show the chevron toggle button */
  .accordion-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--border-color);
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-body);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    margin-top: 2px;
  }

  .accordion-toggle svg {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .accordion-section--open .accordion-toggle svg {
    transform: rotate(180deg);
  }

  .accordion-toggle:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
  }

  /* Section title: remove bottom margin when collapsed */
  .accordion-section .usluge-section__title {
    margin-bottom: 0;
  }

  /* Collapsible body */
  .accordion-body {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease;
  }

  .accordion-section--open .accordion-body {
    opacity: 1;
    /* max-height set by JS to exact scrollHeight */
  }

  /* Restore title margin once open */
  .accordion-section--open .usluge-section__title {
    margin-bottom: 20px;
  }
}
