/* TAKT Music — базовые токены и типографика поверх Flatsome. */

:root {
  --takt-ink: #221f1f;
  --takt-purple: #250256;
  --takt-purple-700: #3a0f7a;
  --takt-magenta: #b41f93;
  --takt-violet: #9a64fa;
  --takt-cyan: #50d4fe;
  --takt-bg-soft: #f6f4fa;
  --takt-line: #e4dff0;
  --takt-wave: linear-gradient(90deg, var(--takt-violet), var(--takt-cyan));
  --takt-font-text: "PT Sans", Arial, sans-serif;
  --takt-font-head: "Montserrat", Arial, sans-serif;
}

/* Шрифты: перекрываем то, что Flatsome выводит из настроек Customizer. */
html body,
html body .alt-font {
  font-family: var(--takt-font-text);
  color: var(--takt-ink);
}
html body h1, html body h2, html body h3,
html body h4, html body h5, html body h6,
html body .heading-font,
html body .nav > li > a,
html body .button {
  font-family: var(--takt-font-head);
}
html body h1, html body h2, html body h3 { font-weight: 700; letter-spacing: -0.01em; }
html body .nav > li > a { font-weight: 600; letter-spacing: 0.02em; }

/* Ссылки и фокус */
html body a { color: var(--takt-purple-700); }
html body a:hover { color: var(--takt-magenta); }
:focus-visible { outline: 2px solid var(--takt-magenta); outline-offset: 2px; }

/* Тонкая «волна» из логотипа как акцентная линия */
.takt-wave-line {
  display: block;
  width: 64px;
  height: 3px;
  border-radius: 3px;
  background: var(--takt-wave);
  margin: 0.5em 0 1em;
}
.text-center .takt-wave-line { margin-left: auto; margin-right: auto; }

.takt-soft { background: var(--takt-bg-soft); }

/* Шапка внутренних страниц: фиолетовая панель с заголовком + фото */
.takt-hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: 340px;
  background: var(--takt-purple);
  color: #fff;
  overflow: hidden;
}
.takt-hero--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.takt-hero--flip .takt-hero__media { order: -1; }
.takt-hero__text {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px clamp(24px, 5vw, 72px);
}
.takt-hero__text::after { /* волна из логотипа */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 28px;
  height: 40px;
  background: url("../img/wave-line.svg") center / 100% 100% no-repeat;
  opacity: .55;
  pointer-events: none;
}
html body .takt-hero h1 {
  color: #fff;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  margin: 0 0 .4em;
  text-transform: uppercase;
}
.takt-hero p { margin: 0; color: rgba(255,255,255,.82); font-size: 18px; max-width: 32em; }
.takt-hero__media { position: relative; }
.takt-hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
@media (max-width: 849px) {
  .takt-hero, .takt-hero--flip { grid-template-columns: 1fr; min-height: 0; }
  .takt-hero__media { order: -1; aspect-ratio: 5 / 2; }
  .takt-hero__text { padding: 28px 16px 56px; }
  .takt-hero__text::after { bottom: 10px; height: 30px; }
}

