@import url('https://fonts.googleapis.com/css2?family=Dela+Gothic+One&family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700;14..32,800;14..32,900&display=swap');

:root {
    --layout-ink: #1f1a2e;
    --layout-footer: #25262c;
}

body {
    padding-top: 118px;
}

body.common-layout-ready {
    overflow-x: hidden;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1300px;
    width: 90%;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 1400px) {
    .header-container {
        width: 70%;
        padding: 0;
    }
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 32px;
    min-width: 0;
}

.logo {
    color: var(--layout-ink);
    font-family: Inter, sans-serif;
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: 0;
    white-space: nowrap;
    cursor: pointer;
}

.menu-btn-black,
.pick-header-btn,
.login-header-btn {
    min-height: 41px;
    border-radius: 40px;
    font-family: Inter, sans-serif;
    font-size: 0.95rem;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.menu-btn-black,
.pick-header-btn {
    border: 0;
    background: var(--layout-ink);
    color: #fff;
    font-weight: 700;
}

.menu-btn-black {
    padding: 10px 28px;
}

.pick-header-btn {
    padding: 10px 34px;
}

.login-header-btn {
    border: 1.5px solid var(--layout-ink);
    background: transparent;
    color: var(--layout-ink);
    padding: 10px 28px;
    font-weight: 600;
}

.search-wrapper {
    flex: 1;
    max-width: 460px;
    min-width: 340px;
}

.search-input {
    width: 100%;
    padding: 10px 20px;
    border: 1.5px solid #e0d9f0;
    border-radius: 60px;
    background: #fff;
    color: var(--layout-ink);
    font-family: Inter, sans-serif;
    font-size: 0.9rem;
    outline: none;
}

.header-actions,
#authButtons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-btn-black {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.menu-btn-black img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.menu-btn-label {
    line-height: 1;
}

