/* ===== moreqavuli.com ===== */

*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --mq-paper:     #faf6ee;
  --mq-card:      #fffdf8;
  --mq-card-2:    #f6f0e5;
  --mq-foot:      #f1eadc;

  --mq-ink:       #2b2420;
  --mq-ink-2:     #52483f;
  --mq-muted:     #74685d;

  --mq-line:      #e7ddcd;
  --mq-line-2:    #d3c7b4;

  --mq-acc:       #a32f3f;
  --mq-acc-dark:  #7e2230;
  --mq-acc-soft:  #f3e0dd;
  --mq-acc-tint:  #fbf2ec;

  --mq-ok:        #46683a;
  --mq-warn:      #8f5a1e;

  --mq-head: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --mq-text: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;

  --mq-r:   10px;
  --mq-r2:  18px;
  --mq-sh1: 0 1px 3px rgba(43, 36, 32, .06);
  --mq-sh2: 0 8px 22px rgba(43, 36, 32, .08);
  --mq-sh3: 0 18px 42px rgba(43, 36, 32, .16);

  --mq-cap-h: 66px;
}

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  background: var(--mq-paper);
  font-family: var(--mq-text);
  font-size: 17px;
  line-height: 1.62;
  color: var(--mq-ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--mq-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--mq-ink);
}

::selection { background: var(--mq-acc-soft); color: var(--mq-ink); }

:focus-visible { outline: 2px solid var(--mq-acc); outline-offset: 2px; }

/* ===== сітка ===== */

.mq-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 30px);
}

.mq-col {
  max-width: 730px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 30px);
}

.mq-wide {
  max-width: 940px;
  margin: clamp(20px, 4vw, 32px) auto 0;
  padding: 0 clamp(16px, 5vw, 30px);
}

.mq-wide > img,
.mq-front__pic > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--mq-r2);
  background: var(--mq-acc-soft);
}

.mq-rule {
  border: 0;
  border-top: 1px solid var(--mq-line);
  margin: clamp(24px, 5vw, 36px) 0;
}

/* поява блоків під час скролу */
[data-mq-rise].mq-rise-pre { opacity: 0; transform: translateY(10px); }
[data-mq-rise].mq-rise-in {
  opacity: 1; transform: none;
  transition: opacity .5s ease, transform .5s cubic-bezier(.32, .72, 0, 1);
}

/* ===== ШАПКА ===== */

.mq-cap {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 246, 238, .95);
  backdrop-filter: blur(8px);
  border-top: 3px solid var(--mq-acc);
  border-bottom: 1px solid var(--mq-line);
}

.mq-cap__line {
  height: var(--mq-cap-h);
  display: flex;
  align-items: center;
  gap: 12px;
}

.mq-cap__mark {
  font-family: var(--mq-head);
  font-size: 23px;
  color: var(--mq-ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.mq-cap__word { font-weight: 400; }
.mq-cap__word b { font-weight: 700; color: var(--mq-acc); }

.mq-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-left: auto;
  min-width: 0;
}
.mq-nav a {
  font-size: 14.5px;
  color: var(--mq-ink-2);
  padding: 6px 12px;
  border-radius: 999px;
  transition: color .18s, background .18s;
  white-space: nowrap;
}
.mq-nav a:hover { color: var(--mq-acc); background: var(--mq-acc-tint); }
.mq-nav a.mq-nav--on { color: var(--mq-acc-dark); background: var(--mq-acc-soft); font-weight: 600; }

.mq-ring {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border: 1px solid var(--mq-line-2);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--mq-ink-2);
  transition: border-color .18s, color .18s, background .18s;
}
.mq-ring:hover { border-color: var(--mq-acc); color: var(--mq-acc); background: var(--mq-acc-tint); }
.mq-ring svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.mq-cap__go {
  flex-shrink: 0;
  background: var(--mq-acc);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 17px;
  border-radius: var(--mq-r);
  transition: background .18s;
}
.mq-cap__go:hover { background: var(--mq-acc-dark); }

