:root{
  --bg:#f6f2eb;
  --paper:#fffdfa;
  --ink:#1b2b27;
  --muted:#64706b;
  --green:#3a6a5f;
  --green2:#2b4e45;
  --green-soft:#edf2ef;
  --peach:#c98a66;
  --line:#e3ddd4;
  --soft:#f1ebe2;
  --radius:24px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:"Segoe UI",Arial,sans-serif;line-height:1.55}
.container{width:min(1180px,calc(100% - 40px));margin:auto}
.topbar{position:sticky;top:0;z-index:30;background:rgba(255,253,249,.95);backdrop-filter:blur(14px);border-bottom:1px solid rgba(20,35,31,.06);box-shadow:0 8px 24px rgba(20,35,31,.03)}
.nav{height:62px;display:flex;align-items:center;gap:24px}
.brand{display:flex;align-items:center;gap:11px;color:var(--ink);text-decoration:none;min-width:max-content}
.brand-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:var(--green);color:#fff;font-family:Georgia,"Times New Roman",serif;font-size:20px}
.brand b{display:block;font-family:Georgia,"Times New Roman",serif;font-size:19px;font-weight:700}
.brand small{display:block;text-transform:uppercase;letter-spacing:.18em;font-size:8.5px;color:#7c8480}
.menu{display:flex;gap:22px;margin-left:auto}
.menu a,.footer-grid a{color:var(--ink);text-decoration:none;font-size:12.5px}
.menu a:hover{color:var(--peach)}
.menu-btn{display:none;background:none;border:0;font-size:24px}
.btn{border:0;border-radius:15px;padding:12px 20px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-weight:700;cursor:pointer;transition:.2s}
.btn:hover{transform:translateY(-1px)}
.btn-dark{background:var(--green);color:#fff;box-shadow:0 8px 20px rgba(58,106,95,.12)}
.btn-accent{background:var(--peach);color:#fff;box-shadow:0 10px 24px rgba(201,138,102,.16)}
.hero{padding:12px 0 24px}
.hero-grid{background:linear-gradient(135deg,#fbf8f2 0%,#f4eee6 58%,#efe8de 100%);border:1px solid rgba(20,35,31,.07);border-radius:34px;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:16px;position:relative;overflow:hidden;box-shadow:0 18px 40px rgba(20,35,31,.05);min-height:470px}
.hero-grid:before{content:'';position:absolute;right:-90px;top:-70px;width:320px;height:320px;border-radius:50%;background:radial-gradient(circle,rgba(180,198,190,.28) 0%,rgba(180,198,190,.08) 55%,transparent 72%)}
.hero-copy{padding:34px 28px 30px 50px;position:relative;z-index:1}
.eyebrow{font-size:12px;letter-spacing:.04em;color:#9a735b}
.hero-eyebrow{display:inline-flex;align-items:center;gap:12px}
.hero-eyebrow:before{content:'';width:34px;height:1px;background:var(--peach);display:inline-block}
.hero h1,.section h2,.modal h2{font-family:Georgia,"Times New Roman",serif;font-size:clamp(33px,3.6vw,52px);line-height:1.02;margin:12px 0 16px;font-weight:600;letter-spacing:-.03em}
.hero h1 em{color:#4d7b70;font-style:italic;font-weight:600}
.lead{font-size:15px;color:#4d5a56;max-width:540px;line-height:1.46;margin:0}
.hero-actions{display:flex;align-items:center;gap:18px;margin:22px 0 16px}
.btn-premium{padding:14px 22px;border-radius:999px}
.text-link{color:var(--ink);font-weight:800;text-underline-offset:4px}
.hero-proof{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding-top:12px;border-top:1px solid rgba(20,35,31,.08)}
.hero-proof div{background:rgba(255,255,255,.42);border:1px solid rgba(20,35,31,.04);border-radius:15px;padding:9px 11px;min-height:62px}
.hero-proof small,.hero-proof b{display:block}
.hero-proof small{text-transform:uppercase;letter-spacing:.12em;color:#98745f;font-size:9px;margin-bottom:6px}
.hero-proof b{font-size:11.5px;line-height:1.3}
.hero-note{margin:12px 0 0;max-width:500px;font-family:Georgia,"Times New Roman",serif;font-size:13px;line-height:1.38;color:#76807c;font-style:italic}
.hero-visual{position:relative;z-index:1;padding:14px 22px 14px 6px;display:flex;flex-direction:column;justify-content:center;align-items:center}
.portrait-frame{width:100%;max-width:480px;height:392px;padding:10px;background:linear-gradient(180deg,rgba(255,255,255,.65),rgba(255,255,255,.42));border:1px solid rgba(255,255,255,.82);border-radius:28px;box-shadow:0 14px 34px rgba(22,47,40,.10)}
.portrait-wrap{width:100%;height:100%;border-radius:20px;overflow:hidden;position:relative}
.portrait-wrap:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(16,43,36,.08) 88%,rgba(16,43,36,.14) 100%)}
.portrait-wrap img{width:100%;height:100%;object-fit:cover;object-position:center top}
.section{padding:82px 0}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:32px}
.section-head h2,.about h2,.privacy h2,.contact h2{font-size:clamp(34px,4vw,54px);margin:10px 0 0}
.section-head>p{max-width:380px;color:var(--muted)}
.service-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.service-grid article{background:var(--paper);border:1px solid #ebe6de;border-radius:20px;padding:26px;min-height:228px;transition:.25s}
.service-grid article:hover{transform:translateY(-4px);box-shadow:0 16px 40px rgba(27,48,42,.08)}
.num{font-size:11px;color:var(--peach);font-weight:800}
.service-grid h3{font-family:Georgia,"Times New Roman",serif;font-size:26px;margin:20px 0 10px}
.service-grid p{color:#68716d;font-size:14px}
.about{background:#eee8de}
.about-grid{display:grid;grid-template-columns:.82fr 1.15fr .85fr;gap:34px;align-items:center}
.image-card{height:500px;border-radius:28px;overflow:hidden;box-shadow:0 16px 40px rgba(25,44,39,.08)}
.image-card img{width:100%;height:100%;object-fit:cover}
.about-copy p{color:#58635e;font-size:17px}
.checklist{display:grid;gap:10px;margin-top:24px}
.checklist span:before{content:'✓';margin-right:10px;color:var(--peach);font-weight:bold}
.numbers{background:linear-gradient(180deg,#2e6053,#294d42);color:#fff;border-radius:28px;padding:30px;display:grid;grid-template-columns:1fr 1fr;gap:24px;box-shadow:0 22px 50px rgba(27,55,47,.14)}
.numbers div{border-top:1px solid rgba(255,255,255,.18);padding-top:15px}
.numbers strong,.numbers span{display:block}
.numbers strong{font-family:Georgia,"Times New Roman",serif;font-size:34px;color:#efc1a4}
.numbers span{font-size:12px}
.numbers small{grid-column:1/-1;color:#d6e0db}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.steps div{position:relative;padding:28px 24px;background:var(--paper);border-radius:20px;border:1px solid #e8e2d9}
.steps b{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#f1d5c3;color:#9f5830}
.steps h3{font-family:Georgia,"Times New Roman",serif;font-size:23px}
.steps p{font-size:13px;color:#68716d}
.privacy{background:var(--green2);color:#fff}
.privacy-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:80px}
.light{color:#f0b08d}
.privacy-copy>p{font-size:18px;color:#d7e1dd}
.privacy-points{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:26px 0}
.privacy-points span{border:1px solid rgba(255,255,255,.16);border-radius:14px;padding:14px}
.link-btn{background:none;border:0;color:#efb18c;padding:0;font-weight:700;cursor:pointer}
.contact{background:#fbf9f4}
.contact-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:70px;align-items:start}
.contact-copy p{font-size:17px;color:#5e6963}
.contact-note{margin-top:30px;border-left:3px solid var(--peach);padding-left:18px}
.contact-note b,.contact-note span{display:block}
.contact-note span{font-size:13px;color:#727a76;margin-top:5px}
.form{background:#fff;border:1px solid #e7e1d8;border-radius:26px;padding:30px;box-shadow:0 24px 70px rgba(24,50,41,.08)}
label{display:block;font-size:12px;font-weight:700;margin-bottom:15px}
input,select,textarea{width:100%;border:1px solid #dcd6cc;border-radius:12px;padding:14px 15px;margin-top:7px;font:inherit;background:#fbfaf7;color:var(--ink)}
textarea{resize:vertical}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.consent{display:flex;gap:10px;align-items:flex-start;font-weight:500;color:#6d7571}
.consent input{width:auto;margin-top:5px}
.consent button{border:0;background:none;padding:0;text-decoration:underline;color:var(--green);cursor:pointer}
.submit{width:100%}
.form-status{font-size:12px;margin:10px 0 0}
footer{background:#122d26;color:#dce6e2;padding:48px 0}
.footer-grid{display:grid;grid-template-columns:1.2fr 1fr .8fr 1.1fr;gap:35px}
.footer-grid>div:not(.brand){display:flex;flex-direction:column;gap:8px;font-size:12px}
.footer-grid b{color:#fff}
.footer-grid a{color:#dce6e2}
.footer-brand b{color:#fff}
.footer-brand small{color:#93aaa1}
.modal{position:fixed;inset:0;background:rgba(6,23,18,.6);z-index:60;display:none;place-items:center;padding:20px}
.modal.open{display:grid}
.modal-card{background:#fffdf9;border-radius:24px;padding:34px;max-width:720px;position:relative;box-shadow:0 40px 100px rgba(0,0,0,.2)}
.modal-card h2{font-size:38px}
.modal-close{position:absolute;right:18px;top:12px;border:0;background:none;font-size:32px;cursor:pointer;color:#51605a}

@media(max-width:980px){
  .desktop-cta{display:none}
  .menu-btn{display:block;margin-left:auto}
  .menu{display:none;position:absolute;left:20px;right:20px;top:72px;background:#fff;padding:18px;border-radius:16px;box-shadow:0 18px 50px rgba(0,0,0,.12);flex-direction:column}
  .menu.open{display:flex}
  .hero-grid{grid-template-columns:1fr;gap:10px;min-height:auto}
  .hero-copy{padding:30px 22px 14px}
  .hero-visual{padding:0 26px 30px}
  .portrait-frame{max-width:none;height:430px}
  .service-grid{grid-template-columns:repeat(2,1fr)}
  .about-grid{grid-template-columns:1fr 1.2fr}
  .numbers{grid-column:1/-1}
  .steps{grid-template-columns:repeat(2,1fr)}
  .privacy-grid,.contact-grid{grid-template-columns:1fr;gap:35px}
  .footer-grid{grid-template-columns:1fr 1fr}
}

@media(max-width:640px){
  .container{width:min(100% - 24px,1180px)}
  .nav{height:62px}
  .brand-mark{width:34px;height:34px;font-size:18px}
  .brand b{font-size:17px}
  .brand small{font-size:8px}
  .hero{padding:10px 0 20px}
  .hero-grid{border-radius:24px}
  .hero-copy{padding:28px 20px 18px}
  .hero h1{font-size:34px;margin:10px 0 12px}
  .lead{font-size:15px;line-height:1.45}
  .hero-actions{flex-direction:column;align-items:flex-start;gap:16px;margin:22px 0 18px}
  .hero-proof{grid-template-columns:1fr;padding-top:14px}
  .hero-proof div{min-height:auto}
  .hero-note{font-size:14px}
  .hero-visual{padding:0 14px 18px}
  .portrait-frame{height:430px;border-radius:22px}
  .portrait-wrap{border-radius:16px}
  .section{padding:60px 0}
  .section-head{display:block}
  .service-grid,.steps,.privacy-points,.form-row,.footer-grid,.about-grid{grid-template-columns:1fr}
  .image-card{height:420px}
  .numbers{grid-column:auto}
  .contact h2,.about h2,.privacy h2,.section-head h2{font-size:38px}
  .form{padding:20px}
  .footer-grid{gap:28px}
}

@media (min-width:981px) and (max-height:820px){
  .nav{height:60px}
  .hero{padding:10px 0 22px}
  .hero-grid{min-height:450px}
  .hero-copy{padding:26px 24px 24px 38px}
  .hero h1{font-size:clamp(30px,3.2vw,44px);margin:8px 0 12px}
  .lead{font-size:14px;line-height:1.38}
  .hero-actions{margin:22px 0 18px}
  .hero-proof{padding-top:14px;gap:10px}
  .hero-proof div{padding:10px 12px;min-height:68px}
  .hero-note{margin-top:13px;font-size:14px}
  .hero-visual{padding:18px 20px 18px 4px}
  .portrait-frame{height:350px}
}

/* Brand logo */
.brand-logo{display:block;width:230px;height:auto;max-height:48px;object-fit:contain;object-position:left center}
.footer-brand-wrap{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.footer-brand{align-items:flex-start;background:rgba(255,255,255,.96);padding:14px 16px;border-radius:18px;box-shadow:0 12px 30px rgba(0,0,0,.12);width:max-content;max-width:100%}
.footer-logo{display:block;width:250px;max-width:100%;height:auto;filter:none}
.footer-brand-note{margin:0;color:#a9bbb5;font-size:12px;line-height:1.5;max-width:290px}
@media(max-width:1080px){.brand-logo{width:205px}.menu{gap:16px}.desktop-cta{padding-left:16px;padding-right:16px}}
@media(max-width:640px){.brand-logo{width:190px;max-height:42px}.footer-logo{width:220px}.footer-brand{padding:12px 14px;border-radius:16px}}

/* Cookies, privacy documents, and form consent */
[hidden]{display:none!important}
.link-btn{display:inline-block;text-decoration:none}
.form-policy-link{font-size:12px;line-height:1.6;color:#65726c;margin:-7px 0 20px}
.form-policy-link a,.consent a{color:var(--green);text-underline-offset:3px;font-weight:700}
/* Google reCAPTCHA v3: невидимая защита (бейдж Google в углу страницы) */
.honeypot{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden;opacity:0}
.form-status.is-error{color:#b44836}
.footer-cookie-link{background:transparent;border:0;padding:0;text-align:left;color:#dce6e2;cursor:pointer;font:inherit;font-size:12px}
.footer-cookie-link:hover{color:#fff;text-decoration:underline}
.cookie-popup{position:fixed;right:clamp(12px,2.5vw,40px);bottom:clamp(12px,2.5vw,32px);z-index:90;width:min(530px,calc(100vw - 24px));display:flex;gap:15px;padding:23px;background:rgba(255,253,250,.98);border:1px solid #e6e1d9;border-radius:21px;box-shadow:0 22px 80px rgba(20,35,31,.2);transform:translateY(14px);opacity:0;transition:transform .25s ease,opacity .25s ease}
.cookie-popup.is-visible{transform:translateY(0);opacity:1}
.cookie-popup__symbol{display:grid;place-items:center;align-self:flex-start;width:36px;height:36px;flex-shrink:0;border-radius:12px;background:#e7eee8;color:#3e6f61;font-size:22px}
.cookie-popup__body{min-width:0}
.cookie-popup strong{font-family:Georgia,"Times New Roman",serif;font-size:21px;font-weight:600}
.cookie-popup p{font-size:12.5px;line-height:1.65;color:#53625c;margin:9px 0 16px}
.cookie-popup a{color:#326457;text-underline-offset:2px}
.cookie-popup__actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.cookie-popup__actions button{border-radius:10px;font-weight:700;font:700 12px "Segoe UI",Arial,sans-serif;padding:12px 17px;cursor:pointer;transition:background .18s}
.cookie-accept{border:1px solid var(--green);background:var(--green);color:#fff}
.cookie-accept:hover{background:#285349}
.cookie-reject{border:1px solid #dcdad3;background:#fff;color:#2a4038}
.cookie-reject:hover{background:#f4f1eb}
.legal-hero{padding:54px 0 30px;background:linear-gradient(120deg,#fcfaf5,#f0ebe3);border-bottom:1px solid var(--line)}
.legal-hero .container{max-width:1060px}
.legal-back{display:inline-block;color:#5c6a64;text-underline-offset:3px;font-size:13px;margin-bottom:22px}
.legal-hero h1{font-family:Georgia,"Times New Roman",serif;font-weight:600;letter-spacing:-.03em;font-size:clamp(34px,4.5vw,54px);line-height:1.14;max-width:900px;margin:12px 0 18px}
.legal-hero p{max-width:770px;color:#62706b;margin:0;font-size:15px}
.legal-content{padding:40px 0 86px}
.legal-layout{display:grid;grid-template-columns:210px minmax(0,760px);gap:64px;align-items:start;justify-content:center}
.legal-toc{position:sticky;top:90px;padding:20px 16px;border-radius:18px;background:#f0ebe2;border:1px solid #e4dcd2;display:flex;flex-direction:column;gap:11px}
.legal-toc b{font-size:12px;letter-spacing:.07em;text-transform:uppercase;margin-bottom:8px;color:#6e7d76}
.legal-toc a{font-size:12px;line-height:1.4;color:#435951;text-decoration:none}
.legal-toc a:hover{text-decoration:underline}
.legal-article{min-width:0;color:#43504b;font-size:14px;line-height:1.78}
.legal-article h2{font-family:Georgia,"Times New Roman",serif;font-size:26px;color:var(--ink);line-height:1.2;margin:35px 0 14px;scroll-margin-top:100px}
.legal-article h2:first-child{margin-top:0}
.legal-article p{margin:0 0 13px}
.legal-article ul{padding-left:22px;margin:0 0 18px}
.legal-article li{margin-bottom:7px}
.legal-article a{color:#2d6253;text-underline-offset:3px}
.legal-article .legal-note{padding:15px 18px;border-left:3px solid #d6a380;background:#f4eee7;border-radius:0 12px 12px 0;margin:22px 0}
.legal-article .legal-meta{padding:16px 18px;background:#fffefa;border:1px solid var(--line);border-radius:15px;margin-bottom:20px}
.legal-article table{border-collapse:collapse;min-width:100%;font-size:13px;margin-bottom:20px}
.legal-article th,.legal-article td{border-bottom:1px solid #ddd9d1;padding:12px;text-align:left;vertical-align:top}
.legal-article th{background:#f0ebe4;color:#1b2b27}
@media(max-width:840px){.legal-layout{grid-template-columns:1fr;gap:24px}.legal-toc{position:static;flex-direction:row;flex-wrap:wrap;gap:10px 17px}.legal-toc b{width:100%}}
@media(max-width:640px){.cookie-popup{padding:17px;gap:11px;border-radius:17px}.cookie-popup__symbol{width:30px;height:30px;font-size:17px}.cookie-popup strong{font-size:18px}.cookie-popup p{font-size:12px}.cookie-popup__actions button{flex-grow:1}.legal-hero{padding:31px 0}.legal-content{padding:25px 0 52px}.legal-article h2{font-size:24px}.legal-article table{font-size:12px}}
@media(prefers-reduced-motion:reduce){.cookie-popup{transition:none}}

/* Second, distinct portrait used in the lower About section */
.about .image-card img{object-position:50% 46%}

/* Compact service cards on mobile: number sits left of the heading on one line */
@media(max-width:640px){
  .service-grid{gap:10px}
  .service-grid article{padding:15px 17px;min-height:auto;border-radius:16px;display:grid;grid-template-columns:auto 1fr;grid-template-areas:"num title" "text text";column-gap:9px;align-items:baseline}
  .service-grid .num{grid-area:num}
  .service-grid h3{grid-area:title;margin:0;font-size:21px}
  .service-grid p{grid-area:text;font-size:13px;line-height:1.5}
}

/* Same compact treatment for the lower steps cards ("Как работаем"):
   round number inline left of the heading, no separate number line */
@media(max-width:640px){
  .steps{gap:10px}
  .steps div{padding:15px 17px;border-radius:16px;display:grid;grid-template-columns:auto 1fr;grid-template-areas:"num title" "text text";column-gap:11px;align-items:center}
  .steps b{grid-area:num;width:30px;height:30px;font-size:14px}
  .steps h3{grid-area:title;margin:0;font-size:21px}
  .steps p{grid-area:text;font-size:13px;line-height:1.5}
}
