/* ===== Home page: Hero Slider ===== */
.page-home .header--transparent {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.page-home .header--transparent.header--scrolled {
  background: rgba(15, 15, 26, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.page-home .header--transparent .logo {
  color: white;
}

.page-home .header--transparent .logo__text span {
  color: rgba(255, 255, 255, 0.5);
}

.page-home .header--transparent .nav__link {
  color: rgba(255, 255, 255, 0.85);
}

.page-home .header--transparent .nav__link:hover,
.page-home .header--transparent .nav__link--active {
  color: #ffb380;
  background: rgba(232, 93, 4, 0.15);
}

.page-home .header--transparent .burger span {
  background: white;
}

.page-home .header--transparent .nav {
  background: transparent;
}

@media (max-width: 1024px) {
  .page-home .header--transparent .nav {
    background: rgba(15, 15, 26, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 640px;
  max-height: 900px;
  overflow: hidden;
}

.hero-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
  z-index: 0;
}

.hero-slide--active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 8s ease;
}

.hero-slide--active .hero-slide__bg {
  animation: kenBurns 8s ease forwards;
}

@keyframes kenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(15, 15, 26, 0.92) 0%, rgba(15, 15, 26, 0.65) 45%, rgba(15, 15, 26, 0.35) 100%),
    linear-gradient(to top, rgba(15, 15, 26, 0.5) 0%, transparent 40%);
}

.hero-slide__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 380px;
  align-items: center;
  gap: 48px;
  padding-top: var(--header-height);
}

.hero-slide__content {
  max-width: 620px;
}

.hero-slide__badge {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(232, 93, 4, 0.2);
  border: 1px solid rgba(232, 93, 4, 0.45);
  border-radius: 50px;
  color: #ffb380;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-slide__title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: white;
  line-height: 1.12;
  margin-bottom: 20px;
}

.hero-slide__title em {
  font-style: normal;
  color: var(--color-primary);
  text-shadow: 0 0 40px rgba(232, 93, 4, 0.4);
}

.hero-slide__text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-slide__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-slide__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.hero-slide .stat-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.hero-slide .stat-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
}

.hero-slide .stat-card__num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
}

.hero-slide .stat-card__label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

/* Slide animations */
.hero-slide--active .animate-in {
  animation: slideUp 0.7s ease forwards;
}

.hero-slide--active .animate-in:nth-child(1) { animation-delay: 0.1s; }
.hero-slide--active .animate-in:nth-child(2) { animation-delay: 0.2s; }
.hero-slide--active .animate-in:nth-child(3) { animation-delay: 0.35s; }
.hero-slide--active .animate-in:nth-child(4) { animation-delay: 0.5s; }

.hero-slide:not(.hero-slide--active) .animate-in {
  opacity: 0;
  transform: translateY(30px);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slider controls */
.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.hero-slider__arrow:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-50%) scale(1.08);
}

.hero-slider__arrow--prev { left: 24px; }
.hero-slider__arrow--next { right: 24px; }

.hero-slider__dots {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.hero-slider__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-slider__dot--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.2);
}

.hero-slider__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.hero-slider__progress-bar {
  height: 100%;
  width: 0;
  background: var(--color-primary);
  transition: width 0.1s linear;
}

/* ===== Marquee ===== */
.marquee {
  background: var(--color-accent);
  padding: 14px 0;
  overflow: hidden;
  border-bottom: 3px solid var(--color-primary);
}

.marquee__track {
  display: flex;
  gap: 32px;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
}

