:root{
  --primary:#1f3a5f;
  --link:#003b7a;
  --link-hover:#2a5caa;
  --soft-blue:#f3f7fc;
  --soft-blue-2:#eaf2fb;
  --soft-blue-3:#dce8f8;
  --border:#e3e7ee;
  --border-strong:#c7d7ea;
  --text:#222;
  --muted:#666;
  --card-bg:#ffffff;
}

body{
  margin:0;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  background:#fafafa;
  color:var(--text);
  line-height:1.6;
}

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

a:hover{
  color:var(--link-hover);
  text-decoration:underline;
}

/* HEADER */

header{
  background:white;
  border-bottom:1px solid var(--border);
  box-shadow:0 1px 2px rgba(0,0,0,0.03);
}

.header-inner{
  max-width:1100px;
  margin:auto;
  padding:18px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
}

.logo{
  height:60px;
  width:auto;
}

.title{
  text-align:center;
  flex:1;
  min-width:220px;
}

.title h1{
  margin:0;
  font-size:24px;
  font-weight:600;
  color:var(--primary);
  letter-spacing:0.2px;
}

.title p{
  margin:4px 0 0;
  font-size:14px;
  color:var(--muted);
}

/* LANGUAGE SWITCH */

.lang-switch{
  font-size:14px;
  color:var(--muted);
  white-space:nowrap;
}

.lang-switch a{
  color:var(--primary);
  margin:0 4px;
  font-weight:500;
}

.lang-switch a:hover{
  color:var(--link-hover);
}

/* LAYOUT */

.container{
  max-width:1100px;
  margin:auto;
  padding:30px 20px;
}

.layout{
  display:flex;
  gap:30px;
  align-items:flex-start;
}

.sidebar{
  width:260px;
  flex-shrink:0;
}

/* MENU */

.menu{
  background:var(--card-bg);
  border:1px solid var(--border);
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 1px 3px rgba(0,0,0,0.04);
}

.menu a{
  display:block;
  padding:11px 14px;
  border-bottom:1px solid #eef2f6;
  color:#2c3642;
  font-weight:500;
  transition:background 0.15s ease,color 0.15s ease;
}

.menu a:last-child{
  border-bottom:none;
}

.menu a:hover{
  background:var(--soft-blue);
  color:var(--link);
}

.menu a.active{
  background:var(--soft-blue-2);
  color:var(--link);
  font-weight:600;
}

/* CONTENT */

.content{
  flex:1;
  min-width:0;
  max-width:760px;
}

.card{
  background:var(--card-bg);
  border:1px solid var(--border);
  border-radius:10px;
  padding:22px;
  margin-bottom:20px;
  box-shadow:0 1px 3px rgba(0,0,0,0.04);
  font-size:16px;
  line-height:1.65;
}

.card h2,
.card h3{
  margin-top:0;
  color:var(--primary);
}

.card h2{
  margin-bottom:0.5em;
}

.card h3{
  margin-top:1.4em;
  margin-bottom:0.4em;
}

.card p{
  margin:0 0 1em 0;
}

/* LISTS */

.card ul{
  margin:0.6em 0 1.3em 1.3em;
  padding:0;
}

.card li{
  margin-bottom:0.6em;
}

/* INFO BLOCK */

.note{
  margin:18px 0;
  padding:14px 16px;
  background:#f6f9fe;
  border-left:4px solid var(--link);
  border-radius:6px;
  color:#2d3a4a;
}

/* BUTTONS */

.button{
  display:inline-block;
  padding:8px 14px;
  margin:6px 6px 6px 0;
  background:var(--soft-blue-2);
  border:1px solid var(--border-strong);
  border-radius:6px;
  font-size:14px;
  color:var(--link);
  transition:background 0.2s ease,border-color 0.2s ease;
}

.button:hover{
  background:var(--soft-blue-3);
  border-color:#9fb9e0;
}

/* IMAGES */

img{
  max-width:100%;
  height:auto;
}

/* FOOTER */

footer{
  margin-top:40px;
  padding:20px;
  text-align:center;
  font-size:14px;
  color:var(--muted);
  border-top:1px solid var(--border);
  background:white;
}

/* TABLES */

.responsive-table{
  width:100%;
  border-collapse:collapse;
  margin-top:1rem;
  font-size:15px;
}

.responsive-table th,
.responsive-table td{
  border:1px solid #dbe3ec;
  padding:10px 12px;
  text-align:left;
  vertical-align:top;
}

.responsive-table th{
  background:var(--soft-blue);
  color:var(--primary);
}

/* PROFILE */

.profile{
  display:flex;
  gap:24px;
  align-items:flex-start;
}

.profile img{
  width:180px;
  border-radius:6px;
}

.profile-text{
  flex:1;
}

/* NEWS */

.news-item{
  display:flex;
  gap:16px;
  margin-bottom:14px;
}

.news-date{
  width:90px;
  font-weight:600;
  color:#556274;
  flex-shrink:0;
}

.news-text{
  flex:1;
}

/* MOBILE */

@media (max-width:800px){

  .layout{
    flex-direction:column;
  }

  .sidebar{
    width:100%;
  }

  .header-inner{
    flex-direction:column;
    text-align:center;
  }

  .logo{
    height:48px;
  }

  .title h1{
    font-size:22px;
  }

}

@media (max-width:700px){

  .profile{
    flex-direction:column;
    align-items:center;
    text-align:center;
  }

  .profile img{
    width:160px;
  }

  .news-item{
    flex-direction:column;
    gap:4px;
  }

  .news-date{
    width:auto;
  }
}