/* ===================================================
   VERNER DOMY — Mobile-first CSS
   =================================================== */

/* === 1. DESIGN TOKENS === */
:root {
  --c-primary:      #C41E1E;
  --c-primary-dark: #A01616;
  --c-bg-warm:      #F5F5F5;
  --c-dark:         #1C2230;
  --c-text:         #1A1A1A;
  --c-text-muted:   #666666;
  --c-text-light:   #999999;
  --c-white:        #FFFFFF;
  --c-border:       #EAEAEA;
  --c-star:         #F5A623;
  --c-success:      #22A861;

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,.08);
  --shadow:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);

  --nav-h:      80px;
  --container:  1440px;
  --section-py: 5.5rem;

  --z-base:        0;
  --z-raised:      1;
  --z-overlay:     2;
  --z-mobile-menu: 99;
  --z-nav:         100;
}
@media (min-width: 768px) {
  :root { --section-py: 7rem; }
}

/* === 2. RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 17px; }

body {
  font-family: var(--font);
  background: var(--c-white);
  color: var(--c-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); }
ul { list-style: none; }

/* === 3. TYPOGRAPHY === */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; color: var(--c-text); font-feature-settings: "liga" 0; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.65rem); }
h4 { font-size: 1rem; }
p  { color: var(--c-text-muted); }

.eyebrow {
  display: block;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: .875rem;
}

/* === 4. LAYOUT === */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px)  { .container { padding-inline: 2rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }
@media (min-width: 1800px) { .container { max-width: 1600px; } }
@media (min-width: 2200px) { .container { max-width: 1800px; padding-inline: 3rem; } }

.section { padding-block: var(--section-py); }
.section-header { text-align: center; margin-bottom: 4rem; margin-inline: auto; max-width: 800px; }
.section-header p { max-width: 56ch; margin-inline: auto; margin-top: 1.25rem; }

/* === 5. NAVIGATION === */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.nav--hidden {
  transform: translateY(-100%);
}
.nav--scrolled {
  background: var(--c-white);
  box-shadow: var(--shadow-sm);
  border-bottom-color: transparent;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  padding-inline: 1.5rem;
}
@media (min-width: 768px) {
  .nav__inner { padding-inline: 2.5rem; }
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  flex-shrink: 0;
  text-decoration: none;
}
.nav__logo-img {
  height: 44px;
  width: 199px;
}

/* Desktop links */
.nav__links {
  display: none;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}
.nav__links a {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--c-text);
  white-space: nowrap;
  transition: color .2s;
}
.nav__links a:hover { color: var(--c-primary); }
.nav__links a.is-active { color: var(--c-primary); }

/* Right side */
.nav__right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}
.nav__right .btn--primary {
  display: none;
  padding: .6rem 1.25rem;
  font-size: .8rem;
  letter-spacing: .02em;
}
.nav__phone {
  display: none;
  flex-direction: column;
  font-size: .62rem;
  line-height: 1.3;
  text-align: right;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}
.nav__phone span:last-child {
  font-weight: 700;
  font-size: .825rem;
  letter-spacing: .015em;
  text-transform: none;
  color: var(--c-text);
}

/* Hamburger */
.nav__burger {
  background: none;
  border: none;
  padding: .5rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: var(--radius-xs);
  transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav__burger span:nth-child(2) { width: 15px; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  z-index: var(--z-mobile-menu);
  padding: 1.25rem 1.8rem 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
  box-shadow: 0 12px 40px rgba(0,0,0,.1);
}
.nav__mobile.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.nav__mobile a {
  font-size: .9375rem;
  font-weight: 500;
  padding: .875rem 0;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--c-text);
  transition: color .15s;
}
.nav__mobile a:hover { color: var(--c-primary); }
.nav__mobile a[href^="tel"] { color: var(--c-primary); font-weight: 600; border-bottom: none; }
.nav__mobile .btn--primary {
  margin-top: 1.25rem;
  justify-content: center;
  font-size: .875rem;
  padding: .75rem 1.5rem;
  font-weight: 600;
  background: var(--c-primary);
  color: var(--c-white);
  border: 2px solid var(--c-primary);
}
.nav__mobile .btn--primary:hover {
  color: var(--c-white);
  background: var(--c-primary-dark);
  border-color: var(--c-primary-dark);
}

