:root {
  --paper: #f3efe6;
  --paper-2: #e7e0d2;
  --ink: #17211e;
  --muted: #5d675f;
  --line: rgba(23, 33, 30, 0.14);
  --green: #1b4f44;
  --green-deep: #12382f;
  --brass: #a68456;
  --card: #fbf8f2;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --shadow: 0 30px 70px rgba(23, 33, 30, 0.14);
  --nav: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 90% -10%, rgba(166, 132, 86, 0.16), transparent 55%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.02; margin: 0; }
p { margin: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 50;
}
.skip:focus { top: 12px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--nav);
  padding: 12px 32px 12px 16px;
  background: rgba(243, 239, 230, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.brand img {
  height: 46px;
  width: auto;
  border-radius: 14px;
  background: #fff;
}
.nav nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  position: relative;
}
.nav nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.nav nav a:hover::after,
.nav nav a:focus-visible::after { transform: scaleX(1); }
.lang {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}
.lang button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
}
.lang button[aria-pressed="true"] {
  background: var(--green);
  color: #f6f3ec;
}
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  margin: 0 auto;
}
.menu-icon::before, .menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-icon::before { top: -5px; }
.menu-icon::after { top: 5px; }

.hero, .services, .gallery, .about, .prices, .contacts, .footer {
  width: min(1180px, calc(100% - 10vw));
  margin-inline: auto;
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: end;
  padding: 42px 0 28px;
  min-height: calc(100vh - var(--nav));
}
.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brass);
  margin-bottom: 16px;
}
.hero h1 { font-size: clamp(3.1rem, 6.4vw, 6.15rem); }
.mask { display: block; overflow: hidden; }
.mask > span {
  display: block;
  animation: rise-in 1s cubic-bezier(0.16, 0.84, 0.3, 1) both;
}
.lede {
  margin-top: 22px;
  max-width: 28ch;
  font-size: 1.2rem;
  color: var(--muted);
  animation: rise-in 1s 0.15s cubic-bezier(0.16, 0.84, 0.3, 1) both;
}
.hero-pitch {
  margin-top: 18px;
  max-width: 42ch;
  animation: rise-in 1s 0.22s cubic-bezier(0.16, 0.84, 0.3, 1) both;
}
.hero-pitch p + p { margin-top: 10px; }
.hero-line {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.hero-pitch p:not(.hero-line) {
  color: var(--muted);
  font-size: 1.02rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  animation: rise-in 1s 0.28s cubic-bezier(0.16, 0.84, 0.3, 1) both;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--green); color: #f6f3ec; }
.btn-solid:hover { background: var(--green-deep); }
.btn-ghost { border: 1px solid var(--line); background: transparent; }
.btn-viber {
  gap: 8px;
  background: #7360f2;
  color: #fff;
}
.btn-viber:hover { background: #5d49d6; }
.btn-viber svg { flex: none; }
.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 600;
  animation: rise-in 1s 0.34s cubic-bezier(0.16, 0.84, 0.3, 1) both;
}
.hero-note a { color: var(--ink); text-decoration: none; }
.hero-note a:hover { color: var(--green); }
.section-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 36px 0 0;
  animation: rise-in 1s 0.4s cubic-bezier(0.16, 0.84, 0.3, 1) both;
}
.hero-facts dt {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-facts dd { margin: 6px 0 0; font-weight: 600; }
.hero-stage { position: relative; min-height: 620px; }
.hero-photo {
  margin: 0;
  height: 100%;
  border-radius: 28px 28px 120px 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  object-position: center;
  animation: ken 18s ease-in-out infinite alternate;
}
.hero-still {
  position: absolute;
  left: -46px;
  bottom: 28px;
  width: 190px;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid var(--paper);
  animation: float 6s ease-in-out infinite alternate;
}
.hero-still img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }

.band {
  width: 100%;
  margin: 18px 0 10px;
  border-block: 1px solid var(--line);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.28);
}
.marquee {
  display: flex;
  gap: 28px;
  width: max-content;
  padding: 14px 0;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  animation: ticker 32s linear infinite;
}
.marquee span:nth-child(odd) { color: var(--green); }

.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(2.4rem, 4vw, 4.2rem); max-width: 14ch; }
.services, .gallery, .about, .prices, .contacts { padding: 84px 0 10px; }

.service-list { list-style: none; margin: 0; padding: 0; }
.service-list li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 26px 18px;
  border-top: 1px solid var(--line);
  transition: background 0.35s ease, padding 0.35s ease;
}
.service-list li:last-child { border-bottom: 1px solid var(--line); }
.service-list li:hover {
  background: rgba(255, 255, 255, 0.55);
  padding-left: 28px;
}
.num {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--brass);
}
.service-list h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.service-list p { margin-top: 8px; color: var(--muted); max-width: 52ch; }

