/* Общие стили */
@font-face {
    font-family: 'Juneau';
    src: url('Juneau-Semilight-Web.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Juneau', sans-serif;
    background-color: #f8f8f8;
    color: #111;
    overflow-x: hidden;
    /* Убрали cursor: none чтобы курсор не пропадал */
}

/* Главный экран */
.main-screen {
    height: 100dvh;
    padding: 24px 40px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Верхняя панель с гридом */
.top-grid {
    display: grid;
    grid-template-columns: 440px auto 110px;
    width: 100%;
}

/* Логотип с анимацией появления */
.logo {
    width: 260px;
    height: 108px;
    filter: blur(10px);
    opacity: 0.6;
    animation: logoAppear 0.5s ease forwards;
}
.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes logoAppear {
    0% {
        filter: blur(10px);
        opacity: 0.6;
    }
    100% {
        filter: blur(0);
        opacity: 1;
    }
}

@keyframes blurIn {
    0% {
        filter: blur(0);
        opacity: 1;
    }
    100% {
        filter: blur(10px);
        opacity: 0.6;
    }
}

/* Ссылка Inspiration */
.inspiration-link {
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: #111;
    position: relative;
    display: inline-block;
    align-self: flex-start;
    justify-self: end;
}

.inspiration-link::after {
    content: '';
    position: absolute;
    bottom: 50%;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #111;
    transition: width 0.3s ease;
}

.inspiration-link:hover::after {
    width: 100%;
}

/* Текст в центре */
.center-text {
    font-size: 38px;
    line-height: 36px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.center-text p {
    margin-bottom: 36px;
    max-width: 810px;
}

/* Текст Submit внизу */
.submit-link {
    position: absolute;
    bottom: 20px;
    left: 0;
    z-index: 100;
    width: 100%;
    text-align: center;
    font-size: 12vw;
    text-transform: uppercase;
    text-decoration: none;
    color: #111;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
}

.submit-link::after {
    content: '';
    position: absolute;
    bottom: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #111;
    transition: width 0.8s ease;
}

.submit-link:hover::after {
    width: 0;
}

/* Круги с анимацией */
.circles-container {
    position: absolute;
    bottom: 20px;
    left: 480px;
    right: 30px;
    display: flex;
    flex-wrap: wrap;
    max-height: 360px;
    overflow: visible;
    gap: 20px 37px; /* Уменьшили вертикальный gap до 20px */
}

.circle-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
}

.circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #c0212c;
    position: absolute;
    opacity: 0;
    transform: scale(0.8) translateY(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.circle-shadow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #c0212c;
    opacity: 0.15;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}




/* Header */
.header {
    position: fixed;
    top: -100px;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    z-index: 1000;
    transition: top 0.6s ease;
    background-color: rgba(248, 248, 248, 0.2);
    backdrop-filter: blur(10px);
}

.header.visible {
    top: 0px;
}

.header-grid {
    display: grid;
    grid-template-columns: 440px auto;
    align-items: center;
}

.logo-text {
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: #111;
    position: relative;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: 50%;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #111;
    transition: width 0.3s ease;
}

.logo-text:hover::after {
    width: 100%;
}

.header-menu {
    display: flex;
    justify-content: space-between;
    list-style: none;
}

.header-menu a {
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: #111;
    position: relative;
}

.header-menu a::after {
    content: '';
    position: absolute;
    bottom: 50%;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #111;
    transition: width 0.3s ease;
}

.header-menu a:hover::after {
    width: 100%;
}

/* Second Section */
section {
    padding: 120px 40px 0px;
}

.section-grid {
    display: grid;
    grid-template-columns: 440px auto 110px;
    row-gap: 70px;
   
}

.section-title {
    font-size: 38px;
    line-height: 36px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    filter: blur(10px);
    opacity: 0.6;
}


.section-preface {
    font-size: 38px;
    line-height: 36px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    animation-delay: 0.2s;
}

.section-content {
    grid-column: 2;
}

#challenge .section-preface {
    margin-bottom: 70px;
    filter: blur(10px);
    opacity: 0.6;
}

.section-content p,
.section-content ul {
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 0.06em;
    margin-bottom: 30px;
}
.section-content p:last-child,
.section-content ul:last-child {
    margin-bottom: 0px !important;
}

.section-content ul {
    padding-left: 15px;
}
.section-content ul li {
    padding-left: 15px;
}
.section-content li::marker {
    font-size: 12px; /* Размер буллета 3x3px */
    width: 3px;
    height: 3px;
}

.section-content ul>br:last-child {
    display: none;
}
.submit-section p{
    font-size: 38px;
    line-height: 36px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0px 40px;
}

h2, h1 {
    font-weight: normal;
}

.submit-section {
    padding: 90px 0 60px;
}

#faq + .submit-section {
    padding: 0px !important;
}