.mq-ring--menu { display: none; }

@media (max-width: 940px) {
  .mq-nav { display: none; }
  .mq-ring--menu { display: grid; }
  .mq-cap__line { gap: 10px; }
  .mq-cap__mark { font-size: 20px; margin-right: auto; }
}
@media (max-width: 420px) {
  .mq-cap__go { display: none; }
}

/* ===== бокове меню ===== */

.mq-side {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--mq-paper);
  padding: 0 clamp(16px, 5vw, 30px) 28px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .32s cubic-bezier(.32, .72, 0, 1), visibility .32s;
  overflow-y: auto;
}
.mq-side--open { transform: none; visibility: visible; }

.mq-side__top {
  min-height: var(--mq-cap-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--mq-line);
  margin-bottom: 10px;
}

.mq-side > a {
  font-family: var(--mq-head);
  font-size: 20px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--mq-line);
  color: var(--mq-ink);
}
.mq-side > a:last-child { color: var(--mq-acc); font-weight: 700; }

/* ===== пошук ===== */

.mq-look {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(43, 36, 32, .5);
  backdrop-filter: blur(3px);
  padding: 12vh 16px 16px;
  display: none;
}
.mq-look--open { display: block; }

.mq-look__box {
  max-width: 580px;
  margin: 0 auto;
  background: var(--mq-card);
  border-radius: var(--mq-r2);
  box-shadow: var(--mq-sh3);
  overflow: hidden;
}
.mq-look__box input {
  width: 100%;
  height: 56px;
  border: 0;
  border-bottom: 1px solid var(--mq-line);
  padding: 0 18px;
  font: inherit;
  font-size: 16px;
  color: var(--mq-ink);
  background: var(--mq-card);
  outline: none;
}
.mq-look__out { max-height: 56vh; overflow-y: auto; }
.mq-look__out a {
  display: block;
  padding: 12px 18px;
  border-bottom: 1px solid var(--mq-line);
  font-size: 15px;
  line-height: 1.45;
}
.mq-look__out a:hover { background: var(--mq-acc-tint); }
.mq-look__out a b { font-weight: 600; }
.mq-look__out .mq-look__empty { padding: 16px 18px; color: var(--mq-muted); font-size: 15px; }

/* ===== ГОЛОВНА ===== */

main { padding: clamp(24px, 5vw, 44px) 0 clamp(36px, 7vw, 64px); }

.mq-kicker {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--mq-acc);
  margin-bottom: 10px;
}

.mq-front {
  display: grid;
  gap: clamp(20px, 4vw, 44px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
}
@media (max-width: 860px) { .mq-front { grid-template-columns: minmax(0, 1fr); } }

.mq-front__txt h1 {
  font-size: clamp(1.8rem, 4.4vw, 2.75rem);
  margin-bottom: 14px;
}
.mq-front__txt > a:hover h1 { color: var(--mq-acc-dark); }
.mq-front__txt > p {
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  color: var(--mq-ink-2);
  max-width: 54ch;
}

.mq-sign {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--mq-muted);
}

/* ===== секції ===== */

.mq-part { margin-top: clamp(30px, 6vw, 52px); }

.mq-part__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.mq-part__head h2 { font-size: clamp(1.3rem, 3vw, 1.65rem); }
.mq-part__head a { font-size: 14px; color: var(--mq-acc); font-weight: 600; white-space: nowrap; }
.mq-part__head a:hover { color: var(--mq-acc-dark); }

/* рубрики */
.mq-themes {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--mq-ink);
}
@media (max-width: 760px) { .mq-themes { grid-template-columns: minmax(0, 1fr); } }

.mq-themes a {
  display: block;
  padding: 18px 20px 20px 0;
  transition: color .18s;
}
.mq-themes a + a { border-left: 1px solid var(--mq-line); padding-left: 20px; }
@media (max-width: 760px) {
  .mq-themes a { padding: 16px 0; border-bottom: 1px solid var(--mq-line); }
  .mq-themes a + a { border-left: 0; padding-left: 0; }
}
.mq-themes h3 { font-size: 1.3rem; margin-bottom: 6px; }
.mq-themes a:hover h3 { color: var(--mq-acc); }
.mq-themes p { font-size: 14.5px; color: var(--mq-muted); line-height: 1.55; }