@media (min-width: 1280px) {
  .nav__links  { display: flex; }
  .nav__burger { display: none; }
  .nav__right .btn--primary { display: inline-flex; }
}
@media (min-width: 1800px) {
  .nav__phone { display: flex; }
}

/* Hero container z-index */
.hero .container { position: relative; z-index: var(--z-overlay); }

/* === 6. BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn:active { transform: scale(.98); }

.btn--primary {
  background: var(--c-primary);
  color: var(--c-white);
  border-color: var(--c-primary);
}
.btn--primary:hover {
  background: var(--c-primary-dark);
  border-color: var(--c-primary-dark);
}

.btn--outline {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-border);
}
.btn--outline:hover {
  border-color: var(--c-text);
}

.btn--outline-white {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255,255,255,.5);
}
.btn--outline-white:hover { border-color: var(--c-white); }

.btn--ghost {
  background: none;
  border: none;
  color: var(--c-primary);
  padding-inline: 0;
  font-weight: 600;
}
.btn--ghost:hover { text-decoration: underline; }

.btn svg, .btn img { width: 16px; height: 16px; flex-shrink: 0; }
.btn--block { width: 100%; justify-content: center; }

/* === 7. HERO === */
.hero {
  position: relative;
  height: calc(100svh - var(--nav-h));
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__slides {
  position: absolute;
  inset: 0;
  z-index: var(--z-base);
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero__slide.active { opacity: 1; }

.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10,10,10,.75) 0%,
    rgba(10,10,10,.55) 45%,
    rgba(10,10,10,.25) 100%
  );
  z-index: var(--z-raised);
}

.hero__content {
  position: relative;
  z-index: var(--z-overlay);
  padding-block: 2.5rem;
  max-width: 100%;
}

/* Slideshow text – stack variants, crossfade via opacity */
.hero__title,
.hero__subtitle {
  display: grid;
}
.hero__title > .hero__text,
.hero__subtitle > .hero__text {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity .6s ease-in-out;
}
.hero__title > .hero__text.active,
.hero__subtitle > .hero__text.active {
  opacity: 1;
}

