/* This file contains custom styles that complement Tailwind CSS. */

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
}

/* --- Hero Section with Video --- */
.hero-section {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1.5rem;
    animation: fadeIn 2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- Portfolio Slider Custom Scrollbar --- */
.portfolio-slider::-webkit-scrollbar {
    height: 8px;
}

.portfolio-slider::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 10px;
}

.portfolio-slider::-webkit-scrollbar-thumb {
    background-color: #be123c; /* Tailwind's rose-700 color */
    border-radius: 10px;
}

/* --- Portfolio Slider Snap Scrolling --- */
.scroll-snap-mandatory {
    scroll-snap-type: x mandatory;
}

.scroll-snap-align-start {
    scroll-snap-align: start;
}

/* --- Form Status Messages --- */
#form-status.success {
    color: #16a34a; /* Green for success */
}

#form-status.error {
    color: #dc2626; /* Red for error */
}


/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.reveal-visible { opacity: 1; transform: none; }

/* --- Safe layout defaults --- */
*,
*::before,
*::after { box-sizing: border-box; }

img, video { display: block; max-width: 100%; height: auto; }

/* Prevent header overlap with content on small screens */
header.sticky { position: sticky; top: 0; }

/* Ensure hero has a minimum height and content is centered consistently */
.hero-section { min-height: 75vh; }

/* Reduce sudden layout jumps for reveal: keep space reserved */
.reveal { will-change: opacity, transform; }


/* --- Design accents to make blocks eye-catching --- */
.badge { font-weight:600; letter-spacing:.2px; }
.btn-primary { background:#be123c; color:#fff; padding:.9rem 1.25rem; border-radius:.75rem; font-weight:700; display:inline-block; box-shadow:0 10px 20px rgba(190,18,60,.25); transition:transform .2s ease, box-shadow .2s ease }
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 14px 24px rgba(190,18,60,.32) }

/* hero stats */
.hero-stats .stat-card{ display:flex; align-items:center; gap:.75rem; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.25); border-radius:1rem; padding:.9rem 1rem; backdrop-filter: blur(6px); }
.stat-value{ font-weight:800; font-size:1.125rem }
.stat-label{ font-size:.85rem; opacity:.9 }

/* spotlight ribbon */
.ribbon{ position:absolute; top:10px; left:-25px; transform:rotate(-12deg); background:#be123c; color:#fff; padding:.35rem 2.25rem; font-weight:700; box-shadow:0 8px 20px rgba(190,18,60,.35); border-radius:.5rem }
.spotlight .btn-primary{ margin-top:.25rem }

/* chips */
.chip{ display:inline-flex; align-items:center; gap:.5rem; padding:.5rem .9rem; border-radius:999px; background:#f3f4f6; border:1px solid #ececec; cursor:default; transition: all .2s ease }
.chip:hover{ transform:translateY(-1px) }
.chip-active{ background:#fee2e2; border-color:#fecaca }

/* overlay caption on portfolio images */
.overlay-caption{ position:absolute; inset:0; display:flex; align-items:flex-end; opacity:0; transition:opacity .2s ease }
.overlay-caption .overlay-inner{ width:100%; background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 100%); color:#fff; padding:.75rem 1rem; text-align:center; border-bottom-left-radius:.75rem; border-bottom-right-radius:.75rem }
.relative:hover .overlay-caption{ opacity:1 }

/* avatars and stars in reviews */
.avatar{ width:36px; height:36px; border-radius:999px; background:#fee2e2; color:#be123c; font-weight:800; display:flex; align-items:center; justify-content:center }
.stars{ color:#fbbf24; letter-spacing:2px; font-size:14px }

/* workflow */
.workflow-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.workflow-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #fecaca 0%, #be123c 50%, #fecaca 100%);
  border-radius: 2px;
  transform: translateY(-50%);
  z-index: 1;
}

.workflow-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  z-index: 2;
}

.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: white;
  padding: 2rem 1.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 3px solid #fee2e2;
  transition: all 0.3s ease;
  position: relative;
}

.workflow-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: #be123c;
}

.workflow-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  border: 4px solid white;
  box-shadow: 0 8px 20px rgba(190, 18, 60, 0.2);
}

.workflow-content h3 {
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #1f2937;
}

