/* ================================================
   Netzasory — Pixel-perfect Figma implementation
   Design: 1280×9234px
   Palette: #312783, #221C69, #1E1A4D, #E94E1A, #FF6430
   Fonts: Russo One 400, Inter 400/600
   ================================================ */

/* --- Custom Properties --- */
:root {
  --frame-w: 1280px;
  --purple-main: #312783;
  --purple-dark: #221c69b1;
  --purple-deep: #221c6982;
  --purple-footer: #211A5D;
  --accent: #E94E1A;
  --accent-light: #FF6430;
  --white: #FFFFFF;
  --muted: #D9D9D9;
  --input-bg: #EBEEFF;
  --input-placeholder: #7A8D94;
  --radius: 45px;
  --radius-lg: 60px;
  --radius-pill: 70px;
  --shadow-card: inset 0px -23px 55px 28px rgba(0, 0, 0, 0.25);
  --font-heading: 'Russo One', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--white);
  background: var(--purple-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Decorative background SVG --- */
.decorative-bg {
  position: absolute;
  top: 1064px;
  left: 50%;
  transform: translateX(-50%);
  width: 2183px;
  height: 6933px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.99;
}

.decorative-bg img {
  width: 100%;
  height: auto;
}

/* ================================================
   HERO SECTION
   Figma: 1280×1065px area
   ================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 1065px;
  overflow: hidden;
  z-index: 1;
}

/* Background photo */
.hero-bg-photo {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1438px;
  height: 1064px;
  background: url('../img/hero-bg-7a817a.png') center/cover no-repeat;
  z-index: 0;
}

/* Purple overlay (opacity 0.93) */
.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 9234px;
  background: #292932;
  opacity: 0.8;
  z-index: 1;
}

/* Dark inner rectangle with heavy shadows */
.hero-inner {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1647px;
  height: 1065px;
  background: rgba(41, 41, 50, 0.81);
  box-shadow:
    0px 45px 52px 114px rgba(0, 0, 0, 0.25),
    inset -60px 63px 33px 161px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

/* Pipe decorative lines (left) */
.hero-pipe-left {
  position: absolute;
  right: 0;
  top: 668px;
  width: 207px;
  z-index: 3;
}

.hero-pipe-right {
  position: absolute;
  right: 0;
  top: 55px;
  width: 207px;
  z-index: 3;
}

.hero-pipe-svg {
  width: 100%;
  height: auto;
}

/* Hero content — centered flex column */
.hero-content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--frame-w);
  margin: 0 auto;
  height: 100%;
  padding: 43px 40px 60px;
  text-align: center;
}

/* Phone number */
.hero-phone {
  font-family: var(--font-heading);
  font-size: 96px;
  line-height: 1.205;
  color: var(--accent-light);
  text-align: center;
  display: block;
  text-decoration: none;
  margin-bottom: 50px;
}

/* City name */
.hero-city {
  font-family: var(--font-heading);
  font-size: 48px;
  line-height: 1.205;
  color: var(--white);
  text-align: center;
  margin-bottom: 50px;
}

/* Service title */
.hero-title {
  max-width: 892px;
  font-family: var(--font-heading);
  font-size: 64px;
  line-height: 1.205;
  color: var(--white);
  text-align: center;
  text-shadow: 15px 15px 11px rgba(0, 0, 0, 0.79);
  margin-bottom: 40px;
}

/* CTA button row */
.hero-cta-row {
  margin-bottom: 40px;
}

/* Subtitle */
.hero-subtitle {
  max-width: 1022px;
  font-family: var(--font-heading);
  font-size: 40px;
  line-height: 1.205;
  color: var(--white);
  text-align: center;
}

/* Ellipse badge — stays absolute but anchored to right side */
.hero-badge-area {
  position: absolute;
  top: 374px;
  right: 53px;
  width: 308px;
  height: 294px;
  z-index: 5;
}

.hero-ellipse {
  position: absolute;
  top: 0;
  left: 0;
  width: 308px;
  height: 294px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 14px solid var(--purple-main);
  box-shadow:
    30px 28px 0px 0px rgba(0, 0, 0, 0.25),
    inset 22px 33px 14px 7px rgba(0, 0, 0, 0.25);
}

