:root {
  --bg: #f7f0e6;
  --bg-soft: #fdf9f3;
  --surface: rgba(255, 252, 247, 0.78);
  --surface-strong: rgba(255, 250, 242, 0.94);
  --surface-dark: #2f201c;
  --ink: #241916;
  --ink-soft: #685247;
  --line: rgba(101, 68, 49, 0.14);
  --line-strong: rgba(101, 68, 49, 0.26);
  --primary: #80352b;
  --primary-strong: #622219;
  --accent: #d4af37;
  --accent-soft: #ede7c4;
  --olive: #66714d;
  --white: #ffffff;
  --shadow-sm: 0 12px 40px rgba(70, 43, 24, 0.08);
  --shadow-md: 0 22px 60px rgba(70, 43, 24, 0.14);
  --shadow-lg: 0 32px 100px rgba(50, 28, 18, 0.18);
  --radius-sm: 18px;
  --radius-md: 28px;
  --radius-lg: 40px;
  --radius-round: 999px;
  --header-height: 84px;
  --container-width: 1220px;
  --section-gap: clamp(4.5rem, 7vw, 7rem);
  --title-font: "Playfair Display", serif;
  --body-font: "Montserrat", sans-serif;
  --transition: 240ms ease;
  --hero-parallax: 0px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(202, 149, 68, 0.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(128, 53, 43, 0.08), transparent 28%),
    linear-gradient(180deg, #fbf5ee 0%, #f4ede3 100%);
  line-height: 1.6;
  min-width: 320px;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 32px, var(--container-width));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: var(--section-gap) 0;
}

.section__header {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-round);
  border: 1px solid rgba(128, 53, 43, 0.12);
  background: rgba(255, 255, 255, 0.54);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section__title {
  margin: 0 0 1rem;
  font-family: var(--title-font);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--primary-strong);
}

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

.section__subtitle {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.6vw, 1.14rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.95rem 1.45rem;
  border-radius: var(--radius-round);
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background-color var(--transition),
    color var(--transition);
  will-change: transform;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn--primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary) 0%, #9f4b38 100%);
  box-shadow: 0 20px 40px rgba(128, 53, 43, 0.22);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  box-shadow: 0 26px 44px rgba(128, 53, 43, 0.28);
}

.btn--secondary {
  background: rgba(255, 251, 247, 0.82);
  color: var(--primary-strong);
  border-color: rgba(128, 53, 43, 0.16);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  border-color: rgba(128, 53, 43, 0.3);
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 0;
  transition:
    padding var(--transition),
    background-color var(--transition),
    backdrop-filter var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.header.scrolled {
  padding: 0.55rem 0;
  background: rgba(247, 240, 230, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(101, 68, 49, 0.08);
  box-shadow: 0 10px 40px rgba(45, 25, 22, 0.08);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: calc(var(--header-height) - 16px);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
}

.logo {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.logo__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer__logo {
  object-fit: cover;
}

.nav__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.nav__title {
  font-family: var(--title-font);
  font-size: 2rem;
  line-height: 0.95;
  color: var(--primary-strong);
}

.nav__subtitle {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.nav__menu-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem;
  border-radius: var(--radius-round);
  background: rgba(255, 252, 247, 0.72);
  border: 1px solid rgba(101, 68, 49, 0.08);
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-round);
  color: var(--ink-soft);
  font-size: 0.96rem;
  font-weight: 700;
  transition: background-color var(--transition), color var(--transition);
}

.nav__link:hover,
.nav__link:focus-visible,
.nav__link.active-link {
  color: var(--primary-strong);
  background: rgba(128, 53, 43, 0.08);
}

.nav__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-round);
  background: var(--surface-strong);
  border: 1px solid rgba(202, 149, 68, 0.2);
  color: var(--primary-strong);
  font-size: 0.96rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-direction: column;
  gap: 0.25rem;
  border-radius: 14px;
  background: rgba(255, 251, 247, 0.74);
  box-shadow: var(--shadow-sm);
}

.nav__toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary-strong);
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav__toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: clip;
  padding: 2rem 0 calc(var(--section-gap) + 1rem);
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(202, 149, 68, 0.28), transparent 22%),
    radial-gradient(circle at 82% 14%, rgba(102, 113, 77, 0.18), transparent 20%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.75) 0%, rgba(247, 240, 230, 0.6) 100%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero__content {
  padding-top: 1.5rem;
}

