:root {
  --primary-color: #004080;
  --secondary-color: #003366;
  --background-color: #f0f2f5;
  --container-bg: #fff;
  --border-color: #ccc;
  --text-color: #333;
  --section-title: #004080;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background-color);
  margin: 0;
  padding: 0;
  color: var(--text-color);
}

.container {
  max-width: 800px;
  margin: 40px auto;
  background: var(--container-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

h1 {
  color: var(--primary-color);
  margin: 0;
  font-size: 1.8rem;
}

.lang-switcher {
  display: flex;
  gap: 10px;
}

.lang-btn {
  background: white;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.lang-btn:hover, .lang-btn.active {
  background: var(--primary-color);
  color: white;
}

label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
}

input, textarea, select {
  width: 100%;
  padding: 12px;
  margin-top: 5px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1em;
  background: #fafafa;
  transition: border-color 0.3s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 64, 128, 0.1);
}

.checkbox-group {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  margin-top: 0;
  cursor: pointer;
}

.checkbox-group input {
  width: auto;
  margin-right: 8px;
  margin-top: 0;
}

button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1em;
  margin-top: 25px;
  transition: background-color 0.3s;
  display: block;
  width: 100%;
}

button:hover {
  background-color: var(--secondary-color);
}

.cv {
  background: white;
  padding: 30px;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  font-family: 'Times New Roman', serif;
  position: relative;
}

.cv::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px 2px 0 0;
}

.cv img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  border: 4px solid var(--primary-color);
  margin-bottom: 15px;
}

.cv-title {
  text-align: center;
  color: var(--section-title);
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cv-header {
  text-align: center;
  margin-bottom: 30px;
}

.cv-header h2 {
  margin: 10px 0;
  font-size: 1.8rem;
  color: #222;
}

.cv-section {
  margin-top: 25px;
  padding-bottom: 15px;
  border-bottom: 1px dashed var(--border-color);
}

.cv-section:last-child {
  border-bottom: none;
}

.cv-section h2 {
  color: var(--section-title);
  padding-bottom: 5px;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--section-title);
  font-size: 1.3rem;
}

ul {
  padding-left: 25px;
  line-height: 1.6;
}

ul li {
  margin-bottom: 8px;
}

.download-btn {
  background-color: #28a745;
  max-width: 250px;
  margin: 30px auto 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.download-btn:hover {
  background-color: #218838;
}

@media (max-width: 850px) {
  .container {
    margin: 20px;
    padding: 20px;
  }
  
  .header {
    flex-direction: column;
    gap: 15px;
  }
  
  .lang-switcher {
    width: 100%;
    justify-content: center;
  }
}