@import url('https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,400;1,900&display=swap');

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

body {
    font-family: 'Bitter', serif;
    line-height: 1.6;
    color: #fff;
    background: #000;
}

h1 {
    font-weight: 900;
    font-size: 64px;
    margin: 0 0 40px 0;
    color: #fff;
}

@media (max-width: 768px) {
    h1 {
        font-size: 48px;
    }
}

.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: top;
    mask: linear-gradient(to bottom, black 0%, black 80%, transparent 100%);
    -webkit-mask: linear-gradient(to bottom, black 0%, black 80%, transparent 100%);
}

@media (max-aspect-ratio: 1.2) {
    .hero-image {
        width: 130%;
        transform: translateX(-12%);
    }
}

.logo-overlay {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.logo-overlay img {
    max-width: 300px;
    height: auto;
}

@media (max-width: 768px) {    
    .logo-overlay img {
        max-width: 200px;
    }
} 

.bubble-1 {
    position: absolute;
    left: 36%;
    top: 68%;
    transform: translate(-69%, -100%);
    z-index: 5;
    max-width: 200px;
    height: auto;
}

.bubble-2 {
    position: absolute;
    left: 44%;
    top: 69%;
    transform: translate(0%, -100%);
    z-index: 5;
    max-width: 264px;
    height: auto;
}

@media (max-width: 548px) {
    .bubble-1 {
        max-width: 140px;
    }

    .bubble-2 {
        max-width: 185px;
    }
}

@media (max-aspect-ratio: 1.2) {
    .bubble-1 {
        left: 30%;
    }
    .bubble-2 {
        left: 43%;
    }
}

.content-section {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.top-ornament {
    margin: 0 auto;
    max-width: 100px;
}

.top-ornament img {
    width: 100%;
    height: auto;
}

.main-text {
    font-weight: 400;
    line-height: 160%;
    max-width: 490px;
    margin: 0 auto 60px;
    text-align: center;
}



@media (max-width: 768px) {
    .main-text {
        padding: 0 20px;
    }
}

.divider {
    text-align: center;
    font-size: 24px;
    font-weight: 900;
}

.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 80px 0;
    flex-wrap: wrap;
}

.button-item {
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s ease;
    min-height: 320px;
    padding-bottom: 80px;
    vertical-align: top;
    overflow: visible;
    will-change: transform;
    backface-visibility: hidden;
    z-index: 100;
}

.button-item::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -30px;
    width: 440px;
    height: 300px;
    transform: translateX(-50%);
    background: transparent;
    pointer-events: auto;
    z-index: 1;
}

.button-item:hover {
    transform: scale(1.15);
}

.button-item img {
    max-width: 200px;
    height: auto;
    display: block;
    opacity: calc(0.2 + 0.8 * var(--hover-progress, 0));
    filter: blur(calc(2px - 2px * var(--hover-progress, 0)));
    transition: opacity 0.3s, filter 0.3s;
}

.button-item:hover img,
.button-item.auto-hover img {
    opacity: 1;
    filter: blur(0px);
}

.support-project-diagonal {
    position: absolute;
    left: 50%;
    top: 20%;
    transform: translateX(-50%);
    font-family: 'Dela Gothic One', 'Golos Text', 'Bitter', Arial, sans-serif;
    font-weight: 900;
    font-size: 64px;
    color: #fff;
    text-align: center;
    line-height: 1;
    pointer-events: none;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 8px #000;
    z-index: 100;
    -webkit-text-stroke: 2px #fff;
    mix-blend-mode: lighten;
    opacity: 0.95;
    transition: none;
    overflow: visible;
    will-change: transform;
    backface-visibility: hidden;
}

.support-project-diagonal .support-word {
    display: inline-block;
    font-size: 46px;
    transform: translateY(calc(-80px * var(--hover-progress, 0)))
               rotate(calc(-30deg * var(--hover-progress, 0)))
               scale(calc(1 - 0.05 * var(--hover-progress, 0)));
    transition: transform 0.5s cubic-bezier(.4,2,.6,1);
}

