:root {
  --bg: #fff8f6;
  --paper: #fffdfb;
  --soft: #fff1ee;
  --line: #f4ccc6;
  --text: #3f2421;
  --muted: #725855;
  --accent: #fb7077;
  --accent-dark: #e95c65;
  --green: #69ba8c;
  --shadow: 0 18px 50px rgba(101, 46, 42, .08);
  --radius: 8px;
  --container: 1180px;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1040px, calc(100% - 32px));
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 251, 0.96);
  box-shadow: 0 20px 60px rgba(63, 36, 33, 0.2);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.cookie-banner a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: underline;
}

.cookie-banner .btn {
  flex: 0 0 auto;
  min-width: 126px;
  border: 0;
}

html[data-theme="dark"] .cookie-banner {
  background: rgba(29, 29, 32, 0.96);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
}

@media (max-width: 700px) {
  .cookie-banner {
    bottom: 10px;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    width: calc(100% - 20px);
    padding: 16px;
  }

  .cookie-banner .btn {
    width: 100%;
  }
}

html[data-theme="dark"] {
  --bg: #151517;
  --paper: #1d1d20;
  --soft: #29292d;
  --line: #3a3a40;
  --text: #f7f1ef;
  --muted: #c9bbb7;
  --accent: #ff8b92;
  --accent-dark: #ffb1b6;
  --green: #79c99c;
  --shadow: 0 18px 50px rgba(0, 0, 0, .28);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 214, 209, .42), transparent 28%),
    linear-gradient(180deg, #fffaf8 0%, var(--bg) 44%, #fffdfb 100%);
  line-height: 1.55;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 139, 146, .14), transparent 30%),
    linear-gradient(180deg, #111113 0%, var(--bg) 48%, #1a1a1d 100%);
}

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

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

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: clamp(30px, 2.9vw, 40px);
  overflow-wrap: normal;
}

h1 span,
.eyebrow {
  color: var(--accent);
}

h1 .title-nowrap {
  color: inherit;
  white-space: nowrap;
  text-wrap: balance;
}

h1 .title-nowrap span {
  color: var(--accent);
}

h1 span,
h1 .title-nowrap span,
.eyebrow,
.btn-outline,
.category-card a,
.steps li::before,
.options span,
.review b,
.review-arrow,
.stats b {
  font-weight: 800;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 3.5vw, 44px);
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

p {
  color: var(--muted);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(244, 204, 198, .6);
  background: rgba(255, 250, 248, .9);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav > * {
  align-self: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 0;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex: 0 0 auto;
  padding: 10px;
  border: 1px solid rgba(244, 204, 198, .9);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}

.theme-toggle {
  width: 86px;
  height: 40px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 0 9px;
  border: 1px solid rgba(244, 204, 198, .9);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  cursor: pointer;
}

.theme-toggle__sun,
.theme-toggle__moon {
  width: 15px;
  flex: 0 0 15px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  text-align: center;
  opacity: .5;
  transition: color .2s ease, opacity .2s ease, transform .2s ease;
}

.theme-toggle__sun {
  color: #c77a18;
  opacity: 1;
}

.theme-toggle__moon {
  color: var(--text);
}

.theme-toggle__track {
  width: 28px;
  height: 16px;
  position: relative;
  flex: 0 0 28px;
  border-radius: 999px;
  background: rgba(111, 83, 78, .22);
  transition: background .2s ease;
}

.theme-toggle__thumb {
  width: 12px;
  height: 12px;
  position: absolute;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(52, 31, 28, .28);
  transition: transform .2s ease;
}

.theme-toggle[aria-pressed="true"] .theme-toggle__sun {
  color: var(--muted);
  opacity: .5;
}

.theme-toggle[aria-pressed="true"] .theme-toggle__moon {
  opacity: 1;
  transform: scale(1.08);
}

.theme-toggle[aria-pressed="true"] .theme-toggle__track {
  background: var(--accent);
}

.theme-toggle[aria-pressed="true"] .theme-toggle__thumb {
  transform: translateX(12px);
}

.brand-logo {
  width: clamp(150px, 15vw, 250px);
  height: auto;
  display: block;
  object-fit: contain;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 500;
}

.brand small,
.header-action small {
  display: block;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.menu {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
}

.menu > a,
.menu > .menu-dropdown {
  flex: 0 0 auto;
}

.menu-dropdown {
  position: relative;
  padding-bottom: 16px;
  margin-bottom: -16px;
}

.menu-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -18px;
  right: -18px;
  height: 18px;
}

.menu a {
  white-space: nowrap;
  transition: color .2s ease, font-weight .2s ease;
}

.menu-catalog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.menu-catalog-link::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.menu-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 30;
  width: 300px;
  max-height: min(70vh, 560px);
  overflow: visible;
  display: block;
  padding: 18px 0;
  border: 1px solid rgba(244, 204, 198, .85);
  border-radius: var(--radius);
  border-top: 3px solid var(--accent);
  background: rgba(255, 253, 251, .98);
  box-shadow: 0 18px 42px rgba(101, 46, 42, .12);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .18s ease, transform .18s ease;
}

.menu-dropdown:hover .menu-dropdown-panel,
.menu-dropdown:focus-within .menu-dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.catalog-menu-row-wrap {
  position: relative;
}

.catalog-menu-row-wrap.has-submenu::after {
  content: "";
  position: absolute;
  top: 0;
  left: 100%;
  width: 14px;
  height: 100%;
}

.catalog-menu-row {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 28px;
  color: var(--muted);
  font-weight: 800;
  transition: background .18s ease, color .18s ease;
}

.catalog-menu-row:hover,
.catalog-menu-row-wrap:focus-within > .catalog-menu-row,
.catalog-menu-row-wrap:hover > .catalog-menu-row {
  background: var(--soft);
  color: var(--accent-dark);
}

.catalog-menu-arrow {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.catalog-menu-sublist {
  position: absolute;
  top: -18px;
  left: 100%;
  width: 300px;
  min-height: calc(100% + 36px);
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 34px 0 18px;
  border: 1px solid rgba(244, 204, 198, .85);
  border-top: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(255, 253, 251, .98);
  box-shadow: 18px 18px 42px rgba(101, 46, 42, .1);
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: opacity .18s ease, transform .18s ease;
}

.catalog-menu-row-wrap:hover .catalog-menu-sublist,
.catalog-menu-row-wrap:focus-within .catalog-menu-sublist {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.catalog-menu-sublist a {
  display: block;
  min-height: 50px;
  padding: 13px 28px;
  color: var(--muted);
  font-weight: 800;
}

.catalog-menu-sublist a:hover {
  background: var(--soft);
  color: var(--accent-dark);
}

.catalog-menu-empty {
  display: block;
  padding: 14px 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.menu a:hover,
.phone:hover {
  color: var(--accent-dark);
  font-weight: 800;
}

.header-action {
  text-align: right;
  font-size: 13px;
}

.phone {
  display: block;
  font-weight: 800;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 26px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ff8b8f);
  box-shadow: 0 14px 26px rgba(251, 112, 119, .28);
}

.header-calc-btn {
  min-height: 54px;
  padding: 6px 20px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 5px 12px rgba(251, 112, 119, .14);
}

.btn-outline {
  color: var(--accent-dark);
  border-color: var(--accent);
  background: rgba(255, 255, 255, .72);
}

.hero {
  min-height: 0;
  display: flex;
  align-items: center;
  padding: 42px 0 56px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 248, 246, .98) 0%, rgba(255, 248, 246, .84) 46%, rgba(255, 226, 222, .38) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(520px, 1fr);
  align-items: center;
  gap: 34px;
}

.eyebrow {
  margin-bottom: 12px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
}

.lead {
  max-width: 640px;
  margin-bottom: 22px;
  font-size: 17px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
}

.checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 26px;
  padding: 0;
  margin: 0;
  list-style: none;
  max-width: 660px;
  color: var(--text);
  font-size: 15px;
}

.checks li {
  position: relative;
  padding-left: 28px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .35);
}

.hero-media {
  position: relative;
  align-self: stretch;
  min-height: 510px;
  margin-right: 0;
  border-radius: 8px;
  overflow: hidden;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 248, 246, .98) 0%, rgba(255, 248, 246, .42) 9%, rgba(255, 248, 246, 0) 23%),
    linear-gradient(180deg, rgba(255, 248, 246, .94) 0%, rgba(255, 248, 246, .62) 10%, rgba(255, 248, 246, .24) 24%, rgba(255, 248, 246, 0) 38%, rgba(255, 248, 246, 0) 62%, rgba(255, 248, 246, .22) 76%, rgba(255, 248, 246, .58) 90%, rgba(255, 248, 246, .88) 100%);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 16px;
  pointer-events: none;
  background: rgba(255, 248, 246, .01);
  box-shadow: inset 22px 0 30px rgba(255, 248, 246, .66), inset 0 24px 34px rgba(255, 248, 246, .36), inset 0 -28px 38px rgba(255, 248, 246, .46);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  display: none;
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 48% center;
  filter: saturate(1.02) contrast(1.01);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  mask-composite: intersect;
}

