/* ============================================================
   Template 11 — Winter / Footwear
   Layout: block-logo header · split lead banner · typographic index
           article as numbered STEP RAIL (sticky numeral left, text right)
   Palette: plum + ice blue on cool light paper
   Fonts: Rubik (UI/headings) + PT Serif (reading text)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700;800&family=PT+Serif:ital,wght@0,400;0,700;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper:      #f5f4f8;
  --card:       #ffffff;
  --ink:        #1d1b26;
  --ink-mid:    #3b3848;
  --muted:      #77738a;
  --line:       #dcd8e6;
  --plum:       #4b2a74;
  --plum-dark:  #33194f;
  --plum-light: #ece6f5;
  --ice:        #4fc3e8;
  --ice-dark:   #1a8fb5;
  --ice-light:  #e1f4fb;
  --ui:         'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;
  --read:       'PT Serif', Georgia, serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--ui); background: var(--paper); color: var(--ink); line-height: 1.65; }
a { color: var(--plum); text-decoration: none; }
a:hover { color: var(--ice-dark); text-decoration: underline; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   HEADER — coloured logo block + two stacked rows on the right
   ============================================================ */
#masthead { background: var(--card); border-bottom: 4px solid var(--ice); }
.mast { max-width: 1240px; margin: 0 auto; display: flex; align-items: stretch; }
.logo-block {
  width: 176px;
  flex-shrink: 0;
  min-height: 116px;
  background: var(--plum);
  color: #fff;
  padding: 16px 20px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.logo-block b { font-weight: 800; font-size: 2.9rem; line-height: 0.9; letter-spacing: -0.02em; }
.logo-block span { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ice); font-weight: 500; }
.logo-block:hover { background: var(--plum-dark); text-decoration: none; color: #fff; }

.mast-right { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding-left: 28px; min-width: 0; }
.mast-top {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px 24px 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--muted);
}
.mast-top a { color: var(--muted); font-weight: 500; margin-left: 18px; }
.mast-top a:hover { color: var(--plum); text-decoration: none; }
.mast-nav { display: flex; flex-wrap: wrap; gap: 4px; padding-right: 24px; }
.mast-nav a {
  padding: 14px 16px 12px;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-mid);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.mast-nav a:hover { color: var(--plum); border-bottom-color: var(--ice); text-decoration: none; }

/* ============================================================
   HOME — split lead banner
   ============================================================ */
