/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Import Montserrat font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Define CSS variables for colors */
:root {
    --primary-dark: #272E40;
    --secondary-dark: #343434;
    --light-gray: #E9E7EA;
    --white: #FFFFFF;
    --text-color: #E9E7EA;
}

/* Base styles */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: medium;
    line-height: 1.6;
    color: var(--secondary-dark);
    background-color: var(--white);
    overflow-x: hidden;
}


h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    font-weight: medium;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Sections */
section {
    padding: 4rem 0;
}

/* Links */
a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }


/* Flex utilities */
.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.space-between {
    justify-content: space-between;
}

/* Grid utilities */
.grid {
    display: grid;
    gap: 1rem;
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: url('https://www.intellectsoft.net/blog/wp-content/uploads/how-to-build-a-crm-cover.png');
    background-size: cover;
    background-position: center;
    color: var(--text-color);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 6rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: medium;
    line-height: 1.4;
    color: var(--text-color);
}

/* Company Section Styles */
.company-section {
    padding: 24px 0;
    background-color: var(--primary-bg);
}

.company-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

.company-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 800px;
}

.company-description strong {
    color: var(--primary-dark);
    font-weight: semibold;
}

.company-info {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 900px;
}

/* Stack Section Styles */
.stack-section {
    background-color: #272E40;
    padding: 24px 0;
}

.stack-container {
    width: 100%;
}

.stack-title {
    font-size: 3rem;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 3rem;
}

.stack-category {
    margin-bottom: 3rem;
}

.stack-category-title {
    font-size: 2.25rem;
    font-weight: medium;
    color: var(--white);
    margin-bottom: 2.5rem;
}

.stack-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.stack-tab {
    background-color: #E9E7EA;
    color: #272E40;
    padding: 0.8rem 2rem;
    border-radius: 2rem;
    font-size: 1.875rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 400px;
    text-align: center;
}

.stack-tab-active {
    background-color: #51B0A5;
    color: var(--white);
}

.stack-platforms {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stack-platform {
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.stack-platform-active {
    background-color: #51B0A5;
    border-color: #51B0A5;
}

.stack-tech-list {
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.6)
}

.stack-tech-list p {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
}

.stack-columns {
    display: flex;
    gap: 2rem;
    align-items: stretch;
}

.stack-column {
    display: flex;
    flex-direction: column;
}

.stack-column:first-child {
    flex: 1;
}

.stack-column:last-child {
    flex: 1.5;
}

.stack-lists-container {
    display: flex;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 0.5rem;
    padding: 1.5rem;
    background-color: transparent;
    flex: 1;
}

.stack-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 48%;
}

.stack-list-item {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: var(--text-color);
}

.stack-list-item::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--white);
}


/* Header Styles */
.header-section {
    background-color: #272E40;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 2.5rem 0;
}

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

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo-icon {
    margin-right: 0.5rem;
    width: 24px;
    height: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-logo-text {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--white);
    letter-spacing: 0.5px;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-nav {
    margin-right: 2rem;
}

.header-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.header-menu-item {
    position: relative;
}

.header-menu-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: medium;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    padding-bottom: 3px;
}

.header-menu-link:hover {
    opacity: 1;
}

.header-menu-link:hover:after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #51B0A5;
}

.header-menu-link-active {
    position: relative;
}


.header-lang {
    position: relative;
    display: flex;
    align-items: center;
}

.header-lang-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    gap: 4px;
    padding-top: 12px;
}

.header-lang-text {
    color: var(--white);
    display: flex;
    align-items: center;
}

.fi {
    width: 24px;
    height: 18px;
    border-radius: 2px;
}

.header-lang-arrow {
    margin-top: 4px;
}

.header-lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background-color: rgba(24, 24, 24, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
    min-width: 150px;
}

.header-lang-dropdown.active {
    display: block;
}

.header-lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.7rem 1rem;
    color: var(--white);
    cursor: pointer;
    transition: background-color 0.2s;
}

.header-lang-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.header-lang-option:first-child {
    border-radius: 8px 8px 0 0;
}

.header-lang-option:last-child {
    border-radius: 0 0 8px 8px;
}

.header-lang-option .fi {
    width: 20px;
    height: 15px;
}

/* Mobile Header Styles */
.header-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    margin: 3px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.header-mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    transform-origin: center;
}

.header-mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.header-mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    transform-origin: center;
}


.header-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(39, 46, 64, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.header-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.header-mobile-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 2rem;
}

.header-mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
    text-align: center;
}

.header-mobile-menu-item {
    margin-bottom: 2rem;
}

.header-mobile-menu-link {
    color: var(--white);
    text-decoration: none;
    font-size: 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    padding: 1rem;
    border-radius: 8px;
}

.header-mobile-menu-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #51B0A5;
}

.header-mobile-lang {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-mobile-lang-selector {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
    padding: 1rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.header-mobile-lang-selector:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.header-mobile-lang-text {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.header-mobile-lang-text .fi {
    width: 24px;
    height: 18px;
    border-radius: 2px;
}

.header-mobile-lang-dropdown {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0.5rem;
    background-color: rgba(24, 24, 24, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1001;
    min-width: 180px;
}

.header-mobile-lang-dropdown.active {
    display: block;
}

.header-mobile-lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.5rem;
    color: var(--white);
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 1.1rem;
}

.header-mobile-lang-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.header-mobile-lang-option:first-child {
    border-radius: 8px 8px 0 0;
}

.header-mobile-lang-option:last-child {
    border-radius: 0 0 8px 8px;
}

.header-mobile-lang-option .fi {
    width: 20px;
    height: 15px;
}

/* Footer Styles */
.footer-section {
    background-color: #FFFFFF;
    padding: 3rem 0;
    color: var(--primary-dark);
}

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: #E0E0E0;
    margin-bottom: 3rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 1rem;
}

.footer-logo-column {
    flex: 0 0 auto;
    min-width: 150px;
    margin-right: 2rem;
}

.footer-logo {
    margin-bottom: 0;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.footer-logo-icon {
    margin-right: 0.5rem;
    width: 24px;
    height: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-logo-text {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-dark);
    letter-spacing: 0.5px;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.footer-details {
    margin-top: 0;
}

.footer-text {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    line-height: 1.4;
    color: var(--primary-dark);
}

.footer-text-mt {
    margin-top: 1rem;
}

.footer-link {
    color: var(--primary-dark);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer-social-link {
    display: block;
    width: 30px;
    height: 30px;
    transition: opacity 0.3s ease;
}

.footer-social-link:hover {
    opacity: 0.8;
}

.footer-social-link svg {
    width: 100%;
    height: 100%;
}


/* Work Section Styles */
.work-section {
    padding: 24px 0;
    background-color: var(--white);
}

.work-container {
    width: 100%;
}

.work-title {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 24px;
    text-align: left;
}

.work-content {
    margin-bottom: 24px;
    max-width: 800px;
}

.work-company {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.work-company-name {
    color: #04607C;
    font-weight: 600;
}

.work-description, .work-positions {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.work-partners {
    margin-bottom: 24px;
}

.work-partners-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 24px;
}

.work-partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
}

.work-partner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 1rem;
}

.work-partner-image {
    width: 200px;
    height: 90px;
    object-fit: contain;
    object-position: center;
}

.work-button-container {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.work-button {
    display: inline-block;
    background-color: #272E40;
    color: var(--text-color);
    padding: 1rem 3rem;
    border-radius: 2.5rem;
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 250px;
    text-align:center;
}

.work-button:hover {
    background-color: #1e2331;
    transform: translateY(-2px);
}

/* Project Blocks Section Styles */
.blocks-section {
    background-color: #272E40;
    padding: 24px 0;
    color: var(--text-color);
}

.blocks-container {
    width: 100%;
}

.blocks-title {
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 24px;
    text-align: center;
}

.blocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.blocks-item {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    overflow: hidden;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.blocks-item:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blocks-content {
    padding: 1rem;
}

.blocks-item-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.blocks-button-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.blocks-button {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-dark);
    padding: 1rem 3rem;
    border-radius: 2.5rem;
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    width:250px;
    text-align:center;
}

.blocks-button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


h1.famtech-heading {
    font-weight: 700 !important;
    letter-spacing: 0.02em;
}

.company-heading {
    font-weight: 700 !important;
    color: var(--primary-dark);
}

.company-description p,
.company-info p {
    font-weight: 500 !important;
    font-family: 'Montserrat', sans-serif;
}

.company-section h1 {
    font-weight: 700 !important;
}

.company-section p {
    font-weight: 500 !important;
}

/* Общие стили для секций новостей */
.news-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Стили для секции видеоэкскурсии */
.news-video-section {
    padding: 24px 0;
}

.news-video-title {
    font-size: 3rem;
    margin-bottom: 24px;
    color: var(--primary-dark);
    font-weight: bold;
}

.news-video-player {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    background-color: #000;
    border-radius: 4px;
    overflow: hidden;
}

.news-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3));
    cursor: pointer;
}

.news-video-caption {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.news-play-button {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
}

.news-play-button:hover {
    transform: scale(1.1);
}

/* Стили для секции новостей и событий */
.news-events-section {
    padding: 24px 0;
}

.news-events-title {
    font-size: 3rem;
    margin-bottom: 24px;
    color: var(--primary-dark);
    font-weight: bold;
}

.news-main-article {
    margin-bottom: 24px;
}

.news-main-article-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.news-main-article-image {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    overflow: hidden;
}

.news-main-article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-main-article-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1.25rem;
}

/* Стили для сетки новостей */
.news-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.news-card {
    display: flex;
    flex-direction: row;
    overflow: hidden;
    border-bottom: 1px solid #e0e0e0;
}

.news-card:last-child {
    border-bottom: none;
}

.news-card-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    background-color: var(--primary-dark);
    color: white;
}

.news-card-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
    line-height: 1.4;
}

