/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a2e;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

ul {
  list-style: none;
}

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

/* ===== UTILITIES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section--gray {
  background: #f7f8fc;
}

.section__header {
  text-align: center;
  margin-bottom: 60px;
}

.section__label {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #4f46e5;
  margin-bottom: 12px;
}

.section__title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  color: #1a1a2e;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 14px 32px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn--primary {
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
}

.btn--primary:hover {
  background: #4338ca;
  border-color: #4338ca;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.btn--outline {
  background: transparent;
  color: #4f46e5;
  border-color: #4f46e5;
}

.btn--outline:hover {
  background: #4f46e5;
  color: #fff;
  transform: translateY(-2px);
}

.btn--small {
  padding: 10px 24px;
  font-size: 14px;
  border-radius: 10px;
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
}

.btn--small:hover {
  background: #4338ca;
  transform: translateY(-1px);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s;
}

.header--scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}

.header__logo {
  flex-shrink: 0;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: #4f46e5;
  letter-spacing: -0.5px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header__nav a {
  font-size: 15px;
  font-weight: 500;
  color: #555;
  transition: color 0.2s;
}

.header__nav a:hover {
  color: #4f46e5;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a2e;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  padding: 140px 0 100px;
  background: linear-gradient(135deg, #f0f0ff 0%, #e8eaff 50%, #f7f8fc 100%);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  background: #4f46e5;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero__title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  color: #1a1a2e;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 18px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 500px;
}

.hero__salary {
  font-size: 22px;
  color: #1a1a2e;
  margin-bottom: 32px;
}

.hero__salary strong {
  font-size: 32px;
  font-weight: 800;
  color: #4f46e5;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__image img {
  max-width: 100%;
  border-radius: 20px;
}

.about__image img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

/* Placeholder для картинок */
.hero__image-placeholder,
.image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: rgba(79, 70, 229, 0.06);
  border: 2px dashed rgba(79, 70, 229, 0.2);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #4f46e5;
  font-size: 14px;
  font-weight: 500;
}

.image-placeholder--small {
  aspect-ratio: auto;
  width: 80px;
  height: 80px;
  border-radius: 16px;
  gap: 0;
  border: none;
  background: rgba(79, 70, 229, 0.08);
}

/* ===== ABOUT ===== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__content p {
  color: #555;
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.7;
}

/* ===== DUTIES ===== */
.duties__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.duty-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  border: 1px solid #eee;
  transition: all 0.3s ease;
}

.duty-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: #4f46e5;
}

.duty-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(79, 70, 229, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f46e5;
  margin-bottom: 20px;
}

.duty-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1a1a2e;
}

.duty-card p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

/* ===== REQUIREMENTS ===== */
.requirements__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.requirements__subtitle {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1a1a2e;
}

.requirements__list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.requirements__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 16px;
  color: #444;
}

.requirements__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.requirements__cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.req-card {
  display: flex;
  gap: 20px;
  background: #f7f8fc;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #eee;
}

.req-card__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: rgba(79, 70, 229, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f46e5;
}

.req-card strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #1a1a2e;
}

.req-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* ===== CONDITIONS ===== */
.conditions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.condition-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  border: 1px solid #eee;
  transition: all 0.3s ease;
}

.condition-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.condition-card__image {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.condition-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1a1a2e;
}

.condition-card p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

/* ===== CONTACTS ===== */
.contacts {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2b55 100%);
  color: #fff;
}

.contacts .section__label {
  color: #a5b4fc;
}

.contacts .section__title {
  color: #fff;
}

.contacts__top {
  margin-bottom: 40px;
  text-align: left;
}

.contacts__desc {
  color: #c4c4d4;
  font-size: 17px;
  line-height: 1.7;
  margin-top: 12px;
}

.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.contacts__left {
  display: flex;
  align-items: center;
}

.contacts__links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 18px 24px;
  transition: all 0.25s;
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(4px);
}

.contact-link__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #0088cc;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.contact-link__icon--wa {
  background: #25d366;
}

.contact-link__icon--imo {
  background: #005fff;
}

