*{box-sizing:border-box;margin:0;padding:0}

/* Шрифты из Figma */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Raleway:wght@400;500;600;700&family=Commissioner:wght@400;500;600;700&family=Sofia+Sans:wght@400;500;600;700&family=Cabin:wght@400;500;600;700&display=swap');

/* Цветовая палитра из Figma */
:root{
  --primary-color:#25B9BC;
  --text-primary:#1F1F2F;
  --text-secondary:#808080;
  --text-light:#97A2B0;
  --text-dark:#0A2533;
  --bg-white:#FFFFFF;
  --bg-light:#F8FAFB;
  --bg-gray:#F6F6F6;
  --border-color:#D2D2D2;
  --error-color:#FF383C;
  --shadow:0 2px 8px rgba(0,0,0,0.1)
}

body{
  font-family:'Poppins',system-ui,-apple-system,sans-serif;
  color:var(--text-primary);
  background:var(--bg-light);
  line-height:1.6;
  font-size:16px;
}

.container{
  max-width:1200px;
  margin:0 auto;
  padding:0 120px;
}

@media(max-width:1440px){
  .container{padding:0 80px}
}

@media(max-width:1024px){
  .container{padding:0 40px}
}

@media(max-width:768px){
  .container{padding:0 20px}
}

/* Header */
header.site-header{
  background:var(--bg-white);
  color:var(--text-primary);
  padding:0;
  position:sticky;
  top:0;
  z-index:100;
  border-bottom:1px solid var(--border-color);
}

header.site-header .container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  height:98px;
}

.logo{
  color:var(--text-primary);
  text-decoration:none;
  font-weight:700;
  font-size:24px;
  font-family:'Poppins',sans-serif;
  display:flex;
  align-items:center;
  gap:8px;
}

.logo img{
  width:126px;
  height:32px;
  object-fit:contain;
}

.nav{
  display:flex;
  gap:16px;
  align-items:center;
}

.nav a{
  color:var(--text-primary);
  text-decoration:none;
  font-size:16px;
  font-family:'Poppins',sans-serif;
  transition:color .2s;
}

.nav a:hover{
  color:var(--primary-color);
}

/* Language selector */
.language-selector{
  display:flex;
  align-items:center;
  width: 116px;
  height: 48px;
  padding: 0;
  border:1px solid var(--border-color);
  border-radius:24px;
  background:var(--bg-white);
  cursor:pointer;
  font-family:'Cabin',sans-serif;
  font-size:14px;
  color:var(--text-primary);
  transition: all 0.2s;
}

.language-selector:hover {
  border-color: #25B9BC;
}

