:root {
  --bg-body: #000000;
  --text-dark: #f3f4f6;
  --text-light: #9ca3af;
  --accent: #f59e0b;
  --gold: #ffcf33;
  --line-height: 1.6;
  --space-before-h2: 10px;
  --space-after-h2: 10px;
  --section-padding: 10px 0;
  --header-offset: 120px;
  --border-radius: 16px;
  --shadow-card: 0 4px 12px rgba(0,0,0,.1);
  --shadow-hover: 0 12px 28px rgba(0,0,0,.3);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-offset); }
body { font-family: 'Poppins', sans-serif; color: var(--text-dark); background-color: var(--bg-body); line-height: var(--line-height); }
h1, h2, h3 { font-family: 'Playfair Display', serif; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.container { width: 90%; max-width: 1200px; margin: auto; padding: 0 15px; }
.flex-col { display: flex; flex-direction: column; }
.gap-24 { gap: 24px; }
.gap-16 { gap: 16px; }
.txt-body { font-size: 1.15rem; line-height: 1.7; color: var(--text-dark); text-align: justify; text-indent: 1.5em; text-justify: inter-word; margin-bottom: 20px; }
.txt-body:last-child { margin-bottom: 0; }
.list-bullet, .list-numbered { margin-bottom: 20px; font-size: 1.05rem; line-height: 1.6; color: var(--text-dark); }
.list-bullet li, .list-numbered li { padding: 8px 0 8px 24px; position: relative; border-bottom: 1px solid rgba(255,255,255,.06); text-align: justify; }
.list-bullet li:last-child, .list-numbered li:last-child { border-bottom: none; }
.list-bullet li::before { content: '•'; position: absolute; left: 4px; color: var(--gold); font-size: 1.2rem; top: 0.3em; }
.neon-title, .logo-wrap .logo-text, nav a, .hero h1, .about-text { color: #fff; text-shadow: 0 0 4px #fff, 0 0 8px #fff, 0 0 16px rgba(212,160,23,.9), 0 0 32px rgba(212,160,23,.6); transition: all .3s ease; }
.neon-title { font-size: clamp(2rem, 3vw, 2.5rem); text-align: center; margin-top: var(--space-before-h2); margin-bottom: var(--space-after-h2); }
.neon-title a { color: #fff; }
.neon-title a:hover { color: var(--gold); text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px rgba(212,160,23,1), 0 0 50px rgba(212,160,23,.8), 0 0 90px rgba(212,160,23,.5); }
.logo-wrap:hover .logo-text, nav a:hover { color: var(--gold); text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px rgba(212,160,23,1), 0 0 50px rgba(212,160,23,.8), 0 0 90px rgba(212,160,23,.5); }
header { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 24px 0; transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease; background: linear-gradient(180deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.4) 100%), url('https://pianoimprovisation.ru/image/pianoimprovisationheader.png') center/cover no-repeat; backdrop-filter: blur(2px); }
.nav { display: flex; justify-content: space-between; align-items: center; }
.logo-wrap { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.logo-wrap img { height: 42px; width: auto; transition: transform .3s ease; }
.logo-wrap:hover img { transform: scale(1.05); }
.logo-wrap .logo-text { font-size: 1.15rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.menu-btn { font-size: 1.4rem; cursor: pointer; display: none; background: none; border: none; color: var(--text-dark); user-select: none; outline: none; }
nav ul { display: flex; gap: 32px; }
nav a { font-weight: 600; color: #fff; }
header.scrolled { background: linear-gradient(180deg, rgba(15,23,42,.95) 0%, rgba(15,23,42,.8) 100%), url('https://pianoimprovisation.ru/image/pianoimprovisationheader.png') center/cover no-repeat; backdrop-filter: blur(4px); box-shadow: 0 4px 20px rgba(0,0,0,.3); padding: 16px 0; }
.hero { position: relative; overflow: hidden; min-height: 70vh; display: flex; align-items: center; background: url('https://pianoimprovisation.ru/image/pianoimprovisationhero.png') center/cover no-repeat; }
.hero h1 { font-size: clamp(2.8rem, 4vw, 3.6rem); margin-bottom: 1.5rem; }
.hero::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.3); z-index: 1; }
.hero-content { position: relative; z-index: 2; text-align: center; padding-top: 100px; }
.hero-content p { font-size: clamp(1.15rem, 1.5vw, 1.3rem); color: #fff; max-width: 700px; margin: auto; text-shadow: 0 3px 10px rgba(0,0,0,.95), 0 0 15px rgba(212,160,23,.4); }
.hero .btn-primary { margin-top: 2.5rem; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; font-family: 'Playfair Display', serif; font-size: clamp(1.4rem, 1.8vw, 2rem); font-weight: 700; border-radius: 12px; transition: all .3s ease; background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.35); backdrop-filter: blur(10px) saturate(1.4); -webkit-backdrop-filter: blur(10px) saturate(1.4); color: #fff; text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px rgba(212,160,23,.9), 0 0 40px rgba(212,160,23,.6), 0 0 80px rgba(212,160,23,.3); width: auto; max-width: 320px; text-align: center; white-space: nowrap; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 4px 10px rgba(0, 0, 0, 0.5); cursor: pointer; }
.btn-primary:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.32); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 6px 12px rgba(0, 0, 0, 0.6); text-shadow: 0 0 8px #fff, 0 0 15px #fff, 0 0 25px rgba(212,160,23,1), 0 0 50px rgba(212,160,23,.8), 0 0 100px rgba(212,160,23,.5); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; margin-bottom: 20px; transition: .3s ease; }
.back-link:hover { color: #fff; text-shadow: 0 0 8px rgba(255,224,102,.9); }
.btn-more { display: block; margin: 20px auto 0; font-size: 1.3rem; padding: 12px 28px; font-family: 'Playfair Display', serif; font-weight: 700; border-radius: 12px; transition: all .3s ease; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.15); backdrop-filter: blur(10px) saturate(1.4); -webkit-backdrop-filter: blur(10px) saturate(1.4); color: #fff; text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px rgba(212,160,23,.9), 0 0 40px rgba(212,160,23,.6), 0 0 80px rgba(212,160,23,.3); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 4px 10px rgba(0, 0, 0, 0.5); width: auto; max-width: 320px; white-space: nowrap; text-align: center; }
.btn-more svg { width: 1em; height: 1em; margin-left: 8px; vertical-align: middle; transition: transform 0.3s ease; }
.btn-more:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.2); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 6px 12px rgba(0, 0, 0, 0.6); text-shadow: 0 0 8px #fff, 0 0 15px #fff, 0 0 25px rgba(212,160,23,1), 0 0 50px rgba(212,160,23,.8), 0 0 100px rgba(212,160,23,.5); }
.btn-more:hover svg { transform: translateX(4px); }
.col-reviews { display: flex; flex-direction: column; gap: 24px; width: 100%; }
.card-review { width: 100%; background: #000014; padding: 28px 24px; border-radius: var(--border-radius); transition: .3s ease; box-shadow: var(--shadow-card); border: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; }
.card-review:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-review p { text-align: justify; text-indent: 1.5em; margin-bottom: .7em; line-height: 1.7; color: var(--text-dark); flex-grow: 1; }
.card-review p:last-child { margin-bottom: 0; }
.card-review .signature { margin-top: auto; padding-top: 12px; font-style: italic; color: var(--gold); text-align: right; font-size: 0.95rem; }
#contacts { position: relative; overflow: hidden; margin-top: 40px; }
.contacts-bg { position: relative; background: url('https://pianoimprovisation.ru/image/Kontak.png') center/cover no-repeat; padding: 40px 20px; border-radius: var(--border-radius); overflow: hidden; max-width: 560px; margin: 0 auto; }
.contacts-bg::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 0; }
.contacts-bg > * { position: relative; z-index: 1; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 560px; margin: auto; }
.contact-grid-item { display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px 14px; background: rgba(255,255,255,.3); border: 1px solid rgba(255,255,255,.4); border-radius: 8px; font-size: .95rem; color: var(--text-dark); box-shadow: 0 4px 12px rgba(0,0,0,.2); transition: .3s ease; backdrop-filter: blur(4px); }
.contact-grid-item svg { width: 1.6rem; height: 1.6rem; margin-right: 0; margin-bottom: 4px; transition: all .3s ease; flex-shrink: 0; }
.contact-grid-item span { display: block; line-height: 1.3; color: #000; text-shadow: 0 0 1px rgba(255,255,255,.8); }
.fa-phone-alt { color: #007bff; }
.fa-sms { color: #28a745; }
.fa-whatsapp { color: #25D366; }
.fa-telegram-plane { color: #0088cc; }
.contact-grid-item:hover { transform: translateY(-4px); box-shadow: 0 6px 16px rgba(0,0,0,.4); background: rgba(255,255,255,.4); }
.contact-grid-item:hover svg { transform: scale(1.2); color: var(--accent); }
.contact-grid-item:hover svg.fa-whatsapp, .contact-grid-item:hover svg.fa-telegram-plane { fill: currentColor; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); margin-bottom: 16px; }
.footer-col h4 { color: white; font-size: 1.1rem; margin-bottom: 8px; }
.footer-col ul li { margin-bottom: 4px; }
.footer-col a:hover { color: var(--accent); transition: .3s ease; }
.copyright { text-align: center; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }
.cta-section { position: relative; color: white; text-align: center; background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.3) 100%), url('https://pianoimprovisation.ru/image/Footer.png') center/cover no-repeat; padding: 60px 0; }
.cta-content { max-width: 600px; margin: auto; position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cta-content p { font-size: 1.05rem; color: #cbd5e0; margin-bottom: 12px; }
.cta-content .btn-primary { margin-top: 12px; padding: 12px 28px; }
.cta-content p:last-child { font-size: .85rem; margin-top: 10px; color: #9ca3af; }
.pricing-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.pricing-section .price { text-align: center; font-size: 2rem; font-weight: 700; color: var(--gold); margin: 12px 0; font-family: 'Playfair Display', serif; line-height: 1.2; }
.pricing-section .price span { font-size: 0.9rem; color: var(--text-light); font-weight: 400; display: block; margin-top: 4px; }
.pricing-section .price .discount-text { display: block; margin-top: 8px; font-style: italic; text-align: left; color: var(--text-light); font-size: 0.85rem; word-break: break-word; }
.pricing-section .pricing-card { border-color: var(--gold) !important; display: flex; flex-direction: column; position: relative; }
.pricing-section .features { margin: 0 0 16px; padding: 0; flex-grow: 1; }
.pricing-section .features li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); color: var(--text-dark); font-size: 0.95rem; display: flex; align-items: center; }
.pricing-section .features li:last-child { border-bottom: none; }
.pricing-section .features li svg { width: 1.2em; height: 1.2em; color: #10b981; margin-right: 8px; flex-shrink: 0; }
.pricing-section .btn-primary { margin-top: auto; margin-left: auto; margin-right: auto; width: 100%; font-size: 1rem; padding: 12px 20px; }
.teacher-photo { width: 100%; max-width: 300px; margin: 30px auto 0; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 4px 16px rgba(0,0,0,.3); transition: .3s ease; }
.teacher-photo:hover { box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } .reveal { opacity: 1; transform: none; } }
@media (max-width: 768px) { .menu-btn { display: block; } .nav { padding: 0 12px; } .logo-wrap { flex-shrink: 1; min-width: 0; gap: 8px; } .logo-wrap img { height: 32px; } .logo-wrap .logo-text { white-space: normal; font-size: 0.8rem; line-height: 1.15; } nav ul { display: none; flex-direction: column; position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: 90%; background: rgba(15,23,42,.95); backdrop-filter: blur(14px); box-shadow: 0 4px 16px rgba(0,0,0,.3); padding: 20px; border-radius: 8px; z-index: 999; } nav ul.active { display: flex; } .btn-primary { font-size: 1.2rem; padding: 14px 32px; width: auto; max-width: 320px; } .footer-grid { grid-template-columns: 1fr; } .hero-content { padding-top: 80px; } }
@media (max-width: 600px) { .contact-grid { grid-template-columns: 1fr; } }
.page-offset { padding-top: var(--header-offset); min-height: calc(100vh - var(--header-offset)); }
