/* pages.css — subpage styles (stan pages + kontakt)
   Display: Cinzel | Body/UI: Josefin Sans */

html { scroll-behavior: smooth; }

body.page-body {
  background: #fff;
  color: #666;
  font-family: "Josefin Sans", "Segoe UI", Arial, sans-serif;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* ===== Page title (hero block — per-page bg photo via inline background-image) ===== */
.page-title {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 24px) 0 48px;
  background: #1c1c1c center center / cover no-repeat;
  text-align: center;
}
.page-title::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .26) 45%, rgba(0, 0, 0, .52) 100%);
  pointer-events: none;
}
.page-title .pt-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.page-title h1 {
  font-family: "Cinzel", "Abhaya Libre", serif;
  font-size: clamp(42px, 7.5vw, 92px);
  font-weight: 600;
  line-height: 1.05;
  color: #fff;
  margin: 0;
  letter-spacing: 0.04em;
  text-shadow: 0 3px 26px rgba(0, 0, 0, .45);
}
.page-title .sub-1 {
  font-family: "Josefin Sans", "Abhaya Libre", Georgia, sans-serif;
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: #EBBB61;
  margin: 14px 0 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .4);
}
.page-title .sub-2 {
  font-family: "Josefin Sans", "Abhaya Libre", Georgia, sans-serif;
  font-size: clamp(14px, 1.9vw, 19px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  margin: 10px 0 0;
}
@media (max-width: 767px) {
  .page-title {
    min-height: 0;
    padding: calc(var(--header-h-scrolled) + 30px) 0 42px;
  }
  .page-title h1 { font-size: clamp(32px, 10vw, 44px); }
  .page-title .sub-1 { font-size: clamp(17px, 5vw, 22px); margin: 10px 0 0; }
  .page-title .sub-2 { font-size: clamp(12px, 3.8vw, 14px); }
}

/* ===== Raspoored (floor plan gallery + table) ===== */
.raspoored {
  padding: 54px 0;
  background: #fff;
}
.raspoored .ro-head {
  text-align: center;
}
.raspoored .ro-head h1 {
  font-family: "Cinzel", "Abhaya Libre", serif;
  font-size: clamp(40px, 6.5vw, 80px);
  font-weight: 600;
  line-height: 1;
  color: #c7b085;
  margin: 0;
  letter-spacing: 0.02em;
}
.divider-line {
  position: relative;
  width: 100%;
  max-width: 1600px;
  height: 2px;
  margin: 36px auto 40px;
  background: linear-gradient(90deg, rgba(199, 176, 133, .1) 0%, #c7b085 50%, rgba(199, 176, 133, .1) 100%);
}
.divider-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .7) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: lineShimmer 4s var(--ease, cubic-bezier(.22, .61, .36, 1)) infinite;
  animation-delay: 1.2s;
}
@keyframes lineShimmer {
  to { transform: translateX(100%); }
}

.raspoored-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
}
@media (max-width: 980px) {
  .raspoored-grid { grid-template-columns: 1fr; }
}

/* plans gallery frame (1 per view) */
.plans-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 791 / 593;
  overflow: hidden;
  background: #f5f5f5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  transition: box-shadow .3s ease;
}
.plans-frame:hover { box-shadow: 0 16px 42px rgba(0, 0, 0, .14); }
.plans-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}
.plans-track .plan-item {
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
}
.plans-track .plan-item img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  cursor: pointer;
}
.plans-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 42px;
  background: rgba(56, 56, 56, 0.55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
}
.plans-frame:hover .plans-nav,
.plans-nav:focus-visible { opacity: 1; }
.plans-nav:hover { background: rgba(199, 176, 133, 0.75); }
.plans-nav.prev { left: 0; }
.plans-nav.next { right: 0; }
.plans-count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 3px;
  z-index: 4;
}