.hero__title {
  margin: 0 0 1.25rem;
  font-family: var(--title-font);
  font-size: clamp(3.3rem, 7vw, 6.1rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--primary-strong);
  text-wrap: balance;
}

.hero__description {
  max-width: 680px;
  margin: 0 0 2rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
}

.hero__actions,
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.6rem 0 2rem;
}

.hero__chip,
.contact__amenities span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-round);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(101, 68, 49, 0.1);
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 700;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 720px;
  margin-top: 2rem;
}

.info-card {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 252, 247, 0.74);
  border: 1px solid rgba(101, 68, 49, 0.1);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.info-card--accent {
  background: linear-gradient(180deg, rgba(255, 248, 238, 0.88) 0%, rgba(244, 227, 201, 0.82) 100%);
}

.info-card__label,
.contact-card__label {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-card__title {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.06rem;
  color: var(--ink);
}

.info-card__text,
.contact-card p,
.feature-card p,
.about__text,
.about__quote p,
.dish-card p,
.events__feature p,
.step-card p {
  margin: 0;
  color: var(--ink-soft);
}

.hero__visual {
  position: relative;
  min-height: 640px;
}

.hero__photo {
  position: absolute;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow-lg);
  background: var(--white);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__photo--main {
  top: 0;
  right: 0;
  width: min(100%, 520px);
  height: 480px;
}

.hero__photo--small {
  bottom: 52px;
  left: 0;
  width: 260px;
  height: 220px;
  transform: translateY(var(--hero-parallax));
}

.hero__floating-card {
  position: absolute;
  right: 28px;
  bottom: 0;
  width: min(100%, 290px);
  padding: 1.2rem;
  border-radius: 26px;
  background: rgba(49, 33, 28, 0.88);
  color: rgba(255, 248, 241, 0.92);
  box-shadow: var(--shadow-md);
}

.hero__floating-card strong,
.about__lead,
.events__highlight h3,
.contact-card h3,
.footer__brand h3 {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--title-font);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 0.96;
  color: inherit;
}

.hero__floating-label {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: rgba(240, 217, 179, 0.92);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__floating-card p {
  margin: 0;
  color: rgba(255, 247, 239, 0.76);
}

.about__grid,
.events__grid,
.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.about__story {
  max-width: 620px;
}

.about__lead {
  margin: 0 0 1rem;
  color: var(--primary-strong);
}

.about__text {
  margin-bottom: 1.5rem;
}

.about__quote {
  position: relative;
  padding: 1.35rem 1.35rem 1.35rem 1.8rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.95) 0%, rgba(248, 237, 223, 0.88) 100%);
  border: 1px solid rgba(101, 68, 49, 0.12);
  box-shadow: var(--shadow-sm);
}

.about__quote-mark {
  position: absolute;
  left: 1rem;
  top: -0.4rem;
  font-family: var(--title-font);
  font-size: 4rem;
  line-height: 1;
  color: rgba(128, 53, 43, 0.22);
}

.about__gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.about__gallery-main,
.about__gallery-stack img,
.dish-card,
.menu-preview,
.cakes__panel,
.contact-card,
.contact__map,
.events__highlight,
.events__feature,
.signature-dishes .dish-card,
.feature-card {
  border-radius: var(--radius-md);
}

.about__gallery-main img,
.about__gallery-stack img,
.cakes__image,
.events__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.about__gallery-main {
  min-height: 430px;
  box-shadow: var(--shadow-md);
}

.about__gallery-stack {
  display: grid;
  gap: 1rem;
}

.about__gallery-stack img {
  min-height: 208px;
  box-shadow: var(--shadow-sm);
}

.about__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.feature-card {
  padding: 1.3rem;
  background: rgba(255, 252, 247, 0.76);
  border: 1px solid rgba(101, 68, 49, 0.1);
  box-shadow: var(--shadow-sm);
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: rgba(202, 149, 68, 0.18);
  font-size: 1.4rem;
}

.feature-card h3,
.dish-card h3,
.step-card h3,
.events__feature h4,
.menu-preview__intro h3 {
  margin: 0 0 0.45rem;
  font-family: var(--title-font);
  font-size: 2rem;
  line-height: 0.95;
  color: var(--primary-strong);
}