.support-project-diagonal .project-word {
    display: inline-block;
    font-size: 80px;
    transform: translateY(calc(20px * var(--hover-progress, 0)))
               rotate(calc(-30deg * var(--hover-progress, 0)))
               scale(calc(1 + 0.05 * var(--hover-progress, 0)));
    transition: transform 0.5s cubic-bezier(.4,2,.6,1);
}

.button-item:hover .support-project-diagonal .support-word,
.button-item.auto-hover .support-project-diagonal .support-word {
    transform: translate(0px, -80px) rotate(-30deg) scale(0.95);
}

.button-item:hover .support-project-diagonal .project-word,
.button-item.auto-hover .support-project-diagonal .project-word {
    transform: translate(0px, 20px) rotate(-30deg) scale(1.05);
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 60px 0;
    font-family: sans-serif;
    font-size: 10px;
    text-align: right;
    background: linear-gradient(to bottom, #C7C1C1, #839689);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer img {
    height: 30px;
    width: auto;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}
.modal.show {
    display: flex;
}
.modal-content {
    background: #181818;
    border-radius: 18px;
    padding: 40px 32px 32px 32px;
    box-shadow: 0 8px 32px #000a;
    min-width: 320px;
    max-width: 90vw;
    text-align: center;
    position: relative;
}
.modal-label {
    position: absolute;
    right: 18px; top: 12px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    z-index: 10;
}
.modal-form {
    margin: 24px 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.modal-form input[type=email] {
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    font-size: 1.1em;
    outline: none;
}
.modal-form button {
    background: #ff9100;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 0;
    font-size: 1.1em;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.modal-form button:hover {
    background: #ffb347;
}
.boosty-logo {
    margin-top: 18px;
    width: 120px;
    height: auto;
    filter: drop-shadow(0 2px 8px #0008);
}

.modal-hint {
    color: #efefef;
    font-size: 1em;
    margin: 20px;
    text-align: center;
}

.modal-hint-small {
    font-size: 0.9em;
    color: #9c9c9c;
    opacity: 0.85;
    display: block;
    margin-top: 2px;
}

.modal-boosty-btn {
    display: block;
    background: #ff9100;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 10px 0;
    font-size: 1.1em;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    margin: 0 auto 10px auto;
    width: 100%;
    transition: background 0.2s;
    text-align: center;
}
.modal-boosty-btn:hover {
    background: #ffb347;
}

@media (max-width: 600px) {
  .button-item {
    transform: scale(0.7);
    transform-origin: top center;
  }
}

/* Стили для карты Глюкограда */
.map-section {
    margin: 60px 0;
    text-align: center;
}

.map-section h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #fff;
    font-weight: 900;
}

.gluko-map {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    margin: 20px 0;
    background: #1a1a1a;
    filter: brightness(0.6) contrast(1.4) saturate(0.6) hue-rotate(180deg);
}

@media (max-width: 768px) {
    .gluko-map {
        height: 300px;
    }
    
    .map-section h2 {
        font-size: 28px;
    }
}

.map-description {
    font-size: 18px;
    color: #ccc;
    margin-top: 20px;
    font-style: italic;
}

/* Стили для попапа карты */
.gluko-popup {
    padding: 15px;
    text-align: center;
    color: #333;
}

.gluko-popup h3 {
    color: #ff6b6b;
    margin-bottom: 10px;
    font-size: 20px;
}

.gluko-popup p {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.4;
}

/* Анимации для карты */
.gluko-map {
    transition: all 0.3s ease;
}

.gluko-map:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* Стили для кнопки местоположения */
.map-controls {
    margin-bottom: 20px;
    text-align: center;
}

.location-btn {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-family: inherit;
}

.location-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.location-btn:active {
    transform: translateY(0);
}

.location-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.location-status {
    margin-top: 10px;
    font-size: 14px;
    color: #ccc;
    min-height: 20px;
}

.location-status.success {
    color: #4ecdc4;
}

.location-status.error {
    color: #ff6b6b;
}

.location-status.loading {
    color: #ffb347;
}