.contact-link strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.contact-link small {
  font-size: 14px;
  color: #a5a5b5;
}

/* Survey Card */
.survey-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  transition: all 0.3s;
}

.survey-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.survey-card__icon {
  width: 80px;
  height: 80px;
  background: rgba(79, 70, 229, 0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a5b4fc;
  margin: 0 auto 24px;
}

.survey-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.survey-card p {
  font-size: 15px;
  color: #b0b0c8;
  line-height: 1.6;
  margin-bottom: 28px;
}

.btn--large {
  padding: 18px 48px;
  font-size: 17px;
  border-radius: 14px;
}

/* ===== MODAL SURVEY ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}

.modal__container {
  position: relative;
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 36px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: #f0f0f5;
  border: none;
  font-size: 28px;
  color: #555;
  cursor: pointer;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
}

.modal__close:hover {
  background: #e0e0ea;
  color: #111;
}

/* Progress */
.modal__progress {
  height: 5px;
  background: #e8eaff;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.modal__progress-bar {
  height: 100%;
  width: 8.33%;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.modal__step-text {
  font-size: 13px;
  color: #999;
  margin-bottom: 28px;
  text-align: right;
}

/* Slides */
.slide {
  display: none;
  animation: slideIn 0.35s ease;
}

.slide.active {
  display: block;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.slide__title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
  line-height: 1.4;
}

.slide__hint {
  font-size: 14px;
  color: #888;
  margin-bottom: 20px;
}

.slide__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

/* Radio */
.slide__radio {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid #e8e8ee;
  transition: all 0.2s;
  font-size: 15px;
  color: #444;
}

.slide__radio:hover {
  border-color: #c7c3f9;
  background: #fafafe;
}

.slide__radio input { display: none; }

.slide__radio-mark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 50%;
  position: relative;
  transition: all 0.2s;
}

.slide__radio input:checked + .slide__radio-mark {
  border-color: #4f46e5;
}

.slide__radio input:checked + .slide__radio-mark::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  background: #4f46e5;
  border-radius: 50%;
}

.slide__radio:has(input:checked) {
  border-color: #4f46e5;
  background: #f5f3ff;
}

/* Textarea */
.slide__textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  padding: 14px 18px;
  border: 1px solid #e8e8ee;
  border-radius: 12px;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fafafe;
  margin-top: 16px;
}

.slide__textarea::placeholder { color: #b0b0b8; }

.slide__textarea:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  background: #fff;
}

/* Contact fields */
.slide__fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}

.slide__field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}

.slide__field input {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 13px 16px;
  border: 1px solid #e8e8ee;
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fafafe;
  color: #333;
}

.slide__field input::placeholder { color: #b0b0b8; }

.slide__field input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  background: #fff;
}

/* Checkbox */
.slide__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-top: 24px;
}

.slide__checkbox input { display: none; }

.slide__checkbox-mark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 6px;
  position: relative;
  margin-top: 2px;
  transition: all 0.2s;
}

.slide__checkbox input:checked + .slide__checkbox-mark {
  background: #4f46e5;
  border-color: #4f46e5;
}

.slide__checkbox input:checked + .slide__checkbox-mark::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.slide__checkbox a {
  color: #4f46e5;
  text-decoration: underline;
}

/* Nav buttons */
.modal__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  gap: 12px;
}

.modal__btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.modal__btn--back {
  background: transparent;
  color: #888;
  border-color: #e0e0e0;
}

.modal__btn--back:hover {
  color: #555;
  border-color: #ccc;
}

.modal__btn--back:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.modal__btn--next {
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
  margin-left: auto;
}

.modal__btn--next:hover {
  background: #4338ca;
  border-color: #4338ca;
}

.modal__btn--submit {
  background: #059669;
  color: #fff;
  border-color: #059669;
  margin-left: auto;
}

.modal__btn--submit:hover {
  background: #047857;
  border-color: #047857;
}

