/* Съни Дрийм & Niki's ChocoLand – „Картата на ChocoLand“ */
@font-face { font-family: "Marmelad"; font-display: swap; src: url(fonts/marmelad-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Marmelad"; font-display: swap; src: url(fonts/marmelad-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Mulish"; font-weight: 400; font-display: swap; src: url(fonts/mulish-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Mulish"; font-weight: 400; font-display: swap; src: url(fonts/mulish-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Mulish"; font-weight: 700; font-display: swap; src: url(fonts/mulish-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Mulish"; font-weight: 700; font-display: swap; src: url(fonts/mulish-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }

:root {
  --sea: #8fd8e4;
  --biscuit: #f7dca8;
  --choco: #3b1d12;
  --violet: #6a2fb0;   /* Съни Дрийм */
  --blue: #1258b4;     /* Niki's ChocoLand */
  --sun: #ffc52e;
  --gut: clamp(1rem, 4vw, 4rem);
  --sec: clamp(3.5rem, 8vw, 7rem);
}
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { font-family: "Mulish", sans-serif; color: var(--choco); background: #fff; line-height: 1.6; font-size: 1.05rem; }
h1, h2, .brand, .order b, .pin { font-family: "Marmelad", sans-serif; font-weight: 400; }
h1, h2 { margin: 0; line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-underline-offset: .2em; }
.demo-bar { background: var(--choco); }
:focus-visible { outline-color: var(--violet); }

.btn { display: inline-block; padding: .8rem 1.5rem; border: 0; border-radius: 99px; background: var(--violet); color: #fff; font: 700 1.05rem/1.25 "Mulish", sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn:hover { background: var(--choco); }
.btn--blue { background: var(--blue); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.top { position: sticky; top: 0; z-index: 9; display: flex; align-items: center; gap: 1.6rem; padding: .5rem var(--gut); background: #fff; }
.brand { display: flex; align-items: center; gap: .6rem; margin-right: auto; font-size: 1.35rem; line-height: 1.1; text-decoration: none; color: var(--violet); }
.brand img { width: 52px; height: auto; }
.brand i { font-style: normal; color: var(--choco); }
.brand b { font-weight: 400; color: var(--blue); white-space: nowrap; }
.top nav { display: flex; gap: 1.5rem; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; }
.top .btn { padding: .65rem 1.2rem; }

.land { background: var(--sea); padding: clamp(1.2rem, 2.5vw, 2rem) var(--gut) var(--sec); overflow: hidden; }
.land__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: "map head" "map places"; grid-template-rows: auto 1fr; gap: 1.5rem clamp(1.5rem, 3vw, 3.5rem); max-width: 96rem; margin: 0 auto; }
.land__head { grid-area: head; }
.land h1 { font-size: clamp(2.5rem, 4.6vw, 4.4rem); }
.land__head p { margin-top: .8rem; max-width: 30rem; font-size: 1.15rem; }
.map { grid-area: map; position: relative; aspect-ratio: 1; align-self: start; max-width: calc(100svh - 5rem); width: 100%; margin: 0 auto; min-width: 0; }
.map__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.map__chef { position: absolute; width: 11%; height: auto; pointer-events: none; transform: translate(0, -88%) scaleX(var(--dir, 1)) rotate(var(--bob, 0deg)); transform-origin: 50% 100%; }
.pin { position: absolute; z-index: 1; width: 19%; height: 17%; transform: translate(-50%, -72%); text-decoration: none; display: flex; justify-content: center; align-items: flex-end; }
.pin span { position: relative; top: 1.2em; padding: .15em .7em .25em; border-radius: 99px; background: #fff; color: var(--choco); font-size: clamp(.85rem, 1.15vw, 1.1rem); line-height: 1.2; text-align: center; white-space: nowrap; box-shadow: 0 2px 0 #c98e49; }
.pin:hover span { background: var(--sun); }
.pin[aria-current] span { background: var(--violet); color: #fff; }

.places { grid-area: places; min-width: 0; }
.place { background: #fff; border-radius: 1.6rem; padding: clamp(1.2rem, 2.2vw, 2rem); outline: 0; }
.place + .place { margin-top: 1.2rem; }
.js .place { display: none; margin: 0; }
.js .place.is-on { display: block; }
.place h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); color: var(--violet); }
.place p { margin-top: .5rem; }
.place ul { display: flex; gap: .8rem; overflow-x: auto; margin-top: 1.1rem; padding-bottom: .6rem; scroll-snap-type: x proximity; scrollbar-color: var(--violet) #eee3fa; }
.place li { flex: none; scroll-snap-align: start; max-width: 92%; }
.place img { height: clamp(16rem, 25vw, 25rem); width: auto; max-width: 100%; object-fit: cover; border-radius: 1rem; }

.two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem clamp(2rem, 6vw, 6rem); align-items: center; padding: var(--sec) var(--gut); max-width: 90rem; margin: 0 auto; }
.two__photo { border-radius: 50% 50% 1.6rem 1.6rem; width: 100%; }
.two__logos { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.5rem; }
.two__logos img { height: clamp(8rem, 13vw, 12rem); width: auto; }
.two__logos p { margin-top: 1rem; max-width: 20rem; }

.choco { position: relative; background: var(--choco); color: #fff; padding: 0 var(--gut) var(--sec); margin-bottom: 0; }
.choco__head { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; align-items: end; padding-top: var(--sec); max-width: 90rem; margin: 0 auto 2.5rem; }
.tray { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; max-width: 90rem; margin: 0 auto; }
.tray li { grid-column: span 2; }
.tray li:first-child, .tray li:nth-child(2) { grid-column: span 3; }
.tray img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 1.4rem; }

.order { position: relative; background: var(--biscuit); padding: calc(var(--sec) + 3rem) var(--gut) var(--sec); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2.5rem clamp(2rem, 6vw, 6rem); }
.order__drip { position: absolute; left: 0; top: -1px; width: 100%; height: clamp(40px, 6vw, 84px); fill: var(--choco); }
.order p { margin-top: 1rem; max-width: 28rem; font-size: 1.1rem; }
.order ul { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem 2rem; }
.order b { display: block; font-size: 1.6rem; line-height: 1.2; color: var(--violet); margin-bottom: .2rem; }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem clamp(2rem, 6vw, 6rem); padding: var(--sec) var(--gut); }
.contact address { font-style: normal; margin-top: 1.2rem; font-size: 1.1rem; }
.contact table { border-collapse: collapse; margin: 1.2rem 0; }
.contact th { font-weight: 400; text-align: left; padding: .2rem 2rem .2rem 0; }
.contact td { font-weight: 700; white-space: nowrap; }
.links { line-height: 2; }
.map-box { background: #dff3f6; border-radius: 1.6rem; overflow: hidden; justify-items: center; gap: 1.1rem; font-size: 1rem; }
.map-box p { max-width: 26rem; }
.foot { display: flex; flex-wrap: wrap; gap: 1.2rem 3rem; padding: 2.2rem var(--gut); background: var(--sea); }
.foot p:last-child { margin-left: auto; }
.legal h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); margin: 1.5rem 0 1rem; }
.legal h2 { font-size: 1.6rem; margin-bottom: .4rem; }
.legal p { margin: .6rem 0; }

@media (max-width: 900px) {
  .top nav { display: none; }
  .land__in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "map" "places"; grid-template-rows: none; }
  .map { max-width: 42rem; width: calc(100% + 1rem); margin: 0 -.5rem; }
  .pin { width: 26%; }
  .pin span { font-size: clamp(.68rem, 2.6vw, 1rem); white-space: normal; padding: .2em .6em .25em; border-radius: .9em; line-height: 1.05; }
  .map__chef { width: 13%; }
  .two, .choco__head, .order, .contact { grid-template-columns: minmax(0, 1fr); }
  .tray li, .tray li:nth-child(2) { grid-column: span 3; }
  .tray li:first-child { grid-column: 1 / -1; }
  .place img { height: min(95vw, 24rem); }
  .foot p:last-child { margin-left: 0; }
}
@media (max-width: 480px) {
  .brand { font-size: 1.05rem; gap: .4rem; } .brand img { width: 40px; } .brand span { display: grid; } .brand i { display: none; }
  .top { gap: .6rem; } .top .btn { padding: .6rem .9rem; font-size: .95rem; }
  .order ul { gap: 1.4rem; }
}
@media (max-width: 359px) { .brand img { display: none; } .order ul, .two__logos { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
