﻿*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --title-color: #ffe8c7;
  --sub-color: rgba(255,246,230,0.96);
  --hero-max: 770px;
  --btn-a: #c7903b;
  --btn-b: #efc277;
  --btn-radius: 12px;
  --btn-shadow: 0 14px 34px rgba(212, 169, 86, 0.34);
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url(hero-festcar-2026.jpg) center center / cover no-repeat;
}

.main,
.hero {
  min-height: calc(100vh - 82px);
}

.hero {
  display: flex;
  align-items: center;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-content {
  max-width: var(--hero-max);
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}

.hero-title {
  font-size: clamp(2rem, 5.2vw, 4.6rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  color: var(--title-color);
  background: linear-gradient(110deg, var(--title-color) 0%, #fff3d2 46%, #ffffff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  animation: titleFlow 7s ease-in-out infinite alternate;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.58;
  color: var(--sub-color);
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.48);
  max-width: 670px;
}

.hero-wrapper {
  margin-top: 48px;
  display: flex;
  justify-content: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  padding: 18px 40px;
  border-radius: var(--btn-radius);
  font-size: 1.03rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--btn-a), var(--btn-b));
  box-shadow: var(--btn-shadow), 0 0 24px rgba(255, 222, 150, 0.2);
  transition: transform .2s ease, filter .2s ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 62%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg);
  animation: btnShine 3.2s ease-in-out infinite;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.32);
  padding: 16px 0;
}

.site-footer-inner {
  display: flex;
}

.site-footer-inner.footer-left {
  justify-content: flex-start;
}

.site-footer-inner.footer-right {
  justify-content: flex-end;
}

.requisites-block {
  display: inline-grid;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(0,0,0,0.26);
  border: 1px solid rgba(255,255,255,0.18);
}

.requisites-plain {
  display: inline-grid;
  gap: 6px;
}

.requisites-title {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,240,214,0.96);
}

.requisites-line {
  min-height: 18px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.92);
}

@keyframes titleFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes btnShine {
  0% { left: -120%; }
  55% { left: 130%; }
  100% { left: 130%; }
}

@media (max-width: 900px) {
  .hero {
    align-items: flex-end;
  }

  .hero-container {
    padding-bottom: 36px;
  }

  body {
    background: linear-gradient(rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.38)), url(mobile-festcar-2026.jpg) center center / cover no-repeat;
  }

  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 7.8vw, 2.8rem);
    margin-bottom: 16px;
    animation: none;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-wrapper {
    margin-top: 34px;
  }

  .btn-primary {
    width: 100%;
    max-width: 320px;
  }
}