.hero-media__image--dark {
  display: none;
}

.section {
  padding: 82px 0;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-head p {
  margin-bottom: 0;
}

.benefits,
.category-grid,
.gallery-grid,
.fillings,
.three-cols,
.about-grid,
.faq-grid,
.footer-grid {
  display: grid;
  gap: 22px;
}

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

.benefit,
.category-card,
.cake-card,
.fillings article,
.panel,
details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 251, .78);
  box-shadow: var(--shadow);
}

.benefit {
  min-height: 210px;
  padding: 28px 18px;
  text-align: center;
}

.benefit-icon {
  width: 88px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.benefit-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.benefit p,
.category-card p,
.fillings p {
  margin-bottom: 0;
  font-size: 14px;
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
}

.category-catalog-more {
  display: none;
}

.category-card,
.cake-card,
.fillings article {
  overflow: hidden;
}

.category-card img,
.cake-card img,
.fillings img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.category-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: 18px;
}

.category-card img,
.cake-card img {
  object-fit: cover;
  background: var(--paper);
}

.category-card img {
  width: 100%;
  height: clamp(220px, 30vw, 350px);
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  background: #fff;
  display: block;
}

.cake-card img[src*="wedding-two-cakes"] {
  object-position: left center;
  transform: scale(1.15);
  transform-origin: left center;
}

.category-card img[src*="wedding-cakes-kazan"] {
  object-fit: contain;
  transform: none;
}

.category-card h3,
.category-card p,
.category-card a {
  margin-left: 18px;
  margin-right: 18px;
}

.category-card h3 {
  margin-top: 18px;
}

.category-card a {
  width: auto;
  min-width: 132px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-top: auto;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ff8b8f);
  box-shadow: 0 14px 26px rgba(251, 112, 119, .28);
  font-weight: 700;
  font-size: 13px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.category-card p {
  margin-bottom: 18px;
}

.category-card a:hover {
  transform: translateY(-2px);
}

.category-card a::after {
  content: ">";
  margin-left: 10px;
  font-size: 17px;
  line-height: 1;
}

.realized {
  background: linear-gradient(180deg, rgba(255, 241, 238, .58), rgba(255, 248, 246, .2));
}

.gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
}

.cake-card {
  height: 100%;
  padding-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.cake-card img {
  width: 100%;
  height: clamp(220px, 30vw, 350px);
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  background: #fff;
  display: block;
}

.cake-card div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px 12px;
  font-size: 14px;
}

.cake-card .cake-card__media {
  width: 100%;
  height: clamp(220px, 30vw, 350px);
  flex: 0 0 auto;
  display: block;
  overflow: hidden;
  padding: 0;
}

.cake-card .cake-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  transform: scale(1.15);
  transform-origin: left center;
}

.cake-card span {
  color: var(--muted);
  white-space: nowrap;
}

.cake-card a {
  min-width: 150px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin: auto 16px 0;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ff8b8f);
  box-shadow: 0 14px 26px rgba(251, 112, 119, .28);
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.cake-card a:hover {
  transform: translateY(-2px);
}

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

.catalog-hero {
  padding: 72px 0 58px;
  background: linear-gradient(180deg, rgba(255, 241, 238, .76), rgba(255, 248, 246, .22));
  transition: background .35s ease;
}

.catalog-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: 46px;
}

.catalog-hero__copy h1 {
  max-width: 620px;
}

.catalog-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.catalog-hero__media {
  position: relative;
  align-self: stretch;
  min-height: 430px;
  overflow: hidden;
  border: 0;
  border-radius: 8px 0 0 8px;
  background: var(--bg);
  box-shadow: none;
  transition: background .35s ease;
}

.catalog-hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 248, 246, .98) 0%, rgba(255, 248, 246, .42) 9%, rgba(255, 248, 246, 0) 23%),
    linear-gradient(180deg, rgba(255, 248, 246, .94) 0%, rgba(255, 248, 246, .62) 10%, rgba(255, 248, 246, .24) 24%, rgba(255, 248, 246, 0) 38%, rgba(255, 248, 246, 0) 62%, rgba(255, 248, 246, .22) 76%, rgba(255, 248, 246, .58) 90%, rgba(255, 248, 246, .88) 100%);
}

.catalog-hero__media::after {
  content: "";
  position: absolute;
  inset: -24px;
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 34px 0 38px rgba(255, 248, 246, .92), inset 0 72px 86px rgba(255, 248, 246, .72), inset 0 -76px 90px rgba(255, 248, 246, .68);
}

.catalog-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 50% center;
  filter: saturate(1.02) contrast(1.01);
  mix-blend-mode: normal;
  transition: opacity .45s ease, filter .45s ease, transform .45s ease;
  -webkit-mask-image: radial-gradient(ellipse at 52% 50%, #000 56%, rgba(0, 0, 0, .9) 68%, rgba(0, 0, 0, .34) 87%, transparent 100%);
  mask-image: radial-gradient(ellipse at 52% 50%, #000 56%, rgba(0, 0, 0, .9) 68%, rgba(0, 0, 0, .34) 87%, transparent 100%);
}

.catalog-hero__image--light {
  opacity: 1;
}

.catalog-hero__image--dark {
  opacity: 0;
}

.catalog-section {
  padding-top: 54px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.catalog-sidebar {
  position: sticky;
  top: 96px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 251, .86);
  box-shadow: var(--shadow);
}

.catalog-sidebar h2 {
  margin-bottom: 18px;
  font-size: 28px;
}

.catalog-tree {
  display: grid;
  gap: 8px;
}

.catalog-tree a {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  transition: background .18s ease, color .18s ease;
}

.catalog-tree a:hover {
  background: var(--soft);
  color: var(--accent-dark);
}

.catalog-tree a.is-active {
  background: var(--accent);
  color: #fff;
}

.catalog-tree__sub {
  display: grid;
  gap: 3px;
  padding-left: 12px;
  border-left: 2px solid var(--line);
}

.catalog-tree__sub a {
  min-height: 32px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.catalog-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.catalog-heading h2 {
  margin-bottom: 8px;
}

.catalog-heading p {
  max-width: 680px;
  margin-bottom: 0;
}

.catalog-heading span {
  flex: 0 0 auto;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
}

.dessert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 22px;
}

.catalog-empty {
  grid-column: 1 / -1;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 251, .82);
  box-shadow: var(--shadow);
}

.catalog-empty h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.catalog-empty p {
  margin-bottom: 0;
}

.dessert-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 251, .82);
  box-shadow: var(--shadow);
}

.dessert-card__image-button {
  width: 100%;
  height: clamp(220px, 30vw, 350px);
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--paper);
  cursor: pointer;
}

.dessert-card__image-button img {
  height: 100%;
  transition: transform .25s ease;
}

.dessert-card__image-button:hover img {
  transform: scale(1.01);
}

.catalog-anchor {
  position: absolute;
  top: -110px;
}

.dessert-card > img,
.dessert-card__image-button img {
  display: block;
  width: 100%;
  height: clamp(220px, 30vw, 350px);
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 45%;
  transform: scale(1.01);
}

.dessert-card > img {
  background: var(--paper);
}

.dessert-card__image-button img {
  height: 100%;
}

.dessert-card__body {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 0;
}

.dessert-card__tag {
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.dessert-card h3 {
  font-size: 19px;
}

.dessert-card p {
  margin-bottom: 18px;
  font-size: 14px;
}

.dessert-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  margin-bottom: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.dessert-card__meta span {
  color: var(--muted);
}

.dessert-card__meta b {
  color: var(--text);
  text-align: right;
}

.dessert-card .btn {
  width: auto;
  min-width: 132px;
  min-height: 38px;
  align-self: center;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  box-shadow: 0 14px 26px rgba(251, 112, 119, .28);
  font-size: 13px;
  cursor: pointer;
}

.dessert-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.dessert-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.dessert-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(63, 36, 33, .34);
  backdrop-filter: blur(10px);
}

.dessert-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(280px, .92fr) minmax(320px, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 241, 238, .5), rgba(255, 253, 251, .92)),
    var(--paper);
  box-shadow: 0 28px 80px rgba(101, 46, 42, .18);
  transform: translateY(12px) scale(.98);
  transition: transform .22s ease;
}

.dessert-modal[aria-hidden="false"] .dessert-modal__dialog {
  transform: translateY(0) scale(1);
}

.dessert-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 251, .9);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.dessert-modal__media {
  padding: 18px;
  min-height: 100%;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 241, 238, .78), transparent 62%),
    var(--bg);
}

.dessert-modal__media img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(101, 46, 42, .1);
}

