:root {
  --bg: #0d0d0d;
  --card: #1a1a1a;
  --text: #e0e0e0;
  --text-muted: #a0a0a0;
  --accent: #ff6b35;
  --accent-hover: #ff8555;
  --border: #2a2a2a;
  --radius: 12px;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 72px;
  display: flex;
  flex-direction: column;
}

body > section,
body > main,
body > .container {
  flex-shrink: 0;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width var(--transition);
}

.nav__link:hover {
  color: var(--text);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link.active {
  color: var(--accent);
}

.nav__link.active::after {
  width: 100%;
}

/* ===== Burger ===== */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  z-index: 1100;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.burger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  position: relative;
  background: transparent;
}

.hero__inner {
  max-width: 800px;
}

.hero__title {
  margin-bottom: 24px;
  color: var(--text);
}

.hero__title span {
  color: var(--accent);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* ===== Hero entrance animation ===== */
.hero__title,
.hero__subtitle,
.hero__buttons {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s ease forwards;
}

.hero__subtitle { animation-delay: 0.2s; }
.hero__buttons  { animation-delay: 0.4s; }

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background-color: var(--accent);
  color: #0d0d0d;
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 36px;
  border-radius: var(--radius);
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-align: center;
}

.btn:hover {
  background-color: var(--accent-hover);
  color: #0d0d0d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.btn--block {
  display: block;
  width: 100%;
}

/* ===== Portfolio ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.portfolio-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 53, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.portfolio-card__title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.portfolio-card__genre {
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

/* ===== Portfolio filter menu ===== */
.portfolio-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.portfolio-filter__btn {
  background-color: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 999px;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.portfolio-filter__btn:hover {
  border-color: rgba(255, 107, 53, 0.5);
  color: var(--text);
  transform: translateY(-2px);
}

.portfolio-filter__btn.active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #0d0d0d;
}

/* ===== Booking form ===== */
.booking-form {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.booking-form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.booking-form__group--full {
  grid-column: 1 / -1;
}

.booking-form label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  background-color: #111;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.booking-form textarea {
  resize: vertical;
  min-height: 120px;
}

.booking-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  padding-right: 44px;
}

.booking-form .btn {
  grid-column: 1 / -1;
  padding: 18px 36px;
  font-size: 1.05rem;
  margin-top: 8px;
}

/* ===== News list ===== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left var(--transition);
}

.news-item:first-child {
  border-top: 1px solid var(--border);
}

.news-item:hover {
  padding-left: 12px;
}

.news-item__date {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 100px;
  padding-top: 4px;
}

.news-item__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  transition: color var(--transition);
}

.news-item:hover .news-item__title {
  color: var(--accent);
}

.news-item__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ===== Contacts ===== */
.contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.contacts__socials {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.contacts__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition), color var(--transition);
}

.contacts__social:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #0d0d0d;
  transform: translateY(-3px);
}

.contacts__social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1rem;
}

.contacts__info a {
  color: var(--text);
  transition: color var(--transition);
}

.contacts__info a:hover {
  color: var(--accent);
}

/* ===== Footer ===== */
.footer {
  margin-top: auto;
  background-color: #0a0a0a;
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
}

.footer__copy {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===== Section title ===== */
.section-title {
  text-align: center;
  margin: 80px 0 48px;
  scroll-margin-top: 100px;
}

.hero .section-title,
h1.section-title {
  margin-top: 0;
}

.section-title span {
  color: var(--accent);
}

/* ===== Page intro ===== */
.page-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* ===== Hero buttons ===== */
.hero__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ===== Outline button ===== */
.btn--outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 14px 34px;
}

.btn--outline:hover {
  background-color: var(--accent);
  color: #0d0d0d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
}

/* ===== CTA section ===== */
.cta {
  text-align: center;
  padding: 80px 24px;
}

.cta h2 {
  margin-bottom: 32px;
}

.cta .btn {
  margin: 0 auto;
}

/* ===== Card headings inside portfolio-card ===== */
.portfolio-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.portfolio-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Portfolio section spacing ===== */
.portfolio-section {
  margin-bottom: 80px;
}

/* ===== Custom audio player ===== */
.player {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #111;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  transition: border-color var(--transition);
}

.player:hover {
  border-color: rgba(255, 107, 53, 0.4);
}

.player audio {
  display: none;
}

.player__btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition), transform var(--transition);
}