.header-search-icon {
    border: 0;
    background: transparent;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.header-search-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.login-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.login-header-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.user-name {
    color: var(--layout-ink);
    background: #f0eef5;
    padding: 8px 16px;
    border-radius: 40px;
    font-family: Inter, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.user-name.has-avatar {
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid rgba(31, 26, 46, 0.18);
    background: #fff;
}

.header-user-avatar {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

.header-bottom {
    padding: 10px 0;
    border-top: 1px solid rgba(139, 92, 246, 0.15);
}

.bottom-nav {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    color: #2d2440;
    font-family: Inter, sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
}

.bottom-nav span {
    color: #2d2440;
    white-space: nowrap;
    cursor: pointer;
}

.mobile-menu-drop {
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    z-index: 999;
    display: none;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 24px 24px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #eee;
    box-shadow: 0 16px 34px rgba(31, 26, 46, 0.12);
}

.mobile-menu-drop.open {
    display: grid;
}

.mobile-menu-drop span {
    color: var(--layout-ink);
    font-family: Inter, sans-serif;
    font-weight: 700;
    cursor: pointer;
}

.site-footer {
    position: relative;
    margin-top: 72px;
    padding: clamp(76px, 5.8vw, 112px) 0 clamp(28px, 2.4vw, 46px);
    background: var(--layout-footer);
    color: #f4f4f6;
}

.footer-pick-btn {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: clamp(260px, 21vw, 390px);
    padding: clamp(18px, 1.45vw, 27px) clamp(34px, 2.7vw, 52px);
    border: 4px solid #fff;
    border-radius: 999px;
    background: var(--layout-footer);
    color: #fff;
    box-shadow: 0 8px 0 #fff;
    font-family: 'Dela Gothic One', Inter, sans-serif;
    font-size: clamp(18px, 1.35vw, 26px);
    line-height: 1;
    cursor: pointer;
}

.footer-inner {
    width: min(76vw, 1490px);
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 0.8fr 1fr 1.1fr minmax(310px, 1.35fr);
    gap: clamp(34px, 4.8vw, 92px);
    align-items: start;
}

.site-footer h4 {
    margin: 0 0 18px;
    color: #fff;
    font-family: 'Dela Gothic One', Inter, sans-serif;
    font-size: clamp(16px, 1.08vw, 21px);
    font-weight: 400;
    line-height: 1.1;
}

.site-footer a,
.site-footer p,
.site-footer div {
    color: inherit;
}

.footer-brand,
.footer-squads,
.footer-social {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-brand a,
.footer-squads a {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    text-decoration: none;
    font-family: Inter, sans-serif;
    font-size: clamp(13px, 0.92vw, 18px);
    line-height: 1.18;
}

.footer-social-icons {
    display: flex;
    gap: 10px;
}

.footer-social-icons a {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
}

.footer-cards {
    display: flex;
    flex-direction: column;
    gap: clamp(22px, 2.2vw, 42px);
}

.footer-card {
    border-radius: 18px;
    background: #666870;
    color: #fff;
}

.footer-survey-card {
    min-height: clamp(130px, 10vw, 190px);
    padding: clamp(18px, 1.45vw, 28px) clamp(18px, 1.55vw, 30px);
}

.footer-survey-card p {
    margin: 0 0 22px;
    font-family: Inter, sans-serif;
    font-size: clamp(12px, 0.85vw, 16px);
    line-height: 1.25;
}

.footer-survey-card button {
    min-width: 152px;
    padding: 10px 22px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: var(--layout-footer);
    font-family: Inter, sans-serif;
    font-weight: 800;
    cursor: pointer;
}

.footer-contact-card {
    padding: clamp(14px, 1vw, 20px) clamp(16px, 1.35vw, 26px);
}

.footer-contact-images {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.footer-contact-images img {
    width: clamp(52px, 4.3vw, 82px);
    height: clamp(52px, 4.3vw, 82px);
    border-radius: 7px;
    object-fit: contain;
    background: #fff;
}

.footer-contact-card p {
    margin: 0;
    font-family: 'Dela Gothic One', Inter, sans-serif;
    font-size: clamp(10px, 0.76vw, 14px);
    line-height: 1.45;
}

.footer-legal {
    margin-top: clamp(34px, 4vw, 76px);
    padding-top: clamp(18px, 1.6vw, 30px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: grid;
    grid-template-columns: 1.1fr 1.1fr 1.45fr auto;
    gap: clamp(24px, 3.2vw, 62px);
    align-items: center;
    color: rgba(255, 255, 255, 0.45);
    font-family: Inter, sans-serif;
    font-size: clamp(11px, 0.76vw, 14px);
    line-height: 1.45;
}

.footer-legal a,
.footer-legal div {
    color: rgba(255, 255, 255, 0.45);
}

.footer-legal a {
    font-weight: 700;
    text-decoration: underline;
}

.footer-legal-logos {
    display: flex;
    gap: 22px;
}

.footer-legal-logos img {
    width: clamp(44px, 3.4vw, 64px);
    height: clamp(44px, 3.4vw, 64px);
    object-fit: contain;
    opacity: 0.72;
}

@media (max-width: 1100px) {
    .search-wrapper {
        display: none;
    }
}

@media (max-width: 900px) {
    body {
        padding-top: 66px;
    }

    .header-container {
        width: 100%;
        max-width: none;
        padding: 0 16px;
    }

    .header-top {
        gap: 8px;
        min-height: 64px;
        padding: 8px 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .header-bottom {
        display: none;
    }

    .header-search-icon {
        display: inline-flex;
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

    .menu-btn-black {
        display: inline-flex;
        min-height: 40px;
        width: 52px;
        height: 40px;
        padding: 0;
        justify-content: center;
        flex-shrink: 0;
        order: 3;
        border-radius: 999px;
    }

    .menu-btn-label {
        display: none;
    }

    .menu-btn-black img {
        width: 26px;
        height: 26px;
    }

    .logo-area {
        display: contents;
    }

    .logo {
        order: 1;
        flex: 1 1 auto;
        font-size: clamp(1.05rem, 5.2vw, 1.65rem);
        min-width: 0;
        overflow: hidden;
        text-overflow: clip;
        white-space: nowrap;
        line-height: 1;
        padding-left: 0;
    }

    .pick-header-btn,
    .login-header-btn {
        min-height: 36px;
        padding: 8px 14px;
        font-size: clamp(0.72rem, 2.8vw, 0.86rem);
    }

    .header-actions,
    #authButtons {
        gap: 7px;
        flex-shrink: 0;
        order: 2;
        min-width: 0;
    }

    .mobile-menu-drop {
        top: 66px;
    }

    .footer-inner {
        width: min(88vw, 900px);
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 34px;
    }

    .footer-cards,
    .footer-legal {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    body {
        padding-top: 64px;
    }

    .header-top {
        padding: 8px 0;
        min-height: 64px;
    }

    .logo {
        font-size: clamp(0.98rem, 5.6vw, 1.35rem);
    }

    .logo-area {
        display: contents;
    }

    .menu-btn-black {
        width: 50px;
        height: 40px;
        min-height: 40px;
        padding: 0;
        justify-content: center;
    }

    .menu-btn-black img {
        width: 26px;
        height: 26px;
    }

    .pick-header-btn {
        display: none;
    }

    .login-header-btn {
        padding: 0;
    }

    .login-header-btn span {
        display: none;
    }

    .login-header-btn img,
    .header-search-icon img {
        width: 23px;
        height: 23px;
    }

    .user-name {
        padding: 7px 11px;
        font-size: 0.78rem;
    }

    .user-name.has-avatar {
        width: 38px;
        height: 38px;
        padding: 0;
    }

    .mobile-menu-drop {
        top: 64px;
        padding: 14px 18px 18px;
    }

    .header-container {
        padding: 0 12px;
    }
}

@media (max-width: 380px) {
    .header-container {
        padding: 0 10px;
    }

    .logo {
        font-size: clamp(0.9rem, 5.2vw, 1.15rem);
    }

    .header-actions,
    #authButtons {
        gap: 4px;
    }

    .header-search-icon {
        width: 30px;
        height: 30px;
    }

    .menu-btn-black {
        width: 42px;
        min-width: 42px;
        height: 36px;
        min-height: 36px;
    }

    .site-footer {
        padding-top: 74px;
    }

    .footer-pick-btn {
        min-width: min(78vw, 300px);
        padding: 16px 24px;
        border-width: 3px;
        box-shadow: 0 6px 0 #fff;
        font-size: 16px;
    }

    .footer-inner {
        width: min(90vw, 430px);
    }

    .footer-main,
    .footer-cards,
    .footer-legal {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand,
    .footer-squads,
    .footer-social {
        align-items: center;
    }

    .footer-social-icons,
    .footer-contact-images,
    .footer-legal-logos {
        justify-content: center;
    }
}

