/* ==========================================================================
   Анна Логунова — репетитор по русскому языку
   Свёрстано по макету template.sketch
   ========================================================================== */

:root {
  --paper: #d2c8b4;
  --ink: #000000;
  --blue: #3d549b;
  --blue-deep: #0051ac;
  --blue-soft: #3453a1;
  --line: #a29e8d;
  --footer-top: #999999;
  --footer-bottom: #606060;
  --container: 1920px;
  --gutter: clamp(20px, 4.17vw, 80px);
  --script: "Marck Script", "Segoe Script", cursive;
  --sans: "PT Sans Caption", "PT Sans", Arial, sans-serif;
  --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 16' preserveAspectRatio='none'%3E%3Cpath d='M2 11C40 4 80 4 120 9S200 14 240 9 320 3 360 9 440 14 480 9 560 3 600 9 680 13 718 7' fill='none' stroke='%233D549B' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 28px;
  color: var(--ink);
  background: var(--paper) url("../img/bg-paper.webp") center top / cover no-repeat fixed;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

p {
  margin: 0 0 18px;
}

p:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  margin: 0;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 50;
}

.site-header__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 98px;
}

.site-header__inner::after {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  height: 2px;
  background: var(--line);
}

.logo {
  justify-self: start;
  font-family: var(--script);
  font-size: 36px;
  line-height: 1;
  letter-spacing: 2px;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover {
  color: var(--blue-deep);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.1vw, 40px);
  font-size: clamp(18px, 1.35vw, 26px);
  line-height: 1.15;
  font-weight: 700;
}

.main-nav a {
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--blue);
}

.main-nav__lk {
  margin-left: clamp(6px, 0.8vw, 16px);
}

.main-nav__cta {
  display: none;
  color: var(--blue);
}

.header-cta {
  justify-self: end;
  font-size: clamp(18px, 1.35vw, 26px);
  line-height: 1.15;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.header-cta:hover {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Breadcrumbs / page titles / shared article layout
   -------------------------------------------------------------------------- */

.breadcrumb {
  margin: 28px 0 4px;
  font-size: 16px;
  line-height: 1.4;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--blue);
}

.breadcrumb span {
  opacity: 0.75;
}

.page-title {
  margin: 0 0 26px;
  font-size: clamp(38px, 3.75vw, 72px);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 467px;
  column-gap: 27px;
  align-items: start;
  padding-bottom: 0;
}

.layout__main {
  min-width: 0;
}

.layout__aside {
  min-width: 0;
  padding: 6px 0 24px 33px;
  border-left: 2px solid var(--line);
}

.lead {
  max-width: 1290px;
  margin: 0 0 32px;
  font-size: clamp(18px, 1.46vw, 28px);
  line-height: 1.36;
  font-weight: 700;
}

.lead--body {
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  width: 100%;
  height: auto;
}

.article-section {
  margin-top: 32px;
  padding-top: 12px;
  border-top: 2px solid var(--line);
}

.article-section > h2 {
  margin: 0 0 20px;
  font-size: clamp(28px, 2.7vw, 52px);
  line-height: 1.19;
  letter-spacing: -0.01em;
}

.article-section > h2 + .hand {
  margin-top: 4px;
}

.hand {
  display: inline-block;
  margin: 0 0 24px;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(24px, 1.98vw, 38px);
  line-height: 1.26;
  color: var(--blue);
}

.hand--u {
  position: relative;
  padding-bottom: 0.12em;
}

.hand--u::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.04em;
  height: 0.28em;
  background: var(--squiggle) center / 100% 100% no-repeat;
}

.cols-2,
.cols-3 {
  display: grid;
  gap: 40px 9%;
  align-items: start;
}

.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1157px;
  column-gap: 11.8%;
}

.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 6.5%;
}

.cols-2 h3,
.cols-3 h3 {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 28px;
}

.cols-2 p,
.cols-3 p {
  margin: 0 0 18px;
}