.hero__content h1 {
  color: var(--c-white);
  margin-bottom: .75rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.hero__content p {
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__actions .btn,
.hero__card { min-height: 3rem; }

.hero__card {
  display: flex;
  align-items: center;
  gap: .875rem;
  background: var(--c-white);
  border: none;
  border-radius: var(--radius);
  padding: .5rem 1.25rem;
  color: var(--c-text);
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background .2s, box-shadow .2s;
}
.hero__card:hover { background: var(--c-bg-warm); box-shadow: var(--shadow); }
.hero__card-icon {
  flex-shrink: 0;
  color: var(--c-text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__card-info .card-label { font-size: .7rem; line-height: 1.2; color: var(--c-text-muted); display: block; }
.hero__card-info .card-link { font-size: .8rem; line-height: 1.2; color: var(--c-primary); display: flex; align-items: center; gap: .25rem; }
.hero__dots {
  position: absolute;
  bottom: 1.25rem;
  right: 1.5rem;
  z-index: var(--z-overlay);
  display: flex;
  gap: .5rem;
}
.hero__dot {
  width: 28px;
  height: 4px;
  border-radius: var(--radius-xs);
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background .3s;
}
.hero__dot.active { background: var(--c-white); }

@media (min-width: 768px) {
  .hero { }
  .hero__content { padding-block: 5rem; max-width: clamp(560px, 50vw, 780px); }
  .hero__content h1 { font-size: clamp(2.25rem, 3.5vw, 4rem); }
  .hero__content p { font-size: clamp(1rem, 1.2vw, 1.25rem); }
}
@media (min-width: 1440px) {
  .hero { }
  .hero__content { max-width: 820px; padding-block: 3rem; }
  .hero__content h1 { font-size: 4rem; }
  .hero__content p { font-size: 1.25rem; margin-bottom: 2rem; }
  .hero .btn { font-size: 1.05rem; padding: .75rem 2rem; }
  .hero__card { padding: .625rem 1.5rem; font-size: .9rem; }
  .hero__actions .btn,
  .hero__card { min-height: 3.375rem; }
}
@media (min-width: 2200px) {
  .hero { }
  .hero__content { max-width: 1000px; padding-block: 4rem; }
  .hero__content h1 { font-size: 5rem; }
  .hero__content p { font-size: 1.5rem; margin-bottom: 2.5rem; }
  .hero .btn { font-size: 1.15rem; padding: .875rem 2.25rem; }
  .hero__card { padding: .75rem 1.75rem; font-size: 1rem; }
  .hero__actions .btn,
  .hero__card { min-height: 3.75rem; }
}

/* === 8. BADGES === */
.badge {
  display: inline-block;
  padding: .25rem .625rem;
  border-radius: var(--radius-xl);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .03em;
  background: var(--c-primary);
  color: var(--c-white);
}

/* === 9. CARDS === */
.card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.house-card { display: block; color: inherit; text-decoration: none; }
.house-card__img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--c-bg-warm);
}
.house-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.house-card:hover .house-card__img img { transform: scale(1.04); }
.house-card__badge { position: absolute; top: .75rem; left: .75rem; }
.house-card__body { padding: 1.125rem; }
.house-card__meta {
  display: flex;
  gap: 1rem;
  margin: .5rem 0 .75rem;
  font-size: .8rem;
  color: var(--c-text-muted);
}
.house-card__meta span { display: flex; align-items: center; gap: .3rem; }
.house-card__desc {
  font-size: .85rem;
  color: var(--c-text-muted);
  margin-bottom: .875rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.house-card__link {
  color: var(--c-primary);
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.house-card--compact .house-card__img { aspect-ratio: 16/9; }
.house-card--compact .house-card__body { padding: 1rem; }
.house-card--compact .house-card__meta { gap: .875rem; margin: .375rem 0 0; }

/* Features grid */
.features-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 420px));
  justify-content: center;
}

/* Feature cards ("Proč si vybrat nás") */
.feature-card { padding: 1.75rem; display: flex; flex-direction: column; font-size: .9rem; background: var(--c-bg-warm); }
.feature-card .btn--primary { margin-top: auto; align-self: stretch; padding: .875rem 1.25rem; font-size: .9rem; justify-content: center; }
.feature-card__icon {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.feature-card__icon svg {
  width: 36px;
  height: 36px;
  color: var(--c-primary);
  stroke: var(--c-primary);
}
.feature-card h3 { margin-bottom: 2rem; text-wrap: balance; text-align: center; }
.feature-card__list { display: flex; flex-direction: column; gap: .625rem; margin-bottom: 1.25rem; }
.feature-card__list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .9375rem;
  color: var(--c-text-muted);
}
.feature-card__list li strong {
  color: var(--c-dark);
  font-weight: 600;
}
.feature-card__list li::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  background-color: var(--c-success);
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.5 12L2 7.5l1.4-1.4L6.5 9.2l6.1-6.1L14 4.5z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* === 10. STATS BAR === */
.stats {
  background: var(--c-bg-warm);
  padding-block: var(--section-py);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
}
@media (min-width: 640px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); gap: 2rem 0; }
}

.stats__item {
  display: grid;
  grid-template-columns: 24px auto;
  column-gap: .75rem;
  padding-inline: 0;
  min-width: 0;
  position: relative;
  justify-content: center;
  align-content: start;
}
@media (min-width: 640px) {
  .stats__item { padding-inline: 2.5rem; }
  .stats__item:first-child { padding-left: 0; }
  .stats__item:last-child { padding-right: 0; }
}
.stats__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--c-border);
  display: none;
}
@media (min-width: 640px) {
  .stats__item::before { display: block; }
  .stats__item:first-child::before { display: none; }
}

.stats__icon {
  width: 24px;
  height: 24px;
  color: var(--c-primary);
  grid-row: 1;
  grid-column: 1;
  align-self: center;
}
.stats__item-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--c-text);
  line-height: 1;
  margin-bottom: .5rem;
  grid-column: 2;
}
.stats__item-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: .05rem;
  grid-column: 2;
}
.stats__item-desc { font-size: 14px; color: var(--c-text-light); grid-column: 2; }

/* === 11. TECH SECTION === */
.tech__grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .tech__grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 3rem; }
  .tech__grid--reverse > *:first-child { order: 2; }
  .tech__grid--reverse > *:last-child  { order: 1; }
}
.tech__image-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.tech__image-wrap img { width: 100%; }
.tech__subtitle { margin-bottom: 1rem; }