/* ---------- Общие блоки страниц ---------- */
.takt-wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.takt-section { padding: clamp(48px, 7vw, 88px) 0; }
.takt-head { max-width: 720px; margin: 0 auto 40px; }
.takt-head.text-center { text-align: center; }
html body .takt-head h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 0; }
.takt-head p { font-size: 18px; color: #4a4552; margin: 0; }
.takt-icon { display: block; flex: none; color: var(--takt-purple-700); }
.takt-icon .a { color: var(--takt-magenta); stroke: var(--takt-magenta); }
.takt-btn, html body a.takt-btn {
  display: inline-block;
  background: var(--takt-magenta);
  color: #fff;
  border-radius: 99px;
  padding: 0 28px;
  line-height: 48px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  font-size: 14px;
  margin: 0;
  transition: background .2s;
}
html body a.takt-btn:hover { background: #95177a; color: #fff; }
html body a.takt-btn--ghost { background: transparent; box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); }
html body a.takt-btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- Главная: первый экран ---------- */
.takt-home-hero {
  background: var(--takt-purple) url("../img/hero-home.svg") right center / cover no-repeat;
  color: #fff;
  min-height: min(78vh, 620px);
  display: flex;
  align-items: center;
  padding: 64px 0;
}
.takt-home-hero .takt-wrap { width: 100%; }
.takt-home-hero__text { max-width: 540px; }
.takt-kicker { font: 600 13px/1 var(--takt-font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--takt-cyan); margin: 0 0 18px; }
html body .takt-home-hero h1 { color: #fff; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.05; margin: 0 0 20px; }
.takt-home-hero .lead { font-size: clamp(18px, 1.6vw, 21px); color: rgba(255,255,255,.85); margin: 0 0 32px; }
.takt-facts { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.takt-facts li { display: flex; align-items: center; gap: 8px; margin: 0; color: rgba(255,255,255,.9); }
.takt-facts .takt-icon { color: #fff; width: 22px; height: 22px; }
.takt-facts .takt-icon .a { color: var(--takt-cyan); stroke: var(--takt-cyan); }
html body .takt-facts a { color: #fff; }
@media (max-width: 849px) {
  .takt-home-hero {
    background-image: linear-gradient(90deg, rgba(30, 2, 72, .88), rgba(30, 2, 72, .55)), url("../img/hero-home.svg");
    background-position: center, 72% center;
    min-height: 0;
    padding: 56px 0 64px;
  }
}

/* ---------- Главная: категории ---------- */
.takt-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.takt-card {
  background: #fff;
  border: 1px solid var(--takt-line);
  border-radius: 14px;
  padding: 28px 26px 24px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.takt-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(37, 2, 86, .45); border-color: #d2c8ea; }
.takt-card .takt-icon { width: 52px; height: 52px; margin-bottom: 16px; }
html body .takt-card h3 { font-size: 19px; margin: 0 0 8px; }
.takt-card p { margin: 0; color: #4a4552; }
@media (max-width: 849px) { .takt-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 549px) { .takt-cards { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- Главная: почему к нам ---------- */
.takt-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.takt-feature { display: flex; gap: 16px; align-items: flex-start; }
.takt-feature .takt-icon { width: 44px; height: 44px; }
html body .takt-feature h3 { font-size: 18px; margin: 4px 0 6px; }
.takt-feature p { margin: 0; color: #4a4552; }
@media (max-width: 849px) { .takt-features { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Главная: прокат ---------- */
.takt-prokat {
  background: var(--takt-purple) url("../img/bg-prokat.svg") center / cover no-repeat;
  color: #fff;
  text-align: center;
  padding: clamp(56px, 8vw, 96px) 0;
}
html body .takt-prokat h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); margin-bottom: 12px; }
.takt-prokat p { max-width: 620px; margin: 0 auto 28px; font-size: 18px; color: rgba(255,255,255,.88); }

/* ---------- Главная: как нас найти ---------- */
.takt-visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.takt-visit__card {
  border-radius: 18px;
  padding: clamp(28px, 4vw, 44px);
  background: linear-gradient(#fff, #fff) padding-box, var(--takt-wave) border-box;
  border: 2px solid transparent;
}
.takt-visit__row { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; font-size: 19px; }
.takt-visit__row .takt-icon { width: 30px; height: 30px; }
.takt-visit__row strong { font-family: var(--takt-font-head); }
.takt-visit__card .takt-btn { margin-top: 12px; }
.takt-note { font-size: 14px; color: #6b6574; margin: 18px 0 0; }
@media (max-width: 849px) { .takt-visit { grid-template-columns: 1fr; } }

/* Убираем стандартные отступы Flatsome у страниц со своей разметкой */
.page-wrapper:has(.takt-home-hero), .page-wrapper:has(.takt-hero) { padding-top: 0; padding-bottom: 0; }

/* Шапка без фото (политика и т. п.) */
.takt-hero--plain { grid-template-columns: 1fr; min-height: 200px; }
.takt-hero--plain .takt-hero__text { max-width: 1200px; width: 100%; margin: 0 auto; padding-top: 48px; padding-bottom: 64px; }

/* ---------- Текстовые страницы ---------- */
.takt-prose { max-width: 820px; font-size: 17px; }
.takt-visit .takt-prose { max-width: none; }
html body .takt-prose h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 1.8em 0 .6em; }
html body .takt-prose h2:first-child { margin-top: 0; }
html body .takt-prose h2::after { content: ""; display: block; width: 48px; height: 3px; border-radius: 3px; background: var(--takt-wave); margin-top: 10px; }
.takt-prose ul, .takt-prose ol { margin: 0 0 1.2em 1.2em; }
.takt-prose li { margin-bottom: .4em; }
.takt-prose li::marker { color: var(--takt-magenta); }
.takt-prose p { margin-bottom: 1em; }

/* ---------- Подвал ---------- */
.takt-footer { background: #1a0140; color: rgba(255,255,255,.78); font-size: 15px; }
.takt-footer__cols { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.takt-footer img { width: 160px; height: auto; margin-bottom: 12px; }
html body .takt-footer h4 { color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 8px 0 14px; }
.takt-footer ul { list-style: none; margin: 0; padding: 0; }
.takt-footer li { margin: 0 0 8px; }
html body .takt-footer a { color: rgba(255,255,255,.9); }
html body .takt-footer a:hover { color: var(--takt-cyan); }
.takt-footer__legal { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0 22px; font-size: 13px; color: rgba(255,255,255,.6); }
.takt-footer__legal p { margin: 0 0 6px; }
@media (max-width: 849px) { .takt-footer__cols { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; } }

/* ---------- Глубина фона (assets/js/takt.js) ---------- */
.takt-depth { position: relative; overflow: hidden; background-image: none; }
.takt-depth > .takt-wrap { position: relative; z-index: 2; }
.takt-layer {
  position: absolute;
  inset: -28px;
  z-index: 0;
  background: center / cover no-repeat;
  pointer-events: none;
  will-change: translate;
  opacity: 0;
  scale: 1.04;
  transition: opacity .9s ease, scale 1.6s cubic-bezier(.2, .7, .2, 1);
}
.takt-depth.is-in .takt-layer { opacity: 1; scale: 1; }
.takt-home-hero .takt-layer { background-position: right center; }
.takt-home-hero.takt-depth { background-image: none; }
@media (max-width: 849px) {
  .takt-home-hero .takt-layer { background-position: 72% center; }
  .takt-home-hero.takt-depth::before { /* затемнение под текстом на телефоне */
    content: "";
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(30, 2, 72, .88), rgba(30, 2, 72, .55));
  }
}
@media (prefers-reduced-motion: reduce) {
  .takt-layer { transition: none; opacity: 1; scale: 1; }
}

/* Телефон: компактный логотип и кнопка «Позвонить» в шапке */
@media (max-width: 849px) {
  #logo img { max-height: 42px; width: auto; }
  .header-button .button { font-size: 12px; padding: 0 12px; min-height: 2.2em; line-height: 2.1em; margin: 0; }
}

/* Отрывок страницы — только для превью ссылок, Flatsome его не показывает */
.page-header-excerpt { display: none; }

/* Блоки из виджетов в подвале */
.takt-footer figure, .takt-footer .wp-block-image { margin: 0 0 12px; }
html body .takt-footer .wp-block-heading { color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 8px 0 14px; }
