:root {
  --primary-color: #2563eb;          /* Современный синий */
  --primary-light: #dbeafe;          /* Светло-синий */
  --secondary-color: #1e293b;        /* Тёмно-синий */
  --accent-color: #f97316;           /* Оранжевый акцент */
  --text-color: #334155;             /* Основной цвет текста */
  --light-gray: #f8fafc;             /* Светло-серый фон */
  --white: #ffffff;
  --border-color: #e2e8f0;           /* Цвет границ */
  --success-color: #10b981;          /* Зеленый для акцентов */
}

html {
    scroll-behavior: smooth; /* Добавляет плавный скролл для всей страницы */
}

/* Для поддержки Safari и старых браузеров добавим JavaScript решение */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-gray);
}

/* Header Styles */
.header {
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 20px 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: var(--secondary-color);
  font-size: 1.5rem;
  font-weight: 600;
}

.logo img {
  height: 100px;
  border-radius: 10px;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 500;
  transition: color 0.3s;
}

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

.contact-button {
  background: var(--primary-color);
  color: var(--white);
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.3s;
}

.contact-button:hover {
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    color: var(--white);
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    margin-top: 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Services Section */
.services {
    background: var(--light-gray);
    padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 80px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-top: 10px;
  margin-bottom: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border-color: var(--primary-color);
}

.service-card img {
  width: 80px;
  margin-bottom: 25px;
}

.service-card h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--secondary-color), #0f172a);
    padding: 80px 0;
    color: var(--white);
    text-align: center;
    margin-top: 60px;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-button {
  display: inline-block;
  background: var(--accent-color);
  color: var(--white);
  padding: 15px 40px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: #ea580c;
  transform: translateY(-2px);
}

/* Vacancies Section */
.vacancies {
    padding: 100px 0;
    background: var(--light-gray);
}

.vacancy-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 900px;
    margin: 0 auto;
}

.vacancy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.vacancy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-light);
}

.vacancy-header h3 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin: 0;
}

.apply-button {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.apply-button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    color: var(--white);
}

.vacancy-content h4 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.vacancy-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 15px;
}

.vacancy-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 10px 15px;
    background: var(--light-gray);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.vacancy-list li:hover {
    background: var(--primary-light);
    transform: translateX(10px);
}

.bullet {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .vacancy-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .vacancy-card {
        padding: 25px;
        margin: 0 15px;
    }

    .vacancy-header h3 {
        font-size: 1.5rem;
    }
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 120px 0 30px;
    position: relative;
    margin-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social a {
  color: var(--white);
  text-decoration: none;
  font-size: 1.2rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
      display: none;
  }

  .hero h1 {
      font-size: 2.5rem;
  }

  .section-title h2 {
      font-size: 2rem;
  }
}

/* Pricing Section */
.pricing {
  background: var(--white);
  position: relative;
  padding: 100px 0 60px; /* Уменьшен нижний отступ для компенсации увеличенного отступа калькулятора */
}

/* Price Table */
.price-table {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.price-table thead tr {
  background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
  color: var(--white);
}

.price-table tbody tr:nth-child(even) {
  background: var(--light-gray);
}

/* Note about prices */
.note {
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary-color);
}

/* Calculator with increased margins */
.calculator {
  background: var(--white);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  margin: 120px auto; /* Увеличены отступы сверху и снизу с 80px до 120px */
  max-width: 600px;
  margin-top: 5% !important;
  margin-bottom: 10% !important;
}

.calculator-item {
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
  padding: 10px 0;
}

.calculator-item:hover {
  background: var(--primary-light);
}

.calculator button {
  background: var(--primary-light);
  color: var(--primary-color);
  transition: all 0.3s ease;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 30px;
  height: 30px;
}

.calculator button:hover {
  background: var(--primary-color) !important;
  color: var(--white);
}

.calculator input {
  width: 60px;
  padding: 5px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.calculator input:focus {
  outline: 2px solid var(--primary-color);
  border-color: transparent;
}

#calculatorItems {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) #f0f0f0;
}

#calculatorItems::-webkit-scrollbar {
  width: 8px;
}

#calculatorItems::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}

#calculatorItems::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 4px;
}

.total {
  margin-top: 20px;
  font-size: 1.2rem;
  color: var(--secondary-color);
}

/* Mobile Menu Styles */
.mobile-menu-button {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.mobile-menu-button span {
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Menu Active States */
.mobile-menu-button.active span:first-child {
    transform: translateY(9px) rotate(45deg);
}

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

.mobile-menu-button.active span:last-child {
    transform: translateY(-9px) rotate(-45deg);
}

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

    .nav-menu {
        display: flex !important;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu .nav-link {
        font-size: 1.2rem;
        margin: 15px 0;
    }

    .contact-button {
        display: none;
    }

    /* Добавляем мобильную версию контактной кнопки в меню */
    .nav-menu .contact-button {
        display: block;
        margin-top: 20px;
    }
}
