:root {
  --ink: #211915;
  --coffee: #2d2926;
  --paper: #f5f2e9;
  --cream: #fffaf0;
  --muted: #bdb4a9;
  --gold: #b08b4f;
  --red: #9f2f22;
  --line-dark: rgba(33, 25, 21, 0.12);
  --line-light: rgba(245, 242, 233, 0.18);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.forma-back-link {
  position: fixed;
  z-index: 80;
  left: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(245, 242, 233, 0.32);
  border-radius: 999px;
  background: rgba(33, 25, 21, 0.88);
  color: var(--paper);
  box-shadow: 0 18px 44px rgba(33, 25, 21, 0.28);
  backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: transform 260ms var(--ease-out), background 260ms ease, color 260ms ease;
}

.forma-back-link:hover,
.forma-back-link:focus-visible {
  transform: translateY(-3px);
  background: var(--gold);
  color: var(--coffee);
  outline: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 104px;
  padding: 0 72px;
  border-bottom: 1px solid var(--line-light);
  background: rgba(33, 25, 21, 0.95);
  color: var(--paper);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 14px;
  min-width: 220px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(245, 242, 233, 0.48);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #f4cf89 0 18%, var(--gold) 19% 38%, transparent 39%),
    conic-gradient(from 120deg, var(--gold), var(--red), #edc783, var(--gold));
  box-shadow: 0 0 0 7px rgba(176, 139, 79, 0.11);
  transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out);
}

.brand:hover .brand-mark {
  transform: rotate(18deg) scale(1.04);
  box-shadow: 0 0 0 8px rgba(176, 139, 79, 0.14), 0 0 30px rgba(176, 139, 79, 0.32);
}

.site-nav {
  gap: 12px;
  color: rgba(245, 242, 233, 0.72);
  font-size: 14px;
  font-weight: 800;
}

.site-nav a {
  position: relative;
  padding: 11px 15px;
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 15px;
  bottom: 7px;
  left: 15px;
  height: 1px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease-out);
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(245, 242, 233, 0.1);
  color: var(--paper);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.header-cta,
.btn {
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 16px 40px rgba(176, 139, 79, 0.25);
  transition: transform 260ms var(--ease-out), filter 260ms ease, box-shadow 260ms ease;
}

.header-cta {
  min-width: 126px;
  min-height: 46px;
  padding: 0 20px;
}

.btn:hover,
.btn:focus-visible,
.header-cta:hover,
.header-cta:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 20px 46px rgba(176, 139, 79, 0.36);
  outline: none;
}

.btn span,
.header-cta span {
  display: inline-block;
  transition: transform 260ms var(--ease-out);
}

.btn:hover span,
.header-cta:hover span {
  transform: translateX(4px);
}

.btn-secondary {
  background: rgba(245, 242, 233, 0.1);
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(245, 242, 233, 0.23);
}

.hero {
  position: relative;
  min-height: calc(100vh - 104px);
  overflow: hidden;
  background: var(--coffee);
  color: var(--paper);
}

.hero-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: end;
  gap: 42px;
  padding: 74px 72px 70px;
}

.hero-bg {
  position: absolute;
  inset: 0 0 auto auto;
  width: 64%;
  height: 100%;
  object-fit: cover;
  opacity: 0.76;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--coffee) 0%, rgba(45, 41, 38, 0.88) 34%, rgba(45, 41, 38, 0.18) 100%),
    linear-gradient(0deg, rgba(33, 25, 21, 0.55), transparent 50%);
}

.hero-inner,
.hero-stats {
  position: relative;
  z-index: 1;
}

.hero-inner {
  max-width: 930px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.red {
  color: var(--red);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 84px;
  font-weight: 600;
  line-height: 0.94;
}

h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
}

h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 34px;
  line-height: 1;
}

.lead {
  max-width: 730px;
  margin-bottom: 34px;
  color: rgba(245, 242, 233, 0.8);
  font-size: 19px;
  line-height: 1.65;
}

.dark-lead {
  color: #5c5148;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-stats {
  display: grid;
  gap: 12px;
  align-self: center;
}

.hero-stats article {
  min-height: 128px;
  padding: 25px;
  border: 1px solid rgba(245, 242, 233, 0.17);
  background: rgba(33, 25, 21, 0.72);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.hero-stats strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 42px;
  line-height: 1;
}

.hero-stats span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.section {
  padding: 82px 72px;
}

.light-section {
  background: var(--paper);
}

