:root {
  --page-width: 680px;
  --ink: #141417;
  --muted: #616369;
  --line: #d1d4d6;
  --red: #e00308;
  --green: #34c759;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #e9eaec;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.taplink {
  position: relative;
  isolation: isolate;
  width: min(100%, var(--page-width));
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(205px, 46vw, 245px) clamp(30px, 9.4vw, 64px) clamp(36px, 7vw, 72px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.97) 0%, rgba(250,250,251,.94) 42%, rgba(238,239,241,.91) 100%);
  box-shadow: 0 0 44px rgba(0, 0, 0, .12);
}

.taplink::before {
  position: absolute;
  z-index: -3;
  inset: 0;
  content: "";
  background:
    linear-gradient(145deg, transparent 0 58%, rgba(210,212,215,.28) 58.4%, transparent 59.3%),
    linear-gradient(145deg, transparent 0 64%, rgba(225,226,228,.48) 64.4%, transparent 65.3%),
    linear-gradient(145deg, transparent 0 70%, rgba(215,217,220,.28) 70.4%, transparent 71.3%);
  opacity: .62;
}

.taplink::after {
  position: absolute;
  z-index: -2;
  right: -24%;
  bottom: -6%;
  width: 108%;
  height: 45%;
  content: "";
  background: linear-gradient(140deg, transparent, rgba(218,220,223,.62));
  filter: blur(24px);
  transform: rotate(-5deg);
}

.decor {
  position: absolute;
  z-index: 3;
  width: 2px;
  height: 142px;
  background: #ff1c24;
  transform: rotate(43deg);
  pointer-events: none;
}

.decor-top {
  top: -38px;
  right: 86px;
}

.decor-bottom {
  right: 31px;
  bottom: -44px;
}

.dot-pattern {
  position: absolute;
  z-index: -1;
  top: 36.5%;
  right: -12px;
  width: 112px;
  height: 185px;
  background-image: radial-gradient(circle, rgba(187,189,191,.65) 0 3px, transparent 4px);
  background-size: 20px 20px;
  opacity: .64;
  transform: rotate(-4deg);
}

.brand {
  position: fixed;
  z-index: 0;
  top: 0;
  left: 50%;
  width: min(100%, var(--page-width));
  padding: calc(18px + env(safe-area-inset-top)) 24px 13px;
  text-align: center;
  transform: translateX(-50%);
}

.brand-home {
  display: block;
}

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

.brand-logo {
  display: block;
  width: clamp(300px, 72vw, 440px);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  mix-blend-mode: normal;
}

.actions {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(10px, 2.45vw, 17px);
  margin-top: 0;
}

.action-card,
.call-button {
  min-height: clamp(74px, 13.5vw, 92px);
  border-radius: clamp(18px, 2.75vw, 28px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
  text-decoration: none;
}

.action-card {
  display: grid;
  grid-template-columns: clamp(58px, 12.8vw, 88px) 1fr clamp(34px, 8.2vw, 56px);
  align-items: center;
  width: 100%;
  padding: 0 clamp(17px, 4.1vw, 28px);
  color: #0a0a0d;
  border: 0;
  background: rgba(255,255,255,.97);
  cursor: pointer;
  font: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
}

.action-card:active,
.call-button:active {
  transform: scale(.985);
}

.action-label {
  justify-self: center;
  font-size: clamp(20px, 3.35vw, 23px);
  line-height: 1.2;
  text-align: center;
}

.arrow {
  display: grid;
  width: clamp(34px, 8.2vw, 56px);
  height: 100%;
  place-items: center end;
  justify-self: end;
}

.arrow::before {
  width: clamp(11px, 2.35vw, 16px);
  height: clamp(11px, 2.35vw, 16px);
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.catalog-toggle[aria-expanded="true"] .arrow::before {
  transform: rotate(135deg);
}

.service-icon {
  display: grid;
  place-items: center;
  width: clamp(52px, 8.5vw, 58px);
  height: clamp(52px, 8.5vw, 58px);
  overflow: hidden;
  flex: none;
}

.service-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* У SVG ВКонтакте есть внутренние прозрачные поля. Масштаб компенсирует их,
   чтобы видимый диаметр совпадал с MAX и Telegram. */
.service-icon--vk img {
  transform: scale(1.17);
}

.service-icon--map img {
  transform: scale(.96);
}

.service-icon--catalog img {
  transform: scale(.96);
}

.catalog-panel {
  scroll-margin-top: clamp(190px, 46vw, 230px);
  padding: clamp(12px, 2.8vw, 19px);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: clamp(20px, 3.2vw, 26px);
  background: rgba(255,255,255,.78);
  box-shadow: 0 12px 28px rgba(0,0,0,.09);
  backdrop-filter: blur(10px);
}

.catalog-panel[hidden] {
  display: none;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(9px, 2vw, 13px);
}

.category-card {
  display: grid;
  min-height: clamp(112px, 20vw, 136px);
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 12px 8px;
  border: 1px solid rgba(20,20,23,.055);
  border-radius: clamp(15px, 2.5vw, 20px);
  background: linear-gradient(145deg, #fff 0%, #f3f3f5 100%);
  color: inherit;
  text-decoration: none;
  text-align: center;
}

a.category-card {
  transition: transform .18s ease, box-shadow .18s ease;
}

a.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

.category-card img {
  display: block;
  width: clamp(47px, 8.5vw, 58px);
  height: clamp(47px, 8.5vw, 58px);
  object-fit: contain;
}

.category-card h2 {
  max-width: 150px;
  margin: 0;
  color: #17171a;
  font-size: clamp(12px, 2.15vw, 15px);
  font-weight: 750;
  line-height: 1.15;
}

.call-button {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  font-size: clamp(30px, 4.7vw, 32px);
  font-weight: 900;
  line-height: 1;
  transition: filter .18s ease, transform .18s ease;
}

.call-button:hover {
  filter: brightness(.95);
}

.contacts {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: clamp(80px, 11.5vw, 94px) auto 0;
}

.contact-details {
  display: flex;
  min-height: clamp(54px, 9vw, 62px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  color: #57595e;
  border-top: 1px solid var(--line);
  font-size: clamp(9px, 1.48vw, 10px);
  line-height: 1.35;
  text-align: center;
  font-style: normal;
}

.contact-details span,
.contact-details a {
  white-space: nowrap;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(224, 3, 8, .55);
  outline-offset: 4px;
}

@media (max-width: 430px) {
  .taplink {
    padding-right: 24px;
    padding-left: 24px;
  }

  .action-card {
    grid-template-columns: 52px 1fr 28px;
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (min-width: 681px) {
  .taplink {
    min-height: 1024px;
    border-radius: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