.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}
.scroll-hint {
  color: var(--muted);
  font-size: 0.92rem;
}
.scroll-hint::after {
  content: "";
  display: inline-block;
  width: 42px;
  height: 1px;
  margin-left: 10px;
  background: var(--brass);
  vertical-align: middle;
  animation: hint 1.6s ease-in-out infinite;
}
.rail-frame {
  position: relative;
}
.rail-nav {
  position: absolute;
  top: 214px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 2px solid rgba(251, 248, 242, 0.9);
  border-radius: 50%;
  background: var(--green);
  color: #f6f3ec;
  box-shadow: 0 12px 30px rgba(23, 33, 30, 0.28);
  cursor: pointer;
}
.rail-nav:hover:not(:disabled) { background: var(--green-deep); }
.rail-nav:disabled {
  opacity: 0.4;
  cursor: default;
}
.rail-prev { left: 14px; }
.rail-next { right: 14px; }
.rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.shot {
  flex: 0 0 min(78vw, 380px);
  scroll-snap-align: start;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.shot img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 22px;
  transition: transform 0.7s ease;
}
.shot:hover img,
.shot:focus-visible img { transform: scale(1.035); }
.shot span {
  display: block;
  margin-top: 12px;
  font-weight: 650;
  max-width: 28ch;
}
.rail-progress {
  height: 2px;
  margin-top: 18px;
  background: var(--line);
}
#rail-bar {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--green);
  transform-origin: left;
}

.about {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 48px;
  align-items: start;
}
.portrait {
  margin: 0;
  position: sticky;
  top: calc(var(--nav) + 20px);
}
.portrait-frame {
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.portrait img {
  width: 125%;
  max-width: none;
  height: auto;
  transform: translate(-10%, -20%);
  border-radius: 0;
}
.about-copy { padding-top: 12px; }
.about-copy h2 { font-size: clamp(2.4rem, 4vw, 4rem); margin-bottom: 22px; }
.about-copy p + p { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }
.about-still {
  margin-top: 32px;
  width: min(100%, 520px);
  border-radius: 20px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.price-tools {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 320px);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 650;
  font-size: 0.88rem;
}
.chips button[aria-selected="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.search input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  min-height: 46px;
  padding: 0 16px;
  outline: none;
}
.search input:focus { border-color: var(--green); }
.price-group { margin-top: 28px; }
.price-group h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  animation: rise-in 0.45s cubic-bezier(0.16, 0.84, 0.3, 1) both;
}
.price-row strong { font-weight: 600; }
.price-row em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}
.price-subgroup { margin-top: 6px; }
.price-subgroup h4 {
  margin: 14px 0 0;
  font-size: 1.15rem;
  font-weight: 650;
}
.price-subgroup .price-row { padding-left: 16px; }
.price-note {
  margin-top: 22px;
  color: var(--muted);
  max-width: 52ch;
}
.price-empty { color: var(--muted); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
  padding: 20px;
  text-decoration: none;
  background: var(--card);
  border-radius: 22px;
  border: 1px solid transparent;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
a.contact-card:hover { transform: translateY(-4px); border-color: var(--brass); }
.contact-card address {
  font-style: normal;
  font-weight: 700;
  margin: 0;
}
.contact-card span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
a.contact-viber { background: #7360f2; color: #fff; }
a.contact-viber span { color: rgba(255, 255, 255, 0.78); }
a.contact-viber:hover { border-color: transparent; background: #5d49d6; }
.map-frame {
  margin-top: 18px;
  border-radius: 28px;
  overflow: hidden;
  height: 420px;
  filter: grayscale(0.35);
  transition: filter 0.5s ease;
}
.map-frame:hover { filter: none; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

.footer {
  width: 100%;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-inline: 0;
  padding: 36px 32px 28px 16px;
  color: var(--muted);
}
.footer img {
  height: 42px;
  width: auto;
  border-radius: 14px;
  background: #fff;
}

.fab-bar {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 25;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.fab-bar a {
  text-decoration: none;
  font-weight: 700;
  padding: 14px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.fab-call { background: var(--green); color: #f6f3ec; }
.fab-viber { background: #7360f2; color: #fff; }
.fab-bar.is-on {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

dialog {
  width: min(920px, calc(100% - 32px));
  border: 0;
  padding: 0;
  background: transparent;
  color: #f6f3ec;
}
dialog::backdrop { background: rgba(18, 24, 22, 0.82); }
dialog figure { margin: 0; }
#lb-img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 16px;
  background: #111;
}
#lb-cap { margin-top: 10px; }
.lb-close, .lb-nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.6rem;
}
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 8px; top: 42%; }
.lb-next { right: 8px; top: 42%; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
}
.reveal.is-in {
  animation: rise-in 0.8s cubic-bezier(0.16, 0.84, 0.3, 1) forwards;
  animation-delay: var(--d, 0ms);
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes ken {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-12px); }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes hint {
  0%, 100% { transform: scaleX(0.4); transform-origin: left; }
  50% { transform: scaleX(1); transform-origin: left; }
}

@media (max-width: 1180px) {
  .menu-btn { display: grid; place-items: center; }
  .nav nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 32px 22px;
    background: rgba(243, 239, 230, 0.97);
    border-bottom: 1px solid var(--line);
  }
  .nav nav.is-open { display: flex; }
  .hero-facts { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero, .about, .price-tools, .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-top: 28px; }
  .hero-stage { min-height: 0; }
  .hero-photo img { min-height: 420px; }
  .hero-still { width: 120px; left: 12px; bottom: 12px; }
  .hero-facts { grid-template-columns: 1fr; }
  .portrait { position: static; }
  .shot { flex-basis: 82vw; }
  .shot img { height: 360px; }
  .rail-nav { top: 16px; }
  .fab-bar { display: flex; }
  .footer { margin-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee { transform: none; }
}
