@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: #000000;
  --gold: #cca43b;
  --light: #ffffff;
  --gray: #f9f9f9;
}

* { 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; }

/* === НАВИГАЦИЯ === */
nav { position: sticky; top: 0; left: 0; width: 100%; padding: 15px 50px; background: var(--dark); z-index: 1000; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; }
.nav-logo { height: 50px; width: auto; transition: opacity 0.3s; }
.logo-link:hover .nav-logo { opacity: 0.8; }
.nav-center { display: flex; gap: 35px; }
.nav-center a { color: #ffffff; text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.3s; }
.nav-center a:hover { color: var(--gold); }

/* === ГЛАВНАЯ СЕКЦИЯ === */
.hero-section { text-align: center; padding: 80px 20px 0; background: #ffffff; }
.hero-content h1 { font-family: 'Playfair Display', serif; font-size: 3.5rem; margin-bottom: 10px; color: #000; }
.hero-content p { font-size: 1.2rem; color: #555; }

/* === СЛАЙДЕР === */
.hero-slider { position: relative; max-width: 1200px; margin: 50px auto 0; height: 500px; border-radius: 12px; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; z-index: 0; }
.slide.active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-dots { position: absolute; bottom: 30px; right: 40px; z-index: 2; display: flex; gap: 12px; }
.dot { width: 14px; height: 14px; background: rgba(255, 255, 255, 0.4); border-radius: 50%; cursor: pointer; transition: all 0.3s ease; }
.dot.active, .dot:hover { background: var(--gold); transform: scale(1.2); }

/* === ОБЩИЕ СЕКЦИИ === */
.section { padding: 80px 20px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; font-family: 'Playfair Display', serif; font-size: 2.5rem; margin-bottom: 50px; color: #000; }
.grid-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

/* === КАРТОЧКИ УСЛУГ (ABOUT) === */
.info-card { background: #ffffff; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); display: flex; flex-direction: column; transition: transform 0.3s ease; }
.info-card:hover { transform: translateY(-5px); }
.card-header { background: var(--dark, #0b1020); padding: 25px 20px; text-align: center; min-height: 90px; display: flex; align-items: center; justify-content: center; }
.card-header h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--gold, #cca43b); margin: 0; line-height: 1.3; }
.card-body { padding: 30px 25px; text-align: center; flex-grow: 1; }
.card-body p { color: #555555; line-height: 1.6; font-size: 0.95rem; margin: 0; }

/* === COOPERATE BANNER === */
.cooperate-banner { padding-top: 0px; margin-top: -40px; }
.banner-title { text-align: center; font-family: 'Playfair Display', serif; font-size: 2.5rem; margin-bottom: 40px; }
.image-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split-img { width: 100%; height: 400px; object-fit: cover; }

/* === СЕКЦИЯ ЛИЦЕНЗИИ (OUR LICENCE) === */
.licence-section { background-color: #ffffff; padding: 0 20px 80px; margin-top: -30px; }
.licence-card-wrapper { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.licence-card { background: #ffffff; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.licence-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12); }
.licence-card .card-header h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--gold, #cca43b); margin: 0; letter-spacing: 1px; }
.licence-card .card-body { padding: 30px 40px; display: flex; flex-direction: column; gap: 15px; }
.licence-row { display: flex; justify-content: space-between; align-items: center; padding-bottom: 15px; border-bottom: 1px dashed #e0e0e0; }
.l-label { font-size: 0.85rem; color: #888888; text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.l-value { font-size: 1rem; color: #000000; font-weight: 700; text-align: right; }
.activity-row { justify-content: flex-start; }
.activity-row .l-value { text-align: left; color: #222222; font-weight: 600; width: 100%; }
.licence-footer-note { margin-top: 10px; font-size: 0.75rem; color: #aaaaaa; text-transform: uppercase; text-align: center; letter-spacing: 1px; font-weight: 500; }

/* === СЕКЦИЯ КОНТАКТОВ === */
.contact-section { background-color: #ffffff; padding: 20px 20px 40px; }
.contact-grid { display: flex; justify-content: center; max-width: 900px; margin: 0 auto; }
.contact-card { background: #ffffff; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); display: flex; flex-direction: column; width: 100%; }
.contact-card .card-header h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--gold, #cca43b); margin: 0; letter-spacing: 1px; }
.contact-card .card-body { padding: 30px 40px; flex-grow: 1; }
.form-subtitle { text-align: center; font-size: 0.85rem; letter-spacing: 1.5px; color: #111; margin-bottom: 25px; text-transform: uppercase; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.input-group { margin-bottom: 20px; text-align: left; }
.input-group label { display: block; font-size: 0.9rem; color: #333; margin-bottom: 8px; font-weight: 500; }
.input-group input, .input-group textarea { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; font-family: 'Inter', sans-serif; outline: none; transition: border 0.3s; }
.input-group input:focus, .input-group textarea:focus { border-color: #2f80ed; }
/* Кнопка отправки сообщения (в цветах шапки) */
.blue-btn {
    width: 100%;
    background: var(--dark, #0b1020); /* Темный фон, как у шапки */
    color: var(--gold, #cca43b); /* Золотой текст */
    padding: 15px;
    border: 1px solid var(--gold, #cca43b); /* Тонкая золотая обводка для элегантности */
    border-radius: 8px; /* Сделали края как у полей ввода (было 30px) */
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}


/* Эффект при наведении курсора */
.blue-btn:hover {
    background: var(--gold, #cca43b); /* Кнопка становится полностью золотой */
    color: #000000; /* Текст становится черным */
    transform: translateY(-2px); /* Легкое поднятие */
}

/* === СТИЛИ ДЛЯ СТАТУСА ОТПРАВКИ ФОРМЫ === */
#my-form-status {
    margin-top: 15px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left; /* Текст слева, как на макете */
    border-radius: 8px; /* Скругляем углы как у полей ввода */
    transition: all 0.3s ease;
}

/* Прячем блок полностью, пока в нем нет текста */
#my-form-status:empty {
    display: none; 
}

/* Успешная отправка (зеленая плашка) */
.status-success {
    background-color: #e6f4ea; /* Светло-зеленый фон */
    color: #1e8e3e; /* Темно-зеленый текст */
    padding: 12px 15px; /* Внутренние отступы */
    border: 1px solid #cce8d6; /* Тонкая рамка */
}

/* Ошибка отправки (красная плашка) */
.status-error {
    background-color: #fce8e6; /* Светло-красный фон */
    color: #d93025; /* Темно-красный текст */
    padding: 12px 15px;
    border: 1px solid #fad2cf;
}

/* === УЗКИЙ ЦЕНТРИРОВАННЫЙ ФУТЕР === */
.compact-footer { background: var(--dark, #0b1020); color: #cccccc; padding: 30px 20px; border-top: 1px solid #222; }
.footer-centered { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; max-width: 800px; margin: 0 auto; }
.email-link { color: var(--gold, #cca43b); text-decoration: none; font-size: 1.05rem; font-weight: 500; transition: color 0.3s; }
.email-link:hover { color: #ffffff; }
.copyright-text { font-size: 0.85rem; color: #666666; margin-top: 10px; }

/* === СТИЛИ КЛИКАБЕЛЬНОГО АДРЕСА (КАРТА) === */
.map-link { color: #cccccc; text-decoration: none; border-bottom: 1px dashed #cccccc; transition: all 0.3s ease; cursor: pointer; }
.map-link:hover { color: var(--gold, #cca43b); border-bottom-color: var(--gold, #cca43b); }
.modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.75); align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.modal.show { display: flex; }
.modal-content { position: relative; background-color: #ffffff; padding: 10px; border-radius: 12px; width: 90%; max-width: 700px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); animation: zoomIn 0.3s ease-out; }
@keyframes zoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.close-map { position: absolute; top: -15px; right: -15px; background: var(--gold, #cca43b); color: #fff; width: 35px; height: 35px; border-radius: 50%; text-align: center; line-height: 32px; font-size: 24px; font-weight: bold; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: background 0.3s, transform 0.2s; }
.close-map:hover { background: #000000; transform: scale(1.1); }

/* === АНИМАЦИИ ВЫЕЗДА БЛОКОВ === */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* === АДАПТИВНОСТЬ ДЛЯ ПЛАНШЕТОВ И ТЕЛЕФОНОВ === */
@media(max-width: 900px) {
    .grid-three, .image-split { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 2.5rem; }
    .licence-card-wrapper { grid-template-columns: 1fr; gap: 30px; }
}

@media(max-width: 768px) {
    nav { padding: 15px 20px; }
    .nav-container { flex-direction: column; gap: 15px; }
    .nav-center { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .hero-slider { height: 300px; margin-top: 30px; border-radius: 8px; }
    .slider-dots { bottom: 20px; right: 20px; }
    .contact-card .card-body { padding: 25px 20px; }
    .licence-card .card-body { padding: 20px; }
}

@media(max-width: 600px) {
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .licence-row { flex-direction: column; align-items: flex-start; gap: 5px; }
    .l-value { text-align: left; }
}