.dessert-modal__content {
  padding: 42px 38px 34px;
}

.dessert-modal__content h2 {
  margin-bottom: 14px;
  color: var(--text);
  font-size: clamp(28px, 3vw, 38px);
}

.dessert-modal__form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.dessert-modal__form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.dessert-modal__field {
  display: grid;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.dessert-modal__form select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 251, .84);
  color: var(--text);
  font: inherit;
  font-weight: 700;
}

.filling-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 8px;
  align-items: start;
}

.filling-choice {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: transform .18s ease;
}

.filling-choice:hover,
.filling-choice.is-active {
  background: transparent;
}

.filling-choice.is-active {
  transform: translateY(-1px);
}

.filling-choice__image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 253, 251, .9);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.filling-choice:hover .filling-choice__image,
.filling-choice.is-active .filling-choice__image {
  border-color: var(--accent);
  box-shadow: 0 8px 16px rgba(251, 112, 119, .18);
}

.filling-choice.is-active .filling-choice__image {
  border-width: 2px;
  padding: 2px;
}

.filling-choice img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(255, 255, 255, .42);
}

.filling-choice__check {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 22px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 4px 10px rgba(45, 28, 24, .25);
  opacity: 0;
  transform: scale(.76);
  transition: opacity .18s ease, transform .18s ease;
}

.filling-choice__check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filling-choice.is-active .filling-choice__check {
  opacity: 1;
  transform: scale(1);
}

.filling-choice__title {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.dessert-modal__summary {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 241, 238, .72);
}

.dessert-modal__summary span {
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
}

.dessert-modal__summary small {
  color: var(--muted);
}

.dessert-modal__form .btn {
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 16px 30px rgba(251, 112, 119, .26);
}

body.is-dessert-modal-open {
  overflow: hidden;
}

.cart-fab {
  position: fixed;
  right: 34px;
  bottom: 28px;
  z-index: 80;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--accent-dark);
  box-shadow: 0 18px 44px rgba(63, 36, 33, .2);
  cursor: pointer;
}

.cart-icon {
  width: 24px;
  height: 21px;
  position: relative;
  display: inline-block;
  border: 3px solid currentColor;
  border-top: 0;
}

.cart-icon::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: -10px;
  height: 14px;
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
}

.cart-icon::after {
  content: "";
  position: absolute;
  inset: 6px 5px auto;
  height: 2px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor;
}

.cart-badge {
  min-width: 22px;
  height: 22px;
  position: absolute;
  top: -6px;
  right: -3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ff8b8f);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(251, 112, 119, .28);
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease;
}

.cart-drawer[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(63, 36, 33, .34);
  backdrop-filter: blur(10px);
}

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(460px, 100%);
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-left: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 241, 238, .58), rgba(255, 253, 251, .95)),
    var(--paper);
  color: var(--text);
  transform: translateX(100%);
  transition: transform .28s ease;
}

.cart-drawer[aria-hidden="false"] .cart-drawer__panel {
  transform: translateX(0);
}

.cart-drawer__header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 251, .78);
}

.cart-drawer__title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-drawer__title h2 {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.05;
}

.cart-drawer__close {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.cart-drawer__items {
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px 16px;
}

.cart-item,
.cart-empty {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 251, .84);
  box-shadow: var(--shadow);
}

.cart-item {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.cart-item img {
  width: 92px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
}

.cart-item__body {
  min-width: 0;
  color: var(--text);
}

.cart-item h3 {
  padding-right: 24px;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 15px;
}

.cart-item p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

.cart-item__remove {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.cart-item__price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  color: var(--text);
  font-size: 14px;
}

.cart-empty {
  padding: 26px;
  text-align: center;
}

.cart-empty h3 {
  color: var(--text);
}

.cart-empty p {
  margin-bottom: 0;
  color: var(--muted);
}

.cart-drawer__footer {
  padding: 18px 22px 20px;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 251, .86);
  box-shadow: 0 -12px 30px rgba(101, 46, 42, .08);
  text-align: center;
}

.cart-drawer__total {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 21px;
  font-weight: 700;
}

.cart-drawer__hint {
  margin: 0 auto 18px;
  max-width: 330px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.cart-drawer__footer .btn {
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ff8b8f);
  box-shadow: 0 12px 24px rgba(251, 112, 119, .22);
  color: #fff;
  text-transform: none;
  font-size: 15px;
}

body.is-cart-open {
  overflow: hidden;
}

.catalog-fillings {
  background: linear-gradient(180deg, rgba(255, 241, 238, .55), rgba(255, 248, 246, .18));
}

.catalog-fillings .fillings {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.fillings article {
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
  text-align: left;
}

.fillings h3,
.fillings p {
  padding-left: 16px;
  padding-right: 16px;
}

.fillings h3 {
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.25;
}

.fillings p {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.42;
}

.workband-block {
  padding: 34px 0;
  background: rgba(255, 241, 238, .45);
}

.workband-block--steps {
  padding-top: 82px;
}

.workband-block--calculator {
  background: transparent;
}

.workband-block--reviews {
  padding-bottom: 82px;
}

.workband-block__container {
  display: block;
}

.workband-block .panel {
  width: 100%;
  padding: 36px;
}

.workband-block--steps .steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.workband-block--steps .steps li {
  margin-bottom: 0;
}

.workband-block--steps .full,
.workband-block--reviews .review-submit-btn {
  width: min(100%, 340px);
}

.workband-block--reviews .review-submit-btn {
  align-self: center;
}

.workband-block--reviews .review-carousel {
  width: min(100%, 820px);
  margin-right: auto;
  margin-left: auto;
}

.three-cols {
  grid-template-columns: .9fr 1.45fr .9fr;
  align-items: stretch;
}

.panel {
  padding: 28px;
}

.panel h2 {
  font-size: clamp(26px, 2.5vw, 36px);
}

.steps {
  padding: 0;
  margin: 26px 0;
  counter-reset: step;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 38px;
  padding-left: 44px;
  margin-bottom: 18px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-weight: 700;
}

.full {
  width: 100%;
}

.calc-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.options {
  grid-row: span 4;
  display: grid;
  gap: 10px;
}

.options label,
input,
.upload {
  min-height: 48px;
  width: 100%;
  border: 1px solid #ead8d4;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font: inherit;
}

.options label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-weight: 700;
}

.options input {
  width: auto;
  min-height: auto;
}

.options span {
  margin-left: auto;
  color: var(--accent-dark);
  white-space: nowrap;
  font-size: 13px;
}

input {
  padding: 0 16px;
}

.calc-form button {
  border: 0;
}

.review {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.review::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -54px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(251, 112, 119, .13);
  pointer-events: none;
}

.review-carousel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  margin-top: 10px;
}

.review-track {
  position: relative;
  min-height: 258px;
}

.review-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transform: translateX(14px);
  transition: opacity .24s ease, transform .24s ease, visibility .24s ease;
}

.review-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.review blockquote {
  margin: 24px 0 16px;
  padding: 18px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 241, 238, .62);
  color: var(--text);
}

.review b {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--accent-dark);
}

.review blockquote p {
  margin-bottom: 0;
  color: var(--text);
}

.review-submit-btn {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 18px;
  border: 0;
  cursor: pointer;
}

.review-controls,
.review-dots {
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-controls {
  gap: 14px;
  margin-top: auto;
}

.review-arrow,
.review-dots button {
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.review-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--accent-dark);
  font: 700 18px/1 Arial, Helvetica, sans-serif;
}

.review-dots {
  gap: 8px;
}

.review-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
}

.review-arrow:hover,
.review-dots button:hover,
.review-dots button.is-active {
  border-color: var(--accent);
  background: var(--soft);
}

.review-arrow:hover {
  transform: translateY(-1px);
}

.review-dots button.is-active {
  background: var(--accent);
}

.calculation-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.calculation-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.calculation-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(63, 36, 33, .38);
  backdrop-filter: blur(10px);
}

.calculation-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(940px, 100%);
  max-height: calc(100vh - 24px);
  overflow: hidden;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(101, 46, 42, .22);
  transform: translateY(12px) scale(.98);
  transition: transform .22s ease;
}

.calculation-modal[aria-hidden="false"] .calculation-modal__dialog {
  transform: translateY(0) scale(1);
}

.calculation-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.calculation-modal__lead {
  margin: 4px 40px 14px 0;
  color: var(--muted);
}

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

.calculation-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "contacts contacts"
    "basis filling"
    "amount photo"
    "comment comment"
    "consents consents"
    "status submit";
  gap: 8px 14px;
}

.calculation-form [data-calculation-amount][hidden] {
  display: none;
}

