/* Valmis — стили сайта. Цвета и размеры меняются в :root. */
@font-face{font-family:Inter;font-weight:400;font-display:swap;src:url("../fonts/inter-latin-400-normal.da03732a27e1.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Inter;font-weight:400;font-display:swap;src:url("../fonts/inter-latin-ext-400-normal.0a6ff1a7c1e4.woff2") format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Inter;font-weight:400;font-display:swap;src:url("../fonts/inter-cyrillic-400-normal.74a70a8b71d0.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Inter;font-weight:500;font-display:swap;src:url("../fonts/inter-latin-500-normal.51205681a1ba.woff2") format("woff2");unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2212}
@font-face{font-family:Inter;font-weight:500;font-display:swap;src:url("../fonts/inter-latin-ext-500-normal.90ff4f7e8bcb.woff2") format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+1E00-1E9F}
@font-face{font-family:Inter;font-weight:500;font-display:swap;src:url("../fonts/inter-cyrillic-500-normal.0f5211cce140.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+2116}
@font-face{font-family:Inter;font-weight:600;font-display:swap;src:url("../fonts/inter-latin-600-normal.2ede57db1a3a.woff2") format("woff2");unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2212}
@font-face{font-family:Inter;font-weight:600;font-display:swap;src:url("../fonts/inter-latin-ext-600-normal.65aed4e1ef63.woff2") format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+1E00-1E9F}
@font-face{font-family:Inter;font-weight:600;font-display:swap;src:url("../fonts/inter-cyrillic-600-normal.40727edfba55.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+2116}
@font-face{font-family:Inter;font-weight:700;font-display:swap;src:url("../fonts/inter-latin-700-normal.8ca0a5155296.woff2") format("woff2");unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2212}
@font-face{font-family:Inter;font-weight:700;font-display:swap;src:url("../fonts/inter-latin-ext-700-normal.aa4c26661f64.woff2") format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+1E00-1E9F}
@font-face{font-family:Inter;font-weight:700;font-display:swap;src:url("../fonts/inter-cyrillic-700-normal.fc4bfa8e4204.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+2116}
@font-face{font-family:Inter;font-weight:800;font-display:swap;src:url("../fonts/inter-latin-800-normal.900ae45e40b8.woff2") format("woff2");unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2212}
@font-face{font-family:Inter;font-weight:800;font-display:swap;src:url("../fonts/inter-latin-ext-800-normal.8191a7d51904.woff2") format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+1E00-1E9F}
@font-face{font-family:Inter;font-weight:800;font-display:swap;src:url("../fonts/inter-cyrillic-800-normal.fb99cd5862d4.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+2116}

:root{
  --ink:#0B1F2A; --ink-2:#1C3A4A; --green:#12B76A; --green-d:#0A7D47; --green-soft:#E3F6EC;
  --bg:#F4F6F5; --card:#FFFFFF; --muted:#54646C; --line:#E1E7E4; --field:#8A9893; --danger:#B83232; --warn:#8A5A10;
  --radius:16px; --radius-s:10px; --shadow:0 1px 2px rgba(11,31,42,.06),0 6px 20px rgba(11,31,42,.06);
  --max:1120px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px;line-height:1.55;color:var(--ink);background:var(--bg);overflow-x:hidden}
a{color:var(--green-d);text-decoration:none}
a:hover{text-decoration:underline}
img,svg{max-width:100%}
h1,h2,h3{line-height:1.2;letter-spacing:-.02em;margin:0 0 .5em}
h1{font-size:clamp(28px,5vw,44px);font-weight:800}
h2{font-size:clamp(22px,3.4vw,28px);font-weight:800}
h3{font-size:18px;font-weight:700}
p{margin:0 0 1em}
.container{max-width:var(--max);margin:0 auto;padding:0 16px}
.muted{color:var(--muted)}
.small{font-size:14px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* шапка */
.header{background:var(--card);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}
.header .container{display:flex;align-items:center;gap:12px;height:64px}
.logo{display:flex;align-items:center;gap:1px;color:var(--ink);font-weight:800;font-size:24px;letter-spacing:-.03em}
.logo:hover{text-decoration:none}
.logo svg{width:28px;height:28px}
.nav{display:flex;align-items:center;gap:4px;margin-left:auto}
.nav a.link{color:var(--ink);font-weight:600;padding:8px 12px;border-radius:999px}
.nav a.link:hover{background:var(--bg);text-decoration:none}
.menu{position:relative}
.menu summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:999px;background:var(--bg);font-weight:700}
.menu summary::-webkit-details-marker{display:none}
.menu .drop{position:absolute;right:0;top:48px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);min-width:220px;padding:8px;display:flex;flex-direction:column}
.menu .drop a,.menu .drop button{display:block;text-align:left;padding:10px 12px;border-radius:var(--radius-s);color:var(--ink);font:inherit;font-weight:500;background:none;border:0;cursor:pointer;width:100%}
.menu .drop a:hover,.menu .drop button:hover{background:var(--bg);text-decoration:none}
.menu .drop hr{border:0;border-top:1px solid var(--line);margin:6px 0}
.avatar{width:40px;height:40px;border-radius:999px;background:var(--ink);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:15px;flex:none}
.avatar.lg{width:72px;height:72px;font-size:26px}
@media (max-width:720px){.nav .hide-m{display:none}}

/* кнопки */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 20px;border-radius:999px;font:inherit;font-weight:700;border:2px solid transparent;cursor:pointer;line-height:1.1;text-align:center}
.btn:hover{text-decoration:none}
.btn-primary{background:var(--green);color:var(--ink)}
.btn-primary:hover{background:#16C977}
.btn-dark{background:var(--ink);color:#fff}
.btn-dark:hover{background:var(--ink-2)}
.btn-ghost{background:transparent;border-color:var(--line);color:var(--ink)}
.btn-ghost:hover{border-color:var(--ink)}
.btn-danger{background:transparent;border-color:#F1CACA;color:var(--danger)}
.btn-sm{padding:8px 14px;font-size:14px}
.btn-block{width:100%}

/* сообщения */
.messages{margin:16px auto 0}
.msg{padding:12px 16px;border-radius:var(--radius-s);background:var(--green-soft);border:1px solid #BCE8D1;margin-bottom:8px;font-weight:500}
.msg.error{background:#FCEDED;border-color:#F1CACA}
.msg.info,.msg.warning{background:#FFF7E6;border-color:#F4DFB1}

/* главная */
.hero{background:var(--ink);color:#fff;padding:56px 0 64px;position:relative;overflow:hidden}
.hero h1{max-width:720px}
.hero p.lead{font-size:clamp(17px,2.2vw,20px);color:#C7D5DC;max-width:620px}
.hero .actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.hero .btn-ghost{color:#fff;border-color:#3A5868}
.hero .btn-ghost:hover{border-color:#fff}
.hero-search{display:flex;gap:8px;margin-top:28px;max-width:560px;background:#fff;border-radius:999px;padding:6px}
.hero-search input{flex:1;border:0;padding:10px 14px;font:inherit;border-radius:999px;outline:none;min-width:0}
.hero-deco{position:absolute;right:-40px;bottom:-60px;width:360px;opacity:.12;pointer-events:none}
@media (max-width:720px){.hero-deco{width:220px;right:-60px;bottom:-40px}}
.section{padding:48px 0}
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.cats{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.cat{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:16px;color:var(--ink);display:flex;flex-direction:column;gap:6px;min-height:112px}
.cat:hover{border-color:var(--green);text-decoration:none;box-shadow:var(--shadow)}
.cat .ico{font-size:26px;line-height:1}
.cat b{font-weight:700;line-height:1.25}
.cat span{font-size:13px;color:var(--muted)}
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;counter-reset:step}
@media (max-width:560px){.steps{grid-template-columns:1fr 1fr;gap:10px}.step{padding:14px}.step h3{font-size:16px}.step p{font-size:14px;margin:0}}
.step{background:var(--card);border-radius:var(--radius);padding:20px;border:1px solid var(--line)}
.step::before{counter-increment:step;content:counter(step);display:inline-flex;width:36px;height:36px;border-radius:999px;background:var(--green-soft);color:var(--green-d);font-weight:800;align-items:center;justify-content:center;margin-bottom:10px}
.band{background:var(--green-soft);border-radius:var(--radius);padding:28px;display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between}
.band h2{margin:0}

/* карточки задач */
.task-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
@media (max-width:360px){.task-grid{grid-template-columns:1fr}}
.task-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:16px;color:var(--ink);display:flex;flex-direction:column;gap:8px}
.task-card:hover{border-color:var(--green);text-decoration:none;box-shadow:var(--shadow)}
.task-card h3{margin:0;font-size:17px;overflow-wrap:anywhere}
.task-card .meta{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:14px;color:var(--muted)}
.task-card .foot{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:8px;border-top:1px solid var(--line)}
.price{font-weight:800;font-size:18px;white-space:nowrap}
.price small{font-weight:500;font-size:13px;color:var(--muted)}
.pill{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:999px;background:var(--bg);font-size:13px;font-weight:600;color:var(--ink)}
.pill.green{background:var(--green-soft);color:var(--green-d)}
.pill.dark{background:var(--ink);color:#fff}
.pill.warn{background:#FFF3DC;color:var(--warn)}

/* фильтры */
.filters{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:8px;margin-bottom:16px}
@media (max-width:720px){.filters{grid-template-columns:1fr 1fr}.filters .q{grid-column:1/-1}.filters button{grid-column:1/-1}}

/* формы */
input[type=text],input[type=email],input[type=password],input[type=number],input[type=date],input[type=search],input[type=tel],input[type=url],select,textarea{width:100%;font:inherit;padding:12px 14px;border:1.5px solid var(--field);border-radius:var(--radius-s);background:#fff;color:var(--ink)}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--green);box-shadow:0 0 0 3px rgba(18,183,106,.18)}
textarea{resize:vertical}
label{font-weight:600;display:block;margin-bottom:6px}
.field{margin-bottom:16px}
.field .help,.helptext{display:block;font-size:13px;color:var(--muted);margin-top:4px;font-weight:400}
.errorlist{list-style:none;padding:0;margin:4px 0 0;color:var(--danger);font-size:14px;font-weight:500}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:560px){.row2{grid-template-columns:1fr}}
.check{display:flex;gap:10px;align-items:flex-start;font-weight:500}
.check input{flex:none;width:20px;height:20px;margin-top:2px;accent-color:var(--green)}
.stars{display:flex;flex-direction:row-reverse;justify-content:flex-end;gap:4px}
.stars input{position:absolute;opacity:0;width:1px;height:1px}
.stars label{font-size:30px;line-height:1;color:#CBD5D1;cursor:pointer;margin:0}
.stars input:checked ~ label,.stars label:hover,.stars label:hover ~ label{color:#F5B301}

/* панели и раскладка страницы задачи */
.page{padding:28px 0 56px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:20px}
.card + .card{margin-top:16px}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start}
@media (max-width:900px){.layout{grid-template-columns:1fr}}
.narrow{max-width:640px;margin:0 auto}
.kv{display:grid;grid-template-columns:auto 1fr;gap:8px 16px;margin:16px 0}
.kv dt{color:var(--muted)}
.kv dd{margin:0;font-weight:600}
.desc{white-space:pre-line;overflow-wrap:anywhere}
.person{display:flex;gap:12px;align-items:center;color:var(--ink)}
.person:hover{text-decoration:none}
.person b{display:block}
.offer{border:1px solid var(--line);border-radius:var(--radius);padding:16px}
.offer + .offer{margin-top:12px}
.offer.accepted{border-color:var(--green);background:var(--green-soft)}
.offer .top{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:8px}
.contact{background:var(--green-soft);border-radius:var(--radius-s);padding:14px;margin-top:12px}
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:16px;overflow-x:auto}
.tabs a{padding:10px 14px;font-weight:600;color:var(--muted);border-bottom:2px solid transparent;white-space:nowrap}
.tabs a.on{color:var(--ink);border-color:var(--green)}
.tabs a:hover{text-decoration:none;color:var(--ink)}
.list-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);color:var(--ink)}
.list-row:last-child{border-bottom:0}
.list-row:hover{text-decoration:none}
.empty{text-align:center;padding:40px 16px;color:var(--muted)}
.pager{display:flex;gap:8px;justify-content:center;margin-top:20px}
.rating{color:var(--ink);font-weight:700}
.rating::first-letter{color:#E0A100}
.review{padding:14px 0;border-bottom:1px solid var(--line)}
.review:last-child{border-bottom:0}

/* вход и регистрация (allauth) */
.auth main .page>.container{max-width:460px}
.auth main h1{font-size:28px}
.auth main form:not(.auth-box form){background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:20px;margin:12px 0}
.auth main form p{margin-bottom:14px}
.auth main form button[type=submit],.auth main form button:not([type]){width:100%;margin-top:6px;padding:12px 20px;border-radius:999px;border:0;background:var(--green);color:var(--ink);font:inherit;font-weight:700;cursor:pointer}
.auth main ul{padding-left:18px}
.auth .socialaccount_providers,.auth main .provider-list{list-style:none;padding:0}
.google-btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:12px;border-radius:999px;border:1.5px solid var(--line);background:#fff;color:var(--ink);font-weight:700;margin:8px 0}
.google-btn:hover{border-color:var(--ink);text-decoration:none}
.or{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:14px;margin:12px 0}
.or::before,.or::after{content:"";flex:1;border-top:1px solid var(--line)}

/* подвал */
.footer{background:var(--ink);color:#AABEC8;padding:32px 0;font-size:14px}
.footer .container{display:flex;flex-wrap:wrap;gap:16px 32px;justify-content:space-between;align-items:center}
.footer a{color:#fff}
.footer .logo{color:#fff}
.langs{display:flex;gap:6px}
.langs button{background:transparent;border:1px solid #3A5868;color:#fff;border-radius:999px;padding:6px 12px;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.langs button.on{background:#fff;color:var(--ink);border-color:#fff}
.prose h2{margin-top:1.4em}
.prose{max-width:760px}
.menu summary.avatar{background:var(--ink);color:#fff;font-size:15px}

/* --- правки после проверки --- */
.skip{position:absolute;left:-999px;top:8px;background:var(--ink);color:#fff;padding:10px 14px;border-radius:8px;z-index:50}
.skip:focus{left:8px}
:focus-visible{outline:3px solid var(--green-d);outline-offset:2px}
.hero .container{position:relative;z-index:1}
.hero-search input{border:0 !important;box-shadow:none !important}
.btn,.langs button,.nav a.link{min-height:44px}
.btn-sm{min-height:40px}
.cta{white-space:nowrap}
.show-xs{display:none}
@media (max-width:400px){.hide-xs{display:none}.show-xs{display:inline}}
.field.has-error input,.field.has-error select,.field.has-error textarea{border-color:var(--danger);background:#FFF8F8}
.opt{font-weight:400;color:var(--muted);font-size:14px}
fieldset.field{border:0;padding:0;margin:0 0 16px}
fieldset.field legend{font-weight:600;margin-bottom:6px;padding:0}
.stars input:focus-visible + label{outline:3px solid var(--green-d);border-radius:6px}
.stars label{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;font-size:34px}
.ico-s{width:15px;height:15px;vertical-align:-2px}
.task-title{font-size:clamp(24px,4vw,32px);overflow-wrap:anywhere}
.row-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
.btn-link{background:none;border:0;color:var(--muted);text-decoration:underline;padding:10px 0;font:inherit;cursor:pointer;min-height:44px}
.muted-link{color:var(--muted)}
.tips{padding-left:18px;margin:0}
.back{display:inline-flex;align-items:center;min-height:44px}
.footer-links{display:flex;flex-wrap:wrap;gap:4px 18px}
.footer-links a{display:inline-flex;align-items:center;min-height:44px}
@media (max-width:560px){.footer-links{flex-direction:column;gap:0}}
.langs.in-menu{padding:6px 8px}
.langs.in-menu button{border-color:var(--line);color:var(--ink);min-height:40px}
.langs.in-menu button.on{background:var(--ink);color:#fff;border-color:var(--ink)}
.auth-box{max-width:460px;margin:0 auto}
.auth-box h1{font-size:28px}
.auth-box .check a{text-decoration:underline}
.google-btn{min-height:48px;cursor:pointer;font:inherit;font-weight:700}
.lang-hint{background:var(--ink);color:#fff;font-size:14px}
.lang-hint .container{display:flex;gap:12px;align-items:center;min-height:44px;flex-wrap:wrap}
.lang-hint a{color:#fff;text-decoration:underline}
