

:root {
  /* gold colors */
  --gold-base: #D4AF37;       /* Классическое золото */
  --gold-dark: #AA8629;       /* Тёмное золото */
  --gold-darker: #8A6F1F;     /* Очень тёмное золото */
  --gold-light: #FFD700;      /* Яркое золото */
  --gold-lighter: #FFE44D;    /* Светлое золото */
  --gold-pale: #F5E6C2;       /* Бледное золото */

  /*  copper colors */
  --copper-base: #B87333;     /* Натуральная медь */
  --copper-dark: #8C4E24;     /* Тёмная медь */
  --copper-light: #E3964D;    /* Светлая медь */
  --copper-lighter: #F0B27A;  /* Очень светлая медь */
  --copper-pale: #F2D2B5;     /* Бледная медь */

  /* base colors */
  --black: #1A1A1A;           /* Глубокий чёрный */
  --dark: #2D2D2D;            /* Тёмный фон */
  --medium: #5A5A5A;          /* Средний серый */
  --light: #F0F0F0;           /* Светлый фон */
  --white: #FFFFFF;           /* Чистый белый */
  --drop-menu: #B67632;

  /* effects */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);
  --shadow-copper: 0 4px 20px rgba(184, 115, 51, 0.3);
  --transition: all 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius: 8px;
}

@font-face {
  font-family: 'Rubik';
  src: url('../fonts/Rubik.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ======== */
/* Анимации */
/* ======== */

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==== */
/* База */
/* ==== */

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

body {
  font-family: 'Rubik', sans-serif;
  line-height: 1.7;
  color: var(--dark);
  background-color: var(--light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  color: var(--black);
}

a {
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== */
/* Шапка */
/* ===== */

header {
  background: linear-gradient(90deg, var(--gold-dark), var(--copper-base));
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.logo {
  margin-left: 20px;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  text-decoration: none;
}

.logo:hover {
  color: var(--gold-light);
  transform: translateY(-2px);
}

.logo-icon {
  font-size: 32px;
  color: var(--copper-base);
}

.logo-img {
    margin-bottom: 5px;
    height: 40px;
    width: auto;
}

.phone a {
  margin-right: 20px;
  color: var(--gold-pale);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone a:hover {
  color: var(--gold-light);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
}

nav ul li ul li {
    position: relative;
    background: var(--drop-menu);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, var(--gold-dark), var(--copper-dark));
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    z-index: 1000;
    border-radius: var(--border-radius);
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    padding: 12px 20px;
    white-space: nowrap;
    color: var(--gold-pale);
    font-weight: 400;
    transition: var(--transition);
    display: block;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold-light);
    padding-left: 25px;
}

.dropdown-menu a.active {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold-light);

}

.dropdown:hover .dropdown-menu {
    animation: fadeInDropdown 0.3s ease-out forwards;
}

.dropdown-menu a::before {
    content: '→';
    margin-right: 10px;
    opacity: 0;
    transition: var(--transition);
    color: var(--gold-light);
}

.dropdown-menu a:hover::before {
    opacity: 1;
    margin-right: 15px;
}

nav a {
  color: var(--gold-pale);
  font-weight: 500;
  padding: 5px 0;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-light);
  transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a:hover {
  color: var(--gold-light);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-base), var(--copper-base));
    margin: 15px auto 0;
}

/* ============ */
/* Герой-секция */
/* ============ */

.hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.7)),
    url('../img/background2.png') center/cover no-repeat;
  color: var(--gold-light);
  height: 400px;
  min-height: 400px;
  text-align: center;
  padding: 60px 20px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  opacity: 0.1;
  pointer-events: none;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInDown 1s ease;
}

.hero p {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto 30px;
  color: var(--black);
  animation: fadeInUp 1s ease 0.3s both;
}
.hero-content {
  display: inline-block;
  padding: 20px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--border-radius);
  backdrop-filter: blur(5px);

}

/* ====== */
/* Подвал */
/* ====== */