.signature-dishes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.dish-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 251, 247, 0.82);
  border: 1px solid rgba(101, 68, 49, 0.08);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.dish-card:hover,
.dish-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.dish-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 0.95;
  object-fit: cover;
}

.dish-card__body {
  padding: 1rem;
}

.menu-preview {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.88) 0%, rgba(247, 237, 223, 0.8) 100%);
  border: 1px solid rgba(101, 68, 49, 0.1);
  box-shadow: var(--shadow-md);
}

.menu-preview__intro {
  align-self: center;
}

.menu-preview__intro p {
  margin: 0;
  color: var(--ink-soft);
}

.menu-preview__pages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.menu-preview__page {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  isolation: isolate;
}

.menu-preview__page img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 0.84;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.menu-preview__page:hover img,
.menu-preview__page:focus-visible img {
  transform: scale(1.03);
}

.menu-preview__overlay {
  position: absolute;
  inset: auto 16px 16px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-round);
  background: rgba(36, 25, 22, 0.74);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.cakes__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: linear-gradient(135deg, rgba(255, 250, 242, 0.95) 0%, rgba(241, 227, 208, 0.84) 100%);
  border: 1px solid rgba(101, 68, 49, 0.1);
  box-shadow: var(--shadow-lg);
}

.cakes__description {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
}

.cakes__steps {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.step-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(101, 68, 49, 0.1);
}

.step-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(202, 149, 68, 0.24) 0%, rgba(128, 53, 43, 0.12) 100%);
  color: var(--primary-strong);
  font-size: 1rem;
  font-weight: 800;
}

.cakes__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0 0 1.5rem;
}

.stat {
  display: grid;
  gap: 0.3rem;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(101, 68, 49, 0.1);
  box-shadow: var(--shadow-sm);
}

.stat__number {
  font-family: var(--title-font);
  font-size: clamp(2rem, 3vw, 2.4rem);
  line-height: 0.9;
  color: var(--primary-strong);
}

.stat__label {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.cakes__gallery,
.events__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.cakes__image,
.events__image {
  min-height: 220px;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-sm);
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.cakes__image--large,
.events__image--large {
  grid-column: 1 / -1;
  min-height: 340px;
  max-height: 400px;
}

.events__image:not(.events__image--large) {
  min-height: 210px;
  max-height: 250px;
}

.events__grid {
  align-items: start;
}

.events__story {
  display: grid;
  gap: 1.25rem;
}

.events__highlight {
  padding: 1.4rem;
  background: rgba(255, 252, 247, 0.82);
  border: 1px solid rgba(101, 68, 49, 0.1);
  box-shadow: var(--shadow-sm);
}

.events__highlight p {
  margin: 0;
  color: var(--ink-soft);
}

.events__features {
  display: grid;
  gap: 0.9rem;
}

.events__feature {
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(101, 68, 49, 0.08);
  box-shadow: var(--shadow-sm);
}

.contact__cards {
  display: grid;
  gap: 1rem;
}

.contact-card {
  padding: 1.2rem;
  background: rgba(255, 252, 247, 0.8);
  border: 1px solid rgba(101, 68, 49, 0.1);
  box-shadow: var(--shadow-sm);
}

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

.contact-card h3 a,
.footer__meta a {
  color: var(--primary-strong);
  font-weight: 800;
}

.contact__amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 2.2rem;
}

.contact__grid {
  align-items: stretch;
}

.contact__map {
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(101, 68, 49, 0.12);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.contact__map iframe {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 520px;
  border: 0;
}

.footer {
  margin-top: 2rem;
  padding: 2.5rem 0 0;
  background: linear-gradient(180deg, rgba(61, 41, 35, 0.98) 0%, rgba(39, 25, 22, 0.98) 100%);
  color: rgba(255, 247, 239, 0.88);
}

.footer__container {
  display: grid;
  grid-template-columns: 1.15fr 0.8fr 0.8fr;
  gap: 1rem;
  align-items: start;
}

.footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.footer__logo {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  border-radius: 18px;
}

.footer__brand h3 {
  font-size: 2rem;
  margin: 0 0 0.35rem;
}

.footer__brand p,
.footer__meta p {
  margin: 0;
  color: rgba(255, 247, 239, 0.68);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.1rem;
}

.footer__links a {
  color: rgba(255, 247, 239, 0.78);
  font-weight: 700;
}

.footer__meta {
  display: grid;
  gap: 0.45rem;
}

.footer__bottom {
  margin-top: 2rem;
  padding: 1rem 16px 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: rgba(255, 247, 239, 0.56);
  font-size: 0.92rem;
}

.scrollup {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(128, 53, 43, 0.15);
  background: rgba(255, 251, 247, 0.86);
  color: var(--primary-strong);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition);
}

