/* =========================================================
   Simple Landing/Review Site — style.css (no JS)
   Works with your current HTML structure.
   ---------------------------------------------------------
   Active menu (no JS): add ONE of these in HTML/MODX:
   - class="menu-btn active" on current link, OR
   - aria-current="page" on current link
   ========================================================= */

/* ===========================
   Design tokens
   =========================== */

:root{
  --bg: #ffffff;
  --bg-2: #ffffff;

  --surface: rgba(0,0,0,0.03);
  --surface-2: rgba(0,0,0,0.06);

  --border: rgba(0,0,0,0.12);
  --border-2: rgba(0,0,0,0.18);

  --text: rgba(0,0,0,0.92);
  --muted: rgba(0,0,0,0.78);

  --accent: #b00000;
  --accent-2: #7a0000;

  --shadow: 0 14px 40px rgba(0,0,0,0.14);
  --shadow-soft: 0 10px 28px rgba(0,0,0,0.12);

  --radius: 16px;
  --radius-sm: 12px;

  --container: 1120px;

  --header-h: 64px;
  --footer-pad: 24px;

  --gap: 16px;
  --gap-lg: 24px;

  --font: Georgia, "Times New Roman", Times, serif;

  /* SVG icons (used as masks) */
  --icon-tg: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M21.8%204.6c.2-1-1-1.7-1.9-1.3L3.6%209.7c-1%20.4-1%201.8.1%202.1l4.8%201.4%201.9%205.8c.3.9%201.5%201%202%20.2l2.6-3.4%204.9%203.6c.8.6%202%20.2%202.2-.9L21.8%204.6zM9.3%2012.7l9.5-6.2-7.8%207.5-.3%203.6-1.6-4.9-3.8-1.1z'/%3E%3C/svg%3E");
  --icon-ig: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M7.5%202h9A5.5%205.5%200%200%201%2022%207.5v9A5.5%205.5%200%200%201%2016.5%2022h-9A5.5%205.5%200%200%201%202%2016.5v-9A5.5%205.5%200%200%201%207.5%202zm0%202A3.5%203.5%200%200%200%204%207.5v9A3.5%203.5%200%200%200%207.5%2020h9A3.5%203.5%200%200%200%2020%2016.5v-9A3.5%203.5%200%200%200%2016.5%204h-9z'/%3E%3Cpath%20d='M12%207.2A4.8%204.8%200%201%201%207.2%2012%204.8%204.8%200%200%201%2012%207.2zm0%202A2.8%202.8%200%201%200%2014.8%2012%202.8%202.8%200%200%0%2012%209.2z'/%3E%3Cpath%20d='M17.6%206.7a1.1%201.1%200%201%201-1.1%201.1%201.1%201.1%200%200%201%201.1-1.1z'/%3E%3C/svg%3E");
  --icon-x: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M18.9%202H22l-6.8%207.8L23%2022h-6.3l-4.9-6.6L5.9%2022H2.8l7.4-8.5L1%202h6.5l4.4%206%206-8zM17%2019.7h1.7L7%204.2H5.2L17%2019.7z'/%3E%3C/svg%3E");
}

/* ===========================
   Reset / base
   =========================== */

*,
*::before,
*::after{
  box-sizing: border-box;
}

html, body{
  height: 100%;
}

body{
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.55;

  background: var(--bg); /* Теперь фон будет единым цветом --bg */

  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img{
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:focus-visible{
  outline: 2px solid rgba(176,0,0,0.85);
  outline-offset: 3px;
  border-radius: 10px;
}

::selection{
  background: rgba(176,0,0,0.20);
}

/* ===========================
   Layout containers
   =========================== */

.header-container,
.footer-container,
.site-content{
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

/* ===========================
   Header
   =========================== */

.header{
  position: sticky;
  top: 0;
  z-index: 20;

  background: linear-gradient(180deg, rgba(176, 0, 0, 0.92), rgba(138, 0, 0, 0.98)); 
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.22);
}

.header-container{
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
}

.logo-link{
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
}

.logo-link img{
  height: 90px;
  width: auto;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.25));
  transition: transform 180ms ease, opacity 180ms ease;
}

.logo-link:hover img{
  transform: translateY(-1px);
  opacity: 0.95;
}

.header-menu{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* menu buttons */
.menu-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 14px;
  border-radius: 999px;

  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);

  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.menu-btn:hover{
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.36);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.menu-btn:active{
  transform: translateY(0);
}

/* Active state without JS:
   - .menu-btn.active OR aria-current="page" */
