/* Large Desktops (от 1200px до 1400px) */
@media (max-width: 1400px) {
    .container {
        max-width: 1140px;
    }

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

    #tips .container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Desktops (от 992px до 1200px) */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

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

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

/* ДЕСКТОПНАЯ ВЕРСИЯ Hero (1024px и больше) */
@media (min-width: 1024px) {
    .hero-section {
        background-image: url('/IMG/hero/desktop_v.png');
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        min-height: 80vh;
        display: flex;
        align-items: center;
        padding: 60px 0;
    }

    .hero-content {
        width: 50%;
        max-width: 600px;
        padding: 0 80px;
        background: transparent;
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
        font-weight: 700;
        color: white;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.3rem;
        color: white;
        margin-bottom: 48px;
        opacity: 0.9;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 20px;
        max-width: 400px;
    }

    .hero-buttons .btn {
        padding: 18px 32px;
        font-size: 1.1rem;
    }

    .btn-primary-hero {
        background: #5cff3f9c;
        color: white;
    }
}

/* БОЛЬШИЕ ЭКРАНЫ (1200px и больше) */
@media (min-width: 1200px) {
    .hero-content {
        width: 45%;
        max-width: 650px;
        padding: 0 100px;
    }

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

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

/* МОБИЛЬНАЯ ВЕРСИЯ Hero (до 1023px) */
@media (max-width: 1023px) {
    .hero-section {
        background-image: url('/IMG/hero/phone_v.png');
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        min-height: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px 20px;
    }

    .hero-content {
        max-width: 450px;
        width: 100%;
        padding: 40px 30px;
        background: rgba(17, 63, 78, 0.9);
        border-radius: var(--border-radius-lg);
        backdrop-filter: blur(5px);
        box-shadow: var(--box-shadow-hover);
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
        font-weight: 700;
        color: white;
        margin-bottom: 16px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        color: white;
        margin-bottom: 40px;
        opacity: 0.9;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .hero-buttons .btn {
        padding: 16px 24px;
        font-size: 1rem;
    }

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

    .btn-primary-hero:hover {
        background: #005a63;
        color: white;
        transform: translateY(-1px);
    }

    .btn-secondary {
        background: transparent;
        color: white;
        border: 2px solid white;
    }

    .btn-secondary:hover {
        background: white;
        color: var(--primary-color);
        transform: translateY(-1px);
    }
}

/* Tablets (от 768px до 992px) */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    section {
        padding: 50px 0;
    }

    /* Navigation */
    .main-nav {
        display: none;
    }

    .main-nav .dropdown-content {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 5px;
        padding: 8px;
        border-radius: 4px;
        transition: background-color var(--transition-speed);
    }

    .mobile-menu-btn:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .mobile-menu-btn span {
        width: 25px;
        height: 2px;
        background-color: white;
        border-radius: 1px;
        transition: all var(--transition-speed);
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

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

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Hero adjustments */
    .hero-section {
        padding: 140px 0 70px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

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

    /* Stats */
    .stat-card {
        min-width: 45%;
    }

    /* Buttons */
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Partners */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-logo {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 20px;
    }

    .footer-menu .footer-column:nth-child(1) {
        grid-column: 1;
    }

    .footer-menu .footer-column:nth-child(2) {
        grid-column: 2;
    }

    .footer-menu .footer-column:nth-child(3) {
        grid-column: 1;
    }

    .footer-contacts {
        grid-column: 1 / -1;
        text-align: center;
        margin-top: 20px;
    }

    .footer-contacts h4:after {
        left: 50%;
        transform: translateX(-50%);
    }

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

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

    /* Services */
    .services-categories .categories-grid {
        grid-template-columns: 1fr;
    }

    /* Forms */
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        order: -1;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* Navigation grids */
    #tips .container {
        grid-template-columns: repeat(3, 1fr);
    }

    .guides-grid,
    .checklists-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .info-navigation {
        top: 55px;
        padding: 8px 0;
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 63, 78, 0.95);
    backdrop-filter: blur(5px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
}

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

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-header .logo img {
    height: 40px;
}

.close-menu {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color var(--transition-speed);
}

.close-menu:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-nav {
    padding: 30px 0;
}

.mobile-menu-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-nav li.has-submenu {
    position: relative;
}

.mobile-menu-nav a {
    display: block;
    padding: 20px;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all var(--transition-speed);
}

.mobile-menu-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 30px;
}

.submenu-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all var(--transition-speed);
}

.submenu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-submenu {
    background-color: rgba(0, 0, 0, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-submenu.active {
    max-height: 300px;
}

.mobile-submenu a {
    padding: 15px 40px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-submenu a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 50px;
}

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

.mobile-lang-switcher {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.mobile-lang-switcher button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition-speed);
    font-weight: 500;
    color: white;
}

.mobile-lang-switcher button.active {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
}

.mobile-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.mobile-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    transition: all var(--transition-speed);
    font-size: 1.2rem;
}

.mobile-social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.mobile-menu-footer p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 1.1rem;
}

.mobile-menu-footer a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

/* Mobile Landscape (от 576px до 768px) */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }

    body {
        padding-top: 70px;
    }

    section {
        padding: 40px 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    /* Header */
    .site-header {
        padding: 12px 0;
    }

    .header-inner {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .logo {
        order: 1;
        flex-grow: 1;
    }

    .mobile-menu-btn {
        order: 3;
        margin-left: auto;
    }

    .lang-switcher {
        order: 2;
        margin-right: 15px;
    }

    .logo img {
        max-height: 40px;
    }

    /* Hero */
    .hero-section {
        min-height: 400px;
        padding: 30px 0;
        background-position: center center;
    }

    .hero-content {
        max-width: 100%;
        padding: 30px 20px;
        margin: 0 10px;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-buttons {
        gap: 12px;
    }

    .hero-buttons .btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    /* Typography */
    .section-intro {
        font-size: 1rem;
    }

    /* Stats */
    .stats-row {
        flex-direction: column;
    }

    .stat-card {
        min-width: 100%;
    }

    /* Forms */
    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    /* Testimonials */
    .testimonial-slide {
        padding: 20px;
    }

    /* Footer */
    .footer-nav {
        flex-direction: column;
        gap: 30px;
    }

    .footer-menu {
        flex-direction: column;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

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

    /* Partners */
    .partners-grid {
        gap: 20px;
    }

    .partner-logo {
        width: 120px;
        height: 80px;
    }

    /* Certificates */
    .certificates-grid {
        grid-template-columns: 1fr;
    }

    /* News */
    .section-title {
        font-size: 1.8rem;
    }

    .news-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .news-image {
        height: 180px;
    }

    .news-content {
        padding: 1.25rem;
    }

    .pagination-link {
        min-width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }

    .news-detail-container {
        padding: 2rem 1rem;
    }

    .news-detail {
        padding: 1.5rem;
    }

    .news-detail-title {
        font-size: 1.8rem;
    }

    .news-detail-text {
        font-size: 1rem;
    }

    /* Contacts */
    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 30px 20px;
    }

    /* Info Navigation */
    .info-navigation {
        top: 50px;
        padding: 5px 0;
    }

    .info-tab {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    /* Categories */
    .faq-categories,
    .tips-categories {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 5px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .faq-categories::-webkit-scrollbar,
    .tips-categories::-webkit-scrollbar {
        display: none;
    }

    .category-btn {
        white-space: nowrap;
        flex: 0 0 auto;
    }

    /* Contact methods */
    .contact-method {
        flex-direction: column;
        text-align: center;
        margin-bottom: 30px;
    }

    .method-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .contact-info,
    .contact-form-container {
        padding: 30px;
    }

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

    /* CTA Buttons */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin: 0;
    }
}

/* Mobile Portrait (до 576px) */
@media (max-width: 576px) {
    body {
        padding-top: 65px;
    }

    .container {
        padding: 0 20px;
    }

    /* Typography */
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Header */
    .site-header {
        padding: 10px 0;
    }

    .header-inner {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 0 15px;
    }

    .logo {
        max-width: 50%;
    }

    .mobile-menu-btn {
        order: 2;
        width: auto;
    }

    .lang-switcher {
        order: 3;
        width: 100%;
        margin-top: 10px;
        justify-content: center;
        gap: 6px;
    }

    .lang-switcher button {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .logo img {
        max-width: 100%;
        min-height: 50px;
        height: 35px;
    }

    /* Hero */
    .hero-section {
        min-height: 350px;
        padding: 20px 0;
    }

    .hero-content {
        padding: 25px 15px;
        margin: 0 5px;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .hero-buttons {
        gap: 10px;
        max-width: 280px;
    }

    .hero-buttons .btn {
        padding: 12px 18px;
        font-size: 0.9rem;
    }

    /* Grids */
    .services-grid {
        grid-template-columns: 1fr;
    }

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

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

    .partner-logo {
        height: 100px;
    }

    /* Testimonials */
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }

    /* Messenger */
    .messenger-buttons {
        bottom: 15px;
        right: 15px;
    }

    .messenger-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    /* Footer */
    .site-footer {
        padding: 40px 0 20px;
        overflow: hidden;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-logo {
        grid-column: 1;
        order: 1;
        margin-bottom: 30px;
    }

    .footer-logo img {
        height: 40px;
        max-width: 150px;
        margin: 0 auto;
    }

    .footer-logo p {
        max-width: 100%;
        padding: 0 20px;
        font-size: 0.9rem;
        margin-top: 15px;
        line-height: 1.4;
    }

    .footer-menu .footer-column:nth-child(1),
    .footer-menu .footer-column:nth-child(2),
    .footer-menu .footer-column:nth-child(3) {
        grid-column: 1;
        order: 2;
        margin-bottom: 25px;
    }

    .footer-column {
        text-align: center;
        margin-bottom: 25px;
    }

    .footer-column h4 {
        text-align: center;
        font-size: 1.1rem;
        margin-bottom: 15px;
        color: white;
    }

    .footer-column h4:after {
        left: 50%;
        transform: translateX(-50%);
        margin: 8px auto 0;
        width: 40px;
        display: block;
    }

    .footer-contacts {
        order: 3;
        grid-column: 1;
        text-align: center;
    }

    .contact-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-bottom: 15px;
        gap: 8px;
    }

    .contact-item i {
        font-size: 1.2rem;
        color: var(--accent-color);
        margin-bottom: 5px;
        margin-right: 0;
    }

    .contact-item a,
    .contact-item span {
        text-decoration: none;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .social-links {
        justify-content: center;
        margin-top: 15px;
        gap: 15px;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }

    .footer-bottom {
        order: 4;
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding-top: 20px;
        margin-top: 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-bottom p {
        font-size: 0.85rem;
        margin: 0;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    /* News */
    .news-section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.8rem;
    }

    .news-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .news-image {
        height: 200px;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination-link {
        min-width: 36px;
        height: 36px;
        padding: 0 0.6rem;
    }

    .pagination-item.hide-on-mobile {
        display: none;
    }

    .news-detail-container {
        padding: 1.5rem 1rem;
    }

    .news-detail {
        padding: 1.2rem;
        border-radius: 6px;
    }

    .news-detail-title {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .news-detail-date {
        margin-bottom: 1.2rem;
    }

    .news-detail-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .news-detail-actions {
        margin-top: 1.8rem;
        padding-top: 1.2rem;
    }

    .back-to-news {
        display: block;
        text-align: center;
        padding: 0.8rem;
    }

    /* Tips grid */
    #tips .container {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Forms */
    .form-container {
        padding: 15px 5px;
    }

    .contact-form {
        padding: 20px 15px;
        margin: 10px 5px;
    }

    .form-header {
        margin-bottom: 25px;
        padding-bottom: 15px;
    }

    .form-header h1 {
        font-size: 1.375rem;
        margin-bottom: 10px;
    }

    .form-header p {
        font-size: 0.95rem;
    }

    .info-section,
    .priority-section,
    .company-section,
    .vacancies-section {
        padding: 15px 12px;
        margin-bottom: 20px;
    }

    .info-section h3,
    .priority-section h3,
    .company-section h3,
    .vacancies-section h3 {
        font-size: 1.125rem;
        margin-bottom: 15px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .language-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
    }

    .language-item label {
        min-width: auto;
        font-size: 0.9rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 8px;
    }

    .radio-group label,
    .checkbox-group label {
        font-size: 0.9rem;
        padding: 6px 0;
    }

    .language-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .btn-primary {
        padding: 14px 20px;
        font-size: 0.95rem;
        margin: 25px auto 0;
    }

    /* Office cards */
    .office-info {
        padding: 20px;
    }

    /* FAQ */
    .faq-question {
        padding: 15px;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-answer {
        font-size: 0.9rem;
    }

    /* Info navigation */
    .info-navigation {
        top: 45px;
    }

    .info-tab {
        padding: 5px 8px;
        font-size: 0.75rem;
    }

    /* Contact info */
    .contact-info h2 {
        font-size: 1.8rem;
    }

    .contact-info,
    .contact-form-container {
        padding: 25px;
    }

    /* Accordion */
    .accordion-header {
        padding: 15px;
    }

    /* Service tables */
    .service-table {
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
    }

    .service-list li {
        margin-bottom: 15px;
        padding-bottom: 15px;
    }

    /* Benefit cards */
    .benefit-card {
        padding: 20px;
    }

    /* Category cards */
    .category-card {
        flex-direction: column;
    }

    .category-card .category-image {
        order: -1;
    }

    .category-card .category-image img {
        max-height: 200px;
        object-fit: cover;
    }

    /* Contact section */
    .contact-section {
        padding: 60px 0;
    }
}

/* Ultra Small Devices (до 480px) */
@media (max-width: 480px) {
    body {
        padding-top: 65px;
    }

    .site-header {
        padding: 10px 0;
    }

    .header-inner {
        padding: 0 15px;
    }

    .logo img {
        height: 35px;
    }

    .lang-switcher {
        gap: 6px;
    }

    .lang-switcher button {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .hero-section {
        min-height: 350px;
        padding: 20px 0;
    }

    .hero-content {
        padding: 25px 15px;
        margin: 0 5px;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .hero-buttons {
        gap: 10px;
        max-width: 280px;
    }

    .btn {
        padding: 12px 18px;
        font-size: 0.9rem;
    }

    /* Form improvements */
    .form-container {
        padding: 15px 5px;
    }

    .contact-form {
        padding: 20px 15px;
        margin: 10px 5px;
    }

    .form-header {
        margin-bottom: 25px;
        padding-bottom: 15px;
    }

    .form-header h1 {
        font-size: 1.375rem;
        margin-bottom: 10px;
    }

    .form-header p {
        font-size: 0.95rem;
    }

    .info-section,
    .priority-section,
    .company-section,
    .vacancies-section {
        padding: 15px 12px;
        margin-bottom: 20px;
    }

    .info-section h3,
    .priority-section h3,
    .company-section h3,
    .vacancies-section h3 {
        font-size: 1.125rem;
        margin-bottom: 15px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .language-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
    }

    .language-item label {
        min-width: auto;
        font-size: 0.9rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 8px;
    }

    .radio-group label,
    .checkbox-group label {
        font-size: 0.9rem;
        padding: 6px 0;
    }

    .language-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .btn-primary {
        padding: 14px 20px;
        font-size: 0.95rem;
        margin: 25px auto 0;
    }
}

/* Very Small Devices (до 400px) */
@media (max-width: 400px) {
    .container {
        padding: 0 10px;
    }

    .hero-content {
        padding: 20px 12px;
        margin: 0;
    }

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

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

    .contact-form {
        padding: 15px 10px;
        margin: 5px 0;
    }

    .info-section,
    .priority-section,
    .company-section,
    .vacancies-section {
        padding: 12px 8px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .site-footer {
        padding: 30px 0 15px;
    }

    .footer-content {
        gap: 20px;
    }

    .footer-column {
        margin-bottom: 20px;
    }

    .footer-column h4 {
        font-size: 1rem;
    }

    .footer-logo img {
        max-width: 120px;
    }

    .footer-logo p {
        font-size: 0.85rem;
        padding: 0 5px;
    }

    .contact-item a,
    .contact-item span {
        font-size: 0.85rem;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }

    .footer-bottom {
        margin-top: 20px;
        padding-top: 15px;
    }

    .footer-bottom p,
    .footer-links a {
        font-size: 0.75rem;
    }
}

/* Ultra Small Devices (до 360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .hero-content {
        padding: 20px 12px;
        margin: 0;
    }

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

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

    .contact-form {
        padding: 15px 10px;
        margin: 5px 0;
    }

    .info-section,
    .priority-section,
    .company-section,
    .vacancies-section {
        padding: 12px 8px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

/* Landscape Mobile Orientation */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        min-height: 250px;
        padding: 15px 0;
    }

    .hero-content {
        padding: 20px 15px;
    }

    .hero-title {
        font-size: 1.375rem;
        margin-bottom: 8px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .hero-buttons {
        gap: 8px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* Touch Enhancements */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .form-group input,
    .form-group select,
    .form-group textarea,
    .alert-close,
    .mobile-menu-nav a,
    .submenu-toggle {
        min-height: 44px;
    }

    .radio-group input,
    .checkbox-group input {
        min-width: 20px;
        min-height: 20px;
    }

    .lang-switcher button {
        min-height: 40px;
        min-width: 40px;
    }
}

/* High DPI Displays */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min--moz-device-pixel-ratio: 2),
       only screen and (-o-min-device-pixel-ratio: 2/1),
       only screen and (min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi),
       only screen and (min-resolution: 2dppx) {
    .logo img,
    .footer-logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}