
  :root {
    --accent: #f5b907;
    --black: #111111;
    --gray-dark: #444444;
    --gray-mid: #888888;
    --gray-light: #d0d0d0;
    --bg: #f5f5f5;
    --white: #ffffff;
    --border: #e0e0e0;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--black);
    font-size: 15px;
    line-height: 1.6;
  }

  /* ─── HEADER (copied from main site) ─── */
  :root {
    --base-dark: #13171e;
    --accent-yellow: #f5b907;
    --text-light: #ffffff;
    --text-muted: #a0a5b0;
  }

/* --- Хедер --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--base-dark);
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 4%;
    box-sizing: border-box;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Эффект прозрачности при скролле ниже hero */
header.scrolled {
    background-color: rgba(19, 23, 30, 0.75);
    backdrop-filter: blur(12px);
    padding: 12px 4%;
}

/* --- Логотип и текст --- */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px; 
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text .title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.subtitle-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
}

.subtitle-wrap .line {
    flex-grow: 1;
    height: 1px;
    background-color: var(--text-light);
    opacity: 0.7;
}

.logo-text .subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 4px;
    padding: 0 6px;
    text-transform: uppercase;
}

/* --- Навигация --- */
.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    position: relative;
    padding: 10px 0;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-yellow);
}

/* Стилизация активной страницы (желтая полоса снизу как на макете) */
.nav-links a.active {
    color: var(--accent-yellow);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent-yellow);
}

/* --- Правая часть: Телефон и Кнопка --- */
.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.phone-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-icon {
    width: 22px;
    height: 22px;
    color: var(--text-muted);
}

.phone-info {
    display: flex;
    flex-direction: column;
}

