
:root{
  --bg:#07070a;
  --card: rgba(255,255,255,.05);
  --border: rgba(255,255,255,.10);
  --txt: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --muted2: rgba(255,255,255,.55);
  --red:#ff2b5b;
  --gold:#caa65a;
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --radius: 24px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--txt);
  background:
    radial-gradient(1200px 600px at 15% 10%, rgba(255,43,91,.18), transparent 60%),
    radial-gradient(900px 600px at 85% 30%, rgba(202,166,90,.12), transparent 55%),
    radial-gradient(900px 500px at 40% 90%, rgba(255,255,255,.06), transparent 60%),
    var(--bg);
}

a{color:inherit}
.wrap{width:min(1120px, 92vw); margin:0 auto}
.h1{font-family:"Playfair Display", ui-serif, Georgia, serif; font-size: clamp(34px, 5vw, 56px); line-height:1.05; margin:10px 0 10px}
.h2{font-family:"Playfair Display", ui-serif, Georgia, serif; font-size: clamp(26px, 3.2vw, 36px); margin:0 0 6px}
.kicker{letter-spacing:.22em; text-transform:uppercase; color:rgba(255,255,255,.75); font-size:12px}
.lead{color:var(--muted); font-size:16px; line-height:1.6; max-width: 52ch}
.sub{color:var(--muted); margin:0; line-height:1.6}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  height:44px; padding:0 16px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.25);
  text-decoration:none;
  font-weight:600;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.06)}
.btn.primary{
  border-color: rgba(255,43,91,.35);
  background: linear-gradient(135deg, rgba(255,43,91,.95), rgba(255,43,91,.55));
  box-shadow: 0 12px 35px rgba(255,43,91,.22);
}
.btn.ghost{
  background: rgba(255,255,255,.05);
}

.topbar{
  position:sticky; top:0; z-index:40;
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,.35);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar-inner{display:flex; align-items:center; justify-content:space-between; gap:16px; padding: 12px 0}
.brand{display:flex; align-items:center; gap:12px; text-decoration:none}
.brand-logo{height:40px; width:auto; display:block; filter: drop-shadow(0 10px 26px rgba(0,0,0,.45))}
.brand-name{font-family:"Playfair Display", ui-serif, Georgia, serif; font-size:18px; letter-spacing:.04em}
.nav{display:flex; gap:18px; align-items:center}
.nav a{color:rgba(255,255,255,.72); text-decoration:none; font-weight:600; font-size:13px}
.nav a:hover{color:rgba(255,255,255,.95)}

.lang{display:flex; gap:8px; align-items:center}
.lang-btn{
  height:34px; padding:0 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color:rgba(255,255,255,.80);
  font-weight:700;
  cursor:pointer;
}
.lang-btn.active{
  border-color: rgba(255,43,91,.35);
  color:#fff;
  background: rgba(255,43,91,.20);
}

.hero{padding: 42px 0 26px}
.hero-grid{display:grid; grid-template-columns: 1.25fr .85fr; gap:26px; align-items:stretch}
.hero-left{
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(700px 320px at 20% 10%, rgba(255,43,91,.22), transparent 60%),
    rgba(255,255,255,.04);
  box-shadow: var(--shadow);
  padding: 28px 26px;
}
.cta-row{display:flex; flex-wrap:wrap; gap:10px; margin-top:16px}

.stats{display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:10px; margin-top:18px}
.stat{
  padding: 12px 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.78);
  font-weight:600;
  font-size: 13px;
}

.hero-right{
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
  padding: 18px;
}
.tiles{display:grid; grid-template-columns:1fr 1fr; gap:12px; height:100%}
.tile{
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  display:flex; align-items:flex-end; justify-content:flex-start;
  padding: 14px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  position:relative;
  overflow:hidden;
  min-height: 92px;
}
.tile::after{
  content:"";
  position:absolute; inset:-50%;
  background: radial-gradient(400px 200px at 30% 30%, rgba(255,43,91,.18), transparent 60%);
  transform: rotate(18deg);
}
.tile.photo{
  background-size: cover;
  background-position:center;
  color:#fff;
}
.tile.photo::after{
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.55));
  inset:0;
  transform:none;
}