/* stan data table */
.stan-table-container { max-width: 787px; }
.stan-table-title {
  font-family: "Cinzel", "Abhaya Libre", serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8f7a55;
  text-align: center;
  margin-bottom: 12px;
}
.stan-data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e4ded1;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .08);
}
.stan-data-table th {
  font-family: "Josefin Sans", "Abhaya Libre", serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fff;
  background: #2b2b2b;
  text-align: left;
  padding: 13px 18px;
  border-bottom: 2px solid #c7b085;
}
.stan-data-table td {
  font-size: 15px;
  color: #444;
  padding: 11px 18px;
  border-bottom: 1px solid #efe9dc;
}
.stan-data-table tbody tr:nth-child(even) td { background: #f8f6f0; }
.stan-data-table tbody tr:last-child td { border-bottom: none; }
.stan-data-table tbody tr.stan-total-row td {
  background: #c7b085;
  color: #1c1c1c;
  font-weight: 700;
  font-size: 16px;
}

/* ===== Carousel sections (photos + brands) ===== */
.car-section {
  background: #fff;
  overflow: hidden;
}
.car-section.photos { padding: 0; }
.car-section.brands { padding: 54px 0; }
.car-viewport { overflow: hidden; width: 100%; position: relative; }
.car-track {
  display: flex;
  gap: 15px;
  transition: transform 0.4s ease;
  will-change: transform;
}
.car-section.photos .car-item,
.car-section.brands .car-item {
  flex: 0 0 calc((100% - 30px) / 3);
}
.car-item {
  overflow: hidden;
  min-height: 0;
}
.car-section.photos .car-item { aspect-ratio: 16 / 9; }
.car-section.photos .car-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform .35s ease;
}
.car-section.photos .car-item:hover img { transform: scale(1.04); }
.car-section.brands .car-item {
  display: flex;
  align-items: center;
  justify-content: center;
}
.car-section.brands .car-item img {
  max-height: 262px;
  width: auto;
  object-fit: contain;
  display: block;
  user-select: none;
}
@media (max-width: 767px) {
  .car-section.photos .car-item,
  .car-section.brands .car-item { flex: 0 0 100%; }
  .car-track { gap: 0; }
  .car-section.brands .car-item img { max-height: 180px; }
}

/* carousel arrows + dots */
.car-navi {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  user-select: none;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
  font-size: 26px;
  color: #fff;
  background: rgba(56, 56, 56, 0.55);
}
.car-section:hover .car-navi,
.car-navi:focus-visible { opacity: 1; }
.car-navi:hover { background: rgba(199, 176, 133, 0.75); }
.car-navi.prev { left: 0; }
.car-navi.next { right: 0; }
.car-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 0;
}
.car-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d8d8d8;
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}
.car-dots .dot.active {
  background: #c7b085;
  transform: scale(1.25);
}
.car-section.brands .car-dots { padding-bottom: 14px; }
.car-section.photos .car-dots { padding-bottom: 18px; }

/* ===== Video section ===== */
.video-section {
  position: relative;
  height: 1000px;
  background: #000;
  overflow: hidden;
}
.video-section .video-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.video-section video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}
@media (max-width: 767px) {
  .video-section { height: 500px; }
}

/* ===== Kontakt page ===== */
.kontakt-section {
  padding: 54px 0;
  background: #fff;
}
.kontakt-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
}
@media (max-width: 767px) {
  .kontakt-grid { grid-template-columns: 1fr; }
}
.kontakt-info h1 {
  font-family: "Cinzel", "Abhaya Libre", serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #c7b085;
  margin: 0 0 26px;
}
.kontakt-info h1.head {
  font-family: "Cinzel", "Actor", serif;
  font-weight: 400;
  font-size: 24px;
  margin: 0 0 6px;
}
.kontakt-info h2 {
  font-family: "Josefin Sans", "Actor", sans-serif;
  font-size: 23.8px;
  font-weight: 400;
  color: #555;
  margin: 0 0 26px;
  line-height: 1.35;
}
.kontakt-info h2.phone {
  font-size: 26px;
  margin-bottom: 0;
  letter-spacing: 0.06em;
}
.kontakt-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .divider-line::after { animation: none; }
  .plans-track,
  .car-track,
  .car-section.photos .car-item img { transition: none; }
}
