@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');
/* Рукопись */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
/* Цифры */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root {
  --blue-main: #183355;
  --blue-soft: #3a618a;
  --blue-light: #6b93b9;
  --blue-warm: #b6d4f0;
  --gold-dark: #715c3f;
  --gold-soft: #ad9970;
  --gold-light: #e8d2a8;
  --text-color: #ffffff;

  --font-main: "Roboto Condensed", sans-serif;;
  --font-accent: "Cormorant Garamond", serif;;
  --font-rukopis: "Great Vibes", cursive;
  --font-numbers: "DM Sans", sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  padding: 0;
/*  outline: 1px solid red; */
}

html {
  overflow-x: hidden;
  font-family: var(--font-main);
  color: var(--text-color);
  background: var(--blue-main);
  width: 100%;
  overflow-x: hidden !important;
  position: relative;
}

section {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  border: none !important;
  box-shadow: none;
}

.section-content {
  position: relative;
  padding: 0 20px;
}

/* --------------------- */
/* Splash screen */
#splash-screen {
  position: fixed;
  z-index: 9999;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: var(--blue-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 2s cubic-bezier(.68,-0.27,.42,1.43);
  pointer-events: all;
}

.splash-logo {
  width: 0;
  height: 0;
  opacity: 0;
  border-radius: 50%;
  box-shadow: 0 0 44px 8px var(--gold-light, #e8d2a8);
  transition:
    width 3s cubic-bezier(.42,1.15,.58,1),
    height 3s cubic-bezier(.42,1.15,.58,1),
    opacity 2s cubic-bezier(.44,0,.28,1),
    box-shadow 1.5s cubic-bezier(.32,.74,.58,1.4);
}

/* Когда показываем лого */
#splash-screen.show .splash-logo {
  width: 70vw;
  height: 70vw;
  opacity: 1;
  box-shadow: 0 0 30px 7px var(--gold-light, #e8d2a8), 0 0 70px 15px var(--blue-light, #6b93b9, 0.16);
}

/* Когда скрываем сплеш */
#splash-screen.hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 2.3s cubic-bezier(.42,1.15,.58,1);
}
/* --------------------- */

.hero-section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 20%;
  z-index: -1;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Сначала обычный linear-gradient чтобы низ всегда был полностью --blue-main */
  background:
    linear-gradient(
      to top,
      var(--blue-main) 0px,
      rgba(24,51,85,0.00) 200px
    ),
    radial-gradient(
      120% 110% at 15% 100%,
      var(--blue-main) 0%,
      rgba(24, 51, 85, 0.92) 33%,
      rgba(24, 51, 85, 0.66) 51%,
      rgba(24, 51, 85, 0.33) 63%,
      rgba(24, 51, 85, 0.03) 82%,
      rgba(24, 51, 85, 0.0) 100%
    );
  pointer-events: none;
}

