/* Спільні стилі для української (/) та англійської (/en/) версій */

/* Шрифти з нашого ж сайту (а не Google Fonts): без зайвого запиту на чужий сервер,
   тому сторінка показується швидше. Змінні шрифти — один файл на всі накреслення 400–600. */
@font-face {
  font-family: "Literata"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/literata-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Literata"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/literata-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Палітра взята з логотипу (синій єті + помаранчевий глечик), але приглушена */
  --mist: #F5F7F8;      /* фон */
  --fog: #E9EEF1;       /* другорядні секції */
  --sky: #DDE6EC;       /* блок запису */
  --yeti: #6F8BA3;      /* приглушений синій єті — акцент */
  --yeti-deep: #50677D; /* кнопки й посилання: контраст ≥ 4,5 на всіх фонах сайту */
  --pot: #E4B595;       /* приглушений помаранчевий глечик */
  --ink: #3E4852;       /* текст: м'який графіт замість чорного */
  --muted: #5D666E;     /* другорядний текст: контраст ≥ 4,5 на всіх фонах сайту */

  --display: "Unbounded", system-ui, sans-serif;
  --body: "Literata", Georgia, serif;
  --gutter: clamp(16px, 5vw, 64px);
  --measure: 34rem;
  --r-lg: 32px;
  --r-md: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #3A4857; } /* колір футера, щоб при «перетягуванні» сторінки внизу не було світлої смуги */
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--body);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yeti); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -0.01em; font-weight: 500; }
h2 { font-size: clamp(1.625rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.0625rem; line-height: 1.3; }
p { margin: 0 0 1em; max-width: var(--measure); }

.wrap { padding-inline: var(--gutter); max-width: 1280px; margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 500 .9375rem/1 var(--display);
  padding: 1.05em 1.6em; border-radius: 999px;
  text-decoration: none; border: 1.5px solid var(--yeti-deep); cursor: pointer;
  transition: background-color .2s;
}
.btn-primary { background: var(--yeti-deep); color: #fff; }
.btn-primary:hover { background: #435869; }
.btn-ghost { background: transparent; color: var(--yeti-deep); }
.btn-ghost:hover { background: var(--fog); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 18px; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo img { width: 72px; height: 72px; }
.logo b { display: block; font: 600 1.4375rem/1.1 var(--display); }
.logo small { display: block; margin-top: 2px; font: 400 .9375rem/1.4 var(--body); color: var(--muted); }
.top nav { display: flex; gap: 1.5rem; align-items: center; font-size: .9375rem; }
.top nav a { text-decoration: none; white-space: nowrap; }
.top nav a:hover { color: var(--yeti-deep); }
.lang { display: flex; background: var(--fog); border-radius: 999px; padding: 3px; font: 500 .75rem/1 var(--display); }
.lang a { padding: .5em .8em; border-radius: 999px; text-decoration: none; color: var(--muted); }
.lang a[aria-current] { background: #fff; color: var(--ink); }
.top nav .ig { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--fog); color: var(--ink); transition: background-color .2s, color .2s; }
.top nav .ig:hover { background: var(--yeti-deep); color: #fff; }
.ig svg { width: 18px; height: 18px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: 24px 24px; }
.hero h1 { font-size: clamp(1.875rem, 3.8vw, 3.125rem); font-weight: 600; letter-spacing: -0.02em; max-width: 16ch; }
.hero .lede { font-size: 1.125rem; margin-top: 1.25rem; }
.mk-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 38rem; }
.mk-list a { display: block; padding: .4em .95em; border-radius: 999px; background: #fff; border: 1px solid #DCE3E8; font-size: .875rem; text-decoration: none; transition: border-color .2s, color .2s; }
.mk-list a:hover { border-color: var(--yeti); color: var(--yeti-deep); }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.hero .actions .btn { padding: 1em 1.5em; }
/* смужка довіри: рейтинг, графік, адреса */
.trust { list-style: none; margin: 2rem 0 0; padding: 14px 6px; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; background: #fff; border-radius: 20px; box-shadow: 0 10px 30px -18px rgba(62,72,82,.35); width: fit-content; max-width: 100%; }
.trust li { padding: 2px 18px; display: grid; gap: 4px; }
.trust li + li { border-left: 1px solid #E3E8EC; }
.trust b { display: flex; align-items: center; gap: 6px; font: 500 .9375rem/1.2 var(--display); white-space: nowrap; }
.trust small { font-size: .8125rem; line-height: 1.3; color: var(--muted); }
.trust svg { width: 16px; height: 16px; color: var(--yeti); flex: none; }
.stars {
  font-size: .75rem; letter-spacing: 1px;
  /* 4,5 з 5: зірки зафарбовані на 90% ширини, остання — наполовину */
  background: linear-gradient(90deg, #D9976A 90%, #DDE3E8 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.trust .rating { display: grid; gap: 4px; color: inherit; text-decoration: none; }
.trust .rating small { white-space: nowrap; }
.trust .rating:hover small { color: var(--yeti-deep); text-decoration: underline; }

.vessel { position: relative; aspect-ratio: 4 / 5; width: 100%; max-width: 500px; justify-self: center; align-self: start; margin: 16px 0 0; isolation: isolate; }
.vessel .clip {
  width: 100%; height: 100%; overflow: hidden;
  clip-path: url(#vessel);
  transform-origin: 50% 100%;
  animation: throw 1.1s cubic-bezier(.2,.8,.2,1) both;
}
/* фото збільшене від верхнього краю, тому ваза на ньому сидить нижче у формі */
.vessel img { width: 100%; height: 100%; object-fit: cover; scale: 1.14; transform-origin: 50% 0; }
.vessel::before {
  content: ""; position: absolute; inset: 8% -5% -3% 6%;
  background: var(--sky); border-radius: 50% 50% 46% 46% / 40% 40% 60% 60%; z-index: -1;
}
@keyframes throw {
  from { transform: scaleY(.2) scaleX(1.2); opacity: 0; }
  60%  { opacity: 1; }
  to   { transform: none; }
}

/* Formats */
.formats { padding-block: 40px 80px; }
.formats header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 3rem; margin-bottom: 40px; }
.formats header p { margin: 0; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.tile { background: var(--g, #fff); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.tile.lead { grid-column: 1 / -1; flex-direction: row; }
.tile .pic { position: relative; aspect-ratio: 4 / 3; background: var(--fog); }
.tile.lead .pic { aspect-ratio: auto; flex: 1; min-height: 340px; }
.tile .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* м'який «патьок глазурі» на межі фото і тексту */
.tile .pic::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 22px;
  background: var(--g, #fff);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 22' preserveAspectRatio='none'%3E%3Cpath d='M0 12C20 12 24 3 44 3S70 16 92 16 118 1 142 1 172 14 196 14 222 5 246 5 280 12 300 10V22H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 22' preserveAspectRatio='none'%3E%3Cpath d='M0 12C20 12 24 3 44 3S70 16 92 16 118 1 142 1 172 14 196 14 222 5 246 5 280 12 300 10V22H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100%;
}
.tile.lead .pic::after { display: none; }
.tile .body { padding: 16px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.tile.lead .body { flex: 1.1; padding: 40px 48px; justify-content: center; }
.tile.lead .facts { margin: 0 0 1.5rem; }
.tile.lead .facts li { background: rgba(255,255,255,.7); }
.tile.lead .price { margin-top: 0; }
.tile.lead h3 { font-size: 1.5rem; }
.tile h3 { margin-bottom: .5rem; }
.tile p { font-size: .9375rem; margin-bottom: 1.25rem; }
.tile .price { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.tile .price b { font: 500 1.125rem/1 var(--display); }
.tile .price span { font-size: .875rem; color: var(--muted); }
.tile .price .tbd { font-style: italic; }
.tag { align-self: start; margin-bottom: .875rem; padding: .35em .9em; border-radius: 999px; background: rgba(255,255,255,.75); font-size: .8125rem; }
/* вся картка клікабельна й відкриває детальний опис */
[data-mk] { cursor: pointer; transition: transform .25s, box-shadow .25s; }
[data-mk]:hover { transform: translateY(-4px); box-shadow: 0 14px 32px -18px rgba(62,72,82,.45); }
.more { align-self: start; margin-top: 1rem; padding: 0; border: 0; background: none; cursor: pointer; font: 500 .875rem/1 var(--display); color: var(--yeti-deep); }
.more::after { content: " →"; }
.details { display: none; }
.note { padding: .75em 1em; border-radius: 14px; background: #FBF3EC; font-size: .9063rem !important; margin-top: 1.25rem; }

/* Детальний опис майстер-класу */
dialog.mk { border: 0; padding: 0; border-radius: var(--r-lg); width: min(900px, calc(100% - 32px)); max-height: calc(100dvh - 32px); background: #fff; color: var(--ink); overflow: auto; }
dialog.mk[open] { animation: pop .25s cubic-bezier(.2,.8,.2,1); }
dialog.mk::backdrop { background: rgba(62,72,82,.45); backdrop-filter: blur(4px); }
html:has(dialog[open]) { overflow: hidden; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.mk-inner { display: grid; grid-template-columns: 1fr 1.25fr; }
.mk-pic img { width: 100%; height: 100%; object-fit: cover; }
.mk-text { padding: clamp(24px, 4vw, 44px); }
.mk-text h3 { font-size: clamp(1.25rem, 2.4vw, 1.625rem); padding-right: 40px; }
.mk-text h4 { font: 500 .9375rem/1.3 var(--display); margin: 1.5rem 0 .5rem; }
.mk-text p, .mk-text li { font-size: .9688rem; }
.mk-text .btn { margin-top: 1.75rem; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 1rem 0 1.25rem; }
.facts li { padding: .35em .9em; border-radius: 999px; background: var(--fog); font-size: .875rem; }
.points { margin: 0; padding-left: 1.2em; max-width: var(--measure); }
.points li { margin-bottom: .35em; }
.mk-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.mk-close:hover { background: var(--fog); }

/* Роботи гостей */
.works { background: var(--fog); padding-block: 80px; border-radius: 48px; margin-inline: clamp(0px, 2vw, 24px); margin-bottom: 40px; }
.works header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 3rem; margin-bottom: 40px; }
.works header p { margin: 0; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 21vw, 290px); grid-auto-flow: dense; gap: 16px; }
.gallery li { border-radius: var(--r-md); overflow: hidden; background: var(--sky); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery li:hover img { transform: scale(1.04); }
.works .more-link { margin: 28px 0 0; font: 500 .9375rem/1 var(--display); }
.works .more-link a { color: var(--yeti-deep); text-decoration: none; }
.mentor { display: flex; align-items: center; gap: 14px; margin-top: 1.5rem; }
.mentor img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 42%; }
.mentor span { font-size: .9375rem; line-height: 1.45; }
.mentor small { display: block; color: var(--muted); font-size: .875rem; }

/* Courses */
.courses { padding-block: 40px; }
.courses header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 3rem; margin-bottom: 40px; }
.courses header p { margin: 0; color: var(--muted); }
.course-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
#course-owner { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
#course-owner .c-pic { min-height: 340px; }
#course-owner .c-body { padding: 40px 48px; justify-content: center; }
#course-owner h3 { font-size: 1.5rem; }
.course { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: #fff; border-radius: var(--r-md); padding: 20px 24px; }
.course h3 { font-size: 1rem; }
.course p { margin: 2px 0 0; font-size: .875rem; color: var(--muted); }
.course b { font: 500 1.125rem/1 var(--display); white-space: nowrap; }
.course.feature { display: grid; grid-template-columns: minmax(150px, .8fr) 1.2fr; gap: 0; padding: 0; overflow: hidden; align-items: stretch; background: var(--g, #F7EBE2); }
.course.feature .price { margin-top: .75rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.course.feature .price span { font-size: .875rem; color: var(--muted); }
.course.feature .c-pic { position: relative; min-height: 220px; }
.course.feature .c-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.course.feature .c-body { padding: 24px; display: flex; flex-direction: column; }
.course.feature h3 { font-size: 1.125rem; }
.course.feature p { color: var(--ink); margin-top: .5rem; }
.course.feature .mentor { margin-top: 1rem; }
.course.feature .mentor img { width: 44px; height: 44px; }

/* Booking: темний блок, щоб завершити сторінку контрастно й тепло */
.booking { --night: #3A4857; background: var(--night); color: #E6ECF0; position: relative; overflow: hidden; isolation: isolate; padding-block: 96px; border-radius: 48px 48px 0 0; }
.booking::before, .booking::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.booking::before { width: 640px; height: 640px; right: -220px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(228,181,149,.32), rgba(228,181,149,0) 70%); }
.booking::after { width: 520px; height: 520px; left: -260px; top: 45%; border-radius: 50%; background: radial-gradient(circle, rgba(111,139,163,.55), rgba(111,139,163,0) 70%); }
.booking .row { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.booking h2 { color: #fff; }
.b-lede { margin-top: 1rem; color: rgba(230,236,240,.75); }
.steps { list-style: none; padding: 0; margin: 1.75rem 0 2rem; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.75rem 1fr; align-items: center; padding: 6px 0; max-width: var(--measure); }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--pot); font: 500 .875rem/1 var(--display); color: var(--ink);
}
.b-contacts { list-style: none; padding: 1.5rem 0 0; margin: 0 0 2rem; display: grid; gap: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.b-contacts li { display: flex; align-items: center; gap: 14px; }
.b-contacts svg { flex: none; width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: rgba(255,255,255,.08); stroke: var(--pot); }
.b-contacts small { display: block; font-size: .8125rem; color: rgba(230,236,240,.7); }
.b-contacts a { text-decoration: none; }
.b-contacts .phone { font: 500 1.375rem/1.3 var(--display); color: #fff; }
.btn-peach { background: var(--pot); border-color: var(--pot); color: var(--ink); }
.btn-peach:hover { background: #EDC6AA; }

form { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; grid-template-columns: 1fr 1fr; box-shadow: 0 40px 80px -40px rgba(0,0,0,.55); }
form h3 { font-size: 1.25rem; margin-bottom: 4px; }
form .full { grid-column: 1 / -1; }
label { display: grid; gap: 6px; font-size: .875rem; font-weight: 600; }
input, select, textarea {
  font: 400 1rem/1.4 var(--body); color: var(--ink);
  padding: .8em 1em; border: 1.5px solid #D5DDE3; border-radius: 14px; background: var(--mist); width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--yeti); outline: none; box-shadow: 0 0 0 3px rgba(111,139,163,.25); background: #fff; }
textarea { resize: vertical; min-height: 92px; }
.form-note { font-size: .8125rem; color: var(--muted); margin: 0; }
.sent { grid-column: 1 / -1; display: none; padding: 16px; background: var(--fog); border-radius: 14px; margin: 0; }
form.is-sent .sent { display: block; }
.send-error { grid-column: 1 / -1; display: none; padding: 16px; background: #FBEAE4; color: #7A3B26; border-radius: 14px; margin: 0; }
form.is-error .send-error { display: block; }
button[disabled] { opacity: .7; cursor: progress; }
/* поле-пастка для спам-ботів: людям не видно */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Карта в блоці запису: статична картинка (легка), клік — маршрут у Google Maps */
.map { position: relative; display: block; max-width: 520px; margin: 0 0 1.75rem; border-radius: 20px; overflow: hidden; box-shadow: 0 18px 40px -24px rgba(0,0,0,.6); }
.map img { width: 100%; height: auto; transition: scale .5s; }
.map:hover img { scale: 1.03; }
.map-btn { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: .65em 1.1em; border-radius: 999px; background: #fff; color: var(--ink); font: 500 .8125rem/1 var(--display); box-shadow: 0 6px 18px -8px rgba(0,0,0,.4); }
.map-btn svg { width: 16px; height: 16px; color: var(--yeti-deep); }

/* Компактний футер: бренд, навігація, соцмережі. Контакти — у блоці запису вище, тут не дублюємо */
footer { background: #3A4857; color: rgba(230,236,240,.7); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-block: 36px 28px; border-top: 1px solid rgba(255,255,255,.08); }
.foot-brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.foot-brand img { width: 48px; height: 48px; }
.foot-brand b { display: block; font: 600 1.0625rem/1.15 var(--display); }
.foot-brand small { display: block; font-size: .8125rem; color: rgba(230,236,240,.7); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .9375rem; }
.foot-nav a { color: rgba(230,236,240,.85); text-decoration: none; }
.foot-nav a:hover { color: #fff; }
.foot-social { display: flex; gap: 10px; }
.foot-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--pot); transition: background-color .2s, color .2s; }
.foot-social a:hover { background: var(--pot); color: var(--ink); }
.foot-social svg { width: 18px; height: 18px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 0 28px; font-size: .8125rem; }
.foot-bottom a { color: rgba(230,236,240,.85); text-decoration: none; }
.foot-bottom a[aria-current] { color: #fff; font-weight: 600; }

/* Мобільна карусель майстер-класів: крапки-індикатор */
.dots { display: none; justify-content: center; margin-top: -4px; }
.dots button { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.dots button::after { content: ""; position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; translate: -50% -50%; border-radius: 999px; background: #C9D3DB; transition: width .25s, background-color .25s; }
.dots button[aria-current="true"]::after { width: 20px; background: var(--yeti-deep); }

/* Закріплена кнопка запису на мобілці */
.sticky-cta { display: none; }

/* логотип і всі пункти меню не вміщаються в рядок: лишаємо тільки мови й Instagram */
@media (max-width: 1080px) {
  .top nav > a:not(.btn):not(.ig) { display: none; }
  .top nav { gap: .75rem; }
}
@media (max-width: 960px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.lead { flex-direction: column; }
  .tile.lead .pic { aspect-ratio: 4 / 3; min-height: 0; flex: none; }
  .tile.lead .pic::after { display: block; }
  .tile.lead .body { padding: 16px 24px 24px; }
}
@media (max-width: 860px) {
  .logo img { width: 56px; height: 56px; }
  .logo b { font-size: 1.1875rem; }
  .logo small { font-size: .8438rem; }
  .hero, .booking .row { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; width: 100%; padding: 6px 4px; }
  .trust li { padding: 10px 16px; }
  .trust li + li { border-left: 0; border-top: 1px solid #E3E8EC; }
  .course-list { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(160px, 44vw, 320px); gap: 12px; }
  .mk-inner { grid-template-columns: 1fr; }
  .mk-pic img { aspect-ratio: 16 / 10; height: auto; }
  .works { border-radius: 32px; }
  .vessel { max-width: 200px; order: -1; margin-top: 0; }
  .hero { padding-top: 8px; }
  form { grid-template-columns: 1fr; }
  .booking { border-radius: 32px 32px 0 0; }
  .sticky-cta {
    display: flex; gap: 8px; position: fixed; z-index: 50;
    left: var(--gutter); right: var(--gutter); bottom: calc(12px + env(safe-area-inset-bottom));
    translate: 0 calc(100% + 32px); transition: translate .3s cubic-bezier(.2,.8,.2,1);
  }
  .sticky-cta.is-shown { translate: 0 0; }
  .sticky-cta .btn { flex: 1; box-shadow: 0 12px 28px -10px rgba(40,52,64,.55); }
  .sticky-cta .tg { flex: none; width: 52px; padding: 0; background: #fff; border-color: #fff; color: var(--yeti-deep); box-shadow: 0 12px 28px -10px rgba(40,52,64,.45); }
  .sticky-cta .tg svg { width: 22px; height: 22px; }
}
@media (max-width: 600px) {
  .tiles {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 6px var(--gutter) 14px;
  }
  .tiles::-webkit-scrollbar { display: none; }
  .tile { flex: 0 0 84%; scroll-snap-align: start; }
  .tile.lead .facts { display: none; }
  .tile.lead h3 { font-size: 1.0625rem; }
  /* короткий опис на картці — до 3 рядків, повний текст у вікні «Детальніше» */
  .tile .body > p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  [data-mk]:hover { transform: none; box-shadow: none; }
  .dots { display: flex; }
  .course.feature { grid-template-columns: 1fr; }
  .foot { flex-direction: column; align-items: flex-start; }
  .course.feature .c-pic { min-height: 0; }
  #course-owner { grid-template-columns: 1fr; }
  #course-owner .c-pic { min-height: 0; }
  #course-owner .c-body { padding: 24px; }
  .course.feature .c-pic img { position: static; aspect-ratio: 16 / 9; height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .vessel .clip, dialog.mk[open] { animation: none; }
  .sticky-cta { transition: none; }
  [data-mk], .gallery img { transition: none; }
  html { scroll-behavior: auto; }
}
