/* ===== Base ===== */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

:root{
  /* Light / ash palette (not white, not black) */
  --bg0: #b8c0c9;        /* base ash */
  --bg1: #d6dde4;        /* light ash */
  --paper: rgba(255,255,255,0.58);

  --text: rgba(12,18,24,0.88);
  --muted: rgba(12,18,24,0.62);

  /* Glass */
  --glass: rgba(255,255,255,0.46);
  --glass-strong: rgba(255,255,255,0.58);
  --stroke: rgba(10,18,26,0.10);

  --shadow: 0 22px 60px rgba(0,0,0,0.16);
  --shadow-soft: 0 14px 44px rgba(0,0,0,0.12);

  --radius: 22px;
  --radius-lg: 28px;

  /* Accent (calm, not gamer) */
  --accent: #2a7fa6;
  --accent2: #3aa6a6;

  --ease: cubic-bezier(.2,.8,.2,1);
}

html, body{
  height: 100%;
}

body{
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;

  /* "Live" ash background (a bit darker ~25-30% vs pure light) */
  background:
    radial-gradient(900px 600px at 18% 14%, rgba(42,127,166,0.18), transparent 62%),
    radial-gradient(900px 640px at 86% 18%, rgba(58,166,166,0.16), transparent 62%),
    radial-gradient(760px 560px at 70% 84%, rgba(20,36,48,0.10), transparent 66%),
    radial-gradient(820px 560px at 34% 78%, rgba(255,255,255,0.22), transparent 62%),
    linear-gradient(180deg, var(--bg1), var(--bg0));

  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Soft "aura" sides + tiny parallax (fills empty space on wide screens) */
body::before{
  content:"";
  position: fixed;
  inset: -12%;
  z-index: -3;
  background:
    radial-gradient(620px 520px at 10% 50%, rgba(20,36,48,0.18), transparent 62%),
    radial-gradient(640px 540px at 92% 54%, rgba(20,36,48,0.16), transparent 62%),
    radial-gradient(520px 420px at 22% 20%, rgba(42,127,166,0.14), transparent 65%),
    radial-gradient(520px 420px at 78% 18%, rgba(58,166,166,0.12), transparent 65%);
  filter: blur(32px);
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform 900ms var(--ease);
  pointer-events: none;
}

/* Grain (subtle premium texture) */
body::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events:none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* Extra subtle grid film (very light) */
.page::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events:none;
  opacity: 0.12;
  background:
    linear-gradient(to right, rgba(0,0,0,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(60% 50% at 50% 30%, #000 55%, transparent 100%);
}

/* Page wrapper */
.page{
  min-height: calc(100vh - 84px);
}

/* Container */
.container{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ===== Header ===== */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(10,18,26,0.08);
}

/* Transparent header variant */
.header.header-transparent{
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner{
  height: 64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.logo{
  font-weight: 750;
  letter-spacing: 0.2px;
  opacity: 0.92;
}

.nav a{
  color: rgba(12,18,24,0.72);
  text-decoration:none;
  margin-left: 18px;
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 12px;
  transition: background 260ms var(--ease), color 260ms var(--ease);
}

.nav a:hover{
  background: rgba(255,255,255,0.32);
  color: rgba(12,18,24,0.90);
}

/* ===== Glass blocks ===== */
.glass{
  background: linear-gradient(180deg, rgba(255,255,255,0.70), rgba(255,255,255,0.42));
  border: 1px solid rgba(10,18,26,0.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hover-lift{
  transition: transform 600ms var(--ease), box-shadow 600ms var(--ease), border-color 600ms var(--ease), background 600ms var(--ease);
  will-change: transform;
}

.hover-lift:hover{
  transform: translateY(-6px) scale(1.012);
  box-shadow: var(--shadow);
  border-color: rgba(10,18,26,0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.74), rgba(255,255,255,0.46));
}

/* ===== Hero ===== */
.hero{
  padding: 56px 0 24px;
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: stretch;
}

.hero-card{
  padding: 34px 34px 28px;
}

.hero-card h1{
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: -0.7px;
  margin-bottom: 18px;
}

.subtitle{
  color: var(--muted);
  font-size: 16px;
  max-width: 60ch;
}

.actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* Right mock */
.mock-card{
  padding: 18px;
  display:flex;
  flex-direction: column;
  gap: 12px;
}

.mock-title{
  font-size: 13px;
  color: rgba(12,18,24,0.64);
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.46);
  border: 1px solid rgba(10,18,26,0.08);
}

.mock-body{
  flex:1;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(10,18,26,0.08);
}

.mock-body img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  opacity: 0.96;
  transform: scale(1.03);
  transition: transform 900ms var(--ease), opacity 900ms var(--ease);
}

.mock-card:hover .mock-body img{
  transform: scale(1.06);
  opacity: 1;
}

/* ===== Sections ===== */
.section{
  padding: 26px 0;
}

/* Split */
.split{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: start;
}

.reverse{
  direction: rtl;
}
.reverse > *{
  direction: ltr;
}

.content-card{
  padding: 26px 26px 22px;
}

.media-card{
  padding: 14px;
  overflow:hidden;
}

/* video placeholder */
.video-placeholder{
  width: 100%;
  min-height: 360px;
  border-radius: 18px;
  border: 1px solid rgba(10,18,26,0.10);
  background:
    radial-gradient(520px 360px at 30% 30%, rgba(42,127,166,0.14), transparent 62%),
    radial-gradient(520px 360px at 70% 65%, rgba(58,166,166,0.12), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,0.50), rgba(255,255,255,0.30));
  display:flex;
  align-items:center;
  justify-content:center;
}

.video-note{
  color: rgba(12,18,24,0.62);
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.48);
  border: 1px dashed rgba(10,18,26,0.18);
}

/* Media image */
.media-card img{
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px;
  display:block;
  border: 1px solid rgba(10,18,26,0.08);
  opacity: 0.96;
  transition: transform 700ms var(--ease), opacity 700ms var(--ease);
}

.media-card:hover img{
  transform: scale(1.02);
  opacity: 1;
}

/* Titles */
.title{
  position: relative;
  margin-bottom: 14px;
  font-size: 22px;
  letter-spacing: -0.2px;
}

.title::after{
  content:"";
  position:absolute;
  left:0;
  top:100%;
  margin-top: 10px;
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(42,127,166,0.95), rgba(58,166,166,0.90));
  opacity: 0.55;
}

.page-title{
  font-size: 28px;
  letter-spacing: -0.4px;
  margin-bottom: 14px;
}

.sub-title{
  font-size: 18px;
  margin-top: 2px;
  margin-bottom: 10px;
}

/* Text */
.text-justify{
  text-align: justify;
}

.text-block p{
  margin-top: 0;
  margin-bottom: 20px;
  color: rgba(12,18,24,0.70);
}

.spacer{
  height: 18px;
}

/* Advantages */
.advantages{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.mini-card{
  padding: 16px 16px 14px;
  border-radius: 18px;
}

.mini-card h3{
  font-size: 16px;
  margin-bottom: 6px;
}

.mini-card p{
  color: rgba(12,18,24,0.66);
  font-size: 14px;
}

/* CTA card */
.cta-card{
  padding: 26px;
}
.center{
  text-align:center;
}

/* Links */
.link, .contacts-link{
  color: rgba(12,18,24,0.80);
  text-decoration: none;
  border-bottom: 1px dashed rgba(12,18,24,0.25);
}
.link:hover, .contacts-link:hover{
  border-bottom-color: rgba(12,18,24,0.55);
}

/* ===== Buttons ===== */
.btn{
  border: 1px solid rgba(10,18,26,0.12);
  background: rgba(255,255,255,0.44);
  color: rgba(12,18,24,0.86);
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: transform 420ms var(--ease), background 420ms var(--ease), border-color 420ms var(--ease), box-shadow 420ms var(--ease);
  text-decoration: none; /* for <a class="btn"> */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.54);
  border-color: rgba(10,18,26,0.18);
}

.btn-primary{
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border: 1px solid rgba(10,18,26,0.10);
  color: rgba(255,255,255,0.94);
  box-shadow: 0 14px 40px rgba(42,127,166,0.20);
}

.btn-primary:hover{
  box-shadow: 0 18px 54px rgba(42,127,166,0.28);
}

.btn-ghost{
  background: rgba(255,255,255,0.36);
}

.btn-mini{
  padding: 10px 14px;
  font-size: 13px;
}

.btn-green{ background: rgba(37,211,102,0.18); border-color: rgba(37,211,102,0.28); }
.btn-purple{ background: rgba(115,96,242,0.18); border-color: rgba(115,96,242,0.28); }

/* ===== Footer ===== */
.footer{
  padding: 24px;
  text-align: center;
  color: rgba(12,18,24,0.55);
  border-top: 1px solid rgba(10,18,26,0.08);
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ===== Fade in ===== */
.fade{
  opacity: 0;
  transform: translateY(28px);
  transition: 1450ms var(--ease);
}
.fade.show{
  opacity: 1;
  transform: translateY(0);
}

/* ===== Modal ===== */
.modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,0.28);
  opacity:0;
  pointer-events:none;
  transition: 260ms var(--ease);
}

