/* «Журнал вкуса» — кулинарный сайт как глянцевый журнал: белый разворот,
   крупная антиква, сливовый акцент и золото в номерах подборки.
   Шрифты системные: внешних запросов нет, первый экран не ждёт загрузки. */

:root {
  --bg: #FFFFFF; --tint: #F6F1EC; --ink: #19120F; --ink-soft: #574B45; --ink-faint: #8A7B73;
  --rule: #E6DCD4; --plum: #7A2E42; --gold: #B98A33;
  --col: 690px; --step: 24px;
  --display: "Didot", "Bodoni 72", "Hoefler Text", Garamond, "Times New Roman", serif;
  --sans: "Helvetica Neue", Seravek, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.62; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kicker { display: inline-block; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--plum); font-weight: 700; }
.kicker a:hover { text-decoration: underline; }

/* шапка: подбирается при прокрутке */
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 0; z-index: 50; background: linear-gradient(90deg, var(--plum), var(--gold)); transition: width .12s linear; }
.head { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ink); transition: box-shadow .3s; }
.head .wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 24px 12px; transition: padding .35s cubic-bezier(.2, .7, .2, 1); }
.logo { font-family: var(--display); font-size: 38px; letter-spacing: .02em; line-height: 1; transition: font-size .35s cubic-bezier(.2, .7, .2, 1); text-align: center; }
.tagline { font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-faint); text-align: center; max-height: 3em; transition: opacity .25s, max-height .35s; }
body.scrolled .head { box-shadow: 0 6px 24px rgba(25, 18, 15, .08); }
body.scrolled .head .wrap { padding-top: 10px; padding-bottom: 8px; }
body.scrolled .logo { font-size: 26px; }
body.scrolled .tagline { opacity: 0; max-height: 0; overflow: hidden; }
.nav { display: flex; gap: 6px 24px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.nav a { position: relative; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); padding-bottom: 3px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -1px; height: 1px; background: var(--plum); transition: right .35s cubic-bezier(.2, .7, .2, 1); }
.nav a:hover, .nav a.on { color: var(--plum); }
.nav a:hover::after, .nav a.on::after { right: 0; }
.nav sup { font-size: 9px; color: var(--ink-faint); margin-left: 2px; letter-spacing: 0; }

/* реклама */
.ad { margin: 26px 0; }
.ad-note { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; text-align: center; }
.ad-slot { display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.ad-slot:empty { display: none; }
.ad-slot > * { max-width: 100%; }
.ad-bottom { align-items: stretch; margin: 40px 0 0; }
/* Рекламный код ставит своим блокам большой z-index и вылезает поверх
   закреплённой шапки при прокрутке (14.10.2026). Отдельный слой держит
   всю рекламу под шапкой. */
.header-banner, .ad-slot, .banner-left-wrapper, ntvk-tag, [id^="yandex_rtb"] { position: relative; z-index: 0; isolation: isolate; }
.header-banner { width: 100%; margin: 14px auto 0; overflow: hidden; }
.header-banner-stage { width: 100%; display: flex; justify-content: center; overflow: hidden; }
.header-banner-slot { width: 728px; min-width: 728px; max-width: none; transform-origin: top center; }
.banner-left-wrapper { position: sticky; top: 96px; }
.feed-layout { margin-top: 0; }
.feed-layout .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feed-ad { min-width: 0; padding-top: 18px; }
.feed-ad .banner-left-wrapper { position: sticky; top: 96px; z-index: 0; }

/* разворот: обложка номера и «Выбор редакции» */
.spread { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 44px; padding: 30px 0 0; }
.cover { margin: 0; }
.cover h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.05; margin: 12px 0 0; letter-spacing: -.01em; }
.cover h2 a:hover { color: var(--plum); }
.cover .shot { aspect-ratio: 3 / 2; margin-top: 18px; background: var(--tint); }
.cover .shot img { width: 100%; height: 100%; object-fit: cover; }
.cover p { font-size: 18.5px; line-height: 1.66; color: var(--ink-soft); margin: 16px 0 0; max-width: 58ch; }
.more { display: inline-block; position: relative; margin-top: 14px; padding-right: 26px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--plum); border-bottom: 1px solid var(--plum); padding-bottom: 3px; }
.more::after { content: "→"; position: absolute; right: 0; top: 50%; transform: translate(-6px, -55%); opacity: 0; transition: transform .3s, opacity .3s; }
.more:hover::after { transform: translate(0, -55%); opacity: 1; }