.news-card-date {
    font-size: 1.25rem;
    color: #ccc;
    margin-bottom: 1.5rem;
    color: #5EC2C3;
}

.news-card-button-container {
    margin-top: auto;
    display: flex;
    justify-content: center;
}

.news-card-button {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background-color: #E9E7EA;
    color: var(--primary-dark);
    border-radius: 2rem;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    width: 300px;
    min-width: 140px;

}

.news-card-button:hover {
    background-color: #f0f0f0;
}

.news-card-image {
    flex: 0 0 50%;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== СТИЛИ ДЛЯ ДЕТАЛЬНОЙ СТРАНИЦЫ НОВОСТИ ===== */

/* Hero секция */
.news-hero-section {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1772&q=80');
    background-size: cover;
    background-position: center;
    padding: 4rem 0 6rem;
    overflow: hidden;
}

.news-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.news-hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.news-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.news-hero-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
}

.news-hero-back-link:hover {
    background-color: rgba(233, 231, 234, 0.1);
    color: var(--white);
}

.news-hero-separator {
    color: rgba(233, 231, 234, 0.4);
    margin: 0 0.2rem;
}

.news-hero-current {
    color: rgba(233, 231, 234, 0.7);
}

.news-hero-content {
    max-width: 800px;
}

.news-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(233, 231, 234, 0.15);
    color: var(--text-color);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(233, 231, 234, 0.3);
}

.news-hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
    margin: 0;
}

/* Секция контента */
.news-content-section {
    padding: 4rem 0 6rem;
    background: var(--white);
    position: relative;
}

.news-content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.news-article {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    position: relative;
}

.news-article-content {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--primary-dark);
    font-weight: 400;
}

.news-article-content p {
    margin-bottom: 1.8rem;
    text-align: left;
}

.news-article-content p:first-child {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--secondary-dark);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.news-article-content p:last-child {
    margin-bottom: 0;
}

/* Секция навигации */
.news-navigation-section {
    background: var(--primary-dark);
    padding: 4rem 0;
}

.news-navigation-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.news-navigation-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.news-back-to-all {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--white);
    color: var(--primary-dark);
    padding: 1rem 2.5rem;
    border-radius: 2.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.news-back-to-all:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    gap: 1rem;
}

.news-back-to-all svg {
    transition: transform 0.3s ease;
}

.news-back-to-all:hover svg {
    transform: translateX(4px);
}

.outstaff-section {
    padding: 24px 0;
    background-color: var(--primary-dark);
    color: var(--text-color);
}