.hero-logo-wrap {
  position: absolute;
  top: 4vh;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.hero-logo {
  width: 35vw;
  height: 35vw;
  object-fit: cover;
  margin-bottom: 0;
}

.hero-bottom-text {
  position: absolute;
  bottom: 5vh;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

.hero-bottom-text h1 {
  font-family: var(--font-main);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 0.9;
  margin-bottom: 1.07rem;
  letter-spacing: -0.5px;
  padding-bottom: 2.8vh;
  padding-left: 20px;
  padding-right: 20px;
}

.hero-bottom-text p {
  font-family: var(--font-main);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--gold-soft);
  margin-bottom: 0;
  margin-top: 0;
  padding-left: 20px;
  padding-right: 20px;
}

/* ------------------------- */
/* 2. Усиление экспертности */
.expertise {
  background: var(--blue-main);
  color: var(--blue-main);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Фото в самом верху, на всю ширину */
.expert-photo-mobile {
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  transform: scale(0.74);
  opacity: 0.3;
  object-fit: cover;
  transition:
    transform 0.65s cubic-bezier(.42,1.15,.58,1),
    box-shadow 0.55s cubic-bezier(.44,0,.28,1),
    opacity 0.7s cubic-bezier(.42,1.15,.58,1);
  box-shadow: 0 0 0px 0px var(--gold-light, #e8d2a8);
}

/* Когда становится видимым */
.expert-photo-mobile.visible {
  margin: 50px 0 40px 0;
  transform: scale(1.4);
  opacity: 1;
  box-shadow: 0 0 3px 0px var(--gold-light, #e8d2a8), 0 0 22px 0px var(--gold-light, #e8d2a8, 0.23);
}

/* Контейнер под текст и цифры */
.expertise-intro-mobile {
  padding: 24px 0px 0 0px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.expertise-title-mobile {
  font-size: 2.1rem;
  font-weight: 700;
  margin: 8px 0 8px 0;
  color: var(--gold-light);
  letter-spacing: -0.5px;
}

.expertise-subtitle-mobile {
  font-size: 1.1rem;
  color: var(--gold-soft);
  margin-bottom: 22px;
}

/* Цифры: сетка 2 колонки, аккуратный отступ */
.expertise-container-mobile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 10px;
  justify-items: center;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  margin-top: 8px;
  margin-bottom: 10px;
  padding-top: 20px;
}

.stat-block {
  border-radius: 15px;
  box-shadow: 0 2px 6px rgba(24, 51, 85, 0.07);
  padding: 13px 0px 10px 0px;
  width: 100%;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.big-num {
  font-size: 2.1rem;
  font-weight: 700;
  font-family: var(--font-numbers);
  color: var(--gold-light);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-block p {
  font-size: 0.9rem;
  font-family: var(--font-main);
  color: var(--gold-soft);
  margin: 0;
  line-height: 1.2;
}

/* 3. Премии и титулы */
.awards {
  background: #fff;
  color: var(--blue-main);
  padding: 40px 0 10px 0;
  width: 100%;
}

.award-intro {
  max-width: 98vw;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.awards-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-main);
  margin: 0 0 18px 0;
  text-align: center;
  letter-spacing: 0.01em;
}

.award-list {
  list-style: none;
  padding: 15px 0;
  margin: 0;
  width: 100%;
}

.award-item {
  font-size: 1.03rem;
  line-height: 1.6;
  margin-bottom: 25px;
  text-align: center;
  background: #f6f8fa;
  border-radius: 10px;
  padding: 10px 0px;
  box-sizing: border-box;
}

/* 4 и 7. Анимация движущейся ленты */
.performances h2 {
  font-size: 2rem;
  padding: 40px 0;
  text-align: center;
}

.marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 20px;
  width: max-content; 
  white-space: nowrap;
}

.performances .marquee .marquee-inner:nth-child(2) {
  padding-left: 20px;
}

.clients .marquee-inner {
  margin-left: 20px;
}

.clients .marquee-inner:nth-child(2) {
  margin-left: 0;
}

.marquee img {
  height: 300px;
  width: auto;
  flex-shrink: 0;
  border-radius: 15px;
  object-fit: cover;
}

.clients .marquee,
.performances .marquee {
  min-height: 320px;
}

/* 5. Методы работы */
.methods {
  background: var(--blue-light);
  color: var(--blue-main);
  padding: 40px 0 0 0;
  width: 100%;
}

.methods-intro {
  max-width: 98vw;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.methods-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-main);
  margin: 0 0 18px 0;
  text-align: center;
  letter-spacing: 0.01em;
}

.method-list {
  list-style: none;
  padding: 20px 0;
  margin: 0;
  width: 100%;
}

.method-item {
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 25px;
  background: #eaf0f6;
  border-radius: 10px;
  padding: 10px 0px;
  box-sizing: border-box;
  text-align: center;
}

/* 6. Книги и статьи */
.publications {
  background: #fff;
  color: var(--blue-main);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.publication-photo {
  width: 100%;
  height: 300px; 
  object-fit: cover;
  display: block;
  margin: 0 auto 16px auto;
}

.publication-intro {
  width: 100%;
  max-width: 98vw;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
}

.publication-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 20px 0 20px 0;
  text-align: center;
  letter-spacing: 0.01em;
}

.publication-subtitle {
  font-size: 1.1rem;
  color: var(--blue-soft);
  margin-bottom: 18px;
  text-align: center;
}

.book-highlight {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 60px auto 60px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle,
    var(--blue-light) 53%,
    var(--blue-warm) 80%,
    rgba(182,212,240,0) 100%
  );
  box-shadow: 0 0 28px 8px var(--blue-light), 0 0 44px 14px var(--blue-warm, #b6d4f0);
  filter: blur(2.5px);
  z-index: 1;
  /* Новое: начальное состояние для анимации */
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.7s cubic-bezier(.68,-0.27,.42,1.43),
    transform 0.85s cubic-bezier(.68,-0.27,.42,1.43),
    box-shadow 0.35s cubic-bezier(.42,1.15,.58,1);
}

/* Когда видим */
.book-highlight.visible .book-glow {
  opacity: 1;
  transform: scale(1.1);
  transition-delay: 0s;
}

.book-image {
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%) scale(0.6); /* стартовое уменьшение */
  width: 290px;
  z-index: 2;
  opacity: 0;
  filter: drop-shadow(0 8px 32px rgba(232,210,168,0.18));
  transition:
    opacity 0.7s cubic-bezier(.68,-0.27,.42,1.43),
    transform 0.85s cubic-bezier(.68,-0.27,.42,1.43),
    filter 0.35s;
}

/* Когда видим */
.book-highlight.visible .book-image {
  opacity: 1;
  transform: translateX(-50%) scale(1) rotate(-10deg);
  transition-delay: 0.38s; /* задержка, чтобы круг вырастал первым */
}

/* 7 */

.clients {
  background: var(--gold-light);
  color: var(--blue-main);
  text-align: center;
  padding: 40px 0 40px 0; /* добавим паддинг сверху, как у других блоков */
}

.clients h2 {
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 40px 0; /* убрали верхний отступ */
  text-align: center;
}

/* 8. CTA */
.cta {
  background: var(--blue-main);
  color: white;
  padding: 50px 0px 30px 0px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta h2 {
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 20px 0;
  text-align: center;
}

.cta-subtitle {
  font-size: 1.4rem;
  color: var(--blue-warm);
  margin-bottom: 40px;
  max-width: 700px;
}

.cta-button {
  padding: 20px 25px;
  font-size: 1.2rem;
  background: var(--gold-light);
  color: var(--blue-main);
  border-radius: 35px;
  text-decoration: none;
  transition: background 0.3s ease;
  font-weight: 500;
  box-shadow: 0 0 5px 0px var(--gold-light, #e8d2a8), 0 0 25px 0px var(--gold-light, #e8d2a8, 0.23);
}

.cta-button:hover {
  background: var(--gold-light);
  color: var(--blue-main);
}

.cta-signature {
  margin-top: 55px;
  width: 600px;
  max-width: 80%;
  height: auto;
  opacity: 0.8;
}

.cta-video-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.cta-video {
  width: 100%;
  max-width: 560px;
  border-radius: 24px;
  box-shadow: 0 6px 42px 0 rgba(24, 51, 85, 0.16);
  background: var(--blue-main);
  object-fit: cover;
  transition: box-shadow 0.35s;
}
.cta-video:focus {
  outline: 2px solid var(--gold-light);
  box-shadow: 0 0 0 4px var(--gold-light, #e8d2a8, 0.18);
}

.cta-features {
  list-style: none;
  padding: 0;
  margin: 40px 0 70px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cta-feature {
  color: var(--blue-warm);
  font-size: 1.1rem;
  padding: 10px 0 10px 0;
  font-weight: 500;
  text-align: center;
}

/*   Анимация  */

.award-item, .method-item, .cta-feature {
  opacity: 0;
  transform: scale(0.7);
  transition:
    transform 0.62s cubic-bezier(.68,-0.27,.42,1.43),
    opacity 0.5s cubic-bezier(.68,-0.55,.27,1.55);
}

.award-item.visible, .method-item.visible, .cta-feature.visible {
  opacity: 1;
  transform: scale(1);
}
