:root {
  --color-bg: #ffffff;
  --color-surface: #f6f5f3;
  --color-text: #1a1d23;
  --color-muted: #6b7280;
  --color-accent: #7c2d12;
  --color-accent-dark: #5c1f0c;
  --color-border: #e4e0dc;
  --font-head: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1140px;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}

h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.45rem, 3.2vw, 2.05rem);
}

h3 {
  font-size: 1.18rem;
}

p {
  margin: 0 0 1.05em;
}

.tv-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.tv-section {
  padding: 56px 0;
}

.tv-section--surface {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.tv-section__label {
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 700;
  margin: 0 0 .7em;
}

.tv-section__lead {
  color: var(--color-muted);
  max-width: 62ch;
}

.tv-rule {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 32px 0;
}

.tv-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  position: relative;
}

.tv-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.tv-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -.02em;
}

.tv-logo__mark {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--color-accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: .95rem;
  font-weight: 700;
}

.tv-nav {
  display: none;
}

.tv-nav.is-open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  z-index: 40;
}

.tv-nav__list {
  list-style: none;
  margin: 0;
  padding: 8px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tv-nav__link {
  display: block;
  padding: 9px 0;
  color: var(--color-text);
  text-decoration: none;
  font-size: .97rem;
  border-bottom: 1px solid var(--color-border);
}

.tv-nav__link:hover {
  color: var(--color-accent);
}

.tv-burger {
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  border-radius: 6px;
  width: 42px;
  height: 38px;
  display: grid;
  place-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 9px 10px;
}

.tv-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
}

.tv-hero {
  padding: 44px 0 12px;
}

.tv-hero__kicker {
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 1em;
}

.tv-hero__text {
  font-size: 1.06rem;
  color: var(--color-muted);
  max-width: 66ch;
}

.tv-figure {
  margin: 0 0 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.tv-figure img {
  width: 100%;
  height: clamp(200px, 34vw, 340px);
  object-fit: cover;
}

.tv-figure__caption {
  font-size: .84rem;
  line-height: 1.5;
  color: var(--color-muted);
  padding: 10px 14px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.tv-figure__credit {
  display: block;
  margin-top: 4px;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.tv-figure--hero {
  margin: 26px 0 0;
}

.tv-figure--hero img {
  height: clamp(220px, 42vw, 420px);
}

.tv-figure--featured {
  margin: 0;
}

.tv-figure--featured img {
  height: clamp(210px, 36vw, 330px);
}

.tv-figure--post {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.tv-figure--post img {
  height: 190px;
}

.tv-figure--post .tv-figure__caption {
  border-top: 0;
  border-bottom: 1px solid var(--color-border);
}

.tv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.tv-action {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .97rem;
  text-decoration: none;
  border: 1px solid var(--color-accent);
  background: var(--color-accent);
  color: #fff;
  cursor: pointer;
}

.tv-action:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

.tv-action--ghost {
  background: transparent;
  color: var(--color-accent);
}

.tv-action--ghost:hover {
  background: var(--color-surface);
  color: var(--color-accent-dark);
}

.tv-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.tv-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  padding: 22px;
}

.tv-card__index {
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--color-accent);
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}

.tv-card__title {
  font-size: 1.12rem;
  margin-bottom: .5em;
}

.tv-card__text {
  color: var(--color-muted);
  font-size: .95rem;
  margin: 0;
}

.tv-card__icon {
  width: 30px;
  height: 30px;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.tv-post {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
}

.tv-post__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tv-post__meta {
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 10px;
}

.tv-post__title {
  font-size: 1.1rem;
  margin-bottom: .5em;
}

.tv-post__title a {
  color: var(--color-text);
  text-decoration: none;
}

.tv-post__title a:hover {
  color: var(--color-accent);
}

.tv-post__text {
  color: var(--color-muted);
  font-size: .94rem;
  flex: 1;
}

.tv-post__more {
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}

.tv-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: start;
}

.tv-longread h2 {
  margin-top: 1.4em;
}

.tv-longread h3 {
  margin-top: 1.5em;
}

.tv-longread ul,
.tv-longread ol {
  padding-left: 20px;
  margin: 0 0 1.1em;
  color: var(--color-text);
}

.tv-longread li {
  margin-bottom: .45em;
}

.tv-longread p,
.tv-longread li {
  max-width: 72ch;
}

.tv-note {
  border-left: 3px solid var(--color-accent);
  background: var(--color-surface);
  padding: 16px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 1.3em;
  font-size: .96rem;
}

.tv-note p:last-child {
  margin-bottom: 0;
}

.tv-tablewrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin: 0 0 1.4em;
}

.tv-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: .93rem;
}

