/* «Ремонт и дизайн» /mastera/ и анкета /mastera/partneram/ — стили старого сайта (встроенный <style> страниц 23–26.10.2026), перенесены 10.11.2026.
   Отступы заголовков и абзацев — общие из template.css (h2,h3 padding 20px 0; p padding-bottom 15px), как было на старой странице.
   Формы: шрифт полей 16px (iPhone не приближает страницу), у select своя высота и стрелка (правило 23.10: не «font: … inherit»). */
.pro{--acc:#ff8a05;--acc-ink:#b35d00;--ink:#1d1d1b;--mut:#6b6a66;--line:#e4e2dc;--card:#fbfaf7;max-width:1200px;color:var(--ink)}
.pro *,.pro *::before,.pro *::after{box-sizing:border-box}
.pro-lead{max-width:780px;font-size:17px;line-height:1.55;margin:0 0 18px;color:#333}
.pro h2{font-size:24px;line-height:1.25;margin:36px 0 10px}
.pro .back{margin:0 0 8px;font-size:14.5px;color:var(--mut)}.pro .back a{color:var(--acc-ink);font-weight:700}
.pro-q{font-size:21px;font-weight:800;margin:0 0 12px;color:var(--ink)}
.pro-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.pro-tab{display:flex;gap:12px;align-items:center;width:100%;text-align:left;border:2px solid var(--line);border-radius:16px;background:#fff;padding:14px;margin:0;cursor:pointer;font:inherit;color:var(--ink);transition:border-color .15s,background-color .15s}
.pro-tab:hover{border-color:#f5c48a}.pro-tab:focus-visible{outline:2px solid var(--acc);outline-offset:2px}
.pro-tab.on{border-color:var(--acc);background:#fff8ef}
.pro-tab .ic{flex:none;width:44px;height:44px;border-radius:12px;background:#fff4e5;display:flex;align-items:center;justify-content:center;color:var(--acc-ink)}.pro-tab .ic svg{width:24px;height:24px}
.pro-tab .t{min-width:0}.pro-tab b{display:block;font-size:16.5px;line-height:1.2}.pro-tab small{display:block;font-size:13px;line-height:1.35;color:var(--mut);margin-top:3px}
.pro-pn{margin:14px 0 0;border:1px solid var(--line);border-radius:18px;background:var(--card);padding:20px;scroll-margin-top:110px}
.pro .pro-pn h3{font-size:21px;font-weight:700;margin:0 0 6px;line-height:1.25}.pro-pn>p{margin:0 0 4px;color:#333;font-size:15.5px;line-height:1.5;max-width:820px}
.pro-pn .acts{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 0}
.pro-pn .or{margin:16px 0 0;color:var(--mut);font-size:14.5px}
.pro-pn .note{margin:14px 0 0;color:var(--mut);font-size:14.5px}
/* ссылки внутри страницы — кнопки (на старом сайте обработчик шаблона прокручивал к якорю скрытого раздела наверх) */
.pro .lnk{border:0;background:none;padding:0;margin:0;font:inherit;font-weight:700;color:var(--acc-ink);text-decoration:underline;cursor:pointer}
.pro-k{margin:16px 0 8px;font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--mut)}
.pro-lad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.pro-c{border:1px solid var(--line);border-radius:14px;background:#fff;padding:14px;display:flex;flex-direction:column;gap:6px}
.pro-c .top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.pro-c .ic{width:40px;height:40px;border-radius:12px;background:#fff4e5;display:flex;align-items:center;justify-content:center;color:var(--acc-ink);flex:none}.pro-c .ic svg{width:22px;height:22px}
.pro-c .lv{font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--acc-ink);background:#fff4e5;border-radius:999px;padding:4px 9px;white-space:nowrap}
.pro-c .lv.free{color:#1d7a46;background:#e8f5ec}
.pro-c h4{font-size:17px;font-weight:700;margin:2px 0 0;line-height:1.25}.pro-c .who{margin:0;font-size:13.5px;font-weight:700;color:var(--ink)}
.pro-c p{margin:0;color:var(--mut);font-size:14.5px;line-height:1.45}
.pro-c .a{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto;padding-top:6px}
.pro-btn{display:inline-block;border:1px solid var(--acc);border-radius:10px;padding:9px 13px;font-size:14px;font-weight:700;line-height:1.2;text-decoration:none;cursor:pointer;background:#fff;color:var(--acc-ink);font-family:inherit;text-align:center}
.pro-btn.o{background:var(--acc);color:#fff}.pro-btn:hover{color:var(--acc-ink);text-decoration:none}.pro-btn.o:hover{color:#fff;background:#ff7a00}
.pro-btn:focus-visible{outline:2px solid var(--acc-ink);outline-offset:2px}
.pro-btn.pro-send{padding:11px 18px;font-size:15px}.pro-btn[disabled]{opacity:.6;cursor:wait}
.pro-ms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.pro-m{display:flex;gap:14px;border:1px solid var(--line);border-radius:14px;background:#fff;padding:14px;scroll-margin-top:110px}
.pro-m .ph{flex:none;width:96px;height:120px;border-radius:12px;overflow:hidden;background:#fff4e5;display:flex;align-items:center;justify-content:center}
.pro-m .ph img{width:100%;height:100%;object-fit:cover;display:block}.pro-m .ph span{font-size:36px;font-weight:800;color:var(--acc-ink);letter-spacing:.02em}
.pro-m .b{display:flex;flex-direction:column;gap:5px;min-width:0}
.pro-m .lv{align-self:flex-start;max-width:100%;font-size:11.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#1d7a46;background:#e8f5ec;border-radius:999px;padding:3px 9px}
.pro-m h4{font-size:19px;font-weight:700;margin:0;line-height:1.2}.pro-m .who{margin:0;font-size:14px;font-weight:700;color:var(--ink)}
.pro-m p{margin:0;color:var(--mut);font-size:14.5px;line-height:1.45}
.pro-m ul{list-style:none;margin:2px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.pro-m li{font-size:12.5px;background:var(--card);border:1px solid var(--line);border-radius:999px;padding:3px 9px;color:var(--ink);margin:0}
.pro-m li::before{content:none}
.pro-m .a{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}
.pro-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;counter-reset:s;margin:0}
.pro-steps.pro-steps5{grid-template-columns:repeat(5,minmax(0,1fr))}
.pro-steps div{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:12px 14px}.pro-steps h3{font-size:16px;font-weight:700;margin:0 0 4px}.pro-steps h3::before{counter-increment:s;content:counter(s) ". ";color:var(--acc-ink)}
.pro-steps p{margin:0;color:var(--mut);font-size:14.5px;line-height:1.45}
.pro-trust{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0}
.pro-trust div{display:flex;gap:8px;align-items:flex-start;font-size:14px;line-height:1.45;color:var(--mut)}.pro-trust b{color:var(--ink)}
.pro-trust .ck{flex:none;width:20px;height:20px;margin-top:1px;color:#1d7a46}.pro-trust .ck svg{width:20px;height:20px}
.pro-roles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:6px 0 0}
.pro-roles div{border-top:3px solid var(--acc);padding:10px 2px 0}.pro-roles b{display:block;font-size:16px;margin-bottom:3px}.pro-roles span{color:var(--mut);font-size:14.5px;line-height:1.4}
.pro-roles a{color:var(--acc-ink)}
.pro-fm{margin:18px 0 10px;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:20px;max-width:860px;scroll-margin-top:110px}
.pro-fm h2{margin:0 0 6px}.pro-fm>p{margin:0 0 14px;color:var(--mut)}
.pro-fm form{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0}.pro-fm label{display:flex;flex-direction:column;gap:4px;font-size:13px;font-weight:700;margin:0;color:var(--ink)}
.pro-fm .w{grid-column:1/-1}
.pro-fm input:not([type=checkbox]):not(.hp),.pro-fm textarea,.pro-fm select{font-size:16px;line-height:1.3;font-family:inherit;font-weight:400;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);width:100%;height:auto;min-height:46px;margin:0;box-shadow:none}
.pro-fm input:focus,.pro-fm textarea:focus,.pro-fm select:focus{outline:2px solid #f5c48a;outline-offset:0;border-color:var(--acc)}
.pro-fm select{-webkit-appearance:none;appearance:none;padding-right:38px;cursor:pointer;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6a66' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center/16px 16px}
.pro-fm .c input[type=checkbox]{width:20px;height:20px;margin:1px 0 0;flex:none;accent-color:var(--acc)}
.pro-fm textarea{min-height:80px;resize:vertical}.pro-fm .c{flex-direction:row;gap:8px;font-weight:500;color:var(--mut);align-items:flex-start;line-height:1.45}
.pro-fm .c a{color:var(--acc-ink)}
.pro-fm .row{grid-column:1/-1;margin:0;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.pro-fm .msg{font-weight:700}.pro-fm .msg.ok{color:#1d7a46}.pro-fm .msg.err{color:#b23b1e}
.pro-fm .pick{grid-column:1/-1;margin:0;font-size:14.5px;color:var(--ink)}.pro-fm .pick button{border:0;background:none;color:var(--acc-ink);text-decoration:underline;cursor:pointer;font:inherit;padding:0 0 0 6px}
.pro .hp{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;border:0!important;overflow:hidden;clip-path:inset(50%)}
.pro-join{display:flex;gap:12px 16px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:28px 0 8px;padding:16px 18px;border:1px dashed #d9d4ca;border-radius:16px;max-width:860px}
.pro-join p{margin:0;color:var(--mut);font-size:15px;line-height:1.45}.pro-join b{color:var(--ink)}
/* без JS видны все разделы; с JS — один выбранный */
.js-pro .pro-pn{display:none}.js-pro .pro-pn.on{display:block}
@media (max-width:1100px){.pro-tabs{grid-template-columns:1fr 1fr}.pro-trust{grid-template-columns:1fr 1fr}.pro-ms{grid-template-columns:1fr}.pro-steps.pro-steps5{grid-template-columns:1fr 1fr 1fr}}
@media (max-width:1000px){.pro-roles{grid-template-columns:1fr 1fr}.pro-steps.pro-steps5{grid-template-columns:1fr 1fr}}
@media (max-width:800px){.pro-lad,.pro-steps{grid-template-columns:1fr}}
@media (max-width:640px){.pro-fm form{grid-template-columns:1fr}.pro-lead{font-size:16px}.pro-trust,.pro-roles,.pro-steps.pro-steps5{grid-template-columns:1fr}.pro-pn{padding:16px}.pro-fm{padding:16px}.pro h2{font-size:21px}}
@media (max-width:520px){.pro-tabs{gap:8px}.pro-tab{flex-direction:column;align-items:flex-start;gap:8px;padding:12px}.pro-tab .ic{width:38px;height:38px}.pro-tab .ic svg{width:21px;height:21px}.pro-tab b{font-size:15.5px}
  .pro-m{flex-direction:column}.pro-m .ph{width:84px;height:84px;border-radius:50%}.pro-m .ph span{font-size:30px}}
/* 26.10: галерея «Примеры работ» мастера + лайтбокс */
.pm-works{margin-top:10px}
.pm-works .pm-h{font-size:13px;font-weight:700;color:var(--ink);margin:0 0 6px}
.pm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(78px,1fr));gap:6px}
.pm-grid a{display:block;aspect-ratio:1/1;border-radius:8px;overflow:hidden;background:#f1f1f1;cursor:zoom-in}
.pm-grid a img{width:100%;height:100%;object-fit:cover;display:block}
.pm-grid a.pm-hide{display:none}
.pm-more{margin-top:8px;font-size:13px;font-weight:700;color:var(--acc-ink);background:none;border:0;padding:4px 0;cursor:pointer;align-self:flex-start}
.pm-lb{position:fixed;inset:0;z-index:100000;background:rgba(12,12,14,.93);display:none;align-items:center;justify-content:center}
.pm-lb.on{display:flex}
.pm-lb img{max-width:94vw;max-height:88vh;object-fit:contain;border-radius:6px}
.pm-lb button{position:absolute;color:#fff;background:rgba(0,0,0,.4);border:0;cursor:pointer;line-height:1;border-radius:50%;display:flex;align-items:center;justify-content:center}
.pm-lb .pm-x{top:max(12px,env(safe-area-inset-top));right:14px;width:46px;height:46px;font-size:28px}
.pm-lb .pm-nav{top:50%;transform:translateY(-50%);width:48px;height:48px;font-size:30px}
.pm-lb .pm-prev{left:10px}.pm-lb .pm-next{right:10px}
.pm-lb .pm-cnt{position:absolute;bottom:max(14px,env(safe-area-inset-bottom));left:0;right:0;text-align:center;color:#fff;font-size:13px;opacity:.85;background:none}
.pm-lb .pm-buy{position:absolute;bottom:calc(max(14px,env(safe-area-inset-bottom)) + 30px);left:50%;transform:translateX(-50%);background:#ff8a05;color:#fff;font-weight:700;font-size:15px;text-decoration:none;padding:11px 22px;border-radius:9px;box-shadow:0 4px 16px rgba(0,0,0,.35);white-space:nowrap;max-width:90vw}
.pm-lb .pm-buy:hover{background:#ff7a00;color:#fff}
@media(max-width:600px){.pm-grid{grid-template-columns:repeat(auto-fill,minmax(66px,1fr))}}
