/* ============================================================
   style.css — vizi.click
   Палитра и шрифты: mainold (Syne + Inter, акцент #ff4d00)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

/* --- Переменные --- */
:root {
  --bg:          #ffffff;
  --bg-stripe:   #f6f6f3;
  --surface:     #ffffff;
  --border:      #e8e8e3;
  --text:        #111110;
  --muted:       #666660;
  --accent:      #ff4d00;
  --accent-h:    #e03d00;
  --accent-bg:   #fff2ee;
  --accent-bdr:  rgba(255,77,0,.15);

  --f-head:      'Syne', sans-serif;
  --f-body:      'Inter', system-ui, sans-serif;

  --radius:      10px;
  --radius-lg:   16px;
  --sh:          0 2px 12px rgba(0,0,0,.07);
  --sh-lg:       0 8px 32px rgba(0,0,0,.10);
  --t:           .2s ease;

  --header-h:    60px;
  --max-w:       1060px;
  --section-pad: 90px;
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 12px 26px; border-radius: 8px;
  font-family: var(--f-head); font-size: .82rem; font-weight: 700;
  letter-spacing: .03em; cursor: pointer;
  border: 1.5px solid transparent; transition: all var(--t);
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-h); border-color: var(--accent-h); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,77,0,.28); }
.btn--outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn--lg { padding: 15px 34px; font-size: .9rem; }

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
#site-header .container {
  display: flex; align-items: center;
  height: 100%; gap: 16px;
}

/* Logo */
.header-brand {
  font-family: var(--f-head); font-size: 1.3rem; font-weight: 800;
  flex-shrink: 0; letter-spacing: -.02em;
}
.header-brand .v    { color: var(--text); }
.header-brand .dot  { color: var(--accent); }
.header-brand .tld  { color: var(--muted); }

/* Nav */
#site-nav { display: flex; gap: 2px; margin: 0 auto; }
#site-nav a {
  padding: 5px 11px; border-radius: 6px;
  font-size: .78rem; font-weight: 500; color: var(--muted);
  transition: color var(--t), background var(--t);
}
#site-nav a:hover { color: var(--text); background: var(--bg-stripe); }

/* Lang switcher */
.lang-switcher { display: flex; gap: 3px; flex-shrink: 0; }
.lang-btn {
  padding: 3px 8px; border-radius: 5px;
  border: 1px solid var(--border); background: transparent;
  color: var(--muted); font-family: var(--f-head);
  font-size: .66rem; font-weight: 700; cursor: pointer;
  transition: all var(--t);
}
.lang-btn:hover, .lang-btn.active {
  border-color: var(--accent); color: var(--accent); background: var(--accent-bg);
}

/* Mobile burger */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; flex-shrink: 0;
}
.menu-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text); border-radius: 2px; transition: all .28s;
}

#header-spacer { height: var(--header-h); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

/* Decorative blobs */
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .16;
}
.blob--a { width: 50vw; height: 50vw; background: #ff9966; top: -10%; right: -8%; }
.blob--b { width: 36vw; height: 36vw; background: #ffcc00; bottom: -12%; left: 2%; }

.hero-inner {
  position: relative; z-index: 1;
  padding: 60px 0 80px;
  max-width: 680px;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--f-head); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-bg);
  border: 1px solid var(--accent-bdr);
  padding: 4px 14px; border-radius: 50px;
  margin-bottom: 22px;
  animation: up .5s ease both;
}
#hero h1 {
  font-family: var(--f-head); 
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.08; letter-spacing: -.03em;
  color: var(--text); white-space: pre-line;
  margin-bottom: 18px;
  animation: up .55s .06s ease both;
}
.hero-sub {
  font-size: 1.05rem; color: var(--muted);
  max-width: 480px; line-height: 1.7;
  margin-bottom: 36px;
  animation: up .55s .12s ease both;
}
.hero-cta-wrap {
  animation: up .55s .18s ease both;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
}
.scroll-line {
  display: block; width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:.8} 50%{opacity:.15} }
@keyframes up { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

/* ============================================================
   SECTION SHARED
   ============================================================ */
section { padding: var(--section-pad) 0; }
section:nth-child(even) { background: var(--bg-stripe); }

.section-head { margin-bottom: 48px; }
.section-title {
  font-family: var(--f-head); font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -.03em; line-height: 1.15;
  color: var(--text);
}
.section-sub {
  color: var(--muted); margin-top: 8px; font-size: .92rem;
}

/* ============================================================
   WHY — cards grid
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.why-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 24px; background: var(--surface);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.why-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--sh-lg); }
.why-card .card-icon {
  font-family: var(--f-head); font-weight: 800;
  font-size: 1.3rem; color: var(--accent);
  display: block; margin-bottom: 16px; line-height: 1;
}
.why-card h3 {
  font-family: var(--f-head); font-size: .95rem; font-weight: 700;
  color: var(--text); margin-bottom: 8px; line-height: 1.25;
}
.why-card p { font-size: .83rem; color: var(--muted); line-height: 1.65; }

/* ============================================================
   WHAT — features
   ============================================================ */
.what-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.what-item {
  display: flex; align-items: flex-start; gap: 16px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px 20px; background: var(--surface);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.what-item:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--sh-lg); }