.compact-top {
  padding-top: 42px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 1fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 34px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.feature-card,
.package,
.gallery article,
.booking-form,
.contact-list article {
  border: 0;
  background: transparent;
}

.feature-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  transform: translateY(0);
  transition: transform 420ms var(--ease-out), filter 420ms var(--ease-out);
}

.package span,
.tariffs span,
.contact-list span,
.booking-form span {
  color: var(--red);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.feature-card p,
.package p,
.gallery p,
.price-layout p,
.contacts-layout p {
  color: #665d55;
  line-height: 1.55;
}

.feature-card__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(58px, auto);
  align-content: end;
  gap: 16px;
  min-height: 142px;
  transform: translateY(0);
  transition: transform 420ms var(--ease-out);
}

.feature-card h3,
.feature-card p {
  margin: 0;
}

.image-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  color: var(--paper);
  isolation: isolate;
}

.image-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 700ms var(--ease-out), filter 700ms var(--ease-out);
}

.image-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(33, 25, 21, 0.86), rgba(33, 25, 21, 0.12) 68%);
  transition: opacity 420ms ease;
}

.image-card::before {
  position: absolute;
  inset: 14px;
  z-index: 1;
  border: 1px solid rgba(245, 242, 233, 0.42);
  content: "";
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}

.image-card:hover,
.image-card:focus-visible {
  transform: translateY(-8px);
  filter: drop-shadow(0 26px 32px rgba(33, 25, 21, 0.18));
  outline: none;
}

.image-card:hover img,
.image-card:focus-visible img {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.04);
}

.image-card:hover::before,
.image-card:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

.image-card:hover .feature-card__content,
.image-card:focus-visible .feature-card__content {
  transform: translateY(-4px);
}

.image-card p {
  color: rgba(245, 242, 233, 0.82);
}

.dark-card {
  background: var(--coffee);
  color: var(--paper);
}

.dark-card p {
  color: var(--muted);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(420px, 1fr);
  align-items: center;
  gap: 70px;
  min-height: 640px;
  padding: 78px 96px;
}

.page-hero img {
  width: 100%;
  height: 470px;
  object-fit: cover;
}

.light-hero {
  background: var(--paper);
}

.dark-hero {
  background: var(--coffee);
  color: var(--paper);
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.package {
  position: relative;
  display: grid;
  grid-template-rows: 16px minmax(94px, auto) minmax(118px, 1fr) auto;
  row-gap: 18px;
  min-height: 410px;
  padding: 34px 28px;
  border: 1px solid var(--line-dark);
  background: var(--cream);
  overflow: hidden;
  transition: transform 360ms var(--ease-out), border-color 360ms ease, box-shadow 360ms ease;
}

.package::after {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 46px;
  height: 1px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 360ms var(--ease-out);
}

.package:hover {
  transform: translateY(-7px);
  border-color: rgba(176, 139, 79, 0.45);
  box-shadow: 0 24px 44px rgba(33, 25, 21, 0.1);
}

.package:hover::after {
  transform: scaleX(1);
}

.package h2,
.package p {
  margin: 0;
}

.package h2 {
  align-self: start;
  font-size: clamp(32px, 2.45vw, 40px);
  line-height: .96;
  overflow-wrap: anywhere;
}

.package p {
  align-self: start;
  max-width: 100%;
}

.package.featured {
  background: var(--cream);
  color: var(--ink);
}

.package.featured p {
  color: #665d55;
}

.package strong {
  display: block;
  align-self: end;
  margin-top: 0;
  color: var(--red);
  font-size: 22px;
}

.package.featured strong {
  color: var(--red);
}

.cases-head {
  padding-bottom: 52px;
}

.cases-head h1 {
  max-width: 960px;
  color: var(--ink);
}

.case-feature {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 56px;
  align-items: center;
  padding: 72px 96px;
  background: var(--paper);
  color: var(--ink);
}

.case-feature img {
  width: 100%;
  height: 560px;
  object-fit: cover;
}

.case-feature p {
  color: #665d55;
  line-height: 1.65;
}

.case-feature dl {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
}

.case-feature div div {
  padding: 16px 0;
  border-top: 1px solid var(--line-dark);
}

.case-feature dt {
  color: var(--red);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.case-feature dd {
  margin: 6px 0 0;
  font-weight: 800;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 72px 96px;
  background: var(--paper);
}

.gallery img {
  width: 100%;
  height: 310px;
  object-fit: cover;
}

.gallery article div,
.gallery article h3,
.gallery article p {
  margin-right: 24px;
  margin-left: 24px;
}

.gallery article {
  overflow: hidden;
  transition: transform 360ms var(--ease-out), box-shadow 360ms ease;
}

.gallery article:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 44px rgba(33, 25, 21, 0.1);
}

.gallery article img {
  transition: transform 700ms var(--ease-out), filter 700ms ease;
}

.gallery article:hover img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.04);
}

