/* ============================
   EuroStaff Solutions — Main Styles
   ============================ */

:root {
  --primary: #00748D;
  --primary-dark: #005A6E;
  --primary-darker: #0a3d4a;
  --accent: #07677c;
  --text: #3c3c3c;
  --text-light: #646464;
  --white: #ffffff;
  --light-bg: #f0f4f5;
  --hero-overlay: rgba(7, 103, 124, 0.72);
  --footer-grad-1: #0a3d4a;
  --footer-grad-2: #082a33;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(0,0,0,0.07);
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.footer {
  margin-top: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

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

/* ============================
   HEADER
   ============================ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.header__top {
  background: var(--primary);
  padding: 4px 0;
}

.header__top-inner {
  display: flex;
  justify-content: flex-end;
}

.header__lang {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 13px;
  cursor: pointer;
  outline: none;
}

.header__lang option {
  color: var(--text);
  background: var(--white);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 20px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo__icon {
  flex-shrink: 0;
}

.logo__text {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-darker);
  letter-spacing: -0.5px;
}

.logo__text--accent {
  color: var(--primary);
  font-weight: 500;
}

/* Nav */
.nav__list {
  display: flex;
  gap: 28px;
}

.nav__list a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
  white-space: nowrap;
}

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

/* Header actions */
.header__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-header {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-header:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-header--primary {
  background: var(--primary);
  color: var(--white);
}

.btn-header--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================
   HERO
   ============================ */

.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero__content {
  background: var(--hero-overlay);
  padding: 40px 48px;
  border-radius: var(--radius);
  max-width: 600px;
  color: var(--white);
}

.hero__title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero__desc {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
  opacity: 0.92;
}

.hero__btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--white);
  color: var(--primary-darker);
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition);
}

.hero__btn:hover {
  background: var(--light-bg);
  transform: translateY(-1px);
}

.hero__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  padding: 0;
}

.hero__dot.is-active {
  background: var(--white);
}

/* ============================
   BRANDS MARQUEE
   ============================ */

.brands {
  padding: 40px 0;
  background: var(--white);
  overflow: hidden;
}

.brands__title {
  text-align: center;
  margin-bottom: 24px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light);
}