.marquee__track span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.marquee__track span:nth-child(even) {
  color: var(--color-primary);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Service cards with images ===== */
.services-grid--images {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.service-card-img {
  display: block;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card-img:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-card-img__photo {
  height: 200px;
  overflow: hidden;
}

.service-card-img__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card-img:hover .service-card-img__photo img {
  transform: scale(1.1);
}

.service-card-img__body {
  padding: 24px;
}

.service-card-img__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.service-card-img__text {
  color: var(--color-gray-500);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.service-card-img__link {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.9rem;
}

/* ===== About split ===== */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-split__images {
  position: relative;
}

.about-split__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-split__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-split__img--main {
  height: 420px;
}

.about-split__img--secondary {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 180px;
  height: 180px;
  border: 4px solid white;
  box-shadow: var(--shadow-lg);
}

.about-split__badge {
  position: absolute;
  top: 24px;
  left: -20px;
  background: var(--color-primary);
  color: white;
  padding: 20px 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 8px 30px rgba(232, 93, 4, 0.4);
  animation: pulse 3s ease infinite;
}

.about-split__badge strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.about-split__badge span {
  font-size: 0.8rem;
  opacity: 0.9;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.about-split__content p {
  color: var(--color-gray-700);
  margin-bottom: 20px;
  line-height: 1.7;
}

.about-split__list {
  margin: 24px 0 32px;
}

.about-split__list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--color-gray-700);
}

.about-split__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
  opacity: 0.2;
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.step__num {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
}

.step__icon {
  font-size: 2rem;
  margin: 16px 0 12px;
}

.step__title {
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.step__text {
  font-size: 0.9rem;
  color: var(--color-gray-500);
  line-height: 1.6;
}

/* ===== Dark section / Price preview ===== */
.section--dark {
  background: linear-gradient(135deg, var(--color-dark), var(--color-accent));
  color: white;
}

.section__title--light { color: white; }
.section__desc--light { color: rgba(255, 255, 255, 0.6); }

.price-preview {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.price-preview__table-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.price-table--dark {
  min-width: auto;
}

.price-table--dark thead {
  background: rgba(0, 0, 0, 0.3);
}

.price-table--dark tbody tr:hover {
  background: rgba(232, 93, 4, 0.1);
}

.price-preview__cta p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
  line-height: 1.7;
}

.price-preview__cta .btn {
  margin-right: 12px;
  margin-bottom: 12px;
}

/* ===== Gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 16px;
}

.gallery__item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.gallery__item--tall {
  grid-row: span 2;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery__item:hover img {
  transform: scale(1.08);
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 15, 26, 0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery__item:hover .gallery__overlay {
  opacity: 1;
}

.gallery__overlay span {
  color: white;
  font-weight: 700;
  font-size: 1rem;
  transform: translateY(10px);
  transition: transform 0.4s ease;
}

.gallery__item:hover .gallery__overlay span {
  transform: translateY(0);
}

/* ===== Feature animated ===== */
.feature--animated {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature--animated:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.feature--animated:hover .feature__icon {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ===== CTA enhanced ===== */
.cta--animated {
  position: relative;
  overflow: hidden;
}

.cta--animated::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?w=1200&q=60') center/cover;
  opacity: 0.12;
}

.cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn--white {
  background: white;
  color: var(--color-primary);
}

.btn--white:hover {
  background: var(--color-gray-100);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-slide__inner {
    grid-template-columns: 1fr;
    align-content: end;
    align-items: stretch;
    padding-bottom: 88px;
    gap: 24px;
  }

  .hero-slide__stats {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    order: 2;
  }

  .hero-slide__content {
    order: 1;
  }

  .about-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-split__img--secondary {
    right: 20px;
    bottom: -20px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps::before { display: none; }

  .price-preview {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .gallery__item--tall {
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  .page-home .header--transparent {
    background: rgba(15, 15, 26, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero-slider {
    min-height: auto;
    height: auto;
    max-height: none;
    padding-top: var(--header-height);
  }

  .hero-slider__track {
    min-height: 0;
    height: auto;
    position: relative;
  }

  .hero-slide {
    position: relative;
    inset: auto;
    min-height: 0;
    height: auto;
    display: none;
    overflow: hidden;
  }

  .hero-slide--active {
    display: block;
    opacity: 1;
    visibility: visible;
    min-height: 380px;
  }

  .hero-slide__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    min-height: 100%;
  }

  .hero-slide__overlay {
    z-index: 1;
    position: absolute;
    inset: 0;
    min-height: 100%;
    background:
      linear-gradient(180deg, rgba(15, 15, 26, 0.55) 0%, rgba(15, 15, 26, 0.82) 55%, rgba(15, 15, 26, 0.92) 100%);
  }

  .hero-slide__inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 0;
    height: auto;
    padding: 20px max(20px, env(safe-area-inset-right)) 56px max(20px, env(safe-area-inset-left));
    gap: 0;
    box-sizing: border-box;
  }

  .hero-slide__content {
    max-width: none;
    order: 1;
    width: 100%;
  }

  .hero-slide__badge {
    font-size: 0.78rem;
    padding: 6px 14px;
    margin-bottom: 14px;
  }

  .hero-slide__title {
    font-size: 1.6rem;
    margin-bottom: 12px;
    line-height: 1.2;
  }

  .hero-slide__text {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 18px;
  }

  .hero-slide__actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .hero-slide__actions .btn {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
  }

  .hero-slide__stats {
    display: none;
  }

  .hero-slide--active .animate-in,
  .hero-slide--active .hero-slide__content .animate-in {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .hero-slider__arrow {
    display: none;
  }

  .hero-slider__dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    margin-top: 0;
    padding: 0;
  }

  .hero-slider__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .hero-slide .stat-card__num .icon {
    width: 22px;
    height: 22px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery__item {
    height: 220px;
  }
}