.tech__list { display: flex; flex-direction: column; gap: .5rem; margin-top: .75rem; }
.tech__list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .875rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--c-border);
}
.tech__list li:last-child { border-bottom: none; }
.tech__num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--c-primary);
  color: var(--c-white);
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === 12. PROCESS STEPS === */
.process__grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px)  { .process__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process__grid { grid-template-columns: repeat(4, 1fr); } }

.process__step { padding: 1.5rem; }
.process__num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--c-primary);
  opacity: .15;
  line-height: 1;
  margin-bottom: .5rem;
}
.process__step h3 { margin-bottom: .5rem; }
.process__step p { font-size: .875rem; }

/* === 12b. FINANCING === */
.financing__grid {
  display: grid;
  gap: 5rem 3rem;
  padding-inline: 3rem;
  max-width: 1100px;
  margin-inline: auto;
}
@media (min-width: 640px) { .financing__grid { grid-template-columns: repeat(2, 1fr); } }

.financing__item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  max-width: 420px;
  margin-inline: auto;
}
.financing__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: color-mix(in srgb, var(--c-primary) 10%, transparent);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.financing__icon svg {
  width: 22px;
  height: 22px;
  color: var(--c-primary);
  stroke: var(--c-primary);
}
.financing__content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: .375rem;
}
.financing__content p {
  font-size: .9375rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}

/* === 13. TESTIMONIALS === */
.testimonials { background: var(--c-bg-warm); }
.testimonials__carousel {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 4rem, #000 calc(100% - 4rem), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 4rem, #000 calc(100% - 4rem), transparent 100%);
}
.testimonials__track {
  margin: 0;
  padding: 0;
  list-style: none;
}
.testimonial-card {
  width: clamp(280px, 80vw, 340px);
  height: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--c-bg-warm);
  flex-shrink: 0;
}
.testimonial__avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial__avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-primary);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .875rem;
  flex-shrink: 0;
}
.testimonial__stars { display: flex; gap: 4px; margin-bottom: 1rem; }
.testimonial__stars svg { width: 24px; height: 24px; fill: var(--c-star); }
.testimonial__text {
  font-style: italic;
  font-size: 1rem;
  color: var(--c-text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}
.testimonial__footer {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: auto;
}
.testimonial__author { font-weight: 700; font-size: .875rem; }
.testimonial__location { font-size: .75rem; color: var(--c-text-light); margin-top: .125rem; }
.testimonials__bottom {
  margin-top: 2rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.testimonials__avatars { display: flex; }
.testimonials__avatars .av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--c-white);
  background: var(--c-primary);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  margin-left: -8px;
}
.testimonials__avatars .av:first-child { margin-left: 0; }
.testimonials__note { font-size: .875rem; color: var(--c-text-muted); }

/* === 14. FAQ === */
.faq__list { display: flex; flex-direction: column; gap: 0.75rem; max-width: 760px; margin-inline: auto; }
.faq__item {
  background: var(--c-bg-warm);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
  cursor: pointer;
}
.faq__icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq__icon svg { width: 10px; height: 10px; transition: transform .3s; }
.faq__item.is-open .faq__icon svg { transform: rotate(180deg); }
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq__answer-inner {
  padding: 0 1.25rem 1.125rem;
  font-size: .9375rem;
  color: var(--c-text-muted);
  line-height: 1.7;
}
.faq__answer-inner p {
  margin-bottom: 12px;
  line-height: 1.6;
}

/* === 15. TEAM === */
.team__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  max-width: 1140px;
  margin-inline: auto;
}

.team-card {
  padding: 0;
  overflow: hidden;
  flex: 0 0 calc(50% - 0.625rem);
}
@media (min-width: 640px)  { .team-card { flex-basis: calc(33.333% - 0.834rem); } }
@media (min-width: 1024px) { .team-card { flex-basis: 260px; } }
.team-card__photo {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #EAEAEA;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-light);
}
.team-card__photo-icon {
  width: 32%;
  height: auto;
  max-width: 72px;
}
.team-card__body { padding: 1rem; }
.team-card h3 { font-size: .9375rem; font-weight: 700; margin-bottom: .25rem; }
.team-card__role { font-size: .8rem; color: var(--c-text-muted); margin-bottom: 0; }
.team-card__contacts {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: .875rem;
  padding-top: .875rem;
  border-top: 1px solid var(--c-border);
}
.team-card__contact {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: var(--c-text-muted);
  text-decoration: none;
}
.team-card__contact:hover { color: var(--c-primary); }
.team-card__contact svg { width: 14px; height: 14px; flex-shrink: 0; }