.lead-split { display: grid; grid-template-columns: 1.15fr 1fr; margin: 34px 0 48px; border-radius: 8px; overflow: hidden; }
.lead-main { background: var(--plum); color: #fff; padding: 46px 46px 42px; }
.kicker { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ice); }
.lead-main h2 { font-weight: 800; font-size: 2.05rem; line-height: 1.17; letter-spacing: -0.015em; margin: 14px 0 16px; }
.lead-main p { font-family: var(--read); font-size: 1.04rem; color: #d9cdec; line-height: 1.7; margin-bottom: 26px; }
.btn { display: inline-block; font-weight: 600; font-size: 0.84rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 13px 26px; border-radius: 4px; }
.btn.ice { background: var(--ice); color: var(--ink); }
.btn.ice:hover { background: #6dd0ef; color: var(--ink); text-decoration: none; }
.lead-meta { margin-top: 18px; font-size: 0.8rem; color: #b9a9d4; }

.lead-side { background: var(--ice-light); padding: 38px 40px; }
.lead-side h3 { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ice-dark); margin-bottom: 8px; }
.inside { list-style: none; counter-reset: ins; }
.inside li { counter-increment: ins; display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid #bfe2f0; font-size: 0.98rem; font-weight: 500; color: var(--ink-mid); }
.inside li:last-child { border-bottom: none; }
.inside li::before { content: counter(ins, decimal-leading-zero); font-weight: 700; color: var(--ice-dark); min-width: 26px; }

/* ============================================================
   HOME / CATEGORY — typographic index list
   ============================================================ */
.index-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 3px solid var(--ink); padding-bottom: 10px; }
.index-head h2 { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.01em; }
.index-head span { font-size: 0.82rem; color: var(--muted); }

.ix {
  display: grid;
  grid-template-columns: 84px 150px 1fr 44px;
  gap: 0 22px;
  align-items: center;
  padding: 22px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.ix:hover { background: var(--card); text-decoration: none; color: var(--ink); }
.ix-date b { display: block; font-weight: 800; font-size: 2.1rem; line-height: 1; color: var(--plum); }
.ix-date small { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ix-cat { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ice-dark); }
.ix-title { font-weight: 600; font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.005em; }
.ix-exc { font-family: var(--read); font-size: 0.92rem; color: var(--muted); margin-top: 4px; line-height: 1.55; }
.ix-go { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--plum); font-weight: 700; }
.ix:hover .ix-go { background: var(--plum); border-color: var(--plum); color: #fff; }

.cat-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin: 50px 0 70px; border: 1px solid var(--line); background: var(--card); }
.cat-strip a { padding: 26px 28px; border-right: 1px solid var(--line); color: var(--ink); }
.cat-strip a:last-child { border-right: none; }
.cat-strip a:hover { background: var(--plum-light); text-decoration: none; }
.cat-strip b { display: block; font-weight: 800; font-size: 2.3rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--plum); }
.cat-strip strong { display: block; margin-top: 10px; font-weight: 600; font-size: 1.05rem; }
.cat-strip span { font-size: 0.86rem; color: var(--muted); }

/* Page band (category / service pages) */
.page-band { background: var(--plum); color: #fff; border-bottom: 6px solid var(--ice); }
.page-band .wrap { padding-top: 34px; padding-bottom: 40px; }
.page-band h1 { font-weight: 800; font-size: 2.2rem; letter-spacing: -0.015em; margin-top: 8px; }
.page-band p { color: #d0c3e6; font-family: var(--read); margin-top: 6px; max-width: 640px; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #b9a9d4; }
.breadcrumb a { color: #d9cdec; }
.breadcrumb a:hover { color: #fff; text-decoration: none; }
.breadcrumb .sep { color: #7c649e; }

/* ============================================================
   ARTICLE TOP — headline left + "Если коротко" card right
   ============================================================ */
.art-top { background: var(--plum); color: #fff; border-bottom: 6px solid var(--ice); }
.art-top-in { max-width: 1240px; margin: 0 auto; padding: 34px 24px 46px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 44px; align-items: start; }
.chip { display: inline-block; margin: 18px 0 14px; background: var(--ice); color: var(--ink); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 12px; border-radius: 3px; }
.art-top h1 { font-weight: 800; font-size: 2.4rem; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 16px; }
.art-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.84rem; color: #c3b4de; }
.art-meta b { color: #fff; font-weight: 600; }

.quick { background: var(--card); color: var(--ink); border-radius: 8px; overflow: hidden; margin-top: 8px; }
.quick-h { background: var(--ice); color: var(--ink); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; padding: 10px 18px; }
.quick-row { display: grid; grid-template-columns: 108px 1fr; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 0.9rem; line-height: 1.45; }
.quick-row:last-child { border-bottom: none; }
.quick-row b { font-weight: 600; color: var(--plum); }

/* ============================================================
   ARTICLE BODY — step rail
   ============================================================ */
.steps { max-width: 1060px; margin: 0 auto; padding: 38px 24px 24px; }
.intro { font-family: var(--read); font-size: 1.22rem; line-height: 1.7; color: var(--ink); max-width: 820px; margin-bottom: 30px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }

.step { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 40px; padding: 38px 0; border-top: 1px solid var(--line); }
.step:first-of-type { border-top: none; padding-top: 6px; }
.step-side { position: sticky; top: 20px; align-self: start; }
.step-n { display: block; font-weight: 800; font-size: 4.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--plum); }
.step-label { display: block; margin-top: 8px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ice-dark); }

.step-body { font-family: var(--read); font-size: 1.04rem; line-height: 1.8; color: var(--ink-mid); min-width: 0; }
.step-body h2 { font-family: var(--ui); font-weight: 700; font-size: 1.75rem; line-height: 1.22; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 14px; scroll-margin-top: 20px; }
.step-body h3 { font-family: var(--ui); font-weight: 600; font-size: 1rem; letter-spacing: 0.02em; color: var(--plum); margin: 1.6em 0 0.4em; }
.step-body p { margin-bottom: 1.2em; }
.step-body ul, .step-body ol { padding-left: 1.35em; margin-bottom: 1.2em; }
.step-body li { margin-bottom: 0.42em; }
.step-body strong { font-family: var(--ui); font-weight: 600; color: var(--ink); }

.step-body table { width: 100%; border-collapse: collapse; font-family: var(--ui); font-size: 0.88rem; margin: 0.4em 0 1.8em; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--card); }
.step-body th { background: var(--plum); color: #fff; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-align: left; padding: 11px 14px; }
.step-body td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.step-body tr:last-child td { border-bottom: none; }
.step-body tr:nth-child(even) td { background: var(--paper); }

/* Callouts */
.tip, .warn { padding: 16px 20px; border-radius: 6px; margin: 1.6em 0; font-family: var(--ui); font-size: 0.93rem; line-height: 1.6; }
.tip  { background: var(--ice-light); border-left: 5px solid var(--ice); color: #0f5670; }
.warn { background: var(--plum-light); border-left: 5px solid var(--plum); color: #3d2260; }
.tip b, .warn b { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 3px; }
.tip b { color: var(--ice-dark); }
.warn b { color: var(--plum); }

/* Temperature scale */
.scale { margin: 1.6em 0 2em; font-family: var(--ui); }
.scale-bar { display: grid; grid-template-columns: repeat(4, 1fr); height: 14px; border-radius: 7px; overflow: hidden; }
.scale-bar i:nth-child(1) { background: #cdeefa; }
.scale-bar i:nth-child(2) { background: #8fd6ef; }
.scale-bar i:nth-child(3) { background: #5a86c9; }
.scale-bar i:nth-child(4) { background: var(--plum); }
.scale-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.scale-cols div { font-size: 0.8rem; line-height: 1.45; color: var(--muted); }
.scale-cols b { display: block; font-size: 0.95rem; font-weight: 700; color: var(--plum); margin-bottom: 2px; }
.scale-note { font-size: 0.76rem; color: var(--muted); margin-top: 10px; }

/* Pros / cons pair */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.5em 0 1.8em; font-family: var(--ui); }
.pair-card { background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--ice); border-radius: 6px; padding: 16px 18px 6px; font-size: 0.9rem; line-height: 1.55; }
.pair-card:nth-child(2) { border-top-color: var(--plum); }
.pair-card h4 { font-size: 0.98rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.pair-card ul { padding-left: 1.1em; margin-bottom: 0.9em; }
.pair-card li { margin-bottom: 0.3em; }

/* Checklist */
.checklist { list-style: none; padding: 0 !important; font-family: var(--ui); }
.checklist li { position: relative; padding: 9px 0 9px 34px; border-bottom: 1px solid var(--line); font-size: 0.97rem; margin: 0; }
.checklist li:last-child { border-bottom: none; }
.checklist li::before { content: ''; position: absolute; left: 2px; top: 12px; width: 18px; height: 18px; border: 2px solid var(--plum); border-radius: 4px; background: #fff; }

/* Article footer */
.art-foot { max-width: 1060px; margin: 0 auto; padding: 8px 24px 0; }
.entry-footer { margin-left: 230px; padding-top: 20px; border-top: 2px solid var(--line); font-size: 0.86rem; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.entry-footer a { display: inline-block; background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 3px 12px; font-size: 0.78rem; font-weight: 500; color: var(--ink-mid); margin: 2px 4px 2px 0; }
.entry-footer a:hover { background: var(--plum); border-color: var(--plum); color: #fff; text-decoration: none; }

.next-wrap { max-width: 1060px; margin: 54px auto 70px; padding: 0 24px; }
.next-wrap h3 { font-weight: 800; font-size: 1.2rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 3px solid var(--ink); }
.next-row { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--card); }
.next-row a { padding: 20px 22px; border-right: 1px solid var(--line); color: var(--ink); font-weight: 600; line-height: 1.4; }
.next-row a:last-child { border-right: none; }
.next-row a small { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ice-dark); margin-bottom: 6px; }
.next-row a:hover { background: var(--plum-light); text-decoration: none; }

/* Service pages */
.plain { max-width: 780px; margin: 0 auto; padding: 40px 24px 70px; font-family: var(--read); font-size: 1.06rem; line-height: 1.8; color: var(--ink-mid); }
.plain h2 { font-family: var(--ui); font-weight: 700; font-size: 1.4rem; color: var(--ink); margin: 1.6em 0 0.5em; }
.plain p { margin-bottom: 1.1em; }

/* ============================================================
   FOOTER — light, four columns
   ============================================================ */
#colophon { background: #e8e4ef; border-top: 6px solid var(--plum); margin-top: 20px; }
.foot-grid { max-width: 1240px; margin: 0 auto; padding: 40px 24px 28px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-mark { width: 52px; height: 52px; background: var(--plum); color: #fff; font-weight: 800; font-size: 1.7rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.foot-about { font-size: 0.88rem; color: var(--ink-mid); line-height: 1.6; }
.foot-grid h4 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--plum); margin-bottom: 12px; }
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 7px; }
.foot-grid li a { font-size: 0.9rem; color: var(--ink-mid); }
.foot-grid li a:hover { color: var(--ice-dark); text-decoration: none; }
.foot-bottom { max-width: 1240px; margin: 0 auto; padding: 14px 24px 26px; border-top: 1px solid #cfc9dc; display: flex; justify-content: space-between; gap: 16px; font-size: 0.78rem; color: var(--muted); }
.foot-bottom a { color: var(--muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .lead-split { grid-template-columns: 1fr; }
  .art-top-in { grid-template-columns: 1fr; gap: 26px; }
  .step { grid-template-columns: 1fr; gap: 10px; padding: 30px 0; }
  .step-side { position: static; display: flex; align-items: baseline; gap: 14px; }
  .step-n { font-size: 2.6rem; }
  .step-label { margin-top: 0; }
  .entry-footer { margin-left: 0; }
  .pair { grid-template-columns: 1fr; }
  .scale-cols { grid-template-columns: repeat(2, 1fr); }
  .next-row { grid-template-columns: 1fr; }
  .next-row a { border-right: none; border-bottom: 1px solid var(--line); }
  .cat-strip { grid-template-columns: 1fr; }
  .cat-strip a { border-right: none; border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .mast { flex-direction: column; }
  .logo-block { width: 100%; min-height: 0; flex-direction: row; align-items: center; justify-content: space-between; padding: 12px 20px; }
  .logo-block b { font-size: 2rem; }
  .mast-right { padding-left: 16px; }
  .mast-top { display: none; }
  .mast-nav a { padding: 11px 10px; font-size: 0.76rem; }
  .ix { grid-template-columns: 64px 1fr; gap: 6px 14px; }
  .ix-cat { grid-column: 2; grid-row: 1; }
  .ix-main { grid-column: 2; }
  .ix-go { display: none; }
  .lead-main, .lead-side { padding: 30px 24px; }
  .lead-main h2 { font-size: 1.55rem; }
  .art-top h1 { font-size: 1.7rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; }
}
