:root {
  --ink: #171321;
  --paper: #fff8dd;
  --yellow: #ffd84d;
  --pink: #ff6f91;
  --sky: #62d0ff;
  --mint: #8fe36d;
  --orange: #ff9b42;
  --panel: #fffdf4;
  --shadow: 0 8px 0 #171321;
  --outline: 4px solid #171321;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, #fff5b8 0, #fff5b8 18%, transparent 19%),
    radial-gradient(circle at 85% 15%, #ffd0de 0, #ffd0de 12%, transparent 13%),
    linear-gradient(180deg, #66d8ff 0%, #78e1ff 22%, #ffe48d 22%, #ffe48d 100%);
  overflow-x: hidden;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(23, 19, 33, 0.07) 0.7px, transparent 0.7px),
    radial-gradient(rgba(23, 19, 33, 0.06) 0.6px, transparent 0.6px);
  background-position: 0 0, 14px 14px;
  background-size: 18px 18px, 22px 22px;
  opacity: 0.55;
}

.hero,
.layout {
  position: relative;
  z-index: 1;
}

.hero {
  max-width: 1220px;
  margin: 0 auto;
  padding: 44px 24px 18px;
}

.hero-kicker,
.hero-badge,
.tool-issue,
.details-tag,
.speech-lead {
  margin: 0;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker {
  display: inline-block;
  padding: 10px 16px;
  border: var(--outline);
  border-radius: 999px;
  background: #fff;
  box-shadow: 4px 4px 0 #171321;
  transform: rotate(-4deg);
}

.hero-bubble {
  position: relative;
  margin-top: 18px;
  max-width: 820px;
  padding: 34px 32px 28px;
  border: 5px solid var(--ink);
  border-radius: 36px;
  background: var(--panel);
  box-shadow: 0 14px 0 #171321;
}

.hero-bubble::after {
  content: "";
  position: absolute;
  bottom: -28px;
  left: 84px;
  width: 54px;
  height: 54px;
  background: var(--panel);
  border-right: 5px solid var(--ink);
  border-bottom: 5px solid var(--ink);
  transform: rotate(36deg);
}

.hero-badge {
  display: inline-block;
  padding: 8px 12px;
  background: var(--pink);
  color: #fff;
  border-radius: 14px;
  transform: rotate(-3deg);
}

h1,
h2,
h3,
.hero-burst,
.details-flash {
  font-family: "Bangers", cursive;
  letter-spacing: 0.04em;
}

h1 {
  margin: 14px 0 10px;
  font-size: clamp(3rem, 7vw, 5.7rem);
  line-height: 0.95;
}

.hero-text {
  max-width: 60ch;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.6;
}

.hero-burst {
  position: absolute;
  display: grid;
  place-items: center;
  width: 130px;
  aspect-ratio: 1;
  font-size: 2rem;
  color: var(--ink);
  text-align: center;
  background: var(--yellow);
  clip-path: polygon(50% 0%, 62% 22%, 86% 5%, 77% 30%, 100% 27%, 82% 47%, 100% 58%, 76% 63%, 88% 89%, 62% 76%, 50% 100%, 38% 77%, 15% 91%, 23% 65%, 0% 57%, 18% 47%, 0% 27%, 24% 31%, 12% 6%, 38% 22%);
  border: 4px solid var(--ink);
  box-shadow: 7px 7px 0 #171321;
}

.hero-burst-left {
  top: 32px;
  right: 170px;
  transform: rotate(10deg);
}

.hero-burst-right {
  top: 156px;
  right: 24px;
  background: var(--pink);
  color: #fff;
  transform: rotate(-8deg);
}

.layout {
  max-width: 1220px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 24px;
  align-items: start;
}

.bookmarklet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tool-card,
.speech-card,
.details-card {
  position: relative;
  border: var(--outline);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.tool-card {
  padding: 18px 18px 20px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px dashed rgba(23, 19, 33, 0.28);
  border-radius: 18px;
  pointer-events: none;
}

.tool-card:hover,
.tool-card.is-active {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 16px 0 #171321;
}

.tool-card[data-tool="what-img"] {
  background: linear-gradient(180deg, #fffdf4 0%, #ffe0d6 100%);
}

.tool-card[data-tool="word-counter"] {
  background: linear-gradient(180deg, #fffdf4 0%, #fff3a6 100%);
}

.tool-card[data-tool="color-picker"] {
  background: linear-gradient(180deg, #fffdf4 0%, #d9f5ff 100%);
}

.tool-card[data-tool="web-archive"] {
  background: linear-gradient(180deg, #f9fff4 0%, #d9ffdc 100%);
}

.tool-card[data-tool="what-size"] {
  background: linear-gradient(180deg, #fffcf4 0%, #fdffd9 100%);
}

.tool-card[data-tool="what-seo"] {
  background: linear-gradient(180deg, #fedeec 0%, #ffd9e6 100%);
}

.tool-card[data-tool="what-font"] {
  background: linear-gradient(180deg, #e0fede 0%, #ffd9e6 100%);
}

.tool-card[data-tool="link-check"] {
  background: linear-gradient(180deg, #defef4 0%, #d9f8ff 100%);
}

.tool-card[data-tool="what-size"] {
  background: linear-gradient(180deg, #fffcf4 0%, #fdffd9 100%);
}

.tool-card[data-tool="web-index"] {
  background: linear-gradient(180deg, #f9fff4 0%, #d9ffdc 100%);
}

.tool-card[data-tool="schema-check"] {
  background: linear-gradient(180deg, #fffdf4 0%, #ffe0d6 100%);
}

.tool-card[data-tool="html-check"] {
  background: linear-gradient(180deg, #fedeec 0%, #ffd9e6 100%);
}

.tool-card[data-tool="h1-check"] {
  background: linear-gradient(180deg, #fffcf4 0%, #fdffd9 100%);
}

.tool-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.tool-issue {
  font-size: 0.75rem;
}

.tool-sound {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-weight: 900;
  transform: rotate(5deg);
}

h2 {
  margin: 12px 0 10px;
  font-size: 2.2rem;
  line-height: 1;
}

.tool-summary {
  min-height: 88px;
  margin: 0 0 18px;
  font-size: 0.98rem;
  line-height: 1.5;
}

.bookmarklet-btn,
.tool-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 18px;
  border: var(--outline);
  border-radius: 18px;
  box-shadow: 0 6px 0 #171321;
  font-weight: 900;
  text-decoration: none;
  color: var(--ink);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.bookmarklet-btn {
  width: 100%;
  font-size: 1rem;
  overflow: visible;
}

.tool-link {
  width: 100%;
  margin-top: 12px;
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.bookmarklet-btn:hover,
.tool-link:hover,
.bookmarklet-btn:focus-visible,
.tool-link:focus-visible {
  transform: translateY(-2px);
}

.bookmarklet-btn:active,
.tool-link:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #171321;
}

.bookmarklet-btn::before,
.bookmarklet-btn::after {
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

.bookmarklet-btn::before {
  content: "Тягні до закладок";
  top: -78px;
  transform: translate(-50%, 12px) rotate(-3deg);
  padding: 10px 14px;
  border: 4px solid var(--ink);
  border-radius: 18px;
  background: #fff;
  box-shadow: 4px 4px 0 #171321;
  white-space: nowrap;
  font-size: 0.86rem;
  text-transform: uppercase;
}

.bookmarklet-btn::after {
  content: "";
  top: -30px;
  width: 28px;
  height: 44px;
  transform: translate(-50%, 10px);
  background: center / contain no-repeat url("img/arrow.png");
  filter: drop-shadow(2px 2px 0 #171321);
}

.bookmarklet-btn:hover::before,
.bookmarklet-btn:hover::after,
.bookmarklet-btn:focus-visible::before,
.bookmarklet-btn:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.btn-hot {
  background: linear-gradient(180deg, #ff8e76 0%, #ff5e59 100%);
}

.btn-sun {
  background: linear-gradient(180deg, #fff27d 0%, #ffc93c 100%);
}

.btn-sky {
  background: linear-gradient(180deg, #8fe7ff 0%, #52befa 100%);
}

.btn-mint {
  background: linear-gradient(180deg, #a4ff8f 0%, #aefa52 100%);
}

.btn-orange {
  background: linear-gradient(180deg, #ff978f 0%, #faae52 100%);
}

.btn-yellow {
  background: linear-gradient(180deg, #ff978f 0%, #ef52fa 100%);
}

.btn-lime {
  background: linear-gradient(180deg, #fff98f 0%, #63fa52 100%);
}

.info-panel {
  display: grid;
  gap: 20px;
}

.speech-card {
  padding: 22px 24px;
  background: #fff;
}

.speech-lead {
  margin-bottom: 14px;
  color: var(--pink);
}

.howto-list {
  margin: 0;
  padding-left: 24px;
  line-height: 1.7;
  font-weight: 700;
}

.details-shell {
  position: relative;
  min-height: 420px;
}

.details-flash {
  position: absolute;
  top: -18px;
  right: 20px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 104px;
  aspect-ratio: 1;
  font-size: 1.8rem;
  color: #fff;
  background: var(--pink);
  clip-path: polygon(50% 0%, 63% 22%, 91% 7%, 78% 35%, 100% 50%, 76% 62%, 88% 92%, 58% 77%, 50% 100%, 38% 79%, 8% 94%, 20% 62%, 0% 50%, 22% 35%, 8% 6%, 37% 22%);
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 #171321;
  transform: rotate(10deg);
}

.details-card {
  display: none;
  padding: 28px 24px 24px;
  min-height: 100%;
  background: linear-gradient(180deg, #fffef7 0%, #fff0b3 100%);
}

.details-card.is-active {
  display: block;
  animation: panel-pop 220ms ease;
}

.details-tag {
  color: #ff5e59;
}

h3 {
  margin: 10px 0 10px;
  font-size: 2.2rem;
  line-height: 1;
}

.details-card p {
  margin: 0 0 14px;
  line-height: 1.65;
}

.feature-list {
  margin: 0;
  padding-left: 22px;
  line-height: 1.75;
  font-weight: 700;
}

.chip {
  display: inline-block;
  padding: 3px 10px;
  border: 3px solid var(--ink);
  box-shadow: 2px 2px 0 #171321;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.1;
  transform: rotate(-2deg);
}

.chip-red {
  background: #ff5e59;
}

.chip-green {
  background: #44b84d;
}

.chip-blue {
  background: #2d87ff;
}

@keyframes panel-pop {
  from {
    opacity: 0;
    transform: scale(0.97) rotate(-1deg);
  }

  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@media (max-width: 1080px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .hero-burst-left {
    right: 148px;
  }

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

@media (max-width: 760px) {
  .hero {
    padding: 28px 16px 8px;
  }

  .hero-bubble {
    padding: 26px 20px 22px;
  }

  .hero-bubble::after {
    left: 40px;
  }

  .hero-burst {
    display: none;
  }

  .layout {
    padding: 16px;
  }

  .bookmarklet-grid {
    grid-template-columns: 1fr;
  }

  .details-flash {
    width: 88px;
    top: -12px;
    right: 14px;
    font-size: 1.45rem;
  }

  .bookmarklet-btn::before {
    top: -72px;
    font-size: 0.76rem;
    white-space: normal;
    width: min(220px, 80vw);
    text-align: center;
  }
}

/*branding*/
.footer-brending {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px;
}

.footer-brending .card__photo {
  width: 48px;
  height: auto;
  object-fit: cover;
}

.footer-brending .site-footer__copy {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.footer-brending .site-footer__link {
  text-decoration: none;
}

.footer-brending .site-footer__link:hover {
  text-decoration: underline;
}

section.info-panel {
  position: sticky;
  top: 10px;
  z-index: 10;
}

.bookmarklet-btn:hover::before,
.bookmarklet-btn:hover::after,
.bookmarklet-btn:focus-visible::before,
.bookmarklet-btn:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* при перетаскивании */
.bookmarklet-btn:active::before,
.bookmarklet-btn:active::after {
  opacity: 0;
  transform: translate(-50%, 12px) rotate(-3deg);
  pointer-events: none;
}

/*вот здесь*/
.lang-switch {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.lang-switch button {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    background: #86ccf4;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.3s ease, transform 0.2s ease;
}

.lang-switch button:hover {
    background: #fdff6f;
    transform: translateY(-2px);
}


body.loaded .lang-switch {
    opacity: 1;
    transform: translateY(0);
}