/* перелік матеріалів */
.mq-list { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.mq-list--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .mq-list--two { grid-template-columns: minmax(0, 1fr); } }

.mq-item {
  display: flex;
  flex-direction: column;
  background: var(--mq-card);
  border: 1px solid var(--mq-line);
  border-radius: var(--mq-r2);
  padding: 18px 20px;
  box-shadow: var(--mq-sh1);
  transition: border-color .2s, box-shadow .2s;
}
.mq-item:hover { border-color: var(--mq-line-2); box-shadow: var(--mq-sh2); }

.mq-item__no {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mq-acc);
  margin-bottom: 6px;
}
.mq-item h3 { font-size: clamp(1.12rem, 2.5vw, 1.28rem); margin-bottom: 7px; }
.mq-item:hover h3 { color: var(--mq-acc-dark); }
.mq-item p { font-size: 15px; color: var(--mq-muted); line-height: 1.55; }
.mq-item__sign { display: block; margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--mq-muted); }

/* як готуються матеріали */
.mq-howto {
  background: var(--mq-acc-tint);
  border: 1px solid var(--mq-acc-soft);
  border-radius: var(--mq-r2);
  padding: 18px 20px;
}
.mq-howto h3 { font-size: 1.1rem; margin-bottom: 5px; }
.mq-howto p { font-size: 14.5px; color: var(--mq-ink-2); line-height: 1.6; }
.mq-howto a { color: var(--mq-acc); font-weight: 600; text-decoration: underline; text-decoration-color: var(--mq-line-2); }

/* ===== сторінка рубрики ===== */

.mq-hub h1 { font-size: clamp(1.9rem, 5.5vw, 2.7rem); margin-bottom: 10px; }
.mq-hub p { font-size: clamp(1rem, 2.4vw, 1.1rem); color: var(--mq-ink-2); max-width: 60ch; }

/* ===== СТАТТЯ ===== */

.mq-crumbs { font-size: 13px; color: var(--mq-muted); margin-bottom: 14px; }
.mq-crumbs a { color: var(--mq-acc); }
.mq-crumbs a:hover { text-decoration: underline; }

.mq-head { text-align: center; }
.mq-head h1 { font-size: clamp(1.75rem, 5vw, 2.6rem); margin-bottom: 14px; }
.mq-head__lead {
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  color: var(--mq-ink-2);
  max-width: 60ch;
  margin: 0 auto;
}
.mq-head .mq-sign { justify-content: center; }

.mq-note {
  font-size: 13px;
  color: var(--mq-muted);
  line-height: 1.5;
  padding-top: 9px;
  text-align: center;
}

.mq-body { margin-top: clamp(22px, 4vw, 34px); }
.mq-body > * + * { margin-top: 1.1em; }
.mq-body p { font-size: 17.5px; line-height: 1.76; color: var(--mq-ink); }
.mq-body h2 { font-size: clamp(1.3rem, 3.2vw, 1.6rem); margin-top: 1.8em; }
.mq-body h3 { font-size: 1.14rem; margin-top: 1.6em; }
.mq-body b { font-weight: 700; }
.mq-body a { color: var(--mq-acc); text-decoration: underline; text-decoration-color: var(--mq-line-2); }

.mq-body blockquote {
  font-family: var(--mq-head);
  font-size: clamp(1.12rem, 2.8vw, 1.32rem);
  line-height: 1.48;
  color: var(--mq-acc-dark);
  background: var(--mq-card-2);
  border-radius: var(--mq-r);
  padding: 16px 20px;
  margin-top: 1.5em;
}