.phone-number {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.phone-number:hover {
    color: var(--accent-yellow);
}

.phone-hours {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.cta-button {
    background-color: var(--accent-yellow);
    color: #000000;
    padding: 10px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.2s, background-color 0.3s;
}

.cta-button:hover {
    background-color: #e0a800;
    transform: translateY(-1px);
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.8rem;
    cursor: pointer;
}

/* --- Мобильное адаптивное меню --- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--base-dark);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 80px 40px;
    box-sizing: border-box;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.mobile-menu.active {
    right: 0;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px; /* Привязываем кнопку к правому краю вместо левого */
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    z-index: 50; /* Гарантирует, что кнопка будет поверх ссылок меню */
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.mobile-nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
}

.mobile-nav-links a:hover {
    color: var(--accent-yellow);
}

.mobile-phone-block {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-cta {
    background-color: var(--accent-yellow);
    color: #000000 !important;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    margin-top: 10px;
}

/* --- Адаптивность для экранов (Планшеты и Мобильные) --- */
@media (max-width: 1120px) {
    .nav-links {
        gap: 20px;
    }
    .header-right {
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    .phone-block {
        display: none;
    }
    .cta-button {
        display: none;
    }
    .burger-menu {
        display: block;
    }
}


  /* ─── PAGE WRAPPER ─── */
  .page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 24px 80px;
  }

  /* ─── TOP GRID: form + info ─── */
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 0 48px;
    margin-bottom: 64px;
  }

  .divider-v {
    background: var(--border);
    width: 1px;
    align-self: stretch;
  }

  /* ─── FORM SIDE ─── */
  .form-section h2,
  .info-section h2 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--black);
    margin-bottom: 6px;
  }

  .section-desc {
    font-size: 13px;
    color: var(--gray-mid);
    margin-bottom: 28px;
    line-height: 1.5;
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
  }

  .field {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
  }

  .field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 6px;
    letter-spacing: 0.04em;
  }

  .field input,
  .field select,
  .field textarea {
    background: transparent;
    border: none;
    border-bottom: 1.5px solid var(--gray-light);
    padding: 6px 0;
    font-size: 14px;
    color: var(--black);
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
  }

  .field select {
    cursor: pointer;
    padding-right: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 2px center;
  }

  .field input:focus,
  .field select:focus,
  .field textarea:focus {
    border-bottom-color: var(--accent);
  }

  .field textarea {
    resize: none;
    height: 72px;
    line-height: 1.5;
  }

  .field-full {
    grid-column: 1 / -1;
  }

  .form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
  }

  .btn-submit {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
  }

  .btn-submit:hover {
    background: var(--accent);
    color: var(--black);
  }

  /* ─── INFO SIDE ─── */
  .info-section {
    padding-left: 12px;
  }

  .contact-block {
    margin-bottom: 32px;
  }

  .contact-block:last-child {
    margin-bottom: 0;
  }

  .contact-block h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 4px;
    letter-spacing: 0.01em;
  }

  .contact-block p {
    font-size: 12px;
    color: var(--gray-mid);
    margin-bottom: 10px;
    line-height: 1.5;
  }

  .contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s;
  }

  .contact-link:hover {
    opacity: 0.75;
  }

  .contact-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(245, 185, 7, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .contact-icon svg {
    width: 14px;
    height: 14px;
    fill: var(--accent);
  }

  /* ─── MAP ─── */
  .map-section {
    margin-bottom: 64px;
  }

  .map-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-mid);
    margin-bottom: 12px;
  }

  .map-frame {
    width: 100%;
    height: 340px;
    border: none;
    display: block;
    filter: grayscale(1);
  }

  /* ─── REQUISITES ─── */
  .req-section {
    margin-top: 12px;
  }

  .req-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-mid);
    margin-bottom: 20px;
  }

  .req-card {
    border: 1.5px solid var(--border);
    background: var(--white);
  }

  .req-table {
    width: 100%;
    border-collapse: collapse;
  }

  .req-table tr:first-child td {
    background: var(--black);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    padding: 12px 16px;
    letter-spacing: 0.01em;
    font-style: italic;
  }

  .req-table td {
    padding: 10px 16px;
    font-size: 12.5px;
    color: var(--gray-dark);
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    line-height: 1.55;
  }

  .req-table tr:last-child td {
    border-bottom: none;
  }

  .req-table td:first-child {
    font-weight: 600;
    color: var(--black);
    white-space: nowrap;
    padding-right: 24px;
    width: 180px;
  }

  .req-table td.accent-text {
    color: var(--accent);
    font-weight: 600;
  }

  /* ─── MINI HERO ─── */
  .page-hero {
    background-image:
      linear-gradient(90deg, rgba(15,18,25,0.92) 0%, rgba(15,18,25,0.65) 55%, rgba(15,18,25,0.25) 100%),
      url('../img/contact.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 172px 4% 52px;
    color: #fff;
  }

  .page-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
  }

  .page-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 18px;
  }

  .page-hero-breadcrumb a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.2s;
  }

  .page-hero-breadcrumb a:hover {
    color: var(--accent-yellow);
  }

  .page-hero-breadcrumb .sep {
    color: rgba(255,255,255,0.25);
  }

  .page-hero-breadcrumb .current {
    color: var(--accent-yellow);
  }

  .page-hero-title {
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1px;
    text-transform: uppercase;
    margin: 0 0 14px;
    color: #fff;
  }

  .page-hero-title span {
    color: var(--accent-yellow);
  }

  .page-hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.01em;
  }

  /* убираем верхний отступ у .page — hero уже даёт нужный зазор */
  .page {
    padding-top: 48px;
  }

  /* ─── RESPONSIVE ─── */
  @media (max-width: 768px) {
    .page-hero { padding: 110px 4% 40px; }
    .page-hero-title { font-size: 2rem; }
  
    .contact-grid {
      grid-template-columns: 1fr;
      gap: 48px 0;
    }

    .divider-v {
      display: none;
    }

    .info-section {
      padding-left: 0;
    }

    .form-row {
      grid-template-columns: 1fr;
    }

    .req-table td:first-child {
      width: auto;
    }
  }
/* --- Выпадающий языковой список (Dropdown) --- */
.lang-dropdown {
    position: relative;
    display: inline-block;
    margin-right: 25px; /* Отступ от телефона */
}

.lang-dropbtn {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.lang-dropbtn:hover {
    color: var(--accent-yellow);
}

.arrow-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

/* Вращение стрелочки при открытии */
.lang-dropdown.active .arrow-icon {
    transform: rotate(180deg);
}

.lang-dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #1a1a1a; /* Темный премиальный фон */
    min-width: 60px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.5);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Показываем меню */
.lang-dropdown.active .lang-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.lang-option {
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px 15px;
    text-align: center;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.lang-option:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--accent-yellow);
}

