@font-face {
  font-family: "Monterchi";
  src:
    local("Monterchi"),
    url("assets/fonts/Monterchi.woff2") format("woff2"),
    url("assets/fonts/Monterchi.woff") format("woff"),
    url("assets/fonts/Monterchi.ttf") format("truetype");
  font-display: swap;
}

:root {
  --paper: #f6f2ea;
  --paper-deep: #efe8da;
  --ink: #2d2a24;
  --muted: #5e5a50;
  --sage: #44605b;
  --sage-dark: #263b37;
  --brown: #6f4b35;
  --soft-brown: #9b7966;
  --line: rgba(45, 42, 36, 0.48);
  --faint-line: rgba(45, 42, 36, 0.16);
  --cream-text: #f8ecdc;
  --font-display: "Monterchi", "Cormorant Garamond", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#about,
#principles,
#requests,
#interactive {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    url("assets/paper-texture.webp") repeat,
    var(--paper);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.34;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

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

.hero-strip {
  position: relative;
  height: clamp(118px, 15vw, 168px);
  overflow: hidden;
  background: var(--sage-dark);
}

.hero-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.94) saturate(1.26) contrast(1.06);
}

.hero-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(22, 31, 27, 0.12);
}

.hero-strip p {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  margin: 0;
  color: rgba(246, 242, 234, 0.94);
  font-size: clamp(1.18rem, 2.2vw, 1.58rem);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.section-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(1366px, 100%);
  margin: 0 auto;
  padding: 12px clamp(14px, 3vw, 34px);
  border-bottom: 1px solid var(--faint-line);
  background:
    linear-gradient(rgba(246, 242, 234, 0.9), rgba(246, 242, 234, 0.9)),
    url("assets/paper-texture.webp") repeat,
    var(--paper);
  backdrop-filter: blur(10px);
}

.section-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid rgba(45, 42, 36, 0.2);
  border-radius: 999px;
  color: var(--sage-dark);
  font-size: clamp(0.94rem, 1.2vw, 1.08rem);
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.section-nav a:hover,
.section-nav a:focus-visible {
  outline: none;
  border-color: rgba(68, 96, 91, 0.72);
  background: var(--sage);
  color: var(--cream-text);
}

.paper-page {
  width: min(1366px, 100%);
  margin: 0 auto;
  background:
    radial-gradient(circle at 12% 7%, rgba(77, 94, 62, 0.05), transparent 24%),
    radial-gradient(circle at 88% 35%, rgba(111, 75, 53, 0.04), transparent 28%),
    url("assets/paper-texture.webp") repeat,
    var(--paper);
}

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

.about-section {
  position: relative;
  padding: clamp(34px, 5vw, 64px) clamp(24px, 9vw, 176px) clamp(40px, 5vw, 68px);
}

.about-title {
  display: flex;
  align-items: flex-start;
  gap: clamp(10px, 2vw, 22px);
  margin-bottom: clamp(30px, 4vw, 54px);
}

.soft-line {
  width: clamp(62px, 9vw, 110px);
  height: auto;
  color: rgba(45, 42, 36, 0.62);
}

.soft-line path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.15rem, 4.2vw, 3.55rem);
  line-height: 0.95;
}

h2 {
  font-size: clamp(1.34rem, 2vw, 2rem);
  line-height: 1.08;
}

h3 {
  font-size: clamp(1.08rem, 1.7vw, 1.45rem);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.86fr) minmax(380px, 1fr);
  gap: clamp(44px, 10vw, 160px);
  align-items: center;
}

.portrait-cluster {
  position: relative;
  min-height: clamp(290px, 30vw, 420px);
}

.main-portrait {
  position: absolute;
  margin: 0;
}

.main-portrait {
  left: 0;
  top: 22px;
  width: clamp(230px, 27vw, 356px);
  aspect-ratio: 1;
  border-radius: 36px;
}

.main-portrait::before,
.main-portrait::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 4px solid rgba(68, 96, 91, 0.88);
  border-radius: 47% 53% 51% 49% / 52% 46% 54% 48%;
  pointer-events: none;
  transform: rotate(-9deg);
}

.main-portrait::after {
  inset: -21px;
  border-width: 2px;
  opacity: 0.72;
  transform: rotate(12deg);
}

.main-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 33px;
  filter: saturate(1.08) contrast(1.02);
}