.brands__track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.brands__track {
  display: flex;
  gap: 40px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.brands__item {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 700;
  color: #b0b8bc;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 20px;
  white-space: nowrap;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================
   SECTIONS
   ============================ */

.section {
  padding: 80px 0;
}

.section--teal {
  background: var(--primary);
}

.section--dark {
  background: rgb(0, 116, 141);
}

.section--faq {
  background: var(--primary-darker);
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.section-title--white {
  color: var(--white);
}

.section-subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 48px;
}

.section-subtitle--light {
  color: rgba(255,255,255,0.8);
}

/* ============================
   CARDS
   ============================ */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cards--four {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.cards--white .card {
  background: rgba(255,255,255,0.08);
  box-shadow: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
}

.cards--white .card:hover {
  background: rgba(255,255,255,0.14);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.card__icon {
  margin-bottom: 20px;
}

.card__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.card__text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 16px;
}

.cards--white .card__text {
  color: rgba(255,255,255,0.75);
}

.card__link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  transition: color var(--transition);
}

.card__link:hover {
  color: var(--accent);
}

.cards--white .card__link {
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.4);
}

.cards--white .card__link:hover {
  border-color: var(--white);
}

/* ============================
   FAQ
   ============================ */

.faq {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.faq__intro {
  color: var(--white);
}

.faq__intro .section-title {
  text-align: left;
}

.faq__intro .section-subtitle {
  text-align: left;
  margin: 0 0 24px;
}

.faq__btn {
  border-color: var(--white);
  color: var(--white);
}

.faq__btn:hover {
  background: var(--white);
  color: var(--primary-darker);
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq__item {
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
}

.faq__item.is-open {
  background: rgba(255,255,255,0.1);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.faq__chevron {
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq__item.is-open .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  padding: 0 24px 18px;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  line-height: 1.7;
}

.faq__answer[hidden] {
  display: none;
}

/* ============================
   FOOTER
   ============================ */

.footer {
  background: linear-gradient(180deg, var(--footer-grad-1) 0%, var(--footer-grad-2) 100%);
  color: rgba(255,255,255,0.85);
  padding-top: 60px;
}

.footer__row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer__brand-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
}

.footer__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--white);
}

.footer__address {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

.footer__copy {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.footer__copy-link {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer__copy-link:hover {
  color: var(--white);
}

/* ============================
   MODAL
   ============================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 480px;
  width: 90%;
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition);
}

.modal-overlay.is-active .modal {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  transition: color var(--transition);
}

.modal__close:hover {
  color: var(--text);
}

.modal__subtitle {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.modal__fallback {
  font-size: 14px;
  color: var(--text-light);
}

.modal__fallback a {
  color: var(--primary);
  font-weight: 600;
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 1024px) {
  .cards--four {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq {
    grid-template-columns: 1fr;
  }

  .faq__intro .section-title {
    text-align: center;
  }

  .faq__intro .section-subtitle {
    text-align: center;
    margin: 0 auto 24px;
  }

  .faq__intro {
    text-align: center;
  }

  .footer__row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .nav__list a {
    font-size: 20px;
  }

  .header__actions {
    display: none;
  }

  .hero {
    height: 400px;
  }

  .hero__content {
    padding: 28px 24px;
    margin: 0 10px;
  }

  .hero__title {
    font-size: 26px;
  }

  .hero__desc {
    font-size: 14px;
  }

  .section {
    padding: 50px 0;
  }

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

  .cards {
    grid-template-columns: 1fr;
  }

  .cards--four {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .hero {
    height: 360px;
  }

  .hero__title {
    font-size: 22px;
  }

  .hero__content {
    padding: 24px 20px;
  }

  .hero__btn {
    padding: 12px 24px;
    font-size: 13px;
  }

  .section {
    padding: 40px 0;
  }

  .card {
    padding: 24px 20px;
  }
}

/* ============================
   SECTION: Light background
   ============================ */

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

/* ============================
   JOB CARDS
   ============================ */

.job-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.job-card__logo {
  flex-shrink: 0;
}

.job-card__logo-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
}

.job-card__body {
  flex: 1;
  min-width: 0;
}

.job-card__category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 4px;
}

.job-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.job-card__salary {
  font-weight: 600;
  color: var(--primary);
}

/* ============================
   CONTACT BUTTONS
   ============================ */

.contact-email {
  text-align: center;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 32px;
  cursor: pointer;
  user-select: all;
  transition: color var(--transition);
}

.contact-email:hover {
  color: var(--primary);
}

.contact-email.copied {
  color: #27ae60;
}

.contact-email.copied::after {
  content: ' — скопировано!';
  font-size: 14px;
  font-weight: 500;
}

.contact-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 36px;
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  transition: all var(--transition);
  min-width: 220px;
  justify-content: center;
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.contact-btn__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.contact-btn--whatsapp {
  background: #25D366;
}

.contact-btn--whatsapp:hover {
  background: #1ebe57;
}

.contact-btn--telegram {
  background: #0088cc;
}

.contact-btn--telegram:hover {
  background: #0077b5;
}

.contact-btn--email {
  background: var(--primary);
}

.contact-btn--email:hover {
  background: var(--primary-dark);
}

.contact-address {
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }

  .contact-btn {
    width: 100%;
    max-width: 320px;
  }
}

/* ============================
   CONTACT PAGE (legacy grid)
   ============================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info__heading,
.contact-form__heading {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

.contact-info__company {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-info__address {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.contact-info__item {
  margin-bottom: 8px;
}

.contact-info__link {
  color: var(--primary);
  font-weight: 500;
  font-size: 14px;
  transition: color var(--transition);
}

.contact-info__link:hover {
  color: var(--accent);
}

.contact-form__field {
  margin-bottom: 16px;
}

.contact-form__label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.contact-form__input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color var(--transition);
  outline: none;
}

.contact-form__input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 116, 141, 0.1);
}

.contact-form__submit {
  display: inline-block;
  padding: 12px 32px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition);
}

.contact-form__submit:hover {
  background: var(--primary-dark);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ============================
   ABOUT / TEAM
   ============================ */

.about-text {
  max-width: 800px;
  margin: 0 auto;
}

.about-text h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.about-text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-light);
}

.team-card {
  text-align: center;
}

.team-card__avatar {
  margin-bottom: 16px;
}

.team-card__avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto;
}

.team-card__role {
  font-size: 13px;
  color: var(--text-light);
}

/* ============================
   PROCEDURE STEPS
   ============================ */

.steps {
  list-style: none;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
}

.step__num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.step__content {
  flex: 1;
}

.step__title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step__text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-light);
}

@media (max-width: 480px) {
  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
  }
}

/* ============================
   AUTH PAGE
   ============================ */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-bg);
}

.auth-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 40px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  text-align: center;
}

.auth-box__logo {
  margin-bottom: 24px;
}

.auth-box__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--text);
}

.auth-box__field {
  margin-bottom: 16px;
}

.auth-box__input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}

.auth-box__input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 116, 141, 0.1);
}

.auth-box__submit {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-top: 8px;
  transition: background var(--transition);
}

.auth-box__submit:hover {
  background: var(--primary-dark);
}
