*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --font-heading: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 40px;
  --radius-card: 28px;
  --transition: 0.3s ease;
}
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
.container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* Header */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  padding: 1rem 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header__inner { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 45px; }
.nav__list { display: flex; list-style: none; gap: 2rem; font-weight: 500; }
.nav__list a { transition: color 0.2s; padding: 0.5rem 0; }
.nav__list a:hover { color: var(--accent); }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.burger span { width: 25px; height: 3px; background: var(--heading); border-radius: 3px; }

/* Footer */
.footer {
  background: #2B2B28; color: #fff; padding: 4rem 0 2rem; margin-top: 4rem;
}
.footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 2rem; }
.footer__col h4 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 1rem; }
.footer__col p, .footer__col a { margin-bottom: 0.5rem; color: rgba(255,255,255,0.8); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.2); padding-top: 2rem; display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.footer__bottom a { color: inherit; }

/* Кнопки */
.btn {
  display: inline-block; padding: 0.9rem 2.2rem; border-radius: var(--radius);
  font-weight: 600; text-align: center; transition: all var(--transition);
  border: none; cursor: pointer; font-size: 1rem;
}
.btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 15px var(--accent-shadow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px var(--accent-shadow); }
.btn--outline {
  border: 2px solid var(--accent); color: var(--accent); background: transparent;
}
.btn--outline:hover { background: var(--accent); color: #fff; }
.btn--accent { background: var(--accent); color: #fff; }

/* Hero общий */
.hero {
  position: relative; height: 100vh; min-height: 600px; display: flex; align-items: center; overflow: hidden;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 70%); } /* слева затемнение для текста */
.hero__content { position: relative; z-index: 2; max-width: 600px; margin-left: 0; text-align: left; }
.hero__title {
  font-family: var(--font-heading); font-size: 4.5rem; line-height: 1; margin-bottom: 1rem;
  color: #fff; text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.hero__subtitle {
  font-size: 1.3rem; margin-bottom: 2rem; color: rgba(255,255,255,0.9);
}
.hero__btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Секции */
.section { padding: 5rem 0; }
.section-title { font-family: var(--font-heading); font-size: 3.5rem; text-align: center; margin-bottom: 3rem; color: var(--heading); line-height: 1.1; }

/* Карточки преимуществ */
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.why__item {
  background: var(--bg-secondary); padding: 2rem; border-radius: var(--radius-card);
  box-shadow: 0 5px 20px rgba(0,0,0,0.03); font-size: 1.1rem;
  color: var(--text);
}

/* Галерея */
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.5rem; }
.gallery__item { border-radius: var(--radius-card); overflow: hidden; cursor: pointer; transition: transform 0.3s; }
.gallery__item:hover { transform: scale(1.03); }

/* Портфолио */
.portfolio__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 2rem; }
.portfolio__item {
  background: #fff; border-radius: 32px; overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.04); transition: transform 0.3s; cursor: pointer;
}
.portfolio__item:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
.portfolio__item img { width: 100%; height: 220px; object-fit: cover; }
.portfolio__item h3 { padding: 1rem 1.5rem 0; font-size: 1.4rem; color: var(--heading); }
.portfolio__item p { padding: 0.5rem 1.5rem 1.5rem; color: var(--text-secondary); font-size: 0.95rem; }

/* Табы */
.tabs { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; }
.tab-btn {
  padding: 0.8rem 2rem; border-radius: 30px; border: 1px solid #ddd;
  background: var(--bg-secondary); cursor: pointer; font-weight: 600; transition: 0.2s;
  color: var(--text);
}
.tab-btn.active, .tab-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Модальное окно */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: flex;
  align-items: center; justify-content: center; z-index: 300; opacity: 0; visibility: hidden;
  transition: 0.3s;
}
.modal.active { opacity: 1; visibility: visible; }
.modal__body { background: #fff; border-radius: 32px; padding: 2rem; max-width: 500px; width: 90%; position: relative; }
.modal__close { position: absolute; top: 1rem; right: 1.5rem; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* Попап (исправленный) */
.popup {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex;
  justify-content: center; align-items: center; opacity: 0; visibility: hidden;
  transition: 0.3s; z-index: 200;
}
.popup.active { opacity: 1; visibility: visible; }
.popup__body {
  background: #fff; border-radius: 32px; padding: 2.5rem; width: 90%; max-width: 500px;
  position: relative; max-height: 90vh; overflow-y: auto; color: #333;
}
.popup__close { position: absolute; top: 1rem; right: 1.5rem; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #999; }
input, select, textarea {
  width: 100%; padding: 0.9rem 1rem; border: 1px solid #ddd; border-radius: 16px;
  font-size: 1rem; font-family: var(--font-body); margin-bottom: 1rem; transition: border-color 0.2s;
  background: #fff; color: #000;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
.checkbox { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; margin: 0.5rem 0 1rem; color: #333; }
.checkbox input { width: auto; margin: 0; }

/* Плавающие элементы */
.floating-request-btn {
  position: fixed; bottom: 2rem; right: 2rem; background: var(--accent); color: #fff;
  border: none; border-radius: 50px; padding: 1rem 2rem; font-weight: 600; cursor: pointer;
  box-shadow: 0 8px 20px var(--accent-shadow); z-index: 150;
}
.floating-banana {
  position: fixed; bottom: 2rem; left: 2rem; font-size: 2.5rem; z-index: 150; animation: float 3s infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 768px) {
  .nav__list { display: none; flex-direction: column; position: absolute; top: 80px; left: 0; width: 100%; background: #fff; padding: 2rem; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
  .nav__list.active { display: flex; }
  .burger { display: flex; }
  .why__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 2.5rem; }
  .hero { justify-content: center; }
  .hero__content { text-align: center; margin: 0 auto; }
  .hero__btns { justify-content: center; }
}
