@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --dark: #0b1020;
  --blue: #2f80ed;
  --gold: #cca43b;
  --light: #f6f8fc;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
html { scroll-behavior: smooth; }
body { background: var(--light); color: #1b1f36; overflow-x: hidden; }

/* === NAVIGATION === */
nav {
  position: fixed; top: 0; left: 0; width: 100%; padding: 10px 20px;
  display: flex; justify-content: space-between; align-items: center; z-index: 1000;
  background: linear-gradient(180deg, rgba(11,16,32,0.95) 0%, rgba(11,16,32,0.8) 100%);
  backdrop-filter: blur(5px); box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.logo-link { display: flex; align-items: center; text-decoration: none; }
.nav-logo { height: 60px; width: auto; transition: opacity 0.3s; }
.logo-link:hover .nav-logo { opacity: 0.9; }
nav div { display: flex; align-items: center; }
nav a { color: rgba(255, 255, 255, 0.85); margin: 0 15px; text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.3s; }
nav a:hover { color: white; }

.lang button {
  background: transparent; border: 1px solid rgba(255,255,255,0.3); color: white; padding: 6px 12px;
  border-radius: 30px; margin-left: 10px; cursor: pointer; transition: all 0.3s; font-size: 0.75rem;
}
.lang button:hover { background: rgba(255,255,255,0.1); }

/* === HERO & FULLSCREEN === */
.fullscreen {
  min-height: 100vh; width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; position: relative; color: white; padding: 120px 20px 100px;
  box-shadow: inset 0 0 0 100vh rgba(11, 16, 32, 0.3);
}
.hero { position: relative; z-index: 2; max-width: 900px; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 3.5rem; margin-bottom: 25px; font-weight: 700; text-shadow: 0 4px 20px rgba(0,0,0,0.8); }
.hero p { color: #f6f8fc; font-size: 1.35rem; line-height: 1.6; max-width: 800px; margin: 0 auto; font-weight: 500; text-shadow: 0 1px 3px rgba(0,0,0,0.7); letter-spacing: 0.02em; font-family: 'Inter', sans-serif; }

.btn {
  display: inline-block; margin-top: 35px; padding: 16px 40px; border-radius: 50px; background: var(--blue);
  color: white; text-decoration: none; font-weight: 600; transition: all 0.3s; box-shadow: 0 10px 20px rgba(47, 128, 237, 0.3);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(47, 128, 237, 0.4); }

/* === GENERAL SECTIONS === */
.section { width: 100%; padding: 80px 20px; position: relative; }
.section > div, .grid { max-width: 1400px; margin: 0 auto; width: 100%; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }

/* === PREMIUM CARDS === */
.premium-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: stretch; }
.contact-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }

.premium-card {
    background: white; border-radius: 12px; overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition: transform 0.3s; 
    height: 100%; display: flex; flex-direction: column;
}
.premium-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }

.pc-header { background: var(--dark); padding: 25px; text-align: center; display: flex; align-items: center; justify-content: center; min-height: 90px; }
.pc-header h2 { color: var(--gold); font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; margin: 0; line-height: 1.2; }

.pc-body { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.center-text { text-align: center; align-items: center; justify-content: space-between; }
.intro-text { font-size: 0.95rem; color: #555; margin-bottom: 20px; line-height: 1.6; }

.card-subtitle { font-size: 0.8rem; text-transform: uppercase; color: var(--dark); font-weight: 700; letter-spacing: 1px; margin-bottom: 15px; }
.icon-list { display: flex; flex-direction: column; gap: 15px; margin-top: auto; width: 100%; }
.icon-item { display: flex; align-items: flex-start; padding: 10px; border-radius: 8px; background: #f8f9fb; transition: 0.2s; }
.icon-box-center { width: 60px; height: 60px; background: #f0f4f8; border-radius: 50%; display: flex; justify-content: center; align-items: center; margin-top: 20px; }
.icon-box-center svg { width: 30px; height: 30px; color: var(--blue); }

.legal-table { display: flex; flex-direction: column; width: 100%; }
.legal-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed #eee; }
.l-label { font-size: 0.7rem; text-transform: uppercase; color: #999; font-weight: 600; }
.l-value { font-size: 0.9rem; color: #222; font-weight: 700; text-align: right; }

.contact-form label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--dark); font-size: 0.95rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 20px; margin-bottom: 20px; border: 1px solid #e0e0e0; border-radius: 12px;
  background: #f8f9fc; font-size: 1rem; transition: all 0.3s; outline: none;
}
.contact-form button { width: 100%; border: none; cursor: pointer; font-size: 1rem; margin-top: 10px; }

footer { background: var(--dark); color: rgba(255, 255, 255, 0.6); text-align: center; padding: 25px 20px; font-size: 0.85rem; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer-link { color: var(--gold); text-decoration: none; font-weight: 600; display: block; margin-bottom: 5px; }

/* === MOBILE RESPONSIVE === */
@media(max-width: 1024px) {
  .premium-grid, .contact-grid-2 { grid-template-columns: 1fr; }
}

@media(max-width: 768px) {
  nav { 
    flex-direction: column; 
    padding: 15px; 
    position: fixed; 
    height: auto; 
    background: rgba(11,16,32,0.98); 
    align-items: center; 
    justify-content: center;
  }

  .logo-link { margin-bottom: 15px; }

  nav div { 
    margin-top: 0; 
    flex-wrap: wrap; 
    justify-content: center; 
    width: 100%;
  }
  
  nav a { margin: 5px 10px; font-size: 0.9rem; }

  /* ПЛАВНОЕ ПЕРЕПРЫГИВАНИЕ ЯЗЫКОВ */
  .lang {
    position: absolute; 
    top: 20px;
    z-index: 1001;
    /* Анимация всех свойств позиционирования */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    gap: 5px;
  }

  /* По умолчанию (English) - кнопки справа */
  [dir="ltr"] .lang {
    right: 20px;
    left: auto;
  }

  /* Для арабского - кнопки слева */
  [dir="rtl"] .lang {
    left: 20px;
    right: auto;
  }
  
  .lang button {
    padding: 4px 8px;
    font-size: 0.7rem;
    margin-left: 0;
  }

  .hero h1 { font-size: 2.2rem; }
  .fullscreen { padding-top: 140px; }
  .grid { grid-template-columns: 1fr; }
}

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }