:root {
  --orange: #fb5718;
  --orange-deep: #f94500;
  --magenta: #96004e;
  --magenta-deep: #730e3e;
  --magenta-mid: #961251;
  --ink: #1b1c1e;
  --body: #4f4d4e;
  --muted: #5f5b5d;
  --gray: #8c8c8c;
  --chip: #5e575a;
  --placeholder: #898486;
  --line: #e3dcdf;
  --line-soft: #f0e8ec;
  --cream: #fffaf7;
  --blush: #faf8f9;
  --mint: #e0f5ee;
  --green: #00ad74;
  --yellow: #f4cf00;
  --yellow-deep: #efbd00;
  --white: #ffffff;
  --shadow: 0 14px 40px rgba(115, 14, 62, 0.16);
  --radius: 24px;
  --header: 94px;
  --font: "Montserrat", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, h3, p { margin: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--magenta);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 12px;
  box-sizing: border-box;
}
@media (min-width: 1200px) {
  .wrap { max-width: 1140px; }
}
@media (min-width: 1400px) {
  .wrap { max-width: 1320px; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  background: var(--white);
  border-bottom: 1px solid #f2f2f2;
}

.header-inner {
  width: min(1248px, calc(100% - 32px));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-nav,
.header-actions,
.site-nav {
  display: flex;
  align-items: center;
}

.brand-nav { gap: 48px; min-width: 0; }
.site-nav { gap: 36px; }
.header-actions { gap: 10px; flex-shrink: 0; }

.logo img { width: 120px; height: 34px; }

.site-nav a {
  color: #000;
  font-size: 14px;
  font-weight: 600;
}
.site-nav a[aria-current="page"] { color: var(--magenta); }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 30px;
  border: 1.5px solid transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }

.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--orange-deep); }
.btn-ghost { background: transparent; color: var(--orange); padding-inline: 12px; }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: #009866; }

.hero {
  position: relative;
  overflow: visible;
  background: var(--cream);
  border-bottom: 1px solid var(--line-soft);
  padding: 74px 0 80px;
}

.hero__glow,
.hero__glow--b {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(150, 0, 78, 0.14), rgba(150, 0, 78, 0) 68%);
}
.hero__glow { width: 590px; height: 590px; right: 0; top: -290px; }
.hero__glow--b { width: 360px; height: 360px; left: 42%; bottom: -180px; background: radial-gradient(circle, rgba(251, 87, 24, 0.12), rgba(251, 87, 24, 0) 70%); }

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 323px;
  gap: 64px;
  align-items: center;
}

.kicker {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 861px;
  font-size: clamp(40px, 4.6vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.hero h1 span { color: var(--magenta); }

.hero__lead {
  max-width: 650px;
  margin-top: 24px;
  color: var(--body);
  font-size: 17px;
  line-height: 1.7;
}

.search { position: relative; z-index: 80; margin-top: 32px; }
.search-suggest {
  position: absolute;
  z-index: 90;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--white);
  border: 1px solid #eadfe4;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(115, 14, 62, 0.12);
}
.search-suggest[hidden] { display: none; }
.search-suggest a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 12px;
}
.search-suggest a:hover { background: var(--blush); }
.search-suggest img,
.search-suggest .search-suggest__placeholder {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
  background: #f3e7ec;
}
.search-suggest a { color: inherit; text-decoration: none; }
.search-suggest__empty { display: block; padding: 12px; color: var(--gray); font-size: 14px; }
.search-suggest strong { display: block; font-size: 14px; line-height: 1.3; }
.search-suggest span { display: block; margin-top: 2px; color: var(--gray); font-size: 12px; }
.search label,
.search--pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid #eadfe4;
  border-radius: 999px;
}
.search--hero label {
  max-width: 680px;
  min-height: 58px;
  padding: 8px 8px 8px 20px;
  box-shadow: 0 10px 30px rgba(115, 14, 62, 0.05);
}
.search svg { flex-shrink: 0; color: var(--placeholder); }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}
.search input::placeholder { color: var(--placeholder); }
.search__hint {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f7f2f4;
  color: #91878c;
  font-size: 10px;
}

.search--pill {
  width: 220px;
  height: 40px;
  margin: 0;
  padding: 0 14px 0 16px;
  border-color: var(--magenta);
}

.latest {
  position: relative;
  min-height: 331px;
  padding: 48px 36px 32px;
  border: 0.8px solid var(--magenta);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 40px rgba(150, 0, 78, 0.08);
  transform: rotate(-1.5deg);
}
.latest::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 36px;
  width: 36px;
  height: 6px;
  border-radius: 99px;
  background: var(--magenta);
}
.latest__kicker {
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.latest h2 {
  margin: 14px 0 12px;
  font-size: 28px;
  line-height: 1.15;
}
.latest p { color: #686868; font-size: 14px; line-height: 1.55; max-width: 258px; }
.latest a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--magenta);
  font-size: 14px;
  font-weight: 600;
}