.submit-section .submit-link {
    position: relative;
    margin: 0px auto;
    display: block;
    line-height: 80%;
    bottom: 0px !important;
}

#faq .section-preface p{
    display: grid;
    grid-template-columns: 70px auto;
}

.section-preface p,
.section-content p{
    max-width: 810px;
}


#faq .section-preface {
    filter: blur(10px);
    opacity: 0.6;
    margin-bottom: 30px;
}

#faq .section-preface:not(:first-child) {
    margin-top: 50px;
}

#challenge + .submit-section{
    padding-bottom: 0px;
}

#faq {
    padding-bottom: 140px;
    padding-top: 120px;
}

footer {
    padding: 30px 40px;
    display: grid;
    grid-template-columns: 440px 1fr auto;
}


footer a {
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: #111;
    position: relative;
    cursor: pointer;
}
footer span {
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #111;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: 50%;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #111;
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}


/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 17, 17, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.popup-content {
    background-color: #f8f8f8;
    padding: 25px 40px;
    max-width: 560px;
    width: 90%;
    position: relative;
}

.popup-title {
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #111;
    text-align: center;
    margin-bottom: 40px;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.form-label {
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #111;
    margin-bottom: 10px;
}

.form-input {
    font-size: 16px;
    line-height: 40px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #111;
    background: transparent;
    border: none;
    border-bottom: 1px solid #111;
    padding: 0;
    outline: none;
    font-family: 'Juneau', sans-serif;
}

.file-input-wrapper {
    display: flex;
    align-items: center;
}

.file-input {
    display: none;
}

.file-button {
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #111;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    font-family: 'Juneau', sans-serif;
}

.file-button::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #111;
    transition: width 0.3s ease;
}

.file-button:hover::after {
    width: 0;
}

.submit-button {
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #111;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    font-family: 'Juneau', sans-serif;
    margin: 20px auto 0;
    display: block;
}

.submit-button::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #111;
    transition: width 0.3s ease;
}

.submit-button:hover::after {
    width: 0;
}

.close-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 11px;
    height: 11px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.close-popup::before,
.close-popup::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #111;
}

.close-popup::before {
    transform: rotate(45deg);
}

.close-popup::after {
    transform: rotate(-45deg);
}

.submit-btn {
    cursor: pointer;
}


/* .invers-text {
    mix-blend-mode: difference;
    color: white;
}
.header-menu a.invers-text,
.invers-text.logo-text {
    color: white;
} */
.header.inspiration-header {
    background: none;
    backdrop-filter: initial;

}

#inspiration {
    width: 100%;
    height: 100dvh;
    padding: 0;
}

.inspiration-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.inspiration-image.current {
    display: block;
}

footer.invers-text {
    position: fixed;
    bottom: 0px;
    left: 0px;
    width: 100%;
    z-index: 100;
}

.white-text {
    color: white !important;
}

.black-text {
    color: #111 !important;
}

.header-menu a.white-text::after,
.white-text.logo-text::after {
    background-color: white;
}

.header-menu a.curent::before {
    content: '';
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: #111;
    position:absolute;
    left: -10px;
    top: 8px;
}

.header-menu a.curent.white-text::before {
    background-color: white;
}



/* Добавьте эти стили в конец файла */

/* Анимация появления для кнопок Submit */
.submit-link {
    filter: blur(10px);
    opacity: 0.6;
    animation: logoAppear 0.5s ease forwards 0.3s;
}

/* Анимация линии при наведении */
.submit-link::after {
    content: '';
    position: absolute;
    bottom: 50%;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #111;
    transition: width 0.8s ease;

    display: none !important;
}

.submit-link:hover {
    animation: blurIn 0.5s ease;
    /* filter: blur(10px); */
}

.submit-link:hover::after {
    width: 100%;
}

/* Стили для капса в блоке Challenge */
.section-preface p {
    font-size: 38px;
    line-height: 36px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Стили для капса в блоке Why Public Art Matters */
.section-content .caps-intro {
    font-size: 38px;
    line-height: 36px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 30px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .section-preface p {
        font-size: 22px;
        line-height: 24px;
    }
    
    .section-content .caps-intro {
        font-size: 22px;
        line-height: 24px;
    }
}

/* Фикс для размытия в Safari */
.section-title,
.section-preface,
.submit-link,
.logo {
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0) scale(1.0, 1.0);
}