.pick { background: var(--tint); padding: 22px 24px 10px; align-self: start; }
.pick h2 { font-family: var(--display); font-weight: 400; font-size: 26px; margin: 0 0 2px; }
.pick .sub { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }
.pick article { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 13px 8px 13px 0; border-top: 1px solid var(--rule); transition: background .25s; }
.pick article:hover { background: rgba(185, 138, 51, .08); }
.pick .n { font-family: var(--display); font-size: 26px; color: var(--gold); line-height: 1; transition: transform .3s cubic-bezier(.2, .7, .2, 1), color .25s; }
.pick article:hover .n { transform: translateX(4px); color: var(--plum); }
.pick h3 { font-family: var(--display); font-weight: 400; font-size: 19px; line-height: 1.26; margin: 0 0 4px; }
.pick article:hover h3 { color: var(--plum); }
.pick p { margin: 0; font-size: 13.5px; color: var(--ink-faint); line-height: 1.45; }

/* разделы */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 40px 0 18px; border-bottom: 1px solid var(--ink); padding-bottom: 8px; }
.section-head h1, .section-head h2 { font-family: var(--display); font-weight: 400; font-size: 32px; margin: 0; line-height: 1.1; }
.section-head span, .section-head a { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--plum); }

/* лента: три колонки */
.feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 30px; }
.story .shot { display: block; aspect-ratio: 4 / 3; background: var(--tint); }
.story .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.story:hover .shot img { transform: scale(1.04); }
.story .kicker { margin-top: 14px; }
.story h3 { font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1.22; margin: 8px 0 8px; transition: color .25s; }
.story:hover h3 { color: var(--plum); }
.story p { margin: 0 0 10px; color: var(--ink-soft); font-size: 15px; }
.story .meta { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.empty { color: var(--ink-faint); }

/* рубрики с числом материалов — вместо пустоты внизу главной */
.shelf { margin-top: 48px; background: var(--tint); padding: 28px 30px 30px; }
.shelf h2 { font-family: var(--display); font-weight: 400; font-size: 30px; margin: 6px 0 16px; }
.shelf .rubrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1px; background: var(--rule); }
.shelf .rubrics a { background: var(--tint); padding: 16px 14px; transition: transform .3s, background .3s; }
.shelf .rubrics a:hover { transform: translateY(-3px); background: #fff; }
.shelf .rubrics b { display: block; font-family: var(--display); font-weight: 400; font-size: 19px; line-height: 1.25; }
.shelf .rubrics span { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }

.pages { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 40px 0 0; justify-content: center; }
.pages a, .pages span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--rule); font-family: var(--display); font-size: 18px; }
.pages a:hover { border-color: var(--plum); color: var(--plum); }
.pages a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* страница рубрики */
.page-head { text-align: center; padding: 36px 0 8px; }
.page-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 5vw, 62px); line-height: 1.05; margin: 10px 0 0; }
.page-head p { margin: 10px 0 0; color: var(--ink-faint); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }

/* статья */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; margin-top: 30px; }
.crumbs { margin-top: 24px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.crumbs a:hover { color: var(--plum); }
.story-page { min-width: 0; }
.story-page h1 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.06; margin: 12px 0 18px; letter-spacing: -.01em; }
.story-page .dateline { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.cover-img { margin: 22px 0 30px; }
.cover-img img { width: 100%; height: auto; }
.cover-img figcaption { font-size: 12.5px; color: var(--ink-faint); padding: 8px 0 12px; border-bottom: 1px solid var(--rule); }
.article-content { max-width: var(--col); font-size: 19px; line-height: 1.75; overflow-wrap: break-word; }
.article-content > *:first-child { margin-top: 0; }
.article-content p { margin: 0 0 var(--step); }
.article-content > p:first-of-type::first-letter { font-family: var(--display); font-size: 66px; line-height: .8; float: left; padding: 8px 14px 0 0; color: var(--plum); }
.article-content h1, .article-content h2 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; margin: 1.6em 0 .6em; }
.article-content h3 { font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1.25; margin: 1.4em 0 .5em; }
.article-content a { color: var(--plum); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-content ul, .article-content ol { margin: 0 0 var(--step); padding-left: 1.3em; }
.article-content li { margin-bottom: .45em; }
.article-content li::marker { color: var(--gold); }
.article-content blockquote { margin: 0 0 var(--step); padding-left: 20px; border-left: 2px solid var(--gold); font-family: var(--display); font-size: 22px; line-height: 1.45; color: var(--ink-soft); }
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content img { height: auto; margin: 6px auto; }
.article-content figure { margin: 1.6em 0; }
.article-content figcaption { font-size: 12.5px; color: var(--ink-faint); padding-top: 8px; }
.article-content table { width: 100%; border-collapse: collapse; margin: 0 0 var(--step); font-size: 16px; display: block; overflow-x: auto; }
.article-content th, .article-content td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.article-content th { font-family: var(--display); font-weight: 400; font-size: 17px; background: var(--tint); }
.article-content iframe, .article-content video { max-width: 100%; }
.share { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--rule); }
.btn { display: inline-block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; border: 1px solid var(--ink); padding: 12px 20px; background: none; color: var(--ink); cursor: pointer; transition: background .25s, color .25s; font-family: var(--sans); }
.btn:hover { background: var(--ink); color: #fff; }
.related-articles { margin-top: 44px; }
.related-articles .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.related-articles .story h3 { font-size: 20px; }

/* боковая колонка статьи */
.side .box { background: var(--tint); padding: 20px 22px 8px; margin-bottom: 26px; }
.side h4 { font-family: var(--display); font-weight: 400; font-size: 22px; margin: 0 0 8px; }
.side .fresh-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
.side .fresh-item img { width: 72px; height: 56px; object-fit: cover; }
.side .fresh-item span { font-family: var(--display); font-size: 16px; line-height: 1.3; }
.side .fresh-item:hover span { color: var(--plum); }
.side .rub { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.side .rub span { color: var(--ink-faint); }
.side .rub:hover { color: var(--plum); }

/* 404 и форма */
.lost { text-align: center; padding: 70px 0 90px; }
.lost .big { font-family: var(--display); font-size: clamp(110px, 18vw, 200px); line-height: .9; color: var(--plum); }
.lost h1 { font-family: var(--display); font-weight: 400; font-size: 36px; margin: 14px 0 12px; }
.lost p { color: var(--ink-soft); max-width: 520px; margin: 0 auto 26px; }
.contact { max-width: 620px; margin: 26px auto 70px; }
.contact-lead { color: var(--ink-soft); margin: 0 0 22px; text-align: center; }
.contact-form { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--rule); background: #fff; color: var(--ink); font: 400 17px var(--sans); letter-spacing: 0; text-transform: none; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--plum); outline-offset: -1px; }
.contact-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button { justify-self: center; }
.contact-note { margin: 0; text-align: center; font-size: 14px; color: var(--ink-faint); min-height: 1.4em; }

/* подвал */
.site-footer { margin-top: 64px; border-top: 1px solid var(--ink); padding-top: 30px; }
.site-footer .cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 30px; padding-bottom: 26px; }
.site-footer .fbrand { font-family: var(--display); font-size: 28px; margin-bottom: 8px; display: inline-block; }
.site-footer h5 { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 10px; font-weight: 600; }
.site-footer .cols a:not(.fbrand) { display: block; padding: 3px 0; font-size: 15px; color: var(--ink-soft); }
.site-footer .cols a:hover { color: var(--plum); }
.site-footer p { margin: 0; color: var(--ink-faint); max-width: 40ch; font-size: 15px; }
.site-footer .copy { border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--ink-faint); padding: 14px 0 20px; }
.site-footer .copy a { color: inherit; text-decoration: underline; }

/* появление при прокрутке: только transform и opacity, первый экран — сразу */
.rise { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.rise.seen { opacity: 1; transform: none; }
.no-js .rise { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .spread, .layout, .site-footer .cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feed-ad { order: -1; padding-top: 0; }
  .feed-ad .banner-left-wrapper { position: static; }
  .banner-left-wrapper { position: static; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .logo { font-size: 30px; }
  .nav { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; max-width: 100%; scrollbar-width: none; padding-bottom: 2px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  .feed, .feed-layout .feed, .related-articles .feed { grid-template-columns: minmax(0, 1fr); }
  .shelf { padding: 20px 16px 22px; }
  .article-content { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