.picks { position: relative; z-index: 1; padding: 104px 0; background: var(--white); }
.picks__head,
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.picks h2 { margin-top: 10px; font-size: 26px; line-height: 1.15; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--magenta);
  font-family: Inter, var(--font);
  font-size: 14px;
  font-weight: 700;
  padding-bottom: 6px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 42px;
}
.chip {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--chip);
  border-radius: 999px;
  min-height: 40px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.chip.is-active,
.chip[aria-pressed="true"] {
  background: var(--magenta);
  border-color: var(--magenta);
  color: var(--white);
}

.mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.mosaic > .card--lg { height: 100%; }
.mosaic > .card--lg .card__cover--photo {
  flex: 1 1 auto;
  aspect-ratio: auto;
  min-height: 280px;
}
.mosaic__side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.mosaic__side .card__cover { min-height: 0; aspect-ratio: 16 / 9; }
.mosaic__side .card__body { padding: 14px 16px 16px; gap: 8px; }
.mosaic__side .card h3 {
  font-size: 15px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.mosaic__side .card__excerpt { -webkit-line-clamp: 1; }
.catalog {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--white);
  border: 0.8px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card__cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 170px;
  padding: 24px;
  color: var(--white);
  overflow: hidden;
}
.card--lg .card__cover { min-height: 435px; padding: 36px; }
.card__cover--photo {
  padding: 0;
  background-position: center top;
  background-size: cover;
}
.card--lg .card__cover--photo {
  min-height: 0;
  aspect-ratio: 16 / 9;
  background-position: center;
  background-size: cover;
}
.card__cover--magenta { background: linear-gradient(157deg, var(--magenta-mid), var(--magenta-deep)); }
.card__cover--orange { background: linear-gradient(157deg, var(--orange), var(--orange-deep)); }
.card__cover--yellow { background: linear-gradient(157deg, var(--yellow), var(--yellow-deep)); color: var(--white); }
.card__ring {
  position: absolute;
  right: -28px;
  bottom: -36px;
  width: 150px;
  height: 150px;
  border: 18px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}
.card--lg .card__ring { width: 250px; height: 250px; border-width: 28px; right: -20px; bottom: -40px; }
.card__kicker {
  position: relative;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.card--lg .card__kicker { font-size: 10px; letter-spacing: 0.16em; }
.card__cover-title {
  position: relative;
  max-width: 220px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
}
.card--lg .card__cover-title { max-width: 350px; font-size: 31px; line-height: 1.08; }
.card__body { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 24px; flex: 1; }
.card--lg .card__body { padding: 30px 34px 34px; gap: 16px; }
.card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: 10px;
}
.card__meta strong { color: var(--magenta); letter-spacing: 0.04em; text-transform: uppercase; }
.card h3 { font-size: 17px; line-height: 1.25; }
.card--lg h3 { font-size: 24px; line-height: 1.25; }
.card__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.card--lg .card__excerpt { -webkit-line-clamp: 2; font-size: 14px; line-height: 1.5; }
.card__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--magenta);
  font-size: 11px;
  font-weight: 600;
}
.card--lg .card__more { font-size: 13px; }
.card:hover h3 { color: var(--magenta); }

.empty {
  grid-column: 1 / -1;
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: 20px;
}

.page-main { background: var(--blush); padding: 55px 0 64px; }
.page-main h1 { margin: 28px 0 8px; font-size: 28px; }
.search-summary { margin: 0 0 28px; color: var(--muted); font-size: 16px; }
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.crumbs a { color: var(--ink); }
.crumbs span[aria-hidden] { color: #8d8d8d; }
.crumbs strong { font-weight: 600; }
.crumb-mark { color: var(--magenta); display: inline-flex; }

.author-card {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 16px;
  padding: 32px;
  background: var(--white);
  border: 1px solid #e9d8e3;
  border-radius: 20px;
}
.author-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-card h1 { margin: 0; font-size: 28px; }
.author-card .role { margin: 8px 0 12px; color: var(--magenta); font-size: 16px; }
.author-card p:last-child { max-width: 952px; font-size: 16px; line-height: 1.5; }

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}
.pagination .page-gap {
  width: 20px;
  text-align: center;
  color: var(--gray);
  letter-spacing: 0.08em;
}
.pagination button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.pagination button.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}
.pagination button:disabled { opacity: 0.4; cursor: default; }