.mq-body ul, .mq-body ol { padding-left: 4px; list-style: none; }
.mq-body li { position: relative; padding-left: 21px; margin-top: .6em; font-size: 17px; line-height: 1.68; }
.mq-body ul > li::before {
  content: "";
  position: absolute;
  left: 3px; top: .66em;
  width: 7px; height: 7px;
  transform: rotate(45deg);
  background: var(--mq-acc);
}
.mq-body ol { counter-reset: mq; }
.mq-body ol > li { counter-increment: mq; }
.mq-body ol > li::before {
  content: counter(mq) ".";
  position: absolute;
  left: 0; top: 0;
  color: var(--mq-acc);
  font-weight: 700;
  font-size: 15px;
}

.mq-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  background: var(--mq-card);
  border: 1px solid var(--mq-line);
  border-radius: var(--mq-r);
  overflow: hidden;
}
.mq-table th {
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: var(--mq-ink-2);
  background: var(--mq-card-2);
  padding: 11px 13px;
  border-bottom: 1px solid var(--mq-line);
}
.mq-table td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--mq-line);
  vertical-align: top;
  line-height: 1.5;
}
.mq-table tr:last-child td { border-bottom: 0; }
.mq-table td:first-child { font-weight: 600; color: var(--mq-ink); width: 40%; }

.mq-care {
  background: var(--mq-acc-tint);
  border: 1px solid var(--mq-acc-soft);
  border-radius: var(--mq-r);
  padding: 16px 18px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--mq-ink-2);
  margin-top: 1.5em;
}
.mq-care b { color: var(--mq-acc-dark); }

.mq-src {
  margin-top: clamp(26px, 5vw, 38px);
  padding-top: 16px;
  border-top: 1px solid var(--mq-line);
}
.mq-src h4 {
  font-size: 14px;
  color: var(--mq-muted);
  font-family: var(--mq-text);
  margin-bottom: 8px;
}
.mq-src ul { list-style: none; }
.mq-src li {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--mq-muted);
  padding-left: 14px;
  position: relative;
  margin-top: 7px;
}
.mq-src li::before { content: "—"; position: absolute; left: 0; color: var(--mq-line-2); }

/* ===== ТЕКСТОВІ СТОРІНКИ ===== */

.mq-page h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); margin-bottom: 10px; }

.mq-date {
  display: inline-block;
  font-size: 12.5px;
  color: var(--mq-muted);
  border-bottom: 1px dotted var(--mq-line-2);
  margin-bottom: 6px;
}

.mq-duo {
  display: grid;
  gap: 13px;
  grid-template-columns: minmax(0, 1fr);
  margin: clamp(20px, 4vw, 28px) 0;
}

.mq-duo__cell {
  background: var(--mq-card);
  border: 1px solid var(--mq-line);
  border-radius: var(--mq-r2);
  padding: 18px 20px;
  box-shadow: var(--mq-sh1);
}
.mq-duo__cell h3 { font-size: 1.1rem; margin-bottom: 6px; }
.mq-duo__cell p { font-size: 15px; color: var(--mq-ink-2); line-height: 1.6; }
.mq-duo__cell a { color: var(--mq-acc); font-weight: 600; word-break: break-word; }
.mq-duo__cell a:hover { text-decoration: underline; }

/* ===== ПОДВАЛ ===== */

.mq-end {
  background: var(--mq-foot);
  border-top: 1px solid var(--mq-line-2);
  padding: clamp(28px, 5vw, 44px) 0 24px;
  margin-top: clamp(28px, 6vw, 56px);
}

.mq-end__grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 1.5fr 1fr 1.25fr 1.2fr;
}
@media (max-width: 880px) { .mq-end__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .mq-end__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

.mq-end__brand p {
  font-size: 14px;
  color: var(--mq-ink-2);
  line-height: 1.6;
  margin-top: 10px;
  max-width: 44ch;
}
.mq-end__mail { font-size: 13px; color: var(--mq-muted); line-height: 1.7; margin-top: 12px; word-break: break-word; }
.mq-end__mail a { color: var(--mq-ink-2); }
.mq-end__mail a:hover { color: var(--mq-acc); }

.mq-end__col h4 {
  font-family: var(--mq-text);
  font-size: 13px;
  color: var(--mq-muted);
  margin-bottom: 9px;
}
.mq-end__col a {
  display: block;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--mq-ink-2);
  padding: 5px 0;
}
.mq-end__col a:hover { color: var(--mq-acc); }

