/* ============================================================
   style.css — ОБЩИЕ СТИЛИ ДЛЯ ВСЕХ СТРАНИЦ
   ============================================================ */

/* ============================================================
   ШАПКА — ТЁМНО-ЗОЛОТОЙ ГРАДИЕНТ
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(135deg, #1a1008, #2a1a0a);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 0 1.5rem;
    height: 140px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
    transform: translateY(0);
    gap: 10px;
}
.header.hidden { transform: translateY(-100%); }
.header.scrolled { box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); }

/* ============================================================
   ЛОГОТИП
   ============================================================ */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
}
.logo img {
    height: 200px;
    width: auto;
    display: block;
    margin-top: 20px;
}

/* ============================================================
   МЕНЮ — СДВИНУТО ВЛЕВО
   ============================================================ */
.nav-menu {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
    margin-left: -120px !important;
    justify-content: flex-start !important;
}
.nav-menu::-webkit-scrollbar { display: none; }
.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.78rem;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4af37;
    border-radius: 2px;
    transition: width 0.35s ease;
}
.nav-menu a:hover { color: #d4af37; }
.nav-menu a:hover::after { width: 100%; }
.nav-menu a.active { color: #d4af37; }
.nav-menu a.active::after { width: 100%; }

/* ============================================================
   ПОДВАЛ (ЕДИНЫЙ ДЛЯ ВСЕХ СТРАНИЦ)
   ============================================================ */
footer {
    background: rgba(10, 10, 10, 0.9);
    color: #aaa;
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
    font-size: 12px;
    border-top: 1px solid #333;
    position: relative;
    z-index: 1;
}

.footer-note {
    margin-top: 8px;
    font-size: 10px;
    opacity: 0.6;
}

/* ===== БЛОК С КОНТРОЛИРУЮЩИМИ ОРГАНАМИ ===== */
.footer-control {
    margin-top: 12px;
    font-size: 11px;
    opacity: 0.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.footer-control p {
    margin: 4px 0;
}
.footer-control a {
    color: #D4AF37;
    text-decoration: none;
}
.footer-control a:hover {
    text-decoration: underline;
}

/* ============================================================
   АНИМИРОВАННАЯ СЕТКА
   ============================================================ */
#gridCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============================================================
   КНОПКА ВЫЗОВА
   ============================================================ */
.call-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #D4AF37;
    color: #121212;
    padding: 12px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 1000;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}
.call-button:hover {
    transform: scale(1.05);
    background: #c4a02a;
    color: #121212;
}

/* ============================================================
   ОБЩИЕ СТИЛИ
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #121212;
    padding-top: 100px;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================================
   ЗАГОЛОВКИ СЕКЦИЙ
   ============================================================ */
.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 35px;
    color: #fff;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #D4AF37;
    margin: 12px auto 0;
    border-radius: 3px;
}

/* ============================================================
   КНОПКА НА ГЛАВНУЮ
   ============================================================ */
.btn-about {
    display: inline-block;
    background: transparent;
    border: 2px solid #D4AF37;
    color: #D4AF37;
    padding: 12px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    margin-top: 10px;
}
.btn-about:hover {
    background: #D4AF37;
    color: #121212;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.25);
}
.btn-about .arrow {
    display: inline-block;
    transition: transform 0.3s;
    margin-left: 6px;
}
.btn-about:hover .arrow {
    transform: translateX(5px);
}

/* ============================================================
   ПРАЙС-БЛОК
   ============================================================ */
.price-block {
    max-width: 800px;
    margin: 0 auto;
    border: 3px solid #D4AF37;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.price-block img {
    width: 100%;
    height: auto;
    display: block;
}
.price-block:hover {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
}
.price-block::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -200%;
    width: 200%;
    height: 6px;
    background: linear-gradient(90deg, transparent, #D4AF37, #f5d98f, #fff5d0, #f5d98f, #D4AF37, transparent);
    background-size: 200% 100%;
    animation: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}
.price-block::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: -200%;
    width: 200%;
    height: 6px;
    background: linear-gradient(90deg, transparent, #D4AF37, #f5d98f, #fff5d0, #f5d98f, #D4AF37, transparent);
    background-size: 200% 100%;
    animation: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}
.price-block:hover::before {
    left: -50%;
    opacity: 1;
    animation: runLinePrice 1.2s linear infinite;
}
.price-block:hover::after {
    right: -50%;
    opacity: 1;
    animation: runLinePrice 1.2s linear infinite;
}
@keyframes runLinePrice {
    0% { transform: translateX(0%); }
    100% { transform: translateX(50%); }
}

/* ============================================================
   УСЛУГИ
   ============================================================ */
.services-grid-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.service-card-new {
    background: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #333;
    transition: all 0.3s;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.service-card-new:hover {
    transform: translateY(-8px);
    border-color: #D4AF37;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.15);
}
.service-card-new img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.service-card-new .service-name {
    padding: 20px 15px;
    background: linear-gradient(135deg, #2a1a0a, #b8960f);
    border-top: 2px solid #D4AF37;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.4;
    min-height: 100px;
    width: 100%;
}
.service-card-new .service-brands {
    font-size: 11px;
    font-weight: 400;
    color: #D4AF37;
    margin-top: 6px;
    letter-spacing: 0.3px;
    line-height: 1.4;
}
.service-card-new .service-brands .brand-country {
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   ОФЕРТЫ
   ============================================================ */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}
.offer-card {
    background: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #D4AF37;
    transition: all 0.3s;
    cursor: pointer;
    aspect-ratio: 4 / 3;
}
.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.15);
}
.offer-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================================
   МОДАЛЬНЫЕ ОКНА
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.modal-overlay.active {
    display: flex;
}
.modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    animation: modalFade 0.3s ease;
}
@keyframes modalFade {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
}
.modal-close:hover { color: #D4AF37; }
.modal-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #D4AF37;
    margin-bottom: 20px;
    padding-right: 30px;
}
.modal-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}
.modal-content ul li {
    padding: 8px 0;
    color: #ddd;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
}
.modal-content ul li::before {
    content: '✦';
    color: #D4AF37;
    margin-right: 12px;
    font-size: 12px;
}
.modal-content .btn-modal {
    display: inline-block;
    background: transparent;
    border: 2px solid #D4AF37;
    color: #D4AF37;
    padding: 12px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
    width: 100%;
    text-align: center;
}
.modal-content .btn-modal:hover {
    background: #D4AF37;
    color: #121212;
}
.modal-form {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}
.modal-form.active {
    display: block;
}
.modal-form input,
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 12px;
    border: 1px solid #444;
    border-radius: 10px;
    font-size: 14px;
    background: #2a2a2a;
    color: #fff;
    font-family: 'Inter', sans-serif;
}
.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: #D4AF37;
}
.modal-form .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}
.modal-form .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    font-size: 13px;
    cursor: pointer;
}
.modal-form .checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #D4AF37;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}
.modal-form .btn-submit {
    background: #D4AF37;
    color: #121212;
    border: none;
    padding: 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
}
.modal-form .btn-submit:hover {
    background: #c4a02a;
    transform: translateY(-2px);
}