.modal.open{
  opacity:1;
  pointer-events:auto;
}

.modal-content{
  width: min(420px, 92vw);
  padding: 22px;
  border-radius: 22px;
}

.modal-content h3{
  margin-bottom: 8px;
}

.modal-text{
  color: rgba(12,18,24,0.68);
  margin-bottom: 14px;
}

.phone-list p{
  margin-bottom: 6px;
  color: rgba(12,18,24,0.80);
}

.messengers{
  display:flex;
  gap: 10px;
  justify-content:center;
  margin: 14px 0 10px;
}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .hero-grid{
    grid-template-columns: 1fr;
  }
  .split{
    grid-template-columns: 1fr;
  }
  .hero-card h1{
    font-size: 34px;
  }
}

.company-info{
  margin-top: 35px;
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
  max-width: 420px;
}

.company-info p{
  margin-bottom: 6px;
  word-break: break-word;
}

.slider{
  display:flex;
  align-items:center;
  gap:20px;
}

.slide-area{
  width:500px;
  height:400px;
  overflow:hidden;
  border-radius:16px;
  background:#f3f4f6;
  position:relative;
}

.slide-track{
  width:100%;
  height:100%;
  position:relative;
}

.slide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

.slide img,
.slide video{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* стартові позиції */
.from-right{ transform:translateX(100%); }
.from-left{ transform:translateX(-100%); }
.center{ transform:translateX(0); }

.to-left{ transform:translateX(-100%); }
.to-right{ transform:translateX(100%); }

.animate{
  transition:transform 0.4s ease;
}

.arrow{
  font-size:40px;
  background:none;
  border:none;
  cursor:pointer;
}