/* === 16. CONTACT SECTION === */
.contact { background: var(--c-dark); }
.contact__grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 768px) { .contact__grid { grid-template-columns: minmax(0, 720px) minmax(0, 620px); gap: 5rem; justify-content: space-around; } }

.contact__info h2, .contact__info .eyebrow { color: var(--c-white); }
.contact__info h2 { margin-bottom: .75rem; }
.contact__info p { color: rgba(255,255,255,.65); margin-bottom: 2rem; }

.contact__links { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.contact__link {
  display: flex;
  align-items: center;
  gap: .875rem;
  color: rgba(255,255,255,.8);
  font-size: .875rem;
  text-decoration: none;
}
.contact__link:hover { color: var(--c-white); }
.contact__link-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact__link-icon svg { width: 18px; height: 18px; }
.contact__link-label { font-size: .7rem; opacity: .6; display: block; }
.contact__link-value { font-weight: 600; font-size: .9rem; line-height: 1.5; }
.contact__link--multiline { align-items: flex-start; }
.contact__link--multiline .contact__link-icon { margin-top: .125rem; }

.contact__config-btn {
  border: 2px solid var(--c-primary);
  color: var(--c-white);
  background: var(--c-primary);
  padding: .75rem 1.25rem;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 2rem;
  transition: background .2s, border-color .2s, color .2s;
}
.contact__config-btn:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); color: var(--c-white); }

/* Contact Form */
.contact__form-box {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.contact__form-box h3 { margin-bottom: 1.25rem; }

.form-grid { display: grid; gap: .875rem; }
.form-row { display: grid; gap: .875rem; }
@media (min-width: 480px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-group { display: flex; flex-direction: column; gap: .375rem; }
.form-group label { font-size: .8rem; font-weight: 600; color: var(--c-text); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .625rem .875rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .875rem;
  color: var(--c-text);
  background: transparent;
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--c-primary); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: .75rem; color: var(--c-text-light); margin-top: .25rem; }

/* === 17. MAPA === */
.map-section {
  line-height: 0;
  background: var(--c-dark);
}
.map-section iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
  filter: grayscale(.15);
}
@media (max-width: 640px) {
  .map-section iframe { height: 320px; }
}

/* === 18. FOOTER === */
.footer {
  background: var(--c-dark);
  border-top: 1px solid rgba(255,255,255,.06);
  padding-block: 3rem 1.5rem;
}
.footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px)  { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 2fr 1.3fr 1fr 1fr 1fr; } }

.footer__brand p { font-size: .85rem; color: rgba(255,255,255,.5); margin-top: .625rem; max-width: 28ch; }
.footer__brand-name { font-size: 1.125rem; font-weight: 800; color: var(--c-white); }
.footer__social { display: flex; gap: .625rem; margin-top: 1rem; }
.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.footer__social a:hover { background: rgba(255,255,255,.14); }
.footer__social svg { width: 16px; height: 16px; fill: rgba(255,255,255,.7); }

.footer__col h4 { font-size: .8rem; font-weight: 700; color: var(--c-white); letter-spacing: .05em; text-transform: uppercase; margin-bottom: .875rem; }
.footer__col li { margin-bottom: .5rem; }
.footer__col a { font-size: .85rem; color: rgba(255,255,255,.5); transition: color .2s; }
.footer__col a:hover { color: rgba(255,255,255,.85); }
.footer__col address { font-size: .85rem; color: rgba(255,255,255,.5); font-style: normal; line-height: 1.6; }
.footer__col address strong { color: rgba(255,255,255,.75); font-weight: 600; }
.footer__col address .footer__ids { margin-top: .625rem; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 1.25rem;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}