.workflow-content p {
  color: #6b7280;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Mobile workflow */
@media (max-width: 767px) {
  .workflow-line {
    display: none;
  }
  
  .workflow-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .workflow-step {
    padding: 1.5rem 1rem;
    border-radius: 1rem;
  }
  
  .workflow-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .workflow-content h3 {
    font-size: 1.125rem;
  }
  
  .workflow-content p {
    font-size: 0.875rem;
  }
}

/* nav link underline on hover */
.nav-link{ position:relative }
.nav-link::after{ content:""; position:absolute; left:0; bottom:-4px; height:2px; width:0; background:#be123c; transition:width .2s ease }
.nav-link:hover::after{ width:100% }


/* --- Header middle nav fix --- */
nav > .hidden.md\:flex.items-center.gap-6.text-sm.font-medium ul { display:flex; gap:1.25rem; }
nav > .hidden.md\:flex.items-center.gap-6.text-sm.font-medium a { color:#4b5563; }
nav > .hidden.md\:flex.items-center.gap-6.text-sm.font-medium a:hover { color:#be123c; }

/* --- Hero stricter centering --- */
.hero-section .container { display:flex; align-items:center; justify-content:center; }
.hero-section .hero-content { max-width: 960px; }

/* --- Approach icon in card --- */
.timeline-card { position:relative; padding-left:3rem; }
.timeline-card .timeline-icon{ position:absolute; left:1rem; top:1rem; font-size:1.25rem }

/* --- Why-us feature cards --- */
.feature-card {
    background: linear-gradient(#ffffff, #ffffff) padding-box, linear-gradient(135deg,#fecaca,#f3f4f6) border-box;
    border: 1px solid transparent;
    border-radius: 1rem;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 8px 30px rgba(2,6,23,.06);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(2,6,23,.10);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-ico {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fee2e2;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-card h3 {
    font-weight: 800;
    font-size: 1.125rem;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.feature-card p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}
@media (min-width: 768px){
  #why-us .grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

/* --- Mobile navigation improvements --- */
@media (max-width: 767px) {
  /* --- HERO SECTION - ОБНОВЛЕННЫЕ СТИЛИ --- */
  .hero-section {
    height: 100vh;
    min-height: 100vh;
    padding: 0;
    display: flex;
    align-items: center;
  }
  
  .hero-content {
    width: 100%;
    max-width: 100%;
    padding: 2rem 1.25rem;
    gap: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: auto;
  }
  
  .hero-content .badge {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    border-radius: 2rem;
    margin-bottom: 0.5rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }
  
  .hero-content p {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.95;
    max-width: 300px;
  }
  
  .hero-content .btn-primary {
    font-size: 1rem;
    padding: 1rem 2rem;
    margin: 0.5rem 0;
    width: auto;
    max-width: 280px;
    font-weight: 700;
    border-radius: 3rem;
    box-shadow: 0 8px 25px rgba(190, 18, 60, 0.4);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    white-space: normal;
    text-align: center;
  }
  
  .hero-content .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(190, 18, 60, 0.5);
  }
  
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    width: 100%;
    max-width: 320px;
    margin-top: 1rem;
  }
  
  .hero-stats .stat-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    justify-content: flex-start;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  
  .stat-ico {
    font-size: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  
  .hero-stats .stat-card > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
  }
  
  .stat-value {
    font-size: 1rem;
    font-weight: 800;
    color: white;
    line-height: 1;
  }
  
  .stat-label {
    font-size: 0.75rem;
    opacity: 0.85;
    line-height: 1.1;
    color: rgba(255, 255, 255, 0.9);
  }
  
  .hero-section .container {
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .hero-content > * {
    margin: 0;
  }
  
  .hero-content > * + * {
    margin-top: 0;
  }
  
  /* --- ОСТАЛЬНЫЕ МОБИЛЬНЫЕ СТИЛИ (БЕЗ ИЗМЕНЕНИЙ) --- */
  .timeline-item {
    padding-left: 1.5rem;
  }
  
  .timeline-badge {
    left: 8px;
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
  
  .timeline::before {
    left: 18px;
  }
  
      .feature-card {
        padding: 1.25rem 1rem;
        gap: 0.5rem;
    }
    
    .feature-ico {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .feature-card h3 {
        font-size: 1rem;
    }
    
    .feature-card p {
        font-size: 0.875rem;
    }
    
    .feature-header {
        gap: 0.5rem;
    }
}
  
  /* Mobile phone number improvements */
  .md\\:hidden .text-sm {
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
  }
  
  /* Mobile ribbon positioning */
  .ribbon {
    top: 5px;
    left: -20px;
    padding: 0.25rem 1.5rem;
    font-size: 0.75rem;
  }
  
  /* Mobile phone number improvements */
  .md\\:hidden .text-base {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
  }
}

@media (min-width: 1024px) {
  .hero-section .container {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-content {
    text-align: left;       /* текст слева на больших экранах */
    align-items: flex-start;/* контент выравниваем по левому краю */
    gap: 1rem;              /* чуть компактнее отступы */
  }
  .hero-content p {
    max-width: 48rem;       /* комфортная ширина абзаца на десктопе */
  }
}





