:root {
  --color-page: #f8f5ee;
  --color-surface: #ffffff;
  --color-muted: #ebe4d8;
  --color-ink: #302f2c;
  --color-text: #302f2c;
  --color-soft: #a69a8a;
  --color-line: rgba(48, 47, 44, 0.16);
  --color-accent: #722e37;
  --color-accent-strong: #5c232c;
  --color-warm: #a69a8a;
  --shadow-card: 0 20px 50px rgba(48, 47, 44, 0.08);
  --motion-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: "Golos Text", "Golos UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--color-page);
  color: var(--color-ink);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--color-page);
  color: var(--color-text);
  font-size: 18px;
  line-height: 1.3;
}

a {
  color: inherit;
}

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

.site-header {
  backdrop-filter: blur(18px);
  background: rgba(248, 245, 238, 0.9);
  border-bottom: 1px solid var(--color-line);
  position: sticky;
  top: 0;
  z-index: 10;
  animation: maisonFadeDown 700ms var(--motion-ease) both;
}

.site-header__inner,
.site-footer__inner,
.block__inner {
  margin: 0 auto;
  width: min(100% - 40px, 1180px);
}

.site-header__inner {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  min-height: 76px;
}

.site-brand {
  align-items: center;
  color: var(--color-ink);
  display: inline-flex;
  font-size: 18px;
  font-weight: 750;
  gap: 10px;
  text-decoration: none;
  text-transform: uppercase;
}

.site-logo {
  height: 64px;
  max-width: 180px;
  object-fit: contain;
  width: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a {
  color: rgba(48, 47, 44, 0.72);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 0;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--color-ink);
}

.site-main {
  min-height: calc(100vh - 160px);
}

.page-heading {
  background: var(--color-page);
  border-bottom: 1px solid var(--color-line);
  padding: 72px 0;
}

.page-heading h1 {
  color: var(--color-ink);
  font-size: 42px;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
}

.page-heading p {
  color: var(--color-text);
  margin: 16px 0 0;
  max-width: 720px;
}

.site-footer {
  background: var(--color-ink);
  color: rgba(248, 245, 238, 0.74);
}

.site-footer__inner {
  display: grid;
  gap: 24px;
  padding: 42px 0;
}

.site-footer__brand {
  display: grid;
  gap: 6px;
}

.site-footer__brand strong {
  color: #f8f5ee;
  text-transform: uppercase;
}

.site-footer__nav,
.site-footer__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.site-footer__nav a,
.site-footer__contacts a {
  color: rgba(248, 245, 238, 0.82);
  text-decoration: none;
}

.site-footer__nav a:hover,
.site-footer__contacts a:hover {
  color: #f8f5ee;
}

.site-footer__contacts {
  font-style: normal;
}

.debug-panel {
  background: #fff8dc;
  border-bottom: 1px solid #f0d98c;
  color: #5f4b00;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 8px 16px;
  font-size: 13px;
}

.block {
  overflow: hidden;
}

.block-pad-sm {
  padding: 32px 0;
}

.block-pad-md {
  padding: 56px 0;
}

.block-pad-lg {
  padding: 78px 0;
}

.block-pad-xl {
  padding: 110px 0;
}

.block-width-narrow {
  max-width: 780px;
}

.block-width-wide {
  max-width: 1180px;
}

.block-width-full {
  width: min(100% - 32px, 1280px);
}

.block-bg-default {
  background: var(--color-page);
}

.block-bg-surface {
  background: #ffffff;
}

.block-bg-muted {
  background: var(--color-muted);
}

.block-bg-accent {
  background: var(--color-accent);
  color: rgba(248, 245, 238, 0.82);
}

.block-bg-dark {
  background: var(--color-ink);
  color: rgba(248, 245, 238, 0.82);
}

.block-bg-dark a {
  color: #f8f5ee;
}

.block-align-left {
  text-align: left;
}

.block-align-center {
  text-align: center;
}

.block-align-right {
  text-align: right;
}

.block h1,
.block h2 {
  color: var(--color-ink);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
}

.block-bg-accent h1,
.block-bg-accent h2,
.block-bg-dark h1,
.block-bg-dark h2 {
  color: #f8f5ee;
}

.block h1 {
  font-size: 44px;
  max-width: 920px;
}

.block-align-center h1,
.block-align-center h2,
.block-align-center p {
  margin-left: auto;
  margin-right: auto;
}

.block h2 {
  font-size: 30px;
  max-width: 820px;
}

.block p {
  margin: 16px 0 0;
  max-width: 720px;
}

