@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700&family=Michroma&display=swap');

:root {
  --text: #191919;
  --blue: #1877F2;
  --red: #FF5B22;
  --main: #F4EDD3;
  --bg: #F4EDD3;
  --font-head: 'Michroma', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --grad: linear-gradient(85.28deg, #FF5B22 0.2%, #1877F2 96.9%);
}

html { font-size: calc(100vw / 1440 * 10); overflow-x: hidden; overflow-y: scroll; }
@media (max-width: 1024px) { html { font-size: calc(100vw / 1024 * 10); } }
@media (max-width: 640px) { html { font-size: calc(100vw / 375 * 10); } }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; overflow-x: hidden; }
html.fixed, html.fixed body { overflow: hidden; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > main { flex: 1 0 auto; }
.footer { flex-shrink: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; }

#preloader { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: var(--bg); }

.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; padding: 2.2rem 0; transition: background-color .3s, box-shadow .3s; }
.header.scrolled { background: var(--main); box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, .15); }
.header-inner { width: 100%; max-width: 128rem; margin: 0 auto; }
.nav { display: flex; justify-content: space-between; align-items: center; }
.nav-link { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; color: var(--text); transition: color .2s; }
.nav-link:hover { color: var(--blue); }
.burger-btn { display: none; background: transparent; border: 0; }

#mobile-menu { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; padding-top: 17.5rem; background: var(--main); opacity: 0; pointer-events: none; transition: opacity .3s; }
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
.mobile-nav { display: flex; flex-direction: column; align-items: center; gap: 3.6rem; }
.mobile-menu-img { width: 21.7rem; height: auto; margin-top: 5.6rem; }