.footer {
  background: var(--black);
  color: var(--white);
  padding: 60px 0 30px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--gold-base), var(--copper-base));
}

.footer__main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer__logo {
  margin-left: 20px;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  display: inline-block;
}

.footer__logo span {
  color: var(--gold-base);
  transition: var(--transition);
}

.footer__logo span:hover {
  color: var(--gold-light);
}
.footer__section {
  margin-left: 20px;
}

.footer__logo:hover {
  color: var(--gold-light);
}

.footer__about {
  color: var(--gold-pale);
  line-height: 1.6;
}

.footer__contacts-title {
  color: var(--copper-light);
  font-size: 16px;
  margin-bottom: 5px;
}

.footer__contacts-value {
  margin-bottom: 15px;
}

.footer__contacts-value a {
  color: var(--gold-pale);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__contacts-value a:hover {
  color: var(--gold-light);
}

.footer__contacts-value i {
  color: var(--copper-base);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--copper-light);
}

.social-icon:hover {
  background: var(--copper-base);
  color: var(--white);
  transform: translateY(-3px);
}
.section-title {
  margin-top: 30px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer__links {
  margin-left: 5%;
  display: flex;
  gap: 20px;
}

.footer__links a {
  color: var(--gold-pale);
  font-size: 14px;
}

.footer__links a:hover {
  color: var(--gold-light);
}

.footer__copyright {
  margin-right: 45%;
  color: var(--copper-pale);
  font-size: 14px;
}

/* ==================== */
/* Медиа-запросы (Адаптивность) */
/* ==================== */

@media (max-width: 1024px) {

  html {
    overflow-x: hidden;
    width: 100%;
  }

  body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

  .header-container {
    padding: 0 15px;
  }

  nav ul {
    gap: 15px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  /* Шапка для мобильных */
  .header-container {
    flex-direction: column;
    padding: 15px;
    gap: 15px;
  }

  .logo {
    margin-left: 0;
    font-size: 24px;
  }

  .logo-img {
    height: 35px;
  }

  .phone {
    order: -1;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .phone a {
    margin-right: 0;
    justify-content: center;
  }

  /* Навигация для мобильных */
  nav {
    width: 100%;
  }

  nav ul {
    flex-direction: column;
    gap: 5px;
    width: 100%;
  }

  nav ul li {
    width: 100%;
    text-align: center;
  }

  nav ul li a {
    padding: 12px;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 5px;
    box-shadow: none;
    animation: none;
    display: none;
  }

  .dropdown:hover .dropdown-menu {
    display: none;
  }

  .dropdown.active .dropdown-menu {
    display: block;
    opacity: 1;
    transform: none;
  }

  /* Герой-секция */
  .hero {
    height: 300px;
    padding: 40px 15px;
    background:
      linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.7)),
      url('../img/background_mobile.png') center/cover no-repeat;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-content {
    padding: 15px;
  }

  /* Подвал */
  .footer__main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer__logo-wrap {
    text-align: center;
  }

  .footer__logo {
    margin-left: 0;
    margin-bottom: 15px;
  }

  .footer__section {
    margin-left: 0;
    text-align: center;
  }

  .footer__contacts {
    text-align: center;
  }

  .footer__contacts-value a {
    justify-content: center;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer__links {
    margin-left: 0;
    flex-direction: column;
    gap: 10px;
  }

  .footer__copyright {
    margin-right: 0;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    height: 250px;
    padding: 30px 10px;
  }

  .hero h1 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .hero p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .footer {
    padding: 40px 0 20px;
  }

  .footer__main {
    gap: 25px;
  }
}

/* Стили для мобильного меню */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--gold-pale);
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1001;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--copper-base));
    padding: 15px;
    box-shadow: var(--shadow-md);
  }

  nav.active {
    display: block;
    animation: fadeInDown 0.3s ease;
  }

  .header-container {
    position: relative;
  }
}

/* Улучшение touch-интерфейса */
@media (hover: none) {
  .dropdown:hover .dropdown-menu {
    display: none;
  }

  nav a:hover::after {
    width: 0;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }
}