/* Токени: усі кольори, розміри й відступи сайту беруться лише звідси */
:root{
  --ink:#30243e;          /* заголовки та основний текст */
  --text:#62596c;         /* абзаци та підписи */
  --accent:#7853a5;       /* акцент: кнопки, посилання, виділені слова */
  --accent-hover:#63418d;
  --accent-soft:#9473b3;  /* декоративні цифри й крапки */
  --paper:#faf8fb;        /* фон сторінки та світлих карток */
  --surface:#f0e8f6;      /* бузкові картки та смуги */
  --dark:#3c2b50;         /* темні картки */
  --on-dark:#eee3f7;      /* текст на темному */
  --on-dark-accent:#c9a7e6;
  --line:#ded3e7;
  --shadow:#55317424;

  --heading-font:Montserrat,Arial,sans-serif;
  --body-font:Manrope,Arial,sans-serif;
  --h1:clamp(44px,5vw,68px);
  --title:clamp(32px,3.5vw,48px);
  --h3:24px;
  --text-size:18px;
  --ui:16px;              /* навігація, кнопки, мітки */
  --small:14px;
  --eyebrow:12px;

  --gutter:40px;
  --grid-gap:32px;
  --gap:24px;
  --section-space:96px;
  --card-space:32px;
  --radius:24px;
}

