/* ═══════════════════════════════════════════════════
   Linara Ryzhenkova · Визажист, Уфа
   v0.2 — стиль Любы Мирошниченко (Bebas Neue + Manrope,
   холодная палитра #F0F1F3 / #141617)
   ═══════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; color: inherit; font: inherit; }
ol, ul { list-style: none; }

:root {
  --bg:        #F0F1F3;
  --bg-soft:   #dcdee2;
  --paper:     #FFFFFF;
  --dark:      #141617;
  --dark-soft: #1f2123;
  --text:      #141617;
  --text-mid:  rgba(20, 22, 23, 0.66);
  --text-dim:  rgba(20, 22, 23, 0.42);
  --line:      rgba(20, 22, 23, 0.14);
  --line-soft: rgba(20, 22, 23, 0.06);
  --on-dark:       #FFFFFF;
  --on-dark-mid:   rgba(255, 255, 255, 0.72);
  --on-dark-dim:   rgba(255, 255, 255, 0.42);
  --on-dark-line:  rgba(255, 255, 255, 0.18);

  --display: 'Bebas Neue', Impact, sans-serif;
  --sans:    'Manrope', system-ui, -apple-system, sans-serif;

  --container: 1280px;
  --pad-x:     clamp(24px, 5vw, 64px);
  --gap:       clamp(80px, 12vh, 140px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ─── Helpers ─── */
.mini-label {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}


/* ═══════════════════════════════════════════════════
   NAVIGATION
   (над тёмным hero — белый текст; при скролле — светлый фон с тёмным текстом)
   ═══════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  backdrop-filter: blur(0);
  transition: background 0.5s var(--ease), backdrop-filter 0.5s var(--ease), border-color 0.5s var(--ease), color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
  color: var(--on-dark);
}
.nav.is-scrolled {
  background: rgba(240, 241, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line-soft);
  color: var(--text);
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 32px);
  margin: 0 auto;
}
.nav-link {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.85;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: opacity 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav-link:hover { opacity: 1; border-bottom-color: currentColor; }
.nav-cta {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: inherit;
  border: 1px solid currentColor;
  padding: 11px 22px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.nav.is-scrolled .nav-cta:hover { background: var(--text); color: var(--bg); }
.nav:not(.is-scrolled) .nav-cta:hover { background: var(--on-dark); color: var(--dark); }
.nav-cta-mobile { display: none; }

/* Бренд-монограмма LR — Bebas Neue */
.nav-brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0.05em;
  font-weight: 400;
}
.nav-brand .logo-mark { width: 44px; height: 30px; }
.logo-mark { display: block; }

.nav-toggle { display: none; width: 36px; height: 36px; position: relative; }
.nav-toggle span {
  position: absolute; left: 7px; right: 7px; height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }


/* ═══════════════════════════════════════════════════
   HERO — под Любу: фото слева, чёрный блок справа
   ═══════════════════════════════════════════════════ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--dark);
}
.hero-left {
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.hero-right {
  padding: clamp(100px, 14vh, 160px) clamp(32px, 5vw, 80px) clamp(48px, 6vh, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--on-dark);
  background: var(--dark);
}
.hero-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(64px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: 28px;
}
.hero-tagline {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
  color: var(--on-dark-mid);
  max-width: 460px;
  margin-bottom: 44px;
}
.hero-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 44px;
  background: var(--on-dark);
  border: 1px solid var(--on-dark);
  color: var(--dark);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.hero-cta:hover { background: transparent; color: var(--on-dark); }


/* ═══════════════════════════════════════════════════
   SECTION HEAD (общее) — стиль Любы: номер + большое название
   ═══════════════════════════════════════════════════ */
.section-head {
  display: flex;
  flex-direction: column;
  margin-bottom: clamp(48px, 7vh, 80px);
}
.section-num {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1;
  letter-spacing: 0;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.section-title {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}


/* ═══════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════ */
.about { padding: var(--gap) var(--pad-x); max-width: var(--container); margin: 0 auto; }
.about-content {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.about-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-soft);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-text { display: flex; flex-direction: column; gap: 20px; max-width: 640px; }
.about-text p {
  font-family: var(--sans);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.75;
  font-weight: 400;
  color: var(--text);
}
.about-text p strong { color: var(--text); font-weight: 600; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stats li {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mid);
  line-height: 1.5;
}
.stats span {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(28px, 2.8vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text);
  margin-bottom: 10px;
}


/* ═══════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════ */
.services { padding: var(--gap) var(--pad-x); max-width: var(--container); margin: 0 auto; }
.services-note {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
  color: var(--text-mid);
  max-width: 640px;
  margin-bottom: clamp(40px, 6vh, 64px);
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 72px) clamp(40px, 6vw, 96px);
}
.service-block { display: flex; flex-direction: column; }
.service-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--text);
  margin-bottom: 6px;
}
.service-sub {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.service-list {
  border-top: 1px solid var(--line);
  margin-top: 14px;
}
.service-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 14px;
}
.s-name { color: var(--text); font-weight: 500; }
.s-meta { color: var(--text-mid); white-space: nowrap; font-size: 13px; font-weight: 400; }

.services-cta {
  display: inline-block;
  margin-top: clamp(40px, 5vh, 60px);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 6px;
  transition: letter-spacing 0.3s var(--ease);
}
.services-cta:hover { letter-spacing: 0.26em; }


/* ═══════════════════════════════════════════════════
   PORTFOLIO — горизонтальная галерея со scroll-snap
   ═══════════════════════════════════════════════════ */