/* ============================================================
   ВРАЧИ
   ============================================================ */
.head-doctor { margin-bottom: 50px; background: #1e1e1e; border-radius: 30px; padding: 30px; border: 1px solid #333; transition: transform 0.3s, border-color 0.3s; }
.head-doctor:hover { transform: translateY(-5px); border-color: #D4AF37; }
.head-doctor-card { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: center; }
.head-doctor-photo img { width: 100%; border-radius: 20px; aspect-ratio: 1 / 1; object-fit: cover; }
.head-doctor-info h3 { font-size: 28px; color: #D4AF37; margin-bottom: 10px; }
.head-doctor-info .spec { font-size: 16px; color: #fff; margin-bottom: 8px; }
.head-doctor-info .exp { font-size: 14px; color: #aaa; margin-bottom: 15px; }
.head-doctor-info .desc { font-size: 14px; color: #ddd; line-height: 1.5; margin-bottom: 20px; }
.head-doctor-info .btn { display: inline-block; background: transparent; border: 2px solid #D4AF37; color: #D4AF37; padding: 10px 25px; border-radius: 30px; text-decoration: none; font-weight: 600; transition: all 0.3s; font-size: 14px; }
.head-doctor-info .btn:hover { background: #D4AF37; color: #121212; transform: translateY(-2px); }

.doctors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; }
.doctor-card { background: #1e1e1e; border-radius: 16px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.2); text-align: center; transition: transform 0.3s; text-decoration: none; color: inherit; display: block; border: 1px solid #333; cursor: pointer; }
.doctor-card:hover { transform: translateY(-5px); border-color: #D4AF37; }
.doctor-card img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; display: block; }
.doctor-card .no-photo { width: 100%; aspect-ratio: 3 / 4; background: linear-gradient(135deg, #2a2a2a, #1a1a1a); display: flex; align-items: center; justify-content: center; font-size: 60px; }
.doctor-card h3 { margin: 12px 12px 5px; color: #fff; font-size: 16px; }
.doctor-card .spec { color: #D4AF37; font-weight: 500; font-size: 13px; }
.doctor-card .exp { color: #aaa; font-size: 12px; padding: 0 12px 12px; }
#doctors { background: rgba(18, 18, 18, 0.5); }

/* ============================================================
   ПРАЙС-ТАБЛИЦА
   ============================================================ */
.price-table { width: 100%; border-collapse: collapse; background: #1e1e1e; border-radius: 16px; overflow: hidden; }
.price-table th, .price-table td { padding: 12px 18px; text-align: left; border-bottom: 1px solid #333; font-size: 14px; color: #ddd; }
.price-table th { background: #2a2a2a; color: #D4AF37; font-weight: 600; }
.price-table .price-col { color: #D4AF37; font-weight: bold; }

/* ============================================================
   ОТЗЫВЫ
   ============================================================ */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; }
.review-card { background: #1e1e1e; padding: 20px; border-radius: 16px; border-left: 4px solid #D4AF37; transition: transform 0.3s; }
.review-card:hover { transform: translateX(5px); border-left-color: #FFD700; }
.review-card .text { font-style: italic; margin-bottom: 12px; color: #bbb; font-size: 13px; }
.review-card .author { font-weight: bold; color: #D4AF37; margin-top: 8px; font-size: 13px; }
#reviews { background: rgba(13, 13, 13, 0.5); }

/* ============================================================
   КОНТАКТЫ
   ============================================================ */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info p { margin-bottom: 12px; font-size: 16px; color: #ddd; }
.contact-info strong { color: #D4AF37; }
.contact-info a { color: #D4AF37; text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 10px; margin-bottom: 12px; border: 1px solid #444; border-radius: 8px; font-size: 14px; background: #2a2a2a; color: #fff; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: #D4AF37; }
.contact-form .btn { display: inline-block; background: transparent; border: 2px solid #D4AF37; color: #D4AF37; padding: 10px 25px; border-radius: 30px; text-decoration: none; font-weight: 600; transition: all 0.3s; white-space: nowrap; font-size: 14px; cursor: pointer; width: 100%; }
.contact-form .btn:hover { background: #D4AF37; color: #121212; transform: translateY(-2px); }

/* ============================================================
   ДОКУМЕНТЫ
   ============================================================ */
.docs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; text-align: center; }
.doc-card { background: #1e1e1e; padding: 20px; border-radius: 16px; border: 1px solid #333; transition: border-color 0.3s; }
.doc-card:hover { border-color: #D4AF37; }
.doc-card .icon { font-size: 40px; margin-bottom: 10px; }
.doc-card .title { color: #D4AF37; font-weight: 600; }
.doc-card .desc { color: #aaa; font-size: 13px; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1024px) {
    .header { padding: 0 1.2rem; height: 90px !important; }
    .nav-menu { gap: 0.5rem; margin-left: -40px !important; }
    .nav-menu a { font-size: 0.7rem; }
    .logo img { height: 120px; }
    body { padding-top: 90px; }
    .hero-grid { grid-template-columns: 1fr; gap: 30px; align-items: center; }
    .hero-left { align-items: center; }
    .video-frame, .doctor-info { margin-left: 0; }
    .hero-content { padding-right: 0; text-align: center; margin-top: 0; }
    .stats { justify-content: center; }
    .offers-grid { grid-template-columns: repeat(3, 1fr); }
    .services-grid-new { grid-template-columns: repeat(2, 1fr); }
    .brand-subtitle { font-size: 24px; }
    #brandVideo { max-width: 320px; }
}
@media (max-width: 768px) {
    .header { padding: 0 0.8rem; height: 75px !important; }
    body { padding-top: 75px; }
    .logo img { height: 120px; }
    .nav-menu { gap: 0.4rem; margin-left: -20px !important; }
    .nav-menu a { font-size: 0.6rem; }
    .hero { min-height: 500px; }
    .brand-subtitle { font-size: 20px; }
    .brand-desc { font-size: 12px; }
    .contacts-grid { grid-template-columns: 1fr; }
    .offers-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .services-grid-new { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .head-doctor-card { grid-template-columns: 1fr; text-align: center; gap: 20px; }
    .head-doctor-info h3 { font-size: 24px; }
    .call-button { padding: 8px 16px; font-size: 13px; bottom: 15px; right: 15px; }
    section { padding: 40px 0; }
    .stats { gap: 20px; margin-top: 10px; }
    .stat .number { font-size: 20px; }
    #brandVideo { max-width: 280px; }
    .btn-about { padding: 10px 25px; font-size: 13px; }
    .modal-content { padding: 25px; }
    .service-card-new img { height: 150px; }
}
@media (max-width: 480px) {
    .header { padding: 0 0.5rem; height: 68px !important; }
    body { padding-top: 68px; }
    .logo img { height: 120px; }
    .nav-menu { gap: 0.3rem; margin-left: -10px !important; }
    .nav-menu a { font-size: 0.5rem; }
    section { padding: 30px 0; }
    .brand-subtitle { font-size: 16px; }
    .brand-desc { font-size: 11px; }
    .stats { gap: 12px; margin-top: 8px; }
    .stat .number { font-size: 16px; }
    .stat .label { font-size: 8px; }
    #brandVideo { max-width: 220px; }
    .btn-about { padding: 8px 20px; font-size: 12px; }
    .services-grid-new { grid-template-columns: 1fr; }
    .offers-grid { grid-template-columns: 1fr; }
    .modal-content { padding: 20px; }
    .service-card-new img { height: 180px; }
    .modal-content h2 { font-size: 22px; }
}
@media (max-width: 380px) {
    .logo img { height: 120px; }
    .nav-menu a { font-size: 0.45rem; }
    .nav-menu { gap: 0.2rem; margin-left: 0 !important; }
    .header { height: 65px !important; padding: 0 0.3rem; }
    body { padding-top: 65px; }
    #brandVideo { max-width: 180px; }
}
/* ===== ССЫЛКИ В ФУТЕРЕ ===== */
.footer-links {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-links a {
  color: #D4AF37;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: #f5d98f;
  text-decoration: underline;
}
.footer-links span {
  color: #555;
  font-size: 12px;
}
@media (max-width: 480px) {
  .footer-links {
    gap: 6px;
    flex-direction: column;
  }
  .footer-links span { display: none; }
}