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

:root {
    --primary: #0d7377;
    --primary-dark: #0a5c5f;
    --primary-bg: rgba(13, 115, 119, 0.06);
    --text: #2c3e50;
    --text-light: #5a6c7d;
    --background: #fafbfc;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Mobile: single column, centered */
.row {
    display: contents;
}

.logo-container {
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.logo {
    width: clamp(120px, 30vw, 150px);
    height: auto;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tagline {
    font-size: clamp(1.1rem, 3.5vw, 1.35rem);
    color: var(--primary);
    font-weight: 600;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
}

.description {
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

.idea-section {
    width: 100%;
    text-align: center;
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    padding: clamp(1.25rem, 4vw, 1.75rem);
    background: var(--primary-bg);
    border-radius: 16px;
}

.rotating-text {
    font-size: clamp(1.25rem, 4.5vw, 1.6rem);
    min-height: clamp(1.8rem, 5vw, 2.4rem);
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rotating-word {
    color: var(--primary);
    font-weight: 600;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.question-mark {
    color: var(--primary);
    font-weight: 600;
}

.cta {
    font-size: clamp(0.95rem, 2.8vw, 1.1rem);
    color: var(--text);
    font-weight: 500;
}

.telegram-section {
    background: var(--white);
    border-radius: 16px;
    padding: clamp(1.5rem, 4vw, 2rem);
    box-shadow: 0 4px 24px rgba(13, 115, 119, 0.08);
    text-align: center;
    width: 100%;
}

.telegram-section h2 {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    color: var(--text);
    font-weight: 600;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.qr-container {
    display: flex;
    justify-content: center;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.qr-code {
    width: clamp(140px, 35vw, 180px);
    height: clamp(140px, 35vw, 180px);
}

.telegram-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    padding: clamp(0.75rem, 2.5vw, 0.875rem) clamp(1rem, 3vw, 1.5rem);
    border-radius: 8px;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: 500;
    transition: background 0.2s ease, transform 0.1s ease;
    width: 100%;
}

.telegram-button:active {
    transform: scale(0.98);
}

.telegram-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.footer {
    margin-top: auto;
    padding-top: clamp(2rem, 5vw, 3rem);
    text-align: center;
}

.footer p {
    font-size: clamp(0.8rem, 2vw, 0.875rem);
    color: var(--text-light);
}

/* Small screens */
@media (max-width: 360px) {
    .idea-section,
    .telegram-section {
        padding: 1rem;
        border-radius: 12px;
    }
}

/* Desktop layout */
@media (min-width: 768px) {
    .container {
        max-width: 1100px;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 0 3rem;
        padding-top: 10vh;
        padding-bottom: 4rem;
        align-items: stretch;
        gap: 1.5rem;
    }

    .row {
        display: flex;
        align-items: flex-start;
        gap: 3rem;
    }

    .row-top {
        justify-content: flex-start;
    }

    .row-bottom {
        justify-content: space-between;
        align-items: center;
    }

    .logo-container {
        margin-bottom: 0;
    }

    .logo {
        width: 140px;
    }

    .content {
        flex: 1;
        max-width: 500px;
        align-items: flex-start;
        text-align: left;
    }

    .tagline {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .description {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .idea-section {
        margin-bottom: 0;
        padding: 1.5rem 2rem;
        text-align: left;
    }

    .rotating-text {
        font-size: 1.75rem;
        min-height: 2.5rem;
        justify-content: flex-start;
    }

    .cta {
        font-size: 1.1rem;
    }

    .telegram-section {
        flex-shrink: 0;
        width: 320px;
        padding: 2rem;
    }

    .qr-code {
        width: 180px;
        height: 180px;
    }

    .telegram-button {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }

    .footer {
        margin-top: auto;
        padding-top: 2rem;
        text-align: center;
    }
}

/* Large desktop */
@media (min-width: 1024px) {
    .container {
        padding-top: 12vh;
        gap: 2rem;
    }

    .row {
        gap: 4rem;
    }

    .logo {
        width: 160px;
    }

    .content {
        max-width: 540px;
    }

    .tagline {
        font-size: 1.65rem;
    }

    .description {
        font-size: 1.15rem;
    }

    .rotating-text {
        font-size: 1.9rem;
    }

    .telegram-section {
        width: 360px;
        padding: 2.5rem;
    }

    .qr-code {
        width: 200px;
        height: 200px;
    }
}

@media (hover: hover) {
    .telegram-button:hover {
        background: var(--primary-dark);
    }
}

@media (prefers-reduced-motion: reduce) {
    .rotating-word,
    .telegram-button {
        transition: none;
    }
}