.block-eyebrow {
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.block-lead {
  color: var(--color-text);
  font-size: 22px;
  line-height: 1.4;
}

.block-bg-accent .block-lead,
.block-bg-accent p,
.block-bg-dark .block-lead,
.block-bg-dark p {
  color: rgba(248, 245, 238, 0.78);
}

.block-hero {
  border-bottom: 1px solid var(--color-line);
  display: grid;
  isolation: isolate;
  min-height: 560px;
  position: relative;
}

.block-hero::before,
.block-hero::after {
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.block-hero::before {
  background-image: var(--hero-image);
  background-position: var(--hero-position, center center);
  background-size: cover;
  opacity: 0;
  transform: scale(1.02);
  z-index: -2;
}

.block-hero::after {
  opacity: 0;
  z-index: -1;
}

.block-hero-has-image {
  background: var(--color-ink);
  color: rgba(248, 245, 238, 0.82);
}

.block-hero-has-image::before {
  animation: maisonHeroDrift 22s ease-in-out infinite alternate;
  opacity: 1;
}

.block-hero-gallery::before {
  display: none;
}

.hero-bg-gallery {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: -2;
}

.hero-bg-slide {
  background-position: center center;
  background-size: cover;
  inset: 0;
  opacity: 0;
  position: absolute;
  transform: scale(1.02);
}

.hero-bg-slide:nth-child(1) {
  animation:
    maisonHeroSlideOne 28s linear infinite,
    maisonHeroGalleryDrift 28s ease-in-out infinite alternate;
}

.hero-bg-slide:nth-child(2) {
  animation:
    maisonHeroSlideTwo 28s linear infinite,
    maisonHeroGalleryDrift 28s ease-in-out infinite alternate;
}

.hero-bg-slide:nth-child(3) {
  animation:
    maisonHeroSlideThree 28s linear infinite,
    maisonHeroGalleryDrift 28s ease-in-out infinite alternate;
}

.hero-bg-slide:nth-child(4) {
  animation:
    maisonHeroSlideFour 28s linear infinite,
    maisonHeroGalleryDrift 28s ease-in-out infinite alternate;
}

.block-hero-has-image::after {
  background:
    linear-gradient(90deg, rgba(48, 47, 44, 0.88) 0%, rgba(48, 47, 44, 0.64) 43%, rgba(48, 47, 44, 0.18) 100%),
    linear-gradient(180deg, rgba(48, 47, 44, 0.16) 0%, rgba(48, 47, 44, 0.56) 100%);
  opacity: 1;
}

.block-hero > .block__inner {
  align-self: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: maisonFadeUp 900ms var(--motion-ease) 120ms both;
  display: grid;
  gap: 18px;
}

.block-hero-has-image h1,
.block-hero-has-image h2,
.block-hero-has-image .block-lead,
.block-hero-has-image p {
  color: #f8f5ee;
}

.block-hero-has-image .block-eyebrow {
  color: rgba(248, 245, 238, 0.78);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.block-align-center .button-row {
  justify-content: center;
}

.button {
  align-items: center;
  border-radius: 2px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 220ms var(--motion-ease),
    border-color 220ms var(--motion-ease),
    color 220ms var(--motion-ease),
    transform 220ms var(--motion-ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--color-accent);
  color: #f8f5ee;
  box-shadow: none;
}

.button-primary:hover {
  background: var(--color-accent-strong);
}

.button-secondary {
  background: var(--color-muted);
  color: var(--color-ink);
}

.button-outline {
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
}

.media-figure,
.gallery-card,
.contact-card {
  animation: maisonFadeUp 760ms var(--motion-ease) both;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 2px;
  box-shadow: var(--shadow-card);
  margin: 0;
  overflow: hidden;
  transition:
    border-color 260ms var(--motion-ease),
    box-shadow 260ms var(--motion-ease),
    transform 260ms var(--motion-ease);
}

.gallery-card {
  display: grid;
  grid-template-rows: auto;
  height: 100%;
}

.media-figure:hover,
.gallery-card:hover {
  border-color: rgba(114, 46, 55, 0.28);
  box-shadow: 0 26px 64px rgba(48, 47, 44, 0.12);
  transform: translateY(-4px);
}

.media-figure img,
.gallery-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.gallery-placeholder {
  align-items: flex-end;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(48, 47, 44, 0.08), rgba(114, 46, 55, 0.08)),
    #f8f5ee;
  display: flex;
  padding: 20px;
  position: relative;
}

.gallery-placeholder::before {
  border: 1px solid rgba(48, 47, 44, 0.14);
  content: "";
  inset: 14px;
  pointer-events: none;
  position: absolute;
}

.gallery-placeholder::after {
  background: var(--color-accent);
  content: "";
  height: 2px;
  left: 22px;
  opacity: 0.72;
  position: absolute;
  top: 22px;
  width: 44px;
}

.gallery-placeholder span {
  color: var(--color-ink);
  display: -webkit-box;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.32;
  max-width: 92%;
  overflow: hidden;
  position: relative;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.gallery-card:nth-child(2n) .gallery-placeholder {
  background:
    linear-gradient(135deg, rgba(166, 154, 138, 0.16), rgba(48, 47, 44, 0.06)),
    #ebe4d8;
}

.gallery-card:nth-child(3n) .gallery-placeholder {
  background:
    linear-gradient(135deg, rgba(48, 47, 44, 0.84), rgba(114, 46, 55, 0.72)),
    #302f2c;
}

.gallery-card:nth-child(3n) .gallery-placeholder::before {
  border-color: rgba(248, 245, 238, 0.18);
}

.gallery-card:nth-child(3n) .gallery-placeholder span {
  color: #f8f5ee;
}

.gallery-card:nth-child(3n) .gallery-placeholder::after {
  background: #f8f5ee;
}

.media-figure figcaption,
.gallery-card figcaption {
  color: rgba(48, 47, 44, 0.76);
  display: -webkit-box;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.32;
  min-height: 88px;
  overflow: hidden;
  padding: 18px 20px 20px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.gallery-grid {
  align-items: stretch;
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.gallery-columns-2,
.gallery-columns-3,
.gallery-columns-4 {
  grid-template-columns: 1fr;
}

.contact-card {
  align-items: stretch;
  display: grid;
  gap: clamp(22px, 4vw, 44px);
  overflow: hidden;
  padding: clamp(18px, 3vw, 32px);
}

.block-contact {
  isolation: isolate;
  position: relative;
}

.block-contact-has-map {
  background: var(--color-ink);
  overflow: hidden;
}

.block-contact-has-map::before,
.block-contact-has-map::after {
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.block-contact-has-map::before {
  background-image: var(--contact-map-image);
  background-position: center center;
  background-size: cover;
  opacity: 0.64;
  transform: scale(1.02);
  z-index: -2;
}

.block-contact-has-map::after {
  background:
    linear-gradient(90deg, rgba(48, 47, 44, 0.9) 0%, rgba(48, 47, 44, 0.74) 52%, rgba(48, 47, 44, 0.42) 100%),
    linear-gradient(180deg, rgba(48, 47, 44, 0.5) 0%, rgba(48, 47, 44, 0.88) 100%);
  z-index: -1;
}

.block-contact .contact-card {
  background: rgba(248, 245, 238, 0.08);
  border-color: rgba(248, 245, 238, 0.2);
}

.block-contact-has-map .contact-card {
  backdrop-filter: blur(22px) saturate(130%);
  background:
    linear-gradient(135deg, rgba(248, 245, 238, 0.12), rgba(248, 245, 238, 0.04)),
    rgba(48, 47, 44, 0.62);
  border-color: rgba(248, 245, 238, 0.24);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
}

.contact-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100%;
  padding: clamp(8px, 2vw, 18px);
}

.contact-copy h2 {
  margin-bottom: 0;
}

.contact-copy p {
  color: rgba(248, 245, 238, 0.76);
  max-width: 620px;
}

.contact-kicker {
  color: rgba(248, 245, 238, 0.66);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contact-list {
  border-top: 1px solid rgba(248, 245, 238, 0.18);
  display: grid;
  font-style: normal;
  gap: 0;
  line-height: 1.35;
  margin-top: auto;
  padding-top: 10px;
}

.contact-line {
  border-bottom: 1px solid rgba(248, 245, 238, 0.12);
  display: grid;
  gap: 5px;
  padding: 14px 0;
}

.contact-line span {
  color: rgba(248, 245, 238, 0.52);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contact-line a,
.contact-line strong {
  color: inherit;
  font-size: 17px;
  font-style: normal;
  font-weight: 500;
  text-decoration: none;
}

.contact-form {
  align-self: stretch;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(248, 245, 238, 0.92));
  border: 1px solid rgba(248, 245, 238, 0.62);
  border-radius: 6px;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
  color: var(--color-ink);
  display: grid;
  gap: 20px;
  padding: clamp(22px, 3vw, 34px);
}

.contact-form__head {
  border-bottom: 1px solid rgba(48, 47, 44, 0.12);
  display: grid;
  gap: 8px;
  padding-bottom: 18px;
}

.contact-form__head .contact-kicker {
  color: var(--color-accent);
}

.contact-form__head p {
  color: rgba(48, 47, 44, 0.68);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label span {
  color: rgba(48, 47, 44, 0.58);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  appearance: none;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(48, 47, 44, 0.12);
  border-radius: 6px;
  color: var(--color-ink);
  font: inherit;
  min-height: 52px;
  padding: 14px 16px;
  transition:
    background-color 180ms var(--motion-ease),
    border-color 180ms var(--motion-ease),
    box-shadow 180ms var(--motion-ease);
  width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(48, 47, 44, 0.38);
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: rgba(255, 253, 248, 0.98);
  border-color: rgba(114, 46, 55, 0.52);
  box-shadow: 0 0 0 4px rgba(114, 46, 55, 0.1);
  outline: none;
}

.contact-form textarea {
  line-height: 1.5;
  min-height: 138px;
  resize: vertical;
}

.contact-form small {
  color: #b42318;
  font-size: 13px;
}

.form-message {
  border-radius: 6px;
  margin: 0;
  padding: 12px 14px;
}

.form-message-success {
  background: rgba(22, 101, 52, 0.1);
  color: #14532d;
}

.form-message-error {
  background: rgba(180, 35, 24, 0.1);
  color: #b42318;
}

.form-submit-row {
  padding-top: 4px;
}

.contact-form .button {
  justify-content: space-between;
  min-height: 54px;
  width: 100%;
}

.contact-form .button::after {
  content: "->";
  font-size: 16px;
  font-weight: 400;
}

.form-honeypot {
  height: 0;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  width: 0;
}

.block-warning {
  background: #fff8dc;
  color: #5f4b00;
  padding: 16px;
}

@keyframes maisonFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes maisonFadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes maisonHeroDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.07) translate3d(-18px, -10px, 0);
  }
}

@keyframes maisonHeroGalleryDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.08) translate3d(-18px, -8px, 0);
  }
}

@keyframes maisonHeroSlideOne {
  0%,
  20%,
  100% {
    opacity: 1;
  }

  28%,
  92% {
    opacity: 0;
  }
}

@keyframes maisonHeroSlideTwo {
  0%,
  20%,
  53%,
  100% {
    opacity: 0;
  }

  28%,
  45% {
    opacity: 1;
  }
}

@keyframes maisonHeroSlideThree {
  0%,
  45%,
  78%,
  100% {
    opacity: 0;
  }

  53%,
  70% {
    opacity: 1;
  }
}

@keyframes maisonHeroSlideFour {
  0%,
  70% {
    opacity: 0;
  }

  78%,
  92% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

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

  .block-hero-has-image::before {
    animation: none !important;
    transform: none;
  }

  .hero-bg-slide {
    animation: none !important;
    opacity: 0;
    transform: none;
  }

  .hero-bg-slide:first-child {
    opacity: 1;
  }

  .button:hover,
  .media-figure:hover,
  .gallery-card:hover {
    transform: none;
  }
}

@media (min-width: 720px) {
  .site-footer__inner {
    align-items: center;
    grid-template-columns: minmax(220px, 1fr) auto;
  }

  .site-footer__contacts {
    grid-column: 1 / -1;
  }

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

  .gallery-columns-3,
  .gallery-columns-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-column: auto;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-field-wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1040px) {
  .contact-card {
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  }

  .page-heading h1 {
    font-size: 58px;
  }

  .block h1 {
    font-size: 72px;
  }

  .block h2 {
    font-size: 40px;
  }

  .gallery-columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 719px) {
  body {
    font-size: 16px;
    line-height: 1.45;
  }

  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 0;
  }

  .site-nav {
    gap: 10px 14px;
  }

  .site-logo {
    height: 52px;
    max-width: 150px;
  }

  .block-pad-xl {
    padding: 78px 0;
  }

  .block-hero {
    min-height: 520px;
  }

  .block-hero-has-image::after {
    background:
      linear-gradient(180deg, rgba(48, 47, 44, 0.84) 0%, rgba(48, 47, 44, 0.58) 56%, rgba(48, 47, 44, 0.82) 100%),
      linear-gradient(90deg, rgba(48, 47, 44, 0.42), rgba(48, 47, 44, 0.22));
  }

  .block h1 {
    font-size: 38px;
  }

  .block h2 {
    font-size: 28px;
  }

  .block-lead {
    font-size: 19px;
  }

  .contact-card {
    padding: 24px;
  }
}