.intro-card {
  max-width: 560px;
  justify-self: end;
  padding: clamp(24px, 4vw, 48px) clamp(26px, 5vw, 58px);
  border: 2px solid rgba(45, 42, 36, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(45, 42, 36, 0.18),
    0 0 0 1px rgba(246, 242, 234, 0.68);
  background: rgba(250, 248, 243, 0.28);
  text-align: center;
}

.intro-card p {
  margin: 0;
  font-size: clamp(1.18rem, 2vw, 1.72rem);
  font-weight: 500;
  line-height: 1.36;
}

.intro-card p + p {
  margin-top: 22px;
}

.quote-band {
  display: grid;
  place-items: center;
  min-height: 66px;
  padding: 14px clamp(22px, 8vw, 120px);
  background:
    linear-gradient(rgba(34, 49, 42, 0.74), rgba(34, 49, 42, 0.74)),
    url("assets/canva-leaves-soft.webp") center / cover;
  color: rgba(252, 246, 234, 0.94);
  text-align: center;
}

.quote-band p {
  margin: 0;
  font-size: clamp(1.02rem, 1.6vw, 1.42rem);
  font-style: italic;
}

.requests-section {
  padding: clamp(58px, 7vw, 104px) clamp(22px, 7vw, 120px) clamp(42px, 6vw, 84px);
}

.requests-heading {
  width: min(760px, 100%);
  margin: 0 auto 30px;
  text-align: center;
}

.requests-heading h2 {
  font-size: clamp(2.1rem, 4vw, 4.1rem);
}

.requests-heading p {
  margin: 12px auto 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.45vw, 1.2rem);
}

.requests-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(164px, 212px);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.request-map {
  position: relative;
  width: min(820px, 100%);
  height: clamp(500px, 55vw, 620px);
  margin: 0 auto;
}

.request-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(68, 96, 91, 0.78);
}

.request-lines path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.2;
}

.request-node {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(106px, 12vw, 148px);
  height: clamp(106px, 12vw, 148px);
  padding: 0;
  overflow: hidden;
  border: 3px solid rgba(246, 242, 234, 0.9);
  border-radius: 50%;
  background: #26342e;
  box-shadow:
    0 0 0 2px rgba(112, 92, 54, 0.64),
    0 0 0 5px rgba(246, 242, 234, 0.84);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.request-node::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 25, 20, 0.25);
}

.request-node img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82) saturate(0.98);
}

.request-node span {
  position: relative;
  z-index: 1;
  max-width: 84%;
  color: var(--cream-text);
  font-size: clamp(0.8rem, 1.3vw, 1.08rem);
  font-weight: 500;
  line-height: 1.08;
  text-align: center;
}

.request-node:hover,
.request-node:focus-visible,
.request-node.is-active {
  outline: none;
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 0 0 2px rgba(68, 96, 91, 0.94),
    0 0 0 7px rgba(246, 242, 234, 0.98),
    0 18px 44px rgba(45, 42, 36, 0.16);
}

.request-center {
  left: 50%;
  top: 50%;
  width: clamp(146px, 17vw, 206px);
  height: clamp(146px, 17vw, 206px);
  transform: translate(-50%, -50%);
}

.request-center:hover,
.request-center:focus-visible,
.request-center.is-active {
  transform: translate(-50%, calc(-50% - 3px)) scale(1.03);
}

.node-problems {
  left: 19%;
  top: 4%;
}

.node-procrastination {
  right: 18%;
  top: 5%;
}

.node-confidence {
  left: 3%;
  top: 39%;
}

.node-burnout {
  right: 3%;
  top: 39%;
}

.node-social {
  left: 13%;
  bottom: 3%;
}

.node-other {
  right: 15%;
  bottom: 2%;
}

.student-note {
  justify-self: center;
  max-width: 220px;
  padding: 44px 24px;
  background:
    linear-gradient(rgba(239, 232, 218, 0.8), rgba(239, 232, 218, 0.8)),
    url("assets/paper-texture.webp");
}

.student-note p {
  margin: 0;
  padding: 26px 16px;
  border: 1.6px solid rgba(45, 42, 36, 0.58);
  font-size: clamp(0.92rem, 1.2vw, 1.05rem);
  line-height: 1.55;
  text-align: center;
}

.request-answer {
  width: min(780px, 100%);
  margin: 26px auto 0;
  padding: 20px 28px;
  border-top: 1px solid var(--faint-line);
  border-bottom: 1px solid var(--faint-line);
  text-align: center;
}

