/* ==========================================================================
   Калькулятор зарплаты на руки — GdeRabota.ru
   Палитра, типографика и все размеры перенесены из исходного документа.
   Платформенный theme.css подключён раньше и перекрыт явными значениями ниже.
   ========================================================================== */

/* Токены платформы: подставляем цвета документа, чтобы ничего не «просвечивало» */
:root{
  --bg:#ffffff;
  --surface:#ffffff;
  --surface-2:#f1f6ff;
  --text:#222b3b;
  --muted:#6c7788;
  --border:#e5eaf1;
  --brand:#1769da;
  --brand-2:#304ac4;
  --accent:#3580e5;
  --grad:var(--brand);
  --font-sans:Arial,Helvetica,sans-serif;
  --font-display:Arial,Helvetica,sans-serif;
  color-scheme:light;

  /* токены самого документа */
  --ink:#222b3b;
  --blue:#1769da;
  --light:#eef5ff;
  --line:#e5eaf1;
}

*{box-sizing:border-box}
body{margin:0;font-family:Arial,sans-serif;color:var(--ink);background:#fff;font-size:16px;line-height:1.55}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:1160px;margin:auto;padding:0 24px}
header{border-bottom:1px solid var(--line)}
.header{height:76px;display:flex;align-items:center;gap:42px}
.logo{font-size:25px;font-weight:800;letter-spacing:-1.1px;color:#1769da}
.logo span{color:#263345}
.nav{display:flex;gap:28px;font-size:14px;color:#526075}
.nav a{color:inherit}
.right{margin-left:auto;font-size:14px}
.crumb{font-size:13px;color:#8a95a4;margin:32px 0 26px}
.crumb a{color:#8793a4}
.hero{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:32px}
.eyebrow{color:var(--blue);font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.hero h1{font-size:42px;letter-spacing:-1.6px;line-height:1.13;margin:12px 0 15px;max-width:750px}
.hero p{color:var(--muted);margin:0;max-width:710px}
.badge{flex:none;color:#2565b8;background:#eef5ff;border-radius:20px;padding:8px 14px;font-size:13px;font-weight:700}
.layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,.85fr);gap:24px;align-items:start}
.card{border:1px solid var(--line);border-radius:16px;padding:30px;background:white;box-shadow:0 5px 25px #253b5b09}
.card h2{font-size:22px;margin:0 0 5px;letter-spacing:-.4px}
.sub{color:var(--muted);font-size:14px;margin:0 0 25px}
.field{margin-top:21px}
label,.label{font-size:14px;font-weight:700;display:block;margin-bottom:8px}
.hint{font-size:13px;color:var(--muted);margin:7px 0 0}
select,input{font:inherit;width:100%;height:50px;border:1px solid #d9e1eb;background:white;color:var(--ink);padding:0 14px;border-radius:8px;outline:none}
select:focus,input:focus{border-color:var(--blue);box-shadow:0 0 0 3px #1769da1c}
.row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.calculate{margin-top:26px;width:100%;height:52px;border:0;border-radius:8px;background:var(--blue);font:700 16px Arial;color:white;cursor:pointer}
.calculate:hover{background:#125bc0}
.result{background:#f1f6ff;border:1px solid #e0ebfc;box-shadow:none}
.result .kicker{color:#637b9e;font-size:13px;font-weight:bold;text-transform:uppercase;letter-spacing:.06em}
.amount{font-size:39px;font-weight:800;letter-spacing:-1.3px;line-height:1.1;margin:13px 0 4px}
.per{color:#667991;font-size:14px}
.divider{height:1px;background:#dce8f8;margin:22px 0}
.resultline{display:flex;justify-content:space-between;gap:16px;font-size:14px;margin:12px 0}
.resultline span{color:#63758e}
.resultline b{text-align:right}
.note{font-size:13px;color:#718099;line-height:1.5;margin:20px 0 0}
.content{max-width:800px;padding:54px 0 72px}
.content h2{font-size:29px;letter-spacing:-.6px;line-height:1.2;margin:0 0 20px}
.content h3{font-size:20px;margin:32px 0 10px}
.content p,.content li{color:#4e5a6b}
.content li{padding-left:5px;margin:10px 0}
.steps{counter-reset:step;list-style:none;padding:0}
.steps li{position:relative;padding:0 0 0 46px;margin:22px 0}
.steps li:before{counter-increment:step;content:counter(step);position:absolute;left:0;top:0;background:#eaf3ff;color:var(--blue);border-radius:50%;width:30px;height:30px;text-align:center;line-height:30px;font-weight:bold}
.steps strong{color:var(--ink)}
.callout{background:#f6f9fd;border-left:3px solid #3580e5;padding:16px 20px;border-radius:0 8px 8px 0;margin:24px 0;color:#4e5a6b}
.faq{border-top:1px solid var(--line);margin-top:40px;padding-top:38px}
details{border-bottom:1px solid var(--line);padding:18px 0}
summary{cursor:pointer;font-weight:bold;list-style:none;display:flex;justify-content:space-between;gap:16px}
summary:after{content:'+';color:var(--blue);font-size:22px;line-height:1}
details[open] summary:after{content:'−'}
details p{margin-bottom:0}
.sources{font-size:13px;color:#7b8797;margin-top:40px}
.sources a{display:inline-block;margin:4px 10px 4px 0}
footer{border-top:1px solid var(--line);padding:25px 0;color:#8994a3;font-size:13px}
.footer{display:flex;justify-content:space-between}

@media(max-width:750px){
  .header{height:66px}
  .nav{display:none}
  .hero{display:block}
  .hero h1{font-size:32px}
  .badge{display:inline-block;margin-top:20px}
  .layout{grid-template-columns:1fr}
  .card{padding:22px}
  .content{padding-top:42px}
  .content h2{font-size:25px}
  .row{grid-template-columns:1fr}
  .row .field+ .field{margin-top:0}
  .right{font-size:12px}
  .amount{font-size:34px}
}

/* ---------- Шапка ---------- */
.site-header{background:#eef0fa;border-bottom:1px solid #ccd4f6}
.site-header-inner{max-width:1240px;min-height:76px;padding:12px 24px;margin:auto;display:flex;align-items:center;gap:30px;font-size:14px}
.site-header-inner>a:not(.brand):not(.post-job),.site-account a{color:#252c37}
.site-header .brand{color:#304bcd;font-weight:800;font-size:21px;letter-spacing:-1px;margin-right:15px}
.site-header .post-job{background:#304ac4;color:white;padding:10px 20px;border-radius:12px;white-space:nowrap}
.site-account{margin-left:auto;display:flex;align-items:center;gap:14px;white-space:nowrap}
.site-account a:first-child{color:#304ac4;font-size:21px}
.site-account small{color:#252c37;font-size:13px}

/* ---------- Подвал ---------- */
.site-footer{background:#18212b;border:0;border-radius:28px 28px 0 0;color:#89939c;padding:65px 0 30px}
.footer-inner{max-width:1240px;padding:0 24px;margin:auto}
.footer-grid{display:grid;grid-template-columns:2.1fr 1fr 1fr 1fr;gap:45px;border-top:1px solid #37414b;padding:55px 0}
.footer-brand{display:flex;flex-direction:column;align-items:flex-start}
.footer-logo{font-weight:800;font-size:22px;color:#fff}
.social{display:flex;gap:12px;margin-top:30px}
.social a{background:#304ac4;color:white;border-radius:50%;width:40px;height:40px;display:grid;place-items:center;font-weight:bold}
.footer-brand span{margin-top:auto;font-size:13px;color:#65717c}
.footer-col{display:flex;flex-direction:column;gap:13px;font-size:15px}
.footer-col b{color:#77838d;margin-bottom:8px}
.footer-col a,.footer-bottom a{color:#f1f3f5}
.lower{margin-top:65px}
.footer-bottom{border-top:1px solid #37414b;padding-top:35px;display:flex;justify-content:space-between;gap:20px;font-size:14px}
.footer-bottom span{color:#77838d}

@media(max-width:800px){
  .site-header-inner{gap:14px;flex-wrap:wrap}
  .site-header-inner>a:not(.brand):not(.post-job){display:none}
  .site-account{font-size:12px}
  .site-header .brand{margin-right:0}
  .footer-grid{grid-template-columns:1fr 1fr;gap:35px}
  .footer-brand span{margin-top:25px}
  .footer-bottom{flex-wrap:wrap}
}
@media(max-width:480px){
  .site-account a:not(:first-child){display:none}
  .site-header .post-job{font-size:12px;padding:9px}
  .footer-grid{grid-template-columns:1fr 1fr;gap:25px}
  .footer-col{font-size:14px}
  .footer-brand{grid-column:span 2}
}

/* ---------- Выпадающее меню работодателям ---------- */
.employer-menu{position:relative;font-size:14px}
.employer-menu summary{font-weight:400;cursor:pointer;display:flex;gap:8px;align-items:center}
.employer-menu summary:after{display:none}
.employer-dropdown{position:absolute;top:32px;left:-16px;background:#fff;border-radius:8px;box-shadow:0 4px 18px #0002;min-width:210px;padding:8px;z-index:5}
.employer-dropdown a{display:block;color:#252c37;padding:10px;border-radius:6px}
.employer-dropdown a:hover{background:#f2f4fc;text-decoration:none}

/* ---------- Мобильное меню ---------- */
.mobile-toggle,.mobile-menu{display:none}
.mobile-menu[hidden]{display:none!important}
@media(max-width:800px){
  .site-header-inner{flex-wrap:nowrap;min-height:68px;padding:10px 15px}
  .site-header .mobile-toggle{display:block;flex:none;width:40px;height:40px;border:1px solid #304ac4;border-radius:9px;background:transparent;color:#304ac4;font-size:20px;cursor:pointer}
  .site-header .brand{font-size:18px;white-space:nowrap}
  .site-header .post-job,.site-header .employer-menu{display:none}
  .site-account{margin-left:auto}
  .site-account a:last-child{display:inline-block!important;border:1px solid #304ac4;border-radius:9px;padding:8px 12px;font-size:0}
  .site-account a:last-child:after{content:'Вход';font-size:14px}
  .site-account a:nth-child(2){display:none}
  .mobile-menu:not([hidden]){display:block;position:fixed;inset:0;z-index:100;background:#fff;overflow:auto;padding:15px;color:#222b3b}
  .mobile-menu-top{display:flex;align-items:center;gap:12px;padding-bottom:15px;border-bottom:1px solid #ddd}
  .mobile-close{width:40px;height:40px;border:1px solid #304ac4;background:#eef0fa;border-radius:9px;color:#304ac4;font-size:23px;cursor:pointer}
  .mobile-group{display:flex;flex-direction:column;gap:18px;padding:30px 0;border-bottom:1px solid #ddd}
  .mobile-group:last-child{border:0}
  .mobile-group a{color:#304ac4}
  .site-footer{border-radius:20px 20px 0 0;padding:35px 0}
  .footer-grid{display:flex;flex-direction:column;padding:30px 0;gap:38px}
  .footer-brand{order:2}
  .footer-brand span{margin-top:30px}
  .footer-col{font-size:16px;gap:17px}
  .lower{margin-top:38px}
  .footer-bottom{display:flex;flex-direction:column;align-items:flex-start}
  .footer-bottom span{order:2}
}

/* ---------- Аккаунт в шапке ---------- */
.site-account{gap:12px}
.site-account a.favorites{display:inline-flex;align-items:center;gap:2px;color:#304ac4;font-size:inherit}
.site-account a.favorites small{color:#252c37;font-size:13px}
.site-account a.login-button{display:inline-block;color:#304ac4;border:1px solid #304ac4;border-radius:12px;padding:9px 20px;white-space:nowrap}
.site-account a.login-button:hover{background:#e4e9ff;text-decoration:none}
@media(max-width:800px){
  .site-account a.login-button{display:inline-block!important;padding:8px 14px;font-size:0}
  .site-account a.login-button:after{content:"Вход";font-size:14px}
  .site-account a.favorites{display:inline-flex!important}
}

/* ---------- Крошки и калькулятор ---------- */
.crumb{display:flex;align-items:center;gap:10px;font-size:16px;color:#252c37}
.crumb a{color:#b4becb}
.crumb-arrow{width:9px;height:9px;border-top:1.5px solid #b4becb;border-right:1.5px solid #b4becb;transform:rotate(45deg);margin-right:2px}
.calc-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.calc-grid .field{margin-top:0}
.calc-grid .wide{grid-column:1/-1}
.form-section{margin:24px 0 12px;font-size:16px;font-weight:700}
.optional{font-weight:normal;color:#6c7788}
.breakdown{border-top:1px solid #dce8f8;margin-top:18px;padding-top:10px}
.summary-tag{display:inline-block;color:#3054ae;background:#e5efff;border-radius:20px;padding:5px 11px;font-size:13px;font-weight:700}
.faq details summary{font-size:16px}
.resultline b{white-space:nowrap}
.answer-note{margin-top:16px;padding:14px;background:#fff;border-radius:8px;color:#53647a;font-size:13px}
.notice{padding:15px 18px;border-radius:10px;background:#f6f8fc;color:#566477;font-size:14px;margin:20px 0 0}
@media(max-width:600px){
  .calc-grid{grid-template-columns:1fr}
  .calc-grid .wide{grid-column:auto}
}

/* ---------- FAQ списком ---------- */
.faq{border-top:0;margin-top:40px;padding:0}
.faq h2{margin-bottom:20px}
.faq-list{background:#eef0fa;border-radius:12px;padding:18px}
.faq-list details{background:#fff;border:1px solid #d9dfea;border-radius:9px;padding:0;margin:0 0 12px}
.faq-list details:last-child{margin-bottom:0}
.faq-list summary{padding:16px 18px;align-items:center;gap:15px;font-size:15px;font-weight:700;line-height:1.4}
.faq-list summary:after{content:"";display:block;flex:0 0 auto;width:7px;height:7px;border-right:1.5px solid #273344;border-bottom:1.5px solid #273344;transform:rotate(45deg);margin:0 2px 4px 0}
.faq-list details[open] summary:after{content:"";transform:rotate(225deg);margin:4px 2px 0 0}
.faq-list details p{margin:0;padding:0 18px 17px;color:#4e5a6b;font-size:15px;line-height:1.6}
@media(max-width:600px){
  .faq-list{padding:12px}
  .faq-list summary{padding:14px;font-size:14px}
  .faq-list details p{padding:0 14px 14px}
}

/* ---------- Таблица ставок ---------- */
.rates{padding:6px 18px}
.rates .resultline{margin:0;padding:11px 0;font-size:15px;border-bottom:1px solid #d9dfea}
.rates .resultline:last-child{border:0}
.rates .resultline span{color:#4e5a6b}

/* ==========================================================================
   Приведение к документу поверх platform theme.css
   ========================================================================== */
body{background:#fff;color:var(--ink);font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.55}
h1,h2,h3,summary,strong,b{font-family:inherit}
details>summary{list-style:none}
.hint,.note,.sub,.per,.footer-col a,.footer-bottom a{letter-spacing:normal}

/* H1 из двух строк, как в документе: «Калькулятор зарплаты / на руки» */
.hero h1{max-width:500px;text-wrap:pretty;text-transform:none;hyphens:none}
@media(max-width:750px){
  .hero h1{max-width:100%}
}

/* Кнопка расчёта остаётся яркой и контрастной при любых темах */
.calculate{background:var(--blue);color:#fff;font-family:Arial,Helvetica,sans-serif;font-weight:700;font-size:16px;-webkit-appearance:none;appearance:none}
.calculate:hover{background:#125bc0}
.calculate:focus-visible{outline:2px solid #125bc0;outline-offset:2px}

/* Инпуты не наследуют платформенные размеры и цвета */
input[type="number"]{height:50px;border:1px solid #d9e1eb;border-radius:8px;background:#fff;color:var(--ink);font-size:16px;box-shadow:none}
input[type="number"]:focus{border-color:var(--blue);box-shadow:0 0 0 3px #1769da1c}

/* Ссылки документа */
a{color:var(--blue)}
.site-header a{color:#252c37}
.site-header .brand{color:#304bcd}
.site-header .post-job{color:#fff}
.site-account a.login-button{color:#304ac4}
.footer-col a,.footer-bottom a{color:#f1f3f5}
.crumb a{color:#b4becb}
.sources a,.callout a{color:var(--blue)}

/* Скролл и выделение */
::selection{background:#cfe1ff;color:#132033}
html{scrollbar-color:#c3ceda #fff}

/* --- Недостающие дизайн-токены (значения из theme.css платформы) --- */
:root{
  --font-size-base: var(--step-0, clamp(1rem, .96rem + .2vw, 1.125rem));
  --line-height: 1.6;
}