.what-item .item-icon {
  font-family: var(--f-head); font-weight: 800;
  font-size: 1.2rem; color: var(--accent);
  flex-shrink: 0; line-height: 1; margin-top: 2px;
  min-width: 28px;
}
.what-item h3 {
  font-family: var(--f-head); font-size: .92rem; font-weight: 700;
  color: var(--text); margin-bottom: 4px;
}
.what-item p { font-size: .82rem; color: var(--muted); line-height: 1.6; }

/* ============================================================
   EXAMPLE
   ============================================================ */
#example { text-align: center; }
.example-card {
  display: inline-flex; flex-direction: column; align-items: center; gap: 16px;
  background: var(--bg-stripe); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px 52px;
  max-width: 520px; margin: 0 auto;
  transition: box-shadow var(--t);
}
.example-card:hover { box-shadow: var(--sh-lg); }
.example-emoji {
  font-family: var(--f-head); font-weight: 800;
  font-size: 2.6rem; color: var(--accent); line-height: 1;
}
.example-card p { font-size: .92rem; color: var(--muted); max-width: 360px; line-height: 1.6; }
.btn-example {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-bg); color: var(--accent);
  border: 1px solid var(--accent-bdr);
  font-family: var(--f-head); font-size: .82rem; font-weight: 700;
  padding: 9px 22px; border-radius: 8px;
  transition: background var(--t), box-shadow var(--t);
}
.btn-example:hover { background: #ffe5dc; box-shadow: 0 4px 16px rgba(255,77,0,.15); }

/* ============================================================
   PORTFOLIO (скрыт, включается portfolio_enabled в data.json)
   ============================================================ */
#portfolio { display: none; }
#portfolio.visible { display: block; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.portfolio-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 22px; background: var(--surface);
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.portfolio-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--sh-lg); }
.portfolio-card .p-emoji {
  font-family: var(--f-head); font-weight: 800;
  font-size: 2rem; color: var(--accent);
}
.portfolio-card h3 {
  font-family: var(--f-head); font-size: .95rem; font-weight: 700;
  color: var(--text);
}
.portfolio-card .p-open {
  font-size: .78rem; font-weight: 600;
  color: var(--accent); font-family: var(--f-head);
  transition: opacity var(--t);
}
.portfolio-card .p-open:hover { opacity: .65; }

/* ============================================================
   CONTACTS
   ============================================================ */
.contacts-box {
  background: var(--bg-stripe); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 52px 48px;
  max-width: 640px;
}
.contacts-sub {
  color: var(--muted); margin-top: 8px; margin-bottom: 28px; font-size: .92rem;
}
.contacts-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.contact-row { display: flex; align-items: center; gap: 14px; }
.c-icon {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-head); font-weight: 800;
  font-size: .9rem; color: var(--accent); flex-shrink: 0;
}
.c-label {
  font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); min-width: 62px;
}
.contact-row a {
  font-size: .92rem; font-weight: 500; color: var(--text);
  transition: color var(--t);
}
.contact-row a:hover { color: var(--accent); }

.tg-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #229ed9; color: #fff;
  font-family: var(--f-head); font-size: .82rem; font-weight: 700;
  padding: 11px 24px; border-radius: 8px;
  transition: background var(--t);
}
.tg-btn:hover { background: #1a7fb0; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}
#site-footer .container {
  display: flex; align-items: center; justify-content: space-between;
}
#footer-rights { font-size: .76rem; color: var(--muted); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .45s ease, transform .45s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  :root { --section-pad: 56px; }

  #site-nav {
    display: none;
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 12px 16px 16px; gap: 2px; z-index: 99;
  }
  #site-nav.open { display: flex; }
  #site-nav a { padding: 10px 14px; font-size: .9rem; }
  .menu-toggle { display: flex; }

  .hero-scroll-hint { display: none; }
  .example-card { padding: 28px 24px; }
  .contacts-box { padding: 32px 24px; }
  .why-grid { grid-template-columns: 1fr; }
  .what-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .header-brand .tld { display: none; }
  #hero h1 { font-size: 2rem; }
}