/* Error shake */
.slide__error {
  color: #dc2626;
  font-size: 13px;
  margin-top: 8px;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.shake {
  animation: shake 0.4s ease;
}

/* Success */
.modal__success {
  text-align: center;
  padding: 20px 0;
}

.modal__success-icon {
  width: 72px;
  height: 72px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  margin: 0 auto 24px;
}

.modal__success h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.modal__success p {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ===== FOOTER ===== */
.footer {
  background: #111127;
  color: #aaa;
  padding: 60px 0 0;
  font-size: 14px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__company .logo-text {
  display: block;
  margin-bottom: 12px;
}

.footer__legal-name {
  color: #ccc;
  font-weight: 500;
  margin-bottom: 8px;
}

.footer__legal-details {
  line-height: 1.7;
  color: #888;
}

.footer__links h4,
.footer__contacts h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer__links a,
.footer__contacts a {
  display: block;
  color: #999;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer__links a:hover,
.footer__contacts a:hover {
  color: #a5b4fc;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  color: #666;
  font-size: 13px;
}

.footer__bottom a {
  color: #888;
  transition: color 0.2s;
}

.footer__bottom a:hover {
  color: #a5b4fc;
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 20px 24px;
  z-index: 99;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav a {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  padding: 8px 0;
}

.mobile-nav__cta {
  display: inline-block;
  background: #4f46e5;
  color: #fff !important;
  padding: 12px 24px !important;
  border-radius: 10px;
  text-align: center;
  font-weight: 600 !important;
  margin-top: 8px;
  transition: background 0.2s;
}

.mobile-nav__cta:hover {
  background: #4338ca;
}

/* ===== LEGAL PAGES ===== */
.legal-page {
  padding: 120px 0 80px;
}

.legal-page h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 32px;
  color: #1a1a2e;
}

.legal-page h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 16px;
  color: #1a1a2e;
}

.legal-page p,
.legal-page li {
  color: #555;
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 24px;
  list-style: disc;
}

.legal-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4f46e5;
  font-weight: 600;
  margin-bottom: 32px;
}

.legal-page .back-link:hover {
  text-decoration: underline;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #1a1a2e;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  animation: cookieIn 0.4s ease;
}

.cookie-banner.hidden {
  display: none;
}

@keyframes cookieIn {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner p {
  color: #c4c4d4;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.cookie-banner a {
  color: #a5b4fc;
  text-decoration: underline;
}

.cookie-banner .btn--small {
  flex-shrink: 0;
}

/* ===== LEGAL MODAL ===== */
.legal-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.legal-modal.active {
  display: flex;
}

.legal-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

.legal-modal__container {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 48px 40px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  z-index: 1;
}

.legal-modal__close {
  position: sticky;
  top: 0;
  float: right;
  background: #f0f0f5;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: background 0.2s;
  z-index: 2;
  margin: -8px -8px 0 0;
}

.legal-modal__close:hover {
  background: #e0e0ea;
}

.legal-modal__body h1 {
  font-size: 28px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.legal-modal__body h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 28px 0 12px;
}

.legal-modal__body h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 20px 0 8px;
}

.legal-modal__body p,
.legal-modal__body li {
  color: #555;
  line-height: 1.8;
  font-size: 15px;
}

.legal-modal__body ul {
  padding-left: 24px;
  list-style: disc;
}

.legal-modal__body a {
  color: #6366f1;
}

.legal-modal__body a:hover {
  text-decoration: underline;
}

.legal-modal__body em {
  color: #888;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero__title {
    font-size: 38px;
  }

  .duties__grid,
  .conditions__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  .header__nav,
  .header .btn--small {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero {
    padding: 110px 0 70px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero__subtitle {
    max-width: 100%;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__image {
    order: -1;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__salary strong {
    font-size: 28px;
  }

  .section__title {
    font-size: 28px;
  }

  .about__grid,
  .requirements__grid,
  .contacts__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .modal__container {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .slide__radio {
    padding: 12px 14px;
    font-size: 14px;
  }

  .duties__grid,
  .conditions__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .legal-modal__container {
    width: 95%;
    padding: 32px 20px;
    max-height: 90vh;
  }

  .legal-modal__body h1 {
    font-size: 22px;
  }

  .legal-modal__body h2 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 26px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    padding: 14px 24px;
  }

  .contact-link {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner__inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
}