.mq-end__legal {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--mq-line-2);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--mq-muted);
}
.mq-end__legal b { color: var(--mq-ink-2); }

.mq-end__base {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  font-size: 12.5px;
  color: var(--mq-muted);
}
.mq-end__base a:hover { color: var(--mq-acc); text-decoration: underline; }

/* ===== ЦІЛЬОВА: заголовок, плеєр, форма, фінальний блок ===== */

.mq-show { padding-top: clamp(10px, 2.5vw, 22px); }

.mq-show__head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 0 clamp(16px, 3.5vw, 26px);
}
.mq-show__head h1 {
  font-size: clamp(1.7rem, 5vw, 2.8rem);
  line-height: 1.22;
  overflow-wrap: break-word;
}
.mq-mark {
  display: inline;
  background: rgba(163, 47, 63, .14);
  border-radius: 6px;
  padding: .02em .22em .06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ===== плеєр ===== */

.mq-player {
  max-width: 960px;
  margin: 0 auto;
  transition: max-width .5s cubic-bezier(.32, .72, 0, 1);
}
.mq-player--wide { max-width: 100%; }

.mq-player__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--mq-r2);
  background: #241d1a;
  box-shadow: var(--mq-sh3);
}

.mq-player__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #241d1a;
  cursor: pointer;
}

/* обкладинка */
.mq-cover { position: absolute; inset: 0; z-index: 5; cursor: pointer; }
.mq-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* затемнення під кнопкою */
.mq-cover__shade {
  position: absolute;
  left: 50%; top: 50%;
  width: 330px; height: 330px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 20, 24, .58) 0%, rgba(16, 20, 24, 0) 76%);
  pointer-events: none;
}
.mq-cover--off { opacity: 0; pointer-events: none; transition: opacity .45s ease; }

.mq-cover__center {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: calc(100% - 12px);
}

/* кнопка запуску: пігулка, зліва круг із трикутником, справа підпис */
.mq-cover__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 6px 12px 6px 6px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--mq-acc);
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  transition: background .22s;
  animation: mq-breath 2.8s ease-in-out infinite;
}
.mq-cover__btn:hover { background: var(--mq-acc-dark); }

.mq-cover__disc {
  display: grid;
  place-items: center;
  flex: none;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #fff;
}
.mq-cover__disc svg { display: block; width: 32px; height: 32px; fill: var(--mq-acc); }