.tv-table th,
.tv-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.tv-table th {
  background: var(--color-surface);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.tv-table tr:last-child td {
  border-bottom: 0;
}

.tv-faq {
  margin-top: 26px;
  max-width: 820px;
}

.tv-faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--color-bg);
}

.tv-faq__q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 16px 18px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-head);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.tv-faq__sign {
  color: var(--color-accent);
  font-weight: 700;
  flex: none;
}

.tv-faq__a {
  padding: 0 18px 16px;
  color: var(--color-muted);
  font-size: .96rem;
}

.tv-faq__a p:last-child {
  margin-bottom: 0;
}

.tv-faq__item.is-collapsed .tv-faq__a {
  display: none;
}

.tv-cta {
  background: var(--color-accent);
  color: #fff;
  padding: 46px 0;
}

.tv-cta h2 {
  color: #fff;
}

.tv-cta p {
  color: rgba(255, 255, 255, .88);
  max-width: 62ch;
}

.tv-cta .tv-action {
  background: #fff;
  color: var(--color-accent);
  border-color: #fff;
}

.tv-cta .tv-action:hover {
  background: var(--color-surface);
  color: var(--color-accent-dark);
}

.tv-form {
  display: grid;
  gap: 16px;
  max-width: 620px;
  margin-top: 24px;
}

.tv-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tv-form__label {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 600;
}

.tv-form__input,
.tv-form__textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  font-size: .97rem;
  color: var(--color-text);
  background: var(--color-bg);
}

.tv-form__input:focus,
.tv-form__textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.tv-form__textarea {
  min-height: 130px;
  resize: vertical;
}

.tv-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.tv-form__note {
  font-size: .85rem;
  color: var(--color-muted);
  margin: 0;
}

.tv-legal p,
.tv-legal li {
  max-width: 74ch;
}

.tv-legal h2 {
  margin-top: 1.5em;
  font-size: 1.3rem;
}

.tv-legal ul {
  padding-left: 20px;
}

.tv-legal li {
  margin-bottom: .4em;
}

.tv-meta {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1.2em;
}

.tv-toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 28px;
}

.tv-toc__title {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 700;
  margin-bottom: 10px;
}

.tv-toc ul {
  margin: 0;
  padding-left: 18px;
  font-size: .95rem;
}

.tv-toc li {
  margin-bottom: .3em;
}

.tv-footer {
  background: #16181d;
  color: #c3c7ce;
  padding: 44px 0 26px;
  font-size: .93rem;
  margin-top: 0;
}

.tv-footer a {
  color: #e6e8ec;
  text-decoration: none;
}

.tv-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.tv-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.tv-footer__title {
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8b929d;
  font-weight: 700;
  margin-bottom: 12px;
}

.tv-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tv-footer__list li {
  margin-bottom: 7px;
}

.tv-footer__about {
  color: #9aa1ab;
  max-width: 40ch;
}

.tv-footer__bottom {
  border-top: 1px solid #2a2e36;
  margin-top: 30px;
  padding-top: 18px;
  color: #8b929d;
  font-size: .86rem;
}

.tv-cookie {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .16);
  padding: 18px;
  z-index: 60;
  max-width: 640px;
  margin: 0 auto;
}

.tv-cookie[hidden] {
  display: none;
}

.tv-cookie__text {
  font-size: .9rem;
  color: var(--color-muted);
  margin-bottom: 14px;
}

.tv-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tv-cookie__actions .tv-action {
  padding: 9px 18px;
  font-size: .9rem;
}

.tv-404 {
  padding: 70px 0;
  text-align: center;
}

.tv-404 p {
  color: var(--color-muted);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.tv-404 .tv-actions {
  justify-content: center;
}

@media (min-width: 720px) {
  .tv-section {
    padding: 68px 0;
  }

  .tv-hero {
    padding: 62px 0 16px;
  }

  .tv-featured {
    grid-template-columns: 1.05fr 1fr;
    gap: 34px;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .tv-burger {
    display: none;
  }

  .tv-nav {
    display: block;
  }

  .tv-nav.is-open {
    position: static;
    border: 0;
    box-shadow: none;
  }

  .tv-nav__list {
    flex-direction: row;
    gap: 22px;
    padding: 0;
  }

  .tv-nav__link {
    border-bottom: 0;
    padding: 0;
  }
}