.cols-2 .block + .block,
.cols-3 .block + .block {
  margin-top: 34px;
}

.list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

.list--num {
  counter-reset: item;
}

.list--num li {
  padding-left: 28px;
  counter-increment: item;
}

.list--num li::before {
  content: counter(item) ".";
  color: var(--ink);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(377px, 100%);
  min-height: 78px;
  padding: 12px 30px;
  border: 2px solid var(--line);
  background: var(--blue);
  color: #fff;
  font-family: var(--sans);
  font-size: clamp(18px, 1.35vw, 26px);
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn:hover {
  background: #2f4383;
}

.btn-row {
  margin-top: 34px;
}

/* Aside */

.aside-title {
  margin: 0 0 30px;
  font-size: clamp(28px, 2.7vw, 52px);
  line-height: 1.19;
  letter-spacing: -0.01em;
}

.aside-title--lg {
  font-size: clamp(30px, 3.75vw, 72px);
  line-height: 1.14;
}

.aside-title--md {
  font-size: clamp(26px, 2.7vw, 52px);
  line-height: 1.19;
}

.aside-sub {
  margin: 0 0 22px;
  font-size: clamp(20px, 1.46vw, 28px);
  line-height: 1.36;
}

.aside-body {
  font-size: 18px;
  line-height: 28px;
}

.aside-body p {
  margin: 0 0 18px;
}

.layout__aside figure {
  margin: 36px 0 0;
}

.layout__aside figure img {
  width: 100%;
  height: auto;
}

.layout__aside .btn-row {
  margin-top: 28px;
}

/* --------------------------------------------------------------------------
   Home page
   -------------------------------------------------------------------------- */

.home-intro {
  padding: 28px 0 0;
}

.home-intro__grid {
  position: relative;
  display: grid;
  grid-template-columns: 500px minmax(0, 1fr);
  column-gap: 98px;
  padding-bottom: clamp(28px, 2.2vw, 42px);
}

.home-intro__grid::after {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  height: 2px;
  background: var(--line);
}

.home-intro__left p {
  max-width: 500px;
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
}

.home-intro__right {
  min-width: 0;
  padding-left: 36px;
  border-left: 2px solid var(--line);
}

.home-intro__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.home-intro__year {
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
}

.home-intro__sub {
  max-width: 616px;
  margin: 0;
  font-size: 28px;
  line-height: 38px;
  text-align: right;
}

.home-intro__hand {
  margin: clamp(60px, 12vw, 240px) 0 22px;
  font-family: var(--script);
  font-size: 30px;
  line-height: 40px;
  color: var(--blue);
}

.home-intro h1 {
  max-width: 1100px;
  font-size: clamp(32px, 2.6vw, 50px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.home-intro__oval {
  display: block;
  width: min(1071px, 100%);
  height: 10px;
  margin-top: 12px;
}

.home-intro__oval ellipse {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
}

.home-photo {
  position: relative;
  height: clamp(320px, 43.3vw, 832px);
  overflow: hidden;
  background: #848383;
}

.home-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.home-photo__tear {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(90px, 13.5vw, 260px);
  background: url("../img/torn-paper.webp") top center / 100% auto no-repeat;
  pointer-events: none;
}

.home-name {
  position: relative;
  z-index: 3;
  height: clamp(170px, 16.2vw, 310px);
  margin-top: -36px;
}

.home-name__hello {
  position: absolute;
  left: 7%;
  top: 17%;
  font-size: clamp(18px, 1.46vw, 28px);
  line-height: 1.2;
}

.home-name__first {
  position: absolute;
  left: 54%;
  top: 0;
  font-family: var(--script);
  font-size: clamp(80px, 9.4vw, 180px);
  line-height: 0.95;
  letter-spacing: 0.2em;
  color: var(--blue);
}

.home-name__last {
  position: absolute;
  left: 13%;
  top: 42%;
  z-index: 2;
  font-family: var(--script);
  font-size: clamp(26px, 1.9vw, 36px);
  line-height: 1.2;
  letter-spacing: 0.26em;
  color: var(--blue);
}

.home-reasons {
  padding-top: 0;
}

.home-reasons > .container {
  position: relative;
  padding-top: 22px;
}

.home-reasons > .container::before {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: 0;
  height: 2px;
  background: var(--line);
}

.home-reasons__grid {
  display: grid;
  grid-template-columns: 510px minmax(0, 1fr);
  column-gap: 88px;
  align-items: start;
  margin-top: 22px;
}

.reason {
  margin-bottom: clamp(28px, 2.4vw, 46px);
}

.reason:last-child {
  margin-bottom: 0;
}

.reason h3 {
  margin: 0 0 14px;
  font-size: clamp(20px, 1.35vw, 26px);
  line-height: 1.25;
}

.reason p {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
}

.home-reasons__media {
  position: relative;
}

.home-reasons__img {
  width: 100%;
  height: auto;
}

.home-reasons__note {
  position: absolute;
  top: -96px;
  left: 23%;
  width: 78%;
  margin: 0;
  font-family: var(--script);
  font-size: clamp(24px, 1.98vw, 38px);
  line-height: 1.26;
  color: var(--blue-soft);
}

.home-audience {
  margin-top: clamp(44px, 4vw, 70px);
  padding: 0;
}

.home-audience > .container {
  position: relative;
  padding-top: clamp(32px, 3vw, 50px);
}

.home-audience > .container::before {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: 0;
  height: 2px;
  background: var(--line);
}

.home-audience__grid {
  display: grid;
  grid-template-columns: 510px minmax(0, 1fr);
  column-gap: 88px;
  align-items: start;
}

.home-audience__img {
  width: 100%;
  height: auto;
}

.home-audience__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-audience__title {
  margin: 0 0 clamp(24px, 3vw, 46px);
  font-family: var(--script);
  font-size: clamp(52px, 6.25vw, 120px);
  line-height: 1;
  font-weight: 400;
  color: var(--blue);
}

.home-audience__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 2.6vw, 44px) clamp(30px, 4.2vw, 80px);
  width: 100%;
  text-align: left;
}

.audience-card h3 {
  margin: 0 0 10px;
  font-family: var(--script);
  font-size: clamp(40px, 3.75vw, 72px);
  line-height: 1.05;
  font-weight: 400;
  color: var(--blue-deep);
}

.audience-card p {
  margin: 0;
  font-size: clamp(20px, 1.9vw, 36px);
  line-height: 1.22;
  color: var(--blue-deep);
}

.home-audience .btn {
  margin-top: clamp(34px, 3.6vw, 56px);
}

/* --------------------------------------------------------------------------
   Articles listing
   -------------------------------------------------------------------------- */

.posts-page {
  padding-bottom: 0;
}

.posts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px 40px;
  margin-top: clamp(30px, 3vw, 50px);
}

