.role {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
}
.role > [data-i18n="meta.roleLabel"] {
  align-self: center;
  font-weight: 500;
  margin-right: 4px;
}
.role .desired-roles {
  align-items: flex-start;
}

@media (max-width: 760px) {
  .role {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .role > [data-i18n="meta.roleLabel"] {
    margin-bottom: 2px;
    margin-right: 0;
  }
  .role .desired-roles {
    align-items: center;
    width: 100%;
  }
  .role .desired-roles span {
    text-align: center;
    width: 100%;
  }
}
/* Светлая тема */
:root { --bg: #ffffff;
  --bg-accent: #7e8084;
  --card: #fafafa;
  --text: #0f0f0f;
  --muted: #3d3d3d;
  --brand: #1996d0;
  --accent: #7bd389;
  --danger: #ff6b6b;
  --shadow: rgba(0, 0, 0, .12);
  --header-bg: rgba(249, 249, 249, 1);
  --btn-hover: #d0d0d0;
  --company-shadow: rgba(197, 197, 197, 0.8);
  --border: rgba(205, 205, 205, 0.8);
  --invert: 0;
  --bg-opacity: 0.07;
}

[data-theme="dark"] {
  --bg: #0f1115;
  --bg-accent: #10141c;
  --card: #161a22;
  --text: #e9eef7;
  --muted: #a9b4c5;
  --brand: #1ba3e2;
  --accent: #7bd389;
  --danger: #ff6b6b;
  --shadow: rgba(0, 0, 0, .3);
  --header-bg: rgba(15, 17, 21, 1);
  --btn-hover: rgba(255, 255, 255, .1);
  --menu-open: rgba(15, 17, 21, .95);
  --company-shadow: rgba(0, 0, 0, 0.9);
  --border: rgba(255, 255, 255, .2);
  --invert: 1;
  --bg-opacity: 0.4;
}
/* Base */
/* :root{--bg:#0f1115;--bg-accent:#10141c;--card:#161a22;--text:#e9eef7;--muted:#a9b4c5;--brand:#1ba3e2;--accent:#7bd389;--danger:#ff6b6b;--shadow:rgba(0,0,0,.3)} */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
/* body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:radial-gradient(1200px 800px at 10% -10%,#1a2030 0%,rgba(16,20,28,0) 60%),radial-gradient(1000px 700px at 100% 0%,#16243a 0%,rgba(16,20,28,0) 60%),linear-gradient(180deg,var(--bg),#0c0e12);color:var(--text);line-height:1.6;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;min-height:100vh;display:flex;flex-direction:column} */
body {
  font-family: Roboto, -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif;
  /* background: var(--bg); */
  background:
    radial-gradient(1200px 800px at 10% -10%, rgba(193,213,255,0.7) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(1000px 700px at 100% 0%, rgba(193,213,255,0.5) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, var(--bg) 60%, #cadafc 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] body {
  background: radial-gradient(1200px 800px at 10% -10%, #1a2030 0%, rgba(16, 20, 28, 0) 60%),
    radial-gradient(1000px 700px at 100% 0%, #16243a 0%, rgba(16, 20, 28, 0) 60%),
    linear-gradient(180deg, var(--bg), #0c0e12);
}
.background-texture {
  position: fixed;
  inset: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300" viewBox="0 0 300 300"><g fill="none" stroke="%231a2230" stroke-width="1"><path d="M0 50h300M0 100h300M0 150h300M0 200h300M0 250h300"/><path d="M50 0v300M100 0v300M150 0v300M200 0v300M250 0v300"/></g></svg>');
  opacity: var(--bg-opacity);
  pointer-events: none
}


li {margin-bottom:5px;}
#langToggle,
#themeToggle
{margin-left: 14px;}


.container{width:min(1320px,92%);margin:0 auto;height: 100%;}
.small{font-size:.9rem;color:var(--muted)}
.main{display: flex;}
#app{flex-grow: 1;}
/* Header */
.site-header{position:sticky;top:0;background:var(--header-bg);backdrop-filter:saturate(160%) blur(12px);border-bottom:1px solid rgba(255,255,255,.06);z-index:50}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 0}
.brand-name{font-weight:600;font-size: 1.2rem;letter-spacing:.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand{display:flex;align-items:center;flex:1 1 auto;min-width:0}
.avatar{display:inline-flex;align-items:center;justify-content:center;margin-right:10px}
.avatar img{width:42px;height:42px;border-radius:50%;object-fit:cover;box-shadow:0 2px 8px var(--shadow);border:1px solid rgba(255,255,255,.25)}
.main-nav{display:flex;gap:14px;}
.nav-link{color:var(--text);text-decoration:none;padding:8px 10px;border-radius:8px;transition:background .25s,color .25s}
.nav-link:hover,.nav-link.active{background:var(--card)}
.lang-switch{display:flex;align-items:center;justify-content:center;flex:0 0 40px}
.lang-switch .btn{padding:5px;border-radius:10px;border:1px solid var(--border);background:transparent;color:var(--text);cursor:pointer;width:40px; height: 40px;}
.btn.ghost:hover{background:var(--btn-hover)}

/* Hamburger */
.hamburger{display:none;flex-direction:column;gap:4px;background:transparent;border:0;cursor:pointer;width:44px;height:42px;align-items:center;justify-content:center;flex:0 0 44px}
.hamburger span{width:22px;height:2px;background:var(--text);display:block;border-radius:2px;transition:transform .2s ease, opacity .2s ease}
.main-nav.open{position:absolute;top:56px;right:0;left:0;display:flex;gap:5px;flex-direction:column;background:var(--header-bg);border-bottom:1px solid rgba(255,255,255,.06);padding:10px}
.main-nav.open .nav-link{padding:12px;border-radius:10px}

/* Sections */
.section{height: 100%;padding:16px 0;scroll-margin-top:80px;animation:sectionIn .6s ease both}
.site-header + main{flex:1}
@keyframes sectionIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
h2{margin:0;font-size:1.8rem}
.section-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.btn.primary{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:10px;background: transparent;color:var(--brand);border: 1px solid var(--brand);text-decoration:none;font-weight:600}
.btn.primary .icon{background:transparent}
.bullets{margin:8px 0 0 0;padding:0 0 0 18px;color:var(--text)}
.resume-meta{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;margin:18px 0;color:var(--muted);align-items:center}
.resume-meta .experience{text-align:right;justify-self:end}
.resume-meta .role{text-align:center;justify-self:center;visibility: hidden;}

.resume-meta [data-i18n="meta.locationLabel"],
.resume-meta [data-i18n="meta.roleLabel"],
.resume-meta [data-i18n="meta.experienceLabel"] {
  font-weight: 600;
}

/* Accordion */
.accordion{display:grid;gap:10px}
.accordion-item{background:var(--card);border:1px solid rgba(255,255,255,.06);border-radius:12px;box-shadow:0 6px 18px var(--shadow);overflow:hidden}
.accordion-header{width:100%;text-align:left;background:transparent;color:var(--text);padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;cursor:pointer;font-size:1rem;font-weight: 600;}
.accordion-header:hover{background:rgba(255,255,255,.04)}
.accordion-summary{padding:0 16px 12px;color:var(--muted);font-size: 0.9rem;}
.accordion-panel{padding:0 16px 16px;border-top:1px solid rgba(255,255,255,.06);animation:expand .3s ease both}
@keyframes expand{from{opacity:.2;transform:translateY(-4px)}to{opacity:1;transform:none}}
.position{font-weight:600; font-size:1.2rem;}
.company-site{color:var(--brand);text-decoration:none}
.company-site:hover{text-decoration:underline}

/* Education */
.edu-item{background:var(--card);padding:16px;border:1px solid var(--border);border-radius:12px;margin-top: 18px;}
.edu-title{display:flex;align-items:center;gap:12px}
.edu-icon{width:60px;height:60px;min-width:60px;min-height:60px;object-fit:contain;filter:brightness(0) invert(var(--invert));align-self:start;}
.edu-subtitle{margin:22px 0 8px;color:var(--muted);font-size:1rem}
.edu-sub{color:var(--muted)}
.edu-title-text{display:flex;flex-direction:column;gap:4px;font-weight: 600;}

/* Contacts */
.contacts-icons{display:flex;gap:10px;flex-wrap:wrap}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:10px;background:var(--card);border:1px solid var(--border);color:var(--text);text-decoration:none;font-weight:700;transition:transform .15s ease, background .2s ease, filter .2s ease, color .2s ease}
.icon-btn i{font-size:24px;filter:grayscale(1);opacity:.85}
.icon-btn:hover{transform:translateY(-2px);background:var(--btn-hover)}
.icon-btn:hover i{filter:none;opacity:1}
/* Brand colors on hover */
.icon-btn.telegram:hover{color:#2AABEE}
.icon-btn.linkedin:hover{color:#0A66C2}
.icon-btn.facebook:hover{color:#1877F2}
.icon-btn.instagram:hover{color:#E1306C}
.icon-btn.email:hover{color:#FFD166}
.icon-btn.github:hover{color:#fff}

/* Footer */
.site-footer{padding:16px 0;border-top:1px solid rgba(255,255,255,.06);background:var(--header-bg);backdrop-filter:saturate(160%) blur(10px);font-size:.9rem}

/* (Removed) bottom photo style no longer used */

/* Photo modal */
.photo-modal{position:fixed;inset:0;background:rgba(0,0,0,.7);display:none;align-items:center;justify-content:center;z-index:100}
.photo-modal.open{display:flex}
.photo-modal img{max-width:90vw;max-height:90vh;border-radius:12px;box-shadow:0 20px 60px var(--shadow)}

/* Responsive */
@media (max-width: 760px){
  .header-inner{gap:5px}
  .main-nav{display:none}
  .main-nav.open{display:flex}
  .hamburger{display:flex}
  /* Reorder: brand left, lang center/left, hamburger right */
  .brand{order:1}
  .lang-switch{order:2}
  .hamburger{order:3}
  
  /* Smaller footer icons on mobile */
  /* .icon-btn{width:32px;height:32px}
  .icon-btn i{font-size:20px} */
  /* Resume meta vertical on small screens */
  .resume-meta{grid-template-columns:1fr;justify-items:center;text-align:center}
  .resume-meta .experience{justify-self:center;text-align:center}

  .brand-name{font-size:1rem}
  .icon {font-size: 20px;}

    #langToggle,
    #themeToggle {
      margin-left: 0;
    }
}

/* Smooth scroll highlighting */
html{scroll-behavior:smooth}
.main-nav .nav-link.active{background:rgba(122,200,250,.14)}

.company-summary {
  display: flex;
  justify-content: space-between;
}

/* ссылка */
.note-link,
.company-link {
  cursor: pointer;
  color: var(--brand);
  text-decoration: underline;
  border: none;
  background: none;
  padding: 0;
  font-size: 0.9rem;;
}

/* оверлей */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--company-shadow); /* более плотный overlay */
  z-index: 1000;
}

.modal-overlay.open {
  display: flex;
}

/* модальное окно */
.modal {
  width: min(1320px, 92%); /* ширина как у основной секции, не 100% */
  background: var(--bg); /* фон совпадает с основным */
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  box-sizing: border-box;
  position: absolute;
  z-index: 1001;
}

.modal h2 {
  margin: 0;
  font-size: 1.125rem;
}

.modal p {
  margin: 6px 0 0 0;
  line-height: 1.45;
  color: var(--muted);
}

.modal a.external {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.modal a.external:hover {
  text-decoration: underline;
}

/* кнопка закрыть (в углу) */
.modal .close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 6px;
  border-radius: 6px;
}

.modal .close-btn:focus {
  outline: 2px solid rgba(11, 120, 209, 0.2);
}

/* небольшой фокус для интерактивных элементов */
.company-link:focus,
.note-link:focus,
.modal a:focus,
.modal button:focus {
  outline: 3px solid rgba(11, 120, 209, 0.15);
  outline-offset: 2px;
  }

/* Блок лейблов "Обо мне" */
.about-labels {
  margin: 18px 0 8px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  flex-grow: 1;
}

.labels-list {
  /* flex: 1; */
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  justify-content: center;
}
.label-chip {
  background: var(--card);
  color: var(--brand);
  border-radius: 14px;
  padding: 6px;
  font-size: 0.7rem;
  font-weight: 400;
  box-shadow: 0 1px 4px var(--shadow);
  border: 1px solid var(--border);
  transition: background .2s, color .2s;
  letter-spacing: 0.01em;
  width: auto;
  text-align: center;
  word-break: break-word;
  white-space: normal;
  min-height: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
/* .label-chip:hover, */
.btn:hover {
  background: var(--brand);
  color: #fff;
}

@media (max-width: 760px) {
  .labels-list {
    gap: 7px;
    padding: 0 2px;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  .label-chip {
    font-size: 0.7rem;
    /* padding: 5px 8px; */
    /* min-height: 32px; */
  }
}

/* Desired roles vertical column */
.desired-roles {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.location,
#totalExperience {
  color: var(--text);
}

.desired-roles span{
  display: block;
  margin: 0;
  padding: 0;
  color: var(--text);
}

@media (max-width: 760px) {
  .desired-roles {
    gap: 4px;
    justify-content: center;
  }
  /* .desired-roles span,
  .location,
  #totalExperience {
    font-size: 0.95rem;
  } */
}

li {
  white-space: pre-wrap;
}