@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("fonts/jost-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("fonts/jost-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 {
  --ink: #111;
  --paper: #fff;
  --blue: #5a5aff;
  --green: #1fb14c;
  --muted: #5c5c5c;
  --soft: #f4f4f1;
  --line: 3px;
  --pad: clamp(20px, 5vw, 72px);
  --top-h: 68px;
}

* { box-sizing: border-box; }

html { scroll-padding-top: calc(var(--top-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

h1, h2, h3 { margin: 0; font-weight: 300; line-height: 1.05; }
h1 {
  font-size: clamp(40px, 6.4vw, 110px);
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: .95;
}
h2 { font-size: clamp(34px, 5vw, 64px); text-transform: uppercase; letter-spacing: .02em; }
h3 { font-size: 24px; font-weight: 500; line-height: 1.2; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 30; }
.skip:focus { left: 0; }

/* Шапка */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: var(--top-h);
  padding: 0 var(--pad);
  background: var(--paper);
  border-bottom: var(--line) solid var(--ink);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: 15px; font-weight: 500; white-space: nowrap; }
.brand:hover { color: inherit; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav a:not(.btn) { text-decoration: none; text-transform: uppercase; letter-spacing: .1em; font-size: 14px; padding: 8px 0; }
.burger { display: none; }

.btn {
  display: inline-block;
  padding: 16px 28px;
  border: var(--line) solid var(--ink);
  background: var(--blue);
  color: #fff;
  font: inherit; font-size: 15px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn--small { padding: 9px 18px; font-size: 13px; }
.btn--light { background: var(--paper); color: var(--ink); }
.link { font-size: 15px; text-transform: uppercase; letter-spacing: .1em; }

.eyebrow, .num { text-transform: uppercase; letter-spacing: .18em; font-size: 14px; font-weight: 500; }

/* Первый экран */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: var(--line);
  background: var(--ink);
  border-bottom: var(--line) solid var(--ink);
}
.hero > * { background: var(--paper); }
.hero__text { padding: clamp(40px, 7vw, 104px) var(--pad); display: flex; flex-direction: column; justify-content: center; }
.hero__text .eyebrow { margin-bottom: 22px; }
.hero__lead { font-size: clamp(20px, 2.2vw, 28px); font-weight: 300; margin: 26px 0 0; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 40px; }
.hero__art { grid-row: span 2; min-height: 320px; position: relative; }
.hero__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 100%; }
.hero__place { display: none; }
.hero__place,
.hero__accent { grid-column: 1; }
.hero__place {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 32px;
  padding: 26px var(--pad);
  background: var(--green); color: #fff;
  font-size: 19px;
}
.hero__place p { margin: 0; }
.hero__address { font-weight: 500; }
.hero__accent { display: none; }

/* Разделы */
.section { padding: clamp(56px, 8vw, 120px) var(--pad); border-bottom: var(--line) solid var(--ink); }
.section__head { display: flex; align-items: baseline; gap: 24px; margin-bottom: clamp(32px, 4.5vw, 64px); }
.section__head .num { margin: 0; color: var(--blue); }
.note { max-width: 62ch; margin-top: 36px; color: var(--muted); }
.lead { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.3; font-weight: 300; }

.about__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); }
.about__text { max-width: 760px; }
.about__text h3 { margin: 36px 0 16px; }
.about__photo { border: var(--line) solid var(--ink); }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; background: var(--green); border: 2px solid var(--ink); }
.ticks li:nth-child(even)::before { background: var(--blue); }

/* Сетки с чёрными линиями */
.cards, .prices, .days, .people, .gallery, .offers {
  display: grid;
  gap: var(--line);
  background: var(--ink);
  border: var(--line) solid var(--ink);
}
.cards > *, .prices > *, .days > *, .people > *, .gallery > *, .offers > * { background: var(--paper); }

.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-bottom: var(--line) solid var(--ink); }
.card h3 { padding: 24px 24px 0; }
.card p { padding: 10px 24px 28px; color: var(--muted); }