/* === 18. PAGE HEADER (katalog, detail, konfigurátor) === */
.page-header {
  background: var(--c-bg-warm);
  padding-block: var(--section-py);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("img/bg_texture/topography.svg");
  background-size: 600px;
  background-repeat: repeat;
  opacity: .04;
}
.page-header .container { position: relative; }
.page-header h1 { margin-bottom: .625rem; }
.page-header p { max-width: 52ch; }

/* Filter tabs */
.filter-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.filter-tab {
  padding: .5rem 1.125rem;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--c-border);
  background: var(--c-white);
  font-size: .875rem;
  font-weight: 600;
  color: var(--c-text);
  cursor: pointer;
  transition: all .2s;
}
.filter-tab.active, .filter-tab:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: var(--c-white);
}

/* Catalog grid */
.catalog-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px)  { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .catalog-grid { grid-template-columns: repeat(3, 1fr); } }

/* Not-found CTA */
.notfound-cta {
  text-align: center;
  border-radius: var(--radius-lg);
}
.notfound-cta h2 { margin-bottom: .75rem; }
.notfound-cta p { margin-bottom: 1.5rem; max-width: 45ch; margin-inline: auto; }

/* === 19. DETAIL PAGE === */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .875rem;
  color: var(--c-text-muted);
  margin-bottom: 2rem;
  text-decoration: none;
}
.breadcrumb:hover { color: var(--c-primary); }
.breadcrumb svg { width: 14px; height: 14px; }

.detail__grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) { .detail__grid { grid-template-columns: 1fr 1fr; align-items: start; } }
@media (min-width: 1024px) { .detail__grid { grid-template-columns: 1.2fr 1fr; gap: 3rem; } }

.detail__image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.detail__image-wrap img { width: 100%; display: block; }
.detail__image-badge { position: absolute; top: 1rem; left: 1rem; }

.detail__info {}
.detail__title { margin-bottom: 1rem; }
.detail__specs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.detail__spec {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: .625rem 1rem;
}
.detail__spec svg { width: 20px; height: 20px; color: var(--c-primary); flex-shrink: 0; }
.detail__spec-label { font-size: .7rem; color: var(--c-text-light); display: block; }
.detail__spec-value { font-weight: 700; font-size: .9rem; }

.detail__desc { color: var(--c-text-muted); margin-bottom: 1.5rem; line-height: 1.7; }
.detail__features h3 { margin-bottom: .875rem; }
.detail__features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin-bottom: 1.75rem;
}
.detail__feature {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
}
.detail__feature svg { width: 16px; height: 16px; color: var(--c-primary); flex-shrink: 0; }

.detail__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Related houses */
.related { background: var(--c-bg-warm); }
.related__title { margin-bottom: 1.75rem; }
.related__footer { text-align: center; margin-top: 1.5rem; }
.related__grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
@media (min-width: 640px)  { .related__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .related__grid { grid-template-columns: repeat(3, 1fr); } }

/* === 20. KONFIGURÁTOR === */
.konfig__form { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; gap: 1.5rem; }

.konfig__step {
  position: relative;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.konfig__step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--c-primary);
}
.konfig__step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}
.konfig__step-num {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--c-primary);
  color: var(--c-white);
  font-weight: 700;
  font-size: .875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.konfig__step-num svg { width: 16px; height: 16px; }
.konfig__step-title { font-weight: 700; }
.konfig__step-body { padding: 1.25rem 1.5rem; }

.radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .625rem;
}
@media (min-width: 640px) { .radio-grid { grid-template-columns: repeat(3, 1fr); } }

.radio-option { position: relative; }
.radio-option input { position: absolute; opacity: 0; pointer-events: none; }
.radio-option label {
  display: block;
  padding: .75rem 1rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .8rem;
  font-weight: 500;
  color: var(--c-text);
  transition: all .2s;
  line-height: 1.3;
}
.radio-option input:checked + label {
  border-color: var(--c-primary);
  color: var(--c-primary);
  background: color-mix(in srgb, var(--c-primary) 4%, transparent);
}
.radio-option label:hover { border-color: var(--c-primary); }

.checkbox-list { display: flex; flex-direction: column; gap: .625rem; }
.checkbox-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .875rem;
  cursor: pointer;
}
.checkbox-item input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--c-primary); cursor: pointer; flex-shrink: 0; }