.player__btn:hover {
  background-color: var(--accent-hover);
  transform: scale(1.05);
}

.player__btn:active {
  transform: scale(0.95);
}

.player__icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
}

.player__icon--pause {
  display: none;
}

.player.playing .player__icon--play {
  display: none;
}

.player.playing .player__icon--pause {
  display: block;
}

.player__progress {
  flex: 1;
  height: 6px;
  background-color: #2a2a2a;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.player__progress-bar {
  height: 100%;
  width: 0%;
  background-color: var(--accent);
  border-radius: 3px;
  transition: width 0.1s linear;
}

.player__time {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 80px;
  text-align: right;
}

/* ===== Volume control ===== */
.player__volume {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.player__mute {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--transition);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.player__mute:hover {
  color: var(--accent);
}

.player__mute svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.player__mute.muted {
  color: var(--accent);
  opacity: 0.6;
}

.player__volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 4px;
  background: #2a2a2a;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  transition: background var(--transition);
}

.player__volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
}

.player__volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--accent-hover);
}

.player__volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
}

.player__volume-slider::-moz-range-track {
  background: #2a2a2a;
  height: 4px;
  border-radius: 2px;
}

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Floating gradient background ===== */
body::before,
body::after {
  content: '';
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  will-change: transform;
}

body::before {
  width: 600px;
  height: 600px;
  top: -200px;
  left: -150px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.6), transparent 70%);
  animation: floatGradient1 25s ease-in-out infinite;
}

body::after {
  width: 500px;
  height: 500px;
  bottom: -150px;
  right: -100px;
  background: radial-gradient(circle, rgba(180, 40, 20, 0.5), transparent 70%);
  animation: floatGradient2 30s ease-in-out infinite;
}

@keyframes floatGradient1 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(120px, 80px) scale(1.1); }
  66%  { transform: translate(60px, 160px) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes floatGradient2 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-100px, -60px) scale(1.05); }
  66%  { transform: translate(-40px, -140px) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none;
  }
}

/* ===== Spacing before footer ===== */
main > section:last-of-type,
body > section:last-of-type {
  padding-bottom: 100px;
}

body > .container:last-of-type {
  padding-bottom: 100px;
}

/* ===== Media queries ===== */
@media (max-width: 768px) {
  body {
    padding-top: 64px;
  }

  section {
    padding: 60px 0;
  }

  .header__inner {
    height: 64px;
    padding: 0 20px;
  }

  .burger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background-color: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px 24px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__link {
    padding: 14px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
  }

  .nav__link:last-child {
    border-bottom: none;
  }

  .nav__link::after {
    display: none;
  }

  .nav__link.active {
    color: var(--accent);
  }

  .hero {
    min-height: auto;
    padding: 120px 20px 60px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .booking-form {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    gap: 16px;
  }

  .news-item {
    flex-direction: column;
    gap: 8px;
  }

  .news-item__date {
    min-width: auto;
    padding-top: 0;
  }

  body::before,
  body::after {
    filter: blur(80px);
    opacity: 0.25;
  }

  body::before { width: 350px; height: 350px; }
  body::after  { width: 300px; height: 300px; }

  .player__volume {
    display: none;
  }

  main > section:last-of-type,
  body > section:last-of-type,
  body > .container:last-of-type {
    padding-bottom: 60px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  section {
    padding: 48px 0;
  }

  .header__inner {
    padding: 0 16px;
  }

  .logo {
    font-size: 1.05rem;
  }

  .hero {
    padding: 100px 16px 48px;
  }

  .btn {
    padding: 14px 28px;
    font-size: 0.95rem;
  }

  .booking-form {
    padding: 24px 16px;
    border-radius: 8px;
  }

  .contacts__social {
    width: 46px;
    height: 46px;
  }

  .contacts__social svg {
    width: 20px;
    height: 20px;
  }

  .footer {
    padding: 24px 16px;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero__buttons .btn {
    width: 100%;
  }

  .player {
    padding: 6px 10px;
    gap: 8px;
  }

  .player__btn {
    width: 32px;
    height: 32px;
  }

  .player__time {
    font-size: 0.75rem;
    min-width: 68px;
  }

  .portfolio-filter {
    gap: 8px;
    margin-bottom: 32px;
    padding: 0 16px;
  }

  .portfolio-filter__btn {
    font-size: 0.82rem;
    padding: 8px 16px;
  }
}