.request-answer h3 {
  color: var(--sage);
  font-size: clamp(1.26rem, 2vw, 1.7rem);
}

.request-answer p {
  margin: 8px auto 0;
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.24rem);
}

.info-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.45fr) minmax(420px, 0.72fr);
  gap: clamp(20px, 3.5vw, 46px);
  align-items: stretch;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(54px, 7vw, 96px) clamp(18px, 4.8vw, 40px);
}

#info-panel-kicker,
.breathing-section > p {
  margin: 0 0 14px;
  color: rgba(45, 42, 36, 0.55);
  font-size: clamp(0.95rem, 1.22vw, 1.16rem);
  font-style: italic;
}

.info-tabs {
  display: grid;
  align-self: start;
  align-content: start;
  grid-auto-rows: 76px;
  gap: 14px;
}

.info-tab {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  height: 76px;
  min-height: 0;
  padding: 14px 18px;
  border: 1px solid rgba(45, 42, 36, 0.24);
  border-radius: 28px;
  background: rgba(250, 248, 243, 0.34);
  color: var(--muted);
  text-align: left;
}

.info-tab span {
  color: rgba(45, 42, 36, 0.42);
  font-size: 0.86rem;
}

.info-tab:hover,
.info-tab:focus-visible,
.info-tab.is-active {
  outline: none;
  border-color: rgba(68, 96, 91, 0.64);
  background: var(--sage);
  color: var(--cream-text);
}

.info-tab:hover span,
.info-tab:focus-visible span,
.info-tab.is-active span {
  color: rgba(248, 236, 220, 0.64);
}

.info-panel {
  min-height: 430px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(45, 42, 36, 0.32);
  background:
    linear-gradient(rgba(249, 247, 241, 0.56), rgba(249, 247, 241, 0.56)),
    url("assets/paper-texture.webp") repeat;
  box-shadow: inset 0 0 0 8px rgba(246, 242, 234, 0.34);
}

.info-panel h3 {
  color: var(--sage-dark);
  font-size: clamp(1.8rem, 3.1vw, 3.2rem);
  line-height: 1;
}

.info-panel #info-panel-text {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.52vw, 1.34rem);
  font-style: normal;
}

.info-panel ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.info-panel ul:empty {
  display: none;
}

.info-panel li {
  max-width: 100%;
  padding: 6px 10px 7px;
  color: var(--ink);
  background: linear-gradient(180deg, transparent 8%, rgba(128, 168, 157, 0.46) 8% 92%, transparent 92%);
  font-size: clamp(0.92rem, 1.18vw, 1.05rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.telegram-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 30px;
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--cream-text);
  text-decoration: none;
  box-shadow: 0 16px 38px rgba(45, 42, 36, 0.14);
}

.telegram-cta:hover,
.telegram-cta:focus-visible {
  outline: none;
  background: var(--sage-dark);
}

.interactive-section {
  min-height: 760px;
  padding: clamp(70px, 10vw, 128px) clamp(18px, 5vw, 82px) clamp(86px, 12vw, 160px);
  text-align: center;
}

.interactive-section h2 {
  max-width: 820px;
  margin: 0 auto 12px;
  font-size: clamp(1.7rem, 3vw, 3.25rem);
  line-height: 1.04;
}

.mood-subtitle {
  margin: 0 auto 34px;
  color: rgba(45, 42, 36, 0.56);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  font-style: italic;
}

.mood-choices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.mood-choice {
  min-height: 38px;
  padding: 5px 12px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(128, 168, 157, 0.42) 20% 82%, transparent 82%);
  color: var(--sage-dark);
  text-align: center;
}

.mood-choice:hover,
.mood-choice:focus-visible,
.mood-choice.is-active {
  outline: none;
  color: var(--cream-text);
  background: linear-gradient(180deg, transparent 10%, rgba(68, 96, 91, 0.92) 10% 88%, transparent 88%);
}

.mood-answer {
  display: grid;
  grid-template-columns: minmax(220px, 0.48fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid rgba(45, 42, 36, 0.22);
  background: rgba(250, 248, 243, 0.28);
  text-align: left;
}

.mood-answer figure {
  margin: 0;
}

.mood-answer img {
  width: 100%;
  height: clamp(180px, 24vw, 290px);
  object-fit: cover;
  object-position: center center;
}

.mood-answer h3 {
  color: var(--sage);
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 1;
}

.mood-answer p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
}

