/* ===== Variables ===== */
:root {
  --bg: #1a1a1a;
  --bg-card: #242424;
  --gold: #c9a227;
  --gold-light: #e5c04a;
  --gold-dim: rgba(201, 162, 39, 0.15);
  --text: #f5f5f5;
  --text-muted: #b0b0b0;
  --radius: 12px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Manrope', -apple-system, sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
ul { list-style: none; padding: 0; margin: 0; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  animation: fadeDown 0.6s ease-out;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}
.header__logo-link {
  display: block;
  line-height: 0;
  flex-shrink: 0;
}
.header__logo-img {
  display: block;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.header__title {
  font-family: var(--font-serif);
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 0 1px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.4);
  line-height: 1.25;
  margin: 0;
  max-width: 280px;
}
@media (min-width: 900px) {
  .header__title { max-width: 360px; font-size: clamp(0.85rem, 1.2vw, 1rem); }
}

.header__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.header__social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--bg);
  background: var(--gold);
  border-radius: var(--radius);
  transition: var(--transition);
}
.header__social-link:hover {
  background: var(--gold-light);
  color: var(--bg);
  transform: translateY(-2px);
}
.header__social-link .icon { width: 18px; height: 18px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}
.btn--primary {
  color: var(--bg);
  background: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--gold-dim);
}
.btn--secondary {
  color: var(--gold);
  background: transparent;
  border: 2px solid var(--gold);
}
.btn--secondary:hover {
  background: var(--gold-dim);
  border-color: var(--gold-light);
}

/* ===== Hero ===== */
.hero {
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero__symbol {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  opacity: 0.9;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  color: var(--text);
}
.hero__subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.hero__photo-wrap {
  margin: 0 auto 1.5rem;
  max-width: 320px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  animation: scaleIn 0.8s ease-out 0.2s both;
}
.hero__photo { width: 100%; height: auto; vertical-align: middle; }

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.hero__services {
  max-width: 400px;
  margin: 0 auto 2rem;
  text-align: left;
}
.hero__services li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.hero__services li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.hero .btn { animation: fadeIn 0.8s ease-out 0.4s both; }

/* ===== Trust ===== */
.trust {
  padding: 3rem 1.5rem;
  background: var(--bg-card);
  animation: fadeIn 0.8s ease-out;
}
.trust__title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 600;
  text-align: center;
  margin: 0 0 2rem;
  color: var(--gold);
  letter-spacing: 0.03em;
}
.trust__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--gold-dim);
  border-radius: var(--radius);
  border: 1px solid rgba(201, 162, 39, 0.25);
  transition: var(--transition);
}
.trust.reveal.visible .trust__item {
  animation: slideIn 0.5s ease-out both;
}
.trust.reveal.visible .trust__item:nth-child(1) { animation-delay: 0.1s; }
.trust.reveal.visible .trust__item:nth-child(2) { animation-delay: 0.2s; }
.trust.reveal.visible .trust__item:nth-child(3) { animation-delay: 0.3s; }
.trust.reveal.visible .trust__item:nth-child(4) { animation-delay: 0.4s; }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}
.trust__item:hover {
  border-color: var(--gold);
  transform: translateX(4px);
}
.trust__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  color: var(--gold);
}
.trust__icon svg { width: 100%; height: 100%; }
.trust__invite {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-muted);
  margin: 0;
}

/* ===== Benefits ===== */
.benefits {
  padding: 3rem 1.5rem;
}
.benefits__title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 600;
  text-align: center;
  margin: 0 0 2rem;
  color: var(--text);
}
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.benefits__card {
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
  text-align: center;
}
.benefits.reveal.visible .benefits__card {
  animation: cardIn 0.5s ease-out both;
}
.benefits.reveal.visible .benefits__card:nth-child(1) { animation-delay: 0.1s; }
.benefits.reveal.visible .benefits__card:nth-child(2) { animation-delay: 0.2s; }
.benefits.reveal.visible .benefits__card:nth-child(3) { animation-delay: 0.3s; }
.benefits.reveal.visible .benefits__card:nth-child(4) { animation-delay: 0.4s; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.benefits__card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.benefits__img-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid rgba(201, 162, 39, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.benefits__placeholder { font-size: 2rem; color: var(--gold); }
.benefits__card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.benefits__card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ===== About ===== */
.about {
  padding: 3rem 1.5rem;
  background: var(--bg-card);
}
.about__title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 600;
  text-align: center;
  margin: 0 0 1.5rem;
  color: var(--gold);
}
.about__content {
  max-width: 640px;
  margin: 0 auto;
}
.about__content p {
  color: var(--text-muted);
  margin: 0 0 1rem;
  font-size: 0.98rem;
}
.about__content p:last-child { margin-bottom: 0; }

/* ===== Courses ===== */
.courses {
  padding: 3rem 1.5rem;
  background: var(--bg);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.courses__title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 600;
  text-align: center;
  margin: 0 0 1.5rem;
  color: var(--gold);
}
.courses__content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.courses__content p {
  color: var(--text-muted);
  margin: 0 0 1rem;
  font-size: 0.98rem;
  text-align: left;
}
.courses__content p:last-of-type:not(.courses__cta) { margin-bottom: 1rem; }
.courses__cta {
  margin-top: 1.25rem;
  font-weight: 500;
  color: var(--gold-light, #e8d5a3);
}
.courses__content .btn {
  margin-top: 0.75rem;
}
.courses__content .btn + .btn {
  margin-left: 1rem;
  margin-top: 0.5rem;
}

/* ===== SEO block (low-frequency keywords, geo Ukraine) ===== */
.seo-block {
  padding: 3rem 1.5rem;
  background: var(--bg);
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.seo-block__title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--gold);
}
.seo-block__lead {
  max-width: 720px;
  margin: 0 auto 2rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.seo-block__h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.6rem;
  color: var(--text);
}
.seo-block__p {
  max-width: 720px;
  margin: 0 auto 0.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.seo-block__list {
  max-width: 720px;
  margin: 0 auto 1rem;
  padding-left: 0;
  list-style: disc;
  list-style-position: inside;
  text-align: center;
}
.seo-block__list li {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
  text-align: center;
}
.seo-block__list li strong { color: var(--text); }

/* ===== Contact ===== */
.contact {
  padding: 3rem 1.5rem;
  text-align: center;
}
.contact__title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.contact__text {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}
.contact__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.contact__buttons .btn { min-width: 140px; }

/* ===== Footer ===== */
.footer {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer__photo-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold-dim);
}
.footer__photo { width: 100%; height: 100%; object-fit: cover; }
.footer__thanks {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--gold);
  margin: 0 0 0.5rem;
}
.footer__link {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}
.footer__link a { color: var(--gold); }

/* ===== Scroll-triggered animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (min-width: 480px) {
  .trust__list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .header { padding: 1.25rem 2rem; }
  .header__logo { font-size: 1.4rem; }
  .hero { padding: 3.5rem 2rem 4rem; }
  .hero__photo-wrap { max-width: 380px; }
  .hero__services { max-width: 420px; }
  .trust__list { max-width: 700px; grid-template-columns: repeat(2, 1fr); }
  .benefits__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .benefits__grid { grid-template-columns: repeat(4, 1fr); }
  .hero__title { font-size: 2.5rem; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