.calculation-form label,
.calculation-basis legend {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.calculation-form .required-mark {
  color: var(--accent-dark);
}

.calculation-form__grid {
  grid-area: contacts;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.calculation-form__filling {
  grid-area: filling;
}

.calculation-basis {
  grid-area: basis;
}

.calculation-form [data-calculation-amount] {
  grid-area: amount;
}

.calculation-photo {
  grid-area: photo;
}

.calculation-form__comment {
  grid-area: comment;
}

.calculation-consents {
  grid-area: consents;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 14px;
}

.calculation-form .calculation-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.calculation-consent input {
  width: 17px;
  height: 17px;
  min-height: 17px;
  flex: 0 0 17px;
  margin: 1px 0 0;
  padding: 0;
}

.calculation-consent a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
}

.calculation-modal__status {
  grid-area: status;
  align-self: center;
}

.calculation-form > .btn {
  grid-area: submit;
}

.calculation-form input,
.calculation-form select,
.calculation-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 251, .9);
  color: var(--text);
  font: inherit;
}

.calculation-form textarea {
  min-height: 62px;
  padding: 10px 14px;
  resize: vertical;
}

.calculation-photo {
  padding: 8px 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: rgba(255, 241, 238, .5);
  cursor: pointer;
}

.calculation-photo:hover,
.calculation-photo:focus-within {
  border-color: var(--accent);
}

.calculation-photo.is-invalid {
  border-color: #c94c55;
}

.calculation-photo > input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.calculation-photo__content {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.calculation-photo__content img {
  display: none;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 10px;
  object-fit: cover;
}

.calculation-photo.has-file .calculation-photo__content img {
  display: block;
}

.calculation-photo__content span {
  min-width: 0;
}

.calculation-photo__content b,
.calculation-photo__content small {
  display: block;
}

.calculation-photo__content b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calculation-basis {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.calculation-basis legend {
  margin-bottom: 8px;
}

.calculation-basis__switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.calculation-basis__switch label {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 241, 238, .72);
  cursor: pointer;
}

.calculation-basis__switch input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
}

.calculation-form small {
  color: var(--muted);
  font-weight: 500;
}

.calculation-modal__status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.calculation-form .btn {
  min-height: 54px;
  border: 0;
}

.calculation-form .btn:disabled {
  cursor: wait;
  opacity: .7;
}

body.is-calculation-modal-open {
  overflow: hidden;
}

.review-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.review-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.review-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(63, 36, 33, .34);
  backdrop-filter: blur(10px);
}

.review-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  display: grid;
  gap: 16px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(101, 46, 42, .18);
  transform: translateY(12px) scale(.98);
  transition: transform .22s ease;
}

.review-modal[aria-hidden="false"] .review-modal__dialog {
  transform: translateY(0) scale(1);
}

.review-modal__dialog h2 {
  margin-bottom: 2px;
}

.review-modal__dialog label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.review-modal__dialog input,
.review-modal__dialog textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 251, .84);
  color: var(--text);
  font: inherit;
}

.review-modal__dialog textarea {
  min-height: 132px;
  padding: 14px 16px;
  resize: vertical;
}

.review-modal__dialog .btn {
  border: 0;
  cursor: pointer;
}

.review-modal__dialog .btn:disabled {
  cursor: wait;
  opacity: .7;
}

.review-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 251, .9);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.review-modal__status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

body.is-review-modal-open {
  overflow: hidden;
}

.about-grid {
  grid-template-columns: 1fr 1.25fr .9fr;
  align-items: stretch;
}

.about-copy,
.trust,
.idea {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 251, .78);
  box-shadow: var(--shadow);
  padding: 28px;
}

.trust {
  display: grid;
  gap: 16px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  text-align: center;
}

.stats span {
  font-size: 13px;
  color: var(--muted);
}

.stats b {
  display: block;
  color: var(--accent-dark);
  font-size: 26px;
  white-space: nowrap;
}

.idea form {
  display: grid;
  gap: 14px;
}

.upload {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 86px;
  padding: 12px 16px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.upload:hover,
.upload:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(251, 112, 119, .12);
}

.upload.is-invalid {
  border-color: #c94c55;
}

.upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.upload__copy {
  min-width: 0;
}

.upload__copy strong,
.upload__copy small,
.upload__filename {
  display: block;
}

.upload__preview {
  display: none;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 12px;
  object-fit: cover;
}

.upload.has-file {
  justify-content: flex-start;
  text-align: left;
}

.upload.has-file .upload__preview {
  display: block;
}

.upload__filename {
  max-width: 220px;
  margin-top: 4px;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload__status {
  min-height: 18px;
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.upload small {
  color: #b16a65;
}

.faq-grid {
  grid-template-columns: .95fr 1.8fr;
  align-items: stretch;
}

details {
  margin-bottom: 10px;
  padding: 0 16px;
}

summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  margin-right: 3px;
  border-right: 2px solid var(--accent-dark);
  border-bottom: 2px solid var(--accent-dark);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}

details[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

details p {
  padding-bottom: 14px;
  margin-bottom: 0;
}

.final-cta {
  position: static;
  min-height: 270px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: start;
  align-content: start;
  gap: 24px;
  padding: 30px 44px 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fffdfb 0%, #fff1ee 100%);
  overflow: hidden;
}

.final-cta > div {
  position: relative;
  z-index: 1;
  align-self: start;
}

.final-cta img {
  align-self: start;
}

.final-cta__cake {
  position: static;
  justify-self: end;
  width: 260px;
  height: 220px;
  border-radius: 0;
  object-fit: cover;
  object-position: 62% 50%;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .22) 18%, #000 38%),
    linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .22) 18%, #000 38%),
    linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
  mask-composite: intersect;
}

.final-cta__cake--dark {
  display: none;
}

html[data-theme="light"] .final-cta__cake--light {
  display: block;
}

html[data-theme="light"] .final-cta__cake--dark {
  display: none;
}

.messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.messengers a {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
}

.messengers a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(101, 46, 42, .14);
}

.messengers svg {
  width: 25px;
  height: 25px;
  display: block;
  fill: currentColor;
}

.messengers img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.wa { background: #2abb68; }
.tg { background: #3fa8f4; }
.vk { background: #6655df; }
.max { background: transparent; }
.call { background: var(--accent); }

.footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: #fffaf8;
}

.policy-page {
  background:
    linear-gradient(180deg, rgba(255, 250, 248, .92), rgba(255, 244, 240, .64)),
    var(--bg);
}

.policy-content {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 251, .88);
  box-shadow: 0 20px 48px rgba(101, 46, 42, .08);
}

.policy-content h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 5vw, 56px);
  line-height: .98;
  color: var(--text);
}

.policy-content h2 {
  margin: 34px 0 14px;
  color: var(--text);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.16;
}

.policy-content p,
.policy-content li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.policy-content p {
  margin: 0 0 12px;
}

.policy-content ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.policy-content strong {
  color: var(--text);
}

html[data-theme="dark"] .site-header {
  border-bottom-color: rgba(58, 58, 64, .86);
  background: rgba(20, 20, 23, .9);
}

html[data-theme="dark"] .policy-page {
  background: var(--bg);
}

html[data-theme="dark"] .policy-content {
  border-color: rgba(72, 72, 80, .9);
  background: rgba(29, 29, 33, .9);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .menu-toggle,
html[data-theme="dark"] .theme-toggle {
  border-color: rgba(72, 72, 80, .92);
  background: rgba(34, 34, 38, .86);
}

html[data-theme="dark"] .btn-outline {
  background: rgba(36, 36, 40, .78);
}

html[data-theme="dark"] .menu {
  border-top-color: rgba(58, 58, 64, .86);
}

html[data-theme="dark"] .menu-dropdown-panel {
  border-color: rgba(72, 72, 80, .92);
  background: var(--paper);
}

html[data-theme="dark"] .catalog-menu-row:hover,
html[data-theme="dark"] .catalog-menu-row-wrap:focus-within > .catalog-menu-row,
html[data-theme="dark"] .catalog-menu-row-wrap:hover > .catalog-menu-row,
html[data-theme="dark"] .catalog-menu-sublist a:hover {
  background: var(--soft);
}

html[data-theme="dark"] .catalog-menu-sublist {
  border-color: rgba(72, 72, 80, .82);
  background: var(--paper);
}

html[data-theme="dark"] .hero {
  background: var(--bg);
}

html[data-theme="dark"] .hero-media {
  background: var(--bg);
}

html[data-theme="dark"] .hero-media__image--light {
  display: none;
}

html[data-theme="dark"] .hero-media__image--dark {
  display: block;
  object-position: 50% center;
  transform: none;
  transform-origin: center;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  mask-composite: intersect;
}

html[data-theme="dark"] .hero-media::before {
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(21, 21, 23, .36) 9%, rgba(21, 21, 23, .08) 20%, rgba(21, 21, 23, 0) 34%),
    linear-gradient(180deg, rgba(21, 21, 23, .16) 0%, rgba(21, 21, 23, .04) 15%, rgba(21, 21, 23, 0) 42%, rgba(21, 21, 23, .18) 88%, var(--bg) 100%);
}

