@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-normal.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: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-600-normal.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: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-cyrillic-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-400-normal.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: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-cyrillic-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-600-normal.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,
[data-theme="parus"] {
  --bg: #accab2;
  --plane: #ffffff;
  --accent: #e9a752;
  --action: #d44720;
  --on-action: #ffffff;
  --price: #d44720;
  --muted: #7b6e4d;
  --ink: #1c1916;
  --white: #ffffff;
  --radius: 14px;
  --measure: 38rem;
  --page: 1120px;
}

[data-theme="paper"] {
  --bg: #ffffff;
  --plane: #accab2;
  --accent: #e9a752;
  --action: #d44720;
  --on-action: #ffffff;
  --price: #d44720;
  --muted: #7b6e4d;
}

[data-theme="honey"] {
  --bg: #e9a752;
  --plane: #ffffff;
  --accent: #accab2;
  --action: #d44720;
  --on-action: #ffffff;
  --price: #d44720;
  --muted: #7b6e4d;
}

[data-theme="sage"] {
  --bg: #accab2;
  --plane: #ffffff;
  --accent: #7b6e4d;
  --action: #e9a752;
  --on-action: #1c1916;
  --price: #d44720;
  --muted: #7b6e4d;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Sans 3", "Liberation Sans", sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.65;
}

body.lightbox-open {
  overflow: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--price);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

.wrap {
  width: min(var(--page), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  padding: 1.15rem 0 1rem;
  border-bottom: 1px solid var(--muted);
}

.bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  background: #fff;
  border-radius: 22%;
  box-shadow: 0 0.15rem 0.45rem rgba(28, 25, 22, 0.16);
}

.brand-mark.is-circle {
  border-radius: 50%;
}

.brand-mark img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.brand {
  margin-right: auto;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.nav {
  display: flex;
  flex: 1;
  flex-wrap: nowrap;
  gap: 0.35rem;
  min-width: 0;
  overflow-x: auto;
}

.nav a {
  display: inline-block;
  flex: 0 0 auto;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--ink);
}

.nav a[aria-current="page"] {
  background: var(--accent);
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--action);
  color: var(--on-action);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--action);
  filter: brightness(0.94);
}

.home {
  padding: 0 0 5.5rem;
}

.home h1 {
  margin: 0;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(3.6rem, 8.4vw, 7rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.035em;
}

.directions {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.direction {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.9fr);
  gap: 1.25rem 2.5rem;
  align-items: end;
  padding: 1.7rem 1.8rem 1.55rem;
  border-radius: var(--radius);
  background: var(--plane);
  text-decoration: none;
  color: var(--ink);
}

.direction:hover {
  box-shadow: 0 0 0 2px var(--accent);
}

.direction-title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.direction-facts {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.4;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 1.75rem;
  margin-top: 2.75rem;
}

.hero {
  position: relative;
  height: clamp(16rem, 42vw, 28rem);
  background: #1c1916;
}

.hero-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-slide.is-on {
  opacity: 1;
}

.hero-logo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  margin: 0;
  padding-inline: max(1.25rem, calc((100% - 1120px) / 2));
  transform: translateY(50%);
  pointer-events: none;
}

.hero-logo.is-left {
  justify-content: flex-start;
}

.hero-logo.is-left span {
  margin-left: 1rem;
}

.hero-logo.is-center {
  justify-content: center;
}

.hero-logo.is-right {
  justify-content: flex-end;
}

.hero-logo span {
  display: grid;
  place-items: center;
  width: clamp(4.6rem, 22vw, 7.25rem);
  aspect-ratio: 1;
  background: #fff;
  box-shadow: 0 0.45rem 1.2rem rgba(28, 25, 22, 0.18);
}

.hero-logo.is-rounded span {
  border-radius: 22%;
}

.hero-logo.is-circle span {
  border-radius: 50%;
}

.hero-logo img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.page-head {
  max-width: 46rem;
  padding: 3.6rem 0 0.4rem;
}

