@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --black: #000;
  --white: #fff;
  --ink: #111;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --dark-line: #2a2a2c;
  --surface: #f5f5f7;
  --sans: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --transition: 500ms cubic-bezier(.22,.61,.36,1);
  --shadow: none;
  --primary-color: #111;
  --primary-dark: #111;
  --primary-light: #6e6e73;
  --accent-color: #111;
  --text-light: #1d1d1f;
  --text-lighter: #fff;
  --text-muted: #6e6e73;
  --bg-dark: #000;
  --bg-card: #fff;
  --bg-card-hover: #fff;
  --border-color: #d2d2d7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--white); font-family: var(--sans); font-size: 15px; line-height: 1.55; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(100% - 48px, 1320px); margin: 0 auto; }

/* Navigation */
.site-header { position: sticky; top: 0; z-index: 100; height: 52px; background: rgba(0,0,0,.88); border-bottom: 1px solid var(--dark-line); backdrop-filter: saturate(180%) blur(20px); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.logo::before { content: '●'; font-size: 9px; }
.logo h1, .logo p { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: -.01em; text-transform: uppercase; }
.logo p { display: none; }
.site-nav ul { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2.4vw, 38px); margin: 0; padding: 0; list-style: none; }
.site-nav a { color: #f5f5f7; font-size: 11px; font-weight: 500; text-decoration: none; white-space: nowrap; opacity: .9; transition: opacity var(--transition); }
.site-nav a:hover, .site-nav a.active { opacity: 1; }

/* Home: cinematic product story */
.home .hero-about-wrapper { background: var(--black); }
.hero { position: relative; min-height: calc(100vh - 52px); display: flex; align-items: flex-end; overflow: hidden; text-align: left; background: #000 url('images/hero-bg.JPG') 58% center / cover no-repeat; isolation: isolate; }
.hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.3) 64%, rgba(0,0,0,.06)); }
.hero .container { position: relative; z-index: 1; padding: clamp(52px, 8vw, 112px) 0; }
.eyebrow, .hero h2 { margin: 0 0 19px; color: #a1a1a6; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { max-width: 850px; margin: 0; color: var(--white); font-size: clamp(62px, 9vw, 132px); font-weight: 700; line-height: .88; letter-spacing: -.075em; }
.hero p { max-width: 430px; margin: 28px 0 0; color: #f5f5f7; font-size: clamp(16px, 1.5vw, 20px); letter-spacing: -.025em; }
.hero .hero-link, .btn { display: inline-flex; align-items: center; gap: 9px; margin-top: 26px; padding: 14px 22px; color: var(--white); background: var(--black); border-radius: 980px; font-size: 18px; font-weight: 600; line-height: 1; text-decoration: none; }
.hero .hero-link { color: var(--black); background: var(--white); }
.hero .hero-link::after, .btn::after { content: '→'; transition: transform var(--transition); }
.hero .hero-link:hover::after, .btn:hover::after { transform: translateX(4px); }
.hero::after { display: none; }

.about { padding: clamp(95px, 14vw, 190px) 0; color: var(--ink); background: var(--white); }
.about .container { max-width: 1020px; }
.about h3, .content-section h2 { margin: 0 0 24px; color: var(--muted); font-size: 17px; font-weight: 600; letter-spacing: -.035em; }
.about-content { max-width: 1000px; font-size: clamp(36px, 5vw, 68px); font-weight: 600; line-height: 1.05; letter-spacing: -.06em; }
.about-content p { margin: 0 0 .38em; }
.highlight { color: var(--muted); font-weight: inherit; }
.btn-center { margin-top: 32px; }
.about .btn, .content-section--light .btn { color: var(--white); }

.home .content-section { padding: clamp(70px, 9vw, 125px) 0; background: var(--surface); color: var(--ink); }
.home .content-section .container { width: min(100% - 48px, 1440px); }
.home .content-section h2 { margin-bottom: 36px; color: var(--ink); font-size: clamp(48px, 6vw, 82px); font-weight: 700; line-height: .95; letter-spacing: -.065em; }
.spectacle-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.spectacle-item { position: relative; min-height: clamp(330px, 42vw, 570px); display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; overflow: hidden; color: var(--white); border-radius: 22px; background: #151515; background-size: cover !important; background-position: center !important; isolation: isolate; transition: transform var(--transition); }
.spectacle-item::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.02) 30%, rgba(0,0,0,.82) 100%); }
.spectacle-item:hover { transform: scale(1.008); }
.spectacle-item { cursor: pointer; }
.spectacle-item::before { backdrop-filter: grayscale(1); }
.spectacle-item h3 { max-width: 440px; margin: 0; font-size: clamp(30px, 3.6vw, 56px); font-weight: 700; line-height: .98; letter-spacing: -.055em; }
.spectacle-item h3 a { text-decoration: none; }
.spectacle-item h3 a::after { display: none; }
.spectacle-item p { margin: 13px 0 0; color: #f5f5f7; font-size: 13px; }
.home .spectacle-item:nth-child(1) { background-image: url('perm/images/bs1.jpg'); }
.home .spectacle-item:nth-child(2) { background-image: url('perm/images/sto1.jpg'); }
.home .spectacle-item:nth-child(3) { background-image: url('perm/images/konf1.jpg'); }
.home .spectacle-item:nth-child(4) { background-image: url('perm/images/les1.jpg'); }
.home .btn-center { text-align: center; }

.site-description { padding: clamp(92px, 14vw, 190px) 0; background: var(--black); color: var(--white); text-align: center; }
.description-content { max-width: 1080px; margin: 0 auto; font-size: clamp(43px, 6.5vw, 96px); font-weight: 700; line-height: .94; letter-spacing: -.07em; }
.description-content p { margin: 0; }
.site-description .btn {
  display: inline-flex !important;
  min-width: 190px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 26px;
  color: var(--black);
  background: var(--white);
  font-family: var(--sans) !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap;
  text-indent: 0;
}

/* Biography, contacts and theatre catalogue */
body:not(.home) .content-section { padding: clamp(64px, 9vw, 130px) 0; color: var(--ink); background: var(--white); }
body:not(.home) .content-section:nth-of-type(even) { background: var(--surface); }
body:not(.home) .content-section + .content-section { padding-top: 26px; }
body:not(.home) .content-section > .container > h2 { max-width: 1000px; margin-bottom: 52px; color: var(--ink); font-size: clamp(50px, 8vw, 112px); font-weight: 700; line-height: .88; letter-spacing: -.075em; }
body:not(.home) .spectacle-list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
body:not(.home) .spectacle-item { min-height: 390px; padding: 23px; }
body:not(.home) .spectacle-item::after { content: 'Открыть'; position: absolute; top: 20px; left: 22px; color: var(--white); font-size: 11px; font-weight: 600; opacity: 0; transition: opacity var(--transition); }
body:not(.home) .spectacle-item:hover::after { opacity: 1; }
body:not(.home) .spectacle-item h3 { font-size: clamp(28px, 2.4vw, 42px); }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; margin: 36px 0 54px !important; }
.gallery img { width: 100%; height: 100%; min-height: 290px; object-fit: cover; border-radius: 18px !important; box-shadow: none !important; filter: none; transition: transform var(--transition), filter var(--transition); }
.gallery img:nth-child(1), .gallery img:nth-child(4n) { grid-column: span 7; }
.gallery img:nth-child(2), .gallery img:nth-child(3) { grid-column: span 5; }
.gallery img:hover { filter: none; transform: scale(1.008); }
.bio-hero { position: relative; min-height: min(670px, 80vh); display: flex; align-items: flex-end; overflow: hidden; padding: 64px 0; color: var(--white); background: var(--black); isolation: isolate; }
.bio-hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.86), rgba(0,0,0,.15)), url('images/ka2.JPG') center 32% / cover no-repeat; filter: grayscale(1) contrast(1.08); }
.bio-hero .container { position: relative; z-index: 1; }
.bio-hero h1 { max-width: 850px; margin: 0; font-size: clamp(58px, 9vw, 128px); font-weight: 700; line-height: .88; letter-spacing: -.075em; }
.bio-hero p { max-width: 460px; margin: 25px 0 0; color: #e8e8ed; font-size: 18px; }
.bio-story { padding: clamp(80px, 12vw, 170px) 0; color: var(--ink); background: var(--white); }
.bio-story .container { max-width: 960px; }
.bio-story h2 { max-width: 900px; margin: 0 0 46px; font-size: clamp(40px, 5.5vw, 76px); font-weight: 700; line-height: .96; letter-spacing: -.065em; }
.bio-story p { max-width: 740px; margin: 0 0 1.3em; color: var(--muted); font-size: 17px; line-height: 1.75; }
.bio-facts { padding: clamp(70px, 10vw, 130px) 0; color: var(--white); background: var(--black); }
.bio-facts h2 { margin: 0 0 50px; font-size: clamp(42px, 6vw, 84px); font-weight: 700; line-height: .9; letter-spacing: -.07em; }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--dark-line); }
.fact { min-height: 210px; padding: 24px 28px 24px 0; border-right: 1px solid var(--dark-line); }
.fact:not(:first-child) { padding-left: 28px; }
.fact:last-child { border-right: 0; }
.fact strong { display: block; margin-bottom: 10px; font-size: clamp(48px, 5vw, 78px); font-weight: 700; line-height: .85; letter-spacing: -.075em; }
.fact span { color: #a1a1a6; font-size: 14px; }
.spectacle-hero { position: relative; min-height: min(650px, 78vh); display: flex; align-items: flex-end; overflow: hidden; padding: 62px 0; color: var(--white); background: var(--black); isolation: isolate; }
.spectacle-hero img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); }
.spectacle-hero::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.85), rgba(0,0,0,.18) 72%, rgba(0,0,0,.05)); }
.spectacle-hero h1 { max-width: 950px; margin: 0; font-size: clamp(54px, 8vw, 116px); font-weight: 700; line-height: .88; letter-spacing: -.075em; }
.spectacle-hero p { max-width: 520px; margin: 23px 0 0; color: #e8e8ed; font-size: 18px; }
.spectacle-detail .content-section > .container > h2:first-child { display: none; }
.spectacle-story { padding: clamp(72px, 10vw, 145px) 0; color: var(--ink); background: var(--white); }
.spectacle-story .container { max-width: 960px; }
.spectacle-story .play-info { margin: 0 0 44px !important; text-align: left !important; }
.spectacle-story .play-info p:first-child { max-width: 760px; }
.spectacle-story .play-description { max-width: 760px; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; }
.spectacle-team { padding: clamp(68px, 9vw, 120px) 0; color: var(--white); background: var(--black); }
.spectacle-team .container { max-width: 960px; }
.spectacle-team .team { max-width: 760px; padding: 0 !important; color: var(--white) !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; }
.spectacle-team .team-title { margin-bottom: 28px; color: var(--white) !important; font-size: clamp(42px, 5vw, 70px) !important; line-height: .9 !important; letter-spacing: -.065em; }
.spectacle-team .team-list p { padding: 15px 0 15px 22px; margin: 0; color: #d2d2d7 !important; border-top: 1px solid var(--dark-line); }
.spectacle-team .team-list p::before { color: var(--white) !important; left: 1px; }
.spectacle-photos { padding: clamp(72px, 10vw, 145px) 0; color: var(--ink); background: var(--surface); }
.spectacle-photos h2 { margin: 0 0 42px; font-size: clamp(48px, 7vw, 96px); font-weight: 700; line-height: .9; letter-spacing: -.07em; }
.spectacle-photos .gallery { display: grid !important; grid-template-columns: repeat(12, minmax(0, 1fr)) !important; gap: 14px !important; margin: 0 !important; }
.spectacle-video { padding: clamp(72px, 10vw, 145px) 0; color: var(--white); background: var(--black); }
.spectacle-video h2 { margin: 0 0 42px; font-size: clamp(48px, 7vw, 96px); font-weight: 700; line-height: .9; letter-spacing: -.07em; }
.spectacle-video video { display: block; width: 100%; max-height: 78vh; border-radius: 18px; background: #111; }
.spectacle-photo-tile { position: relative; min-height: 330px; margin: 0; grid-column: span 4; overflow: hidden; border-radius: 18px; background: #111; }
.spectacle-photo-tile:nth-child(4n+1) { grid-column: span 7; min-height: 510px; }
.spectacle-photo-tile:nth-child(4n+2) { grid-column: span 5; min-height: 350px; }
.spectacle-photo-tile:nth-child(4n+3) { grid-column: span 5; min-height: 370px; }
.spectacle-photo-tile:nth-child(4n) { grid-column: span 7; min-height: 400px; }
.spectacle-photo-tile img { width: 100%; height: 100%; min-height: 100% !important; object-fit: cover; border-radius: 0 !important; }
.spectacle-photo-tile::after { content: ''; position: absolute; z-index: 1; inset: 45% 0 0; pointer-events: none; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.spectacle-photo-tile figcaption { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 18px; color: var(--white); font-size: clamp(22px, 2.3vw, 34px); font-weight: 700; letter-spacing: -.06em; line-height: 1; }
.description-wrapper { display: grid !important; grid-template-columns: minmax(265px, .72fr) minmax(0, 1.28fr) !important; gap: 14px !important; margin-top: 35px !important; align-items: start !important; }
.play-info { max-width: 800px; margin: 32px auto 54px !important; text-align: center !important; }
.play-info p:first-child { color: var(--ink) !important; font-size: clamp(34px, 5vw, 64px) !important; font-weight: 700 !important; letter-spacing: -.06em; line-height: .95 !important; }
.play-info p:nth-child(2) { color: var(--muted) !important; font-size: 16px !important; font-style: normal !important; }
.play-description, .team, .achievements, .contact-form { padding: 29px !important; color: var(--ink) !important; border: 1px solid var(--line) !important; border-radius: 18px !important; background: var(--white) !important; box-shadow: none !important; }
.play-description { color: var(--muted) !important; font-size: 16px !important; line-height: 1.8 !important; }
.team-title { color: var(--ink) !important; font-size: 21px !important; font-weight: 700 !important; text-align: left !important; }
.team-list p { color: var(--muted) !important; font-size: 14px; }
.team-list p::before { color: var(--ink) !important; }
input, textarea { border-radius: 12px !important; background: var(--white) !important; border-color: var(--line) !important; color: var(--ink) !important; }
button[type='submit'] { border-radius: 980px !important; background: var(--ink) !important; color: var(--white) !important; }

/* Media page */
.media-hero { padding: clamp(90px, 15vw, 185px) 0 70px; background: var(--black); }
.media-hero h1 { max-width: 1120px; margin: 0; font-size: clamp(68px, 12vw, 168px); font-weight: 700; line-height: .82; letter-spacing: -.085em; }
.media-hero p { max-width: 520px; margin: 35px 0 0; color: #a1a1a6; font-size: 18px; letter-spacing: -.025em; }
.media-hero-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 28px; padding: 15px 23px; color: var(--black); background: var(--white); border-radius: 980px; font-size: 17px; font-weight: 600; line-height: 1; text-decoration: none; }
.media-hero-link::after { content: '↓'; transition: transform var(--transition); }
.media-hero-link:hover::after { transform: translateY(4px); }
.media-section { padding: clamp(70px, 10vw, 130px) 0; color: var(--ink); background: var(--white); }
.media-section h2 { margin: 0 0 42px; font-size: clamp(52px, 7vw, 100px); font-weight: 700; line-height: .9; letter-spacing: -.07em; }
.media-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.media-tile { position: relative; min-height: 330px; grid-column: span 4; overflow: hidden; border-radius: 18px; background: #111; }
.media-tile:nth-child(9n+1) { grid-column: span 7; min-height: 540px; }
.media-tile:nth-child(9n+2) { grid-column: span 5; min-height: 360px; }
.media-tile:nth-child(9n+3) { grid-column: span 5; min-height: 420px; }
.media-tile:nth-child(9n+4) { grid-column: span 7; min-height: 390px; }
.media-tile:nth-child(9n+5) { grid-column: span 4; min-height: 300px; }
.media-tile:nth-child(9n+6) { grid-column: span 8; min-height: 480px; }
.media-tile:nth-child(9n+7) { grid-column: span 6; min-height: 360px; }
.media-tile:nth-child(9n+8) { grid-column: span 6; min-height: 360px; }
.media-tile:nth-child(9n) { grid-column: span 12; min-height: 560px; }
.photo-preview { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.media-tile img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; filter: grayscale(1) contrast(1.1); transition: transform var(--transition); }
.media-tile:hover img { transform: scale(1.015); }
.media-tile::after { content: ''; position: absolute; z-index: 1; inset: 35% 0 0; pointer-events: none; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.media-title { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 18px; color: var(--white); font-size: clamp(20px, 2.2vw, 32px); font-weight: 700; letter-spacing: -.05em; line-height: 1; text-decoration: none; }
.media-title:hover { text-decoration: underline; }
.video-placeholder { display: flex; min-height: 330px; align-items: center; justify-content: center; color: var(--white); background: var(--black); border-radius: 20px; text-align: center; }
.video-placeholder div { max-width: 560px; padding: 42px; }
.video-placeholder strong { display: block; margin-bottom: 14px; font-size: clamp(34px, 5vw, 62px); font-weight: 700; line-height: .95; letter-spacing: -.06em; }
.video-placeholder p { margin: 0; color: #a1a1a6; }
.media-video { grid-column: span 7; min-height: 540px; }
.media-video video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; background: #111; }
.media-video .media-title { padding-right: 50px; }

.site-footer { padding: 30px 0; background: var(--black); border-top: 1px solid var(--dark-line); color: #a1a1a6; font-size: 11px; }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer p { margin: 0; }
.social-links { display: flex; gap: 16px; }
.social-links a { color: var(--white); font-size: 16px; }
.fade-in { opacity: 0; transform: translateY(22px); transition: opacity 750ms ease, transform 750ms cubic-bezier(.22,.61,.36,1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.lightbox { display: none; position: fixed; z-index: 200; inset: 0; align-items: center; justify-content: center; background: rgba(0,0,0,.95); }
.lightbox.active { display: flex; }
.lightbox-content { max-width: 90vw; max-height: 88vh; }
.lightbox-img { max-width: 90vw; max-height: 88vh; }
.lightbox-close, .lightbox-prev, .lightbox-next { color: var(--white); background: rgba(0,0,0,.5); border: 1px solid var(--dark-line); cursor: pointer; }
.lightbox-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; font-size: 24px; }
.lightbox-nav { position: absolute; top: 50%; left: 20px; right: 20px; display: flex; justify-content: space-between; }
.lightbox-prev, .lightbox-next { width: 44px; height: 44px; border-radius: 50%; font-size: 26px; }

@media (max-width: 780px) {
  .container, .home .content-section .container { width: min(100% - 32px, 1320px); }
  .site-header { height: auto; min-height: 52px; }
  .site-header .container { min-height: 52px; padding: 10px 0; flex-wrap: wrap; justify-content: center; gap: 9px 18px; }
  .logo { min-width: auto; }
  .site-nav ul { gap: 8px 15px; }
  .site-nav a { font-size: 10px; }
  .hero { min-height: 720px; }
  .hero { background-position: 62% center; }
  .about-content { font-size: clamp(34px, 8.6vw, 58px); }
  .spectacle-list { grid-template-columns: 1fr; }
  .spectacle-item { min-height: 420px; }
  .description-wrapper { grid-template-columns: 1fr !important; }
  .gallery img:nth-child(n) { grid-column: span 6; min-height: 210px; }
  .gallery img:nth-child(1), .gallery img:nth-child(4n) { grid-column: span 12; }
  .media-tile, .media-tile:nth-child(n) { grid-column: span 12; min-height: 290px; }
  .media-tile img { min-height: 290px; }
  .fact-grid { grid-template-columns: 1fr; }
  .fact, .fact:not(:first-child) { min-height: auto; padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--dark-line); }
  .spectacle-photo-tile, .spectacle-photo-tile:nth-child(n) { grid-column: span 12; min-height: 290px; }
}
