@import url("/assets/studio/fonts.css");
:root {
  color-scheme: light;
  --ink: #172f29;
  --muted: #43594e;
  --paper: #f7f4eb;
  --line: #cecfc1;
  --green: #214638;
  --orange: #e6a46e;
  font: 100%/1.55 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid #a34a24; outline-offset: 4px; }
.skip { position: absolute; z-index: 1; top: .7rem; left: .7rem; padding: .7rem; background: white; }
.skip:not(:focus) { clip-path: inset(50%); }
.wrap { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem 2rem; }
.header-inner { min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 780; font-size: 1.15rem; text-decoration: none; white-space: nowrap; }
.brand span { width: 1.25rem; height: 1.25rem; background: var(--green); border-radius: 75% 0; box-shadow: inset -.3rem .3rem var(--orange); }
nav { display: flex; flex-wrap: wrap; gap: .15rem 1.25rem; }
nav a { display: inline-flex; align-items: center; min-height: 2rem; font-size: .92rem; font-weight: 600; text-decoration: none; }
nav a:hover, nav [aria-current] { text-decoration: underline; }
h1, h2 { font-family: Georgia, serif; font-weight: 500; line-height: 1.04; letter-spacing: -.035em; margin: 0; }
h1 { font-size: clamp(2.85rem, 6.35vw, 6.15rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
p { margin: 0; }
.hero { display: grid; grid-template-columns: 1.14fr 1fr; margin-top: 2rem; background: var(--green); color: var(--paper); overflow: hidden; }
.hero-copy { padding: clamp(2rem, 5.2vw, 5rem); align-self: center; }
.hero-copy p { margin: 1.25rem 0 1.6rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 29rem; }
.button { display: inline-block; padding: .8rem 1.05rem; background: var(--green); color: white; font-weight: 720; text-decoration: none; }
.button:hover { background: #32604d; }
.hero .button { background: var(--orange); color: #24281d; }
.hero .button:hover { background: #f5bb89; }
.hero a:focus-visible { outline-color: #fff1d2; }
.text-link { display: inline-block; margin: .7rem 0 .2rem 1rem; }
.hero-art {
  position: relative; min-height: 22rem; overflow: hidden;
  background: radial-gradient(ellipse at 68% 25%, #f9d3a8, transparent 70%), #de925d;
}
.paper {
  position: absolute; width: 63%; height: 140%; top: -15%; left: 18%; transform: rotate(-17deg);
  border-inline: 8px solid #b76a46; box-shadow: 1.25rem 1.2rem 2rem #62331955;
  background:
    linear-gradient(90deg, #21382b55, transparent 14%, transparent 78%, #fff5cd45 96%, #43412566),
    radial-gradient(ellipse at top left, transparent 55%, #ead1a0 57% 62%, transparent 64%) 0 0 / 4.5rem 4.5rem,
    radial-gradient(ellipse at bottom right, transparent 55%, #ead1a0 57% 62%, transparent 64%) 0 0 / 4.5rem 4.5rem,
    #617454;
}
.section { margin-block: clamp(2.6rem, 6vw, 5rem); }
.topics, .entries { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.topics a { display: block; min-height: 100%; padding: 1rem; border: 1px solid var(--line); text-decoration: none; }
.topics a:hover, .entries a:hover { background-color: #eeede2; }
.topics strong, .entries strong { display: block; font-size: 1.18rem; }
.topics a:hover strong, .entries a:hover strong { text-decoration: underline; }
.topics span:last-child, .entries span { display: block; color: var(--muted); margin-top: .25rem; }
.swatch { display: block; height: 4.25rem; margin-bottom: .9rem; }
.vybor { background: #e7e9d8; }
.pokleyka { background: #f0dfc7; }
.problemy { background: #ecd6cb; }
.swatch.vybor { background-image: repeating-linear-gradient(45deg, transparent 0 17px, #737d55 18px 20px, transparent 21px 34px), repeating-linear-gradient(-45deg, transparent 0 17px, #737d55 18px 20px, transparent 21px 34px); }
.swatch.pokleyka { background-image: repeating-linear-gradient(90deg, transparent 0 24px, #b37f4f 24px 29px, transparent 29px 34px); }
.swatch.problemy { background-image: radial-gradient(circle, #9e5d50 0 2px, transparent 3px); background-size: 19px 19px; }
.reading { max-width: 52rem; }
.entries li { border-top: 1px solid var(--line); }
.entries li:last-child { border-bottom: 1px solid var(--line); }
.entries a { display: block; padding: .85rem .75rem; text-decoration: none; }
.crumb { margin: 1.15rem 0 .75rem; font-size: .95rem; }
.intro { padding: clamp(1.5rem, 5.2vw, 4.5rem); background-color: #e7e9d8; }
.intro.pokleyka { background-color: #f0dfc7; }
.intro.problemy { background-color: #ecd6cb; }
.intro p { margin-top: .9rem; max-width: 38rem; font-size: 1.15rem; }
.error { margin-block: 2rem; }
.error .button, .prose .button, .related { margin-top: 1.25rem; }
.prose p { margin-top: .8rem; }
.prose h2:not(:first-child) { margin-top: 2rem; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 4.5rem; }
@media (max-width: 60rem) {
  .header-inner { align-items: flex-start; flex-direction: column; padding-block: .85rem; gap: .45rem; }
}
@media (max-width: 43rem) {
  .wrap { width: calc(100% - 2rem); }
  .hero { grid-template-columns: 1fr; margin-top: 1.25rem; }
  .hero-copy { padding: 1.55rem; }
  .hero-art { min-height: 11rem; }
  .topics { grid-template-columns: 1fr; }
  nav { column-gap: .85rem; }
}
@media (min-width: 44rem) and (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: enter .55s ease-out both; }
  @keyframes enter { from { transform: translateY(8px); } }
}
.topics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.swatch.podgotovka { background: repeating-linear-gradient(130deg, #c4b391 0 2px, #e1d7bc 2px 14px); }
.intro.podgotovka { background-color: #e1d7bc; }
.catalog { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
.catalog > h2, .catalog-search { grid-column: 1 / -1; }
.catalog-search label { display: block; font-weight: 700; margin-bottom: .35rem; }
.catalog-search input { width: min(100%, 28rem); padding: .7rem .8rem; border: 1px solid #687c6e; background: #fffdf6; color: var(--ink); font: inherit; }
.catalog-search p { margin-top: .35rem; color: var(--muted); }
.catalog-group h3 { margin: .25rem 0 0; font: 500 1.8rem Georgia, serif; }
.catalog-group .entries { margin-top: .8rem; }
@media (max-width: 62rem) { .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 43rem) { .topics, .catalog { grid-template-columns: 1fr; } }

:root {
  --ink: #292b22;
  --muted: #555747;
  --paper: #f7f1e7;
  --line: #cbbba8;
  --green: #2b4435;
  --clay: #8d3d32;
  --serif: Prata, Georgia, serif;
  font-family: Manrope, system-ui, sans-serif;
}
header.site-header { border-top: 4px solid var(--clay); }
.brand { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; }
.brand span { width: .9rem; height: .9rem; box-shadow: inset -.2rem .2rem #c78963; }
h1, h2, .catalog-group h3 { font-family: var(--serif); font-weight: 400; line-height: 1.16; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.85rem); }
.studio-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); margin-top: clamp(1rem, 3vw, 2.5rem); background: #efe3d1; border: 1px solid var(--line); }
.studio-copy { padding: clamp(1.35rem, 4vw, 3.9rem); align-self: center; }
.studio-copy h1 { font-size: clamp(2.15rem, 4.65vw, 4.55rem); margin-block: .6rem 1rem; text-wrap: balance; }
.studio-kicker { color: var(--clay); font-size: .88rem; font-weight: 800; letter-spacing: .06em; }
.studio-deck { max-width: 33ch; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.studio-cover { width: 100%; height: 100%; display: block; min-height: 0; object-fit: cover; }
.quick-calc { margin-top: 1.55rem; padding-top: 1.15rem; border-top: 1px solid #aa9178; }
.quick-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.quick-fields label { min-width: 0; font-size: .875rem; font-weight: 800; }
.quick-fields input { display: block; margin-top: .25rem; width: 100%; min-width: 0; padding: .5rem .65rem; border: 1px solid #a48d75; background: #fffaf1; color: var(--ink); font: inherit; }
.quick-calc .button { border: 0; margin-top: .9rem; cursor: pointer; font-family: inherit; font-size: 1rem; }
.quick-calc p { margin-top: .55rem; max-width: 40ch; font-size: .875rem; color: var(--muted); }
.studio-section-head { display: flex; justify-content: space-between; align-items: end; gap: .65rem 2rem; margin-bottom: 1.3rem; }
.studio-section-head p { max-width: 34ch; color: var(--muted); }
.practice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.practice-card { min-width: 0; background: #fffaf0; border-top: 2px solid var(--clay); padding: 1rem; }
.practice-card h3 { font: 400 clamp(1.2rem, 2vw, 1.5rem)/1.2 var(--serif); margin: 0 0 .75rem; }
.practice-action { font-weight: 800; }
.practice-card p { margin: .55rem 0 0; }
.practice-card summary { cursor: pointer; margin-top: .55rem; color: var(--green); font-weight: 750; padding-block: .3rem; }
.practice-card ol { margin: .3rem 0 .65rem; padding-left: 1.35rem; }
.practice-card a { color: var(--green); }
.practice-source, .studio-source, .clip-file { font-size: .875rem; }
.studio-source { margin-top: 1rem; }
.clip { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #e8d6b7; }
.clip img, .clip video { display: block; width: 100%; height: 100%; object-fit: cover; }
.clip video { position: absolute; inset: 0; }
.clip video:focus-visible { outline-offset: -4px; }
.clip-play { position: absolute; inset: auto .55rem .55rem; background: #2b4435; color: #fffdf6 !important; border: 1px solid #fffaf0; padding: .5rem .65rem; text-align: center; font: 750 .875rem/1.3 Manrope, system-ui, sans-serif; min-height: 2.6rem; cursor: pointer; }
.clip-play:hover { background: #3a5a46; }
.clip-file { display: inline-block; margin-top: .35rem; }
.article-main { max-width: 54rem; }
.article-main .article-answer { background: #eee2cf; border-color: var(--clay); }
.article-main .studio-article-practice { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: .35rem; }
.article-main .studio-article-practice .practice-card { max-width: 40rem; }
.wallpaper-calculator input, .wallpaper-calculator select, .wallpaper-calculator button { font-family: Manrope, system-ui, sans-serif; }
.wallpaper-calculator .wc-intro h1, .wallpaper-calculator .wc-result h2, .wallpaper-calculator .wc-method h2 { font-family: var(--serif); }
@media (max-width: 54rem) {
  .practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-section-head { align-items: start; flex-direction: column; }
}
@media (max-width: 43rem) {
  .studio-lead, .practice-grid { grid-template-columns: minmax(0, 1fr); }
  .studio-cover { height: auto; max-height: 19rem; aspect-ratio: 1.65; }
}
@media (prefers-reduced-motion: no-preference) {
  .studio-copy { animation: studio-enter .45s ease-out both; }
  .button, .topics a, .practice-card { transition: transform .18s ease, background-color .18s ease; }
  .button:hover, .topics a:hover, .practice-card:focus-within { transform: translateY(-2px); }
  .button:active { transform: translateY(1px); }
  @keyframes studio-enter { from { transform: translateY(8px); } }
}