.hero-logo {
  position: absolute;
  top: 91px;
  left: 15px;
  width: 293px;
  height: auto;
  z-index: 1;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  color: var(--white);
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: opacity 0.2s, transform 0.15s;
}

.btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.btn-cta {
  background: var(--accent);
  width: 463px;
  height: 144px;
  font-size: 36px;
  line-height: 1.205;
}

.btn-cta--submit {
  width: 100%;
  height: 96px;
  font-size: 40px;
  line-height: 1.205;
  text-transform: none;
}

/* ================================================
   NAVIGATION
   Figma: y=1173, pills along width
   ================================================ */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 20px 0;
  max-width: var(--frame-w);
  margin: 0 auto;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--purple-deep);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
  transition: opacity 0.2s;
  text-decoration: none;
}

.nav-pill:hover {
  opacity: 0.85;
}

.nav-pill span {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.21;
  color: var(--white);
  text-align: center;
  padding: 20px 30px;
  text-transform: capitalize;
}

/* ================================================
   SECTIONS - shared
   ================================================ */
.section {
  position: relative;
  z-index: 1;
  max-width: var(--frame-w);
  margin: 0 auto;
  padding: 40px 37px;
}

.card {
  background: var(--purple-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px;
  position: relative;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 48px;
  line-height: 1.205;
  color: var(--white);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 2px;
}

.section-heading--top {
  text-align: center;
}

/* ================================================
   PARTNER SECTION (stats + benefits)
   Figma card: x=37, y=1399, w=1206, h=1076
   ================================================ */

/* Stats row */
.stats-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 60px;
}

.stat-item {
  flex: 1;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 70px;
  line-height: 1.205;
  color: var(--accent);
}

.stat-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.21;
  color: var(--white);
  text-align: center;
  margin-top: 8px;
}

/* Benefits text row */
.benefits-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.benefit-item {
  flex: 1;
  text-align: center;
}

.benefit-text {
  font-family: var(--font-heading);
  font-size: 36px;
  line-height: 1.205;
  color: var(--white);
}

/* Benefit icons image */
.benefit-icons-row {
  text-align: center;
}

.benefit-icons-img {
  max-width: 1119px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ================================================
   SERVICES SECTION
   ================================================ */
.services-main-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  margin-bottom: 60px;
}

.services-main-img {
  width: 372px;
  height: 358px;
  object-fit: cover;
  border-radius: var(--radius);
}

.services-main-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.21;
  color: var(--white);
  text-align: center;
}

/* Services thumbnails grid */
.services-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 18px;
}

.services-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.services-thumb img {
  width: 100%;
  height: 267px;
  object-fit: cover;
  border-radius: var(--radius);
}

.service-name {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.21;
  color: var(--white);
}

/* ================================================
   AUTOPARK SECTION
   Figma card: x=37, y=4064, w=1206, h=2232
   ================================================ */
.autopark-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.autopark-main-img {
  width: 100%;
  max-width: 1000px;
  height: 600px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: opacity 0.3s ease;
}

.autopark-thumbnails {
  display: flex;
  justify-content: center;
  gap: 40px;
  width: 100%;
  max-width: 1000px;
}

.autopark-thumb-img {
  width: calc((100% - 160px) / 5);
  aspect-ratio: 203.35 / 152.49;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.2s;
}

.autopark-thumb-img:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.autopark-desc-block {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 40px;
}

.autopark-desc {
  font-family: var(--font-body);
  font-size: 40px;
  line-height: 1.21;
  color: var(--white);
}

.autopark-desc--wide {
  margin-bottom: 40px;
}

.autopark-accent {
  font-family: var(--font-heading);
  font-size: 96px;
  line-height: 1.205;
  color: var(--accent);
  flex-shrink: 0;
}

.autopark-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.autopark-duo-img {
  width: 100%;
  height: 356px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.2s;
}

.autopark-duo-img:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

/* ================================================
   RESULTS SECTION
   Figma card: x=37, y=6439, w=1206, h=1344
   ================================================ */
.results-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.result-card {
  display: grid;
  grid-template-columns: 484px 1fr;
  gap: 30px;
}

.result-img {
  width: 100%;
  max-width: 484px;
  height: 316px;
  object-fit: cover;
  border-radius: var(--radius);
}

