:root {
  color-scheme: light;
  font-family: system-ui, "Segoe UI", "Noto Sans Armenian", sans-serif;
  color: #1a3029;
  background: #f4f3ec;
  --rule: #c6cbc1;
  --action-bg: color-mix(in srgb, var(--card-panel, #f4f3ec) 78%, white 22%);
  --action-border: color-mix(in srgb, currentColor 18%, transparent);
  --action-hover: color-mix(in srgb, var(--card-panel, #f4f3ec) 66%, white 34%);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: clamp(38px, 9vh, 94px) max(24px, env(safe-area-inset-right)) clamp(38px, 9vh, 94px) max(24px, env(safe-area-inset-left));
}
main {
  position: relative;
  inline-size: min(100%, 430px);
  border-block-start: 3px solid currentColor;
  padding-block-start: 24px;
  background: var(--card-panel, #f4f3ec);
}
.card-background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.has-background main {
  padding: clamp(20px, 6vw, 32px);
  background: var(--card-panel, #f4f3ec);
  border-radius: 12px;
  box-shadow: 0 12px 48px #14231c26;
}
.card-logo {
  display: block;
  max-inline-size: min(100%, 180px);
  max-block-size: 140px;
  inline-size: auto;
  block-size: auto;
  object-fit: contain;
  margin-block-end: 24px;
}
main:empty { visibility: hidden; }
h1, p { margin: 0; overflow-wrap: anywhere; }
h1 {
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1.17;
  font-weight: 650;
}
.description {
  font-size: 1.05rem;
  line-height: 1.6;
  white-space: pre-line;
  color: #47564c;
}
h1 + .description { margin-block-start: 12px; }
.save-contact {
  min-height: 58px;
  margin-block-start: 28px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #fff;
  background: #1f513e;
  border: 1px solid #1f513e;
  border-radius: 14px;
  box-shadow: 0 8px 22px #1f513e38;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}
.save-contact svg {
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.save-contact:active { transform: scale(.985); box-shadow: 0 2px 8px #1f513e28; }
@media (hover: hover) and (pointer: fine) {
  .save-contact:hover {
    transform: translateY(-2px);
    background: #153e2e;
    box-shadow: 0 12px 30px #1f513e4a;
  }
}
nav {
  display: grid;
  gap: 10px;
}
:is(h1, p) + nav { margin-block-start: 32px; }
.save-contact + nav { margin-block-start: 12px; }
nav a {
  color: inherit;
  text-decoration: none;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  border: 1px solid var(--action-border);
  border-radius: 14px;
  padding: 10px 12px 10px 16px;
  background: var(--action-bg);
  box-shadow: 0 1px 2px #14231c0a, 0 5px 18px #14231c08;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}
.link-label {
  min-width: 0; display: flex; align-items: center; gap: 12px;
}
.link-icon {
  flex: 0 0 28px; width: 28px; height: 28px; object-fit: contain;
}
nav a svg {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 8%, transparent);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease, background-color 180ms ease;
}
nav a:active { transform: scale(.985); box-shadow: 0 1px 2px #14231c0a; }
@media (hover: hover) and (pointer: fine) {
  nav a:hover {
    transform: translateY(-2px);
    background: var(--action-hover);
    border-color: color-mix(in srgb, currentColor 30%, transparent);
    box-shadow: 0 10px 28px #14231c1a, 0 2px 5px #14231c0d;
  }
  nav a:hover svg {
    transform: translate(2px, -1px);
    background: color-mix(in srgb, currentColor 13%, transparent);
  }
}
:focus-visible { outline: 3px solid #2f7251; outline-offset: 3px; }
.retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 11px 18px;
  min-height: 48px;
  color: inherit;
  background: var(--action-bg);
  border: 1px solid var(--action-border);
  border-radius: 12px;
  box-shadow: 0 4px 14px #14231c12;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}
.retry:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .retry:hover { transform: translateY(-2px); background: var(--action-hover); box-shadow: 0 9px 24px #14231c1a; }
}
@media (prefers-reduced-motion: reduce) {
  nav a, nav a svg, .save-contact, .retry { transition: none; }
  nav a:hover, .save-contact:hover, .retry:hover { transform: none; }
}
