@font-face {
  font-family: "Oswald";
  src: url("/fonts/oswald-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Oswald";
  src: url("/fonts/oswald-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Literata";
  src: url("/fonts/literata-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Literata";
  src: url("/fonts/literata-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

:root {
  --chalk: #f3f4ef;
  --white: #ffffff;
  --navy: #16314b;
  --red: #b83a2e;
  --grass: #4d7339;
  --muted: #5f6974;
  --line: #d6d9d0;

  --head: "Oswald", "Arial Narrow", sans-serif;
  --body: "Literata", Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--chalk);
  color: var(--navy);
  font: 400 1.0625rem/1.75 var(--body);
}

a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
a:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.wrap { max-width: 70rem; margin: 0 auto; padding: 0 1.25rem; }

.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.25rem; }
.logo { font: 600 1.5rem/1 var(--head); color: var(--navy); text-decoration: none; letter-spacing: 0.01em; }
.logo span { color: var(--red); }
.top nav { display: flex; gap: 1.5rem; font: 400 1rem/1 var(--head); }
.top nav a { color: var(--navy); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--red); }

h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.1; }
h1 { font-size: clamp(2.4rem, 1.5rem + 4vw, 4.6rem); margin: 0 0 1rem; letter-spacing: -0.01em; max-width: 14ch; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin: 0 0 1.5rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.5rem; font-weight: 500; }

.hero { padding-block: 2.5rem 4rem; }
.hero > p { max-width: 36rem; color: var(--muted); margin: 0 0 2.5rem; }

/* План недели: главный элемент страницы. */
.week { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); border: 2px solid var(--navy); background: var(--white); }
.week li { padding: 1rem 0.9rem 1.2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 9.5rem; display: flex; flex-direction: column; }
.week .day { font: 500 0.95rem/1 var(--head); color: var(--muted); }
.week .what { font: 600 1.25rem/1.15 var(--head); margin: 0.6rem 0 auto; }
.week .how { font-size: 0.9rem; color: var(--muted); line-height: 1.4; margin-top: 0.75rem; }
.week .strength { box-shadow: inset 0 5px 0 var(--red); }
.week .cardio { box-shadow: inset 0 5px 0 var(--grass); }
.week .rest { background: var(--chalk); }
.legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.9rem; color: var(--muted); margin-top: 1rem; }
.legend span::before { content: ""; display: inline-block; width: 1.4rem; height: 4px; margin-right: 0.5rem; vertical-align: middle; }
.legend .l-strength::before { background: var(--red); }
.legend .l-cardio::before { background: var(--grass); }
.warn { margin-top: 1.5rem; font-size: 0.95rem; max-width: 40rem; }

.reads { padding-block: 4rem; border-top: 2px solid var(--navy); }
.reads-grid { display: grid; gap: 2.5rem; }
@media (min-width: 880px) { .reads-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 4rem; } }
.big h3 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); font-weight: 600; }
.big h3 a { color: var(--navy); text-decoration-color: var(--red); }
.big p { color: var(--muted); max-width: 34rem; }
.small { list-style: none; margin: 0; padding: 0; }
.small li { padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.small li:first-child { padding-top: 0; }
.small p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.foot { padding-block: 2rem 3rem; font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); }

.story { max-width: 38rem; padding-block: 2.5rem 4rem; }
.story h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); max-width: none; }
.story .meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }
.story h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
.story p, .story li { line-height: 1.8; }

/* Форма обратной связи */
.contact { margin-block: 1rem 3rem; padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); background: var(--navy); color: var(--chalk); }
.contact h2 { color: var(--white); }
.contact-lead { max-width: 36rem; margin: 0 0 1.75rem; opacity: 0.85; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; max-width: 44rem; }
.contact-form label { display: grid; gap: 0.4rem; font: 500 0.85rem var(--head); letter-spacing: 0.04em; }
.contact-form .contact-message { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea { font: 1rem var(--body); color: var(--navy); background: var(--chalk); border: 0; border-left: 4px solid var(--grass); padding: 0.7rem 0.8rem; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-left-color: var(--red); background: var(--white); }
.contact-form button { justify-self: start; font: 600 1rem var(--head); letter-spacing: 0.03em; color: var(--white); background: var(--red); border: 0; padding: 0.8rem 1.4rem; cursor: pointer; }
.contact-form button:hover { background: #9c2f25; }
.contact-form button:active { transform: translateY(1px); }
.contact-form button:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
@media (max-width: 640px) { .contact-form { grid-template-columns: 1fr; } }
