/* Переменные палитры */
:root {
    --bg-header: #F9F7F5;
    --bg-main: #F2F2F2;
    --text-dark: #2F3E4E;
    --accent-primary: #D85E1C;
    --accent-secondary: #F36F21;
    --border-radius: 12px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Плавный скролл до футера */
}

body {
    background-color: var(--bg-main);
    font-family: 'Segoe UI', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* --- ШАПКА --- */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-header);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    width: 110px;
    height: 80px;
    object-fit: cover;
    border-radius: 0px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 15px;

    width: auto;
    justify-content: flex-start;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-secondary);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #fff !important;
}

.btn-primary:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 111, 33, 0.3);
}

.btn-secondary {
    background-color: var(--text-dark);
    color: #fff !important;
    display: block;
    width: 100%;
    margin-top: 20px;
}

.btn-secondary:hover {
    background-color: var(--accent-primary);
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff !important;
    margin: 20px 0;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* --- ГАЛЕРЕЯ (BENTO GRID) --- */

.page-title {
    font-size: 3rem;
    margin-bottom: 40px;
    text-align: center;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--dark), var(--orange-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 300px;
    grid-auto-flow: dense; /* Умное заполнение пустот */
    gap: 20px;
}

.grid-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.grid-item.wide { grid-column: span 2; }
.grid-item.tall { grid-row: span 2; }

/* Дизайн рамок и эффектов */
.media-frame {
    width: 100%;
    height: 100%;
    position: relative;
    border: 1px solid rgba(0,0,0,0.1);
    transition: var(--transition);
    cursor: pointer;
}

/* "Сложная" рамка через псевдоэлемент */
.media-frame::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 2px solid transparent;
    background: linear-gradient(45deg, var(--orange-bright), transparent) border-box;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: 2;
    opacity: 0;
    transition: var(--transition);
}

.media-frame:hover::before {
    opacity: 1;
    inset: 15px;
}

.media-frame img, .media-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.media-frame:hover img, .media-frame:hover video {
    transform: scale(1.1) rotate(1deg);
}

/* Текстовый оверлей */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(47, 62, 78, 0.9));
    color: white;
    transform: translateY(100%);
    transition: var(--transition);
    z-index: 3;
}

.grid-item:hover .overlay {
    transform: translateY(0);
}

/* --- АНИМАЦИИ ПОЯВЛЕНИЯ --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.reveal {
    animation: fadeInUp 0.8s both;
}

/* Задержка для каждого элемента (имитация очереди) */
.grid-item:nth-child(1) { animation-delay: 0.1s; }
.grid-item:nth-child(2) { animation-delay: 0.2s; }
.grid-item:nth-child(3) { animation-delay: 0.3s; }
.grid-item:nth-child(4) { animation-delay: 0.4s; }
.grid-item:nth-child(5) { animation-delay: 0.5s; }

/* --- ПОДВАЛ (ФУТЕР) --- */
.contacts {
    padding: 80px 10%;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.contact-info .phone {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.bin {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.7;
}
}

.map-container {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .audience-item {
        flex: 1 1 calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-header);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .burger-menu {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .audience-item {
        flex: 1 1 100%;
    }
}
.geo-card {
  background: linear-gradient(135deg, #0b1f3a, #1a2f4a);
  color: white;
  padding: 20px;
  border-radius: 14px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  font-family: Arial, sans-serif;
}

/* верхняя часть */
.geo-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.geo-icon {
  width: 42px;
  height: 42px;
}

/* заголовок */
.geo-header h3 {
  margin: 0;
  font-size: 18px;
  color: #ffffff;
}

.geo-header p {
  margin: 2px 0 0;
  font-size: 13px;
  color: #cfd8e3;
}

/* кнопка */
.geo-button {
  display: block;
  text-align: center;
  padding: 14px 16px;
  background: #d96b2b; /* тёмно-оранжевый */
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  letter-spacing: 0.3px;

  transition: all 0.25s ease;
  box-shadow: 0 6px 15px rgba(217, 107, 43, 0.3);
}

/* анимация при наведении */
.geo-button:hover {
  background: #ff7a33;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255, 122, 51, 0.45);
}

/* эффект "нажатия" */
.geo-button:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(255, 122, 51, 0.3);
}