html[data-theme="dark"] .hero-media::after {
  inset: 0;
  background: rgba(21, 21, 23, .01);
  box-shadow: inset 24px 0 34px rgba(21, 21, 23, .64), inset 0 22px 32px rgba(21, 21, 23, .34), inset 0 -28px 38px rgba(21, 21, 23, .5), inset -16px 0 28px rgba(21, 21, 23, .26);
}

html[data-theme="dark"] .benefit,
html[data-theme="dark"] .category-card,
html[data-theme="dark"] .cake-card,
html[data-theme="dark"] .fillings article,
html[data-theme="dark"] .catalog-sidebar,
html[data-theme="dark"] .dessert-card,
html[data-theme="dark"] .catalog-empty,
html[data-theme="dark"] .panel,
html[data-theme="dark"] details,
html[data-theme="dark"] .about-copy,
html[data-theme="dark"] .trust,
html[data-theme="dark"] .idea {
  background: rgba(29, 29, 32, .86);
}

html[data-theme="dark"] .realized {
  background: linear-gradient(180deg, rgba(41, 41, 45, .72), rgba(21, 21, 23, .18));
}

html[data-theme="dark"] .catalog-hero,
html[data-theme="dark"] .catalog-fillings {
  background: linear-gradient(180deg, rgba(41, 41, 45, .72), rgba(21, 21, 23, .18));
}

html[data-theme="dark"] .catalog-hero__media {
  background: var(--bg);
}

html[data-theme="dark"] .catalog-hero__media::before {
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(21, 21, 23, .72) 6%, rgba(21, 21, 23, 0) 18%, rgba(21, 21, 23, 0) 86%, rgba(21, 21, 23, .4) 96%, var(--bg) 100%),
    linear-gradient(180deg, var(--bg) 0%, rgba(21, 21, 23, .58) 8%, rgba(21, 21, 23, 0) 24%);
}

html[data-theme="dark"] .catalog-hero__media::after {
  display: none;
}

html[data-theme="dark"] .catalog-hero__image {
  filter: saturate(1.02) contrast(1.01);
  mix-blend-mode: normal;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 10%, #000 94%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 10%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 10%, #000 94%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 10%, #000 100%);
  mask-composite: intersect;
}

html[data-theme="dark"] .catalog-hero__image--light {
  opacity: 0;
}

html[data-theme="dark"] .catalog-hero__image--dark {
  opacity: 1;
}

html[data-theme="dark"] .category-card a {
  color: #fff;
}

html[data-theme="dark"] .cake-card a {
  color: #fff;
}

html[data-theme="dark"] .fillings {
  background: rgba(41, 41, 45, .5);
}

html[data-theme="dark"] .dessert-modal__backdrop {
  background: rgba(0, 0, 0, .56);
}

html[data-theme="dark"] .dessert-modal__dialog {
  background:
    linear-gradient(135deg, rgba(41, 41, 45, .64), rgba(29, 29, 32, .94)),
    var(--paper);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .46);
}

html[data-theme="dark"] .dessert-modal__close {
  background: rgba(29, 29, 32, .88);
}

html[data-theme="dark"] .dessert-modal__media {
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 139, 146, .08), transparent 62%),
    var(--bg);
}

html[data-theme="dark"] .dessert-modal__form select {
  background: rgba(36, 36, 40, .86);
}

html[data-theme="dark"] .filling-choice {
  background: transparent;
}

html[data-theme="dark"] .filling-choice:hover,
html[data-theme="dark"] .filling-choice.is-active {
  background: transparent;
}

html[data-theme="dark"] .filling-choice__image {
  background: rgba(36, 36, 40, .86);
}

html[data-theme="dark"] .dessert-modal__summary {
  background: rgba(41, 41, 45, .78);
}

html[data-theme="dark"] .cart-drawer__backdrop {
  background: rgba(0, 0, 0, .56);
}

html[data-theme="dark"] .cart-drawer__panel {
  background:
    linear-gradient(180deg, rgba(41, 41, 45, .7), rgba(29, 29, 32, .96)),
    var(--paper);
}

html[data-theme="dark"] .cart-drawer__header,
html[data-theme="dark"] .cart-drawer__footer {
  background: rgba(29, 29, 32, .86);
}

html[data-theme="dark"] .cart-item,
html[data-theme="dark"] .cart-empty {
  background: rgba(29, 29, 32, .86);
}