.menu-btn.active,
.menu-btn[aria-current="page"]{
  background: linear-gradient(90deg, rgba(255,255,255,0.26), rgba(255,255,255,0.18));
  border-color: rgba(255,255,255,0.48);
  color: rgba(255,255,255,0.98);
  box-shadow: 0 10px 26px rgba(0,0,0,0.16);
}

/* ===========================
   Main content
   =========================== */

.site-content{
  flex: 1 0 auto;
  padding: 28px 0 44px;
}

/* nice defaults for typical content */
.site-content h1,
.site-content h2,
.site-content h3{
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.site-content h1{
  font-size: clamp(26px, 3.2vw, 40px);
}

.site-content h2{
  font-size: clamp(20px, 2.2vw, 28px);
}

.site-content h3{
  font-size: clamp(18px, 1.9vw, 22px);
}

.site-content p{
  margin: 0 0 14px;
  color: var(--muted);
  text-align: justify; /* Выравнивание текста по ширине */
  
  /* Для улучшения разрыва слов при justify (рекомендуется) */
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
}

.site-content a{
  color: rgba(176,0,0,0.92);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 160ms ease, opacity 160ms ease;
}

.site-content a:hover{
  color: rgba(122,0,0,0.92);
}

.site-content ul,
.site-content ol{
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--muted);
}

.site-content hr{
  border: 0;
  height: 1px;
  background: rgba(0,0,0,0.10);
  margin: 20px 0;
}

.site-content blockquote{
  margin: 18px 0;
  padding: 14px 14px;
  border-left: 3px solid rgba(176,0,0,0.70);
  background: rgba(0,0,0,0.03);
  border-radius: 12px;
  color: rgba(0,0,0,0.80);
}

/* Optional helper class (if you want a nice card in content):
   add class="content-card" to any wrapper in [[$content_main]] */
.site-content .content-card{
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px;
}

/* ===========================
   Footer
   =========================== */

.site-footer{
  flex: 0 0 auto;
  margin-top: auto;

  padding: var(--footer-pad) 0;
  background: linear-gradient(180deg, rgba(138, 0, 0, 0.98), rgba(176, 0, 0, 0.92)); 
  border-top: none; 
}

.footer-container{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--gap-lg);
}

.footer-col{
  min-width: 0;
}

/* left logo */
.footer-logo-link{
  display: inline-flex;
  align-items: center;
}

.footer-logo{
  height: 150px;
  width: auto;
  opacity: 0.92;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25));
  transition: opacity 160ms ease, transform 160ms ease;
}

.footer-logo-link:hover .footer-logo{
  opacity: 1;
  transform: translateY(-1px);
}

/* center social icons (NO HTML changes needed) */
.social-links{
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-item{
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);

  color: rgba(255,255,255,0.95);

  /* hide the "Icon" text visually; aria-label stays for accessibility */
  font-size: 0;
  line-height: 0;

  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.social-item::before{
  content: "";
  width: 18px;
  height: 18px;
  display: block;

  background-color: currentColor;

  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 18px 18px;

  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 18px 18px;
}

/* default mapping by order: 1) Telegram 2) Instagram 3) X */
.social-links .social-item:nth-child(1)::before{
  -webkit-mask-image: var(--icon-tg);
  mask-image: var(--icon-tg);
}

.social-links .social-item:nth-child(2)::before{
  -webkit-mask-image: var(--icon-ig);
  mask-image: var(--icon-ig);
}

.social-links .social-item:nth-child(3)::before{
  -webkit-mask-image: var(--icon-x);
  mask-image: var(--icon-x);
}

.social-item:hover{
  background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.14));
  border-color: rgba(255,255,255,0.36);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  color: rgba(255,255,255,0.98);
}

.social-item:active{
  transform: translateY(0);
}

/* right contacts */
.contact-block{
  text-align: right;
}

.contact-title{
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.95);
}

.contact-list{
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li{
  margin: 6px 0 0;
}

.contact-list a{
  color: rgba(255,255,255,0.86);
  text-decoration: none;
  transition: color 160ms ease, opacity 160ms ease;
}

.contact-list a:hover{
  color: rgba(255,255,255,0.98);
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 820px){
  :root{
    --header-h: 60px;
  }

  .menu-btn{
    padding: 9px 12px;
  }

  .footer-container{
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-block{
    text-align: center;
  }

  .footer-col.col-left,
  .footer-col.col-center,
  .footer-col.col-right{
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 420px){
  .header-container{
    flex-direction: column;
    height: auto;
    padding: 10px 0;
  }

  .header-menu{
    justify-content: center;
    padding-bottom: 6px;
  }

  .site-content{
    padding: 22px 0 34px;
  }
}

/* ===========================
   Reduced motion
   =========================== */

@media (prefers-reduced-motion: reduce){
  *{
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