.language-selector form {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.language-selector .lang-select {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: #1F1F2F;
  padding: 0 40px 0 16px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4L6 8L10 4' stroke='%231F1F2F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.language-selector .lang-select:focus {
  outline: none;
}

/* Main content */
main.container{
  padding:40px 120px;
  min-height:calc(100vh - 200px);
}

@media(max-width:1440px){
  main.container{padding:40px 80px}
}

@media(max-width:1024px){
  main.container{padding:40px 40px}
}

@media(max-width:768px){
  main.container{padding:20px 20px}
}

/* Typography */
h1{
  font-family:'Poppins',sans-serif;
  font-size:48px;
  font-weight:700;
  color:var(--primary-color);
  margin-bottom:24px;
  line-height:1.2;
}

h2{
  font-family:'Poppins',sans-serif;
  font-size:32px;
  font-weight:600;
  color:var(--text-primary);
  margin-bottom:20px;
  line-height:1.3;
}

h3{
  font-family:'Poppins',sans-serif;
  font-size:24px;
  font-weight:600;
  color:var(--text-primary);
  margin-bottom:16px;
}

/* Hero section */
.hero{
  padding:120px 0;
  text-align:center;
  background:var(--bg-white);
  border-radius:0;
  margin:0;
}

.hero h1{
  font-size:64px;
  font-weight:700;
  color:var(--primary-color);
  margin-bottom:24px;
  font-family:'Poppins',sans-serif;
}

.hero p{
  font-size:20px;
  margin-bottom:16px;
  color:var(--text-secondary);
  font-family:'Poppins',sans-serif;
}

.hero .subtitle{
  font-size:36px;
  color:var(--text-primary);
  margin-bottom:32px;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:var(--primary-color);
  color:var(--bg-white);
  padding:16px 32px;
  border-radius:8px;
  text-decoration:none;
  border:0;
  cursor:pointer;
  font-size:16px;
  font-weight:600;
  font-family:'Commissioner',sans-serif;
  transition:all .2s;
  min-height:56px;
}

.btn:hover{
  background:#1da5a8;
  transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(37,185,188,0.3);
}

.btn:active{
  transform:translateY(0);
}

.btn-secondary{
  background:var(--bg-white);
  color:var(--primary-color);
  border:1px solid var(--primary-color);
}

.btn-secondary:hover{
  background:rgba(37,185,188,0.1);
}

.btn-danger{
  background:var(--error-color);
  color:var(--bg-white);
}

.btn-danger:hover{
  background:#e02e32;
}

/* Vacancy list */
.vacancy-list{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(380px,1fr));
  gap:24px;
  margin-top:40px;
}

.vacancy-card{
  border:1px solid var(--border-color);
  border-radius:12px;
  padding:32px;
  transition:all .2s;
  background:var(--bg-white);
  cursor:pointer;
}

.vacancy-card:hover{
  box-shadow:var(--shadow);
  transform:translateY(-4px);
  border-color:var(--primary-color);
}

.vacancy-card h2{
  margin:0 0 16px 0;
  font-size:24px;
  font-weight:600;
  color:var(--text-primary);
}

.vacancy-card h2 a{
  color:var(--text-primary);
  text-decoration:none;
  font-family:'Poppins',sans-serif;
}

.vacancy-card h2 a:hover{
  color:var(--primary-color);
}

.meta{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  color:var(--text-secondary);
  font-size:14px;
  margin-top:16px;
  font-family:'Poppins',sans-serif;
}

.meta span{
  display:flex;
  align-items:center;
  gap:4px;
}

/* Vacancy detail */
.vacancy-detail{
  margin-top:32px;
  background:var(--bg-white);
  padding:40px;
  border-radius:12px;
}

.vacancy-detail h1{
  font-size:36px;
  margin-bottom:24px;
  color:var(--text-primary);
}

.vacancy-detail .meta{
  margin-bottom:32px;
  padding-bottom:24px;
  border-bottom:1px solid var(--border-color);
}

.vacancy-detail .description{
  font-size:16px;
  line-height:1.8;
  color:var(--text-dark);
  font-family:'Sofia Sans',sans-serif;
  margin-bottom:32px;
  white-space:pre-line;
}

/* Apply block */
.apply-block{
  margin-top:40px;
  padding:40px;
  background:var(--bg-light);
  border-radius:12px;
  border:1px solid var(--border-color);
}

.apply-block h2{
  font-size:28px;
  margin-bottom:32px;
  color:var(--text-primary);
}

/* Forms */
.form-row{
  margin-bottom:24px;
  display:flex;
  flex-direction:column;
}

.form-row label{
  font-size:14px;
  font-weight:600;
  margin-bottom:8px;
  color:var(--text-primary);
  font-family:'Commissioner',sans-serif;
}

input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=file],
input[type=tel],
input[type=url],
input[type=date],
input[type=datetime-local],
input[type=time],
input[type=month],
textarea,
select{
  border:1px solid var(--border-color);
  border-radius:8px;
  padding:16px;
  font:inherit;
  font-size:16px;
  font-family:'Commissioner',sans-serif;
  transition:all .2s;
  background:var(--bg-white);
  color:var(--text-primary);
  width:100%;
  min-height:56px;
}

input:focus,
textarea:focus,
select:focus{
  outline:none;
  border-color:var(--primary-color);
  box-shadow:0 0 0 3px rgba(37,185,188,0.1);
}

textarea{
  resize:vertical;
  min-height:120px;
  font-family:'Commissioner',sans-serif;
}

::placeholder{
  color:rgba(26,7,16,0.65);
  opacity:1;
}

/* Admin styles */
.admin-header{
  background:var(--bg-white);
  color:var(--text-primary);
  padding:0;
  border-bottom:1px solid var(--border-color);
}

.admin-header .container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  height:98px;
}

.admin-header h1{
  color:var(--text-primary);
  font-size:24px;
  margin:0;
  font-family:'Raleway',sans-serif;
  font-weight:600;
}

.admin-header nav{
  display:flex;
  gap:20px;
  align-items:center;
}

.admin-header nav a{
  color:var(--text-primary);
  text-decoration:none;
  font-family:'Raleway',sans-serif;
  font-size:16px;
}

.admin-header nav a:hover{
  color:var(--primary-color);
}

.admin-body{
  background:var(--bg-light);
  min-height:100vh;
  padding:40px 0;
}

