/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Prata&display=swap');
html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}
body{
  margin:0;
  background-color:#0A0C12;
  font-family: 'Raleway', sans-serif;
  color:#CFCBBF;
  /*font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;*/
}
h1, h2 {
  font-family: 'Prata', serif;
}
h4, p, li {
  font-family: 'Raleway', sans-serif;
}
/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}
:root{
  /*--gold:#D2AC47;*/
  --gold-2:#F4E883;
  --iglow-h:70px;
  /*--bg:#0e1116;*/
  --fg:#f5f7fa;
  /*--muted:#98a2b3;*/
  --card:#131821;
  --border:rgba(255,255,255,.08);
  --muted_2: #CFCBBF;
  /*background:var(--bg);*/
  /*color:var(--fg);*/
}
/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

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

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: none;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
.text-accent-gradient {
  background: linear-gradient(132deg,
  rgb(210,172,71) 5%,
  rgb(247,239,138) 45%,
  rgb(174,134,37) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* ====== Ghost (прозрачная с рамкой) ====== */
.btn-ghost{
  color:var(--gold-2);
  border:1px solid var(--gold-2);
  background:transparent;
  padding:.6rem 1rem;
  border-radius:.7rem;
  display:inline-flex;
  align-items:center; gap:.5rem;
  text-decoration: none;
}
.btn-ghost:hover {
  background:rgba(255,255,255,.06);
}

/* ====== CTA (золотая) ====== */

.iglow-cta{
  color:#0b0f15;
  font-weight:700;
  padding:.65rem 1rem;
  border-radius:.7rem;text-decoration:none;
  background:linear-gradient(132deg, rgb(210,172,71) 5%, rgb(247,239,138) 45%, rgb(174,134,37) 85%);
  box-shadow:0 4px 18px rgba(210,172,71,.25)
}
.btn-cta:hover { box-shadow:0 10px 28px rgba(210,172,71,.35); }

.section-title{
  letter-spacing:.2px
}
.accent-underline{
  background-image: linear-gradient(132deg, rgb(210,172,71) 5%, rgb(247,239,138) 45%, rgb(174,134,37) 85%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

/* Глобальный оверлей-герой под всю страницу.
   Включается классом .page-has-hero на <body>
   и принимает URL картинки через custom property --page-hero-url */
body.page-has-hero::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;               /* уходит под всё (в т.ч. под фикс-хедер) */
  background:
    /* ваши «золотые» свечения сверху/снизу — опционально: */
    radial-gradient(1200px 700px at 80% -10%, rgba(212,174,70,.12), transparent 60%),
    radial-gradient(800px 500px at 10% 110%, rgba(244,232,131,.08), transparent 60%),
      /* сам постер */
    var(--page-hero-url, none) center / cover no-repeat;
  will-change: transform;    /* мелкая оптимизация при скролле */
  pointer-events: none;      /* не перехватывает клики */
}

/* На мобильных можно отключить fixed, чтобы не было «тряски» при скролле */
@media (max-width: 768px){
  body.page-has-hero::before{
    position:absolute;
  }
}

.page-hero {
  background:
    var(--page-hero-url, none) center/cover no-repeat;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.badge-accent{
  background:linear-gradient(132deg, rgb(210,172,71) 5%, rgb(247,239,138) 45%, rgb(174,134,37) 85%);
  color:#1a1f29;
  font-weight:700;
}

/* карточка */
.card-ig{
  background:#1b1c1d;
  border:3px solid rgba(255,255,255,.16);      /* светло-серая рамка */
  box-shadow:0 10px 24px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.03);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  will-change:transform;
}
.card-ig:hover{
  transform:translateY(-4px) scale(1.02);      /* лёгкое увеличение */
  border-color:rgba(255,255,255,.28);
  box-shadow:0 16px 36px rgba(0,0,0,.35);
}
.card-ig-body{
  padding:1.25rem 1.25rem 1.15rem;
  color:#CFCBBF; }

.iglow-container{
  max-width:1400px;
  margin:0 auto;
  padding:1rem 1.5rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  transition:padding .3s
}
.iglow-container-footer{
  display:flex;
  align-items:center;
  justify-content:left;
  gap:1rem;
  transition:padding .3s
}
.card-dark{
  background:var(--card);
  border:1px solid var(--border);
  color:var(--fg);
  box-shadow:0 10px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.02);
}
/* ===== Кнопка-капля для Telegram бота ===== */
/* ===== Floating Telegram Button (premium glass style) ===== */
.iglow-float-btn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 70px;
  height: 70px;
  border-radius: 50%;

  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);

  border: 1.5px solid rgba(210,172,71,0.45); /* золотой */
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
  cursor: pointer;
  z-index: 99999;
  transition: transform .25s ease, box-shadow .25s ease;
  animation: iglowPulse 3s ease-in-out infinite;   /* ← вот она! */
}
/* Мягкое пульсирующее "дыхание" */
@keyframes iglowPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 6px 25px rgba(210,172,71,0.15);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 8px 30px rgba(210,172,71,0.28);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 6px 25px rgba(210,172,71,0.15);
  }
}

.iglow-float-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(210,172,71,0.35);
}

.iglow-float-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.iglow-float-btn:hover + .iglow-tooltip {
  opacity: 1;
}