/* Основа */
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:30px}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--body-font);font-size:var(--text-size);line-height:1.7}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer}
img{max-width:100%;display:block}
p{color:var(--text)}
h1,h2,h3,p,figure{margin-top:0}
h1,h2,h3{font-family:var(--heading-font)}
h1,h2{font-weight:500;letter-spacing:-.045em}
h1{font-size:var(--h1);line-height:1.13;margin-bottom:26px}
h2{font-size:var(--title);line-height:1.2;margin-bottom:32px}
h3{font-size:var(--h3);font-weight:500;line-height:1.4;letter-spacing:-.025em;margin-bottom:16px}
em{font-style:normal;color:var(--accent)}
:focus-visible{outline:3px solid #b08dd3;outline-offset:5px}
.skip{position:fixed;top:-100px;left:20px;background:#fff;padding:12px;z-index:10}
.skip:focus{top:15px}

.wrap{width:100%;max-width:1200px;padding-inline:var(--gutter);margin-inline:auto}
.section{padding-block:var(--section-space)}
.eyebrow{font-size:var(--eyebrow);font-weight:600;line-height:1.5;letter-spacing:1.2px;color:var(--accent);margin-bottom:24px}
.eyebrow i{display:inline-block;background:var(--accent-soft);width:7px;height:7px;border-radius:50%;margin-right:8px}
.lead{font-size:var(--text-size);line-height:1.8;max-width:440px}
.text-link{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Кнопки */
.button{position:relative;overflow:hidden;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;gap:24px;padding:18px 24px;border:0;border-radius:999px;background:var(--accent);color:#fff;font-size:var(--ui);font-weight:700;box-shadow:0 5px 20px #7853a525;transition:background .25s,box-shadow .25s,transform .25s}
.button:hover,.button:focus-visible{background:var(--accent-hover);box-shadow:0 8px 28px #7853a545;transform:translateY(-3px)}
.button:active{transform:translateY(0)}
.button::after{content:'';position:absolute;inset:-60% auto -60% -70%;width:45%;background:linear-gradient(90deg,transparent,#ffffff45,transparent);transform:skewX(-20deg);pointer-events:none;animation:cta-shine 6s ease-in-out infinite}
.button.small{padding:12px 20px}
.nav .button.small{background:transparent;color:var(--accent);border:1px solid #cdb8e0;box-shadow:none}
.nav .button.small:hover,.nav .button.small:focus-visible{background:var(--accent);border-color:var(--accent);color:#fff}
.nav .button::after{display:none}

/* Шапка */
.nav{height:110px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:flex;align-items:center;gap:10px;font-family:var(--heading-font);font-size:33px;font-weight:800;letter-spacing:-2px}
.brand img{width:44px;height:44px;border-radius:50%}
nav{display:flex;gap:32px;font-size:var(--ui)}
nav a:hover,.site-footer a:not(.brand):hover{color:var(--accent)}

/* Перший екран */
.hero{display:grid;grid-template-columns:1.05fr 1fr;gap:var(--grid-gap);align-items:center;min-height:670px;padding-block:48px 80px}
.hero-copy{animation:hero-enter .9s cubic-bezier(.16,1,.3,1) both}
.hero .button{animation:cta-glow 4s ease-in-out infinite}
.hero-art{position:relative;height:540px}
.orbit{position:absolute;width:480px;height:480px;top:20px;left:-15px;border-radius:50%;background:radial-gradient(circle,#e7d6f5,#f3edf8 65%,transparent 70%)}
.sculpture{position:absolute;width:390px;top:0;left:-20px;border-radius:50%;mix-blend-mode:multiply;animation:logo-float 7s ease-in-out infinite}
.phone{position:absolute;bottom:0;right:5px;width:295px;margin:0;padding:9px 9px 10px;background:#fff;border:1px solid #e4dae9;border-radius:30px;box-shadow:0 20px 50px #5531741c;transform-origin:center;animation:mockup-float 6s ease-in-out infinite}
.phone-head{display:flex;align-items:center;gap:9px;padding:12px 6px;font-size:15px}
.phone-head img{width:33px;border-radius:50%}
.phone-head small{display:block;font-size:11px;color:var(--text)}
.phone-head>span{margin-left:auto}
.chat{display:flex;flex-direction:column;gap:6px;padding:12px 10px 10px;background:linear-gradient(160deg,#efe6f7,#e6d9f1);border-radius:8px 8px 22px 22px}
.msg{max-width:84%;margin:0;padding:7px 10px 6px;border-radius:14px;font-size:12px;line-height:1.4;color:var(--ink)}
.msg time{float:right;margin:5px 0 0 8px;font-size:9px;line-height:1;color:#8f849a}
.msg.in{align-self:flex-start;background:#fff;border-bottom-left-radius:4px}
.msg.out{align-self:flex-end;background:#d9c6ee;border-bottom-right-radius:4px}
.chat-input{display:flex;align-items:center;justify-content:space-between;margin-top:4px;padding:7px 8px 7px 14px;background:#fff;border-radius:999px;font-size:12px;color:#a59bb0}
.chat-mic{width:18px;height:18px;fill:none;stroke:var(--accent);stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.voice-pill{position:absolute;bottom:-24px;left:5px;display:flex;align-items:center;gap:10px;padding:12px 18px;background:var(--paper);border:1px solid #e6dceb;border-radius:999px;font-size:var(--small);animation:voice-float 5s ease-in-out infinite}
.voice-mic{width:18px;height:18px;fill:none;stroke:var(--accent);stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.wave{display:flex;align-items:center;gap:3px;height:18px}
.wave i{width:3px;height:100%;border-radius:2px;background:var(--accent-soft);transform-origin:center;animation:voice-wave 1.2s ease-in-out infinite}
.wave i:nth-child(2){animation-delay:-.2s}.wave i:nth-child(3){animation-delay:-.5s}.wave i:nth-child(4){animation-delay:-.1s}
.wave i:nth-child(5){animation-delay:-.7s}.wave i:nth-child(6){animation-delay:-.35s}.wave i:nth-child(7){animation-delay:-.9s}

/* Як працює */
.section-head{margin-bottom:32px}
.how-title{max-width:1050px;text-wrap:balance}
.how-title em{display:inline-block;margin-top:10px}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--gap)}
.steps article{padding:var(--card-space);border:1px solid var(--line);border-radius:var(--radius);transition:transform .3s,box-shadow .3s,opacity .85s}
.steps article.is-visible:hover{transform:translateY(-5px);box-shadow:0 14px 32px #7853a515}
.number{display:block;margin:0 0 28px;font-family:var(--heading-font);font-size:52px;font-weight:500;line-height:1;letter-spacing:-.05em;color:var(--accent-soft)}
.steps p{margin-bottom:0;line-height:1.8}

/* Переваги */
.benefits{background:var(--surface)}
.benefits h2{text-wrap:balance}
.benefit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--gap)}
.benefit-grid article{padding:var(--card-space);background:var(--paper);border-radius:var(--radius);transition:transform .3s,box-shadow .3s}
.benefit-grid article.is-visible:hover{transform:translateY(-6px);box-shadow:0 14px 35px #55317416}
.benefit-grid article:nth-child(1),.benefit-grid article:nth-child(4){background:var(--dark);color:#fff}
.benefit-grid article:nth-child(1) p,.benefit-grid article:nth-child(4) p{color:var(--on-dark)}
.benefit-grid article:nth-child(1) .icon,.benefit-grid article:nth-child(4) .icon{color:var(--on-dark-accent)}
.benefit-grid p{margin-bottom:0;line-height:1.8}
.icon{display:block;width:32px;height:32px;margin:0 0 24px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;color:var(--accent)}

/* Про Лілу */
.approach{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--grid-gap);align-items:center}
.approach>div{grid-column:2;grid-row:1}
.approach>div>p:not(.eyebrow){max-width:none;margin-bottom:24px;line-height:1.8}
.approach>div>p:last-child{margin-bottom:0}
.approach-art{grid-column:1;grid-row:1;width:100%;margin:0}
.approach-art svg{display:block;width:100%;height:auto;overflow:visible}
.community-person{animation:community-float 5.2s ease-in-out infinite;animation-delay:var(--delay)}
.community-ring{transform-origin:240px 210px;animation:community-orbit 45s linear infinite}
.community-links{animation:community-connect 4s ease-in-out infinite}
.team-seal{transform-origin:240px 210px;animation:community-heart 4s ease-in-out infinite}

/* Відгуки */
.review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--gap)}
.review-grid article{padding:var(--card-space);border:1px solid var(--line);border-radius:var(--radius)}
.review-head{margin-bottom:24px}
.review-person{display:flex;align-items:center;gap:16px}
.review-name{display:block;font-size:var(--text-size);font-weight:600;line-height:1.4}
.review-topic{display:block;margin-top:2px;font-size:var(--ui);line-height:1.4;color:var(--text)}
.avatar{width:52px;height:52px;flex:none}
.avatar circle:first-child{fill:#e3d3ee}
.avatar circle+circle,.avatar path{fill:none;stroke:var(--accent);stroke-width:2}
.review-grid blockquote{margin:0;font-size:var(--text-size);line-height:1.8;color:var(--ink)}

/* Приватність і безпека */
.privacy{background:var(--surface)}
.privacy-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--gap)}
.privacy-grid article{padding:var(--card-space);background:var(--paper);border-radius:var(--radius)}
.privacy-grid p{margin-bottom:0;line-height:1.8}

/* Питання */
.faq{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--grid-gap)}
.faq>div>p:not(.eyebrow){line-height:1.8}
.questions details{border-bottom:1px solid var(--line)}
.questions summary{display:flex;justify-content:space-between;align-items:center;gap:20px;width:100%;min-height:80px;padding:24px 16px;list-style:none;cursor:pointer;font-size:var(--text-size);font-weight:600}
.questions summary::-webkit-details-marker{display:none}
.questions summary span{font-size:24px;font-weight:400;color:var(--accent);transition:transform .25s}
.questions details[open] summary span{transform:rotate(45deg)}
.questions details p{margin:0;padding:0 16px 24px;line-height:1.8}
.questions details[open] p{animation:answer-in .4s ease}

/* Заклик наприкінці */
.final-cta.wrap{width:calc(100% - var(--gutter) * 2);max-width:calc(1200px - var(--gutter) * 2);margin:0 auto 80px;padding-block:64px;text-align:center;background:var(--surface);border-radius:var(--radius)}
.final-cta>p:not(.eyebrow){margin-bottom:32px}

/* Футер */
.site-footer{padding-block:48px 32px;font-size:var(--small);color:var(--text)}
.site-footer .brand{color:var(--ink)}
.footer-main{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:var(--grid-gap);align-items:start}
.footer-brand p{margin:12px 0 0;font-size:var(--small)}
.footer-col{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.footer-col b{font-weight:600;color:var(--ink)}
.footer-legal{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px 24px;margin-top:40px;padding-top:24px;border-top:1px solid var(--line);font-size:13px}

/* Кнопка «Нагору» */
.to-top{position:fixed;right:24px;bottom:24px;z-index:20;display:grid;place-items:center;width:52px;height:52px;padding:0;background:var(--paper);border:1px solid #cdb8e0;border-radius:50%;color:var(--accent);box-shadow:0 8px 24px #55317418;opacity:0;visibility:hidden;transform:translateY(12px);transition:opacity .25s,transform .25s,visibility .25s,background .2s,color .2s}
.to-top.is-shown{opacity:1;visibility:visible;transform:translateY(0)}
.to-top:hover,.to-top:focus-visible{background:var(--accent);border-color:var(--accent);color:#fff}
.to-top svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Вікно-підказка */
dialog{max-width:440px;width:calc(100% - 32px);padding:40px;color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:var(--radius)}
dialog::backdrop{background:#30243e80;backdrop-filter:blur(5px)}
.close{position:absolute;right:16px;top:10px;background:none;border:0;font-size:28px;color:var(--text)}

/* Блог і статті */
.blog-page,.article-page{padding-top:32px}
.blog-page{min-height:65vh}
.blog-page h1{font-size:var(--title);line-height:1.2;margin-bottom:16px}
.blog-page .lead{max-width:none;margin-bottom:0}
.blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--gap);margin-top:40px}
.blog-grid article{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);transition:transform .3s,box-shadow .3s}
.blog-grid article:hover{transform:translateY(-5px);box-shadow:0 14px 32px #7853a515}
.blog-grid h2{font-size:var(--h3);font-weight:500;line-height:1.4;letter-spacing:-.025em;margin-bottom:16px}
.blog-grid h2 a::after{content:'';position:absolute;inset:0;border-radius:inherit}
.blog-cover{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-bottom:1px solid var(--line)}
.blog-card-body{padding:var(--card-space)}
.blog-card-body p{margin-bottom:0}
.article-date{margin:-16px 0 24px;font-size:var(--ui);color:var(--text)}
.article-cover{display:block;width:100%;aspect-ratio:12/5;object-fit:cover;margin:0 0 32px;border-radius:var(--radius)}
.article-page{max-width:800px}
.article-page h1{font-size:var(--title);line-height:1.2;margin-bottom:32px}
.article-back{display:inline-block;margin-bottom:24px;color:var(--accent)}
.article-body h2,.article-related h2{font-size:28px;line-height:1.4;margin:40px 0 16px}
.article-body p,.article-body li{line-height:1.8}
.article-body .article-meta{font-size:var(--ui);line-height:1.6;color:var(--text);margin-bottom:32px}
.article-body li{margin-bottom:12px}
.article-body a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.article-author{display:flex;align-items:center;gap:20px;margin-top:48px;padding-top:24px;border-top:1px solid var(--line)}
.article-author img{flex:none;width:72px;height:72px;border-radius:50%;object-fit:cover}
.article-author p{margin:0;font-size:var(--ui);line-height:1.6}
.article-author-social{flex:none;display:grid;place-items:center;width:48px;height:48px;margin-left:auto;border:1px solid #cdb8e0;border-radius:50%;color:var(--accent);transition:background .2s,color .2s,border-color .2s}
.article-author-social:hover,.article-author-social:focus-visible{background:var(--accent);border-color:var(--accent);color:#fff}
.article-author-social svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.article-author .article-author-label{font-size:var(--eyebrow);font-weight:600;letter-spacing:1.2px;text-transform:uppercase;color:var(--accent);margin-bottom:8px}
.article-author .article-author-name{font-family:var(--heading-font);font-size:var(--h3);font-weight:500;color:var(--ink)}
.article-related{margin-top:32px;padding:var(--card-space);border:1px solid var(--line);border-radius:var(--radius)}
.article-related h2{margin-top:0;font-size:var(--h3);font-weight:500;letter-spacing:-.025em}
.article-related a{display:block;margin:16px 0 0;font-weight:600;color:var(--accent)}
.article-related a:hover{text-decoration:underline;text-underline-offset:3px}

/* Сторінка 404 */
.not-found{min-height:60vh;padding-top:32px}
.not-found h1{font-size:var(--title);line-height:1.2;margin-bottom:16px}
.not-found-actions{display:flex;flex-wrap:wrap;gap:16px;margin-top:32px}
.button-outline{background:transparent;color:var(--accent);border:1px solid #cdb8e0;box-shadow:none}
.button-outline:hover,.button-outline:focus-visible{background:var(--accent);border-color:var(--accent);color:#fff}

/* Поступова поява блоків (клас додає app.js) */
.reveal{opacity:0;transform:translateY(40px);transition:opacity .85s ease,transform .85s cubic-bezier(.16,1,.3,1);transition-delay:var(--reveal-delay,0ms)}
.reveal.is-visible{opacity:1;transform:translateY(0)}

@keyframes hero-enter{from{opacity:0;transform:translateY(25px)}to{opacity:1;transform:translateY(0)}}
@keyframes mockup-float{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-14px) rotate(-1deg)}}
@keyframes logo-float{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-18px) rotate(2deg)}}
@keyframes voice-float{0%,100%{transform:translateY(0)}50%{transform:translateY(6px)}}
@keyframes voice-wave{0%,100%{transform:scaleY(.35)}50%{transform:scaleY(1)}}
@keyframes cta-shine{0%,65%{left:-70%}90%,100%{left:150%}}
@keyframes cta-glow{0%,100%{box-shadow:0 5px 20px #7853a525}50%{box-shadow:0 0 0 5px #a17bc51a,0 8px 32px #7853a555}}
@keyframes answer-in{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@keyframes community-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@keyframes community-orbit{to{transform:rotate(360deg)}}
@keyframes community-connect{0%,100%{opacity:.45}50%{opacity:1}}
@keyframes community-heart{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}

/* Планшет */
@media(max-width:900px){
  :root{--gutter:32px;--grid-gap:24px;--section-space:80px}
  nav{gap:24px}
  .hero{grid-template-columns:1fr 1fr}
  .hero-art{height:480px}
  .sculpture{width:300px}
  .orbit{width:350px;height:400px}
  .phone{width:255px;bottom:36px}
  .steps,.privacy-grid{grid-template-columns:1fr;gap:16px}
  .steps article{display:grid;grid-template-columns:70px 1fr;column-gap:22px}
  .steps .number{grid-row:span 2;margin:0;font-size:48px}
  .approach{grid-template-columns:1fr}
  .approach>div{grid-column:1;grid-row:1}
  .approach-art{grid-column:1;grid-row:2;max-width:560px;margin-inline:auto}
  .blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Телефон */
@media(max-width:650px){
  :root{--gutter:24px;--section-space:64px;--card-space:24px;--text-size:17px;--title:32px;--h3:22px;--gap:16px}
  .nav{height:85px}
  .to-top{right:16px;bottom:16px;width:48px;height:48px}
  .brand{font-size:28px}
  .brand img{width:36px;height:36px}
  nav{display:none}
  .button{gap:12px;padding:16px 24px}
  .button.small{padding:12px 20px;font-size:var(--small)}
  .hero{grid-template-columns:1fr;padding-block:32px 64px}
  .hero h1{font-size:44px}
  .hero-art{height:500px;max-width:360px;width:100%;margin:auto}
  .sculpture{width:280px;left:-10px}
  .phone{width:270px;right:0;bottom:36px}
  .voice-pill{bottom:0;left:0}
  .how-title{text-wrap:initial}
  .how-title br{display:none}
  .how-title em{margin-top:12px}
  .steps article{grid-template-columns:64px 1fr;gap:8px 16px}
  .steps .number{font-size:40px}
  .benefit-grid,.review-grid,.faq,.blog-grid{grid-template-columns:1fr}
  .final-cta.wrap{padding-block:48px;margin-bottom:64px}
  .footer-main{grid-template-columns:1fr;gap:24px}
  .footer-legal{margin-top:32px}
  .article-body h2,.article-related h2{font-size:24px}
  .article-author{gap:16px}
  .article-author img{width:56px;height:56px}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
  .reveal{opacity:1;transform:none}
  .phone{transform:rotate(-3deg)}
  .community-signals{display:none}
}
