/* Алые Паруса — основные стили */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,700;1,400&display=swap');

:root {
  --gold: #d4af37;
  --scarlet: #9c1c2b;
  --ink: #1a0f0a;
  --bg-light: #fdfcfb;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-light);
  color: var(--ink);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.heading-font { font-family: 'Playfair Display', serif; }

/* Dropdown nav */
.nav-item { position: relative; padding: 10px 0; }
.dropdown {
  position: absolute; top: 100%; left: 0; background: white;
  min-width: 260px; opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: all 0.3s ease;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-top: 2px solid var(--gold);
  z-index: 100;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-link {
  display: block; padding: 12px 20px; font-size: 11px;
  text-transform: uppercase; letter-spacing: 1px; color: #666;
  transition: all 0.2s; border-bottom: 1px solid #f5f5f5;
}
.dropdown-link:hover { background: #fafafa; color: var(--scarlet); padding-left: 25px; }

/* Mobile menu */
#mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(26, 15, 10, 0.97);
  display: flex; flex-direction: column;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  overflow-y: auto;
}
#mobile-menu.open { transform: translateX(0); }
#mobile-menu a {
  display: block; color: white; padding: 16px 8px;
  font-size: 14px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.15em; border-bottom: 1px solid rgba(255,255,255,0.08);
}
#mobile-menu a:hover { color: var(--gold); }
#mobile-menu .sub {
  padding-left: 20px; font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.65); letter-spacing: 0.1em;
}
#mobile-menu-close {
  align-self: flex-end; color: white; font-size: 28px;
  background: none; border: none; cursor: pointer; padding: 8px; margin-bottom: 16px;
}

/* Filters */
.filter-btn {
  position: relative;
  padding: 8px 16px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #a3a3a3;
  transition: all 0.4s;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: all 0.4s;
  transform: translateX(-50%);
}
.filter-btn.active { color: var(--ink); }
.filter-btn.active::after { width: 30px; }
.filter-btn:hover { color: var(--scarlet); }

/* Cards */
.luxury-card {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  background: white; border: 1px solid rgba(0,0,0,0.03);
  opacity: 0; transform: translateY(20px);
}
.luxury-card.visible { opacity: 1; transform: translateY(0); }
.luxury-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.08);
  border-color: var(--gold);
}

.city-tag {
  position: absolute; top: 20px; left: 20px;
  background: var(--ink); color: white;
  padding: 5px 12px; font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; z-index: 10;
}

.btn-primary {
  display: inline-block; padding: 18px 45px; background: var(--ink);
  color: var(--gold); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; transition: all 0.3s;
  cursor: pointer; border: 1px solid transparent;
}
.btn-primary:hover { background: transparent; border-color: var(--ink); color: var(--ink); }

#more-cities { display: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

/* Special tours */
.special-card img {
  opacity: 0.82;
  filter: brightness(1.08) contrast(1.05) saturate(1.1);
}
.special-card:hover img { opacity: 0.95; }

/* Messengers */
.messenger-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.messenger-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(255,255,255,0.08); color: var(--gold);
  border: 1px solid rgba(212,175,55,0.35);
  transition: all 0.25s; font-size: 18px;
}
.messenger-btn:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }
.messenger-btn.wa:hover { background: #25D366; color: white; border-color: #25D366; }
.messenger-btn.tg:hover { background: #229ED9; color: white; border-color: #229ED9; }
.messenger-btn.max:hover { background: #7B61FF; color: white; border-color: #7B61FF; }
.messenger-btn.wc:hover { background: #07C160; color: white; border-color: #07C160; }

.contact-phone-block { margin-bottom: 28px; }
.hours-badge {
  display: inline-block; margin-top: 16px;
  padding: 10px 16px; border: 1px solid rgba(212,175,55,0.3);
  border-radius: 8px; color: rgba(255,255,255,0.7);
  font-size: 13px; letter-spacing: 0.02em;
}
.hours-badge strong { color: var(--gold); font-weight: 600; }

.logo-img { height: 52px; width: auto; object-fit: contain; }
@media (min-width: 768px) { .logo-img { height: 60px; } }

/* B2B */
.business-card { border-left: 1px solid rgba(212, 175, 55, 0.3); transition: all 0.4s; }
.business-card:hover { border-left-color: var(--gold); background: white; }

.date-badge {
  background: var(--ink); color: var(--gold);
  padding: 4px 12px; font-size: 10px; font-weight: 700;
  letter-spacing: 1px; border-radius: 2px; display: inline-block;
}

.step-number {
  font-family: 'Playfair Display', serif;
  font-size: 6rem; line-height: 1;
  color: var(--gold); opacity: 0.15;
  position: absolute; top: -20px; left: -10px; z-index: 0;
}

.biz-photos { display: grid; gap: 1rem; }
@media (max-width: 1023px) {
  .biz-photos { grid-template-columns: 1fr; }
  .biz-photos img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    background: #f5f5f5;
    border-radius: 1rem;
  }
  .biz-photos img.mt-offset { margin-top: 0 !important; }
}
@media (min-width: 1024px) {
  .biz-photos { grid-template-columns: 1fr 1fr; }
  .biz-photos img {
    width: 100%;
    height: 20rem;
    object-fit: cover;
    border-radius: 1rem;
  }
  .biz-photos.single-col { grid-template-columns: 1fr; }
  .biz-photos.single-col img { height: 28rem; }
  .biz-photos img.mt-offset { margin-top: 3rem; }
  .obj-canton { object-position: center 35%; }
  .obj-alibaba { object-position: center 40%; }
  .obj-futian { object-position: center 30%; }
}

/* Страница направления */
.ap-city-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
  color: #1a0f0a;
}
.ap-city-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: #9c1c2b;
  letter-spacing: 0.02em;
}
.ap-city-content p {
  margin-bottom: 1.15rem;
  line-height: 1.75;
  color: #525252;
}
.ap-city-content .ap-city-title-inline { display: none; }
.ap-city-content img {
  border-radius: 1rem;
  margin: 1.5rem 0;
  max-width: 100%;
  height: auto;
}
/* Hero: same look as before + slow Ken Burns zoom */
.ap-hero {
  position: relative;
}
.ap-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.ap-hero__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.5;
  transform: scale(1.08);
  transform-origin: center center;
  will-change: transform;
  -webkit-animation: apHeroKen 24s ease-in-out infinite alternate;
  animation: apHeroKen 24s ease-in-out infinite alternate;
}
@-webkit-keyframes apHeroKen {
  0%   { -webkit-transform: scale(1.05) translate3d(0, 0, 0); transform: scale(1.05) translate3d(0, 0, 0); }
  100% { -webkit-transform: scale(1.18) translate3d(-2.5%, 1.5%, 0); transform: scale(1.18) translate3d(-2.5%, 1.5%, 0); }
}
@keyframes apHeroKen {
  0%   { transform: scale(1.05) translate3d(0, 0, 0); }
  100% { transform: scale(1.18) translate3d(-2.5%, 1.5%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .ap-hero__img {
    -webkit-animation: none !important;
    animation: none !important;
    transform: scale(1.05);
  }
}