.offer { background: var(--blush); padding: 104px 0 116px; }
.offer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 500px);
  gap: 48px;
  align-items: center;
}
.offer h2 {
  max-width: 624px;
  margin-top: 10px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.1;
}
.offer__lead { max-width: 610px; margin: 22px 0 28px; font-size: 16px; line-height: 1.7; }
.checks { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 22px; padding: 0; list-style: none; }
.checks li { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.checks svg { color: var(--green); }

.offer-card {
  min-height: 280px;
  padding: 36px 28px;
  border-radius: 24px;
  background: var(--mint);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.offer-card p { color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.offer-card strong {
  color: var(--green);
  font-size: clamp(56px, 6vw, 74px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.offer-card span { font-size: 13px; }
.code-btn {
  margin-top: 12px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid var(--green);
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.code-btn.is-copied { background: var(--green); color: var(--white); }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 768px) minmax(260px, 400px);
  gap: 32px;
  align-items: start;
  margin-top: 8px;
}
.article {
  background: var(--white);
  border: 0.8px solid var(--line);
  border-radius: 20px;
  padding: 32px 16px 40px;
}
.article__inner { width: min(736px, 100%); margin-inline: auto; }
.article h1 { font-size: clamp(26px, 3vw, 30px); font-weight: 600; line-height: 1.25; }
.article__meta {
  margin: 12px 0 20px;
  text-align: right;
  color: #686868;
  font-size: 14px;
  font-weight: 600;
}
.article__hero { width: 100%; height: auto; border-radius: 16px; margin-bottom: 28px; }
.article .prose p { margin: 0 0 16px; font-size: 16px; line-height: 1.7; }
.article .prose .is-note { font-size: 14px; }
.article .prose h2 { margin: 28px 0 12px; font-size: 26px; font-weight: 600; line-height: 1.25; scroll-margin-top: 120px; }
.article .prose ul { margin: 0 0 16px; padding-left: 20px; }
.article .prose li { margin: 6px 0; line-height: 1.6; }

.share { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); text-align: center; }
.share p { font-size: 28px; font-weight: 700; margin-bottom: 22px; color: var(--ink); }
.share__row { display: flex; justify-content: center; align-items: center; gap: 8px; }
.share__row button {
  width: 25px;
  height: 25px;
  padding: 0;
  border: 0;
  background: transparent;
  display: block;
  flex: 0 0 25px;
  line-height: 1;
  cursor: pointer;
}
.share__row button:hover { opacity: 0.86; }
.share__row svg { display: block; width: 25px; height: 25px; }

.byline {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.byline img {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--line);
}
.byline h2 { font-size: 18px; }
.byline p { max-width: 640px; margin: 10px auto 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.byline a.more {
  display: inline-flex;
  margin-top: 16px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.related { margin-top: 36px; }
.related h2 { font-size: 22px; margin-bottom: 16px; }
.related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.related article { display: flex; min-width: 0; }
.related article a {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 148px;
  padding: 18px 16px 16px;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--orange), var(--orange-deep));
  color: var(--white);
  font-weight: 700;
  line-height: 1.3;
}
.related__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.3;
}
.related time { display: block; margin-top: auto; padding-top: 16px; color: rgba(255, 255, 255, 0.88); font-size: 13px; font-weight: 500; }

.article-side { display: flex; flex-direction: column; gap: 25px; position: sticky; top: 118px; }
.toc, .side-offer {
  background: var(--white);
  border: 0.8px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px;
}
.toc h2 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.toc a { display: block; padding: 4px 8px; border-radius: 8px; font-size: 14px; line-height: 1.35; }
.toc a.is-active { color: var(--magenta); font-weight: 600; }
.side-offer { background: var(--mint); border: 0; text-align: left; }
.side-offer h2 { font-size: 22px; line-height: 1.25; margin-bottom: 12px; }
.side-offer p { font-size: 16px; margin-bottom: 16px; }
.side-offer .btn, .side-offer .code-btn { width: 100%; }

.site-footer { background: var(--magenta); color: var(--white); padding: 48px 0 40px; }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(280px, 1fr);
  gap: 32px;
  align-items: end;
}
.site-footer h2 { margin: 14px 0 16px; font-size: clamp(32px, 4vw, 40px); line-height: 1.15; max-width: 440px; }
.footer-copy > p:last-of-type { max-width: 500px; margin-bottom: 28px; font-size: 14px; font-weight: 500; line-height: 1.45; }
.site-footer .kicker { color: var(--white); letter-spacing: 0; font-size: 18px; font-weight: 600; }

.dogs { display: flex; align-items: flex-end; justify-content: flex-end; gap: 14px; }
.dogs figure { margin: 0; text-align: center; }
.dogs img { width: 180px; height: 190px; object-fit: cover; border-radius: 20px; }
.dogs .dog--tall img { width: 176px; height: 250px; }
.dogs figcaption { margin-top: 8px; font-size: 20px; }

.footer-rule { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.85); margin: 36px 0 28px; }
.footer-bottom {
  display: grid;
  grid-template-columns: 160px repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.socials { display: flex; gap: 14px; }
.socials a { color: var(--white); display: grid; place-items: center; }
.socials svg { width: 18px; height: 18px; }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-bottom a { font-size: 14px; line-height: 1.6; }

@media (max-width: 1100px) {
  .hero__grid, .offer__grid, .article-layout, .footer-top, .mosaic { grid-template-columns: 1fr; }
  .latest { transform: none; max-width: 420px; }
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-side { position: static; }
  .footer-bottom { grid-template-columns: 1fr 1fr; }
  .dogs { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 20px 16px;
    background: var(--white);
    border-bottom: 1px solid #f2f2f2;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; width: 100%; }
  .header-actions .btn-ghost { display: none; }
  .mosaic__side, .catalog, .related__grid { grid-template-columns: 1fr; }
  .author-card { flex-direction: column; align-items: flex-start; }
  .search--pill { width: min(220px, 46vw); }
  .toolbar { align-items: flex-start; }
  .dogs { flex-wrap: wrap; }
  .dogs img, .dogs .dog--tall img { width: 140px; height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
