/* PORTFOLIO VITALII - eenvoudige CSS zonder frameworks of JavaScript */
:root {
  --paper: #f7f8f5;
  --white: #ffffff;
  --ink: #182625;
  --muted: #52625f;
  --line: #d9e0dc;
  --green: #275e4b;
  --light-green: #e5efe9;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; line-height: 1.6; }
a { color: var(--green); }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1040px; padding: 0 24px; margin: 0 auto; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.topbar { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-size: 22px; font-weight: 800; letter-spacing: -.05em; text-decoration: none; color: var(--ink); }
.logo span { color: var(--green); }
.nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--muted); font-size: 14px; text-decoration: none; padding: 8px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); text-decoration: underline; text-underline-offset: 8px; }
main { min-height: 70vh; }
.hero { padding: 76px 0 68px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 44px; align-items: center; }
.eyebrow { color: var(--green); font-weight: bold; text-transform: uppercase; letter-spacing: .09em; font-size: 12px; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.03em; }
h1 { font-size: clamp(35px, 5vw, 58px); margin: 14px 0 22px; }
h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 15px; }
h3 { font-size: 20px; margin: 0 0 12px; }
p { margin: 0 0 16px; }
.lead { font-size: 18px; color: var(--muted); max-width: 650px; }
.hero-visual { border-radius: var(--radius); background: var(--light-green); border: 1px solid var(--line); padding: 32px; min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.monogram { width: 118px; height: 118px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--white); font-size: 43px; font-weight: 800; letter-spacing: -.06em; }
.hero-visual p { margin: 18px 0 0; color: var(--green); font-size: 14px; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-block; background: var(--green); color: white; text-decoration: none; border: 1px solid var(--green); border-radius: 7px; padding: 11px 18px; font-size: 14px; font-weight: 700; cursor: pointer; }
.button:hover { background: #174735; }
.button.secondary { background: transparent; color: var(--green); }
.button.secondary:hover { background: var(--light-green); }
.section { padding: 52px 0; }
.section.white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 24px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); padding: 22px; }
.card p, .muted { color: var(--muted); }
.card a { font-weight: bold; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 24px; background: var(--light-green); color: var(--green); font-size: 12px; font-weight: bold; }
.page-title { padding: 58px 0 26px; }
.page-title h1 { font-size: clamp(34px, 4vw, 46px); margin: 8px 0 12px; }
.two-col { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; }
.info-box { border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); padding: 26px; }
.info-box ul, .card ul { padding-left: 20px; }
.info-box li { margin-bottom: 7px; }
.skills-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.project-cover { background: var(--light-green); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 15px; }
.project-cover img { border-radius: 5px; }
.project-meta { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.timeline { border-left: 3px solid var(--line); padding-left: 24px; }
.timeline li { margin-bottom: 12px; }
.form { max-width: 640px; background: var(--white); border: 1px solid var(--line); padding: 26px; border-radius: var(--radius); }
.field { margin-bottom: 18px; }
label { display: block; font-weight: bold; margin-bottom: 7px; }
input, textarea { display: block; width: 100%; font: inherit; padding: 11px 12px; border: 1px solid #aebbb4; border-radius: 6px; background: white; color: var(--ink); }
input:focus, textarea:focus, a:focus-visible, button:focus-visible { outline: 3px solid #9bc5ae; outline-offset: 2px; }
textarea { min-height: 150px; resize: vertical; }
.note { background: var(--light-green); border-left: 4px solid var(--green); padding: 14px 18px; border-radius: 4px; }
.site-footer { background: var(--white); margin-top: 56px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-top: 24px; padding-bottom: 24px; font-size: 13px; color: var(--muted); }
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.screen-reader-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .topbar { align-items: flex-start; flex-direction: column; padding-top: 17px; padding-bottom: 14px; gap: 8px; }
  .nav { gap: 12px 18px; }
  .hero { padding: 45px 0 30px; }
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .cards, .skills-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 200px; }
  .section { padding: 38px 0; }
  .container { padding: 0 18px; }
}

.projects-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-title { font-size: 24px; margin-top: 12px; }
.top-gap { margin-top: 20px; }
.small-gap { margin-top: 12px; }
.small-column { max-width: 700px; }
.contact-footnote { margin-top: 18px; }
@media (max-width: 760px) { .projects-layout { grid-template-columns: 1fr; } }