html[data-theme="dark"] .cart-badge {
  background: linear-gradient(135deg, var(--accent), #ff6f7a);
  box-shadow: 0 8px 18px rgba(255, 139, 146, .22);
}

html[data-theme="dark"] .options label {
  border-color: #f2d5d0;
  background: #fffaf8;
  color: #3f2421;
}

html[data-theme="dark"] .options label,
html[data-theme="dark"] .options label * {
  color: #3f2421;
}

html[data-theme="dark"] .options span {
  color: #b83340;
  font-weight: 900;
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .upload {
  border-color: var(--line);
  background: #242428;
  color: var(--text);
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #9f9491;
}

html[data-theme="dark"] .review blockquote {
  background: rgba(41, 41, 45, .72);
}

html[data-theme="dark"] .review-modal__dialog {
  background: #1d1d20;
}

html[data-theme="dark"] .calculation-modal__dialog {
  background: #1d1d20;
}

html[data-theme="dark"] .calculation-modal__backdrop {
  background: rgba(0, 0, 0, .56);
}

html[data-theme="dark"] .calculation-modal__close,
html[data-theme="dark"] .calculation-form input,
html[data-theme="dark"] .calculation-form select,
html[data-theme="dark"] .calculation-form textarea,
html[data-theme="dark"] .calculation-basis__switch label,
html[data-theme="dark"] .calculation-photo {
  border-color: var(--line);
  background: #242428;
  color: var(--text);
}

html[data-theme="dark"] .review-modal__backdrop {
  background: rgba(0, 0, 0, .5);
}

html[data-theme="dark"] .review-modal__close,
html[data-theme="dark"] .review-modal__dialog input,
html[data-theme="dark"] .review-modal__dialog textarea {
  border-color: var(--line);
  background: #242428;
  color: var(--text);
}

html[data-theme="dark"] .review-arrow,
html[data-theme="dark"] .review-dots button {
  border-color: var(--line);
  background: #242428;
}

html[data-theme="dark"] .review-dots button.is-active {
  background: var(--accent);
}

html[data-theme="dark"] .final-cta {
  background: linear-gradient(135deg, #1d1d20 0%, #29292d 100%);
}

html[data-theme="dark"] .final-cta__cake--light {
  display: none;
}

html[data-theme="dark"] .final-cta__cake--dark {
  display: block;
}

html[data-theme="dark"] .footer {
  background: #111113;
}

html[data-theme="dark"] .brand-logo,
html[data-theme="dark"] .footer-logo img {
  filter: brightness(0) invert(1);
}

.footer-grid {
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  align-items: center;
  gap: 28px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  width: min(100%, 330px);
}

.footer-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.footer p {
  margin-bottom: 0;
  font-size: 14px;
}

.footer-owner-details {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.65;
}

.footer-owner-details strong {
  color: var(--text);
}

@media (max-width: 1120px) {
  .nav {
    flex-wrap: nowrap;
    padding: 0;
    gap: 10px;
  }

  .menu {
    order: initial;
    flex: 1 1 auto;
    width: auto;
    justify-content: center;
    gap: 12px;
    overflow: visible;
    padding: 0;
    font-size: 13px;
  }

  .brand-logo {
    width: 170px;
  }

  .header-action {
    font-size: 12px;
    white-space: nowrap;
  }

  .header-calc-btn {
    min-height: 48px;
    padding: 4px 14px;
    font-size: 13px;
  }

  .theme-toggle {
    width: 78px;
    padding-right: 6px;
    padding-left: 6px;
  }

  .menu-dropdown-panel {
    left: 0;
    width: min(300px, calc(100vw - 28px));
    transform: translateY(8px);
  }

  .menu-dropdown:hover .menu-dropdown-panel,
  .menu-dropdown:focus-within .menu-dropdown-panel {
    transform: translateY(0);
  }

  .catalog-menu-sublist {
    position: static;
    width: 100%;
    min-height: 0;
    padding: 0 0 8px 14px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .benefits {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

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

  .catalog-hero__grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .three-cols,
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust {
    grid-column: span 2;
  }
}

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

  .site-header {
    position: sticky;
  }

  .nav {
    min-height: 48px;
    position: relative;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    padding: 2px 0;
  }

  .header-action,
  .nav > .btn {
    display: none;
  }

  .brand {
    position: absolute;
    top: 24px;
    left: 50%;
    z-index: 1;
    display: inline-flex;
    transform: translate(-50%, -50%);
  }

  .brand-logo {
    width: 186px;
    max-height: 44px;
  }

  .menu-toggle {
    position: absolute;
    top: 2px;
    left: 0;
    z-index: 2;
    order: -1;
    display: inline-flex;
    margin: 0;
  }

  .theme-toggle {
    position: absolute;
    top: 4px;
    right: 0;
    z-index: 2;
  }

  .nav.is-menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav.is-menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav.is-menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .menu {
    display: none;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    overflow-x: hidden;
    overflow-y: visible;
    margin-top: 48px;
    padding: 6px 0 2px;
    border-top: 1px solid rgba(244, 204, 198, .75);
  }

  .nav.is-menu-open .menu {
    display: flex;
  }

  .menu a {
    width: 100%;
    padding: 10px 0;
  }

  .menu-dropdown {
    width: 100%;
    max-width: 100%;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .menu-dropdown::after,
  .catalog-menu-row-wrap.has-submenu::after {
    display: none;
  }

  .menu-catalog-link {
    width: 100%;
    padding: 10px 0;
  }

  .menu-dropdown-panel {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    left: auto;
    right: auto;
    max-height: min(56vh, 520px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0 0 8px;
    padding: 6px 0;
    border-top-width: 1px;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none !important;
  }

  .catalog-menu-row {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 9px 12px;
    color: var(--text);
  }

  .catalog-menu-arrow {
    transform: rotate(45deg);
  }

  .catalog-menu-sublist {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 0;
    padding: 0 0 4px 14px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none !important;
    background: transparent;
  }

  .catalog-menu-sublist a {
    min-height: 34px;
    padding: 6px 12px;
    color: var(--muted);
    font-size: 13px;
  }

  .catalog-menu-empty {
    padding: 10px 12px;
  }

  .hero {
    min-height: 0;
    padding: 24px 0 56px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-media {
    order: -1;
    width: 100%;
    height: clamp(230px, 38vh, 320px);
    min-height: 0;
    margin: 0;
    border-radius: 8px;
  }

  .hero-media img {
    min-height: 0;
    max-height: none;
    object-position: 50% 42%;
  }

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

  .section {
    padding: 62px 0;
  }

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

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

  .faq-grid,
  .three-cols,
  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust {
    grid-column: auto;
  }

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

  .calc-form {
    grid-template-columns: 1fr;
  }

  .options {
    grid-row: auto;
  }

  .final-cta {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .final-cta img {
    max-width: none;
    justify-self: center;
  }

  .final-cta__cake {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    object-position: 62% 50%;
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%),
      linear-gradient(180deg, transparent 0%, #000 12%, #000 82%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%),
      linear-gradient(180deg, transparent 0%, #000 12%, #000 82%, transparent 100%);
    mask-composite: intersect;
  }

  html[data-theme="dark"] .final-cta__cake {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  html[data-theme="light"] .final-cta__cake--light,
  html[data-theme="dark"] .final-cta__cake--dark {
    display: block;
  }

  html[data-theme="light"] .final-cta__cake--dark,
  html[data-theme="dark"] .final-cta__cake--light {
    display: none;
  }

  .catalog-hero {
    padding: 42px 0 50px;
  }

  .catalog-hero__grid,
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-hero__media {
    order: -1;
    width: calc(100% + 28px);
    height: clamp(230px, 38vh, 320px);
    min-height: 0;
    margin: 0 -14px;
    border-radius: 0 0 8px 8px;
  }

  .catalog-hero__image {
    min-height: 0;
    max-height: none;
    object-position: 50% 42%;
  }

  .catalog-sidebar {
    position: static;
  }

  .catalog-tree {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .catalog-tree__sub {
    padding-left: 0;
    border-left: 0;
  }

  .catalog-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dessert-modal__dialog {
    grid-template-columns: 1fr;
  }

  .dessert-modal__media img {
    min-height: 300px;
    max-height: 360px;
  }
}

@media (max-width: 580px) {
  h1 {
    margin-bottom: 14px;
    max-width: none;
    text-align: center;
    font-size: 26px;
    line-height: 1.14;
  }

  h1 .title-nowrap {
    white-space: nowrap;
    display: inline;
  }

  .nav {
    gap: 12px;
  }

  .site-header .container {
    width: min(100% - 28px, var(--container));
  }

  .site-header .nav {
    min-height: 44px;
    gap: 0;
    padding: 2px 0;
  }

  .site-header .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .site-header .theme-toggle {
    width: 78px;
    height: 36px;
    gap: 4px;
    padding: 0 6px;
  }

  .brand-logo {
    width: 168px;
    max-height: 40px;
  }

  .site-header .brand {
    top: 22px;
  }

  .header-action {
    width: 100%;
  }

  .nav > .btn {
    min-height: 42px;
    width: auto;
    flex: 1 1 190px;
    padding: 0 18px;
  }

  .menu {
    gap: 0;
    margin-top: 44px;
    font-size: 13px;
  }

  .brand strong {
    font-size: 17px;
  }

  .hero {
    padding: 14px 0 44px;
  }

  .hero-grid {
    gap: 16px;
  }

  .hero-media {
    width: 100%;
    height: clamp(176px, 32vh, 220px);
    margin: 0;
  }

  .catalog-hero__media {
    width: calc(100% + 16px);
    height: clamp(176px, 32vh, 220px);
    margin: 0 -8px;
  }

  .catalog-hero__media::before {
    background:
      linear-gradient(180deg, rgba(255, 248, 246, .5) 0%, rgba(255, 248, 246, 0) 34%, rgba(255, 248, 246, .72) 100%);
  }

  .catalog-hero__media::after {
    inset: -12px;
    box-shadow: inset 0 -48px 58px rgba(255, 248, 246, .76);
  }

  .catalog-hero__image {
    object-position: 50% 40%;
  }

  .hero-media::before {
    background:
      linear-gradient(180deg, rgba(255, 248, 246, .5) 0%, rgba(255, 248, 246, 0) 34%, rgba(255, 248, 246, .72) 100%);
  }

  .hero-media::after {
    inset: 0;
    padding: 10px;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    box-shadow: inset 0 -48px 58px rgba(255, 248, 246, .76);
  }

  .hero-media img {
    object-position: 50% 40%;
  }

  html[data-theme="dark"] .hero-media__image--dark {
    object-position: 50% 42%;
    transform: none;
  }

  html[data-theme="dark"] .hero-media::before {
    background:
      linear-gradient(90deg, rgba(21, 21, 23, .42) 0%, rgba(21, 21, 23, .08) 20%, rgba(21, 21, 23, 0) 40%, rgba(21, 21, 23, .08) 86%, rgba(21, 21, 23, .36) 100%),
      linear-gradient(180deg, rgba(21, 21, 23, .12) 0%, rgba(21, 21, 23, 0) 30%, rgba(21, 21, 23, .36) 100%);
  }

  html[data-theme="dark"] .hero-media::after {
    inset: 0;
    box-shadow: inset 28px 0 42px rgba(21, 21, 23, .7), inset -18px 0 30px rgba(21, 21, 23, .22), inset 0 -46px 56px var(--bg), inset 0 12px 24px rgba(21, 21, 23, .14);
  }

  html[data-theme="dark"] .catalog-hero__media::before {
    background:
      linear-gradient(90deg, var(--bg) 0%, rgba(21, 21, 23, .5) 10%, rgba(21, 21, 23, 0) 24%, rgba(21, 21, 23, 0) 84%, rgba(21, 21, 23, .42) 96%, var(--bg) 100%),
      linear-gradient(180deg, var(--bg) 0%, rgba(21, 21, 23, .36) 14%, rgba(21, 21, 23, 0) 34%);
  }

  html[data-theme="dark"] .catalog-hero__media::after {
    display: none;
  }

  .lead {
    margin-bottom: 16px;
    font-size: 15px;
  }

  .hero-buttons,
  .messengers {
    display: grid;
  }

  .btn,
  .messengers a {
    width: 100%;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

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

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

  .catalog-hero__actions {
    display: grid;
  }

  .catalog-sidebar {
    padding: 18px;
  }

  .catalog-sidebar h2 {
    font-size: 24px;
  }

  .catalog-tree,
  .dessert-grid {
    grid-template-columns: 1fr;
  }

  .dessert-grid {
    gap: 14px;
  }

  .dessert-card {
    height: auto;
    display: grid;
    grid-template-rows: auto auto;
    padding-bottom: 0;
    isolation: isolate;
  }

  .dessert-card__image-button,
  .dessert-card > img {
    position: relative;
    z-index: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--soft);
    contain: paint;
  }

  .dessert-card > img,
  .dessert-card__image-button img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center 45%;
    transform: scale(1.01);
  }

  .dessert-card__body {
    position: relative;
    z-index: 1;
    min-width: 0;
    min-height: 0;
    padding: 18px 16px;
    border-top: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 -8px 24px rgba(101, 46, 42, .06);
  }

  .dessert-card__tag {
    display: block;
    margin-bottom: 7px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .dessert-card h3 {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .dessert-card p {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .dessert-card__meta {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.4;
  }

  .dessert-card__meta span {
    min-width: 0;
    flex: 1 1 190px;
    overflow-wrap: anywhere;
  }

  .dessert-card__meta b {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .dessert-modal {
    padding: 12px;
  }

  .dessert-modal__dialog {
    grid-template-rows: auto auto;
    max-height: 92vh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .dessert-modal__media {
    position: relative;
    min-height: 0;
    height: auto;
    overflow: hidden;
    padding: 0;
  }

  .dessert-modal__media img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 42%;
    border-radius: 0;
    box-shadow: none;
  }

  .dessert-modal__content {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding: 22px 20px 26px;
    border-top: 1px solid var(--line);
    background: var(--paper);
  }

  .dessert-modal__content .dessert-card__tag {
    margin-bottom: 8px;
  }

  .dessert-modal__content h2 {
    margin: 0 44px 10px 0;
    font-size: 25px;
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  .dessert-modal__content > p {
    margin-bottom: 18px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .dessert-modal__form {
    margin-top: 0;
  }

  .filling-choice-grid {
    grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  }

  .dessert-modal__close {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
  }

  .cart-fab {
    right: 18px;
    bottom: 18px;
    width: 52px;
    height: 52px;
  }

  .cart-drawer__header {
    min-height: 76px;
    padding: 16px;
  }

  .cart-drawer__title h2 {
    font-size: 21px;
  }

  .cart-drawer__items {
    padding: 12px;
  }

  .cart-item {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .cart-item img {
    width: 82px;
    height: 92px;
  }

  .cart-item h3 {
    font-size: 14px;
  }

  .cart-item p,
  .cart-item__price {
    font-size: 12px;
  }

  .cart-drawer__footer {
    padding: 18px;
  }

  .cart-drawer__total {
    font-size: 19px;
  }

  .cart-drawer__hint,
  .cart-drawer__footer .btn {
    font-size: 14px;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .category-card {
    min-width: 0;
  }

  .category-card h3 {
    font-size: 14px;
  }

  .category-card p,
  .category-card a {
    font-size: 12px;
  }

  .cake-card b,
  .fillings h3 {
    font-size: 13px;
  }

  .cake-card span,
  .cake-card a,
  .fillings p {
    font-size: 12px;
  }

  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .benefit {
    min-height: 0;
    padding: 18px 10px;
  }

  .benefit-icon {
    width: 62px;
    height: 52px;
    margin-bottom: 10px;
  }

  .benefit h3 {
    font-size: 14px;
  }

  .benefit p {
    font-size: 12px;
    line-height: 1.4;
  }

  .final-cta .messengers {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-items: center;
    gap: 8px;
    margin-top: 18px;
  }

  .final-cta .messengers a {
    width: 42px;
    height: 42px;
    border-radius: 8px;
  }

  .final-cta .messengers svg {
    width: 22px;
    height: 22px;
  }

  .final-cta__cake {
    width: 100% !important;
    max-width: none !important;
    aspect-ratio: 16 / 9 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%),
      linear-gradient(180deg, transparent 0%, #000 12%, #000 82%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%),
      linear-gradient(180deg, transparent 0%, #000 12%, #000 82%, transparent 100%);
    mask-composite: intersect;
  }

  .panel,
  .about-copy,
  .trust,
  .idea,
  .final-cta {
    padding: 22px;
  }

  .cake-card img,
  .fillings img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 700px) {
  .calculation-modal {
    place-items: end stretch;
    padding: 8px 0 0;
  }

  .calculation-modal__dialog {
    width: 100%;
    max-height: calc(100dvh - 8px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 16px calc(24px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -18px 60px rgba(101, 46, 42, .2);
    -webkit-overflow-scrolling: touch;
  }

  .calculation-modal__dialog h2 {
    max-width: calc(100% - 52px);
    margin: 0 0 6px;
    font-size: clamp(22px, 6.4vw, 27px);
    line-height: 1.12;
  }

  .calculation-modal__close {
    position: sticky;
    top: 0;
    z-index: 2;
    float: right;
    width: 44px;
    height: 44px;
    margin: 0 0 -44px auto;
    box-shadow: 0 6px 20px rgba(101, 46, 42, .12);
  }

  .calculation-modal__lead {
    margin: 0 52px 18px 0;
    font-size: 14px;
    line-height: 1.45;
  }

  .calculation-form {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "contacts"
      "filling"
      "basis"
      "amount"
      "photo"
      "comment"
      "consents"
      "status"
      "submit";
    gap: 16px;
  }

  .calculation-form__grid,
  .calculation-consents {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .calculation-form label,
  .calculation-basis legend {
    min-width: 0;
    font-size: 14px;
    line-height: 1.35;
  }

  .calculation-form input,
  .calculation-form select,
  .calculation-form textarea {
    min-width: 0;
    min-height: 50px;
    font-size: 16px;
  }

  .calculation-form textarea {
    min-height: 112px;
    line-height: 1.45;
  }

  .calculation-basis__switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .calculation-basis__switch label {
    min-width: 0;
    min-height: 54px;
    padding: 9px 10px;
    font-size: 13px;
    line-height: 1.25;
  }

  .calculation-basis__switch input {
    width: 20px;
    height: 20px;
    min-height: 20px;
    flex: 0 0 20px;
  }

  .calculation-photo {
    padding: 12px;
  }

  .calculation-photo__content {
    min-height: 52px;
  }

  .calculation-photo__content b {
    max-width: 100%;
  }

  .calculation-form .calculation-consent {
    gap: 11px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 241, 238, .42);
    font-size: 12px;
    line-height: 1.45;
  }

  .calculation-consent input {
    width: 20px;
    height: 20px;
    min-height: 20px;
    flex-basis: 20px;
  }

  .calculation-modal__status {
    min-height: 0;
    font-size: 13px;
    line-height: 1.4;
  }

  .calculation-modal__status:empty {
    display: none;
  }

  .calculation-form > .btn {
    position: sticky;
    bottom: max(0px, env(safe-area-inset-bottom));
    z-index: 1;
    width: 100%;
    min-height: 56px;
    box-shadow: 0 10px 28px rgba(233, 92, 101, .28);
  }

  html[data-theme="dark"] .calculation-form .calculation-consent {
    background: #242428;
  }
}

@media (max-width: 360px) {
  .calculation-modal__dialog {
    padding-right: 14px;
    padding-left: 14px;
  }

  .calculation-basis__switch {
    grid-template-columns: 1fr;
  }
}

/* Checkout dialog */
.checkout-modal__dialog {
  width: min(900px, 100%);
  overflow-y: auto;
}

.checkout-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "contacts contacts"
    "fulfillment fulfillment"
    "delivery delivery"
    "time summary"
    "consents consents"
    "status status"
    "actions actions";
  gap: 14px;
}

.checkout-form__contacts { grid-area: contacts; }
.checkout-form__fulfillment { grid-area: fulfillment; }
.checkout-form__delivery { grid-area: delivery; }
.checkout-form__time { grid-area: time; }
.checkout-form__summary { grid-area: summary; }
.checkout-form__consents { grid-area: consents; }
.checkout-form__status { grid-area: status; }
.checkout-form__actions { grid-area: actions; }

.checkout-form__delivery[hidden],
.address-suggestions[hidden] {
  display: none !important;
}

.checkout-form__fulfillment small,
.checkout-address small {
  color: var(--muted);
  font-weight: 500;
}

.checkout-address {
  position: relative;
}

.address-suggestions {
  position: absolute;
  z-index: 5;
  top: calc(100% - 23px);
  right: 0;
  left: 0;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 18px 42px rgba(101, 46, 42, .18);
}

.address-suggestions button {
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.address-suggestions button:last-child {
  border-bottom: 0;
}

.address-suggestions button:hover,
.address-suggestions button:focus-visible {
  background: var(--soft);
  outline: 0;
}

.checkout-form__time {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.checkout-form__time legend {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.checkout-form__time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.checkout-form__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 241, 238, .5);
  color: var(--text);
}

.checkout-form__summary span {
  color: var(--muted);
  font-size: 14px;
}

.checkout-form__summary strong {
  font-size: 18px;
  text-align: right;
}

.checkout-form__consents {
  grid-template-columns: 1fr;
}

.checkout-form__actions {
  display: grid;
  grid-template-columns: minmax(180px, .65fr) minmax(240px, 1fr);
  gap: 12px;
}

.checkout-form__actions .btn {
  min-height: 52px;
  border: 0;
  cursor: pointer;
}

.checkout-form__actions .btn:disabled {
  cursor: wait;
  opacity: .7;
}

.checkout-form__back {
  background: var(--soft);
  color: var(--text);
}

html[data-theme="dark"] .checkout-form__summary,
html[data-theme="dark"] .checkout-form__back {
  background: #242428;
}

@media (max-width: 700px) {
  .checkout-form {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "contacts"
      "fulfillment"
      "delivery"
      "time"
      "summary"
      "consents"
      "status"
      "actions";
  }

  .checkout-form__contacts {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkout-form__actions {
    grid-template-columns: 1fr;
  }

  .address-suggestions {
    top: calc(100% - 25px);
  }
}

/* Mobile readability and touch-target improvements. */
@media (max-width: 700px) {
  #cakes .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #cakes .category-card:nth-child(n + 7) {
    display: none;
  }

  .category-catalog-more {
    display: flex;
    width: min(100%, 320px);
    min-height: 48px;
    margin: 24px auto 0;
  }

  .workband-block {
    padding: 16px 0;
  }

  .workband-block--steps {
    padding-top: 52px;
  }

  .workband-block--reviews {
    padding-bottom: 52px;
  }

  .workband-block .panel {
    padding: 22px;
  }

  .workband-block--steps .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .workband-block--steps .steps li {
    margin-bottom: 18px;
  }

  .workband-block--steps .full,
  .workband-block--reviews .review-submit-btn {
    width: 100%;
  }

  .site-header .menu-toggle {
    top: 0;
    width: 44px;
    height: 44px;
  }

  .site-header .theme-toggle {
    top: 0;
    width: 80px;
    height: 44px;
  }

  .site-header .brand {
    min-height: 44px;
  }

  .menu a,
  .menu-catalog-link,
  .catalog-menu-row,
  .catalog-menu-sublist a,
  .catalog-tree a,
  .catalog-tree__sub a {
    min-height: 44px;
    font-size: 14px;
  }

  .category-card p,
  .category-card a,
  .cake-card b,
  .cake-card span,
  .cake-card a,
  .fillings h3,
  .fillings p,
  .benefit p,
  .dessert-card__tag,
  .dessert-card p,
  .dessert-card__meta,
  .cart-item p,
  .cart-item__price {
    font-size: 14px;
  }

  .category-card a,
  .cake-card a,
  .dessert-card .btn {
    min-height: 44px;
    font-size: 14px;
  }

  .eyebrow,
  #catalogCount {
    font-size: 14px;
  }

  .review-controls {
    gap: 7px;
  }

  .review-arrow {
    width: 44px;
    height: 44px;
  }

  .review-dots {
    gap: 0;
  }

  .review-dots button {
    position: relative;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
  }

  .review-dots button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    transform: translate(-50%, -50%);
  }

  .review-dots button:hover,
  .review-dots button.is-active {
    background: transparent;
  }

  .review-dots button:hover::before,
  .review-dots button.is-active::before {
    border-color: var(--accent);
    background: var(--accent);
  }

  .final-cta .messengers a {
    width: 44px;
    height: 44px;
  }

  .footer a:not(.footer-logo) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .dessert-modal__close {
    width: 44px;
    height: 44px;
  }
}

.checkout-form {
  grid-template-areas:
    "order order"
    "contacts contacts"
    "fulfillment fulfillment"
    "delivery delivery"
    "time call"
    "comment comment"
    "consents consents"
    "status status"
    "actions actions";
}

.checkout-order {
  grid-area: order;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 251, .62);
}

.checkout-order h3 {
  margin: 0 0 14px;
  color: var(--text);
  font: 700 20px/1.2 Georgia, "Times New Roman", serif;
}

.checkout-order__items {
  border-top: 1px solid var(--line);
}

.checkout-order__item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto minmax(90px, auto) 32px;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.checkout-order__item > img {
  width: 72px;
  height: 72px;
  border-radius: 9px;
  object-fit: cover;
}

.checkout-order__details {
  min-width: 0;
}

.checkout-order__details h4 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 15px;
}

.checkout-order__details p {
  margin: 2px 0;
  color: var(--muted);
  font-size: 12px;
}

.checkout-order__quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.checkout-order__quantity button,
.checkout-order__remove {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.checkout-order__quantity button:disabled {
  cursor: not-allowed;
  opacity: .35;
}

.checkout-order__price {
  color: var(--text);
  font-size: 15px;
  text-align: right;
  white-space: nowrap;
}

.checkout-order__remove {
  font-size: 20px;
}

.checkout-order__total {
  margin: 16px 0 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  text-align: right;
}

.checkout-order__empty {
  margin: 16px 0;
  color: var(--muted);
}

.checkout-form__call {
  grid-area: call;
}

.checkout-form__call-options {
  display: grid;
  gap: 8px;
}

.checkout-form__call-options label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 241, 238, .42);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.checkout-form__call-options input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  margin: 0;
  padding: 0;
}

.checkout-form__comment {
  grid-area: comment;
}

.checkout-form__comment textarea {
  min-height: 100px;
  padding: 12px 14px;
  line-height: 1.45;
}

html[data-theme="dark"] .checkout-order,
html[data-theme="dark"] .checkout-form__call-options label {
  background: #242428;
}

@media (max-width: 700px) {
  .checkout-form {
    grid-template-areas:
      "order"
      "contacts"
      "fulfillment"
      "delivery"
      "time"
      "call"
      "comment"
      "consents"
      "status"
      "actions";
  }

  .checkout-order {
    padding: 16px 14px;
  }

  .checkout-order__item {
    grid-template-columns: 62px minmax(0, 1fr) 32px;
    gap: 10px;
  }

  .checkout-order__item > img {
    width: 62px;
    height: 62px;
  }

  .checkout-order__quantity,
  .checkout-order__price {
    grid-column: 2;
  }

  .checkout-order__price {
    text-align: left;
  }

  .checkout-order__remove {
    grid-column: 3;
    grid-row: 1;
  }

  .checkout-order__total {
    text-align: left;
  }
}

@media (min-width: 701px) {
  .checkout-modal.is-single-item .checkout-modal__dialog {
    width: min(980px, 100%);
    padding: 14px 24px;
  }

  .checkout-modal.is-single-item .checkout-modal__dialog h2 {
    margin-bottom: 2px;
  }

  .checkout-modal.is-single-item .calculation-modal__lead {
    margin-bottom: 6px;
  }

  .checkout-modal.is-single-item .checkout-form {
    grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr);
    grid-template-areas:
      "order contacts"
      "order fulfillment"
      "delivery delivery"
      "time call"
      "comment comment"
      "consents actions"
      "status status";
    gap: 7px 12px;
  }

  .checkout-modal.is-single-item .checkout-form__contacts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 8px;
  }

  .checkout-modal.is-single-item .checkout-order {
    align-self: stretch;
    padding: 10px 14px;
  }

  .checkout-modal.is-single-item .checkout-order h3 {
    margin-bottom: 7px;
  }

  .checkout-modal.is-single-item .checkout-order__item {
    grid-template-columns: 54px minmax(0, 1fr) 28px;
    gap: 8px;
    padding: 8px 0;
  }

  .checkout-modal.is-single-item .checkout-order__item > img {
    width: 54px;
    height: 54px;
  }

  .checkout-modal.is-single-item .checkout-order__quantity,
  .checkout-modal.is-single-item .checkout-order__price {
    grid-column: 2;
  }

  .checkout-modal.is-single-item .checkout-order__price {
    text-align: left;
  }

  .checkout-modal.is-single-item .checkout-order__remove {
    grid-column: 3;
    grid-row: 1;
  }

  .checkout-modal.is-single-item .checkout-order__total {
    margin-top: 8px;
    text-align: left;
  }

  .checkout-modal.is-single-item .calculation-form input,
  .checkout-modal.is-single-item .calculation-form select {
    min-height: 38px;
  }

  .checkout-modal.is-single-item .calculation-basis__switch label {
    min-height: 38px;
    padding: 5px 10px;
  }

  .checkout-modal.is-single-item .checkout-form__call-options {
    gap: 4px;
  }

  .checkout-modal.is-single-item .checkout-form__call-options label {
    padding: 5px 9px;
  }

  .checkout-modal.is-single-item .checkout-form__comment textarea {
    height: 64px;
    min-height: 64px;
  }

  .checkout-modal.is-single-item .checkout-form__consents {
    align-self: center;
  }

  .checkout-modal.is-single-item .checkout-form__actions {
    align-self: center;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkout-modal.is-single-item .checkout-form__actions .btn {
    min-height: 42px;
  }

  .checkout-modal.is-single-item .checkout-form__status:empty {
    display: none;
  }
}

@media (min-width: 981px) and (min-height: 700px) {
  .dessert-modal__content {
    padding: 24px 30px 20px;
  }

  .dessert-modal__content h2 {
    margin-bottom: 10px;
  }

  .dessert-modal__form {
    gap: 12px;
    margin-top: 14px;
  }
}
