/*
Theme Name: Дамир Галеев — резюме
Description: Персональное резюме руководителя производства полимеров.
Version: 1.2.0
Text Domain: galeev-resume
*/
:root{--ink:#182c3b;--muted:#667582;--blue:#245de2;--line:#e2e8ee;--paper:#fff;--bg:#f3f5f7;--soft:#f0f5ff}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:32px}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased;font-size:15px;line-height:1.65}a{color:inherit;text-decoration:none}a:focus-visible,button:focus-visible{outline:3px solid #edb938;outline-offset:5px}a:hover{color:var(--blue)}svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.topbar{max-width:1152px;margin:auto;height:91px;display:flex;align-items:center;justify-content:space-between;padding:0 12px}.brand{display:flex;align-items:center;gap:12px;font-size:13px;font-weight:600;letter-spacing:.02em}.monogram{background:var(--ink);color:white;display:grid;place-items:center;width:38px;height:38px;font-size:15px;border-radius:10px}.topbar nav{display:flex;gap:28px;font-size:13px;color:var(--muted)}.topbar nav a:hover{color:var(--ink)}.document-label{font-size:11px;text-transform:uppercase;letter-spacing:.15em;color:var(--muted)}.resume{max-width:1128px;margin:0 auto;background:var(--paper);border:1px solid #e5e9ee;border-radius:20px;overflow:hidden;box-shadow:0 14px 55px #24374907}.hero{padding:48px 54px 40px;position:relative;display:grid;grid-template-columns:1fr 182px;gap:40px;background:linear-gradient(120deg,#fff 65%,#f0f5ff)}.hero:after{content:"";position:absolute;right:-60px;top:-130px;width:370px;height:370px;border-radius:50%;border:1px solid #dfe8f7;pointer-events:none}.eyebrow{display:flex;align-items:center;gap:8px;color:var(--blue);font-size:10px;letter-spacing:.16em;font-weight:700;text-transform:uppercase;margin-bottom:17px}.eyebrow:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--blue)}h1{font-size:56px;line-height:1.07;letter-spacing:-2.4px;margin:0 0 17px;font-weight:650}.hero-role{font-size:22px;line-height:1.4;max-width:600px;font-weight:500;margin:0 0 8px}.specialization{font-size:14px;color:var(--muted);margin:0 0 24px}.hero-links{display:flex;flex-wrap:wrap;gap:13px 25px;align-items:center;font-size:13px}.hero-links a{display:inline-flex;align-items:center;gap:7px}.hero-links svg{width:16px;height:16px;color:var(--blue)}.portrait-wrap{position:relative;z-index:1;padding-top:8px}.portrait{width:182px;height:202px;object-fit:cover;object-position:center 27%;border-radius:15px;display:block;border:5px solid white;box-shadow:0 7px 23px #24458113}.portrait-caption{font-size:10px;letter-spacing:.04em;text-align:center;color:var(--muted);margin-top:12px}.actionbar{display:flex;align-items:center;justify-content:space-between;padding:20px 54px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);gap:20px}.focus-note{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:10px}.focus-note svg{color:var(--blue);width:18px}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;background:var(--blue);border:1px solid var(--blue);color:white;border-radius:8px;padding:11px 18px;font-size:12px;font-weight:600;line-height:1.5;white-space:nowrap;transition:background .15s,transform .15s}.button:hover{color:white;background:#164ac5;transform:translateY(-1px)}.button svg{width:17px;height:17px}.columns{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:47px;padding:40px 54px 46px}.section{margin-bottom:34px}.section:last-child{margin-bottom:0}.section-title{font-size:12px;letter-spacing:.13em;font-weight:700;text-transform:uppercase;margin:0 0 21px;display:flex;align-items:center;gap:11px;line-height:1.5}.section-title .number{font-size:10px;letter-spacing:0;color:#7c94b1;font-weight:500}.section-title:after{content:"";height:1px;background:var(--line);flex:1;margin-left:3px}.profile-text{color:#51616f;font-size:14px;line-height:1.85;margin:0}.resume-timeline{position:relative;padding-left:22px;border-left:1px solid #dce5ee;margin-left:4px}.experience-item{position:relative;padding:0 0 26px}.experience-item:last-child{padding-bottom:0}.experience-item:before{content:"";position:absolute;left:-27px;top:6px;width:9px;height:9px;background:var(--blue);border:2px solid white;border-radius:50%;box-shadow:0 0 0 1px #c5d4ec}.period{font-size:10px;color:var(--muted);font-weight:600;letter-spacing:.07em;margin-bottom:7px}.experience-item h3{font-size:17px;line-height:1.4;letter-spacing:-.2px;margin:0 0 5px;font-weight:650}.company{font-size:12px;font-weight:600;color:var(--blue);margin-bottom:10px}.experience-item ul{list-style:none;margin:0;padding:0}.experience-item li{position:relative;padding-left:11px;font-size:12px;line-height:1.75;color:#596976;margin:5px 0}.experience-item li:before{content:"";position:absolute;left:0;top:9px;width:3px;height:3px;border-radius:50%;background:#8c9dac}.sidebar{border-left:1px solid var(--line);padding-left:32px}.stat{padding:0 0 20px;margin-bottom:20px;border-bottom:1px solid var(--line)}.stat:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}.stat-value{color:var(--blue);font-size:36px;letter-spacing:-1.2px;font-weight:650;line-height:1.2;display:flex;align-items:baseline;gap:8px}.stat-value span{font-size:11px;letter-spacing:0;color:var(--muted);font-weight:400}.stat h3{font-size:13px;margin:7px 0 4px;font-weight:650}.stat p{font-size:11px;line-height:1.65;color:var(--muted);margin:0}.tags{display:flex;flex-wrap:wrap;gap:7px}.tag{border:1px solid #e0e7f0;border-radius:5px;padding:5px 9px;font-size:11px;line-height:1.5;background:#fafbfd;color:#4a5d70}.brand-card{background:var(--soft);border:1px solid #e1eafe;padding:20px;border-radius:10px;margin-top:26px}.brand-card .mini-label{font-size:9px;text-transform:uppercase;letter-spacing:.13em;color:var(--blue)}.brand-card h3{margin:9px 0 5px;font-size:22px;letter-spacing:.03em;font-weight:700}.brand-card p{margin:0;font-size:11px;line-height:1.75;color:#5e7190}.equipment{list-style:none;padding:0;margin:0}.equipment li{font-size:12px;border-bottom:1px solid var(--line);padding:9px 0;color:#526271}.equipment li:first-child{padding-top:0}.equipment li:last-child{border:0}.equipment-note{font-size:10px;line-height:1.7;color:var(--muted);margin:13px 0 0}.contact-panel{margin:0 54px 40px;border-radius:12px;background:#f6f8fb;border:1px solid #e6ebf1;padding:24px 28px;display:flex;justify-content:space-between;align-items:center;gap:25px}.contact-panel h2{font-size:17px;margin:0 0 5px;letter-spacing:-.2px}.contact-panel p{font-size:12px;color:var(--muted);margin:0}.contact-phone{font-size:16px;font-weight:600;display:flex;align-items:center;gap:8px;white-space:nowrap}.contact-phone svg{color:var(--blue);width:17px}.page-footer{max-width:1128px;display:flex;justify-content:space-between;gap:15px;margin:22px auto 40px;padding:0 4px;font-size:10px;color:#82909c}.page-footer a{color:#5d7082}.skip-link{position:absolute;left:20px;top:-100px;z-index:10;background:white;padding:10px}.skip-link:focus{top:10px}.project-note{font-size:10px;color:var(--muted);margin:8px 0 0;line-height:1.6}@media(min-width:1400px){.topbar{height:106px}.hero{padding-top:55px;padding-bottom:45px}}@media(max-width:900px){.topbar{padding:0 24px;height:75px}.resume{margin:0 20px}.hero{padding:34px;gap:24px;grid-template-columns:1fr 150px}h1{font-size:45px}.hero-role{font-size:19px}.portrait{width:150px;height:176px}.columns{padding:32px;gap:27px}.sidebar{padding-left:24px}.actionbar{padding:18px 34px}.contact-panel{margin:0 32px 32px;padding:22px}.page-footer{padding:0 24px}.stat-value{font-size:31px}.stat-value span{font-size:10px}}@media(max-width:640px){.topbar{height:70px;padding:0 20px}.topbar nav{display:none}.document-label{font-size:9px}.resume{margin:0 12px;border-radius:14px}.hero{padding:27px 24px 26px;display:block;min-height:0}.hero:after{width:230px;height:230px;right:-110px;top:-120px}.eyebrow{font-size:8px;letter-spacing:.11em;margin-bottom:17px;max-width:220px}h1{font-size:38px;letter-spacing:-1.5px;max-width:190px;margin-bottom:18px}.hero-role{font-size:18px;max-width:270px;line-height:1.45}.specialization{font-size:11px;margin-bottom:20px}.portrait-wrap{position:absolute;right:21px;top:35px;padding:0}.portrait{width:82px;height:91px;border-width:3px;border-radius:10px}.portrait-caption{display:none}.hero-links{gap:12px 18px;font-size:11px}.hero-links .site-link{display:none}.actionbar{padding:16px 24px;align-items:stretch;flex-direction:column;gap:12px}.focus-note{font-size:10px;gap:7px}.button{padding:12px;font-size:12px}.columns{grid-template-columns:1fr;padding:29px 24px;gap:30px}.sidebar{padding-left:0;border-left:0}.section-title{font-size:11px;margin-bottom:18px}.profile-text{font-size:13px;line-height:1.85}.experience-item h3{font-size:16px}.experience-item li{font-size:12px}.section{margin-bottom:28px}.stat-value{font-size:37px}.stat p{font-size:12px}.stat h3{font-size:14px}.tag{font-size:11px}.brand-card{margin-top:24px}.contact-panel{margin:0 24px 26px;flex-direction:column;align-items:flex-start;padding:20px;gap:17px}.contact-panel h2{font-size:16px}.contact-panel p{font-size:11px}.contact-phone{font-size:16px}.page-footer{margin:18px 0 26px;padding:0 24px;font-size:9px;flex-wrap:wrap}.equipment li{font-size:12px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.button{transition:none}}@media print{body{background:white;font-size:11px}.topbar,.actionbar,.page-footer,.contact-panel,.skip-link{display:none}.resume{border:0;box-shadow:none;max-width:none;margin:0;border-radius:0}.hero{padding:15px 0 22px;background:white;grid-template-columns:1fr 120px;gap:20px}.hero:after{display:none}h1{font-size:36px}.hero-role{font-size:17px}.portrait{width:110px;height:120px}.portrait-caption{display:none}.columns{padding:22px 0;gap:25px;grid-template-columns:1.65fr 1fr}.sidebar{padding-left:20px}.experience-item{break-inside:avoid}.hero-links{font-size:11px}.profile-text{font-size:11px}.experience-item li{font-size:10px}.experience-item h3{font-size:13px}.stat-value{font-size:29px}.section{margin-bottom:23px}@page{size:A4;margin:14mm}}

/* Revision 1.1: simplified heading, larger portrait and two download positions. */
.resume{margin-top:38px}.hero{grid-template-columns:minmax(0,1fr) 248px;align-items:center}.hero-role{margin-bottom:27px;max-width:540px}.portrait-wrap{padding-top:0}.portrait{width:248px;height:272px}.actionbar{justify-content:flex-end}.hero-links{gap:15px 24px}.messenger-links{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap}.messenger-links a{display:inline-flex;align-items:center;gap:6px}.messenger-divider{color:#a6b1bb;font-size:12px}.contact-messengers{font-size:12px;margin-top:9px}.contact-messengers svg{width:17px;height:17px;color:var(--blue)}.bottom-download{max-width:1128px;margin:25px auto 0;display:flex;justify-content:center}.page-footer{justify-content:flex-end;margin-top:16px}.pending-period{padding:0 0 27px}.pending-period h3{font-size:17px;margin:0 0 5px}.pending-period>p{font-size:12px;color:var(--muted);margin:0 0 14px}.pending-years{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pending-year{padding:10px 12px;border:1px dashed #d7e1ec;border-radius:6px;background:#fafbfd}.pending-year h4{font-size:12px;color:var(--blue);margin:0 0 2px}.pending-year span{font-size:10px;color:var(--muted)}
@media(max-width:900px){.hero{grid-template-columns:minmax(0,1fr) 200px;gap:24px}.portrait{width:200px;height:224px}h1{font-size:42px}.hero-role{font-size:20px}}
@media(max-width:640px){.resume{margin-top:16px}.hero{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:20px;padding:25px 24px;align-items:start}.hero>div:first-child{display:contents}.hero h1{grid-column:1;grid-row:1;align-self:center;font-size:36px;max-width:none;margin:0;line-height:1.15}.portrait-wrap{position:static;grid-column:2;grid-row:1}.portrait{width:150px;height:165px}.hero-role{grid-column:1/-1;font-size:21px;max-width:450px;margin:0}.hero-links{grid-column:1/-1;gap:13px 18px;font-size:12px}.hero-links .site-link{display:none}.actionbar{flex-direction:row}.actionbar .button{width:100%}.bottom-download{margin:23px 24px 0}.bottom-download .button{width:100%}.contact-panel{align-items:flex-start}.contact-messengers{font-size:12px}}
@media(max-width:380px){.hero{grid-template-columns:minmax(0,1fr) 118px;gap:17px;padding:23px 20px}.portrait{width:118px;height:137px}.hero h1{font-size:30px}.hero-role{font-size:19px}.pending-year{padding:9px}.pending-year span{font-size:9px}}
@media print{.resume{margin-top:0}.bottom-download{display:none}.hero{grid-template-columns:1fr 135px}.portrait{width:125px;height:137px}.hero-role{font-size:17px;margin-bottom:14px}.pending-period{break-inside:avoid}}

.telegram-contact{display:inline-flex;align-items:center;gap:6px}

/* Revision 1.2: full-width PDF actions and original YouTube links. */
.actionbar .button,.bottom-download .button{width:100%}.video-link{display:flex;align-items:center;gap:13px;padding:17px 15px;border:1px solid var(--line);border-radius:9px;margin-bottom:10px;background:#fafbfd}.video-link>svg{color:var(--blue);width:29px;height:29px}.video-link strong{display:block;font-size:13px;font-weight:600}.video-link small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.video-link:hover{border-color:#a6bcec;background:var(--soft)}
@media(max-width:900px){.bottom-download{margin-left:20px;margin-right:20px}}@media(max-width:640px){.bottom-download{margin-left:24px;margin-right:24px}}@media print{.resume-videos{display:none}}
