:root {
  --paper: #f8f6eb;
  --ink: #173b2b;
  --muted: #495a4c;
  --line: #c8cbbb;
  --lime: #d9ed91;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body, h1, p { margin: 0; }
body { -webkit-font-smoothing: antialiased; }
::selection { color: var(--ink); background: var(--lime); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #697b2c; outline-offset: 6px; }
.page { max-width: 1480px; width: 88%; min-height: 100vh; min-height: 100svh; margin: 0 auto; display: flex; flex-direction: column; }
header, footer, .location, .contacts, .email-button, .phone-link { display: flex; align-items: center; }
header, footer { justify-content: space-between; }
header { min-height: 86px; gap: 20px; border-bottom: 1px solid var(--line); }
.logo { display: block; width: 119px; height: auto; mix-blend-mode: multiply; }
.location { gap: 7px; font: 13px/1.5 Consolas, "Courier New", monospace; }
.location svg, .phone-link svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.65; stroke-linejoin: round; }
main { display: grid; grid-template-columns: 1.13fr 1fr; align-items: center; flex: 1; padding: clamp(16px, calc((100svh - 640px) / 4), 85px) 0; }
.message { position: relative; z-index: 1; }
h1 { font-size: clamp(53px, 5.5vw, 92px); letter-spacing: -.067em; font-weight: 600; line-height: 1.06; }
h1 em { position: relative; display: inline-block; z-index: 0; font-family: Georgia, serif; font-weight: 500; letter-spacing: -.07em; white-space: nowrap; }
h1 em::after { content: ""; position: absolute; z-index: -1; left: -1%; right: -2%; height: .15em; bottom: .035em; transform: rotate(-1.8deg); background: var(--lime); border-radius: 70% 31% 77% 15%; }
.intro { max-width: 36ch; margin-top: 26px; color: var(--muted); font-size: clamp(17px, 1.38vw, 22px); line-height: 1.52; }
.credit { display: inline-block; font: .8em/1.3 Consolas, "Courier New", monospace; background: #e9ecde; border: 1px solid #bdc7b4; padding: .04em .34em .1em; border-radius: 4px; color: #264d36; white-space: nowrap; }
.invite { margin: 16px 0 23px; font-size: clamp(19px, 1.55vw, 24px); line-height: 1.4; font-weight: 590; letter-spacing: -.028em; }
.invite a { white-space: nowrap; text-decoration: underline; text-underline-offset: .16em; }
.contacts { gap: 12px 16px; flex-wrap: wrap; }
.email-button { gap: 19px; min-height: 49px; padding: 0 18px; background: var(--ink); color: #fffdf2; border: 1.5px solid var(--ink); border-radius: 9px; box-shadow: 3px 3px 0 #abb994; font-weight: 650; font-size: 15px; transition: transform .16s, box-shadow .16s; }
.email-button:hover { transform: translate(-1px, -2px); box-shadow: 4px 5px 0 #abb994; }
.email-button svg { flex: none; fill: none; stroke: var(--lime); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.phone-link { gap: 8px; min-height: 49px; padding: 0 16px; border: 1px solid #68806b; border-radius: 9px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.phone-link:hover { background: #e9ecde; border-color: var(--ink); }
.email-address:hover { text-decoration: underline; text-underline-offset: 4px; }
.illustration { width: 110%; margin-left: -1%; max-width: 625px; justify-self: center; }
.mascot { position: relative; display: block; border: 0; background: transparent; padding: 0; width: 100%; color: var(--ink); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; border-radius: 30%; }
.computer { width: 100%; height: auto; display: block; }
.balloon { position: absolute; z-index: 1; bottom: 76%; left: 54%; display: block; padding: .32em .66em .39em; white-space: nowrap; transform: rotate(6deg); border: 2.5px solid #193322; border-radius: 50% 48% 46% 42% / 52% 55% 41% 42%; background: var(--lime); box-shadow: 3px 4px 0 #193322; font-family: Georgia, serif; font-size: clamp(24px, 2.8vw, 43px); line-height: 1.13; font-style: italic; font-weight: 700; letter-spacing: -.055em; }
.balloon::after { content: ""; position: absolute; width: .46em; height: .57em; left: 17%; bottom: -.38em; background: var(--lime); border-left: 2.5px solid #193322; border-bottom: 2.5px solid #193322; transform: skew(-29deg, -32deg) rotate(-15deg); }
.balloon.changed { font-size: clamp(21px, 2.2vw, 36px); left: 50%; }
.gaze { transform: translate(var(--look-x, 0px), var(--look-y, 0px)); transition: transform .16s ease-out; }
.eyelids { transform-origin: 86px 45px; animation: blink 6s infinite; }
@keyframes blink { 0%, 45%, 49%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.09); } }
.mascot.nod .case { animation: nod .4s ease-out; transform-origin: 216px 315px; }
@keyframes nod { 0%, 100% { transform: rotate(0); } 42% { transform: rotate(-2deg) translateY(-3px); } }
footer { gap: 10px 20px; min-height: 64px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.email-address { overflow-wrap: anywhere; }
.services { position: relative; }
.services summary { cursor: pointer; display: flex; gap: 9px; align-items: center; list-style: none; padding: 12px 0; color: var(--ink); font-weight: 600; }
.services summary::-webkit-details-marker { display: none; }
.services summary span { width: 19px; height: 19px; border: 1px solid #a5b29d; border-radius: 50%; display: grid; place-content: center; font: 16px/1 Arial, sans-serif; }
.services[open] summary span { transform: rotate(45deg); }
.answer { position: absolute; z-index: 3; bottom: calc(100% + 4px); right: 0; width: min(300px, 85vw); padding: 18px; color: var(--ink); border: 1px solid var(--ink); box-shadow: 3px 3px var(--ink); border-radius: 7px; background: #f1f2e2; font-size: 14px; line-height: 1.5; }
@media (max-width: 760px) {
  .page { width: min(90%, 580px); }
  header { min-height: 63px; }
  .logo { width: 97px; }
  .location { font-size: 11px; }
  main { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 3px; padding: 34px 0 10px; }
  h1 { font-size: clamp(43px, 8.4vw, 64px); }
  .intro { margin-top: 17px; font-size: 16px; max-width: 38ch; }
  .invite { font-size: 18px; margin: 12px 0 16px; }
  .contacts { gap: 10px; }
  .email-button { min-height: 44px; font-size: 14px; padding-inline: 14px; gap: 10px; }
  .phone-link { min-height: 44px; padding-inline: 12px; font-size: 14px; gap: 6px; }
  .illustration { width: min(96%, 310px); margin: 0; }
  .balloon { font-size: 22px; }
  .balloon.changed { font-size: 19px; }
  footer { font-size: 12px; min-height: 52px; }
}
@media (max-width: 420px) {
  footer { flex-wrap: wrap; justify-content: center; padding: 9px 0; gap: 0 15px; }
  .services summary { padding: 7px 0; }
  .answer { position: static; width: 100%; box-shadow: none; margin: 3px 0 8px; }
  .services[open] { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .gaze { transform: none; }
}