.band { border-bottom: var(--line) solid var(--ink); background: #2b2b2b; }
.band img { width: 100%; max-height: 520px; object-fit: cover; }

.days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.day { padding: 26px 24px 30px; }
.day h3 { text-transform: uppercase; letter-spacing: .12em; font-size: 16px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: var(--line) solid var(--ink); }
.day dl { margin: 0; }
.day dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #d9d9d4; }
.day dl div:last-child { border-bottom: 0; }
.day dt { font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
.day dd { margin: 0; color: var(--muted); white-space: nowrap; }
.day--accent { grid-column: 1 / -1; background: var(--blue); color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 40px; padding-block: 22px; }
.day--accent h3 { border: 0; padding: 0; margin: 0; }
.day--accent dl { display: flex; flex-wrap: wrap; gap: 6px 48px; }
.day--accent dl div { padding: 0; gap: 20px; border: 0; }
.day--accent dd { color: #fff; }

.prices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prices li { padding: 30px 28px 34px; }
.prices h3 { text-transform: uppercase; letter-spacing: .12em; font-size: 16px; }
.price { font-size: clamp(40px, 4.6vw, 64px); font-weight: 300; line-height: 1.1; margin: 14px 0 10px; white-space: nowrap; }
.prices li p:not(.price) { color: var(--muted); }
.prices li:nth-child(2) { background: var(--green); color: #fff; }
.prices li:nth-child(2) p:not(.price) { color: #fff; }

.people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.people li { padding: 32px 28px 36px; }
.people img { width: min(220px, 70%); margin: 0 0 22px -8px; }
.people h3 { margin-bottom: 12px; }
.role { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 500; color: var(--blue); margin: -6px 0 12px; }
.people p { font-size: 17px; color: #333; }

.gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery__wide, .gallery__cta { grid-column: 1 / -1; }
.gallery figure { display: flex; flex-direction: column; }
.gallery img { width: 100%; object-fit: cover; }
.gallery figure:not(.gallery__wide) img { aspect-ratio: 1 / 1; }
.gallery figcaption { flex: 1; padding: 10px 14px; background: var(--paper); border-top: var(--line) solid var(--ink); font-size: 15px; line-height: 1.3; }
.gallery__cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; padding: 28px; background: var(--blue); color: #fff; font-size: clamp(22px, 2.2vw, 28px); font-weight: 300; line-height: 1.25; }
.gallery__cta p { margin: 0; }

/* Интенсивы, события */
.offers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.offers > li { padding: 30px 28px 34px; }
.offers > li:first-child { background: var(--soft); }
.offers h3 { margin-bottom: 14px; }
.offers .ticks { margin-top: 16px; font-size: 17px; }
.timeline li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: var(--line) solid var(--ink); max-width: 980px; }
.timeline li:last-child { border-bottom: var(--line) solid var(--ink); }
.timeline b { font-weight: 300; font-size: 28px; line-height: 1.1; color: var(--blue); font-variant-numeric: tabular-nums; }
.timeline p { margin: 0; }

/* Контакты */
.contact { background: var(--soft); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.facts { margin: 0; }
.facts div { position: relative; padding: 18px 0 18px 52px; border-top: var(--line) solid var(--ink); }
.ico { position: absolute; left: 0; top: 22px; width: 32px; height: 32px; }
.facts div:last-child { border-bottom: var(--line) solid var(--ink); }
.facts dt { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: clamp(20px, 2vw, 26px); font-weight: 300; line-height: 1.3; overflow-wrap: anywhere; }
.facts dd a { text-decoration: none; }
.facts dd .link { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 500; text-decoration: underline; }

.form { background: var(--paper); border: var(--line) solid var(--ink); padding: clamp(24px, 3.4vw, 44px); }
.form h3 { font-size: 28px; font-weight: 300; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.form__hint { color: var(--muted); margin-bottom: 22px; }
.form__hint--small { font-size: 15px; margin: 18px 0 0; }
.form .btn { width: 100%; }
.form__alt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.form__alt .btn { padding: 14px 10px; font-size: 13px; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding: 28px var(--pad); font-size: 15px; background: var(--ink); color: #fff; }
.foot p { margin: 0; }
.foot a:hover { color: #fff; text-decoration-thickness: 2px; }

/* Планшет */
@media (max-width: 1240px) {
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 46px; height: 46px; padding: 0 9px;
    background: none; border: var(--line) solid var(--ink); cursor: pointer;
  }
  .burger span { display: block; height: 3px; background: var(--ink); transition: transform .15s, opacity .15s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: var(--line) solid var(--ink);
    padding: 8px var(--pad) 24px;
    max-height: calc(100vh - var(--top-h)); overflow: auto;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 15px 0; font-size: 16px; border-bottom: 1px solid #d9d9d4; }
  .nav .btn { margin-top: 20px; padding: 15px 18px; font-size: 15px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offers { grid-template-columns: minmax(0, 1fr); }
  .people { grid-template-columns: minmax(0, 1fr); }
  .people li { display: grid; grid-template-columns: 160px minmax(0, 1fr); column-gap: 24px; align-items: start; }
  .people img { grid-row: span 2; width: 100%; margin: 0; }
}

/* Телефон */
@media (max-width: 760px) {
  body { font-size: 17px; }
  :root { --top-h: 60px; }
  .brand img { width: 38px; height: 38px; }
  .brand { font-size: 13px; letter-spacing: .1em; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: clamp(34px, 12.2vw, 84px); }
  .hero__art { grid-row: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .link { text-align: center; }
  .section__head { flex-direction: column; gap: 8px; }
  .cards, .prices, .contact__grid, .form__alt { grid-template-columns: minmax(0, 1fr); }
  .timeline li { grid-template-columns: 64px minmax(0, 1fr); }
  .timeline b { font-size: 22px; }
  .gallery figcaption { font-size: 13px; padding: 8px 10px; }
  .card img { aspect-ratio: 1 / 1; }
  .days { grid-template-columns: minmax(0, 1fr); }
  .people li { display: block; }
  .people img { width: 150px; margin: 0 0 16px -6px; }
  .foot { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
