/* ===========================
   НЕВОТОН - Основные стили
   Цвета: #e2ae69 (золото), #404040 (текст), #ededed (светлый фон)
   =========================== */

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

body {
    font-family: 'Roboto Slab', serif;
    font-size: 15px;
    line-height: 2;
    color: #404040;
    background: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.3;
}

a {
    color: #e2ae69;
    text-decoration: none;
    transition: color .3s ease-in-out;
}

a:hover {
    color: #404040;
}

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

/* ===========================
   ШАПКА
   =========================== */

.site-header {
    background: #fff;
    border-bottom: none;
    text-align: center;
    position: relative;
    padding: 1em 0 0;
}

.site-header .container {
    position: relative;
}

.logo {
    text-align: center;
    padding: 0 0 0.5em;
}

.logo h1 {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #404040;
}

.logo-subtitle {
    font-size: 13px;
    color: #b9b9b9;
    letter-spacing: 1px;
    border-top: 3px solid #e2ae69;
    display: inline-block;
    padding-top: 0.5em;
    margin-bottom: 1em;
}

/* ===========================
   НАВИГАЦИЯ
   =========================== */

.site-nav {
    width: 100%;
    border-top: 1px solid #ededed;
    border-bottom: 1px solid #ededed;
    margin-top: 1em;
}

.site-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    padding: 0;
    margin: 0;
}

.site-nav ul li,
.site-nav ul li.active {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.site-nav ul li a,
.site-nav ul li.active a {
    display: block;
    padding: 0.6em 1.2em;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #404040;
    transition: color .3s ease-in-out;
    line-height: 1;
    margin: 0;
    border: none;
}

.site-nav ul li a:hover,
.site-nav ul li.active a {
    color: #e2ae69;
}

/* ===========================
   ОСНОВНОЙ КОНТЕНТ
   =========================== */

.hero-section {
    padding: 3em 0;
}

.hero-section h2 {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 0.5em;
    position: relative;
    display: inline-block;
}

.hero-section h2::after {
    content: "";
    display: block;
    height: 3px;
    width: 40%;
    background: #e2ae69;
    margin-top: 0.4em;
}

.hero-section p {
    margin-bottom: 1.2em;
    color: #404040;
}

.services-list {
    list-style: disc;
    margin: 1em 0 1.5em 2em;
    line-height: 2;
}

.services-list li {
    margin-bottom: 0.5em;
}

/* ===========================
   ФУТЕР
   =========================== */

.site-footer {
    border-top: 3px solid #ededed;
    padding: 2em 0;
    text-align: center;
    font-size: 13px;
    color: #b9b9b9;
    margin-top: 3em;
}

/* ===========================
   АДАПТИВ
   =========================== */

@media (max-width: 768px) {
    .logo h1 {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .header-location {
        align-self: center;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .hero-section {
        padding: 2em 0;
    }

    .site-header .container {
        padding-right: 20px;
    }
}

.img-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
    margin: 1.5em 0;
}

.img-grid img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .img-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .img-grid {
        grid-template-columns: 1fr;
    }
}

.site-nav ul li::before {
    content: none !important;
    display: none !important;
}

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

#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

#lightbox.active {
  display: flex;
}

#lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}