@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;
}
.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; }
#services, #about, #home, #contact { scroll-margin-top: 0; }

/* === PREMIUM CARDS === */
.premium-grid {
    display: grid;
    /* 3 КОЛОНКИ РЯДОМ НА БОЛЬШОМ ЭКРАНЕ */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    align-items: stretch;
}

/* СПЕЦИАЛЬНАЯ СЕТКА ДЛЯ КОНТАКТОВ (2 КОЛОНКИ) */
.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);
}

/* 1. ШАПКА: ТЕМНАЯ + ЗОЛОТО */
.pc-header {
    background: var(--dark); /* #0b1020 */
    padding: 25px;
    text-align: center;
    display: flex; align-items: center; justify-content: center;
    min-height: 90px;
}
.pc-header h2 {
    color: var(--gold); /* #cca43b */
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

/* 2. ТЕЛО: БЕЛОЕ */
.pc-body {
    padding: 30px;
    flex-grow: 1;
    display: flex; flex-direction: column;
}
/* Центровка текста для Services */
.center-text { text-align: center; align-items: center; justify-content: space-between; }
.center-text .intro-text { text-align: center; }

.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-item:hover { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

.icon-box {
    width: 36px; height: 36px; background: #eef2f6; 
    border-radius: 8px; display: flex; justify-content: center; align-items: center;
    margin-right: 15px; flex-shrink: 0;
}
.icon-box svg { width: 18px; height: 18px; color: #555; } /* Серые иконки */

/* Большая иконка для Services */
.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); }

.icon-item span { font-size: 0.9rem; color: #333; font-weight: 500; line-height: 1.4; align-self: center; }

/* LEGAL TABLE */
.legal-table { display: flex; flex-direction: column; gap: 0; width: 100%; }
.legal-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0; border-bottom: 1px dashed #eee;
}
.legal-row:last-child { border-bottom: none; }
.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; }

.pc-footer { margin-top: 20px; text-align: center; font-size: 0.8rem; color: #aaa; }

/* === CONTACTS FORM INSIDE CARD === */
.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 input:focus, .contact-form textarea:focus { border-color: var(--blue); background: white; box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.1); }
.contact-form button { width: 100%; border: none; cursor: pointer; font-size: 1rem; margin-top: 10px; }

/* === FOOTER (КОМПАКТНЫЙ) === */
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;
  transition: color 0.3s;
}
.footer-link:hover { color: white; text-decoration: underline; }
footer p { margin: 0; opacity: 0.8; }

/* MOBILE */
@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); }
  nav div { margin-top: 15px; flex-wrap: wrap; justify-content: center; }
  .hero h1 { font-size: 2.2rem; }
  .fullscreen { padding-top: 140px; }
  .grid { grid-template-columns: 1fr; }
}  */

/* === MOBILE RESPONSIVE (Обновленная версия) === */
@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;
  }

  /* Контейнер для ссылок (Home, Services...) */
  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;          /* Отступ сверху */
    right: 20px;        /* Отступ справа */
  }
  
  /* Чуть уменьшим кнопки языка на телефоне, чтобы влезли */
  .lang button {
    padding: 4px 8px;
    font-size: 0.7rem;
    margin-left: 5px;
  }

  .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); }