.result-text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.21;
  color: var(--white);
}

/* ================================================
   CONTACT SECTION
   Figma card: x=37, y=7926, w=1206, h=811
   ================================================ */
.contact-map-icon {
  text-align: center;
  margin-bottom: 20px;
}

.contact-map-icon img {
  width: 120px;
  height: 125px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 899px;
  margin: 0 auto 30px;
}

.contact-form-message {
  max-width: 899px;
  margin: 0 auto 16px;
  padding: 16px 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 24px;
  line-height: 1.21;
  text-align: center;
}

.contact-form-message--success {
  background: rgba(63, 185, 80, 0.2);
  color: #d4ffd6;
}

.contact-form-message--error {
  background: rgba(248, 81, 73, 0.2);
  color: #ffd7d3;
}

.contact-input {
  width: 100%;
  height: 85px;
  border-radius: var(--radius);
  border: none;
  background: var(--input-bg);
  font-family: var(--font-heading);
  font-size: 36px;
  line-height: 1.205;
  color: var(--input-placeholder);
  padding: 0 49px;
  outline: none;
}

.contact-input::placeholder {
  color: var(--input-placeholder);
}

.contact-cta {
  text-align: center;
  margin-bottom: 30px;
}

.contact-social {
  text-align: center;
  margin-bottom: 20px;
  display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.contact-social-img {
  max-width: 487px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.contact-address {
  font-family: var(--font-heading);
  font-size: 36px;
  line-height: 1.205;
  color: var(--white);
  text-align: center;
}

/* ================================================
   FOOTER
   Figma: x=0, y=8815, w=1283, h=439
   ================================================ */
.footer {
  position: relative;
  z-index: 1;
  background: var(--purple-footer);
  padding: 60px 20px;
  text-align: center;
}

.footer-inner {
  max-width: 872px;
  margin: 0 auto;
}

.footer p {
  font-family: var(--font-heading);
  font-size: 36px;
  line-height: 1.205;
  color: var(--muted);
  margin-bottom: 12px;
}

.footer-credits {
  font-size: 28px;
  opacity: 0.8;
}

.red {
  font-family: var(--font-heading);
  font-size: 36px;
  line-height: 1.205;
  color: var(--accent);
}

/* ================================================
   RESPONSIVE: Tablet (≤1024px)
   ================================================ */
@media (max-width: 1024px) {
  .hero {
    height: auto;
    min-height: 600px;
    padding: 60px 20px;
  }

  .hero-bg-photo,
  .hero-bg-overlay,
  .hero-inner {
    left: 0;
    width: 100%;
  }

  .hero-bg-overlay {
    height: 100%;
  }

  .hero-inner {
    width: 100%;
    height: 100%;
  }

  .hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .hero-phone,
  .hero-city,
  .hero-title,
  .hero-subtitle,
  .hero-cta-row {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
  }

  .hero-phone {
    font-size: 48px;
  }

  .hero-city {
    font-size: 36px;
  }

  .hero-title {
    font-size: 36px;
    width: 100%;
  }

  .hero-subtitle {
    font-size: 24px;
    width: 100%;
  }

  .hero-pipe-left,
  .hero-pipe-right,
  .hero-badge-area {
    display: none;
  }

  .nav {
    justify-content: center;
    padding: 15px 20px;
  }

  .nav-pill span {
    font-size: 24px;
    padding: 12px 20px;
  }

  .section {
    padding: 20px 15px;
  }

  .card {
    padding: 25px;
  }

  .section-heading {
    font-size: 32px;
  }

  .stat-number {
    font-size: 56px;
  }

  .stat-label {
    font-size: 20px;
  }

  .stats-row {
    flex-wrap: wrap;
  }

  .stat-item {
    flex: 1 1 45%;
  }

  .benefit-text {
    font-size: 22px;
  }

  .benefits-row {
    flex-wrap: wrap;
  }

  .benefit-item {
    flex: 1 1 45%;
  }

  .services-main-block {
    flex-direction: column;
    gap: 30px;
  }

  .services-main-img {
    width: 100%;
    max-width: 372px;
    height: auto;
  }

  .services-main-title {
    font-size: 28px;
  }

  .service-name {
    font-size: 18px;
  }

  .services-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }

  .autopark-desc {
    font-size: 24px;
  }

  .autopark-accent {
    font-size: 56px;
  }

  .autopark-thumbnails {
    flex-wrap: wrap;
    gap: 20px;
  }

  .autopark-thumb-img {
    width: calc(50% - 10px);
    height: auto;
  }

  .result-card {
    grid-template-columns: 1fr;
  }

  .result-img {
    max-width: 100%;
    height: auto;
  }

  .result-text {
    font-size: 22px;
  }

  .btn-cta {
    width: 100%;
    height: auto;
    padding: 20px 30px;
    font-size: 28px;
  }

  .btn-cta--submit {
    height: auto;
    padding: 18px 30px;
    font-size: 28px;
  }

  .contact-input {
    height: 65px;
    font-size: 24px;
    padding: 0 30px;
  }

  .contact-address {
    font-size: 24px;
  }

  .footer p {
    font-size: 24px;
  }

  .footer-credits {
    font-size: 18px;
  }

  .decorative-bg {
    display: none;
  }
}

/* ================================================
   RESPONSIVE: Mobile (≤640px)
   ================================================ */
@media (max-width: 640px) {
  .hero {
    min-height: 500px;
    padding: 40px 15px;
  }

  .hero-phone {
    font-size: 32px;
  }

  .hero-city {
    font-size: 24px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .nav {
    gap: 8px;
    padding: 10px 10px;
  }

  .nav-pill span {
    font-size: 16px;
    padding: 8px 14px;
  }

  .section {
    padding: 10px 8px;
  }

  .card {
    padding: 16px;
    border-radius: 30px;
  }

  .section-heading {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .stats-row {
    flex-direction: column;
    gap: 15px;
  }

  .stat-item {
    flex: 1 1 100%;
  }

  .stat-number {
    font-size: 44px;
  }

  .stat-label {
    font-size: 16px;
  }

  .benefits-row {
    flex-direction: column;
    gap: 10px;
  }

  .benefit-text {
    font-size: 18px;
  }

  .services-main-img {
    width: 100%;
    height: auto;
  }

  .services-main-title {
    font-size: 22px;
  }

  .service-name {
    font-size: 14px;
  }

  .services-thumbs {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 10px;
  }

  .services-thumb {
    gap: 10px;
  }

  .services-thumb img {
    height: 150px;
  }

  .autopark-desc {
    font-size: 18px;
  }

  .autopark-desc-block {
    flex-direction: column;
    gap: 10px;
  }

  .autopark-accent {
    font-size: 40px;
  }

  .autopark-thumbnails {
    gap: 10px;
  }

  .autopark-thumb-img {
    width: calc(50% - 5px);
  }

  .autopark-main-img {
    height: 400px;
  }

  .result-text {
    font-size: 18px;
  }

  .btn-cta {
    font-size: 22px;
    padding: 16px 20px;
  }

  .btn-cta--submit {
    font-size: 22px;
    padding: 14px 20px;
  }

  .contact-input {
    height: 55px;
    font-size: 18px;
    padding: 0 20px;
  }

  .contact-address {
    font-size: 18px;
  }

  .footer p {
    font-size: 18px;
  }

  .footer-credits {
    font-size: 14px;
  }
}

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(233, 78, 26, 0.4);
  }
  70% {
    transform: scale(1.03);
    box-shadow: 0 0 0 15px rgba(233, 78, 26, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(233, 78, 26, 0);
  }
}

.hero-anim {
  animation: heroFadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
  opacity: 0;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { animation-delay: 100ms; transition-delay: 100ms; }
.delay-200 { animation-delay: 200ms; transition-delay: 200ms; }
.delay-300 { animation-delay: 300ms; transition-delay: 300ms; }
.delay-400 { animation-delay: 400ms; transition-delay: 400ms; }

.float-anim {
  animation: float 4s ease-in-out infinite;
}

.pulse-anim {
  animation: pulse 2s infinite;
}

/* Hover effects enhancements */
.services-thumb {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-thumb:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.result-card, .stat-item, .benefit-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-card:hover, .stat-item:hover, .benefit-item:hover {
  transform: translateY(-5px);
}

.btn-cta {
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 78, 26, 0.4);
}