.breathing-section {
  margin-top: clamp(78px, 10vw, 140px);
  text-align: center;
}

.breathing-section h3 {
  margin-bottom: 34px;
  color: rgba(45, 42, 36, 0.7);
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
}

.breathing-widget {
  display: grid;
  justify-items: center;
  gap: 28px;
}

.breathing-orb {
  display: grid;
  place-items: center;
  width: clamp(168px, 18vw, 220px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 38%, rgba(139, 163, 93, 0.74), rgba(43, 64, 38, 0.96) 62%, #213021);
  color: rgba(248, 236, 220, 0.78);
  box-shadow:
    0 30px 60px rgba(42, 45, 30, 0.22),
    inset 0 0 38px rgba(255, 255, 255, 0.08);
  animation: box-breathe 16s linear infinite;
}

.breathing-orb span {
  font-size: clamp(0.92rem, 1.18vw, 1.1rem);
}

.breathing-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breathing-steps li {
  padding: 7px 12px;
  border: 1px solid rgba(45, 42, 36, 0.18);
  border-radius: 999px;
  color: rgba(45, 42, 36, 0.44);
  font-size: 0.92rem;
}

.breathing-steps li.is-active {
  color: var(--cream-text);
  background: var(--sage);
}

@keyframes box-breathe {
  0%,
  100% {
    transform: scale(0.92);
  }
  25%,
  50% {
    transform: scale(1.08);
  }
  75% {
    transform: scale(0.92);
  }
}

.contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
  width: min(1366px, 100%);
  margin: 0 auto;
  padding: 32px 22px 44px;
  background:
    url("assets/paper-texture.webp") repeat,
    var(--paper);
  border-top: 1px solid var(--faint-line);
}

.contacts span {
  margin: 0;
  color: var(--muted);
}

.contacts a {
  color: var(--sage);
  text-decoration: none;
}

.contacts a:hover,
.contacts a:focus-visible {
  color: var(--brown);
  outline: none;
}

@media (max-width: 980px) {
  .about-section {
    padding-inline: clamp(22px, 6vw, 58px);
  }

  .about-layout,
  .requests-layout,
  .info-section {
    grid-template-columns: 1fr;
  }

  .intro-card {
    justify-self: center;
  }

  .portrait-cluster {
    width: min(520px, 100%);
    margin: 0 auto;
  }

  .student-note {
    max-width: 420px;
    padding: 24px;
  }

  .info-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-panel {
    min-height: auto;
  }

  .mood-answer {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }

  .hero-strip {
    height: 112px;
  }

  .about-section {
    padding-top: 32px;
  }

  .about-title {
    justify-content: center;
    margin-bottom: 18px;
  }

  .soft-line {
    width: 58px;
  }

  .about-layout {
    gap: 28px;
  }

  .portrait-cluster {
    min-height: 330px;
  }

  .main-portrait {
    left: 50%;
    width: min(245px, 72vw);
    transform: translateX(-58%);
  }

  .intro-card {
    padding: 24px 18px;
  }

  .intro-card p {
    font-size: 1.16rem;
  }

  .quote-band {
    min-height: 76px;
  }

  .requests-section {
    padding-inline: 12px;
  }

  .request-map {
    height: 700px;
  }

  .request-lines {
    opacity: 0.78;
  }

  .request-node {
    width: 106px;
    height: 106px;
  }

  .request-node span {
    font-size: 0.74rem;
  }

  .request-center {
    width: 138px;
    height: 138px;
  }

  .node-problems {
    left: 15%;
    top: 8%;
  }

  .node-procrastination {
    right: 14%;
    top: 8%;
  }

  .node-confidence {
    left: 0;
    top: 44%;
  }

  .node-burnout {
    right: 0;
    top: 44%;
  }

  .node-social {
    left: 8%;
    bottom: 3%;
  }

  .node-other {
    right: 6%;
    bottom: 3%;
  }

  .student-note {
    padding: 18px;
  }

  .info-section {
    padding-inline: 14px;
  }

  .info-tabs {
    grid-template-columns: 1fr;
  }

  .info-tab {
    height: 64px;
    min-height: 64px;
  }

  .info-panel {
    padding: 24px 18px;
  }

  .interactive-section {
    padding-top: 80px;
  }

}