.mq-cover__label {
  display: block;
  min-width: 0;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(16, 20, 24, .8);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

@keyframes mq-breath {
  0%, 100% { transform: scale(1); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
  50%      { transform: scale(1.03); box-shadow: 0 14px 38px rgba(0, 0, 0, .58); }
}

.mq-cover--off .mq-cover__btn { animation: none; }

/* кнопка «продовжити» */
.mq-resume {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: none;
  place-items: center;
  background: rgba(36, 29, 26, .3);
  pointer-events: none;
}
.mq-player--paused .mq-resume { display: grid; }
.mq-resume span {
  display: grid;
  place-items: center;
  width: 82px; height: 82px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--mq-acc);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.mq-resume svg { display: block; width: 36px; height: 36px; fill: #fff; }

/* завантаження */
.mq-spin-wrap {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: rgba(36, 29, 26, .82);
  color: #fff;
  text-align: center;
  padding: 18px;
}
.mq-player--loading .mq-spin-wrap { display: flex; }
.mq-spin {
  display: block;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, .22);
  border-top-color: #fff;
  animation: mq-turn .8s linear infinite;
}
@keyframes mq-turn { to { transform: rotate(360deg); } }
.mq-spin-wrap__text { font-size: 15px; font-weight: 600; }

.mq-player__close {
  position: absolute;
  z-index: 8;
  top: 11px; right: 11px;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  place-items: center;
  background: rgba(36, 29, 26, .6);
  color: #fff;
}
.mq-player--wide .mq-player__close { display: grid; }
.mq-player__close svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 2.2; }

/* телефон: на всю ширину */
@media (max-width: 767px) {
  .mq-player--wide {
    max-width: none;
    margin-left: calc(-1 * clamp(16px, 5vw, 30px));
    margin-right: calc(-1 * clamp(16px, 5vw, 30px));
  }
  .mq-player--wide .mq-player__frame { border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mq-cover__btn { animation: none; }
  .mq-spin { animation-duration: 1.8s; }
}

/* ===== про звук ===== */

.mq-sound {
  max-width: 620px;
  margin: 14px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: left;
  font-size: 14.5px;
  color: var(--mq-ink-2);
}
.mq-sound b { color: var(--mq-ink); font-weight: 700; }
.mq-sound svg { width: 18px; height: 18px; fill: none; stroke: var(--mq-acc); stroke-width: 1.9; flex-shrink: 0; }
.mq-sound--off { display: none; }

/* ===== картка заявки ===== */

.mq-order {
  margin-top: clamp(18px, 3.5vw, 28px);
  background: var(--mq-card);
  border: 1px solid var(--mq-line-2);
  border-radius: var(--mq-r2);
  box-shadow: var(--mq-sh2);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
}

.mq-order__pic {
  order: 2;
  background: linear-gradient(170deg, #f6efe2 0%, #efe4d3 60%, #f9f4ea 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  min-height: 230px;
  border-left: 1px solid var(--mq-line);
}
.mq-order__pic img {
  max-height: 320px;
  width: auto;
  filter: drop-shadow(0 18px 24px rgba(43, 36, 32, .2));
}

@media (max-width: 760px) {
  .mq-order { grid-template-columns: minmax(0, 1fr); }
  .mq-order__pic { order: 0; border-left: 0; border-bottom: 1px solid var(--mq-line); min-height: 200px; }
  .mq-order__pic img { max-height: 240px; }
}

.mq-order__body { padding: clamp(18px, 3vw, 30px); }

.mq-eyebrow {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--mq-acc);
  margin-bottom: 8px;
}
.mq-order__body h2 { font-size: clamp(1.3rem, 2.8vw, 1.7rem); margin-bottom: 8px; }
.mq-order__body > form > p.mq-lede {
  font-size: 15px;
  color: var(--mq-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

/* ===== поля ===== */

.mq-field { margin-bottom: 13px; }
.mq-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--mq-ink-2);
  margin-bottom: 6px;
}
.mq-field input {
  width: 100%;
  height: 52px;
  border: 1.5px solid var(--mq-line-2);
  border-radius: var(--mq-r);
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  color: var(--mq-ink);
  background: var(--mq-paper);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.mq-field input:focus {
  border-color: var(--mq-acc);
  box-shadow: 0 0 0 3px var(--mq-acc-soft);
  background: var(--mq-card);
}

.mq-phone {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--mq-line-2);
  border-radius: var(--mq-r);
  overflow: hidden;
  background: var(--mq-paper);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.mq-phone:focus-within {
  border-color: var(--mq-acc);
  box-shadow: 0 0 0 3px var(--mq-acc-soft);
  background: var(--mq-card);
}
.mq-phone__code {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--mq-ink-2);
  border-right: 1.5px solid var(--mq-line);
  white-space: nowrap;
}
.mq-field .mq-phone input {
  border: 0;
  box-shadow: none;
  background: transparent;
  height: 52px;
  flex: 1;
  width: auto;
  min-width: 0;
  padding: 0 12px;
  font: inherit;
  font-size: 16px;
  color: var(--mq-ink);
  outline: none;
}

.mq-flag { width: 17px; height: 12px; overflow: hidden; flex-shrink: 0; display: block; border-radius: 1px; }
.mq-flag i { display: block; height: 50%; }
.mq-flag .mq-flag__b { background: #0057b7; }
.mq-flag .mq-flag__y { background: #ffd700; }

.mq-phone__tip {
  font-size: 13px;
  margin-top: 6px;
  min-height: 18px;
  color: var(--mq-muted);
  transition: color .15s;
}
.mq-phone__tip--ok { color: var(--mq-ok); font-weight: 600; }
.mq-phone__tip--ok::before { content: "\2713\00a0"; }
.mq-phone__tip--warn { color: var(--mq-warn); font-weight: 600; }

/* ===== кнопка форми ===== */

.mq-send {
  width: 100%;
  min-height: 56px;
  margin-top: 6px;
  border: 0;
  border-radius: var(--mq-r);
  cursor: pointer;
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 700;
  color: #fff;
  background: var(--mq-acc);
  box-shadow: 0 8px 20px -8px rgba(126, 34, 48, .6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .2s, box-shadow .25s;
}
.mq-send:hover { background: var(--mq-acc-dark); box-shadow: 0 12px 26px -8px rgba(126, 34, 48, .65); }
.mq-send:disabled { opacity: .6; cursor: default; }
.mq-send svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 2.4; }

.mq-consent {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--mq-muted);
  text-align: center;
  margin-top: 13px;
}
.mq-consent a { color: var(--mq-acc); text-decoration: underline; }

.mq-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--mq-line);
}
@media (max-width: 380px) { .mq-perks { grid-template-columns: 1fr; } }
.mq-perks__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mq-ink-2);
  line-height: 1.25;
}
.mq-perks__item svg {
  width: 19px; height: 19px;
  flex: none;
  fill: none;
  stroke: var(--mq-acc);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== надіслано ===== */

.mq-done { display: none; text-align: center; padding: 22px 8px; }
.mq-done__ico {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--mq-acc-soft);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
}
.mq-done__ico svg { width: 30px; height: 30px; fill: none; stroke: var(--mq-acc); stroke-width: 2.4; }
.mq-done h3 { font-size: 1.3rem; margin-bottom: 6px; }
.mq-done p { color: var(--mq-muted); font-size: 15px; }

