/*
Theme Name: Asgardia
Description: Тема WordPress для АНО «АСГАРДИЯ» - Космическое будущее
Version: 1.0
Author: Asgardia Team
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: #000;
}

.hero {
    position: relative;
    height: 680px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(34, 47, 83, 0.2);
    backdrop-filter: blur(10px);
    z-index: 20;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.header.white {
    background-color: #FFFFFF;
    backdrop-filter: none;
    border-bottom: 1px solid #EEEFF2;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.logo-title {
    color: #fff;
    font-size: 25px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-shadow: 0 4px 80px rgba(0, 209, 255, 1);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.header.white .logo-title {
    color: #414854;
    text-shadow: none;
    font-weight: 400;
}

.logo-subtitle {
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.6px;
    text-shadow: 0 4px 80px rgba(0, 209, 255, 1);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.header.white .logo-subtitle {
    color: #414854;
    text-shadow: none;
}

.nav {
    position: absolute;
    left: 50%;
    transform: translateX(-51%);
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    padding: 12px 24px;
    background-color: #171F38;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
}

.nav-menu a:hover {
    background-color: #1f2a4a;
}

.header.white .nav-menu a {
    background-color: #EEEFF2;
    color: #414854;
}

.header.white .nav-menu a:hover {
    background-color: #D8DCE3;
}

.header.white .nav-menu a.primary,
.header.white .nav-menu a.nav-link.primary {
    background-color: #222F53;
    color: #FFFFFF;
}

.header.white .nav-menu a.primary:hover,
.header.white .nav-menu a.nav-link.primary:hover {
    background-color: #1a2540;
}

.nav-link {
    padding: 12px 24px;
    background-color: #171F38;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
}

.nav-link:hover {
    background-color: #1f2a4a;
}

.header.white .nav-link {
    background-color: #EEEFF2;
    color: #414854;
}

.header.white .nav-link:hover {
    background-color: #D8DCE3;
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu a {
    padding: 12px 24px;
    background-color: #171F38;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    text-align: center;
    width: 100%;
}

.mobile-nav-menu a:hover {
    background-color: #1f2a4a;
}

.header.white .mobile-nav-menu a {
    background-color: #EEEFF2;
    color: #414854;
}

.header.white .mobile-nav-menu a:hover {
    background-color: #D8DCE3;
}

.mobile-nav-menu .nav-link {
    text-align: center;
    width: 100%;
}

.controls {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(34, 47, 83, 0.5);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.btn-icon:hover {
    background-color: rgba(34, 47, 83, 0.7);
}

.header.white .btn-icon {
    background-color: #EEEFF2;
}

.header.white .btn-icon:hover {
    background-color: #D8DCE3;
}

.header.white .btn-icon svg path,
.header.white .btn-icon svg circle {
    stroke: #414854;
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

.menu-btn {
    display: none;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    background-color: rgba(34, 47, 83, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
    flex-direction: column;
    gap: 8px;
    z-index: 19;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.header.white .mobile-menu {
    background-color: #FFFFFF;
    backdrop-filter: none;
    border-top: 1px solid #EEEFF2;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu .nav-link {
    text-align: center;
    width: 100%;
}

.hero-title-container {
    position: absolute;
    top: 139px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    text-align: center;
}

.hero-title {
    color: #fff;
    font-size: 48px;
    font-weight: 500;
    letter-spacing: 2.4px;
    line-height: 1.8;
    text-shadow: 0 4px 80px rgba(0, 209, 255, 1);
    margin-bottom: 12px;
}

.hero-subtitle {
    color: #fff;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.7;
    font-family: 'Roboto', sans-serif;
}

.cards-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1192px;
    padding: 0 60px;
}

.cards-slider-wrapper {
    position: relative;
    overflow: hidden;
}

.cards-grid {
    display: flex;
    gap: 24px;
    transition: transform 0.78s ease-in-out;
    will-change: transform;
}

.cards-grid .card {
    flex: 0 0 calc((100% - 2 * 24px) / 3);
    min-width: calc((100% - 2 * 24px) / 3);
    max-width: calc((100% - 2 * 24px) / 3);
}

.cards-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(34, 47, 83, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    backdrop-filter: blur(10px);
} 

.cards-slider-btn:hover {
    background-color: rgba(34, 47, 83, 1);
}

.cards-slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.cards-slider-btn-prev {
    left: -20px;
}

.cards-slider-btn-next {
    right: -20px;
}

.cards-slider-btn svg {
    width: 20px;
    height: 20px;
    stroke: white;
    stroke-width: 2;
}

.card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background-color: rgba(34, 47, 83, 0.9);
    border-radius: 8px;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.card-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon-1 {
    background-color: rgba(40, 2, 122, 0.5);
}

.card-icon-2 {
    background-color: rgba(54, 108, 255, 0.5);
}

.card-icon-3 {
    background-color: rgba(122, 74, 2, 0.5);
}

.card-icon-wrapper svg {
    width: 48px;
    height: 48px;
}

.card-text {
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    flex: 1;
}

.about-section {
    background-color: #FFFFFF;
    padding: 64px 16px;
}

@media (min-width: 768px) {
    .about-section {
        padding: 96px 32px;
    }
}

@media (min-width: 1024px) {
    .about-section {
        padding: 88px 120px;
    }
}

.about-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    line-height: 100%;
    margin-bottom: 32px;
    width: 100%;
    color: #414854;
}

@media (min-width: 768px) {
    .about-title {
        font-size: 36px;
    }
}

@media (min-width: 1024px) {
    .about-title {
        font-size: 42px;
    }
}

.about-items-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.about-row {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

@media (min-width: 1024px) { 
    .about-row {
        flex-direction: row;
        align-items: flex-start;
    }
}

.about-card {
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.13);
    overflow: hidden;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}


.about-card-image {
    flex: 1 1 auto;
    background-color: #FFFFFF;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.about-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-card-image-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.about-card-text {
    flex: 1 1 auto;
    background-color: #F6F6F6;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 24px;
    justify-content: flex-start;
}

.about-card-text-nopadding {
    padding: 0;
}

.about-icon-wrapper {
    display: flex;
    width: 56px;
    height: 56px;
    padding: 4px;
    justify-content: center;
    align-items: center;
    border-radius: 44px;
    flex-shrink: 0;
}

.about-icon-wrapper.blue {
    background-color: #366CFF;
    opacity: 0.5;
}

.about-icon-wrapper.brown {
    background-color: #7A4A02;
    opacity: 0.5;
}

.about-icon-wrapper.purple {
    background-color: rgba(40, 2, 122, 0.5);
}

.about-icon-wrapper svg {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.about-card-text p {
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    color: #414854;
    margin: 0;
}

@media (min-width: 768px) {
    .about-card-text p {
        font-size: 17px;
    }
}

.about-first-row,
.about-second-row {
    display: flex;
    gap: 20px;
    align-items: stretch;
    width: 100%;
}

.about-first-row > *,
.about-second-row > * {
    flex: 1 1 0;
    min-width: 0;
}

@media (min-width: 1024px) {
    .about-first-row,
    .about-second-row {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .about-first-row,
    .about-second-row {
        flex-direction: column;
    }
    
    .about-card {
        height: auto;
        min-height: 420px;
        height: initial;
    }
}

.news-section {
    background-color: #F6F6F6;
    padding: 64px 16px;
}

@media (min-width: 768px) {
    .news-section {
        padding: 96px 32px;
    }
}

@media (min-width: 1024px) {
    .news-section {
        padding: 128px 120px;
    }
}

.news-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-title {
    font-family: 'Montserrat', -apple-system, Roboto, Helvetica, sans-serif;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    line-height: 100%;
    color: #414854;
    width: 100%;
}

@media (min-width: 768px) {
    .news-title {
        font-size: 36px;
    }
}

@media (min-width: 1024px) {
    .news-title {
        font-size: 42px;
    }
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
}

@media (min-width: 640px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news-card {
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.13);
    overflow: hidden;
    min-width: 0;
}

.news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.news-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    flex: 1;
}

.news-date {
    font-family: 'Roboto', -apple-system, Roboto, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #505050;
    text-transform: uppercase;
    line-height: normal;
}

.news-card-title {
    font-family: 'Montserrat', -apple-system, Roboto, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #414854;
    line-height: 140%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-description {
    font-family: 'Roboto', -apple-system, Roboto, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #505050;
    line-height: 140%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-button-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 8px;
}

.news-button {
    display: inline-flex;
    padding: 20px 28px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 26px;
    background-color: #222F53;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
}

.news-button:hover {
    background-color: #1a2440;
}

.news-button-text {
    font-family: 'Montserrat', -apple-system, Roboto, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    line-height: 100%;
    text-align: center;
}

.news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.news-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.news-card-link:visited {
    color: inherit;
}

.collaboration-section {
    background-color: #FFFFFF;
    padding: 64px 16px;
}

@media (min-width: 768px) {
    .collaboration-section {
        padding: 96px 32px;
    }
}

@media (min-width: 1024px) {
    .collaboration-section {
        padding: 88px 120px;
    }
}

.collaboration-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .collaboration-content-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 21px;
    }
}

.collaboration-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media (min-width: 1024px) {
    .collaboration-text-content {
        max-width: 609px;
    }
}

.collaboration-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 100%;
    color: #414854;
}

@media (min-width: 768px) {
    .collaboration-title {
        font-size: 36px;
    }
}

@media (min-width: 1024px) {
    .collaboration-title {
        font-size: 42px;
    }
}

.collaboration-description {
    font-size: 18px;
    font-weight: 400;
    line-height: 170%;
    color: #414854;
    margin: 0;
}

@media (min-width: 1024px) {
    .collaboration-description {
        font-size: 20px;
    }
}

.collaboration-image-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

@media (min-width: 1024px) {
    .collaboration-image-content {
        max-width: 570px;
    }
}

.collaboration-image-wrapper {
    width: 100%;
    height: auto;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.collaboration-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@media (min-width: 1024px) {
    .collaboration-image-wrapper {
        height: 370px;
    }
    
    .collaboration-image-wrapper img {
        width: auto;
        height: 100%;
        min-width: 100%;
        object-position: center;
    }
}

.footer {
    width: 100%;
    background-color: #222834;
    padding: 32px 16px;
}

@media (min-width: 768px) {
    .footer {
        padding: 48px 32px;
    }
}

@media (min-width: 1024px) {
    .footer {
        padding: 64px 0;
    }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-left {
        flex-direction: row;
        align-items: center;
        flex: 1;
    }
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-logo {
        align-items: flex-start;
        min-width: 190px;
    }
}

.footer-logo-title {
    font-family: 'Montserrat', -apple-system, Roboto, Helvetica, sans-serif;
    font-size: 25px;
    font-weight: 400;
    color: #FFFFFF;
    text-shadow: 0 4px 80px #00D1FF;
    letter-spacing: 1.5px;
    line-height: normal;
}

.footer-logo-subtitle {
    font-family: 'Montserrat', -apple-system, Roboto, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #FFFFFF;
    text-shadow: 0 4px 80px #00D1FF;
    letter-spacing: 0.6px;
    line-height: normal;
}

.footer-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-nav-list {
        justify-content: flex-start;
    }
}

.footer-nav-link {
    font-family: 'Roboto', -apple-system, Roboto, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #FFFFFF;
    text-decoration: none;
    line-height: normal;
    transition: opacity 0.2s;
}

.footer-nav-link:hover {
    opacity: 0.8;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    width: 100%;
}

@media (min-width: 768px) {
    .footer-contacts {
        align-items: flex-start;
        padding: 0 120px;
    }
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-contact-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.footer-contact-email {
    font-family: 'Roboto', -apple-system, Roboto, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #FFFFFF;
    text-decoration: underline;
    line-height: 140%;
    transition: opacity 0.2s;
}

.footer-contact-email:hover {
    opacity: 0.8;
}

.footer-contact-address {
    font-family: 'Roboto', -apple-system, Roboto, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #FFFFFF;
    line-height: 140%;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-contact-address {
        text-align: left;
    }
}

.footer-copyright {
    font-family: 'Roboto', -apple-system, Roboto, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #FFFFFF;
    line-height: normal;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-copyright {
        text-align: right;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .cards-grid .card {
        flex: 0 0 calc((100% - 1 * 24px) / 2);
        min-width: calc((100% - 1 * 24px) / 2);
        max-width: calc((100% - 1 * 24px) / 2);
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 24px 20px;
    }

    .logo-title {
        font-size: 20px;
    }

    .logo-subtitle {
        font-size: 11px;
    }

    .nav {
        display: none;
    }

    .menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .cards-grid .card {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .cards-container {
        bottom: 20px;
        padding: 0 50px;
    }
    
    .cards-slider-btn {
        width: 32px;
        height: 32px;
    }
    
    .cards-slider-btn svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 780px) {
    .hero {
        height: 60vh;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 48vh;
    }

    .hero-title-container {
        top: 120px;
        padding: 0 15px;
    }

    .hero-title {
        font-size: 24px;
        letter-spacing: 1.2px;
        line-height: 1.6;
    }

    .hero-subtitle {
        font-size: 14px;
        line-height: 1.5;
    }

    .cards-container {
        bottom: 15px;
        padding: 0 15px;
    }

    .card {
        padding: 16px 18px;
        gap: 12px;
    }

    .card-icon-wrapper {
        width: 48px;
        height: 48px;
    }

    .card-icon-wrapper svg {
        width: 40px;
        height: 40px;
    }

    .card-text {
        font-size: 12px;
    }
}

.search-form {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%) translateX(-10px);
    z-index: 1001;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.search-form.active {
    display: block;
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 250px;
}

.search-input {
    width: 100%;
    padding: 14px 54px 14px 24px;
    border-radius: 44px;
    background: #EEEFF2;
    border: none;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #414854;
}

.search-input::placeholder {
    color: #414854;
    opacity: 1;
}

.search-input:focus {
    background: #E5E6E9;
}

.search-icon {
    position: absolute;
    right: 24px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.search-icon:hover {
    opacity: 0.7;
}

.search-close {
    position: absolute;
    right: 50px;
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    z-index: 1;
}

.search-close:hover {
    opacity: 0.7;
}

.search-close svg {
    color: #414854;
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .search-form {
        left: 0;
        right: 0;
        transform: translateY(-50%) translateX(-10px);
        width: 100%;
    }
    
    .search-form.active {
        transform: translateY(-50%) translateX(0);
    }
    
    .controls.search-active {
        width: 100% !important;
    }
    
    .search-form .search-wrapper {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    .search-form form {
        width: 100%;
    }
    
    .search-input {
        font-size: 14px;
        padding: 14px 48px 14px 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .search-icon {
        right: 20px;
        width: 16px;
        height: 16px;
    }
    
    .search-close {
        right: 44px;
    }
}