.lang-option:first-child { border-radius: 6px 6px 0 0; }
.lang-option:last-child { border-radius: 0 0 6px 6px; }
@media (max-width: 480px) {
  /* Хедер и Логотип */
  .logo-img { height: 40px; }
  .logo-text .title { font-size: 1.2rem; }
  .logo-text .subtitle { font-size: 0.65rem; }
  .header-right { gap: 10px; }
  header { padding: 15px 4%; }
  header.scrolled { padding: 10px 4%; }

  /* Мобильное меню */
  .mobile-menu { width: 100%; padding: 80px 20px; }

  /* Hero и Отступы страницы */
  .page-hero { padding: 90px 4% 30px; }
  .page-hero-title { font-size: 1.6rem; }
  .page-hero-sub { font-size: 0.85rem; }
  .page { padding: 30px 15px 50px; }

  /* Элементы формы */
  .btn-submit { 
    width: 100%; 
    text-align: center; 
  }
  .field textarea { height: 90px; }

  /* Таблица реквизитов - перестраиваем в блоки, чтобы избежать скролла */
  .req-table, .req-table tbody, .req-table tr, .req-table td {
    display: block;
    width: 100%;
  }
  .req-table tr {
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
  }
  .req-table tr:last-child {
    border-bottom: none;
  }
  .req-table td {
    border-bottom: none;
    padding: 4px 16px;
  }
  .req-table tr:first-child td {
    padding: 12px 16px;
  }
  .req-table td:first-child {
    padding-top: 8px;
    padding-bottom: 2px;
    font-weight: 700;
    white-space: normal; /* Разрешаем перенос текста */
    width: 100%;
  }
  .req-table td:last-child {
    padding-bottom: 8px;
  }

  /* Карта */
  .map-frame { height: 260px; }
}

@media (max-width: 360px) {
  /* Супер-узкие экраны (вплоть до 320px) */
  .logo-img { height: 32px; }
  .logo-text .title { font-size: 1.05rem; letter-spacing: 0; }
  .logo-text .subtitle { letter-spacing: 2px; }
  
  .lang-dropbtn { font-size: 0.8rem; }
  .burger-menu { font-size: 1.5rem; }
  
  .page-hero-title { font-size: 1.4rem; }
  .req-label, .map-label { font-size: 10px; }
}
@media (max-width: 480px) {
    /* Скрываем десктопный дропдоун выбора языка */
    .lang-dropdown {
        display: none;
    }

    /* Сужаем шапку и логотип */
    header {
        padding: 12px 4%;
    }
    
    .logo-img {
        height: 35px;
    }

    .logo-container {
        gap: 10px;
    }

    .logo-text .title {
        font-size: 1.1rem;
    }

    .logo-text .subtitle {
        font-size: 0.6rem;
        letter-spacing: 2px;
    }

    /* Мобильное меню на весь экран для удобства на 320px */
    .mobile-menu {
        width: 100%;
        padding: 60px 20px;
    }
  }
  /* ─── PREMIUM FOOTER ─── */
.site-footer {
  background-color: #0a0d14; /* Чуть темнее хедера для глубины */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px 4%;
  margin-top: auto;
}

.footer-bottom {
  max-width: 1100px; /* Выравнивание по ширине контента */
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.copyright {
  color: var(--text-muted, #a0a5b0);
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.02em;
}

.creator {
  color: var(--text-muted, #a0a5b0);
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

/* Стилизация ссылки в стиле макета, но с фирменным цветом */
.creator a {
  color: var(--accent-yellow, #f5b907);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 2px;
  transition: opacity 0.3s ease;
}

/* Красивое подчеркивание с эффектом при наведении */
.creator a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--accent-yellow, #f5b907);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  transform-origin: right;
}

.creator a:hover::after {
  transform-origin: left;
  transform: scaleX(0);
}

/* --- Адаптация футера (вплоть до 320px) --- */
@media (max-width: 650px) {
  .site-footer {
    padding: 24px 20px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 12px;
  }

  .copyright, .creator {
    font-size: 13px; /* Чуть уменьшаем шрифт для мобилок */
  }
}

/* --- КНОПКА "НАВЕРХ" --- */
.scroll-top-btn {
    position: fixed;
    bottom: 40px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: #13171e; /* Темный фон в стиле сайта */
    color: var(--accent-yellow); /* Желтый акцент */
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 999;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    border-radius: 0px; /* Строгие углы без скруглений */
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* Класс, который будет добавляться через JS при прокрутке */
.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background-color: var(--accent-yellow);
    color: #000000;
    border-color: var(--accent-yellow);
    transform: translateY(-3px); /* Легкий эффект приподнимания */
}

.scroll-top-btn svg {
    width: 24px;
    height: 24px;
}