.title-anim { opacity: 0; }
.title-anim.in-view {
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .95) 50%, transparent 60%) 150% 0 / 250% 100% no-repeat, var(--grad);
  -webkit-background-clip: text; background-clip: text;
  animation: t-dash .9s cubic-bezier(.2, .9, .25, 1.15) forwards, t-glare 1s ease-in-out .75s forwards;
}
@keyframes t-dash {
  0% { opacity: 0; transform: translateX(-40vw) skewX(-25deg); filter: blur(.6rem); }
  60% { opacity: 1; transform: translateX(2rem) skewX(10deg); filter: blur(0); }
  80% { transform: translateX(-.6rem) skewX(-3deg); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes t-glare {
  to { background-position: -50% 0, 0 0; }
}
.hero { min-height: 82.3rem; background: url('../img/hero.webp') center / cover no-repeat; }
.hero-inner { width: 100%; max-width: 128rem; margin: 0 auto; padding: 7.9rem 0 39.1rem; display: flex; flex-direction: column; align-items: center; gap: 3.3rem; }
.hero-title img { width: 63rem; height: auto; }
.hero-car { display: none; }

main { display: flex; flex-direction: column; gap: 15rem; padding-bottom: 15rem; }

.container { width: 100%; max-width: 128rem; margin: 0 auto; padding: 0 2rem; }
.title { font-family: var(--font-head); font-weight: 400; font-size: 3.6rem; line-height: 1.5; text-align: center; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

.about-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.about-img { width: 21.7rem; height: auto; flex-shrink: 0; }
.about-text { width: 84.1rem; display: flex; flex-direction: column; gap: 2.8rem; text-align: center; }

.how-row { margin-top: 6.4rem; display: flex; justify-content: space-between; align-items: center; gap: 6.4rem; }
.how-col { width: 32.5rem; display: flex; flex-direction: column; gap: 4rem; flex-shrink: 0; }
.how-img { width: 50.2rem; height: auto; }
.step { display: flex; gap: 0.7rem; align-items: flex-start; }
.step-num { width: 6.9rem; flex-shrink: 0; font-family: var(--font-head); font-size: 3.6rem; line-height: 1.5; color: var(--blue); }
.step-text { display: flex; flex-direction: column; gap: 0.8rem; }
.step-text h3 { font-family: var(--font-head); font-weight: 400; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--red); }

.gallery .title { margin-bottom: 2.8rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2rem; }
.g-item { height: 23.6rem; overflow: hidden; }
.g-item picture, .g-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.g1, .g2, .g3 { grid-column: span 2; }
.g4, .g5 { grid-column: span 3; }

.contact-inner { width: 100%; max-width: 30.4rem; margin: 0 auto; display: flex; flex-direction: column; gap: 2.8rem; text-align: center; }
.contact-body { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-mail { color: var(--blue); font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; transition: opacity .2s; }
.contact-mail:hover { opacity: .7; }

.footer { background: var(--grad); padding: 4.6rem 0; }
.footer-inner { width: 100%; max-width: 128rem; margin: 0 auto; display: flex; flex-direction: column; gap: 5rem; }
.footer-links { display: flex; justify-content: space-between; }
.footer-links a { font-family: var(--font-head); font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.6; transition: color .3s; }
.footer-links a:hover { color: var(--main); }
.copyright { font-size: clamp(12px, 1.2rem, 1.2rem); text-align: center; }

.legal-main { display: block; padding: 6rem 0 0; min-height: 82rem; }
.legal-body .header-inner, .legal-body .footer-inner { max-width: 108rem; }
.legal-page { padding: 2.8rem 0 8rem; }
.legal-content { width: 100%; max-width: 108rem; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.legal-content h1 { margin-bottom: 2.4rem; font-family: var(--font-head); font-weight: 400; font-size: 3.6rem; line-height: 1.5; text-align: center; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.legal-content h2 { font-family: var(--font-head); font-weight: 400; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; margin-top: 1.6rem; }
.legal-content p, .legal-content li { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; }
.legal-content ul { margin: 0; padding-left: 2.4rem; }
.legal-content a { font-weight: 700; transition: color .3s; }
.legal-content a:hover { color: var(--blue); }
.legal-content b, .legal-content strong { font-weight: 700; }

@media (max-width: 1024px) {
  .hero { min-height: 0; background-position: top 12rem left 0rem; }
  .hero-inner { padding-bottom: 20rem; }
  .container, .header-inner, .footer-inner { padding-left: 4rem; padding-right: 4rem; }
  .about-inner { flex-direction: column; }
  .about-img-r { display: none; }
  .about-text { width: 100%; }
  .how-row { flex-wrap: wrap; justify-content: center; gap: 4rem; }
  .how-img { order: -1; width: 40rem; }
  .how-col { width: calc(50% - 2rem); }
  .legal-content { padding: 0 4rem; }
  .gallery-grid { gap: 1.6rem; }
  .g-item { height: 18rem; }
}

@media (max-width: 640px) {
  .header { padding: 4.2rem 0 0; }
  .header.scrolled { padding: 2.1rem 0; }
  .header-inner { padding: 0 4.2rem; display: flex; justify-content: flex-end; }
  .nav { display: none; }
  .burger-btn { display: block; position: relative; width: 4.8rem; height: 4.8rem; padding: 0; }
  .burger-btn span { position: absolute; left: 0.6rem; width: 3.6rem; height: 0.3rem; background: var(--blue); transition: transform .3s, opacity .3s; }
  .burger-btn span:nth-child(1) { top: 1.65rem; }
  .burger-btn span:nth-child(2) { top: 2.25rem; }
  .burger-btn span:nth-child(3) { top: 2.85rem; }
  .burger-btn.act span:nth-child(1) { top: 2.25rem; transform: rotate(45deg); }
  .burger-btn.act span:nth-child(2) { opacity: 0; }
  .burger-btn.act span:nth-child(3) { top: 2.25rem; transform: rotate(-45deg); }
  #mobile-menu { padding-top: 17.5rem; }

  .hero { min-height: 80rem; background-image: url('../img/hero-m.webp'); background-position: center; }
  .hero-inner { padding: 19rem 2rem 0; gap: .5rem; }
  .hero-title img { width: 33.5rem; }
  .hero-car { display: block; }
  .hero-car img { width: 33.5rem; height: auto; }

  main { gap: 8rem; padding-bottom: 8rem; }
  .container, .contact-inner { padding: 0 2rem; max-width: none; }
  .contact-inner { max-width: 37.5rem; }

  .about-inner { gap: 2.4rem; align-items: stretch; }
  .about-text { display: contents; }
  .about-text .title { order: 1; }
  .about-img-l { order: 2; width: 100%; }
  .about-body { order: 3; text-align: left; }

  .how-row { margin-top: 2.4rem; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 1.2rem; }
  .how-col { width: 100%; gap: 1.2rem; }
  .how-img { order: -1; width: 100%; }
  .how-col-r { order: 2; }

  .gallery .title { margin-bottom: 2.4rem; }
  .gallery-grid { display: flex; flex-wrap: wrap; gap: 2rem; }
  .g-item { height: 19.1rem; width: 100%; }
  .g2 { order: 1; }
  .g3 { order: 2; width: 6.9rem; }
  .g5 { order: 3; width: 24.6rem; }
  .g4 { order: 4; }
  .g1 { order: 5; }

  .contact-inner { gap: 2.4rem; }

  .footer { padding: 3.2rem 2rem; }
  .footer-inner { gap: 3.6rem; padding-left: 0; padding-right: 0; }
  .footer-links { flex-direction: column; justify-content: flex-start; gap: 1rem; align-items: flex-start; }
  .copyright { text-align: left; }

  .legal-main { padding-top: 9rem; min-height: 0; }
  .legal-page { padding: 2.8rem 2rem 8rem; }
  .legal-content { padding: 0; }
  .legal-content h1 { text-align: left; }
}