.konfig__two-col {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) { .konfig__two-col { grid-template-columns: 1fr 1fr; } }

.konfig__sub-section { margin-bottom: 1.25rem; }
.konfig__sub-section:last-child { margin-bottom: 0; }
.konfig__sub-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c-text-muted); margin-bottom: .75rem; }

.radio-option small { font-weight: 400; color: var(--c-text-light); }

.konfig__flex-col { display: flex; flex-direction: column; gap: .5rem; }
.konfig__flex-row { display: flex; gap: 1rem; }
.konfig__flex-wrap { display: flex; flex-wrap: wrap; gap: .5rem; }
.konfig__flex-wrap--mt { margin-top: .375rem; }

.textarea--sm { min-height: 80px; }

.konfig__upload-label { cursor: pointer; }
.upload-hint { font-size: .75rem; margin-top: .25rem; color: var(--c-text-light); }

.file-list { margin-top: .75rem; display: flex; flex-direction: column; gap: .375rem; }
.file-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: var(--c-text-muted);
  padding: .375rem .625rem;
  background: var(--c-bg-warm);
  border-radius: var(--radius-sm);
}

.upload-area {
  border: 2px dashed var(--c-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s;
}
.upload-area:hover { border-color: var(--c-primary); }
.upload-area svg { width: 28px; height: 28px; color: var(--c-text-light); margin-inline: auto; margin-bottom: .5rem; }
.upload-area p { font-size: .8rem; color: var(--c-text-muted); }

.konfig__submit {
  text-align: center;
  padding-block: .5rem;
}
.konfig__submit .btn { min-width: 240px; }
.konfig__submit p { font-size: .75rem; color: var(--c-text-light); margin-top: .625rem; }

/* === 21. SECTIONS BG ALTERNATE === */
.bg-white { background: var(--c-white); }
.bg-warm  { background: var(--c-bg-warm); }

/* === 22. UTILS === */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: .5rem; }

.link--primary { color: var(--c-primary); }

/* Visually hidden (accessibility) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* === 22. FOTOGALERIE === */
.realization {
  margin-bottom: 5rem;
  scroll-margin-top: calc(var(--nav-h) + 1.5rem);
}
.realization:last-child { margin-bottom: 0; }
.realization.is-hidden { display: none; }

.realization__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--c-border);
}
.realization__header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: .375rem;
}
.realization__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}
@media (min-width: 560px)  { .realization__grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (min-width: 1024px) { .realization__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .realization__grid { grid-template-columns: repeat(4, 1fr); gap: 1.125rem; } }

.gallery-item {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: var(--c-bg-warm);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .25s ease;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,34,48,0) 55%, rgba(28,34,48,.35) 100%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover,
.gallery-item:focus-visible {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  outline: none;
}
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.05); }
.gallery-item:hover::after,
.gallery-item:focus-visible::after { opacity: 1; }
.gallery-item:focus-visible { box-shadow: 0 0 0 3px var(--c-primary), var(--shadow); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(14, 18, 26, .96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox__swiper {
  width: 100%;
  height: 100%;
  max-width: min(1400px, 94vw);
  max-height: 88vh;
}
.lightbox__swiper .swiper-wrapper { align-items: center; }
.lightbox__swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox__swiper .swiper-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  z-index: 2;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lightbox__close:hover { background: rgba(255,255,255,.22); transform: scale(1.05); }

.lightbox__counter {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.85);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .05em;
  font-variant-numeric: tabular-nums;
  z-index: 2;
}
.lightbox__title {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  color: rgba(255,255,255,.9);
  font-size: .95rem;
  font-weight: 500;
  text-align: center;
  z-index: 2;
  padding: 0 1rem;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  z-index: 2;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
.lightbox__nav:hover.lightbox__nav--prev { transform: translateY(-50%) translateX(-2px); }
.lightbox__nav:hover.lightbox__nav--next { transform: translateY(-50%) translateX(2px); }
.lightbox__nav.is-disabled { opacity: .3; cursor: default; pointer-events: none; }

@media (max-width: 640px) {
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav--prev { left: .5rem; }
  .lightbox__nav--next { right: .5rem; }
  .lightbox__close { top: .75rem; right: .75rem; }
  .lightbox__counter { top: 1rem; }
}

body.lightbox-open { overflow: hidden; }
