:root {
  color-scheme: light;
  --ink: #21171c;
  --muted: #75636b;
  --accent: #bd3d68;
  --accent-soft: #fff0f5;
  --line: rgba(70, 44, 55, .13);
  --paper: #fff;
  --bg: #fbf6f8;
  --shadow: 0 10px 28px rgba(52, 28, 38, .10);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255,240,245,.9), rgba(251,246,248,0) 210px),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
svg { display: block; width: 1em; height: 1em; fill: currentColor; }

.page {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 12px;
}

.panel {
  width: min(100%, 520px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #21171c;
  color: #fff;
  font-size: 19px;
  font-weight: 900;
}

.brand strong {
  display: block;
  font-size: 17px;
  line-height: 1.05;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.hero {
  display: block;
  padding: 16px 14px 12px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 440px;
  font-size: clamp(22px, 6vw, 31px);
  line-height: 1.08;
  letter-spacing: 0;
}

.lead {
  margin: 9px 0 0;
  max-width: 460px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
}

.fashion-card { display: none; }

.buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 14px 14px;
}

.button {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(52, 28, 38, .05);
}

.button:hover,
.button:focus-visible {
  border-color: rgba(189, 61, 104, .36);
  outline: none;
}

.icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 15px;
  font-weight: 900;
}

.button strong {
  display: block;
  font-size: 14px;
  line-height: 1.08;
}

.button small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.1;
}