.page-head h1 {
  margin: 0;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(3.1rem, 7vw, 5.6rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.program {
  margin: 1rem 0 0;
  color: var(--muted);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 500;
  line-height: 1.15;
}

.age {
  margin: 1.15rem 0 0;
}

.age span,
.chip {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  background: var(--plane);
  color: var(--muted);
  line-height: 1.35;
}

.block {
  padding-top: 3.1rem;
}

.block h2,
.section-title {
  margin: 0 0 1.35rem;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.block h2 span,
.section-title span {
  background: var(--accent);
  border-radius: var(--radius);
  padding: 0.04em 0.42em 0.1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.prose {
  max-width: var(--measure);
}

.prose p,
.lead {
  margin: 0 0 1.05rem;
  text-wrap: pretty;
}

.ruled {
  max-width: var(--measure);
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.ruled li {
  padding: 0.95rem 0;
  border-top: 1px solid var(--muted);
}

.ruled li:last-child {
  border-bottom: 1px solid var(--muted);
}

.price-line,
.ruled p {
  margin: 0;
}

.price-note {
  margin-top: 0.28rem;
  color: var(--muted);
}

.sum {
  color: var(--price);
  font-weight: 600;
}

.gallery {
  width: min(var(--page), calc(100% - 2.5rem));
  margin-inline: auto;
  padding-top: 3.4rem;
  padding-bottom: 4.8rem;
}

.page-gallery {
  padding-bottom: 4rem;
}

.page-gallery .gallery {
  width: auto;
  margin: 0;
  padding-top: 1.6rem;
  padding-bottom: 0;
}

.page-gallery .gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.shot {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  cursor: pointer;
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.shot:hover img {
  opacity: 0.94;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.6rem;
  padding: 2.6rem 0 0.4rem;
}

.address {
  margin: 0;
  color: var(--ink);
  font-size: 1.2rem;
}

.contacts {
  max-width: 40rem;
  padding-bottom: 4.8rem;
}

.contacts-phone {
  margin: 1.6rem 0 0;
}

.contacts-phone .phone {
  font-size: 1.6rem;
}

.places {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.places li {
  padding: 1.15rem 0;
  border-top: 1px solid var(--muted);
}

.places li:last-child {
  border-bottom: 1px solid var(--muted);
}

.place-name {
  margin: 0 0 0.3rem;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.1;
}

.places .btn-map {
  margin-top: 0.85rem;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  margin: 2rem 0 0;
}

.social a {
  color: var(--muted);
  font-size: 1.2rem;
  text-underline-offset: 0.22em;
}

.btn-map {
  background: var(--plane);
  color: var(--muted);
}

.btn-map:hover {
  background: var(--plane);
  color: var(--ink);
  filter: none;
}

.phone {
  color: var(--muted);
  font-size: 1.2rem;
  text-underline-offset: 0.22em;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: center;
  background: rgba(28, 25, 22, 0.94);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-frame {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  padding: 0.5rem;
}

.lightbox-frame img {
  max-width: min(92vw, 1400px);
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-prev,
.lightbox-next,
.lightbox-close {
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  line-height: 1;
  cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
  width: 3.25rem;
  height: 5rem;
  margin: 0 0.7rem;
  font-size: 2.6rem;
}

.lightbox-prev {
  grid-column: 1;
  grid-row: 2;
}

.lightbox-next {
  grid-column: 3;
  grid-row: 2;
}

.lightbox-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
  background: var(--accent);
}

.lightbox-count {
  grid-column: 1 / -1;
  grid-row: 3;
  justify-self: center;
  margin: 0 0 1rem;
}

.lightbox-count span {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
}

@media (min-width: 801px) {
  body:has(main > .gallery) .site-header .wrap {
    width: min(86rem, calc(100% - 3rem));
    max-width: none;
    padding-inline: 0;
  }

  main:has(> .gallery) {
    display: grid;
    grid-template-columns: minmax(0, 38rem) minmax(0, 46rem);
    justify-content: center;
    align-items: start;
    column-gap: clamp(1.75rem, 3vw, 2.75rem);
    width: min(86rem, calc(100% - 3rem));
    margin-inline: auto;
  }

  main:has(> .gallery) > .wrap {
    width: auto;
    max-width: none;
    margin: 0;
    padding-left: 0;
  }

  main:has(> .gallery) .page-head,
  main:has(> .gallery) .prose,
  main:has(> .gallery) .ruled {
    max-width: none;
  }

  main:has(> .gallery) > .gallery {
    width: auto;
    margin: 0;
    padding-top: 3.6rem;
    padding-right: 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 800px) {
  .wrap,
  .gallery {
    width: min(var(--page), calc(100% - 1.5rem));
  }

  .site-header {
    padding: 0.7rem 0;
  }

  .bar {
    gap: 0.45rem;
  }

  .brand-mark {
    width: 2.2rem;
    height: 2.2rem;
  }

  .nav {
    flex-wrap: wrap;
    overflow: visible;
  }

  .nav a {
    padding: 0.3rem 0.45rem;
    font-size: 0.78rem;
    line-height: 1.2;
  }

  .direction {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 1.25rem 1.15rem 1.2rem;
  }

  .page-gallery .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home {
    padding: 0 0 3.4rem;
  }

  .hero {
    height: clamp(13rem, 62vw, 18rem);
  }

  .hero-logo {
    padding-inline: 0.75rem;
  }

  .home h1 {
    font-size: clamp(3rem, 16vw, 4.4rem);
  }

  .page-head {
    padding-top: 2.2rem;
  }

  .contact .address,
  .contact .btn {
    flex: 1 1 100%;
  }

  .contact .btn {
    width: 100%;
  }

  .lightbox-prev,
  .lightbox-next {
    position: absolute;
    top: 50%;
    z-index: 1;
    width: 2.7rem;
    height: 4.2rem;
    margin: 0;
    transform: translateY(-50%);
  }

  .lightbox-prev {
    left: 0.4rem;
  }

  .lightbox-next {
    right: 0.4rem;
  }

  .lightbox-frame img {
    max-width: 100vw;
    max-height: 78vh;
    border-radius: 0;
  }
}
