/* ==========================================================================
   GO-TO-CHINA | ГЛОБАЛЬНЫЙ СТИЛЬ (GLOBAL STYLES)
   ========================================================================== */
:root {
  --bg-dark: #0b111a;
  --bg-card: #111a26;
  --orange: #f97316;
  --blue: #3b82f6;
  --green: #10b981;
  --yellow: #eab308;
  --text-light: #f3f4f6;
  --text-muted: #9ca3af;
  --vk-color: #0077FF;
  --border: rgba(255, 255, 255, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }
body { background: var(--bg-dark); color: var(--text-light); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
.flex-center { display: flex; justify-content: center; align-items: center; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #374151; border-radius: 4px; }

@keyframes fadeInDown { from { opacity: 0; transform: translateY(-50px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-down { animation: fadeInDown .6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-up { opacity: 0; animation: fadeInUp .7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.delay-2 { animation-delay: .2s; }
.delay-4 { animation-delay: .4s; }

/* --- 4. ШАПКА И НАВИГАЦИЯ --- */
.header {
  position: fixed; top: 0; left: 0; width: 100%; padding: 15px 4%; z-index: 1000;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: rgba(11, 17, 26, .65); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .05); transition: all .3s ease;
}

.logo { display: flex; align-items: center; gap: 12px; transition: transform .3s; justify-self: start; }
.logo:hover { transform: scale(1.02); }
.logo-icon { width: 38px; height: 38px; background: rgba(255, 255, 255, .05); border-radius: 50%; display: flex; justify-content: center; align-items: center; color: var(--orange); font-size: 18px; border: 1px solid rgba(255, 255, 255, .1); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text span:first-child { font-size: 18px; font-weight: 700; letter-spacing: 1px; color: #fff; }
.logo-text span:last-child { display: block; font-size: 10px; color: var(--text-muted); letter-spacing: 2px; margin-top: 4px; }

.nav-links { display: flex; gap: 35px; align-items: center; justify-self: center; }
.nav-links a { color: var(--text-light); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .3s; position: relative; }
.nav-links a:hover { color: var(--orange); }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--orange); transition: width .3s; }
.nav-links a:hover::after { width: 100%; }

.header-socials { justify-self: end; display: flex; gap: 12px; align-items: center; }
.header-socials a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; justify-content: center; align-items: center;
  color: var(--text-light); transition: all 0.3s; font-size: 14px;
}
.header-socials a:hover { color: var(--orange); background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }

.btn-primary { background: var(--orange); color: #fff; padding: 10px 28px; border-radius: 30px; font-weight: 600; border: none; cursor: pointer; transition: all .3s; text-decoration: none; }
.btn-primary:hover { background: #ea580c; box-shadow: 0 4px 15px rgba(249, 115, 22, .4); transform: translateY(-2px); }
.btn-outline { display: inline-flex; align-items: center; justify-content: space-between; width: fit-content; gap: 15px; padding: 10px 20px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 30px; color: var(--text-light); font-size: 13px; font-weight: 500; transition: all .3s; margin-top: 30px; }
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, .05); }

/* --- HERO --- */
.hero { position: relative; min-height: 90vh; padding: 180px 8% 100px; display: flex; flex-direction: column; justify-content: center; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 30px; font-size: 13px; font-weight: 600; margin-bottom: 25px; width: fit-content; }
.hero h1 { font-size: 54px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; max-width: 800px; }
.hero-desc { font-size: 18px; color: var(--text-light); max-width: 600px; line-height: 1.6; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 40px; }
.hero-home { min-height: 100vh; padding: 160px 8% 80px; justify-content: flex-start; background: linear-gradient(to bottom, rgba(11,17,26,.3) 0%, rgba(11,17,26,.8) 70%, var(--bg-dark) 100%), url('/assets/gallery/indexshanghai.avif') center/cover no-repeat; }

/* --- СЕКЦИИ И КАРТОЧКИ --- */
.section-title-block { text-align: center; margin-bottom: 60px; }
.section-title { font-size: 36px; font-weight: 800; margin-bottom: 12px; letter-spacing: 1px; text-transform: uppercase; }
.section-subtitle { font-size: 18px; color: var(--orange); font-weight: 600; background: rgba(249, 115, 22, .1); display: inline-block; padding: 10px 25px; border-radius: 30px; border: 1px solid rgba(249, 115, 22, .2); }

.pricing-section { padding: 80px 8%; position: relative; z-index: 10; margin-top: -40px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.price-card { background: var(--bg-card); border-radius: 20px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .05); display: flex; flex-direction: column; transition: .3s; }
.price-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 0, 0, .4); border-color: rgba(249, 115, 22, .3); }
.card-header { padding: 35px 30px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, .05); min-height: 210px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.card-header.blue { background: linear-gradient(135deg, rgba(30, 58, 138, .4) 0%, rgba(17, 26, 38, 0) 100%); }
.card-header.orange { background: linear-gradient(135deg, rgba(154, 52, 18, .4) 0%, rgba(17, 26, 38, 0) 100%); }
.card-header.yellow { background: linear-gradient(135deg, rgba(202, 138, 4, .4) 0%, rgba(17, 26, 38, 0) 100%); }
.card-header.green { background: linear-gradient(135deg, rgba(6, 78, 59, .4) 0%, rgba(17, 26, 38, 0) 100%); }
.card-header h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.price-tag { font-size: 36px; font-weight: 800; display: flex; justify-content: center; align-items: baseline; gap: 5px; line-height: 1; }
.price-tag span { font-size: 16px; font-weight: 500; color: var(--text-muted); }
.price-cny { font-size: 14px; color: var(--text-light); font-weight: 600; margin-top: 10px; opacity: .9; }
.price-unit-info { font-size: 12px; font-weight: 600; margin-top: 10px; letter-spacing: .5px; }

.card-body { padding: 30px; flex: 1; display: flex; flex-direction: column; }
.card-body h4 { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.service-list { list-style: none; margin-bottom: 30px; flex: 1; }
.service-list li { font-size: 14px; margin-bottom: 15px; display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.service-list i { margin-top: 3px; }
.card-disclaimer { font-size: 11px; color: var(--text-muted); margin-top: 12px; text-align: center; line-height: 1.4; min-height: 30px; }

.card-btn { display: block; width: 100%; padding: 15px; text-align: center; border-radius: 12px; font-size: 15px; font-weight: 600; transition: .3s; }
.btn-blue { background: rgba(59, 130, 246, .1); color: var(--blue); border: 1px solid rgba(59, 130, 246, .3); }
.btn-blue:hover { background: var(--blue); color: #fff; }
.btn-orange { background: rgba(249, 115, 22, .1); color: var(--orange); border: 1px solid rgba(249, 115, 22, .3); }
.btn-orange:hover { background: var(--orange); color: #fff; }
.btn-yellow { background: rgba(234, 179, 8, .1); color: var(--yellow); border: 1px solid rgba(234, 179, 8, .3); }
.btn-yellow:hover { background: var(--yellow); color: #fff; }
.btn-green { background: rgba(16, 185, 129, .1); color: var(--green); border: 1px solid rgba(16, 185, 129, .3); }
.btn-green:hover { background: var(--green); color: #fff; }

.text-orange { color: var(--orange); } .text-blue { color: var(--blue); } .text-yellow { color: var(--yellow); }

/* --- НОВЫЙ БЛОК: ТЕКСТ + ВИДЕО (Split Section) --- */
.info-split-section { padding: 80px 8%; position: relative; z-index: 10; background: var(--bg-dark); }
.split-content { display: flex; gap: 50px; align-items: flex-start; }
.split-text { flex: 1; }
.split-text h2 { font-size: 32px; font-weight: 800; margin-bottom: 25px; color: #fff; display: flex; align-items: center; gap: 12px; }
.split-text p { font-size: 15px; color: var(--text-light); line-height: 1.6; margin-bottom: 15px; }
.split-text h4 { font-size: 18px; color: #fff; margin: 25px 0 10px; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.split-video { flex: 1; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); box-shadow: 0 10px 30px rgba(0,0,0,0.5); position: sticky; top: 100px; }
.split-video video { width: 100%; display: block; object-fit: cover; }

/* --- ПРЕИМУЩЕСТВА (Advantages) --- */
.advantages { padding: 80px 8%; background: #0f1520; border-top: 1px solid rgba(255, 255, 255, .02); }
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.adv-item { display: flex; align-items: flex-start; gap: 20px; padding: 30px; background: rgba(255, 255, 255, .02); border-radius: 20px; border: 1px solid rgba(255, 255, 255, .05); transition: .3s; }
.adv-item:hover { background: rgba(255, 255, 255, .06); }
.adv-icon { width: 60px; height: 60px; border-radius: 15px; display: flex; justify-content: center; align-items: center; font-size: 24px; flex-shrink: 0; color: var(--orange); background: rgba(249,115,22,0.1); }
.adv-item-text { display: flex; flex-direction: column; gap: 8px; }
.adv-item-text h4 { font-size: 16px; font-weight: 700; line-height: 1.3; }
.adv-item-text p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* --- ЧАТ (CHAT & FLOAT) --- */
.floating-actions { position: fixed; bottom: 40px; right: 40px; display: flex; flex-direction: column; gap: 15px; z-index: 1000; }
.float-btn { width: 65px; height: 65px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 30px; color: #fff; cursor: pointer; transition: all .3s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 8px 25px rgba(0, 0, 0, .3); text-decoration: none; }
.float-btn.vk { background-color: var(--vk-color); box-shadow: 0 8px 25px rgba(0, 119, 255, .4); }
.float-btn.chat { background-color: var(--orange); box-shadow: 0 8px 25px rgba(249, 115, 22, .4); }
.float-btn:hover { transform: scale(1.1) translateY(-5px); }

.chat-modal { position: fixed; bottom: 120px; right: 40px; width: 380px; height: 550px; display: none; flex-direction: column; z-index: 99999; animation: fadeInUp .4s ease; }
.chat-box { width: 100%; height: 100%; background: var(--bg-card); border-radius: 15px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; box-shadow: 0 15px 50px rgba(0, 0, 0, .5); }
.chat-header { padding: 20px; background: #111827; border-bottom: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; align-items: center; }
.chat-close-btn { background: transparent; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; transition: color .3s ease; }
.chat-close-btn:hover { color: #fff; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.chat-message { max-width: 82%; padding: 14px 18px; border-radius: 18px; line-height: 1.6; font-size: 14px; }
.client { align-self: flex-end; background: var(--orange); border-bottom-right-radius: 4px; }
.admin { align-self: flex-start; background: #1e293b; border-bottom-left-radius: 4px; }
.chat-input { padding: 15px 20px; display: flex; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .08); background: #111827; }
.chat-input input { flex: 1; border: none; outline: none; background: var(--bg-dark); color: #fff; border-radius: 20px; padding: 0 15px; height: 45px; font-size: 14px; }
.chat-input button { background: var(--orange); border: none; color: #fff; font-weight: bold; border-radius: 20px; padding: 0 20px; height: 45px; cursor: pointer; transition: background .3s; }
.chat-input button:hover { background: #ea580c; }
.status { font-size: 11px; color: #10b981; margin-top: 4px; }

/* --- PAGE SPECIFIC STYLES --- */
.hero-features { display: flex; gap: 40px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 140px; }
.feature-icon { width: 50px; height: 50px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 20px; color: var(--orange); }
.feature-item p { font-size: 13px; line-height: 1.4; color: var(--text-light); }

.services { padding: 0 8% 80px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: -80px; position: relative; z-index: 10; }
.service-card { border-radius: 20px; padding: 40px 30px; display: flex; flex-direction: column; border: 1px solid rgba(255, 255, 255, .05); position: relative; overflow: hidden; min-height: 520px; }
.service-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.service-card .sub-title { font-size: 14px; color: var(--text-light); margin-bottom: 15px; line-height: 1.4; }
.service-card .desc { font-size: 13px; color: var(--text-muted); margin-bottom: 30px; line-height: 1.5; min-height: 40px; }
.card-icon-wrapper { width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 20px; margin-bottom: 25px; color: #fff; }
.bg-orange { background-color: var(--orange); } .bg-blue { background-color: var(--blue); } .bg-yellow { background-color: var(--yellow); }

.gallery-section { padding: 60px 8% 100px; text-align: center; overflow: hidden; position: relative; }
.gallery-carousel { display: flex; gap: 15px; animation: scroll 25s linear infinite; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.gallery-item { flex: 0 0 auto; width: 220px; display: flex; flex-direction: column; gap: 15px; }
.gallery-img { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; border: 2px solid rgba(255, 255, 255, .05); }
.cert-img { background-color: #fff; padding: 5px; }
.gallery-caption { font-size: 12px; color: var(--text-light); line-height: 1.4; }

.route-box { display: flex; align-items: center; gap: 20px; background: rgba(255, 255, 255, .05); padding: 15px 35px; border-radius: 20px; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .1); }
.route-item { font-weight: 700; font-size: 22px; color: #fff; }
.route-arrow { color: var(--orange); font-size: 16px; }

.stat-item { display: flex; flex-direction: column; gap: 5px; }
.stat-num { font-size: 32px; font-weight: 700; }
.stat-text { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* --- АДАПТИВ (MEDIA QUERIES) --- */
@media (max-width: 1200px) {
  .header { grid-template-columns: auto 1fr; }
  .header-socials { display: none; }
  .nav-links { justify-self: end; }
}
@media (max-width: 1100px) {
  .pricing-grid, .adv-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 42px; }
}
@media (max-width: 992px) {
  .services { grid-template-columns: 1fr; }
  .hero-features { flex-wrap: wrap; }
  .split-content { flex-direction: column; }
  .split-video { position: static; margin-top: 30px; }
}
@media (max-width: 768px) {
  .header { padding: 15px 20px; }
  .nav-links { display: none; }
  .hero { padding: 140px 20px 80px; }
  .hero h1 { font-size: 34px; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .pricing-section, .advantages, .info-split-section { padding: 60px 20px; }
  .chat-modal { width: calc(100% - 20px); height: 80vh; right: 10px; bottom: 100px; }
  .floating-actions { right: 20px; bottom: 20px; }
}