.viber .icon { background: #f1edff; color: #6d45c8; }
.telegram .icon { background: #eaf6ff; color: #1888c8; }
.whatsapp .icon { background: #eaf8ef; color: #168a4d; }
.instagram .icon { background: #fff0f5; color: #bd3d68; }
.website .icon { background: #fff5df; color: #9a6420; }

.help-row {
  display: grid;
  gap: 6px;
  padding: 11px 14px 13px;
  border-top: 1px solid var(--line);
  background: #fffafb;
}

.help-row span {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.help-row span::before {
  content: "";
  position: absolute;
  left: 0;
  top: .48em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 360px) {
  .buttons { grid-template-columns: 1fr; }
  .badge { display: none; }
}

@media (min-width: 680px) {
  .page { place-items: center; padding: 22px; }
  .panel { width: min(100%, 680px); border-radius: 22px; }
  .hero { padding: 20px 18px 14px; }
  .buttons { grid-template-columns: repeat(3, 1fr); padding: 0 18px 18px; }
  .help-row { grid-template-columns: repeat(3, 1fr); padding-inline: 18px; }
}

@media (max-width: 520px) {
  .buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .phone {
    grid-column: 1 / -1;
  }

  .viber,
  .telegram,
  .whatsapp {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    min-height: 64px;
    padding: 9px 6px;
  }

  .viber .icon,
  .telegram .icon,
  .whatsapp .icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 17px;
  }

  .viber small,
  .telegram small,
  .whatsapp small {
    display: none;
  }

  .viber strong,
  .telegram strong,
  .whatsapp strong {
    font-size: 12px;
    line-height: 1.05;
  }
}

/* Mobile contacts layout: phone full width, messengers in one row */
@media (max-width: 680px) {
  .buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .phone,
  .instagram,
  .website {
    grid-column: 1 / -1;
    grid-template-columns: 34px 1fr;
    justify-items: start;
    text-align: left;
  }

  .viber,
  .telegram,
  .whatsapp {
    grid-column: auto;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    min-height: 62px;
    padding: 8px 5px;
  }

  .viber .icon,
  .telegram .icon,
  .whatsapp .icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 17px;
  }

  .viber small,
  .telegram small,
  .whatsapp small {
    display: none;
  }

  .viber strong,
  .telegram strong,
  .whatsapp strong {
    font-size: 12px;
    line-height: 1.05;
    white-space: nowrap;
  }
}

/* Final mobile override: Viber, Telegram and WhatsApp stay on one row */
@media (max-width: 680px) {
  .buttons {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
  }

  .phone,
  .instagram,
  .website {
    flex: 0 0 100%;
    width: 100%;
  }

  .viber,
  .telegram,
  .whatsapp {
    flex: 1 1 0;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    min-height: 62px;
    padding: 8px 4px;
  }

  .viber small,
  .telegram small,
  .whatsapp small {
    display: none;
  }

  .viber strong,
  .telegram strong,
  .whatsapp strong {
    font-size: 12px;
    line-height: 1.05;
    white-space: nowrap;
  }
}

/* Guaranteed messenger row */
.messenger-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  grid-column: 1 / -1;
}

.messenger-row .button {
  min-width: 0;
}

@media (max-width: 680px) {
  .buttons {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .messenger-row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .messenger-row .button {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center;
    text-align: center;
    min-height: 62px;
    padding: 8px 4px;
  }

  .messenger-row .icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 17px;
  }

  .messenger-row small {
    display: none !important;
  }

  .messenger-row strong {
    font-size: 12px;
    line-height: 1.05;
    white-space: nowrap;
  }
}

/* Messenger brand buttons */
.button.viber {
  border-color: rgba(115, 96, 242, .28);
  background: linear-gradient(135deg, #7b61ff, #6547d8);
  color: #fff;
}

.button.telegram {
  border-color: rgba(36, 161, 222, .28);
  background: linear-gradient(135deg, #2aa8e8, #168acd);
  color: #fff;
}

.button.whatsapp {
  border-color: rgba(37, 211, 102, .28);
  background: linear-gradient(135deg, #25d366, #128c4a);
  color: #fff;
}

.button.viber small,
.button.telegram small,
.button.whatsapp small {
  color: rgba(255, 255, 255, .82);
}

.button.viber .icon,
.button.telegram .icon,
.button.whatsapp .icon {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

.button.viber:hover,
.button.telegram:hover,
.button.whatsapp:hover,
.button.viber:focus-visible,
.button.telegram:focus-visible,
.button.whatsapp:focus-visible {
  border-color: rgba(255, 255, 255, .42);
  box-shadow: 0 12px 24px rgba(43, 24, 36, .16);
}

/* Brand colors for all contact buttons */
.button.phone {
  border-color: rgba(35, 116, 225, .24);
  background: linear-gradient(135deg, #2f80ed, #185abc);
  color: #fff;
}

.button.instagram {
  border-color: rgba(214, 41, 118, .24);
  background: linear-gradient(135deg, #feda75 0%, #fa7e1e 28%, #d62976 58%, #962fbf 100%);
  color: #fff;
}

.button.website {
  border-color: rgba(33, 23, 28, .2);
  background: linear-gradient(135deg, #21171c, #51424a);
  color: #fff;
}

.button.phone small,
.button.instagram small,
.button.website small {
  color: rgba(255, 255, 255, .82);
}

.button.phone .icon,
.button.instagram .icon,
.button.website .icon {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

.button.phone:hover,
.button.instagram:hover,
.button.website:hover,
.button.phone:focus-visible,
.button.instagram:focus-visible,
.button.website:focus-visible {
  border-color: rgba(255, 255, 255, .42);
  box-shadow: 0 12px 24px rgba(43, 24, 36, .16);
}

/* Header logo image */
.brand-logo {
  display: block;
  width: 92px;
  height: auto;
  object-fit: contain;
}

.brand {
  min-height: 42px;
}

@media (max-width: 420px) {
  .brand-logo {
    width: 82px;
  }
}

/* Equal size for all contact buttons */
.button.phone,
.button.instagram,
.button.website,
.button.viber,
.button.telegram,
.button.whatsapp {
  min-height: 54px;
  grid-template-columns: 38px 1fr;
  padding: 9px 11px;
}

.button.phone .icon,
.button.instagram .icon,
.button.website .icon,
.button.viber .icon,
.button.telegram .icon,
.button.whatsapp .icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 20px;
}

@media (max-width: 680px) {
  nav.buttons > .button,
  nav.buttons .messenger-row .button {
    min-height: 54px !important;
    grid-template-columns: 38px 1fr !important;
    padding: 9px 11px !important;
  }

  nav.buttons > .button .icon,
  nav.buttons .messenger-row .icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
    font-size: 20px !important;
  }
}

