/* Шрифты для меню */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&family=Open+Sans:wght@400;500&display=swap');

html, body {
    background-color: #1b1411;
    margin: 0;
    padding: 0;
    color: #fcfce7;
}

/* Стили хедера и меню */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: rgba(27, 20, 17, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-height: 70px;
    height: auto;
    z-index: 1000;
    box-sizing: border-box;
    flex-wrap: nowrap;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 200px;
}

.logo img {
    width: auto;
    height: 50px;
}

.logo .white-text {
    font-family: "Open Sans", sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #fcfce7;
    line-height: 1.2;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
}

.white-text {
    color: #fcfce7; /* ТВОЁ */
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
    font-family: 'Open Sans', sans-serif;
    text-decoration: none;
}

.menu {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
    justify-content: flex-end;
}

.menu-items {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: nowrap;
    overflow: hidden;
}

.flame a {
    color: #fcfce7; /* ТВОЁ */
    text-decoration: none;
    padding: 8px 12px;
    transition: color 0.3s;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    white-space: nowrap;
    font-size: 14px;
}

.flame a:hover {
    color: #dd9f59; /* МЕНЯЕМ СИНЕЕ НА ЗОЛОТО */
}

/* ГЛАВНАЯ КНОПКА CTA - ЭФФЕКТ "ЯНТАРЬ" */
.button-write {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* РАЗМЕРЫ (убираем лишнюю высоту) */
    padding: 12px 24px;       /* Уменьшили вертикальный отступ с 14 до 8 */
    min-height: auto;        /* Убираем жесткую высоту, если она была */
    line-height: 1.6;          /* Чтобы шрифт не добавлял лишнего пространства */
    
    /* ВАШИ СТИЛИ ШРИФТА И ДЕКОРА */
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: #fcfcfc;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    
    /* ЭФФЕКТЫ И ГРАДИЕНТ (как у вас) */
    background: linear-gradient(135deg, #FF8C00 0%, #FF4500 100%);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.button-write::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.button-write:hover::before {
    left: 100%;
}

.button-write:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 69, 0, 0.5); /* ТЕНЬ ПРИ НАВЕДЕНИИ ЯРЧЕ */
    background: linear-gradient(135deg, #FF9500 0%, #FF5E00 100%); /* ХОВЕР-ГРАДИЕНТ */
}

.button-write:active {
    transform: translateY(-1px);
    transition: transform 0.1s ease;
}

.button-write span {
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Бургер-меню */
.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fcfce7; /* ТВОЁ */
    border-radius: 2px;
}

/* Отступ для контента под фиксированным меню */
body {
    padding-top: 80px;
}

/* АДАПТИВНОСТЬ - ЦВЕТА И ПАРАМЕТРЫ СОХРАНЕНЫ */
@media (max-width: 1400px) {
    .header { padding: 12px 20px; height: 75px; }
    .logo { min-width: 180px; gap: 12px; }
    .logo img { height: 45px; }
    .logo .white-text { font-size: 14px; }
    .menu { gap: 10px; }
    .menu-items { gap: 10px; }
    .flame a { padding: 7px 10px; font-size: 13px; }
    .button-write { padding: 9px 18px; font-size: 11px; min-width: 160px; }
    body { padding-top: 75px; }
}

@media (max-width: 1100px) {
    .header { height: 70px; }
    .logo { min-width: 160px; gap: 10px; }
    .logo img { height: 40px; }
    .logo .white-text { font-size: 13px; }
    .flame a { padding: 6px 8px; font-size: 12px; }
    .button-write { padding: 8px 16px; font-size: 10px; min-width: 140px; }
    body { padding-top: 70px; }
}

@media (max-width: 992px) {
    .header { padding: 10px 15px; height: 65px; }
    .logo { min-width: 150px; }
    .logo img { height: 35px; }
    .logo .white-text { font-size: 12px; }
    .menu { gap: 8px; }
    .menu-items { gap: 8px; }
    .flame a { padding: 5px 8px; font-size: 11px; }
    .button-write { padding: 7px 14px; font-size: 10px; min-width: 130px; }
    body { padding-top: 65px; }
}

@media (max-width: 768px) {
    .header { padding: 8px 10px; height: 60px; }
    .logo { min-width: auto; flex-grow: 1; }
    .logo img { height: 30px; }
    .logo .white-text { font-size: 11px; line-height: 1.3; }
    .menu-items { display: none; }
    .burger-menu { display: flex; margin-right: 10px; width: 25px; height: 18px; }
    .burger-menu span { height: 2px; }
    .button-write { padding: 6px 12px; font-size: 9px; min-width: 120px; }
    body { padding-top: 60px; }
}

@media (max-width: 480px) {
    .header { padding: 5px 8px; height: 55px; }
    .logo { gap: 8px; }
    .logo img { height: 25px; }
    .logo .white-text { font-size: 10px; }
    .button-write { padding: 5px 10px; font-size: 8px; min-width: 100px; }
    body { padding-top: 55px; }
}

.mobile-text { display: none; }

@media (max-width: 768px) {
    .desktop-text { display: none; }
    .mobile-text { display: inline; }
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ АДАПТИВНОГО МЕНЮ ========== */

/* Стили для десктопного меню */
.menu-links {
  display: flex;
  gap: 10px;
}

/* Кнопка с двумя вариантами текста */
.btn-text-mobile {
  display: none;
}

/* Бургер-меню */
.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
  z-index: 1100;
}

.burger-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #fcfce7; /* ВАШ цвет */
  transition: 0.3s;
}

/* Мобильное меню (drawer) */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background-color: #1b1411; /* ВАШ цвет фона */
  z-index: 1050;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 100px 30px 40px;
  box-shadow: -5px 0 15px rgba(0,0,0,0.5);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav .flame {
  margin-bottom: 20px;
}

.mobile-nav .flame a {
  font-size: 18px;
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #fcfce7; /* ВАШ цвет */
}

/* Оверлей */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1040;
  display: none;
}

.overlay.active {
  display: block;
}

/* Анимация бургера */
.burger-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger-btn.active span:nth-child(2) {
  opacity: 0;
}
.burger-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Адаптивные медиа-запросы */
@media (max-width: 1150px) {
  .menu-links {
    display: none;
  }
  .burger-btn {
    display: flex;
  }
}

@media (max-width: 768px) {
  .btn-text-desktop {
    display: none;
  }
  .btn-text-mobile {
    display: inline;
  }
.header {
        padding: 5px 15px;
        min-height: 50px; 
    }
}

@media (min-width: 769px) {
  .btn-text-mobile {
    display: none;
  }
}