.gallery h3 {
  margin-top: 22px;
  margin-bottom: 10px;
}

.price-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 28px;
  padding: 72px 96px;
  background: var(--paper);
}

.tariffs {
  display: grid;
  gap: 14px;
}

.tariffs article {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 160px;
  align-items: center;
  gap: 22px;
  min-height: 92px;
  padding: 22px 28px;
  border: 1px solid var(--line-dark);
  background: var(--cream);
  transition: transform 320ms var(--ease-out), border-color 320ms ease, box-shadow 320ms ease;
}

.tariffs article:hover {
  transform: translateX(8px);
  border-color: rgba(176, 139, 79, 0.45);
  box-shadow: 0 16px 34px rgba(33, 25, 21, 0.08);
}

.tariffs strong {
  color: var(--red);
  font-size: 22px;
  text-align: right;
}

.booking-form {
  display: grid;
  gap: 14px;
  padding: 30px;
}

.booking-form h2 {
  margin-bottom: 6px;
}

.booking-form label {
  display: grid;
  gap: 7px;
}

.booking-form input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line-dark);
  background: #fffdf8;
  padding: 0 14px;
}

.booking-form input:focus {
  border-color: var(--gold);
  outline: none;
}

.booking-form button {
  height: 52px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font-weight: 800;
  transition: transform 260ms var(--ease-out), background 260ms ease;
}

.booking-form button:hover {
  transform: translateY(-2px);
  background: var(--coffee);
}

.contacts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px 420px;
  gap: 18px;
  padding: 72px 96px;
  background: var(--paper);
}

.map-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background:
    linear-gradient(135deg, rgba(33, 25, 21, 0.92), rgba(45, 41, 38, 0.68)),
    url("assets/image-12.jpg") center / cover;
}

.map-card::before,
.map-card::after {
  position: absolute;
  content: "";
  background: rgba(176, 139, 79, 0.65);
}

.map-card::before {
  left: 10%;
  right: 10%;
  top: 52%;
  height: 2px;
  transform: rotate(-12deg);
}

.map-card::after {
  top: 8%;
  bottom: 8%;
  left: 58%;
  width: 2px;
  transform: rotate(8deg);
}

.map-pin {
  position: absolute;
  left: 44%;
  top: 42%;
  z-index: 1;
  padding: 14px 20px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  animation: pinPulse 2.4s ease-in-out infinite;
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-list article {
  padding: 24px;
  border: 1px solid transparent;
  transition: transform 320ms var(--ease-out), border-color 320ms ease, background 320ms ease;
}

.contact-list article:hover {
  transform: translateY(-5px);
  border-color: rgba(176, 139, 79, 0.32);
  background: rgba(255, 250, 240, 0.7);
}

.contact-list strong {
  display: block;
  margin-top: 10px;
  font-size: 18px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
  padding: 0 72px;
  background: var(--ink);
  color: rgba(245, 242, 233, 0.68);
  font-size: 13px;
}

.footer span:first-child {
  color: var(--paper);
  font-weight: 800;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 700ms var(--ease-out), translate 700ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

@keyframes pinPulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 0 0 0 rgba(176, 139, 79, 0.34);
  }

  50% {
    transform: translateY(-3px);
    box-shadow: 0 0 0 10px rgba(176, 139, 79, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 1280px) {
  .site-header {
    flex-wrap: wrap;
    height: auto;
    padding: 22px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .hero-home,
  .page-hero,
  .section-head,
  .case-feature,
  .price-layout,
  .contacts-layout {
    grid-template-columns: 1fr;
  }

  .hero-home,
  .section,
  .page-hero,
  .case-feature,
  .gallery,
  .price-layout,
  .contacts-layout {
    padding-right: 28px;
    padding-left: 28px;
  }

  .hero-bg {
    width: 100%;
  }

  h1 {
    font-size: 58px;
  }

  .feature-grid,
  .package-grid,
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .brand {
    min-width: auto;
  }

  .header-cta {
    display: none;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 36px;
  }

  .lead {
    font-size: 16px;
  }

  .actions,
  .hero-stats,
  .feature-grid,
  .package-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .actions,
  .hero-stats {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .tariffs article {
    grid-template-columns: 1fr;
  }

  .tariffs strong {
    text-align: left;
  }

  .page-hero img,
  .case-feature img {
    height: 330px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px;
  }
}

