/* «Кухонный журнал» — обзоры бытовой техники как тёплый домашний журнал.
   Кремовая бумага, томатный акцент, Literata для заголовков, Wix Madefor
   Text для текста. Товар крупно на «тарелке», рубрики — цветные карточки. */

@font-face { font-family: "Literata"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("../fonts/literata-normal-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("../fonts/literata-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("../fonts/literata-italic-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("../fonts/literata-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Wix Madefor Text"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/wix-madefor-text-normal-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Wix Madefor Text"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/wix-madefor-text-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }

:root {
  --cream: #f6efe3; --paper: #fffaf2; --ink: #2a1f17; --ink-2: #5b4a3c; --mute: #7d6a58; --line: #e6d9c6;
  --tomato: #c9401a; --olive: #5f6a2c; --butter: #f2c94c; --sky: #9ec5c4;
  --serif: "Literata", Georgia, serif; --sans: "Wix Madefor Text", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.65 var(--sans); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: 1220px; margin: 0 auto; padding: 0 30px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* шапка */
.mast { padding: 24px 0 0; }
.mast .row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; border-bottom: 2px solid var(--ink); padding-bottom: 14px; }
.brand { font: 800 46px/1 var(--serif); letter-spacing: -1.5px; }
.brand em { font-style: italic; font-weight: 500; color: var(--tomato); }
.issue { font: 500 14px var(--sans); color: var(--ink-2); text-align: right; }
.issue b { color: var(--tomato); }
.nav { display: flex; gap: 6px 24px; padding: 12px 0; font: 600 15px var(--sans); overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.nav::-webkit-scrollbar { display: none; }
.nav a:hover, .nav a.on { color: var(--tomato); }
.nav sup { font-size: 10px; color: var(--mute); margin-left: 2px; }

/* реклама */
.header-banner { width: 100%; margin: 8px 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; }
.header-banner img, .header-banner iframe { max-width: 100%; height: auto; }
.ad-slot { display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.ad-slot:empty { display: none; }
.ad-bottom { margin: 30px 0 0; }
.banner-left-wrapper { position: sticky; top: 16px; }

/* обложка выпуска */
.cover { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; margin: 30px 0 10px; }
.kick { display: inline-block; background: var(--butter); padding: 4px 12px; border-radius: 30px; font: 700 13px var(--sans); }
.kick-line { font: 700 12px var(--sans); color: var(--olive); text-transform: uppercase; letter-spacing: .1em; }
.kick-line time { color: var(--mute); font-weight: 600; }
.cover h2 { font: 800 clamp(36px, 4.8vw, 64px)/1.03 var(--serif); letter-spacing: -1.8px; margin: 16px 0 16px; }
.cover h2 a:hover { color: var(--tomato); }
.cover p { font-size: 18px; color: var(--ink-2); max-width: 560px; margin: 0 0 18px; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--paper); padding: 14px 24px; border-radius: 40px; font: 700 15px var(--sans); transition: background .25s; border: 0; cursor: pointer; }
.btn:hover { background: var(--tomato); }
.plate { position: relative; aspect-ratio: 1; display: block; }
.plate::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #f2e3cc 70%); box-shadow: 0 30px 60px -30px rgba(42,31,23,.45), inset 0 0 0 14px #fff8ec; animation: spin-in 1.2s cubic-bezier(.2,.8,.2,1) both; }
.plate img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; clip-path: circle(35% at 50% 50%); animation: drop 1s .2s cubic-bezier(.3,1.4,.5,1) both; }
@keyframes spin-in { from { transform: scale(.6) rotate(-40deg); opacity: 0; } }
@keyframes drop { from { transform: translateY(-30px) scale(.92); opacity: 0; } }

/* рубрики */
.rubrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 34px 0 10px; }
.rubric { border-radius: 26px; padding: 24px 26px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .3s; }
.rubric:hover { transform: rotate(-1deg) translateY(-4px); }
.rubric b { font: 800 34px/1.05 var(--serif); letter-spacing: -1px; }
.rubric span { font: 600 15px var(--sans); }
.rubric:nth-child(3n+1) { background: var(--butter); } .rubric:nth-child(3n+2) { background: var(--sky); } .rubric:nth-child(3n) { background: var(--tomato); color: #fff8ef; }

/* разделы */
.sec { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 44px 0 20px; border-top: 2px solid var(--ink); padding-top: 14px; }
.sec h1, .sec h2 { font: 800 34px/1.1 var(--serif); margin: 0; letter-spacing: -1px; }
.sec h1 em, .sec h2 em { font-weight: 500; color: var(--tomato); }
.sec span { color: var(--mute); font-size: 14px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; align-items: start; }

/* журнальная сетка */
.mag { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.piece { background: var(--paper); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); grid-column: span 2; transition: box-shadow .3s, transform .3s; }
.piece:hover { transform: translateY(-5px); box-shadow: 0 24px 40px -26px rgba(42,31,23,.55); }
.piece .ph { background: #fff; aspect-ratio: 4/3; overflow: hidden; display: block; }
.piece .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; display: block; }
.piece:hover .ph img { transform: scale(1.05); }
.piece .b { padding: 16px 20px 22px; }
.piece h3 { font: 700 21px/1.22 var(--serif); margin: 6px 0 8px; }
.piece h3 a:hover { color: var(--tomato); }
.piece p { font-size: 15px; color: var(--ink-2); margin: 0; }
.piece.wide { grid-column: span 4; display: grid; grid-template-columns: 1fr 1fr; }
.piece.wide .ph { aspect-ratio: auto; min-height: 280px; }
.piece.wide h3 { font-size: 30px; }
.empty { color: var(--mute); }

aside .box { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px; margin-bottom: 20px; }
aside h4 { font: 800 20px var(--serif); margin: 0 0 10px; }
aside .box a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-weight: 600; font-size: 15px; }
aside .box a:hover { color: var(--tomato); }
aside .box a span { color: var(--mute); font-weight: 500; }

.pages { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 34px 0 0; }
.pages a, .pages span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); font-weight: 700; }
.pages a:hover { border-color: var(--tomato); color: var(--tomato); }
.pages a.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* статья */
.crumbs { margin: 24px 0 0; font: 600 13px var(--sans); color: var(--mute); }
.crumbs a:hover { color: var(--tomato); }
.story { min-width: 0; }
.story h1 { font: 800 clamp(32px, 4vw, 52px)/1.06 var(--serif); letter-spacing: -1.4px; margin: 12px 0 22px; }
.cover-img { margin: 0 0 28px; border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.cover-img img { display: block; width: 100%; height: auto; }
.article-content { font: 400 18px/1.75 var(--sans); overflow-wrap: break-word; }
.article-content > *:first-child { margin-top: 0; }
.article-content p { margin: 0 0 1.1em; }
.article-content h1 { font: 800 30px/1.15 var(--serif); margin: 1.2em 0 .5em; }
.article-content h2 { font: 800 28px/1.2 var(--serif); letter-spacing: -.6px; margin: 1.6em 0 .6em; }
.article-content h2::before { content: ""; display: block; width: 46px; height: 6px; border-radius: 3px; background: var(--tomato); margin-bottom: 14px; }
.article-content h3 { font: 700 21px/1.3 var(--serif); margin: 1.4em 0 .5em; }
.article-content a { color: var(--tomato); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-content ul, .article-content ol { margin: 0 0 1.2em; padding-left: 0; list-style: none; }
.article-content li { position: relative; padding-left: 30px; margin-bottom: .5em; }
.article-content ul > li::before { content: ""; position: absolute; left: 6px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--butter); box-shadow: 0 0 0 2px var(--ink); }
.article-content ol { counter-reset: j; }
.article-content ol > li { counter-increment: j; }
.article-content ol > li::before { content: counter(j); position: absolute; left: 0; top: .1em; width: 22px; height: 22px; border-radius: 50%; background: var(--tomato); color: #fff; font: 700 12px/22px var(--sans); text-align: center; }
.article-content blockquote { margin: 1.5em 0; padding: 18px 22px; background: var(--paper); border-left: 4px solid var(--tomato); border-radius: 0 18px 18px 0; font: italic 500 19px/1.6 var(--serif); color: var(--ink-2); }
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content img { display: block; height: auto; margin: 0 auto; border-radius: 16px; }
.article-content figure { margin: 1.8em 0; }
.article-content figcaption { font-size: 13px; color: var(--mute); text-align: center; margin-top: 8px; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 16px; display: block; overflow-x: auto; background: var(--paper); border-radius: 16px; }
.article-content th, .article-content td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-content th { font-weight: 700; background: #f3e6d1; }
.article-content p.image-credits, .article-content .article-credits { font-size: 13px; color: var(--mute); }
.article-content iframe, .article-content video { max-width: 100%; }
.share { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }

.related-articles { margin: 44px 0 0; }
.related-articles .mag { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.related-articles .piece { grid-column: span 1; }
.related-articles .piece h3 { font-size: 18px; }

/* рубрика, 404 */
.page-head { margin: 32px 0 0; }
.page-head h1 { font: 800 clamp(38px, 5vw, 64px)/1 var(--serif); letter-spacing: -2px; margin: 10px 0 0; }
.lost { padding: 70px 0 90px; }
.lost .big { font: 800 clamp(110px, 18vw, 220px)/.9 var(--serif); color: var(--tomato); letter-spacing: -8px; }
.lost h1 { font: 800 36px/1.1 var(--serif); margin: 14px 0 12px; }
.lost p { color: var(--ink-2); max-width: 520px; margin: 0 0 26px; }
.rubric-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 60px; }
.rubric-list a { background: var(--paper); border: 1px solid var(--line); border-radius: 30px; padding: 10px 18px; font-weight: 700; }

/* подвал */
.site-footer { margin-top: 50px; padding: 34px 0 30px; border-top: 2px solid var(--ink); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.site-footer .brand { font-size: 32px; }
.site-footer p { color: var(--ink-2); font-size: 15px; margin: 10px 0 0; max-width: 420px; }
.site-footer h5 { font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--mute); margin: 0 0 10px; }
.site-footer .cols a:not(.brand) { display: block; padding: 3px 0; font-size: 15px; }
.site-footer .cols a:hover { color: var(--tomato); }
.site-footer .copy { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.site-footer .copy a { color: inherit; text-decoration: underline; }

.rise { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (max-width: 1000px) {
  .cover, .layout, .site-footer .cols { grid-template-columns: minmax(0, 1fr); }
  .cover .plate { max-width: 420px; margin: 0 auto; width: 100%; }
  .rubrics { grid-template-columns: minmax(0, 1fr); }
  .mag { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .piece, .piece.wide { grid-column: span 2; }
  .piece.wide { grid-template-columns: minmax(0, 1fr); }
  .banner-left-wrapper { position: static; }
  .brand { font-size: 36px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  body { font-size: 16px; }
  .issue { display: none; }
  .mag, .related-articles .mag { grid-template-columns: minmax(0, 1fr); }
  .piece, .piece.wide, .related-articles .piece { grid-column: span 1; }
  .article-content { font-size: 17px; }
  .rubrics { gap: 10px; margin-top: 26px; }
  .rubric { min-height: 0; padding: 16px 20px; flex-direction: row; align-items: center; border-radius: 18px; }
  .rubric b { font-size: 24px; }
  .article-content h2 { font-size: 24px; }
}