.outstaff-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.outstaff-heading {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.outstaff-subheading {
    font-size: 2rem;
    color: #499F9B;
    font-weight: normal;
    margin-bottom: 2.5rem;
}

.outstaff-categories {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.outstaff-categories-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.outstaff-category {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.outstaff-category:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.outstaff-category-wide {
    min-width: 200px;
}

.outstaff-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 80%;
}

/* Управление отображением десктопной и мобильной версий */
.outstaff-desktop-layout {
    display: flex;
}

.outstaff-mobile-layout {
    display: none;
}


.partner-section {
    padding: 24px 0;
    background-color: var(--white);
}

.partner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partner-heading {
    font-size: 2.5rem;
    color: var(--primary-dark);
    font-weight: bold;
    margin-bottom: 24px;
    text-align: center;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 24px;
    width: 100%;
    max-width: 900px;
    margin-bottom: 24px;
}

.partner-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.partner-logo {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.partner-button-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.partner-button {
    background-color: var(--primary-dark);
    color: var(--text-color);
    padding: 1rem 2.5rem;
    border-radius: 2rem;
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.partner-button:hover {
    background-color: var(--secondary-dark);
}

/* About Us Section Styles */
.about-us-section {
    background-color: var(--primary-dark);
    padding: 24px 0;
    color: var(--text-color);
}

.about-us-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.about-us-heading {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 24px;
}

.about-us-row {
    display: flex;
    margin-bottom: 12px;
}

.about-us-cols-stretch {
    align-items: stretch;
}

.about-us-col {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
}

.about-us-card {
    background-color: var(--primary-dark);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #363c52;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-color: rgba(255, 255, 255, 0.4)
}

.about-us-card-left {
    flex: 0 0 450px;
}

.about-us-card-right {
    flex: 1;
}

.flex-grow {
    flex: 1 1 0;
}

.about-us-card-title {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
}

.about-us-card-text {
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--text-color);
    margin: 0;
}

/* Блок для одинаковой ширины и высоты "Цифровой маркетинг" и "Электронная коммерция" */
.about-us-marketing-commerce {
    display: flex;
    gap: 24px;
    margin-bottom: 0;
}

.about-us-marketing-commerce .about-us-card {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Стили для секции проектов */
.project-section {
    padding: 4rem 0;
    background-color: var(--white);
}

.project-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.project-heading {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 3rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.project-card {
    border: 2px solid #CCCCCC;
    border-radius: 8px;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.project-card-content {
    text-align: center;
}

.project-card-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}


.project-footer {
    margin-top: 2rem;
    text-align: left;
}

.project-footer-text {
    font-size: 1.25rem;
    color: var(--secondary-dark);
    max-width: 800px;
}

/* Стили для секции проекта ПЭК */
.pack-section {
    padding: 4rem 0;
    background-color: #272E40;
    color: #fff;
}

.pack-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.pack-heading {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 2rem;
}

.pack-description {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    max-width: 900px;
    line-height: 1.6;
}

.pack-highlight {
    color: #5EC2C3;
    font-weight: 500;
}

.pack-subheading {
    font-size: 1.875rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 2.5rem;
}

.pack-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.pack-card {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
}

.pack-card-content {
    padding: 1.5rem;
    text-align: center;
}

.pack-card-text {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0;
}

/* Why We Section Styles */
.why-we-section {
    padding: 4rem 0;
    background-color: var(--primary-dark);
}

.why-we-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.why-we-title {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.why-we-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.why-we-card {
    background-color: transparent;
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.why-we-card-title {
    font-size: 1.25rem;
    font-weight: medium;
    color: var(--text-color);
    margin-bottom: 0;
}

/* Bonus Section Styles */
.bonus-section {
    padding: 4rem 0;
    background-color: var(--white);
}

.bonus-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.bonus-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 2.5rem;
    text-align: left;
    color: var(--primary-dark);
}

.bonus-tags-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.bonus-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: flex-start;
}

.bonus-tag {
    display: inline-block;
    border-radius: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.8rem 1.5rem;
    font-weight: 500;
    color: var(--primary-dark);
    font-size: 1.5rem;
}

.bonus-tag-small {
    width: auto;
}

.bonus-tag-medium {
    width: auto;
}

.bonus-tag-large {
    width: auto;
}

.bonus-tag-xlarge {
    width: auto;
}

.bonus-button-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.bonus-button {
    display: inline-block;
    background-color: var(--primary-dark);
    color: var(--text-color);
    padding: 1rem 3rem;
    border-radius: 5rem;
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
    text-align: center;
    min-width: 200px;
}

.bonus-button:hover {
    background-color: #1b2232;
}

/* Culture Section Styles */
.culture-section {
    padding: 4rem 0;
    background-color: var(--primary-dark);
    color: var(--text-color);
}

.culture-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.culture-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.culture-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.culture-card {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.culture-card-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Work Stack Section Styles */
.work-stack-section {
    background-color: var(--white);
    padding: 24px 0;
}

.work-stack-container {
    width: 100%;
}

.work-stack-title {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 3rem;
}

.work-stack-category {
    margin-bottom: 3rem;
}

.work-stack-category-title {
    font-size: 2.25rem;
    font-weight: medium;
    color: var(--primary-dark);
    margin-bottom: 2.5rem;
    color: #499F9B;
}

.work-stack-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.work-stack-tab {
    background-color: #272E40;
    color: #E9E7EA;
    padding: 0.8rem 2rem;
    border-radius: 2rem;
    font-size: 1.875rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 400px;
    text-align: center;
}

.work-stack-tab-active {
    background-color: #51B0A5;
    color: var(--text-color);
}

.work-stack-platforms {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.work-stack-platform {
    color: #E9E7EA;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid rgba(39, 46, 64, 0.3);
    background-color: #272E40;
    cursor: pointer;
    transition: all 0.3s ease;
}

.work-stack-platform-active {
    background-color: #51B0A5;
    border-color: #51B0A5;
    color: var(--white);
}

.work-stack-tech-list {
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(39, 46, 64, 0.3);
}

.work-stack-tech-list p {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--primary-dark);
    margin: 0;
}

.work-stack-columns {
    display: flex;
    gap: 2rem;
    align-items: stretch;
}

.work-stack-column {
    display: flex;
    flex-direction: column;
}

.work-stack-column:first-child {
    flex: 1;
}

.work-stack-column:last-child {
    flex: 1.5;
}

.work-stack-lists-container {
    display: flex;
    justify-content: space-between;
    border: 1px solid rgba(39, 46, 64, 0.3);
    border-radius: 0.5rem;
    padding: 1.5rem;
    background-color: transparent;
    flex: 1;
}

.work-stack-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 48%;
}

.work-stack-list-item {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.work-stack-list-item::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-dark);
}

/* Employees Section Styles */
.employees-section {
    padding: 4rem 0;
    background-color: var(--primary-dark);
    color: var(--text-color);
}

.employees-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.employees-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.employees-list {
    display: flex;
    flex-direction: column;
}

.employees-item {
    display: flex;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.employees-item:last-child {
    border-bottom: none;
}

.employees-photo-wrapper {
    flex: 0 0 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 2rem;
}

.employees-photo-highlight {
    border: 3px solid var(--light-gray);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.employees-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.employees-info {
    flex: 1;
}

.employees-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.employees-subtitle {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.employees-position {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.employees-description {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--light-gray);
}

.employees-quote {
    position: relative;
    margin-top: 1.5rem;
    padding-left: 2rem;
    font-style: italic;
}

.employees-quote:before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: var(--light-gray);
    font-family: serif;
    line-height: 1;
}

.employees-quote-text {
    font-size: 1.1rem;
    color: var(--light-gray);
}

.employees-button-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.employees-button {
    background-color: var(--white);
    color: var(--primary-dark);
    border: none;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-size: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.employees-button:hover {
    background-color: var(--light-gray);
}

/* Styles for Vacancies Section */
.vacansies-section {
    background-color: var(--primary-dark);
    padding: 4rem 0;
    color: var(--white);
}

.vacansies-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.vacansies-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 3rem;
    color: var(--white);
    text-align: left;
}

.vacansies-content {
    display: flex;
    gap: 2rem;
}

.vacansies-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.vacansies-categories {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-right: 2.5rem;
}

.vacansies-category-button {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    background-color: #E9E7EA;
    border: none;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.vacansies-category-button:hover {
    opacity: 0.9;
}

.vacansies-category-active {
    background-color: #51B0A5;
    color: var(--white);
    border: none;
}

.vacansies-category-active:hover {
    background-color: #51B0A5;
    opacity: 0.9;
}

.vacansies-jobs {
    flex-grow: 1;
    padding-left: 0;
}

/* Стили для случая когда нет категорий */
.vacansies-content:not(:has(.vacansies-sidebar)) .vacansies-jobs {
    width: 100%;
}

.vacansies-job-item {
    margin-bottom: 0;
    background-color: transparent;
    overflow: hidden;
}

.vacansies-job-item:last-child {
    border-bottom: none;
}

.vacansies-job-header {
    padding: 1.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.vacansies-job-title {
    font-size: 2.5rem;
    font-weight: 500;
    margin: 0;
    color: var(--text-color);
}

.vacansies-job-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: transform 0.3s ease;
}

.vacansies-job-arrow-expanded {
    transform: rotate(180deg);
}

.vacansies-job-content {
    padding: 2rem;
    background-color: #545863;
}

.vacansies-job-apply {
    margin-bottom: 2rem;
    display: flex;
    justify-content: flex-start;
}

.vacansies-apply-button {
    background-color: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 50px;
    padding: 0.8rem 2.5rem;
    font-size: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vacansies-apply-button:hover {
    background-color: #e0e0e0;
}

.vacansies-job-description {
    color: var(--white);
}

.vacansies-job-description p {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.vacansies-job-subtitle {
    font-size: 1.875rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--white);
}

.vacansies-job-apply-bottom {
    margin-top: 2rem;
}

.vacansies-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
}

.vacansies-back-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem;
}

.vacansies-back-button svg {
    width: 20px;
    height: 20px;
}

/* Стили для пустого состояния вакансий */
.vacansies-empty-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    padding: 3rem 2rem;
}

.vacansies-empty-message {
    text-align: center;
    max-width: 600px;
}

.vacansies-empty-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.vacansies-empty-description {
    font-size: 1.25rem;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

/* ==================== МЕДИА ЗАПРОСЫ ==================== */
/* Адаптация для header и hero секций */

@media screen and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    .hero-title {
        font-size: 5rem;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }

    .news-video-title,
    .news-events-title {
        font-size: 2.5rem;
    }

    .news-card-title {
        font-size: 1.75rem;
    }

    .news-card-button {
        font-size: 1.5rem;
        width: 250px;
    }
}

@media screen and (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .header-menu {
        gap: 1.5rem;
    }

    .header-menu-link {
        font-size: 1.1rem;
    }

    .hero-title {
        font-size: 4.5rem;
    }

    .hero-subtitle {
        font-size: 1.6rem;
    }


    /* Адаптация для stack секции */
    .stack-tab, .work-stack-tab {
        width: 300px;
        font-size: 1.5rem;
        padding: 0.6rem 1.5rem;
    }

    .stack-category-title, .work-stack-category-title {
        font-size: 2rem;
    }

    .stack-tech-list p, .work-stack-tech-list p {
        font-size: 1.3rem;
    }

    .stack-list-item, .work-stack-list-item {
        font-size: 1.3rem;
    }

    /* Адаптация для раздела work_with_us */
    .work-title {
        font-size: 2.5rem;
    }

    .work-company, .work-description, .work-positions {
        font-size: 1.1rem;
    }

    .work-partners-title {
        font-size: 2rem;
    }

    .work-partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .work-button {
        font-size: 1.3rem;
    }

    /* Адаптация для раздела blocks */
    .blocks-title {
        font-size: 2.5rem;
    }

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

    .blocks-item-title {
        font-size: 1.1rem;
    }

    .blocks-button {
        font-size: 1.3rem;
    }

}


@media screen and (max-width: 768px) {
    .container {
        max-width: 540px;
    }

    .header-section {
        padding: 1.5rem 0;
    }

    .header-nav {
        display: none;
    }

    .header-lang {
        display: none;
    }

    .header-right {
        justify-content: flex-end;
    }

    .header-mobile-toggle {
        display: flex;
    }

    .header-mobile-overlay {
        display: block;
    }

    .hero-section {
        min-height: 500px;
    }

    .hero-title {
        font-size: 4rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .company-title {
        font-size: 3rem;
    }

    .company-description, .company-info {
        font-size: 1.1rem;
    }

    /* Адаптация для stack секции */
    .stack-title, .work-stack-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .stack-category-title, .work-stack-category-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .stack-tabs, .work-stack-tabs {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .stack-tab, .work-stack-tab {
        width: 100%;
        max-width: 300px;
        font-size: 1.5rem;
    }

    .stack-platforms, .work-stack-platforms {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }

    .stack-tech-list p, .work-stack-tech-list p {
        font-size: 1.2rem;
    }

    .stack-columns, .work-stack-columns {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Исправляем отображение секций тестирования и автотестирования */
    .stack-lists-container, .work-stack-lists-container {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stack-list, .work-stack-list {
        width: 50%;
        margin-bottom: 0;
        padding: 0 10px;
    }

    .stack-list-item, .work-stack-list-item {
        font-size: 1.2rem;
    }

    /* Адаптация для раздела work_with_us */
    .work-section {
        padding: 24px 0;
    }

    .work-title {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .work-company, .work-description, .work-positions {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .work-partners-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .work-partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .work-partner {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100px;
        padding: 0.5rem;
    }

    .work-partner-image {
        width: 170px;
        height: 75px;
        object-fit: contain;
        object-position: center;
    }

    .work-button {
        font-size: 1.3rem;
        padding: 0.8rem 2.5rem;
    }

    /* Адаптация для раздела blocks */
    .blocks-section {
        padding: 24px 0;
        color: #fff;
    }

    .blocks-title {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
        text-align: left;
    }

    .blocks-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 1rem;
    }

    .blocks-item {
        min-height: 100px;
        padding: 1.5rem;
        background-color: #272E40;
        border: 1px solid rgba(255, 255, 255, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        border-radius: 15px;
    }

    .blocks-item-title {
        font-size: 1.2rem;
        color: #fff;
    }

    .blocks-button {
        font-size: 1.2rem;
        padding: 0.8rem 2.5rem;
        background-color: #fff;
        color: #272E40;
        border-radius: 40px;
    }

    .blocks-button-container {
        margin-top: 2rem;
    }
}

@media screen and (max-width: 576px) {
    .header-section {
        padding: 1.5rem 0;
    }

    .header-logo-text {
        font-size: 1rem;
    }

    .header-logo-icon {
        width: 20px;
        height: 20px;
    }

    .hero-section {
        min-height: 400px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .company-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .company-description, .company-info {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    /* Адаптация для stack секции */
    .stack-section, .work-stack-section {
        padding: 16px 0;
    }

    .stack-title, .work-stack-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .stack-category-title, .work-stack-category-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .stack-tab, .work-stack-tab {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
    }

    .stack-platforms, .work-stack-platforms {
        margin-bottom: 1rem;
    }

    .stack-platform, .work-stack-platform {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }

    .stack-tech-list, .work-stack-tech-list {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .stack-tech-list p, .work-stack-tech-list p {
        font-size: 1rem;
    }

    /* Исправляем отображение секций тестирования и автотестирования */
    .stack-lists-container, .work-stack-lists-container {
        padding: 0.8rem;
        border-width: 1px;
    }

    .stack-list, .work-stack-list {
        padding: 0 5px;
    }

    .stack-list-item, .work-stack-list-item {
        font-size: 0.8rem;
    }

    /* Адаптация для раздела work_with_us */
    .work-title {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }

    .work-content {
        margin-bottom: 16px;
    }

    .work-company, .work-description, .work-positions {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .work-partners-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .work-partners-grid {
        gap: 1rem;
    }

    .work-partner {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 90px;
        padding: 0.4rem;
    }

    .work-partner-image {
        width: 150px;
        height: 65px;
        object-fit: contain;
        object-position: center;
    }

    .work-button {
        font-size: 1.3rem;
        padding: 0.6rem 2rem;
        width: 200px;
    }

    /* Адаптация для раздела blocks */
    .blocks-title {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }

    .blocks-item {
        min-height: 100px;
    }

    .blocks-item-title {
        font-size: 1rem;
    }

    .blocks-button {
        font-size: 1.3rem;
        padding: 0.6rem 2rem;
        width: 200px;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .company-title {
        font-size: 2rem;
    }

    /* Адаптация для stack секции */
    .stack-title, .work-stack-title {
        font-size: 2rem;
    }

    .stack-category-title, .work-stack-category-title {
        font-size: 1.3rem;
    }

    .stack-tab, .work-stack-tab {
        font-size: 1.1rem;
    }

    .stack-platform, .work-stack-platform {
        font-size: 0.85rem;
    }

    /* Исправляем отображение секций тестирования и автотестирования */
    .stack-list-item, .work-stack-list-item {
        font-size: 1rem;
        margin-bottom: 0.4rem;
        padding-left: 0.8rem;
    }

    .stack-list-item::before, .work-stack-list-item::before {
        font-size: 0.8rem;
    }

    /* Адаптация для раздела work_with_us */
    .work-title {
        font-size: 2rem;
    }

    .work-company, .work-description, .work-positions {
        font-size: 1rem;
    }

    .work-partners-title {
        font-size: 2rem;
    }

    .work-partner {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 80px;
        padding: 0.3rem;
    }

    .work-partner-image {
        width: 140px;
        height: 60px;
        object-fit: contain;
        object-position: center;
    }

    /* Адаптация для раздела blocks */
    .blocks-title {
        font-size: 2rem;
    }

    .blocks-item {
        min-height: 80px;
    }

    .blocks-item-title {
        font-size: 1rem;
    }
}

/* Responsive styles for news section */
@media screen and (max-width: 1200px) {
    .news-video-title,
    .news-events-title {
        font-size: 2.5rem;
    }

    .news-card-title {
        font-size: 1.75rem;
    }

    .news-card-button {
        font-size: 1.5rem;
        width: 250px;
    }
}

@media screen and (max-width: 768px) {
    .news-video-title,
    .news-events-title {
        font-size: 2rem;
        text-align: center;
    }

    .news-main-article-title {
        font-size: 1.25rem;
        text-align: center;
    }

    .news-main-article-text {
        text-align: center;
    }

    .news-card {
        flex-direction: column;
    }

    .news-card-content {
        order: 2;
        text-align: center;
    }

    .news-card-image {
        order: 1;
        flex: 0 0 200px;
    }

    .news-card-title {
        font-size: 1.5rem;
    }

    .news-card-date {
        font-size: 1rem;
    }

    .news-card-button {
        font-size: 1.25rem;
        width: 200px;
        padding: 0.5rem 1rem;
    }
}

@media screen and (max-width: 480px) {
    .news-video-title,
    .news-events-title {
        font-size: 2rem;
    }

    .news-video-caption {
        font-size: 1rem;
    }

    .news-main-article-text p {
        font-size: 1rem;
    }

    .news-card-content {
        padding: 1.5rem;
    }

    .news-card-image {
        flex: 0 0 150px;
    }
}

/* Responsive styles for business sections */
@media screen and (max-width: 1200px) {


    /* Partner section */
    .partner-heading {
        font-size: 2.25rem;
    }

    .partner-grid {
        gap: 2rem;
    }

    .partner-button {
        font-size: 1.25rem;
        padding: 0.8rem 2rem;
    }

    /* Project section */
    .project-heading {
        font-size: 2.25rem;
    }

    .project-card-title {
        font-size: 1.25rem;
    }

    /* Pack section */
    .pack-heading {
        font-size: 2.25rem;
    }

    .pack-subheading {
        font-size: 1.5rem;
    }

    .pack-description {
        font-size: 1.25rem;
    }
}

@media screen and (max-width: 768px) {


    /* Partner section */
    .partner-heading {
        font-size: 2rem;
        text-align: center;
    }

    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .partner-logo {
        max-width: 80%;
    }

    /* Project section */
    .project-heading {
        font-size: 2rem;
        text-align: center;
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .project-card {
        min-height: 150px;
    }

    .project-footer-text {
        text-align: center;
        font-size: 1.1rem;
    }

    /* Pack section */
    .pack-heading {
        font-size: 2rem;
        text-align: center;
    }

    .pack-subheading {
        font-size: 1.25rem;
        text-align: center;
    }

    .pack-description {
        font-size: 1.1rem;
        text-align: center;
    }

    .pack-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media screen and (max-width: 480px) {


    /* Partner section */
    .partner-heading {
        font-size: 1.75rem;
    }

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

    .partner-logo-wrapper {
        padding: 1rem;
    }

    .partner-button {
        width: 100%;
        font-size: 1.1rem;
    }

    /* Project section */
    .project-heading {
        font-size: 1.75rem;
    }

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

    .project-card-title {
        font-size: 1rem;
    }

    .project-footer-text {
        font-size: 1rem;
    }

    /* Pack section */
    .pack-heading {
        font-size: 2rem;
    }

    .pack-description {
        font-size: 1rem;
    }

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

    .pack-card {
        padding: 1rem;
    }

    .pack-card-text {
        font-size: 1rem;
    }
}

/* Адаптация для секции Why We */
@media screen and (max-width: 1200px) {
    .why-we-section {
        padding: 2rem 0;
    }

    .why-we-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .why-we-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .why-we-card {
        padding: 1rem;
        font-size: 1rem;
    }

    .why-we-card-title {
        font-size: 1rem;
    }
}

@media screen and (max-width: 992px) {
    .why-we-title {
        font-size: 1.5rem;
    }
    .why-we-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .why-we-card {
        padding: 0.5rem;
    }
    .why-we-card-title {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 576px) {
    .why-we-title {
        font-size: 2rem;
    }
    .why-we-card-title {
        font-size: 1rem;
    }
}

/* Адаптация для секции bonus */
@media screen and (max-width: 1200px) {
    .bonus-section {
        padding: 2rem 0;
    }

    .bonus-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .bonus-tags-container {
        gap: 1rem;
    }

    .bonus-row {
        gap: 1rem;
    }

    .bonus-tag {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}

@media screen and (max-width: 992px) {
    .bonus-title {
        font-size: 1.5rem;
    }
    .bonus-tag {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
}

@media screen and (max-width: 768px) {
    /* Убираем фиксированные min-width для тегов на планшетах */
    .bonus-tag-small,
    .bonus-tag-medium,
    .bonus-tag-large,
    .bonus-tag-xlarge {
        min-width: auto;
        width: auto;
        flex: 1 1 auto;
    }

    .bonus-row {
        flex-direction: column;
        gap: 1rem;
    }

    .bonus-tag {
        font-size: 1.1rem;
        padding: 0.6rem 1.2rem;
        text-align: center;
        width: 100%;
    }

    /* Исправляем фиксированную ширину work-stack-tab */
    .work-stack-tab {
        width: 100%;
        max-width: 300px;
        font-size: 1.3rem;
        padding: 0.6rem 1rem;
    }

    .work-stack-tabs {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
}

@media screen and (max-width: 576px) {
    .bonus-title {
        font-size: 2rem;
    }

    /* Полностью адаптивные теги для мобильных */
    .bonus-tag-small,
    .bonus-tag-medium,
    .bonus-tag-large,
    .bonus-tag-xlarge {
        min-width: auto;
        width: 100%;
        flex: none;
    }

    .bonus-row {
        flex-direction: column;
        gap: 0.8rem;
    }

    .bonus-tag {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    /* Дополнительная адаптация work-stack-tab для мобильных */
    .work-stack-tab {
        width: 100%;
        max-width: 280px;
        font-size: 1.1rem;
        padding: 0.5rem 0.8rem;
    }
}

/* Дополнительная адаптация для очень маленьких экранов */
@media screen and (max-width: 360px) {
    .bonus-tag {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }

    .work-stack-tab {
        max-width: 250px;
        font-size: 1rem;
        padding: 0.4rem 0.6rem;
    }
}

/* ==================================================================================== */
/* ========================= МЕДИА-ЗАПРОСЫ ДЛЯ ABOUT US СЕКЦИИ ====================== */
/* ==================================================================================== */

/* Адаптация для больших экранов и ноутбуков (1200px - 1440px) */
@media screen and (max-width: 1440px) {
    .about-us-container {
        max-width: 1100px;
        padding: 0 20px;
    }

    .about-us-heading {
        font-size: 2.75rem;
    }

    .about-us-card-title {
        font-size: 1.75rem;
    }

    .about-us-card-text {
        font-size: 1.15rem;
    }
}

/* Адаптация для средних ноутбуков (992px - 1200px) */
@media screen and (max-width: 1200px) {
    .about-us-container {
        max-width: 960px;
        padding: 0 15px;
    }

    .about-us-heading {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .about-us-card {
        padding: 18px;
    }

    .about-us-card-title {
        font-size: 1.6rem;
        margin-bottom: 14px;
    }

    .about-us-card-text {
        font-size: 1.1rem;
    }

    /* Уменьшаем фиксированные размеры */
    .about-us-card-left {
        flex: 0 0 280px !important;
    }

    .about-us-card-right {
        flex: 0 0 580px !important;
    }
}

/* Адаптация для планшетов (768px - 992px) */
@media screen and (max-width: 992px) {
    .about-us-container {
        max-width: 720px;
        padding: 0 15px;
    }

    .about-us-section {
        padding: 20px 0;
    }

    .about-us-heading {
        font-size: 2.25rem;
        margin-bottom: 18px;
        text-align: center;
    }

    .about-us-card {
        padding: 16px;
    }

    .about-us-card-title {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .about-us-card-text {
        font-size: 1rem;
    }

    /* Начинаем переход к вертикальной компоновке */
    .about-us-row {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 15px;
    }

    /* Убираем фиксированные размеры */
    .about-us-card-left,
    .about-us-card-right {
        flex: 1 1 auto !important;
        margin-left: 0 !important;
    }

    /* Адаптируем inline стили */
    .about-us-row[style*="display: flex"] {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .about-us-row div[style*="flex: 0 0"] {
        flex: 1 1 auto !important;
        margin-left: 0 !important;
    }

    .about-us-row div[style*="margin-left: 24px"] {
        margin-left: 0 !important;
    }
}

/* Адаптация для мобильных устройств (480px - 768px) */
@media screen and (max-width: 768px) {
    .about-us-container {
        max-width: 540px;
        padding: 0 10px;
    }

    .about-us-section {
        padding: 16px 0;
    }

    .about-us-heading {
        font-size: 2rem;
        margin-bottom: 16px;
        text-align: center;
    }

    .about-us-card {
        padding: 14px;
        margin-bottom: 12px;
    }

    .about-us-card-title {
        font-size: 1.25rem;
        margin-bottom: 10px;
        text-align: center;
    }

    .about-us-card-text {
        font-size: 0.95rem;
        line-height: 1.4;
        text-align: center;
    }

    /* Полностью вертикальная компоновка */
    .about-us-row {
        flex-direction: column !important;
        gap: 12px !important;
        margin-bottom: 12px !important;
    }

    /* Переопределяем все inline стили для мобильных */
    .about-us-row div[style] {
        flex: 1 1 auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Убираем gap из inline стилей */
    .about-us-row div[style*="gap: 24px"] {
        gap: 12px !important;
    }

    /* Высота карточек */
    .about-us-card[style*="height"] {
        height: auto !important;
        min-height: auto !important;
    }
}

/* Адаптация для маленьких мобильных устройств (до 480px) */
@media screen and (max-width: 480px) {
    .about-us-container {
        max-width: 100%;
        padding: 0 8px;
    }

    .about-us-section {
        padding: 12px 0;
    }

    .about-us-heading {
        font-size: 1.75rem;
        margin-bottom: 14px;
        text-align: center;
    }

    .about-us-card {
        padding: 12px;
        margin-bottom: 10px;
    }

    .about-us-card-title {
        font-size: 1.25rem;
        margin-bottom: 8px;
        text-align: center;
    }

    .about-us-card-text {
        font-size: 1rem;
        line-height: 1.3;
        text-align: center;
    }

    /* Минимальные отступы для очень маленьких экранов */
    .about-us-row {
        gap: 10px !important;
        margin-bottom: 10px !important;
    }
}

/* Адаптация для очень маленьких экранов (до 360px) */
@media screen and (max-width: 360px) {
    .about-us-container {
        padding: 0 5px;
    }

    .about-us-heading {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .about-us-card {
        padding: 10px;
        margin-bottom: 8px;
    }

    .about-us-card-title {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .about-us-card-text {
        font-size: 0.85rem;
        line-height: 1.2;
    }

    .about-us-row {
        gap: 8px !important;
        margin-bottom: 8px !important;
    }
}

/* ==================================================================================== */
/* ================= МЕДИА-ЗАПРОСЫ ДЛЯ CULTURE, EMPLOYEES И VACANCIES ================ */
/* ==================================================================================== */

/* Адаптация для больших ноутбуков (до 1200px) */
@media screen and (max-width: 1200px) {
    /* ===== CULTURE SECTION ===== */
    .culture-title {
        font-size: 2.5rem;
        margin-bottom: 2.5rem;
    }

    .culture-cards-container {
        gap: 1.5rem;
    }

    .culture-card {
        padding: 1.5rem;
    }

    .culture-card-text {
        font-size: 1.1rem;
    }




}

/* Адаптация для средних ноутбуков и планшетов в ландшафте (до 992px) */
@media screen and (max-width: 992px) {
    /* ===== CULTURE SECTION ===== */
    .culture-title {
        font-size: 2.25rem;
        margin-bottom: 2rem;
    }

    .culture-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .culture-card {
        padding: 1.5rem;
    }

    .culture-card-text {
        font-size: 1rem;
    }




}

/* Адаптация для планшетов в портрете и больших мобильных (до 768px) */
@media screen and (max-width: 768px) {
    /* ===== CULTURE SECTION ===== */
    .culture-section {
        padding: 2rem 0;
    }

    .culture-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .culture-cards-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .culture-card {
        padding: 1.2rem;
        text-align: center;
    }

    .culture-card-text {
        font-size: 1rem;
        line-height: 1.4;
    }

    /* ===== EMPLOYEES SECTION ===== */
    .employees-section {
        padding: 2rem 0;
    }

    .employees-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }



    /* ===== VACANCIES SECTION ===== */
    .vacansies-section {
        padding: 2rem 0;
    }

    .vacansies-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }


}

/* Адаптация для мобильных устройств (до 576px) */
@media screen and (max-width: 576px) {
    /* ===== CULTURE SECTION ===== */
    .culture-section {
        padding: 1.5rem 0;
    }

    .culture-title {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
        text-align: center;
    }

    .culture-cards-container {
        gap: 0.8rem;
    }

    .culture-card {
        padding: 1rem;
        text-align: center;
    }

    .culture-card-text {
        font-size: 1rem;
        line-height: 1.4;
    }




}

/* Адаптация для маленьких мобильных устройств (до 480px) */
@media screen and (max-width: 480px) {
    /* ===== CULTURE SECTION ===== */
    .culture-section {
        padding: 1rem 0;
    }

    .culture-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .culture-cards-container {
        gap: 0.6rem;
    }

    .culture-card {
        padding: 0.8rem;
    }

    .culture-card-text {
        font-size: 1rem;
        line-height: 1.3;
    }
}

/* Адаптация для очень маленьких мобильных устройств (до 360px) */
@media screen and (max-width: 360px) {
    /* ===== CULTURE SECTION ===== */
    .culture-section {
        padding: 0.8rem 0;
    }

    .culture-title {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }

    .culture-cards-container {
        gap: 0.5rem;
    }

    .culture-card {
        padding: 0.6rem;
    }

    .culture-card-text {
        font-size: 1rem;
        line-height: 1.2;
    }
}

/* ==================================================================================== */
/* ===================== МЕДИА-ЗАПРОСЫ ДЛЯ OUTSTAFF СЕКЦИИ ========================== */
/* ==================================================================================== */

/* Адаптация для больших ноутбуков (до 1200px) */
@media screen and (max-width: 1200px) {
    /* ===== OUTSTAFF SECTION ===== */
    .outstaff-heading {
        font-size: 2rem;
        margin-bottom: 1.2rem;
    }

    .outstaff-subheading {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .outstaff-categories {
        gap: 0.8rem;
        margin-bottom: 2rem;
    }

    .outstaff-categories-row {
        gap: 0.8rem;
    }

    .outstaff-category {
        font-size: 1rem;
        padding: 0.5rem 1.2rem;
    }

    .outstaff-category-wide {
        font-size: 1rem;
        padding: 0.5rem 1.2rem;
    }

    .outstaff-description {
        font-size: 1rem;
    }
}

/* Адаптация для средних ноутбуков и планшетов в ландшафте (до 992px) */
@media screen and (max-width: 992px) {
    /* ===== OUTSTAFF SECTION ===== */
    .outstaff-heading {
        font-size: 1.75rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    .outstaff-subheading {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .outstaff-container {
        align-items: center;
        text-align: center;
    }

    .outstaff-categories {
        gap: 0.6rem;
        margin-bottom: 1.5rem;
    }

    .outstaff-categories-row {
        gap: 0.6rem;
    }

    .outstaff-category {
        font-size: 1rem;
        padding: 0.4rem 1rem;
    }

    .outstaff-category-wide {
        font-size: 1rem;
        padding: 0.4rem 1rem;
    }

    .outstaff-description {
        font-size: 1rem;
        text-align: center;
        padding: 0 1rem;
    }
}

/* Адаптация для планшетов в портрете и больших мобильных (до 768px) */
@media screen and (max-width: 768px) {
    /* ===== OUTSTAFF SECTION ===== */
    .outstaff-section {
        padding: 2rem 0;
    }

    .outstaff-heading {
        font-size: 1.75rem;
        margin-bottom: 1rem;
        text-align: left;
    }

    .outstaff-subheading {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
        text-align: left;
    }

    .outstaff-container {
        align-items: flex-start;
        text-align: left;
    }

    /* Скрываем десктопную версию на мобильных */
    .outstaff-desktop-layout {
        display: none;
    }

    /* Показываем мобильную версию */
    .outstaff-mobile-layout {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        margin-bottom: 1.5rem;
        width: 100%;
        align-items: flex-start;
    }

    .outstaff-mobile-layout .outstaff-categories-row {
        display: flex;
        flex-direction: row;
        gap: 0.8rem;
        width: 100%;
        align-items: flex-start;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .outstaff-category,
    .outstaff-category-wide {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
        width: auto;
        max-width: none;
        min-width: auto;
        text-align: center;
        white-space: nowrap;
        flex: 0 0 auto;
        margin-bottom: 0.8rem;
    }

    .outstaff-description {
        font-size: 1rem;
        text-align: left;
        padding: 0;
        line-height: 1.5;
    }
}

/* Адаптация для мобильных устройств (до 576px) */
@media screen and (max-width: 576px) {
    /* ===== OUTSTAFF SECTION ===== */
    .outstaff-section {
        padding: 1.5rem 0;
    }

    .outstaff-heading {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
        text-align: left;
    }

    .outstaff-subheading {
        font-size: 1.25rem;
        margin-bottom: 1.2rem;
        text-align: left;
    }

    .outstaff-container {
        align-items: flex-start;
        text-align: left;
    }

    /* Скрываем десктопную версию на мобильных */
    .outstaff-desktop-layout {
        display: none;
    }

    /* Показываем мобильную версию */
    .outstaff-mobile-layout {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        margin-bottom: 1.2rem;
        width: 100%;
        align-items: flex-start;
    }

    .outstaff-mobile-layout .outstaff-categories-row {
        display: flex;
        flex-direction: row;
        gap: 0.6rem;
        width: 100%;
        align-items: flex-start;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .outstaff-category,
    .outstaff-category-wide {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        width: auto;
        max-width: none;
        min-width: auto;
        text-align: center;
        white-space: nowrap;
    }

    .outstaff-description {
        font-size: 1rem;
        text-align: left;
        padding: 0;
        line-height: 1.4;
    }
}

/* Адаптация для маленьких мобильных устройств (до 480px) */
@media screen and (max-width: 480px) {
    /* ===== OUTSTAFF SECTION ===== */
    .outstaff-section {
        padding: 1.2rem 0;
    }

    .outstaff-heading {
        font-size: 1.25rem;
        margin-bottom: 0.6rem;
        text-align: left;
    }

    .outstaff-subheading {
        font-size: 1rem;
        margin-bottom: 1rem;
        text-align: left;
    }

    .outstaff-container {
        align-items: flex-start;
        text-align: left;
    }

    /* Скрываем десктопную версию на мобильных */
    .outstaff-desktop-layout {
        display: none;
    }

    /* Показываем мобильную версию */
    .outstaff-mobile-layout {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
        width: 100%;
        align-items: flex-start;
    }

    .outstaff-mobile-layout .outstaff-categories-row {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        width: 100%;
        align-items: flex-start;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .outstaff-category,
    .outstaff-category-wide {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
        width: auto;
        max-width: none;
        min-width: auto;
        text-align: center;
        white-space: nowrap;
    }

    .outstaff-description {
        font-size: 1rem;
        text-align: left;
        padding: 0;
        line-height: 1.4;
    }
}

/* Адаптация для очень маленьких мобильных устройств (до 360px) */
@media screen and (max-width: 360px) {
    /* ===== OUTSTAFF SECTION ===== */
    .outstaff-section {
        padding: 1rem 0;
    }

    .outstaff-heading {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        text-align: left;
    }

    .outstaff-subheading {
        font-size: 1rem;
        margin-bottom: 0.8rem;
        text-align: left;
    }

    .outstaff-container {
        align-items: flex-start;
        text-align: left;
    }

    /* Скрываем десктопную версию на мобильных */
    .outstaff-desktop-layout {
        display: none;
    }

    /* Показываем мобильную версию */
    .outstaff-mobile-layout {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        margin-bottom: 0.8rem;
        width: 100%;
        align-items: flex-start;
    }

    .outstaff-mobile-layout .outstaff-categories-row {
        display: flex;
        flex-direction: row;
        gap: 0.4rem;
        width: 100%;
        align-items: flex-start;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .outstaff-category,
    .outstaff-category-wide {
        font-size: 0.875rem;
        padding: 0.3rem 0.6rem;
        width: auto;
        max-width: none;
        min-width: auto;
        text-align: center;
        white-space: nowrap;
    }

    .outstaff-description {
        font-size: 0.875rem;
        text-align: left;
        padding: 0;
        line-height: 1.3;
    }
}

/* ========================================
   МЕДИА-ЗАПРОСЫ ДЛЯ АДАПТАЦИИ EMPLOYEES SECTION
   ======================================== */

/* Адаптация для больших ноутбуков (до 1200px) */
@media screen and (max-width: 1200px) {
    /* ===== EMPLOYEES SECTION ===== */
    .employees-title {
        font-size: 2.5rem;
        margin-bottom: 2.5rem;
    }

    .employees-photo-wrapper {
        flex: 0 0 100px;
        height: 100px;
        margin-right: 1.5rem;
    }

    .employees-name {
        font-size: 1.3rem;
    }

    .employees-position {
        font-size: 1.1rem;
    }

    .employees-description {
        font-size: 0.95rem;
    }

    .employees-quote-text {
        font-size: 1rem;
    }

    .employees-button {
        font-size: 1.6rem;
        padding: 0.8rem 2rem;
    }
}

/* Адаптация для средних ноутбуков и планшетов в ландшафте (до 992px) */
@media screen and (max-width: 992px) {
    /* ===== EMPLOYEES SECTION ===== */
    .employees-title {
        font-size: 2.25rem;
        margin-bottom: 2rem;
    }

    .employees-photo-wrapper {
        flex: 0 0 90px;
        height: 90px;
        margin-right: 1.2rem;
    }

    .employees-name {
        font-size: 1.2rem;
    }

    .employees-position {
        font-size: 1rem;
    }

    .employees-description {
        font-size: 0.9rem;
    }

    .employees-quote-text {
        font-size: 0.95rem;
    }

    .employees-button {
        font-size: 1.5rem;
        padding: 0.8rem 2rem;
    }
}

/* Адаптация для планшетов в портрете и больших телефонов (до 768px) */
@media screen and (max-width: 768px) {
    /* ===== EMPLOYEES SECTION ===== */
    .employees-section {
        padding: 3rem 0;
    }

    .employees-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .employees-item {
        padding: 1.5rem 0;
    }

    .employees-photo-wrapper {
        flex: 0 0 80px;
        height: 80px;
        margin-right: 1rem;
    }

    .employees-name {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }

    .employees-position {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }

    .employees-description {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    .employees-quote {
        margin-top: 1rem;
        padding-left: 1.5rem;
    }

    .employees-quote:before {
        font-size: 2.5rem;
        top: -8px;
    }

    .employees-quote-text {
        font-size: 0.9rem;
    }

    .employees-button {
        font-size: 1.4rem;
        padding: 0.8rem 2rem;
    }
}

/* Адаптация для мобильных устройств (до 576px) */
@media screen and (max-width: 576px) {
    /* ===== EMPLOYEES SECTION ===== */
    .employees-section {
        padding: 2rem 0;
    }

    .employees-title {
        font-size: 2rem;
        margin-bottom: 1.2rem;
        text-align: center;
    }

    .employees-item {
        padding: 1.2rem 0;
    }

    .employees-photo-wrapper {
        flex: 0 0 70px;
        height: 70px;
        margin-right: 0.8rem;
    }

    .employees-name {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .employees-position {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .employees-description {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }

    .employees-quote {
        margin-top: 0.8rem;
        padding-left: 1.2rem;
    }

    .employees-quote:before {
        font-size: 2rem;
        top: -6px;
    }

    .employees-quote-text {
        font-size: 0.85rem;
    }

    .employees-button {
        font-size: 1.2rem;
        padding: 0.7rem 1.8rem;
    }
}

/* Адаптация для маленьких мобильных устройств (до 480px) */
@media screen and (max-width: 480px) {
    /* ===== EMPLOYEES SECTION ===== */
    .employees-section {
        padding: 1.5rem 0;
    }

    .employees-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .employees-item {
        padding: 1rem 0;
    }

    .employees-photo-wrapper {
        flex: 0 0 60px;
        height: 60px;
        margin-right: 0.7rem;
    }

    .employees-name {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
    }

    .employees-position {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .employees-description {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }

    .employees-quote {
        margin-top: 0.6rem;
        padding-left: 1rem;
    }

    .employees-quote:before {
        font-size: 1.8rem;
        top: -5px;
    }

    .employees-quote-text {
        font-size: 0.8rem;
    }

    .employees-button {
        font-size: 1.1rem;
        padding: 0.6rem 1.5rem;
    }
}

/* Адаптация для очень маленьких мобильных устройств (до 360px) */
@media screen and (max-width: 360px) {
    /* ===== EMPLOYEES SECTION ===== */
    .employees-section {
        padding: 1rem 0;
    }

    .employees-title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .employees-item {
        padding: 0.8rem 0;
    }

    .employees-photo-wrapper {
        flex: 0 0 50px;
        height: 50px;
        margin-right: 0.6rem;
    }

    .employees-name {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }

    .employees-position {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }

    .employees-description {
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
    }

    .employees-quote {
        margin-top: 0.5rem;
        padding-left: 0.8rem;
    }

    .employees-quote:before {
        font-size: 1.5rem;
        top: -4px;
    }

    .employees-quote-text {
        font-size: 0.75rem;
    }

    .employees-button {
        font-size: 1rem;
        padding: 0.5rem 1.2rem;
    }
}

/* ========================================
   МЕДИА-ЗАПРОСЫ ДЛЯ АДАПТАЦИИ VACANCIES SECTION
   ======================================== */

/* Адаптация для больших ноутбуков (до 1200px) */
@media screen and (max-width: 1200px) {
    /* ===== VACANCIES SECTION ===== */
    .vacansies-title {
        font-size: 2.5rem;
        margin-bottom: 2.5rem;
    }

    .vacansies-sidebar {
        width: 220px;
    }

    .vacansies-category-button {
        font-size: 1.3rem;
        padding: 0.6rem 1rem;
    }

    .vacansies-job-title {
        font-size: 2.2rem;
    }

    .vacansies-job-description p {
        font-size: 1.1rem;
    }

    .vacansies-job-subtitle {
        font-size: 1.6rem;
    }

    .vacansies-apply-button {
        font-size: 1.1rem;
        padding: 0.7rem 2rem;
    }

    /* Адаптация пустого состояния */
    .vacansies-empty-title {
        font-size: 2.2rem;
    }

    .vacansies-empty-description {
        font-size: 1.1rem;
    }
}

/* Адаптация для средних ноутбуков и планшетов в ландшафте (до 992px) */
@media screen and (max-width: 992px) {
    /* ===== VACANCIES SECTION ===== */
    .vacansies-title {
        font-size: 2.25rem;
        margin-bottom: 2rem;
    }

    .vacansies-content {
        gap: 1.5rem;
    }

    .vacansies-sidebar {
        width: 200px;
    }

    .vacansies-category-button {
        font-size: 1.2rem;
        padding: 0.5rem 0.8rem;
    }

    .vacansies-job-title {
        font-size: 2rem;
    }

    .vacansies-job-description p {
        font-size: 1rem;
    }

    .vacansies-job-subtitle {
        font-size: 1.5rem;
    }

    .vacansies-apply-button {
        font-size: 1rem;
        padding: 0.6rem 1.8rem;
    }

    /* Адаптация пустого состояния */
    .vacansies-empty-title {
        font-size: 2rem;
    }

    .vacansies-empty-description {
        font-size: 1rem;
    }
}

/* Адаптация для планшетов в портрете и больших телефонов (до 768px) */
@media screen and (max-width: 768px) {
    /* ===== VACANCIES SECTION ===== */
    .vacansies-section {
        padding: 3rem 0;
    }

    .vacansies-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .vacansies-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .vacansies-sidebar {
        width: 100%;
        order: 1;
    }

    .vacansies-categories {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .vacansies-category-button {
        font-size: 1rem;
        padding: 0.5rem 0.3rem;
        width: 100%;
        text-align: center;
    }

    .vacansies-jobs {
        order: 2;
        width: 100%;
    }

    .vacansies-job-title {
        font-size: 1.4rem;
    }

    .vacansies-job-content {
        padding: 1.5rem;
    }

    /* Перемещаем кнопку "Откликнуться" вниз */
    .vacansies-job-apply {
        display: none;
    }

    .vacansies-job-apply-bottom {
        display: flex;
        justify-content: center;
        margin-top: 1.5rem;
    }

    .vacansies-apply-button {
        font-size: 1rem;
        padding: 0.7rem 2rem;
    }

    .vacansies-job-description p {
        font-size: 0.95rem;
    }

    .vacansies-job-subtitle {
        font-size: 1.3rem;
    }

    .vacansies-empty-state {
        min-height: 200px;
        padding: 2rem 1rem;
    }

    .vacansies-empty-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .vacansies-empty-description {
        font-size: 0.95rem;
    }
}

/* Адаптация для мобильных устройств (до 576px) */
@media screen and (max-width: 576px) {
    /* ===== VACANCIES SECTION ===== */
    .vacansies-section {
        padding: 2rem 0;
    }

    .vacansies-title {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
        text-align: center;
    }

    .vacansies-content {
        gap: 1rem;
    }

    /* Кнопки категорий в 3 строки */
    .vacansies-categories {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }

    .vacansies-category-button {
        font-size: 1rem;
        padding: 0.4rem 0.2rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .vacansies-job-title {
        font-size: 1.2rem;
    }

    .vacansies-job-content {
        padding: 1rem;
    }

    /* Перемещаем кнопку "Откликнуться" вниз */
    .vacansies-job-apply {
        display: none;
    }

    .vacansies-job-apply-bottom {
        display: flex;
        justify-content: center;
        margin-top: 1.2rem;
    }

    .vacansies-apply-button {
        font-size: 1rem;
        padding: 0.6rem 1.5rem;
    }

    .vacansies-job-description p {
        font-size: 0.85rem;
    }

    .vacansies-job-subtitle {
        font-size: 1.1rem;
    }

    /* Адаптация пустого состояния */
    .vacansies-empty-state {
        min-height: 180px;
        padding: 1.5rem 0.8rem;
    }

    .vacansies-empty-title {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }

    .vacansies-empty-description {
        font-size: 0.9rem;
    }
}

/* Адаптация для маленьких мобильных устройств (до 480px) */
@media screen and (max-width: 480px) {
    /* ===== VACANCIES SECTION ===== */
    .vacansies-section {
        padding: 1.5rem 0;
    }

    .vacansies-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .vacansies-content {
        gap: 0.8rem;
    }

    .vacansies-categories {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }

    .vacansies-category-button {
        font-size: 1rem;
        padding: 0.3rem 0.1rem;
        min-height: 2.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .vacansies-job-title {
        font-size: 1rem;
    }

    .vacansies-job-content {
        padding: 0.8rem;
    }

    .vacansies-job-apply {
        display: none;
    }

    .vacansies-job-apply-bottom {
        display: flex;
        justify-content: center;
        margin-top: 1rem;
    }

    .vacansies-apply-button {
        font-size: 1rem;
        padding: 0.5rem 1.2rem;
    }

    .vacansies-job-description p {
        font-size: 0.8rem;
    }

    .vacansies-job-subtitle {
        font-size: 1rem;
    }

    .vacansies-empty-state {
        min-height: 150px;
        padding: 1rem 0.5rem;
    }

    .vacansies-empty-title {
        font-size: 1.4rem;
        margin-bottom: 0.6rem;
    }

    .vacansies-empty-description {
        font-size: 1rem;
    }
}

/* Адаптация для очень маленьких мобильных устройств (до 360px) */
@media screen and (max-width: 360px) {
    /* ===== VACANCIES SECTION ===== */
    .vacansies-section {
        padding: 1rem 0;
    }

    .vacansies-title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .vacansies-content {
        gap: 0.6rem;
    }

    .vacansies-categories {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.3rem;
    }

    .vacansies-category-button {
        font-size: 1rem;
        padding: 0.25rem 0.1rem;
        min-height: 2rem;
        line-height: 1.1;
    }

    .vacansies-job-title {
        font-size: 1.2rem;
    }

    .vacansies-job-content {
        padding: 0.6rem;
    }

    .vacansies-job-apply {
        display: none;
    }

    .vacansies-job-apply-bottom {
        display: flex;
        justify-content: center;
        margin-top: 0.8rem;
    }

    .vacansies-apply-button {
        font-size: 1rem;
        padding: 0.4rem 1rem;
    }

    .vacansies-job-description p {
        font-size: 1rem;
    }

    .vacansies-job-subtitle {
        font-size: 1.1rem;
    }

    .vacansies-empty-state {
        min-height: 120px;
        padding: 0.8rem 0.4rem;
    }

    .vacansies-empty-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .vacansies-empty-description {
        font-size: 1rem;
    }

    /* ===== FOOTER SECTION ===== */
    .footer-section {
        padding: 2rem 0;
    }

    .footer-divider {
        margin-bottom: 2rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-logo-column {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .footer-column {
        min-width: auto;
        margin-bottom: 1.5rem;
    }

    .footer-title {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }

    .footer-text {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

    .footer-social {
        gap: 0.4rem;
        margin-top: 0.8rem;
    }

    .footer-social-link {
        width: 28px;
        height: 28px;
    }

    /* ===== NEWS DETAIL SECTION ===== */
    .news-hero-section {
        padding: 2.5rem 0 4rem;
    }

    .news-hero-container {
        padding: 0 0.8rem;
    }

    .news-hero-breadcrumb {
        margin-bottom: 1.5rem;
        font-size: 0.85rem;
    }

    .news-hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .news-hero-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1.2rem;
    }

    .news-content-section {
        padding: 2.5rem 0 4rem;
    }

    .news-content-container {
        padding: 0 0.8rem;
    }

    .news-article {
        padding: 0;
    }

    .news-article-content {
        font-size: 1.1rem;
        line-height: 1.7;
    }

    .news-article-content p {
        margin-bottom: 1.5rem;
    }

    .news-article-content p:first-child {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .news-navigation-section {
        padding: 2.5rem 0;
    }

    .news-navigation-container {
        padding: 0 0.8rem;
    }

    .news-back-to-all {
        font-size: 1rem;
        padding: 0.8rem 2rem;
    }
}

/* ========================================
   VACANCY APPLICATION MODAL STYLES
   ======================================== */

/* Модальное окно */
.vacancy-modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    padding: 2rem 1rem !important;
}

.vacancy-modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.vacancy-modal-content {
    background-color: #ffffff !important;
    border-radius: 12px !important;
    width: 100% !important;
    max-width: 500px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    position: relative !important;
    animation: modalSlideIn 0.3s ease-out !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.vacancy-modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 2rem 2rem 1rem !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

.vacancy-modal-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin: 0 !important;
}

.vacancy-modal-close {
    background: none !important;
    border: none !important;
    color: #666 !important;
    cursor: pointer !important;
    padding: 0.5rem !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.vacancy-modal-close:hover {
    background-color: #f5f5f5 !important;
    color: #2c3e50 !important;
}

.vacancy-modal-body {
    padding: 2rem !important;
}

.vacancy-selected-info {
    background-color: #f8f9fa !important;
    padding: 1rem !important;
    border-radius: 8px !important;
    margin-bottom: 2rem !important;
}

.vacancy-selected-title {
    font-size: 0.9rem !important;
    color: #666 !important;
    margin: 0 !important;
}

.vacancy-selected-title span {
    font-weight: 600 !important;
    color: #2c3e50 !important;
}

/* Форма */
.vacancy-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
}

.vacancy-form-group {
    display: flex !important;
    flex-direction: column !important;
}

.vacancy-form-label {
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: #2c3e50 !important;
    margin-bottom: 0.5rem !important;
}

.required {
    color: #e74c3c !important;
}

.vacancy-form-input {
    padding: 0.75rem 1rem !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    transition: border-color 0.3s ease !important;
    background-color: #ffffff !important;
}

.vacancy-form-input:focus {
    outline: none !important;
    border-color: #51B0A5 !important;
}

.vacancy-form-input.error {
    border-color: #e74c3c !important;
}

.vacancy-file-input-wrapper {
    position: relative;
}

.vacancy-file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.vacancy-file-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.vacancy-file-label:hover {
    border-color: #51B0A5;
    background-color: #f0f9f8;
}

.vacancy-file-label svg {
    color: #666;
}

.vacancy-file-text {
    color: #666;
    font-size: 0.9rem;
}

.vacancy-file-name {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #51B0A5;
    font-weight: 500;
}

.vacancy-form-help {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

.vacancy-form-error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.vacancy-form-error.show {
    display: block;
}

/* Кнопки */
.vacancy-form-actions {
    display: flex !important;
    gap: 1rem !important;
    margin-top: 1rem !important;
}

.vacancy-btn {
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    min-height: 48px !important;
}

.vacancy-btn-primary {
    background-color: #51B0A5 !important;
    color: #ffffff !important;
    flex: 1 !important;
}

.vacancy-btn-primary:hover:not(:disabled) {
    background-color: #459a8f !important;
}

.vacancy-btn-primary:disabled {
    background-color: #ccc !important;
    cursor: not-allowed !important;
}

.vacancy-btn-secondary {
    background-color: transparent !important;
    color: #666 !important;
    border: 2px solid #e0e0e0 !important;
}

.vacancy-btn-secondary:hover {
    background-color: #f5f5f5 !important;
    border-color: #ccc !important;
}

.btn-loading {
    display: none;
}

.loading .btn-text {
    display: none;
}

.loading .btn-loading {
    display: flex;
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Модальное окно успеха */
.vacancy-modal-success .vacancy-modal-body {
    text-align: center;
    padding: 3rem 2rem;
}

.vacancy-success-icon {
    margin-bottom: 1.5rem;
}

.vacancy-success-message {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.vacancy-modal-success .vacancy-btn {
    margin: 0 auto;
    max-width: 200px;
}

/* Адаптивность */
@media screen and (max-width: 768px) {
    .vacancy-modal {
        padding: 1rem 0.5rem;
    }

    .vacancy-modal-content {
        max-width: 100%;
        margin: 0;
    }

    .vacancy-modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .vacancy-modal-title {
        font-size: 1.3rem;
    }

    .vacancy-modal-body {
        padding: 1.5rem;
    }

    .vacancy-form-actions {
        flex-direction: column;
    }

    .vacancy-btn {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .vacancy-modal-header {
        padding: 1rem 1rem 0.5rem;
    }

    .vacancy-modal-title {
        font-size: 1.2rem;
    }

    .vacancy-modal-body {
        padding: 1rem;
    }

    .vacancy-selected-info {
        padding: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .vacancy-form {
        gap: 1.25rem;
    }
}
