/* assets/css/styles.css */

:root {
  --ios-blue: #0071e3; 
  --ios-blue-hover: #0077ed; 
  --ios-green: #34C759;
  --ios-bg: #f5f5f7;
  --ios-text: #1d1d1f; 
  --ios-gray: #86868b; 
  --radius-lg: 24px;
  --radius-btn: 980px; 
  --shadow-soft: 0 10px 40px rgba(0,0,0,0.06);
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-main);
  background-color: #fff;
  color: var(--ios-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 80px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { margin-top: 0; letter-spacing: -0.01em; }
section { padding: 80px 0; }

/* --- HEADER --- */
.header {
  position: sticky; top: 0; z-index: 2000;
  background: rgba(255, 255, 255, 0.98); 
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); 
  border-bottom: 1px solid rgba(0,0,0,0.08); padding: 10px 0;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.brand { font-weight: 700; font-size: 19px; color: #000; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.desktop-nav { display: flex; align-items: center; }
.nav a { color: var(--ios-text); font-size: 14px; margin-left: 24px; font-weight: 500; transition: color 0.2s; cursor: pointer; }
.nav a:hover { color: var(--ios-blue); }

/* --- BUTTONS & ANIMATIONS --- */
.btn { 
  display: inline-flex; align-items: center; justify-content: center; 
  padding: 12px 24px; border-radius: var(--radius-btn); 
  font-size: 15px; font-weight: 600; transition: all 0.3s ease; 
  border: none; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn-primary { background-color: var(--ios-blue); color: white; }
.btn-primary:hover { background-color: var(--ios-blue-hover); transform: translateY(-1px); }
.btn-green { background: var(--ios-green); color: white; }
.pulse-btn { animation: pulse-green 2s infinite; }

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(52, 199, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}

.fade-up { opacity: 0; transform: translateY(20px); transition: 0.6s ease-out; }
.fade-up.in-view { opacity: 1; transform: none; }

/* --- HERO --- */
.hero-ios { padding: 60px 0 80px; background: linear-gradient(180deg, #fff 0%, #f2f2f7 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-content h1 { font-size: 48px; font-weight: 700; line-height: 1.1; margin-bottom: 20px; }
.hero-sub { font-size: 18px; color: var(--ios-gray); margin-bottom: 25px; font-weight: 400; max-width: 500px; }
.hero-btns { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 25px; }

.hero-img-container { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 4/3; background: #fff; position: relative; }
.hero-img-container img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; bottom: 20px; right: 20px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); padding: 8px 16px; border-radius: 20px; font-weight: 700; color: #1d1d1f; box-shadow: 0 4px 15px rgba(0,0,0,0.1); font-size: 13px; display: flex; align-items: center; gap: 8px; z-index: 10; }

.hero-google-rating {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; padding: 8px 16px; border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06); margin-bottom: 20px;
  border: 1px solid #f0f0f0; font-size: 14px; color: #1d1d1f;
}
.hero-google-rating strong { font-weight: 700; }

/* --- BRANDS CAROUSEL --- */
.brands-section { padding: 40px 0; background: #fff; border-bottom: 1px solid #f0f0f0; overflow: hidden; }
.brands-title { text-align: center; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #888; margin-bottom: 20px; font-weight: 600; }
.marquee-wrapper { width: 100%; overflow: hidden; position: relative; }
.marquee-content { display: flex; gap: 60px; animation: scroll 25s linear infinite; width: max-content; }
.brand-item { font-size: 24px; font-weight: 800; color: #ccc; display: flex; align-items: center; gap: 10px; }
.brand-item i { font-size: 28px; color: #bbb; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- SERVICES GRID --- */
.services-section { background: #f9fafb; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 50px auto; }
.section-header h2 { font-size: 36px; margin-bottom: 10px; }
.services-img-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.service-img-card { background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid #eee; transition: 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.03); display: flex; flex-direction: column; }
.service-img-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: var(--ios-blue); }
.svc-img-wrapper { height: 180px; overflow: hidden; background: #f0f0f0; display: flex; align-items: center; justify-content: center; color: #ccc; }
.svc-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.service-img-card:hover .svc-img-wrapper img { transform: scale(1.05); }
.svc-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.svc-content h3 { font-size: 20px; margin-bottom: 10px; }
.svc-content p { font-size: 15px; color: #666; margin-bottom: 20px; flex-grow: 1; }
.svc-link { color: var(--ios-blue); font-weight: 600; font-size: 14px; margin-top: auto; display: flex; align-items: center; gap: 5px; }

/* --- WHY CHOOSE US --- */
.choose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.van-wrapper { border-radius: 24px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.features-list { display: flex; flex-direction: column; gap: 30px; }
.feature-row { display: flex; gap: 20px; align-items: flex-start; }
.feat-icon { width: 50px; height: 50px; background: #f0f5ff; color: var(--ios-blue); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.feat-text h4 { font-size: 18px; margin-bottom: 5px; }
.feat-text p { color: #666; font-size: 14px; margin: 0; }

/* --- REVIEWS --- */
.reviews-section { background: #fff; }
.reviews-scroller { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px; scroll-snap-type: x mandatory; }
.review-card-g { min-width: 300px; background: #fff; border: 1px solid #eee; border-radius: 16px; padding: 25px; scroll-snap-align: start; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.g-header { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.g-logo { width: 24px; height: 24px; }
.stars { color: #FFB800; font-size: 14px; letter-spacing: 2px; }
.review-body { font-size: 14px; color: #444; line-height: 1.5; font-style: italic; margin-bottom: 15px; }
.reviewer { font-size: 12px; font-weight: 700; color: #1d1d1f; }

/* --- OUR WORKS (PORTFOLIO) --- */
.works-section { background: #fff; padding: 60px 0; }
.works-header { text-align: center; margin-bottom: 40px; }
.works-header h2 { font-size: 36px; font-weight: 700; display: inline-block; border-bottom: 3px solid var(--ios-blue); padding-bottom: 5px; }
.works-header p { color: #666; margin-top: 10px; }

.works-scroller { 
  display: flex; gap: 20px; overflow-x: auto; padding: 20px 5px; 
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.work-item { 
  min-width: 280px; height: 400px; border-radius: 20px; 
  overflow: hidden; position: relative; scroll-snap-align: center; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: transform 0.3s;
}
.work-item:hover { transform: scale(1.02); }
.work-item img { width: 100%; height: 100%; object-fit: cover; }
.work-badge {
  position: absolute; bottom: 20px; left: 20px;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(5px);
  padding: 5px 12px; border-radius: 12px;
  font-size: 12px; font-weight: 700; color: #000;
}

/* --- CONTACT & MAP --- */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 30px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.08); background: #fff; }
.contact-form-col { padding: 40px; }
.map-col { position: relative; min-height: 400px; background: #eee; }
.map-col iframe { width: 100%; height: 100%; border: 0; display: block; }

.form-group { margin-bottom: 15px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: #86868b; margin-bottom: 5px; }
.ios-input { width: 100%; padding: 14px; font-size: 16px; background: #f5f5f7; border: 1px solid transparent; border-radius: 12px; font-family: var(--font-main); }
.ios-input:focus { background: white; border-color: var(--ios-blue); outline: none; }
.input-error { border-color: red !important; animation: shake 0.3s; }
@keyframes shake { 0% { transform: translateX(0); } 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-5px); } 100% { transform: translateX(0); } }

/* --- STICKY CALL WIDGET --- */
.sticky-widget {
  position: fixed;
  bottom: -100px; /* Скрыт пока не скроллишь */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  background: #fff;
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 9000;
  transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid #eee;
}

.sticky-widget.is-visible {
  bottom: 20px; /* Появляется при скролле */
}

.widget-text { padding-left: 15px; flex-grow: 1; }
.widget-phone { font-size: 18px; font-weight: 700; color: #1d1d1f; display: block; line-height: 1.2; }
.widget-sub { font-size: 12px; color: var(--ios-green); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.widget-btn {
  background: var(--ios-green); color: white;
  padding: 12px 20px; border-radius: 100px;
  text-decoration: none; font-weight: 600; font-size: 16px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 15px rgba(52, 199, 89, 0.3);
  transition: 0.2s; white-space: nowrap;
}
.widget-btn:active { transform: scale(0.98); }

/* --- SEO & CITIES --- */
.seo-cities { padding: 40px 0; background: #f9f9f9; border-top: 1px solid #eee; text-align: center; }
.city-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 0 auto; }
.city-tag { font-size: 12px; color: #777; background: #fff; padding: 5px 10px; border-radius: 6px; border: 1px solid #eee; }

/* --- FOOTER --- */
.footer {
  background: #f5f5f7;
  padding: 60px 0 40px;
  border-top: 1px solid #e5e5e5;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 14px;
  color: #424245;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--ios-blue); }

.footer-disclaimer {
  max-width: 800px;
  margin: 0 auto 20px auto;
  font-size: 11px;
  line-height: 1.5;
  color: #86868b;
  opacity: 0.8;
}

.footer-copy {
  font-size: 12px;
  color: #86868b;
}

/* --- TEXT PAGES (Privacy & Terms) --- */
.page-head { padding: 60px 0 40px; text-align: center; background: linear-gradient(180deg, #fff 0%, #f5f5f7 100%); }
.page-head h1 { font-size: 36px; margin: 0 0 15px 0; color: #1d1d1f; font-weight: 700; }
.text-content { max-width: 800px; margin: 0 auto; padding-top: 40px; padding-bottom: 100px; }
.text-block { margin-bottom: 40px; }
.text-block h2 { font-size: 22px; margin-bottom: 16px; color: #1d1d1f; font-weight: 700; }
.text-block p { font-size: 16px; line-height: 1.6; color: #424245; margin-bottom: 16px; }
.text-block ul { list-style: disc; padding-left: 20px; margin-bottom: 16px; }
.text-block li { font-size: 16px; color: #424245; margin-bottom: 8px; }

/* --- MOBILE RESPONSIVE --- */
.mobile-toggle { display: none; width: 48px; height: 48px; background: transparent; border: none; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; position: relative; z-index: 9999; }
.ham-bar { width: 24px; height: 2px; background-color: #1d1d1f; border-radius: 2px; transition: 0.3s; }

@media (max-width: 850px) {
  .desktop-nav, .header-cta { display: none; }
  .mobile-toggle { display: flex; }
  .hero-grid, .choose-grid, .contact-split { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .contact-split { border-radius: 20px; }
  .map-col { height: 300px; }
  .feature-row { flex-direction: column; align-items: center; text-align: center; }
  .hero-google-rating { margin: 0 auto 20px auto; }
  .page-head h1 { font-size: 32px; }

  /* === КНОПКИ В ОДИН РЯД НА МОБИЛКАХ === */
  .hero-btns { 
    display: flex; 
    flex-direction: row; /* Строго горизонтально */
    flex-wrap: nowrap; /* Запрет переноса */
    justify-content: center; 
    gap: 10px; /* Небольшой отступ */
    width: 100%;
    margin-top: 20px;
  }
  
  .hero-btns .btn {
    flex: 1; /* Растягиваются на 50% каждая */
    width: auto; 
    padding: 12px 5px; /* Уменьшаем внутренние поля, чтобы влез номер */
    font-size: 13px; /* Чуть меньше шрифт */
    white-space: nowrap; /* Текст в одну строку */
  }
}

@media (max-width: 600px) {
  .footer-nav { flex-direction: column; gap: 15px; } 
}

@media (max-width: 480px) {
  .sticky-widget { width: 95%; padding: 8px; }
  .widget-phone { font-size: 16px; }
  .widget-btn { padding: 10px 15px; font-size: 14px; }
}