/* ===== фінальний блок ===== */

.mq-final { margin-top: clamp(26px, 5vw, 44px); }

.mq-final__box {
  background: var(--mq-card-2);
  border: 1px solid var(--mq-line-2);
  border-top: 4px solid var(--mq-acc);
  border-radius: var(--mq-r2);
  padding: clamp(22px, 4.5vw, 40px);
  text-align: center;
}
.mq-final__box h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); margin-bottom: 10px; }
.mq-final__box p {
  color: var(--mq-ink-2);
  font-size: 16px;
  max-width: 54ch;
  margin: 0 auto 20px;
}

.mq-final__btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--mq-acc);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 13px 16px 13px 24px;
  border-radius: 999px;
  box-shadow: 0 10px 24px -10px rgba(126, 34, 48, .6);
  transition: background .2s;
}
.mq-final__btn:hover { background: var(--mq-acc-dark); }
.mq-final__btn-ico {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
}
.mq-final__btn svg { width: 15px; height: 15px; fill: none; stroke: var(--mq-acc); stroke-width: 2.6; }

/* ===== вузькі екрани ===== */

.mq-body p,
.mq-body li,
.mq-table th,
.mq-table td,
.mq-front__txt h1,
.mq-head h1,
.mq-item h3,
.mq-themes h3,
.mq-duo__cell p,
.mq-src li { overflow-wrap: break-word; }

@media (max-width: 460px) {
  .mq-table { font-size: 14px; }
  .mq-table th,
  .mq-table td { padding: 9px 10px; }
  .mq-table td:first-child { width: 42%; }
  .mq-care { padding: 14px 15px; font-size: 15px; }
  .mq-cover__btn { gap: 8px; padding: 4px 9px 4px 4px; }
  .mq-cover__disc { width: 46px; height: 46px; }
  .mq-cover__disc svg { width: 26px; height: 26px; }
  .mq-cover__label { font-size: 13.5px; padding: 6px 11px; }
}
