/* ===== Фотостудия ПОРТАЛ ===== */
:root {
  --bg: #0b0b0d;
  --bg-alt: #121215;
  --panel: #17171b;
  --line: #26262c;
  --text: #f4f3ef;
  --muted: #a3a3ab;
  --accent: #e0aa4b;
  --accent-strong: #f0c268;
  --radius: 18px;
  --font-head: "Unbounded", "Arial Black", sans-serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

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

h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.15; }
h2 { font-size: clamp(26px, 4vw, 42px); }
h3 { font-size: 18px; font-weight: 400; }

/* ===== Header ===== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(11, 11, 13, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }

.logo {
  font-family: var(--font-head); font-weight: 600; font-size: 22px;
  letter-spacing: .14em; text-decoration: none; color: var(--text);
}
.logo__o { color: var(--accent); }

.nav { display: flex; gap: 28px; }
.nav a {
  text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600;
  letter-spacing: .04em; transition: color .2s;
}
.nav a:hover { color: var(--text); }

.header__actions { display: flex; align-items: center; gap: 18px; }
.header__phone { text-decoration: none; font-weight: 700; font-size: 15px; color: var(--text); white-space: nowrap; }
.header__phone:hover { color: var(--accent-strong); }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .25s, opacity .25s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 15px 30px; border-radius: 12px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: transform .15s, background .2s, color .2s, border-color .2s;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 10px 20px; font-size: 14px; border-radius: 10px; }
.btn--accent { background: var(--accent); color: #14100a; }
.btn--accent:hover { background: var(--accent-strong); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn--dark { background: #14100a; color: var(--text); }
.btn--dark:hover { background: #241c10; }
.btn--outline-dark { background: transparent; color: #14100a; border-color: rgba(20, 16, 10, .45); }
.btn--outline-dark:hover { border-color: #14100a; }

/* ===== Hero ===== */
.hero { padding: 150px 0 60px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -220px; left: -160px; width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(224, 170, 75, .13), transparent 65%);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero__kicker {
  color: var(--accent); font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  font-size: 12px; margin-bottom: 20px;
}
.hero__title { font-size: clamp(32px, 5.2vw, 60px); margin-bottom: 24px; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__text { color: var(--muted); max-width: 480px; margin-bottom: 32px; font-size: 17px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__media { position: relative; }
.hero__media img {
  border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%;
}
.hero__badge {
  position: absolute; left: -24px; bottom: 28px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 20px; display: flex; flex-direction: column; box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.hero__badge-num { font-family: var(--font-head); font-size: 24px; color: var(--accent); }
.hero__badge-label { font-size: 12px; color: var(--muted); }

.facts {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--line);
}
.facts li { display: flex; flex-direction: column; gap: 6px; }
.facts__num { font-family: var(--font-head); font-size: 30px; color: var(--accent); }
.facts__label { color: var(--muted); font-size: 14px; }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 34px; }
.section__num { font-family: var(--font-head); color: var(--accent); font-size: 15px; }
.section__lead { color: var(--muted); max-width: 780px; margin-bottom: 44px; font-size: 17px; }
.section__cta { margin-top: 44px; text-align: center; }
.section__cta--left { text-align: left; margin-top: 28px; }

/* ===== Cards (advantages) ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: #3a3a42; }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.045); }
.card h3 { padding: 22px 22px 10px; }
.card p { padding: 0 22px 24px; color: var(--muted); font-size: 15px; }

/* ===== Halls ===== */
.halls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hall { border-radius: var(--radius); overflow: hidden; position: relative; }
.hall__media { aspect-ratio: 3 / 4; }
.hall__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.hall:hover .hall__media img { transform: scale(1.05); }
.hall__body {
  position: absolute; inset: auto 0 0 0; padding: 26px 24px 24px;
  background: linear-gradient(transparent, rgba(8, 8, 10, .92) 55%);
}
.hall__body h3 { margin-bottom: 8px; color: #fff; }
.hall__body p { color: #cfcfd4; font-size: 14px; }

/* ===== Gallery ===== */
.filter { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.filter__btn {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  padding: 9px 20px; border-radius: 999px; font-family: var(--font-body);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.filter__btn:hover { color: var(--text); border-color: #3a3a42; }
.filter__btn.is-active { background: var(--accent); border-color: var(--accent); color: #14100a; }

.masonry { columns: 3 300px; column-gap: 18px; }
.masonry__item {
  display: block; margin-bottom: 18px; border-radius: 14px; overflow: hidden;
  break-inside: avoid; position: relative;
}
.masonry__item img { width: 100%; transition: transform .5s, filter .3s; }
.masonry__item:hover img { transform: scale(1.03); filter: brightness(1.07); }
.masonry__item.is-hidden { display: none; }

/* ===== Equipment ===== */
.equipment { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.equipment__media { position: sticky; top: 96px; border-radius: var(--radius); overflow: hidden; }
.equipment__media img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }

.eq { border-bottom: 1px solid var(--line); }
.eq summary {
  display: flex; align-items: center; gap: 18px; padding: 20px 4px;
  cursor: pointer; list-style: none; font-family: var(--font-head);
  font-size: 16px; transition: color .2s;
}
.eq summary::-webkit-details-marker { display: none; }
.eq summary:hover { color: var(--accent-strong); }
.eq__num { color: var(--accent); font-size: 13px; }
.eq__toggle { margin-left: auto; width: 14px; height: 14px; position: relative; flex-shrink: 0; }
.eq__toggle::before, .eq__toggle::after {
  content: ""; position: absolute; background: var(--muted); transition: transform .25s;
}
.eq__toggle::before { inset: 6px 0; }
.eq__toggle::after { inset: 0 6px; }
.eq[open] .eq__toggle::after { transform: scaleY(0); }
.eq ul { list-style: none; padding: 0 4px 22px 47px; color: var(--muted); font-size: 15px; }
.eq ul li { padding: 4px 0; position: relative; }
.eq ul li::before { content: "—"; color: var(--accent); margin-right: 10px; }

/* ===== Rules ===== */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rule {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: border-color .25s;
}
.rule:hover { border-color: #3a3a42; }
.rule h3 { margin-bottom: 10px; font-size: 16px; color: var(--accent-strong); }
.rule p { color: var(--muted); font-size: 15px; }
.rule a { color: var(--accent-strong); }

/* ===== Banner ===== */
.banner { background: linear-gradient(120deg, var(--accent), #c98f35); color: #14100a; }
.banner__inner { padding: 70px 24px; text-align: center; }
.banner h2 { margin-bottom: 12px; }
.banner p { font-size: 17px; margin-bottom: 30px; opacity: .85; }
.banner__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Contacts ===== */
.contacts { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; }
.contacts__info dl { display: flex; flex-direction: column; gap: 26px; }
.contacts__info dt {
  font-size: 12px; text-transform: uppercase; letter-spacing: .18em;
  color: var(--muted); margin-bottom: 6px;
}
.contacts__info dd { font-size: 19px; font-weight: 600; }
.contacts__info dd a { text-decoration: none; }
.contacts__info dd a:hover { color: var(--accent-strong); }
.contacts__map { border-radius: var(--radius); overflow: hidden; min-height: 380px; }
.contacts__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); padding: 46px 0; background: var(--bg-alt); }
.footer__inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; align-items: start; }
.logo--footer { font-size: 18px; }
.footer__brand p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.footer__legal { display: flex; flex-direction: column; gap: 10px; }
.footer__legal a { color: var(--muted); font-size: 14px; text-decoration: none; }
.footer__legal a:hover { color: var(--text); }
.footer__req { color: var(--muted); font-size: 13px; text-align: right; }
.footer__req p { margin: 2px 0; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(5, 5, 6, .93);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 90vw; max-height: 88vh; border-radius: 10px; object-fit: contain; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  font-size: 40px; line-height: 1; padding: 14px; opacity: .7; transition: opacity .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { opacity: 1; }
.lightbox__close { top: 16px; right: 22px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 60px; }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Legal pages ===== */
.legal { padding: 130px 0 80px; }
.legal h1 { font-size: clamp(24px, 3.6vw, 38px); margin-bottom: 14px; }
.legal__meta { color: var(--muted); margin-bottom: 44px; }
.legal h2 { font-size: 20px; margin: 40px 0 14px; }
.legal p { color: #c9c9cf; margin: 10px 0; font-size: 15px; }
.legal a { color: var(--accent-strong); }
.legal__back { display: inline-block; margin-bottom: 34px; color: var(--muted); text-decoration: none; font-weight: 600; }
.legal__back:hover { color: var(--text); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__media img { aspect-ratio: 16 / 11; }
  .hero__badge { left: 16px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .cards, .halls, .rules { grid-template-columns: 1fr 1fr; }
  .equipment { grid-template-columns: 1fr; }
  .equipment__media { position: static; max-width: 480px; }
  .contacts { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__req { text-align: left; }
}
@media (max-width: 760px) {
  .nav {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column;
    background: rgba(11, 11, 13, .97); padding: 24px; gap: 20px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .3s; z-index: 90;
  }
  .nav.is-open { transform: none; }
  .nav a { font-size: 17px; }
  .burger { display: block; }
  .header__phone { display: none; }
  .hero { padding-top: 120px; }
  .hero__grid > * { min-width: 0; }
  .hero__title { font-size: clamp(19px, 6.3vw, 30px); }
  .hero__text { font-size: 16px; }
  .cards, .halls, .rules { grid-template-columns: 1fr; }
  .facts { gap: 16px; }
  .facts__num { font-size: 24px; }
}
