:root{
  /*
    ВАЖНО:
    Положи рядом файл фоновой гифки и назови его fon.gif
    (ты написал fon.giv — это выглядит как опечатка; браузер ожидает .gif)
  */
  --bg-url: url("fon.gif");

  --panel-w: 420px;

  /* окно резкости */
  --window-left: 5vw;
  --window-top: 6vh;
  --window-h: 88vh;

  /* сколько места справа занято панелью + её padding (18px слева/справа) */
  --panel-total: calc(min(var(--panel-w), 92vw) + 36px);
}

*{ box-sizing:border-box; }
html,body{ height:100%; margin:0; font-family:system-ui,Segoe UI,Arial; color:#fff; }
body{ overflow:hidden; background:#fff; }

/* ====== PAGE ====== */
.page{
  position:relative;
  height:100%;
  overflow:hidden;
  background:#fff;
}



/* ====== SHARP WINDOW ====== */
.sharp-window{
  position:absolute;
  left: var(--window-left);
  top: var(--window-top);
  right: calc(var(--panel-total) + 18px); /* небольшой зазор */
  height: var(--window-h);

  background-image: var(--bg-url);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 80%; /* ← уменьшаешь гифку */


  border-radius: 22px;
  border: 1px solid rgba(160,220,255,.18);
  box-shadow: 0 18px 70px rgba(0,0,0,.55);
  overflow:hidden;
  z-index: 2;

  filter: contrast(1.08) saturate(1.03);
}

/* стеклянный блик только на картинке */
.sharp-window::before{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(180,230,255,.10), rgba(0,0,0,0));
  pointer-events:none;
  z-index: 1;
}

/* ====== NOISE ====== */
.noise{
  position:absolute; inset:0;
  pointer-events:none;
  opacity:0.10;
  mix-blend-mode: overlay;
  z-index: 3;
  background-image:
    repeating-linear-gradient(0deg,
      rgba(255,255,255,0.05) 0px,
      rgba(255,255,255,0.05) 1px,
      rgba(0,0,0,0.05) 2px,
      rgba(0,0,0,0.05) 3px
    );
}

/* ====== PANEL ====== */
.panel{
  position:absolute;
  top:0; right:0; bottom:0;
  width: min(var(--panel-w), 92vw);
  padding: 18px;
  z-index: 10;
  display:flex;
}

.panel__inner{
  width:100%;
  height:100%;
  border-radius: 18px;
  border: 1px solid rgba(160,220,255,.18);

  background-image: url("grid.png");
  background-repeat: repeat;
  background-size: 320px 320px;      /* масштаб клетки */
  background-position: 0 0;
  background-blend-mode: soft-light;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 70px rgba(0,0,0,.55);
  color: #232323;
  -webkit-text-stroke: 0.3px rgba(0,0,0,0.6);
  text-shadow:
  0.4px 0.4px 0 rgba(0,0,0,0.25),
  -0.4px -0.4px 0 rgba(255,255,255,0.25);

  font-family: 'Patrick Hand', cursive;
  padding: 18px 18px 16px;
  overflow: hidden; /* без скроллбара */
}

.title{
  margin: 14px 0 8px;
  font-size: 34px;
  line-height: 1.05;
}

.lead{
  margin: 0 0 16px;
  opacity: .88;
  font-size: 18px;
  line-height: 1.6;
}

.section{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(160,220,255,.12);
}
.section h2{
  margin:0 0 8px;
  font-size: 16px;
  letter-spacing:.08em;
  text-transform: uppercase;
  opacity:.92;
}
.section p, .section li{
  font-size: 18px;
  line-height: 1.6;
  opacity: .86;
}
.section ul{ padding-left: 18px; margin: 0px 0 0; }

/* ====== ICON LINKS (HORIZONTAL) ====== */
.actions{
  margin-top: 18px;
  display:flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.icon-link{
  display:flex;
  align-items:center;
  justify-content:center;

  width: 30%;
  aspect-ratio: 1 / 1;
  max-width: 110px;

  border-radius: 0px;
  background: rgba(160,220,255,.06);
  border: none !important;

  box-shadow: none !important;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

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

.icon-link:hover{
  transform: translateY(-1px);
  background: rgba(160,220,255,.10);
  box-shadow: none !important;
}

.icon-link:active{
  transform: translateY(0);
  box-shadow: none !important;
}

/* ====== Copy CA ====== */
.footer{
  position: relative;
  display:flex;
  align-items:center;
  gap:10px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(160,220,255,.12);
  opacity:.85;
  font-size: 12px;
}

.copy-ca{
  cursor: pointer;
  user-select: none;
  transition: color .15s ease, opacity .15s ease;
}

.copy-ca:hover{
  color: #bfe6ff;
  opacity: 1;
}

.copy-hint{
  position: absolute;
  right: 0;
  bottom: 100%;
  margin-bottom: 6px;

  padding: 4px 8px;
  font-size: 11px;
  border-radius: 6px;

  background: rgba(160,220,255,.95);
  color:#061018;

  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;

  transition: opacity .2s ease, transform .2s ease;
}

.footer.copied .copy-hint{
  opacity: 1;
  transform: translateY(0);
}

/* ====== MOBILE ====== */
@media (max-width: 820px){
  body{ overflow:auto; }

  .page{
    height:auto;
    min-height:100vh;
    padding: 12px;
  }

  .sharp-window{
    position: relative;
    left: auto;
    top: auto;
    right: auto;
    width: 100%;
    height: 42vh;
    margin: 8px 0 12px;
  }

  .panel{
    position: static;
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  .panel__inner{
    height: auto;
    min-height: 55vh;
  }
}
.logo-frame{
  margin-bottom: 36px;
  padding: 14px 18px;

  position: relative;
  display: flex;
  justify-content: center;
}


.logo-frame img{
  position: absolute;
  top: -38px;              /* ← высота “наклейки” */
  left: 50%;
  transform: translateX(-50%);

  max-width: 220px;
  height: auto;
       /* перекрывает рамку */
  padding: 6px 10px;       /* эффект наклейки */
}

.panel p{
  margin-top: 17px;
}
/* Убираем дефолтную подсветку/обводку ссылок в Chrome */
a, a:visited{
  color: inherit;
  text-decoration: none;
}

a:focus,
a:focus-visible{
  outline: none;
  box-shadow: none;
}

/* На всякий случай: подсветка при тапе/клике (особенно на мобильных/тачпадах) */
a{
  -webkit-tap-highlight-color: transparent;
}
.link-btn a, .btn a {   /* выбери реальный класс твоих кнопок */
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.link-btn a:focus,
.link-btn a:focus-visible,
.btn a:focus,
.btn a:focus-visible{
  outline: none;
  box-shadow: none;
}
a, a:visited, a:hover, a:active{
  color: inherit !important;
  text-decoration: none !important;
}

*:focus, *:focus-visible{
  outline: none !important;
  box-shadow: none !important;
}

a{
  -webkit-tap-highlight-color: transparent;
}
/* убрать обводки и фокус у кнопок */