.section{padding: 38px 0}
.section.alt{background: rgba(0,0,0,.22); border-top:1px solid rgba(255,255,255,.06); border-bottom:1px solid rgba(255,255,255,.06)}
.section-head{margin-bottom:16px}

.courses-grid{display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:14px}
.course-card{
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(520px 260px at 20% 10%, rgba(255,43,91,.16), transparent 55%),
    rgba(255,255,255,.03);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  padding: 14px 14px 12px;
  cursor:pointer;
  transition: transform .18s ease, border-color .18s ease;
}
.course-card:hover{transform: translateY(-2px); border-color: rgba(255,43,91,.22)}
.course-top{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
  font-weight:800;
}
.hint{color: rgba(255,255,255,.55); font-weight:700; font-size:12px}
.course-preview{
  margin:0;
  padding: 12px 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.20);
  color: rgba(255,255,255,.78);
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  white-space: pre-wrap;
  min-height: 320px;
}
.course-actions{display:flex; gap:10px; margin-top:12px}
.course-actions .btn{flex:1}

.process-grid{display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:12px}
.p-step{border-radius: 22px; border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.03); padding:14px}
.p-num{color: rgba(202,166,90,.9); font-weight:900; letter-spacing:.14em}
.p-title{font-weight:900; margin-top:8px}
.p-text{color: rgba(255,255,255,.72); margin-top:6px; line-height:1.6; font-size: 13px}

.gallery{
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  overflow:hidden;
  box-shadow: var(--shadow);
}
.gallery-track{
  display:flex;
  gap:12px;
  padding: 14px;
  overflow-x:auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar{height:10px}
.gallery-track::-webkit-scrollbar-thumb{background:rgba(255,255,255,.14);border-radius:999px}
.g-item{
  flex: 0 0 calc((100% - 12px*5)/6);
  scroll-snap-align:start;
  border-radius: 18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  aspect-ratio: 1/1;
}
.g-item img{width:100%;height:100%;object-fit:cover;transform:scale(1.02);transition: .25s transform}
.g-item:hover img{transform: scale(1.07)}
@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr; }
  .courses-grid{grid-template-columns: 1fr; }
  .process-grid{grid-template-columns: 1fr 1fr; }
  .g-item{flex: 0 0 calc((100% - 12px*1)/2);}
  .nav{display:none}
  .course-preview{min-height:auto}
}

.contact-grid{display:grid; grid-template-columns: 1.2fr .8fr; gap:14px; align-items:start}
.contact-card{
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 16px;
  box-shadow: var(--shadow);
}
.cc-top{display:flex; align-items:flex-end; justify-content:space-between; gap:12px}
.cc-badge{font-family:"Playfair Display", ui-serif, Georgia, serif; font-size: 22px}
.cc-mini{color: rgba(255,255,255,.60); font-weight:700; font-size: 12px}
.cc-line{height:1px; background: rgba(255,255,255,.10); margin: 14px 0}
.cc-row{display:flex; align-items:center; justify-content:space-between; gap:10px; padding: 10px 0; color: rgba(255,255,255,.78)}
.cc-row span{color: rgba(255,255,255,.55); font-weight:700}
.note{color: rgba(255,255,255,.55); margin-top: 12px; font-size: 12px; line-height:1.6}

.footer{padding: 22px 0; border-top:1px solid rgba(255,255,255,.06); background: rgba(0,0,0,.22)}
.footer-inner{display:flex; align-items:center; justify-content:space-between; gap:14px}
.foot-brand{font-family:"Playfair Display", ui-serif, Georgia, serif; font-size:18px}
.foot-note{color: rgba(255,255,255,.55); font-size: 12px; margin-top: 4px}
.foot-links{display:flex; gap:14px}
.foot-links a{color: rgba(255,255,255,.70); text-decoration:none; font-weight:700; font-size: 13px}
.foot-links a:hover{color:#fff}

/* Modal */
.modal{position:fixed; inset:0; display:none; z-index:80}
.modal.open{display:block}
.modal-backdrop{position:absolute; inset:0; background: rgba(0,0,0,.66); backdrop-filter: blur(8px)}
.modal-card{
  position:relative;
  width:min(880px, 92vw);
  max-height: 84vh;
  overflow:auto;
  margin: 6vh auto 0;
  border-radius: 26px;
  border:1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(650px 320px at 10% 10%, rgba(255,43,91,.20), transparent 60%),
    radial-gradient(650px 320px at 90% 80%, rgba(202,166,90,.14), transparent 60%),
    rgba(15,15,20,.96);
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  padding: 18px 18px 16px;
}
.modal-close{
  position:sticky; top:10px; float:right;
  width:42px; height:42px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  color:#fff;
  font-size: 22px;
  cursor:pointer;
}
.modal-title{font-family:"Playfair Display", ui-serif, Georgia, serif; font-size: 28px; margin: 6px 0 10px}
.modal-body{color: rgba(255,255,255,.80); line-height: 1.65; white-space: pre-wrap; font-size: 14.5px}
.modal-actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:16px}


