*{box-sizing:border-box}body{margin:0;font:17px/1.6 system-ui,Segoe UI,Roboto,sans-serif;background:#f4f1ec;color:#16243b}
.w{max-width:960px;margin:0 auto;padding:0 20px}header{background:#fff;border-bottom:1px solid #d9d4ca}
.nav{display:flex;flex-wrap:wrap;gap:8px 20px;align-items:center;justify-content:space-between;padding:14px 20px}nav{display:flex;flex-wrap:wrap;gap:6px 18px;align-items:center}
a{color:#1f5fd1}.logo{font-weight:700;color:#16243b;text-decoration:none;font-size:20px}nav a{text-decoration:none;color:#16243b}nav a.lang{border:2px solid #d9d4ca;border-radius:99px;padding:2px 12px;font-weight:700}
main{padding:32px 20px 48px}h1{font-size:clamp(26px,5vw,40px);line-height:1.2;margin:0 0 12px}.lead{color:#55627a}
.card,form.box,fieldset.q{background:#fff;border:1px solid #d9d4ca;border-radius:16px;padding:20px;margin:0 0 16px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}.grid .card{display:flex;flex-direction:column;gap:8px}.grid h3{margin:0;font-size:18px}.grid p{margin:0;color:#55627a;font-size:15px;flex:1}
.btn{display:inline-block;background:#1f5fd1;color:#fff;border:0;border-radius:99px;padding:12px 26px;font:inherit;font-weight:700;text-decoration:none;cursor:pointer}
form.box{max-width:480px}label{display:block;margin:10px 0}input[type=text],input[type=password],select{width:100%;padding:11px 14px;border:2px solid #d9d4ca;border-radius:12px;font:inherit}
.row{display:flex;gap:10px}.row>*{flex:1}fieldset.q legend{font-weight:700;padding:0 6px}fieldset.q label{margin:6px 0;cursor:pointer}
.err{background:#fde7e9;color:#8a1020;padding:10px 14px;border-radius:12px}.warn{background:#fff3cd;color:#664d03;padding:10px 14px;border-radius:12px}.ok{background:#e0f4e6;color:#14532d;padding:10px 14px;border-radius:12px}
.m .r{display:grid;grid-template-columns:140px 1fr 50px;gap:10px;align-items:center;margin:6px 0;font-size:15px}.m i{height:10px;background:#e3dfd6;border-radius:9px;overflow:hidden}.m b{display:block;height:100%;background:#1f5fd1}
.tbl{overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:640px;font-size:15px;background:#fff}th,td{text-align:left;padding:9px 12px;border-bottom:1px solid #d9d4ca}th{color:#55627a}
dt{font-weight:700;margin-top:16px}dd{margin:4px 0 0;color:#3b4a63}footer{padding:24px 0;color:#55627a;font-size:14px;border-top:1px solid #d9d4ca}
@media(max-width:520px){.m .r{grid-template-columns:100px 1fr 44px}.row{flex-direction:column}}
.lv{margin:-2px 0 8px 150px;font-size:13px;color:#55627a}@media(max-width:520px){.lv{margin-left:110px}}
.cta{text-align:center;font-size:clamp(20px,4vw,28px);margin:0 0 24px;color:#16243b}
.fcols{display:flex;flex-wrap:wrap;justify-content:center;gap:24px 96px;margin-bottom:28px}.fcols h4{margin:0 0 10px;font-size:16px;color:#16243b}
.links{list-style:none;padding:0;margin:0;display:grid;gap:8px;font-size:15px}.soc{display:flex;flex-direction:column;gap:14px;align-items:flex-start}.fcols.two .soc{padding-top:30px}
.soc a{display:inline-flex;align-items:center;gap:10px;color:#16243b;text-decoration:none;font-weight:700;font-size:16px}.soc a:hover{color:#1f5fd1}.soc svg{flex:none}footer .copy{text-align:center;margin:0}
@media(max-width:560px){.fcols{flex-direction:column;align-items:center;gap:20px}.fcols.two .soc{padding-top:0}}
.ico{flex:none;width:52px;height:52px;border-radius:16px;display:grid;place-items:center;font-size:28px;line-height:1}.th{display:flex;align-items:center;gap:14px}.grid .card .ico{align-self:flex-start;margin-bottom:4px}
body{font-family:Nunito,system-ui,"Segoe UI",Roboto,sans-serif;font-size:17px}
h1,h2,h3,h4,.logo,.btn,nav a,.m span{font-family:Rubik,Nunito,system-ui,sans-serif}
h1{font-weight:700;letter-spacing:-.01em;font-size:clamp(28px,5.5vw,48px)}h2{font-size:clamp(22px,4vw,30px)}.grid h3{font-weight:500;line-height:1.3}
.btn{font-weight:500;letter-spacing:.01em}.lead{font-size:18px}
@keyframes pop{from{opacity:0;transform:translateY(26px) scale(.96)}to{opacity:1;transform:none}}
.pop{animation:pop .85s cubic-bezier(.2,.8,.2,1) both}.pop2{animation:pop .85s .25s cubic-bezier(.2,.8,.2,1) both}.pop3{animation:pop .85s .45s cubic-bezier(.2,.8,.2,1) both}
.grid .card{animation:pop .7s cubic-bezier(.2,.8,.2,1) both}.grid .card:nth-child(1){animation-delay:.55s}.grid .card:nth-child(2){animation-delay:.7s}.grid .card:nth-child(3){animation-delay:.85s}.grid .card:nth-child(4){animation-delay:1s}
@media(prefers-reduced-motion:reduce){.pop,.pop2,.pop3,.grid .card{animation:none}}

/* Refresh of the homepage: all existing internal pages retain their styles */
body{background:#f8f8ff;color:#191936}.w{max-width:1180px}header{box-shadow:0 2px 18px #3325770a;border-bottom:1px solid #ebe9f6}.logo{color:#5633bc}nav a:hover{color:#6e43d9}.btn{background:linear-gradient(135deg,#8c56ed,#5930b9);box-shadow:0 8px 18px #6135c033}.btn:hover{filter:brightness(1.06)}
.home-hero{background:linear-gradient(110deg,#f5f1ff 0%,#ede6ff 65%,#e2eaff 100%);border-radius:30px;min-height:385px;display:grid;grid-template-columns:1.1fr 0.9fr;overflow:hidden;align-items:center;margin:6px 0 48px;position:relative}
.hero-copy{padding:46px 0 46px 52px;position:relative;z-index:1}.eyebrow{color:#7145cb;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.home-hero h1{font-size:clamp(30px,4.2vw,52px);max-width:650px;line-height:1.13;margin:16px 0 18px}.hero-description{font-size:18px;max-width:540px;color:#4b4a6a;line-height:1.65}.hero-actions{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin-top:26px}.hero-secondary{font-weight:800;color:#6537c4}.hero-art{align-self:stretch;min-height:330px;display:flex;align-items:end;justify-content:center;overflow:hidden}.hero-art img{width:100%;height:100%;max-height:410px;object-fit:cover;object-position:center 20%;mask-image:linear-gradient(to bottom,#000 80%,transparent 100%)}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:28px;margin-bottom:24px}.section-head h2{margin:6px 0 0}.section-head p{max-width:390px;color:#66637e;font-size:15px;margin:0 0 4px}.method-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.method-card{padding:0!important;border:1px solid #ebe8f5!important;border-radius:23px!important;overflow:hidden;box-shadow:0 10px 32px #24105b0b;gap:0!important;transition:transform .2s,box-shadow .2s}.method-card:hover{transform:translateY(-5px);box-shadow:0 16px 35px #24105b20}.method-visual{height:170px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#f0eaff}.method-visual img{height:100%;width:100%;object-fit:cover}.visual-2{background:#fff6e0}.visual-3{background:#e5faf5}.visual-4{background:#e6f2ff}.method-body{padding:19px 20px 22px;display:flex;flex-direction:column;gap:10px;flex:1}.method-meta{color:#7448cb;font-size:12px;font-weight:800}.method-card h3{font-size:18px;font-weight:700;line-height:1.3}.method-card p{font-size:14px;line-height:1.55}.method-link{font-weight:800;text-decoration:none;display:flex;justify-content:space-between;align-items:center;margin-top:12px;color:#693fc6}.method-link span{display:grid;place-items:center;width:34px;height:34px;background:#f0eaff;border-radius:50%;font-size:21px}
@media(max-width:900px){.method-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-copy{padding-left:30px}.hero-art{min-height:280px}}@media(max-width:620px){.home-hero{grid-template-columns:1fr}.hero-copy{padding:30px 24px 8px}.hero-art{min-height:220px;max-height:270px}.hero-art img{object-fit:cover}.section-head{display:block}.section-head p{margin-top:10px}.method-grid{grid-template-columns:1fr}.method-visual{height:200px}}

/* ПрофАлем: обновленная главная и шапка */
.logo{font-weight:800;letter-spacing:-.025em}
.home-hero{background:linear-gradient(110deg,#faf8ff 0%,#f1ecff 55%,#e7e9ff 100%);border-radius:28px;overflow:hidden;min-height:410px}
.home-hero h1{font-size:clamp(2.7rem,5vw,5rem);line-height:1.07;letter-spacing:-.045em}
.home-hero h1 em{color:#6936d5;font-style:normal}
.hero-art img{width:100%;height:100%;object-fit:cover}
.method-visual img{width:100%;height:210px;object-fit:contain}
.interpretation-cell{min-width:290px;max-width:470px;white-space:normal;line-height:1.5;font-size:.9rem}
@media(max-width:720px){.home-hero{min-height:0}.method-visual img{height:175px}}

/* ПрофАлем: плавная главная страница в духе profalem.kz */
html{scroll-behavior:smooth;scroll-padding-top:24px}
.home-hero{margin-top:12px;margin-bottom:76px;box-shadow:0 25px 65px rgba(66,42,132,.08)}
.hero-copy{animation:homeRise .85s ease-out both}.hero-art{animation:homeRise 1s .15s ease-out both}
@keyframes homeRise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:translateY(0)}}
.methods{margin-bottom:92px}.section-head{margin-bottom:30px}.method-card{transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s ease}
.home-story{display:grid;grid-template-columns: .92fr 1.08fr;align-items:center;gap:55px;margin:0 0 100px;padding:35px 48px;border-radius:32px;background:linear-gradient(115deg,#f0eaff,#f8f6ff)}
.story-image{border-radius:24px;overflow:hidden;background:#e7defb;max-height:360px}.story-image img{display:block;width:100%;height:360px;object-fit:cover;object-position:center}
.story-copy h2,.home-steps h2{font-size:clamp(26px,3.4vw,40px);line-height:1.2;letter-spacing:-.03em;margin:12px 0 20px}.story-copy p{color:#585474;line-height:1.85;margin-bottom:24px}.story-link{color:#6537c4;font-weight:800;text-decoration:none}.story-link:hover{text-decoration:underline}
.home-steps{text-align:center;margin-bottom:90px}.steps-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:35px;text-align:left}.step{background:#fff;border:1px solid #eeeafa;border-radius:24px;padding:30px;box-shadow:0 10px 35px rgba(66,42,132,.045)}.step-number{display:inline-block;color:#8557e4;font-size:30px;font-weight:800;margin-bottom:14px}.step h3{font-size:19px;margin:0 0 10px}.step p{color:#66617e;font-size:15px;margin:0;line-height:1.7}
.js-motion .reveal{opacity:0;transform:translateY(28px);transition:opacity .8s ease,transform .8s cubic-bezier(.2,.8,.2,1)}.js-motion .reveal.is-visible{opacity:1;transform:none}
footer{background:#f0ecfa;border-top:1px solid #e6def6;padding:52px 0 32px}footer .cta{margin-bottom:32px}footer .links a{color:#5544a2;text-decoration:none}footer .links a:hover{text-decoration:underline}
@media(max-width:760px){.home-story{grid-template-columns:1fr;gap:22px;padding:22px;margin-bottom:65px}.story-image img{height:230px}.methods{margin-bottom:65px}.steps-grid{grid-template-columns:1fr;gap:14px}.home-steps{margin-bottom:55px}.step{padding:22px}.home-hero{margin-bottom:58px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.hero-copy,.hero-art{animation:none}.js-motion .reveal{opacity:1;transform:none;transition:none}}
