:root {
    --milk: #f3ecdd;
    --paper: #e8dcc7;
    --foam: #fffaf0;
    --roast: #3b2419;
    --coffee: #6f4631;
    --caramel: #c4783e;
    --leaf: #31533d;
    --leaf-dark: #223b2c;
    --ink-muted: #77685a;
    --line: rgba(59, 36, 25, .22);
    --serif: 'Literata', Georgia, serif;
    --sans: 'DM Sans', Arial, sans-serif;
    --page: min(1320px, calc(100% - 64px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--roast); background: var(--milk); font-family: var(--sans); line-height: 1.55; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
:focus-visible { outline: 3px solid var(--caramel); outline-offset: 4px; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; color: var(--foam); background: var(--leaf-dark); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { display: grid; width: var(--page); min-height: 92px; grid-template-columns: 1fr auto 1fr; align-items: center; margin: 0 auto; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: baseline; gap: 7px; justify-self: start; font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -.06em; }
.wordmark b { color: var(--caramel); font-size: 14px; font-style: italic; }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.site-nav a { position: relative; font-size: 12px; font-weight: 600; }
.site-nav a::after { position: absolute; right: 0; bottom: -7px; left: 0; height: 1px; background: var(--leaf); content: ''; transform: scaleX(0); transform-origin: right; transition: transform .25s; }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-call { display: inline-flex; align-items: center; gap: 15px; justify-self: end; padding-bottom: 4px; border-bottom: 1px solid var(--roast); font-size: 12px; font-weight: 600; }
.header-call span { color: var(--ink-muted); font-weight: 400; }
.menu-toggle { display: none; }

.opening { position: relative; display: grid; width: var(--page); min-height: 690px; grid-template-columns: 1.02fr 1.18fr .8fr; gap: clamp(28px, 4vw, 64px); align-items: center; margin: 0 auto; padding: 62px 0 74px; }
.opening__intro { align-self: center; padding-top: 35px; }
.overline { margin-bottom: 22px; color: var(--leaf); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.opening h1 { max-width: 520px; font-family: var(--serif); font-size: clamp(48px, 5.8vw, 82px); font-weight: 500; letter-spacing: -.055em; line-height: 1.02; }
.opening__lead { max-width: 440px; margin: 32px 0 30px; color: var(--ink-muted); font-size: 16px; }
.underlined-link { display: inline-flex; gap: 45px; align-items: center; padding-bottom: 7px; border-bottom: 1px solid var(--roast); font-size: 12px; font-weight: 600; }
.underlined-link span { color: var(--caramel); font-size: 17px; }

.opening__photo { position: relative; align-self: stretch; min-height: 590px; }
.opening__photo img { height: 100%; object-fit: cover; border-radius: 220px 220px 8px 8px; filter: saturate(.88) contrast(1.02); }
.opening__photo figcaption { position: absolute; right: 0; bottom: -34px; left: 0; color: var(--ink-muted); font-family: var(--serif); font-size: 11px; font-style: italic; text-align: center; }
.opening__roast { position: absolute; top: 52%; right: -38px; display: grid; width: 92px; height: 92px; place-items: center; border: 2px solid var(--milk); border-radius: 50%; color: var(--foam); background: var(--leaf); font-family: var(--serif); font-size: 12px; line-height: 1.35; text-align: center; transform: rotate(8deg); }

.opening__menu { align-self: center; padding-left: clamp(10px, 2vw, 28px); }
.opening__menu-title { margin-bottom: 13px; color: var(--ink-muted); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.opening__menu ul { padding: 0; border-top: 1px solid var(--line); margin: 0; list-style: none; }
.opening__menu li { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.opening__menu li > span { display: flex; flex-direction: column; }
.opening__menu b { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.opening__menu small { margin-top: 3px; color: var(--ink-muted); font-size: 10px; }
.opening__menu strong { color: var(--caramel); font-family: var(--serif); font-size: 17px; font-weight: 500; }
.opening__menu strong::after { content: ' ₽'; font-family: var(--sans); font-size: 8px; }
.opening__hours { display: flex; justify-content: space-between; gap: 15px; margin-top: 25px; font-size: 11px; }
.opening__hours span { color: var(--ink-muted); }
.opening__hours b { color: var(--leaf); font-family: var(--sans); font-size: 11px; }
.opening__side-note { position: absolute; bottom: 82px; left: -38px; color: var(--ink-muted); font-size: 8px; letter-spacing: .2em; text-transform: uppercase; transform: rotate(-90deg); transform-origin: left bottom; }

.coffee-ribbon { overflow: hidden; color: var(--foam); background: var(--leaf); }
.coffee-ribbon__track { display: flex; width: max-content; align-items: center; gap: 30px; padding: 15px 0; animation: ribbon 28s linear infinite; }
.coffee-ribbon span { font-family: var(--serif); font-size: 13px; font-style: italic; }
.coffee-ribbon i { color: #d7b36f; font-size: 10px; font-style: normal; }
@keyframes ribbon { to { transform: translateX(-50%); } }

.story { padding: clamp(100px, 11vw, 160px) 0 clamp(130px, 13vw, 190px); background: var(--foam); }
.story__heading { display: grid; width: var(--page); grid-template-columns: .75fr 1.25fr; gap: 40px; align-items: start; margin: 0 auto 80px; }
.story__heading h2 { max-width: 780px; font-family: var(--serif); font-size: clamp(43px, 5.4vw, 75px); font-weight: 500; letter-spacing: -.05em; line-height: 1.08; }
.story__collage { display: grid; width: var(--page); grid-template-columns: 1.05fr .65fr .55fr; grid-template-rows: auto auto; gap: 28px; margin: 0 auto; }
.story__barista { position: relative; grid-row: 1 / 3; padding-bottom: 55px; }
.story__barista img { height: 710px; object-fit: cover; object-position: center; border-radius: 160px 160px 0 0; }
.story__barista figcaption { position: absolute; right: 20px; bottom: 14px; left: 20px; color: var(--ink-muted); font-size: 10px; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.story__copy { position: relative; align-self: end; padding: 45px 0 25px; }
.story__copy p { margin-bottom: 18px; color: var(--ink-muted); font-family: var(--serif); font-size: 15px; line-height: 1.8; }
.story__dropcap { float: left; margin: -16px 8px 0 0; color: var(--caramel); font-family: var(--serif); font-size: 86px; line-height: 1; }
.story__signature { margin-top: 30px; color: var(--leaf); font-family: var(--serif); font-size: 17px; font-style: italic; }
.story__interior { align-self: start; margin-top: 40px; }
.story__interior img { height: 320px; object-fit: cover; }
.story__quote { align-self: end; padding: 35px 30px; color: var(--foam); background: var(--caramel); font-family: var(--serif); font-size: clamp(20px, 2vw, 28px); font-style: italic; line-height: 1.5; transform: rotate(-2deg); }

.menu-board { padding: clamp(100px, 11vw, 165px) 0; color: var(--foam); background: var(--leaf-dark); }
.menu-board__top { display: grid; width: var(--page); grid-template-columns: 1fr .45fr; gap: 70px; align-items: end; margin: 0 auto 80px; }
.menu-board .overline { color: #d9bd82; }
.menu-board h2 { font-family: var(--serif); font-size: clamp(52px, 6.5vw, 92px); font-weight: 500; letter-spacing: -.055em; line-height: 1; }
.menu-board__top > p { max-width: 420px; color: #b8c2b9; font-size: 14px; }
.menu-board__layout { display: grid; width: var(--page); grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 8vw, 120px); align-items: center; margin: 0 auto; }
.menu-preview { position: relative; }
.menu-preview img { height: min(55vw, 660px); object-fit: cover; border-radius: 240px 240px 0 0; transition: opacity .22s ease, transform .5s ease; }
.menu-preview.is-changing img { opacity: .25; transform: scale(.985); }
.menu-preview figcaption { margin-top: 18px; color: #b8c2b9; font-family: var(--serif); font-size: 12px; font-style: italic; text-align: center; }
.menu-preview > span { position: absolute; top: 35px; left: -26px; display: grid; width: 86px; height: 86px; place-items: center; border: 2px solid var(--leaf-dark); border-radius: 50%; color: var(--roast); background: #d9bd82; font-family: var(--serif); font-size: 11px; line-height: 1.3; text-align: center; transform: rotate(-9deg); }
.drink-list { border-top: 1px solid rgba(255,250,240,.22); }
.drink { display: grid; width: 100%; grid-template-columns: 40px 1fr auto; gap: 18px; align-items: center; padding: 25px 0; border: 0; border-bottom: 1px solid rgba(255,250,240,.22); color: var(--foam); background: transparent; text-align: left; cursor: pointer; transition: padding .25s, color .25s; }
.drink:hover, .drink.is-active { padding-left: 15px; color: #e2bd72; }
.drink__index { color: #86968a; font-size: 9px; }
.drink__name { display: flex; flex-direction: column; font-family: var(--serif); font-size: clamp(24px, 2.7vw, 38px); line-height: 1.2; }
.drink__name small { margin-top: 7px; color: #aebbb1; font-family: var(--sans); font-size: 10px; font-weight: 400; }
.drink strong { font-family: var(--serif); font-size: 16px; font-weight: 400; white-space: nowrap; }
.menu-board__note { display: flex; width: var(--page); justify-content: flex-end; gap: 35px; margin: 65px auto 0; color: #aebbb1; font-size: 10px; }
.menu-board__note span::before { color: #d9bd82; content: '✦ '; }

.craft { display: grid; width: var(--page); grid-template-columns: .7fr .8fr 1fr; gap: clamp(45px, 7vw, 100px); align-items: center; margin: 0 auto; padding: clamp(110px, 13vw, 190px) 0; }
.craft__title h2 { font-family: var(--serif); font-size: clamp(40px, 4.7vw, 68px); font-weight: 500; letter-spacing: -.05em; line-height: 1.1; }
.craft__steps { padding: 0; margin: 0; list-style: none; }
.craft__steps li { display: grid; grid-template-columns: 38px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.craft__steps li:first-child { border-top: 1px solid var(--line); }
.craft__steps li > span { color: var(--caramel); font-size: 9px; }
.craft__steps b { font-family: var(--serif); font-size: 21px; font-weight: 500; }
.craft__steps p { max-width: 290px; margin-top: 5px; color: var(--ink-muted); font-size: 12px; }
.craft__photo { position: relative; padding-bottom: 38px; }
.craft__photo img { height: 560px; object-fit: cover; border-radius: 190px 190px 0 0; }
.craft__photo figcaption { position: absolute; bottom: 5px; left: 0; color: var(--ink-muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

.visit { position: relative; display: grid; grid-template-columns: 1.2fr .7fr .7fr; gap: clamp(40px, 7vw, 105px); align-items: end; padding: clamp(100px, 11vw, 155px) max(32px, calc((100% - 1320px) / 2)); color: var(--roast); background: var(--paper); overflow: hidden; }
.visit__brand { position: absolute; right: -15px; bottom: -100px; color: rgba(111,70,49,.07); font-family: var(--serif); font-size: min(28vw, 430px); font-weight: 600; letter-spacing: -.12em; line-height: 1; }
.visit__main, .visit__details, .visit__actions { position: relative; z-index: 1; }
.visit h2 { font-family: var(--serif); font-size: clamp(50px, 6vw, 88px); font-weight: 500; letter-spacing: -.06em; line-height: 1; }
.visit__phone { display: inline-block; margin-top: 35px; padding-bottom: 4px; border-bottom: 1px solid var(--roast); font-family: var(--serif); font-size: clamp(20px, 2vw, 30px); }
.visit__details { border-top: 1px solid var(--line); }
.visit__details div { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.visit__details dt { color: var(--ink-muted); font-size: 10px; }
.visit__details dd { font-family: var(--serif); font-size: 14px; line-height: 1.5; }
.visit__actions { display: flex; flex-direction: column; gap: 13px; }
.visit__actions a { display: flex; justify-content: space-between; gap: 25px; padding: 16px 0; border-bottom: 1px solid var(--roast); font-size: 12px; font-weight: 600; }
.visit__actions span { color: var(--caramel); font-size: 18px; }

.site-footer { display: grid; width: 100%; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 32px max(32px, calc((100% - 1320px) / 2)); color: #c4cabe; background: var(--leaf-dark); font-size: 10px; }
.site-footer p:last-child { justify-self: end; }
.wordmark--footer { color: var(--foam); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .72s ease, transform .72s cubic-bezier(.2,.65,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
    :root { --page: min(100% - 40px, 900px); }
    .site-header { grid-template-columns: 1fr auto; }
    .site-nav { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; justify-content: center; gap: 24px; color: var(--foam); background: var(--leaf-dark); opacity: 0; pointer-events: none; transform: translateY(-15px); transition: opacity .3s, transform .3s; }
    .site-nav.is-open { opacity: 1; pointer-events: auto; transform: none; }
    .site-nav a { font-family: var(--serif); font-size: 28px; font-weight: 400; }
    .header-call { display: none; }
    .menu-toggle { position: relative; z-index: 51; display: grid; width: 54px; height: 44px; grid-template-columns: 1fr auto; align-items: center; justify-self: end; padding: 0; border: 0; background: transparent; cursor: pointer; }
    .menu-toggle span { grid-column: 1; width: 23px; height: 1px; background: currentColor; transition: transform .3s; }
    .menu-toggle span:nth-child(2) { transform: translateY(-8px); }
    .menu-toggle i { grid-column: 2; grid-row: 1 / 3; font-size: 9px; font-style: normal; }
    .menu-toggle[aria-expanded="true"] { color: var(--foam); }
    .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

    .opening { grid-template-columns: .9fr 1.1fr; padding-top: 45px; }
    .opening__photo { grid-column: 2; grid-row: 1 / 3; }
    .opening__menu { grid-column: 1; padding: 0; }
    .opening__side-note { display: none; }
    .story__heading { grid-template-columns: 1fr; }
    .story__collage { grid-template-columns: 1.1fr .9fr; }
    .story__barista { grid-row: 1 / 3; }
    .story__interior { display: none; }
    .menu-board__layout { grid-template-columns: .75fr 1.25fr; gap: 55px; }
    .craft { grid-template-columns: 1fr 1fr; }
    .craft__photo { grid-column: 2; grid-row: 1 / 3; }
    .visit { grid-template-columns: 1fr 1fr; }
    .visit__actions { grid-column: 2; }
}

@media (max-width: 700px) {
    :root { --page: calc(100% - 32px); }
    .site-header { min-height: 76px; }
    .wordmark { font-size: 19px; }
    .opening { min-height: auto; grid-template-columns: 1fr; gap: 38px; padding: 42px 0 65px; }
    .opening__intro { padding: 0; }
    .opening h1 { font-size: clamp(45px, 14vw, 65px); }
    .opening__lead { margin: 24px 0; }
    .opening__photo { grid-column: 1; grid-row: auto; min-height: 480px; }
    .opening__photo img { border-radius: 160px 160px 6px 6px; }
    .opening__roast { right: -8px; }
    .opening__photo figcaption { bottom: -28px; }
    .opening__menu { margin-top: 15px; }

    .story { padding: 90px 0 110px; }
    .story__heading { gap: 5px; margin-bottom: 50px; }
    .story__heading h2 { font-size: 42px; }
    .story__collage { grid-template-columns: 1fr; gap: 28px; }
    .story__barista { grid-row: auto; padding-bottom: 35px; }
    .story__barista img { height: 520px; border-radius: 140px 140px 0 0; }
    .story__copy { padding: 20px 0; }
    .story__quote { margin: 0 8px; }

    .menu-board { padding: 90px 0; }
    .menu-board__top { grid-template-columns: 1fr; gap: 25px; margin-bottom: 50px; }
    .menu-board h2 { font-size: 57px; }
    .menu-board__layout { grid-template-columns: 1fr; gap: 45px; }
    .menu-preview { width: min(88%, 440px); margin: 0 auto; }
    .menu-preview img { height: 480px; }
    .menu-preview > span { left: -12px; }
    .drink { grid-template-columns: 25px 1fr auto; gap: 10px; padding: 20px 0; }
    .drink:hover, .drink.is-active { padding-left: 7px; }
    .drink__name { font-size: 23px; }
    .drink__name small { max-width: 210px; }
    .drink strong { font-size: 13px; }
    .menu-board__note { justify-content: flex-start; flex-wrap: wrap; gap: 12px 20px; margin-top: 45px; }

    .craft { grid-template-columns: 1fr; gap: 45px; padding: 100px 0; }
    .craft__photo { grid-column: 1; grid-row: auto; }
    .craft__photo img { height: 500px; border-radius: 150px 150px 0 0; }

    .visit { grid-template-columns: 1fr; gap: 50px; padding: 90px 16px; }
    .visit__actions { grid-column: 1; }
    .visit__brand { bottom: -30px; font-size: 55vw; }
    .site-footer { grid-template-columns: 1fr; gap: 16px; justify-items: center; padding: 28px 16px; text-align: center; }
    .site-footer p:last-child { justify-self: center; }
}

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