/* Адаптивность */
@media (max-width: 1200px) {
    .center-text {
        font-size: 32px;
    }
    
}

@media (max-width: 768px) {
    /* .header {
        position: absolute;
        top: calc(100vh - 50px);
        transition: none;
    }
    .header.visible {
        position: fixed;
        top: 0px;
    } */
    /* header {
        position: sticky;
        top: 0px;
    } */
     .main-screen, .top-grid {
        height: auto;
     }
     .top-grid {
        row-gap: 40px;
        margin-bottom: 30px;
     }

    #challenge .section-preface, .section-title {
        filter: none !important;
        opacity: 1 !important;
    }

    .top-grid {
        grid-template-columns: auto 110px;
        grid-template-rows: 1fr auto;
        /* height: calc(100dvh - 130px); */
    }
    
    .logo {
        justify-self: start;
        width: 160px;
        height: 70px;
    }

    .main-screen {
        padding: 20px;
    }
    
    
    .center-text {
        font-size: 22px;
        line-height: 24px;
        margin-top: auto;
        grid-row-start: 2;
        grid-column: 1/-1;
    }
    .center-text p:not(:last-child) {
        margin-bottom: 24px;
    }
    
    .circles-container {
        /* display: none; */
        position: static;
    }
    
    .submit-link {
        font-size: 30px;
        padding: 10px;
        border-radius: 10px;
        background-color: white;
        left: 20px;
        width: calc(100% - 40px);
    }
    .submit-link::after{
        display: none;
    }

    .section-grid {
        grid-template-columns: 100%;
        gap: 24px;
    }
    /* .section-grid>div:not(.section-content){
        display: none;
    } */
    .section-content {
        grid-column: 1;
    }
    footer {
        display: flex;
        flex-direction: column;
    }
    section {
        padding: 40px 20px 0px;
    }

    .header {
        padding: 20px;
    }

    .header-grid {
        grid-template-columns: 1fr auto;
    }
    header:not(.inspiration-header) .header-menu li:not(:last-child) {
        display: none;
    }
    header.inspiration-header .header-menu li:not(:first-child) {
        display: none;
    }
    .section-title, .section-preface {
        font-size: 22px;
        line-height: 24px;
    }
    .section-content p,
    .section-content ul {
        font-size: 18px;
        line-height: 24px;
    }
    .section-content p:not(:last-child),
    .section-content ul:not(:last-child) {
        margin-bottom: 24px;
    }
    .section-content p:last-child,
    .section-content ul:last-child{
        margin-bottom: 0px !important;
    }
    #challenge .section-preface {
        margin-bottom: 36px;
    }
    #challenge + .submit-section {
        display: none;
    }
    #faq {
        padding-top: 40px;
        padding-bottom: 50px;
    }
    #faq .section-title {
        opacity: 1;
        filter: none;
    }
    #faq .section-preface {
        grid-template-columns: auto 1fr;
        margin-bottom: 24px;
        filter: none;
    }
    #faq .section-preface:not(:first-child) {
        margin-top: 40px;
    }
    #faq .section-preface p {
        grid-template-columns: 35px auto !important;
    }
    .submit-section {
        padding: 0px;
    }
    .submit-section .submit-link {
        left: 0px;
        bottom: 0px !important;
    }
    footer {
        padding: 20px;
        gap: 10px
    }
    .form-grid {
        grid-template-columns: 100%;
        gap: 20px;
    }
    .form-group.full-width {
        flex-direction: column;
        margin-top: 10px;
    }
    .popup-content{
        padding: 20px 20px 36px;
    }
    .form-input {
        text-align: center;
    }

    .main-screen .submit-link {
        position: fixed;
        z-index: 1000;
    }

    
}

/* Мобильная версия кругов */
.mobile-circles {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: space-between !important;
    gap: 15px 20px;
}

.mobile-circle-wrapper {
    width: 50px !important;
    height: 50px !important;
}

.mobile-circle,
.mobile-circle-shadow {
    width: 50px !important;
    height: 50px !important;
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 480px) {
    .mobile-circle-wrapper {
        width: 45px !important;
        height: 45px !important;
    }
    .mobile-circle,
    .mobile-circle-shadow {
        width: 45px !important;
        height: 45px !important;
    }
}

/* Для очень-очень маленьких экранов */
@media (max-width: 360px) {
    .mobile-circle-wrapper {
        width: 40px !important;
        height: 40px !important;
    }
    .mobile-circle,
    .mobile-circle-shadow {
        width: 40px !important;
        height: 40px !important;
    }
}