/* Hero single image card */
.hero-photo-card{
  position:relative;
  height:100%;
  min-height: 320px;
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.10);
  overflow:hidden;
  background: rgba(0,0,0,.20);
}
.hero-photo{
  position:absolute; inset:0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.05);
}
.hero-photo-overlay{
  position:absolute; inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding: 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.70) 100%);
}
.hero-photo-title{
  font-weight:900;
  letter-spacing:.10em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255,255,255,.92);
}
.hero-photo-sub{
  margin-top:6px;
  color: rgba(255,255,255,.70);
  font-weight:700;
  font-size: 12px;
}

/* Reviews */
.reviews-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:12px;
  margin-top: 14px;
}
.review-card{
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.review-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 10px;
}
.review-name{
  font-weight:900;
}
.review-stars{
  color: rgba(202,166,90,.95);
  letter-spacing:.08em;
}
.review-body{
  color: rgba(255,255,255,.72);
  line-height:1.65;
  font-size: 13px;
}

.btn.small{
  height: 36px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 980px){
  .reviews-grid{grid-template-columns: 1fr 1fr;}
}
@media (max-width: 560px){
  .reviews-grid{grid-template-columns: 1fr;}
}


/* Equal course card heights + aligned actions */
.courses-grid{align-items:stretch}
.course-card{display:flex;flex-direction:column}
.course-preview{flex:1}
.course-actions{display:flex;gap:10px}
.course-actions .btn{flex:1;min-width:0}
@media (max-width:980px){
  .course-actions{flex-wrap:wrap}
  .course-actions .btn{flex:1 1 calc(50% - 10px)}
  .course-actions .btn[data-btn="telegram"]{flex-basis:100%}
}

/* FAQ */
.faq{display:grid; gap:10px; margin-top:14px}
.faq-item{
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 10px 12px;
}
.faq-q{
  cursor:pointer;
  font-weight:900;
  list-style:none;
  outline:none;
}
.faq-q::-webkit-details-marker{display:none}
.faq-a{
  margin-top:8px;
  color: rgba(255,255,255,.72);
  line-height:1.65;
  font-size: 13px;
}

/* Top navigation links */
nav{display:flex; gap:14px; align-items:center}
.nav-link{
  display:inline-flex;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.86);
  font-weight:800;
  font-size:12px;
  text-decoration:none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.nav-link:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
}
@media (max-width:760px){
  nav{gap:8px; flex-wrap:wrap; justify-content:flex-end}
  .nav-link{padding:8px 10px}
}

/* Contact CTA buttons */
#contact .cta-row .btn.primary{
  background: linear-gradient(135deg, rgba(255,43,91,1), rgba(202,166,90,.85));
  border-color: rgba(255,43,91,.20);
  box-shadow: 0 14px 40px rgba(255,43,91,.22), 0 10px 30px rgba(202,166,90,.10);
  position: relative;
  overflow:hidden;
}
#contact .cta-row .btn.primary::after{
  content:"";
  position:absolute;
  inset:-40%;
  background: radial-gradient(300px 160px at 30% 30%, rgba(255,255,255,.28), transparent 60%);
  transform: rotate(18deg);
  opacity:.65;
}
#contact .cta-row .btn.primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 60px rgba(255,43,91,.26), 0 14px 45px rgba(202,166,90,.16);
}
#contact .cta-row .btn.ghost{
  border-color: rgba(202,166,90,.22);
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(0,0,0,.22));
}
