* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background-color: #f8f9fb;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: #0d47a1;
    color: white;
    padding: 12px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo img {
    height: 100px;
    width: auto;
    max-width: 300px;
}

.header-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

header nav {
  margin-left: auto;
}

.experience-badge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-left: 8px;
  color: #fff;
  font-family: Arial, sans-serif;
}

.experience-badge .years {
  font-size: 46px;
  font-weight: 400; /* убрали жирность */
  line-height: 1;
  margin: 0;
  padding-top: 2px;
  color: #fff;
  -webkit-text-stroke: 1px rgba(0,0,0,0.35);
  text-shadow: 0 1px 0 rgba(0,0,0,0.25);
}

.experience-text {
  display: flex;
  flex-direction: column;
  max-width: 180px;
}

.experience-text span {
  display: block;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 500;
}

@media (max-width: 768px) {
  .experience-badge .years {
    font-size: 36px;
    -webkit-text-stroke: 0.8px rgba(0,0,0,0.35);
  }
  .experience-text {
    max-width: 140px;
  }
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 16px;
}

nav a:hover {
    color: #ffcc00;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #ffcc00;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: linear-gradient(rgba(13, 71, 161, 0.8), rgba(13, 71, 161, 0.8)), url("../images/lift.jpg") center/cover no-repeat;
    padding: 100px 15px 50px;
    margin-top: 70px;
}

.hero-content {
    max-width: 900px;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
}

.btn-hero {
    display: inline-block;
    padding: 14px 30px;
    background: #ffcc00;
    color: #0d47a1;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    min-width: 200px;
}

.btn-hero:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.about-main {
    padding: 60px 0;
    background: white;
}

.about-main h2 {
    text-align: center;
    color: #0d47a1;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.about-main p {
    margin-bottom: 15px;
    text-align: center;
    line-height: 1.6;
    font-size: 1rem;
}

.experience {
    margin-top: 30px;
    text-align: center;
}

.experience h3 {
    color: #1565c0;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.highlight {
    color: #ffcc00;
    font-weight: bold;
}

.services {
    padding: 60px 0;
    background: #f1f5f9;
}

.services h2 {
    text-align: center;
    color: #0d47a1;
    margin-bottom: 40px;
    font-size: 1.8rem;
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-row {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.s-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
    max-width: 500px;
}

.s-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 35px;
    margin-bottom: 15px;
}

.s-card h3 {
    color: #0d47a1;
    margin-bottom: 12px;
    font-size: 1.2rem;
    line-height: 1.3;
}

.s-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.vacancies {
    padding: 60px 0;
    background: white;
}

.vacancies h2 {
    text-align: center;
    color: #0d47a1;
    margin-bottom: 40px;
    font-size: 1.8rem;
}

.vacancy-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.vacancy-card {
    background: #f8f9fb;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.vacancy-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.vacancy-card h3 {
    color: #0d47a1;
    margin-bottom: 12px;
    font-size: 1.2rem;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
}

.vacancy-card > p {
    color: #666;
    margin-bottom: 12px;
    min-height: 40px;
    font-size: 0.95rem;
}

.vacancy-preview {
    background: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vacancy-preview p {
    margin-bottom: 6px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.btn-vacancy-details {
    display: inline-block;
    padding: 10px 18px;
    background: #0d47a1;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: auto;
    font-size: 0.9rem;
}

.btn-vacancy-details:hover {
    background: #1565c0;
    transform: translateY(-1px);
}

.vacancy-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #0d47a1;
    z-index: 1002;
}

.close-modal:hover {
    color: #ff0000;
}

.modal-content h3 {
    color: #0d47a1;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.3rem;
}

.modal-content h4 {
    color: #1565c0;
    margin: 15px 0 8px 0;
    font-size: 1.1rem;
}

.modal-content ul {
    margin-left: 18px;
    margin-bottom: 12px;
}

.modal-content li {
    margin-bottom: 6px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.btn-vacancy {
    display: inline-block;
    padding: 12px 20px;
    background: #0d47a1;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 15px;
    font-size: 0.9rem;
    text-align: center;
}

.btn-vacancy:hover {
    background: #1565c0;
    transform: translateY(-1px);
}

.contacts {
    padding: 60px 0;
    background: #f1f5f9;
}

.contacts h2 {
    text-align: center;
    color: #0d47a1;
    margin-bottom: 40px;
    font-size: 1.8rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: center;
}

.contact-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-item h4 {
    color: #0d47a1;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.contact-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

footer {
    background: #0d47a1;
    color: white;
    text-align: center;
    padding: 25px 0;
    font-size: 0.9rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* телефоны */
@media screen and (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .nav-toggle {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #0d47a1;
        flex-direction: column;
        gap: 0;
        transition: left 0.3s ease;
        padding: 20px;
    }
    
    nav ul.active {
        left: 0;
    }
    
    nav li {
        width: 100%;
    }
    
    nav a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.1rem;
    }
    
    .hero {
        min-height: 40vh;
        padding: 80px 15px 40px;
        margin-top: 60px;
    }
    
    .hero h1 {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .btn-hero {
        padding: 12px 25px;
        font-size: 0.95rem;
        min-width: 180px;
    }
    
    .about-main,
    .services,
    .vacancies,
    .contacts {
        padding: 40px 0;
    }
    
    .about-main h2,
    .services h2,
    .vacancies h2,
    .contacts h2 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .service-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .s-card {
        max-width: 100%;
        padding: 18px;
    }
    
    .card-icon {
        font-size: 30px;
    }
    
    .s-card h3 {
        font-size: 1.1rem;
    }
    
    .vacancy-cards {
        flex-direction: column;
        gap: 15px;
    }
    
    .vacancy-card {
        min-width: 100%;
        min-height: 250px;
        padding: 18px;
    }
    
    .vacancy-card h3 {
        font-size: 1.1rem;
        min-height: 45px;
    }
    
    .modal-content {
        margin: 5% auto;
        padding: 15px;
        width: 95%;
        max-height: 85vh;
    }
    
    .close-modal {
        top: 8px;
        right: 12px;
        font-size: 20px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-item {
        padding: 18px;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 1.4rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .btn-hero {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .about-main p,
    .s-card p,
    .vacancy-card p {
        font-size: 0.9rem;
    }
}

@media screen and (max-height: 600px) and (orientation: portrait) {
    .hero {
        min-height: 60vh;
    }
    
    .hero-content {
        transform: scale(0.9);
    }
}

@media screen and (max-width: 900px) and (orientation: landscape) {
    .hero {
        min-height: 70vh;
    }
    
    nav ul {
        top: 60px;
        height: calc(100vh - 60px);
    }
}