.stats{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:24px;
  margin:32px 0;
}

.stat-item{
  background:var(--bg-white);
  padding:32px;
  border-radius:12px;
  border:1px solid var(--border-color);
  font-size:18px;
  font-weight:600;
  font-family:'Poppins',sans-serif;
  color:var(--text-primary);
}

/* Table */
.table{
  width:100%;
  border-collapse:collapse;
  background:var(--bg-white);
  border-radius:12px;
  overflow:hidden;
  box-shadow:var(--shadow);
  margin-top:24px;
}

.table thead{
  background:var(--bg-light);
}

.table th{
  font-family:'Poppins',sans-serif;
  font-weight:600;
  color:var(--text-primary);
  padding:20px;
  text-align:left;
  border-bottom:1px solid var(--border-color);
}

.table td{
  padding:20px;
  border-bottom:1px solid var(--border-color);
  font-family:'Poppins',sans-serif;
  color:var(--text-primary);
}

.table tbody tr:hover{
  background:var(--bg-light);
}

.table tbody tr:last-child td{
  border-bottom:0;
}

/* Actions */
.actions{
  display:flex;
  gap:12px;
}

.actions a{
  text-decoration:none;
  color:var(--primary-color);
  font-size:14px;
  font-weight:500;
  font-family:'Raleway',sans-serif;
}

.actions form{
  margin:0;
}

.actions .link-action{
  background:none;
  border:0;
  padding:0;
  color:var(--primary-color);
  font-size:14px;
  font-weight:500;
  font-family:'Raleway',sans-serif;
  cursor:pointer;
}

.actions .link-action:hover{
  text-decoration:underline;
}

.actions a:hover{
  text-decoration:underline;
}

.actions .danger{
  color:var(--error-color);
}

.actions .link-action.danger{
  color:var(--error-color);
}

/* Alerts */
.alert{
  padding:16px 20px;
  border-radius:8px;
  margin-bottom:24px;
  font-size:14px;
  font-family:'Poppins',sans-serif;
}

.alert-error{
  background:#fee2e2;
  color:#991b1b;
  border:1px solid #fecaca;
}

.alert-success{
  background:#d1fae5;
  color:#065f46;
  border:1px solid #a7f3d0;
}

/* Auth card */
.auth-card{
  max-width:502px;
  margin:80px auto;
  border:1px solid var(--border-color);
  border-radius:12px;
  padding:48px;
  background:var(--bg-white);
  box-shadow:var(--shadow);
  box-sizing:border-box;
}

@media(max-width:768px){
  .auth-card{
    margin:20px auto;
    padding:24px 20px;
    max-width:100%;
  }
  .auth-card h1{
    font-size:24px;
    margin-bottom:20px;
  }
  .form-row{
    margin-bottom:20px;
  }
  .form-row input,
  .form-row select{
    font-size:16px;
    padding:12px 16px;
  }
}

@media(max-width:480px){
  .auth-card{
    padding:20px 16px;
    margin:16px auto;
  }
  .auth-card h1{
    font-size:20px;
  }
}

.auth-card h1{
  font-size:32px;
  margin-bottom:32px;
  text-align:center;
  color:var(--primary-color);
}

.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

/* Footer */
.site-footer{
  background:var(--bg-white);
  color:var(--text-primary);
  padding:40px 0;
  margin-top:80px;
  border-top:1px solid var(--border-color);
}

.site-footer .container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-family:'Poppins',sans-serif;
}

/* Status badges */
.status-badge{
  display:inline-block;
  padding:6px 12px;
  border-radius:20px;
  font-size:12px;
  font-weight:600;
  font-family:'Poppins',sans-serif;
}

.status-active{
  background:rgba(37,185,188,0.2);
  color:var(--primary-color);
}

.status-inactive{
  background:rgba(128,128,128,0.2);
  color:var(--text-secondary);
}

.status-archived{
  background:rgba(219,39,119,0.15);
  color:#db2777;
}

/* Responsive */
@media(max-width:768px){
  .hero h1{font-size:36px}
  .hero .subtitle{font-size:24px}
  h1{font-size:32px}
  h2{font-size:24px}
  .vacancy-list{grid-template-columns:1fr}
  .form-grid{grid-template-columns:1fr}
  .nav{gap:12px}
  .admin-header .container,
  header.site-header .container{
    flex-direction:column;
    height:auto;
    padding:20px;
    gap:16px;
  }
  .table{
    font-size:14px;
  }
  .table th,
  .table td{
    padding:12px 8px;
  }
}