.portfolio { padding: var(--gap) var(--pad-x); max-width: var(--container); margin: 0 auto; }
.portfolio-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(20,22,23,0.2) transparent;
}
.portfolio-grid::-webkit-scrollbar { height: 6px; }
.portfolio-grid::-webkit-scrollbar-track { background: transparent; }
.portfolio-grid::-webkit-scrollbar-thumb { background: var(--line); }
.portfolio-grid::-webkit-scrollbar-thumb:hover { background: var(--text-mid); }

.portfolio-grid figure {
  flex: 0 0 clamp(220px, 30vw, 360px);
  aspect-ratio: 4 / 5;
  scroll-snap-align: start;
  overflow: hidden;
  background: var(--bg-soft);
}
.portfolio-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.portfolio-grid figure:hover img { transform: scale(1.04); }


/* ═══════════════════════════════════════════════════
   COURSES
   ═══════════════════════════════════════════════════ */
.courses { padding: var(--gap) var(--pad-x); max-width: var(--container); margin: 0 auto; }
.courses-lead {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--text);
  max-width: 720px;
  margin-bottom: clamp(48px, 6vh, 72px);
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 48px);
}
.course-item {
  padding-top: 28px;
  border-top: 1px solid var(--text);
}
.course-item h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.3;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--text);
  margin-bottom: 14px;
}
.course-item > p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--text-mid);
  margin-bottom: 14px;
}
.course-price {
  font-family: var(--sans);
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text) !important;
  margin: 0 !important;
}
.courses-cta {
  display: inline-block;
  margin-top: clamp(32px, 4vh, 48px);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 6px;
}


/* ═══════════════════════════════════════════════════
   REVIEWS — типографические карточки-цитаты
   ═══════════════════════════════════════════════════ */
.reviews { padding: var(--gap) var(--pad-x); max-width: var(--container); margin: 0 auto; }
.reviews-grid {
  column-count: 2;
  column-gap: clamp(20px, 2.4vw, 32px);
}
.testimonial {
  break-inside: avoid;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(26px, 3vw, 38px);
  margin: 0 0 clamp(20px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 60px;
  line-height: 0.6;
  color: var(--text-dim);
  display: block;
  margin-bottom: -6px;
}
.testimonial p {
  font-family: var(--sans);
  font-size: clamp(15px, 1.15vw, 17px);
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  margin: 0;
}
.testimonial footer {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mid);
  padding-top: 14px;
  border-top: 1px solid var(--line);
}


/* ═══════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════ */
.contact { padding: var(--gap) var(--pad-x); max-width: var(--container); margin: 0 auto; }
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; }
.contact-line {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-line:first-child { border-top: 1px solid var(--line); }
.contact-line > span {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mid);
  padding-top: 3px;
  font-weight: 500;
}
.contact-line a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.contact-line a:hover { border-bottom-color: var(--text); }

.contact-map {
  aspect-ratio: 4 / 5;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  transition: background 0.4s var(--ease);
}
.contact-map:hover { background: #c8cad0; }
.map-label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--text);
}
.map-sub {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-mid);
  margin-bottom: 18px;
}
.map-action {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 4px;
  align-self: flex-start;
}


/* ═══════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════ */
.faq { padding: var(--gap) var(--pad-x); max-width: var(--container); margin: 0 auto; }
.faq-list { max-width: 820px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.4;
  color: var(--text);
  transition: color 0.3s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--text-mid); }
.faq-icon {
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 300;
  color: var(--text);
  transition: transform 0.4s var(--ease);
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--text-mid);
  max-width: 640px;
  padding: 0 0 26px;
  animation: faqIn 0.4s var(--ease);
}
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.footer {
  padding: 48px var(--pad-x) 40px;
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-family: var(--display);
  font-size: 36px;
  letter-spacing: 0.05em;
  transition: opacity 0.3s var(--ease);
}
.footer-brand:hover { opacity: 0.6; }


/* ═══════════════════════════════════════════════════
   MOBILE
   ═══════════════════════════════════════════════════ */
@media (max-width: 880px) {
  .nav { justify-content: space-between; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; position: relative; z-index: 110; }
  .nav-menu {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--dark);
    color: var(--on-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    padding: 80px 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
    z-index: 95;
    margin: 0;
  }
  .nav-menu.is-open { opacity: 1; pointer-events: auto; }
  .nav-menu .nav-link {
    font-family: var(--display);
    font-size: 36px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--on-dark);
    font-weight: 400;
    opacity: 1;
    border: 0; padding: 0;
  }
  .nav-cta-mobile {
    display: inline-block;
    margin-top: 16px;
    padding: 16px 32px;
    background: var(--on-dark);
    color: var(--dark);
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }

  /* Hero на мобайле: фото фоном на весь экран, тёмный overlay снизу, текст поверх */
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
  }
  .hero-left {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  .hero-photo { object-position: center 15%; }
  .hero-left::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(20,22,23,0) 0%, rgba(20,22,23,0.2) 40%, rgba(20,22,23,0.92) 100%);
  }
  .hero-right {
    position: relative;
    z-index: 1;
    background: transparent;
    justify-content: flex-end;
    padding: 100px 24px 56px;
    min-height: 100dvh;
  }
  .hero-name { font-size: clamp(56px, 14vw, 88px); }
  .hero-tagline { font-size: 15px; max-width: none; }

  .about-content { grid-template-columns: 1fr; gap: 32px; }
  .stats { grid-template-columns: 1fr; gap: 18px; }
  .stats span { font-size: 32px; }

  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid figure { flex-basis: 78vw; }
  .courses-grid { grid-template-columns: 1fr; }
  .reviews-grid { column-count: 1; }
  .contact-content { grid-template-columns: 1fr; }
  .contact-line { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .contact-line > span { padding-top: 0; }
  .contact-map { aspect-ratio: 4 / 3; }
}

@media (max-width: 480px) {
  .portfolio-grid figure { flex-basis: 84vw; }
}
