:root {
  color-scheme: light;
  --bg: #f8c43a;
  --bg-deep: #eeb11d;
  --card: rgba(255, 246, 219, 0.92);
  --card-edge: rgba(255, 255, 255, 0.46);
  --text: #2f2213;
  --muted: rgba(47, 34, 19, 0.74);
  --shadow: rgba(99, 62, 0, 0.2);
  --dark: #24180a;
  --light: #fff9ea;
  --vk: #1976ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 246, 202, 0.9), transparent 34%),
    radial-gradient(circle at right 16%, rgba(255, 236, 175, 0.65), transparent 24%),
    radial-gradient(circle at bottom, rgba(230, 166, 13, 0.35), transparent 45%),
    linear-gradient(145deg, #ffd75d 0%, var(--bg) 45%, var(--bg-deep) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.5;
}

body::before {
  width: 220px;
  height: 220px;
  top: 9vh;
  right: -60px;
  background: radial-gradient(circle, rgba(255, 248, 220, 0.75), transparent 72%);
}

body::after {
  width: 280px;
  height: 280px;
  left: -120px;
  bottom: -60px;
  background: radial-gradient(circle, rgba(255, 228, 141, 0.65), transparent 72%);
}

a {
  color: inherit;
  text-decoration: none;
}

.screen {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 20px 16px;
}

.card {
  width: min(100%, 390px);
  padding: 18px;
  border-radius: 32px;
  background: var(--card);
  border: 1px solid var(--card-edge);
  box-shadow:
    0 18px 60px var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(18px);
  display: grid;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 140px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent);
  pointer-events: none;
}

.brand-block {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.logo-large {
  width: 108px;
  height: 108px;
}

.photo-wrap {
  position: relative;
}

.photo-wrap::after {
  content: "";
  position: absolute;
  inset: auto 18px -16px auto;
  width: 92px;
  height: 46px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(47, 34, 19, 0.24), transparent 70%);
  filter: blur(14px);
  z-index: 0;
}

.photo {
  width: 100%;
  height: 270px;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
  display: block;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.photo-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(36, 24, 10, 0.76);
  color: #fff6de;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
}

.links {
  display: grid;
  gap: 10px;
}

.button {
  display: grid;
  grid-template-columns: 42px 1fr 24px;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 14px;
  border-radius: 20px;
  border: 1px solid rgba(47, 36, 19, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 10px 24px rgba(72, 47, 5, 0.08);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 14px 26px rgba(72, 47, 5, 0.12);
}

.button:focus-visible {
  outline: 2px solid rgba(36, 24, 10, 0.24);
  outline-offset: 3px;
}

.button-dark {
  background: linear-gradient(180deg, #2c2012, var(--dark));
  color: #fff7e4;
}

.button-light {
  background: linear-gradient(180deg, #fffef8, #fff4cf);
  color: var(--text);
}

.button-vk {
  background: linear-gradient(180deg, #eef6ff, #dcecff);
  color: #14449a;
}

.button-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
}

.button-light .button-icon {
  background: rgba(247, 196, 58, 0.18);
  color: #8b5b00;
}

.button-vk .button-icon {
  background: rgba(25, 118, 255, 0.14);
  color: var(--vk);
}

.button-dark .button-icon {
  color: #f7c43a;
}

.button-icon svg,
.button-arrow svg,
.contact-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.button-copy {
  display: grid;
  gap: 1px;
  text-align: left;
}

.button-copy strong {
  font-size: 15px;
  line-height: 1.05;
}

.button-copy small {
  font-size: 12px;
  color: inherit;
  opacity: 0.72;
}

.button-arrow {
  display: grid;
  place-items: center;
  opacity: 0.7;
}

.contact {
  justify-self: stretch;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(47, 36, 19, 0.08);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.contact-icon {
  width: 18px;
  height: 18px;
}

@media (max-height: 740px) {
  .screen {
    place-items: start center;
  }

  .card {
    margin: 12px 0;
    padding: 16px;
    gap: 12px;
  }

  .photo {
    height: 220px;
  }

  .button {
    min-height: 56px;
  }

  .button-copy small {
    display: none;
  }

  .logo-large {
    width: 92px;
    height: 92px;
  }
}
