:root{
  --bg:#f4f6f8;
  --surface:#ffffff;
  --header:#e7edf3;
  --line:#c9d2dc;
  --text:#252b31;
  --muted:#697582;
  --accent:#2f6395;
  --accent-dark:#254f78;
  --soft:#eef2f6;
  --max:1160px;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.55;
}

a{
  color:var(--accent);
  text-decoration:none;
}

a:hover{
  text-decoration:underline;
}

/* Header */
header{
  background:var(--header);
  border-bottom:1px solid var(--line);
}

.nav{
  max-width:var(--max);
  margin:0 auto;
  min-height:64px;
  display:flex;
  justify-content:space-between;
  align-items:stretch;
}

.brand{
  display:flex;
  align-items:center;
  color:var(--text);
  font-size:14px;
  font-weight:700;
  letter-spacing:.12em;
}

.brand:hover{
  text-decoration:none;
}

.nav-right{
  display:flex;
  align-items:stretch;
}

nav{
  display:flex;
}

nav a{
  display:flex;
  align-items:center;
  padding:0 16px;
  color:var(--text);
  white-space:nowrap;
}

nav a:hover,
nav a.active{
  background:#fff;
  text-decoration:none;
}

.lang-switch{
  display:flex;
  align-items:center;
  gap:6px;
  padding:0 12px;
  font-size:12px;
  color:var(--muted);
}

.lang-switch a{
  color:var(--muted);
  font-weight:700;
  letter-spacing:.05em;
}

.lang-switch a.active{
  color:var(--text);
}

.lang-switch span{
  color:#9aa5af;
}

/* Main layout */
main{
  max-width:var(--max);
  margin:0 auto;
  padding:52px 0 72px;
}

.hero{
  max-width:940px;
  padding:18px 0 46px;
}

.profile-row{
  display:flex;
  align-items:center;
  gap:22px;
  margin-bottom:30px;
}

.profile-photo{
  width:112px;
  height:112px;
  flex:0 0 112px;
  object-fit:cover;
  border:1px solid var(--line);
  background:var(--surface);
  border-radius:3px;
}

.profile-copy{
  min-width:0;
}

.profile-name{
  margin:5px 0 6px;
  font-size:32px;
  line-height:1.1;
}

.profile-role{
  margin:0;
  color:#46515d;
  font-size:18px;
}

.hero-message{
  padding-top:28px;
  border-top:1px solid var(--line);
}

.hero-title{
  max-width:720px;
  margin:0 0 16px;
  font-size:38px;
  line-height:1.15;
}

.lead{
  max-width:820px;
  margin:0;
  color:#46515d;
  font-size:20px;
}

.eyebrow{
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.content-section{
  padding-top:26px;
}

.section-label{
  margin-bottom:12px;
}

/* Typography */
h1{
  margin:8px 0 18px;
  font-size:42px;
  line-height:1.12;
}

h2{
  margin:0 0 18px;
  font-size:27px;
  line-height:1.25;
}

h3{
  margin:0 0 8px;
  font-size:20px;
}

/* Buttons */
.actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:25px;
}

.button{
  display:inline-block;
  padding:10px 16px;
  border:1px solid #9eacba;
  border-radius:3px;
  background:#fff;
  color:var(--text);
}

.button:hover{
  text-decoration:none;
}

.button.primary{
  border-color:var(--accent-dark);
  background:var(--accent);
  color:#fff;
}

/* Cards / grids */
.grid,
.two-col{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:18px;
}

.grid{
  grid-template-columns:repeat(3, minmax(0,1fr));
}

.card,
.section{
  background:var(--surface);
  border:1px solid var(--line);
  padding:26px;
}

.project{
  display:grid;
  grid-template-columns:1fr 1fr;
  margin-bottom:36px;
  background:var(--surface);
  border:1px solid var(--line);
}

.project > div{
  padding:28px;
}

.project-side{
  background:var(--soft);
  border-left:1px solid var(--line);
}

.clean-list{
  padding-left:20px;
}

.clean-list li{
  margin:7px 0;
}

.note{
  margin-top:18px;
  padding:16px 18px;
  background:var(--soft);
  border-left:4px solid var(--accent);
}

.meta{
  display:grid;
  grid-template-columns:150px 1fr;
  gap:8px 14px;
  margin-top:16px;
}

.tag{
  display:inline-block;
  margin:4px 5px 0 0;
  padding:5px 9px;
  background:var(--soft);
  border:1px solid var(--line);
  font-size:13px;
}

/* Contacts */
.contact-card{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}

.contact-card div{
  display:flex;
  flex-direction:column;
  gap:5px;
}

/* WORKCALC screenshots */
.screenshot-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:18px;
}

.screenshot-card{
  margin:0;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--line);
}

.screenshot-card a{
  display:block;
  background:#f7f9fb;
}

.screenshot-card img{
  display:block;
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
}

.screenshot-card figcaption{
  padding:10px 12px;
  color:var(--muted);
  font-size:13px;
  border-top:1px solid var(--line);
}

/* Footer */
.footer{
  background:#edf1f5;
  border-top:1px solid var(--line);
}

.footer-inner{
  max-width:var(--max);
  margin:0 auto;
  padding:20px 0;
  display:flex;
  justify-content:space-between;
  gap:20px;
  color:var(--muted);
  font-size:13px;
}

/* Responsive */
@media(max-width:900px){
  .nav{
    padding:0 18px;
  }

  main{
    padding:34px 18px 56px;
  }

  .grid,
  .two-col,
  .project,
  .contact-card{
    grid-template-columns:1fr;
  }

  .project-side{
    border-left:0;
    border-top:1px solid var(--line);
  }

  .hero-title{
    font-size:32px;
  }

  .footer-inner{
    padding:18px;
  }
}

@media(max-width:760px){
  .screenshot-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:720px){
  .nav{
    display:block;
    padding-top:6px;
  }

  .brand{
    min-height:48px;
  }

  .nav-right{
    display:block;
  }

  nav{
    overflow-x:auto;
  }

  nav a{
    padding:12px 10px;
  }

  .lang-switch{
    padding:4px 0 8px;
  }
}

@media(max-width:620px){
  .profile-row{
    align-items:flex-start;
    gap:16px;
  }

  .profile-photo{
    width:86px;
    height:86px;
    flex-basis:86px;
  }

  .profile-name{
    font-size:27px;
  }

  .profile-role{
    font-size:16px;
  }

  .hero-title{
    font-size:29px;
  }

  .lead{
    font-size:18px;
  }

  .footer-inner{
    display:block;
  }
}
