/* ==========================================================================
   GdeRabota.ru — калькулятор компенсации за неиспользованный отпуск
   Оформление перенесено из документа заказчика без изменений:
   Arial, 16px, line-height 1.55, синий #1769da, светлая сетка, тёмный подвал.
   ========================================================================== */

/* --- Токены темы (фирменные цвета страницы) ------------------------------- */
:root{
  --bg:#ffffff;
  --surface:#f1f6ff;
  --surface-2:#eef0fa;
  --text:#222b3b;
  --muted:#6c7788;
  --border:#e5eaf1;
  --brand:#1769da;
  --brand-2:#304ac4;
  --accent:#eef5ff;
  --grad:linear-gradient(135deg,#1769da,#304ac4);
  --radius-1:8px;
  --radius-2:12px;
  --radius-3:16px;
  --radius-pill:20px;
  --shadow-1:0 5px 25px #253b5b09;
  --shadow-md:0 5px 25px #253b5b09;
  --radius-sm:8px;
  --radius-md:12px;
  --radius-lg:16px;
  color-scheme:light;
}

/* --- База документа ------------------------------------------------------- */
:root{--ink:#222b3b;--muted:#6c7788;--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}}

/* --- Результат расчёта: пояснения и ошибки -------------------------------- */
.formula-hint{display:block;font-weight:400;color:#8296ae;font-size:12px;margin-top:2px;line-height:1.4}
.note-error{color:#b3261e;font-weight:700}
#leave-result .amount{margin-top:13px}
#leave-result .resultline:first-child{margin-top:0}

/* --- Перекрываем базовые стили темы, чтобы вид совпал с документом -------- */
body,h1,h2,h3,h4,h5,h6,p,li,summary,label,button,input,select,textarea{font-family:Arial,'Helvetica Neue',Helvetica,sans-serif}
h1,h2,h3,h4,h5,h6{color:var(--ink)}
a{text-decoration:none}
a:hover{text-decoration:underline}
button{background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer}
.calculate{background:var(--blue);color:#fff}

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