.post-card {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: #222;
  aspect-ratio: 859 / 590;
}

.post-card--wide {
  grid-column: 1 / -1;
  aspect-ratio: 1762 / 590;
}

.post-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}

.post-card:hover img {
  transform: scale(1.03);
}

.post-card:hover::after {
  background: rgba(0, 0, 0, 0.42);
}

.post-card__body {
  position: absolute;
  z-index: 2;
  left: clamp(20px, 2.3vw, 44px);
  right: clamp(20px, 2.3vw, 44px);
  bottom: clamp(20px, 2.2vw, 42px);
}

.post-card__date {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 28px;
}

.post-card__title {
  margin: 0 0 8px;
  font-size: clamp(26px, 2.7vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.post-card__excerpt {
  max-width: 1270px;
  margin: 0;
  font-size: 18px;
  line-height: 28px;
}

.load-more {
  margin-top: clamp(34px, 3.4vw, 54px);
}

.load-more__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 77px;
  padding: 12px 90px;
  border: 2px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.load-more__bar:hover {
  background: rgba(61, 84, 155, 0.08);
  color: var(--blue);
}

.load-more__circle {
  position: absolute;
  right: 22px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin-top: -35px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: linear-gradient(180deg, #999, #606060);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.is-hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Single article
   -------------------------------------------------------------------------- */

.post-rule {
  margin: 42px 0;
  border-top: 2px solid var(--line);
}

.post-hero {
  position: relative;
  margin: 24px 0 clamp(34px, 3.2vw, 52px);
  overflow: hidden;
  background: #222;
}

.post-hero img {
  width: 100%;
  aspect-ratio: 1762 / 590;
  object-fit: cover;
}

.post-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.post-hero__title {
  position: absolute;
  z-index: 2;
  top: 7%;
  left: clamp(20px, 2.3vw, 44px);
  right: clamp(20px, 4vw, 80px);
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 3.75vw, 72px);
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.post-intro {
  max-width: 1134px;
  margin: 0 0 clamp(34px, 3vw, 50px);
  font-size: clamp(18px, 1.25vw, 24px);
  line-height: 1.42;
  font-weight: 700;
}

.article-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 6.5%;
  align-items: start;
}

.article-cols h2 {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 38px;
}

.article-cols h3 {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 28px;
}

.article-cols p {
  margin: 0 0 18px;
}

/* --------------------------------------------------------------------------
   Contacts
   -------------------------------------------------------------------------- */

.contacts-page {
  padding-bottom: 0;
}

.contacts-sub {
  max-width: 800px;
  margin: 0 0 40px;
  font-size: clamp(18px, 1.25vw, 24px);
  line-height: 1.42;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0 0 42px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.contact-row__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contact-row__icon--max {
  position: relative;
}

.contact-row__icon--max::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.contact-row__icon--max::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
}

.contact-row__text {
  font-size: clamp(20px, 1.25vw, 24px);
  line-height: 1.4;
  font-weight: 700;
}

.contact-row:hover .contact-row__text {
  color: var(--blue);
}

.contact-rule {
  margin: 42px 0;
  border-top: 2px solid var(--line);
}

.contact-map {
  margin: 0;
}

.contact-map img {
  width: 100%;
  height: auto;
  border: 2px solid var(--line);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding-bottom: 0;
}

.footer-rule {
  margin-top: 42px;
  border-top: 2px solid var(--line);
}

.site-footer__bar {
  width: calc(100% - 2 * var(--gutter));
  max-width: 1760px;
  margin: 42px auto 0;
  padding: 92px 40px 52px;
  border: 2px solid var(--line);
  background: linear-gradient(180deg, var(--footer-top) 0%, var(--footer-bottom) 100%);
  color: #fff;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: start;
}

.site-footer__copy {
  padding-left: 0;
  font-size: 15px;
  line-height: 25px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-footer__copy a {
  color: #fff;
  text-decoration: none;
}

.site-footer__copy a:hover {
  text-decoration: underline;
}

.site-footer__socials {
  display: flex;
  gap: 48px;
  justify-self: center;
}

.social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
}

.social:hover {
  opacity: 0.85;
}

.social__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  border: 1px solid var(--line);
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.social__icon--max {
  position: relative;
}

.social__icon--max::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.social__icon--max::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: end;
  gap: 34px;
  font-size: 15px;
  line-height: 25px;
  font-weight: 700;
}

.site-footer__nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__nav a {
  color: #fff;
  text-decoration: none;
}

.site-footer__nav a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1500px) {
  .site-footer__inner {
    grid-template-columns: 1fr auto 1.35fr;
  }

  .home-intro__grid {
    column-gap: 60px;
  }

  .home-reasons__grid,
  .home-audience__grid {
    grid-template-columns: 44% minmax(0, 1fr);
    column-gap: 60px;
  }
}

@media (max-width: 1180px) {
  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 26px var(--gutter) 32px;
    border-bottom: 2px solid var(--line);
    background: var(--paper) url("../img/bg-paper.webp") center top / cover no-repeat fixed;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
  }

  .site-header.is-open .main-nav {
    display: flex;
  }

  .main-nav__lk {
    margin-left: 0;
  }

  .main-nav__cta {
    display: inline-block;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 44px;
  }

  .layout__aside {
    padding: 34px 0 0;
    border-left: 0;
    border-top: 2px solid var(--line);
  }

  .home-intro__grid {
    grid-template-columns: 1fr;
    row-gap: 34px;
  }

  .home-intro__right {
    padding-left: 0;
    border-left: 0;
  }

  .home-intro__hand {
    margin-top: 30px;
  }

  .home-intro__sub {
    font-size: 22px;
    line-height: 32px;
  }

  .home-reasons__grid,
  .home-audience__grid {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .home-reasons__img,
  .home-audience__img {
    max-width: 640px;
  }

  .home-reasons__note {
    display: none;
  }

  .home-audience__content {
    align-items: flex-start;
    text-align: left;
  }

  .home-audience__title {
    align-self: center;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .site-footer__copy {
    padding-left: 0;
  }

  .site-footer__socials {
    justify-self: start;
  }

  .site-footer__nav {
    justify-content: start;
  }

  .article-cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .home-name {
    height: auto;
    min-height: 170px;
    margin-top: -10px;
    padding: 8px 0 24px;
  }

  .home-name__hello,
  .home-name__first,
  .home-name__last {
    position: static;
    display: block;
  }

  .home-name__hello {
    margin-bottom: 6px;
  }

  .home-name__first {
    font-size: clamp(64px, 16vw, 120px);
    letter-spacing: 0.08em;
  }

  .home-name__last {
    font-size: 26px;
    letter-spacing: 0.16em;
  }

  .home-audience__cards {
    grid-template-columns: 1fr;
  }

  .audience-card p {
    font-size: 22px;
  }

  .cols-2,
  .cols-3,
  .article-cols {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .posts {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .post-card,
  .post-card--wide {
    grid-column: auto;
    aspect-ratio: 1.45 / 1;
  }

  .post-card--wide {
    aspect-ratio: 1.9 / 1;
  }

  .post-card__title {
    font-size: clamp(24px, 4.2vw, 34px);
  }

  .site-footer__nav {
    grid-template-columns: 1fr 1fr;
    gap: 22px 34px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
    line-height: 26px;
  }

  .logo {
    font-size: 28px;
    letter-spacing: 1px;
  }

  .page-title {
    margin-bottom: 20px;
  }

  .lead {
    margin-bottom: 24px;
  }

  .home-intro {
    padding-top: 20px;
  }

  .home-intro__top {
    flex-direction: column;
    gap: 10px;
  }

  .home-intro__sub {
    text-align: left;
    font-size: 20px;
    line-height: 30px;
  }

  .home-intro__year {
    order: -1;
    font-size: 22px;
  }

  .home-intro h1 {
    font-size: 30px;
    line-height: 1.22;
  }

  .home-photo {
    height: 58vw;
    min-height: 220px;
  }

  .home-photo__tear {
    height: 26vw;
  }

  .home-name__first {
    font-size: 64px;
  }

  .home-audience__title {
    font-size: 56px;
  }

  .audience-card h3 {
    font-size: 44px;
  }

  .audience-card p {
    font-size: 20px;
  }

  .btn {
    width: 100%;
    min-height: 64px;
    font-size: 18px;
  }

  .post-card,
  .post-card--wide {
    aspect-ratio: auto;
    min-height: 340px;
  }

  .post-card__excerpt {
    display: none;
  }

  .post-hero img {
    aspect-ratio: 1.5 / 1;
  }

  .post-hero__title {
    top: 7%;
    font-size: 26px;
    line-height: 1.2;
  }

  .site-footer__nav {
    grid-template-columns: 1fr;
  }

  .site-footer__bar {
    padding: 48px 24px 36px;
  }

  .site-footer__copy {
    font-size: 14px;
    line-height: 23px;
  }
}