.scrollup.show-scroll {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(33, 22, 19, 0.68);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(14px);
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal__dialog {
  position: relative;
  width: min(100%, 540px);
  padding: 1.4rem;
  border-radius: 30px;
  background: rgba(255, 252, 247, 0.96);
  box-shadow: var(--shadow-lg);
  transform: translateY(18px) scale(0.98);
  transition: transform var(--transition);
}

.modal.is-open .modal__dialog {
  transform: translateY(0) scale(1);
}

.modal__dialog--compact {
  text-align: center;
}

.modal__dialog--image {
  width: min(100%, 980px);
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.08);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(36, 25, 22, 0.08);
  color: var(--primary-strong);
  font-size: 1.65rem;
  line-height: 1;
}

.modal__title {
  margin: 0 0 0.75rem;
  font-family: var(--title-font);
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 0.95;
  color: var(--primary-strong);
}

.modal__text {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.modal__phone {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 800;
}

.modal__cta {
  width: 100%;
}

.modal__image {
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 22px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal="left"] {
  transform: translateX(32px);
}

[data-reveal="right"] {
  transform: translateX(-32px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 1080px) {
  .signature-dishes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero__grid,
  .cakes__panel,
  .about__grid,
  .events__grid,
  .contact__grid,
  .menu-preview {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 560px;
    order: -1;
  }

  .hero__photo--main {
    left: 50%;
    transform: translateX(-50%);
    width: min(100%, 560px);
  }

  .hero__photo--small {
    left: 20px;
  }

  .hero__floating-card {
    right: 18px;
  }

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

  .footer__container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .header {
    padding: 0.75rem 0;
  }

  .nav {
    align-items: center;
    min-height: auto;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__menu-wrap {
    position: absolute;
    top: calc(100% + 12px);
    right: 16px;
    left: 16px;
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 26px;
    background: rgba(255, 252, 247, 0.98);
    border: 1px solid rgba(101, 68, 49, 0.08);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity var(--transition), transform var(--transition);
  }

  .nav__menu-wrap.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav__menu {
    display: grid;
    gap: 0.4rem;
    padding: 0;
    background: none;
    border: 0;
  }

  .nav__link {
    justify-content: center;
  }

  .nav__phone {
    width: 100%;
  }

  .hero {
    padding-top: 1rem;
  }

  .hero__stats,
  .cakes__stats,
  .about__features,
  .signature-dishes,
  .menu-preview__pages {
    grid-template-columns: 1fr 1fr;
  }

  .about__gallery {
    grid-template-columns: 1fr;
  }

  .contact__map {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, var(--container-width));
  }

  .section {
    padding: 4.25rem 0;
  }

  .nav__brand {
    gap: 0.75rem;
  }

  .logo {
    width: 50px;
    height: 50px;
  }

  .nav__title {
    font-size: 1.6rem;
  }

  .nav__subtitle {
    display: none;
  }

  .hero__title {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .hero__visual {
    min-height: 430px;
  }

  .hero__photo--main {
    height: 320px;
  }

  .hero__photo--small {
    width: 150px;
    height: 140px;
    bottom: 76px;
  }

  .hero__floating-card {
    left: 24px;
    right: 24px;
    width: auto;
    bottom: 0;
  }

  .hero__stats,
  .cakes__stats,
  .about__features,
  .signature-dishes,
  .menu-preview__pages,
  .cakes__gallery,
  .events__gallery {
    grid-template-columns: 1fr;
  }

  .menu-preview,
  .cakes__panel {
    padding: 1rem;
  }

  .contact__actions,
  .hero__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .stat,
  .feature-card,
  .contact-card,
  .events__feature,
  .events__highlight,
  .step-card,
  .dish-card__body {
    padding: 1rem;
  }

  .stat {
    text-align: center;
    justify-items: center;
  }

  .step-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .modal {
    padding: 14px;
  }

  .modal__dialog {
    border-radius: 24px;
  }
}
