:root {
    --bg-primary: #f5e6f3;
    --bg-secondary: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5e;
    --accent: #e94d9f;
    --accent-hover: #d43d8f;
    --border: #ead5e8;
    --shadow: rgba(233, 77, 159, 0.15);
    --card-bg: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-primary: #1a1625;
    --bg-secondary: #241d32;
    --text-primary: #e8e4f0;
    --text-secondary: #a89fb8;
    --accent: #e94d9f;
    --accent-hover: #f368ad;
    --border: #3a2f4a;
    --shadow: rgba(233, 77, 159, 0.2);
    --card-bg: #241d32;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
}

header {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px var(--shadow);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--accent);
}

.controls {
    display: flex;
    gap: 0.5rem;
}

.control-btn {
    background-color: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 0.65rem 1.25rem;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
    box-shadow: 0 2px 8px var(--shadow);
}

.control-btn:hover {
    background: linear-gradient(135deg, #e94d9f 0%, #d43d8f 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 77, 159, 0.3);
    border-color: transparent;
}

[data-theme="light"] .icon-moon,
[data-theme="dark"] .icon-sun {
    display: none;
}

[data-lang="en"] .lang-ru,
[data-lang="ru"] .lang-en {
    display: none;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.new-benefit {
    background: linear-gradient(135deg, #e94d9f 0%, #d43d8f 100%);
    color: white;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 12px 32px rgba(233, 77, 159, 0.3);
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 1.2rem auto 1.2rem;
    padding: 2rem;
}

.new-benefit::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.new-benefit h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.new-benefit p {
    font-size: 1.25rem;
    line-height: 1.8;
    margin: 0;
    font-weight: 500;
    position: relative;
    z-index: 1;
    opacity: 0.95;
}

.hero {
    background: linear-gradient(135deg,
        var(--card-bg) 0%,
        var(--card-bg) 60%,
        rgba(233, 77, 159, 0.05) 100%);
    border: 3px solid var(--border);
    border-left: 6px solid var(--accent);
    border-radius: 24px;
    padding: 3.5rem 3.5rem;
    margin: 0 auto 3rem;
    max-width: 1000px;
    box-shadow: 0 12px 32px var(--shadow),
                inset 0 1px 0 rgba(233, 77, 159, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at center,
        rgba(233, 77, 159, 0.08) 0%,
        transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '⚡';
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    font-size: 4rem;
    opacity: 0.06;
    transform: rotate(-10deg);
    pointer-events: none;
}

.hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px var(--shadow),
                inset 0 1px 0 rgba(233, 77, 159, 0.15);
    border-left-color: var(--accent-hover);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
    margin: 0;
    position: relative;
    z-index: 1;
}

.definition {
    max-width: 800px;
    margin: 2.5rem auto 1rem;
    /* padding: 2rem; */
}

.definition blockquote {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 0 auto 3rem;
    padding: 2rem 2.5rem;
    background: linear-gradient(145deg, var(--card-bg) 0%, rgba(233, 77, 159, 0.05) 100%);
    border-left: 4px solid var(--accent);
    border-radius: 12px;
    font-style: italic;
    line-height: 1.8;
    box-shadow: 0 4px 16px var(--shadow);
    position: relative;
}

.definition blockquote::before {
    content: '"';
    position: absolute;
    top: 0.5rem;
    left: 0.75rem;
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.examples-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
}

.examples-column {
    display: flex;
    flex-direction: column;
}

.examples-column h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: center;
}

.examples {
    list-style: none;
    background-color: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 24px var(--shadow);
    transition: var(--transition);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.examples:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--shadow);
}

.examples.bad {
    border-color: #ff6b9d;
    background: linear-gradient(145deg, var(--card-bg) 0%, rgba(255, 107, 157, 0.03) 100%);
}

.examples.good {
    border-color: #4ecdc4;
    background: linear-gradient(145deg, var(--card-bg) 0%, rgba(78, 205, 196, 0.03) 100%);
}

.examples li {
    font-size: 1.125rem;
    color: var(--text-secondary);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    padding-left: 2rem;
}

.examples li:last-child {
    border-bottom: none;
}

.examples.bad li::before {
    content: "❌";
    position: absolute;
    left: 0;
    opacity: 0.8;
    font-size: 1.2em;
}

.examples.good li::before {
    content: "✅";
    position: absolute;
    left: 0;
    opacity: 0.8;
    font-size: 1.2em;
}

.explanation {
    max-width: 1000px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.explanation h3 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    text-align: center;
    font-weight: 700;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.why-card {
    background-color: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 16px var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
    border-color: var(--accent);
}

.why-icon {
    font-size: 3rem;
    line-height: 1;
    filter: grayscale(0.2);
}

.why-card p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    font-weight: 500;
}

.benefit {
    background: linear-gradient(135deg, #e94d9f 0%, #d43d8f 100%);
    color: white;
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 12px 32px rgba(233, 77, 159, 0.3);
    position: relative;
    overflow: hidden;
}

.benefit::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.benefit h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.benefit p {
    font-size: 1.25rem;
    line-height: 1.8;
    margin: 0;
    font-weight: 500;
    position: relative;
    z-index: 1;
    opacity: 0.95;
}

.cta {
    text-align: center;
    padding: 2rem;
    margin-bottom: 2rem;
}

.cta-card {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, #e94d9f 0%, #d43d8f 100%);
    border-radius: 24px;
    padding: 3.5rem 3rem;
    box-shadow: 0 16px 40px rgba(233, 77, 159, 0.3);
    transition: var(--transition);
}

.cta-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(233, 77, 159, 0.4);
}

.cta-text {
    font-size: 1.5rem;
    color: white;
    font-weight: 600;
    margin: 0;
}

footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 2.5rem 2rem;
    text-align: center;
    color: var(--text-secondary);
    margin-top: 4rem;
}

footer p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.5rem;
    transition: var(--transition);
}

footer a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    nav {
        padding: 0 1rem;
    }

    .logo h1 {
        font-size: 1.25rem;
    }

    .control-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    main {
        padding: 1rem;
    }

    .new-benefit {
        padding: 2rem 1.5rem; 
        margin-bottom: 2rem;
    }

    .new-benefit h3 {
        font-size: 1.5rem;
    }

    .new-benefit p {
        font-size: 1.05rem;
    }

    .hero {
        padding: 2.5rem 2rem;
        margin-bottom: 2rem;
        border-left-width: 5px;
    }

    .hero::before {
        width: 150px;
        height: 150px;
    }

    .hero::after {
        font-size: 3rem;
        bottom: 1rem;
        right: 1.5rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.125rem;
    }

    .definition {
        /* padding: 1rem; */
    }

    .definition blockquote {
        font-size: 0.95rem;
        padding: 1.5rem 1.75rem;
        margin-bottom: 2rem;
        line-height: 1.6;
    }

    .definition blockquote::before {
        font-size: 2rem;
    }

    .examples-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .examples {
        padding: 1.5rem;
    }

    .examples li {
        font-size: 1rem;
    }

    .explanation {
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .explanation h3 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .why-card {
        padding: 2rem 1.5rem;
    }

    .why-icon {
        font-size: 2.5rem;
    }

    .why-card p {
        font-size: 1rem;
    }

    .benefit {
        padding: 2rem 1.5rem;
    }

    .benefit h4 {
        font-size: 1.25rem;
    }

    .benefit p {
        font-size: 1.05rem;
    }

    .cta {
        padding: 1rem;
    }

    .cta-card {
        padding: 2rem;
    }

    .cta-text {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .new-benefit {
        padding: 2rem 1.25rem;
    }

    .new-benefit h3 {
        font-size: 1.35rem;
    }

    .new-benefit p {
        font-size: 1rem;
    }

    .hero {
        padding: 2rem 1.5rem;
        border-left-width: 4px;
        border-width: 2px;
        border-left-width: 4px;
    }

    .hero::before {
        width: 100px;
        height: 100px;
        opacity: 0.05;
    }

    .hero::after {
        font-size: 2.5rem;
        bottom: 0.75rem;
        right: 1rem;
        opacity: 0.04;
    }

    .hero h2 {
        font-size: 1.65rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1rem;
    }

    .definition blockquote {
        font-size: 0.875rem;
        padding: 1.25rem 1.5rem;
        line-height: 1.5;
    }

    .definition blockquote::before {
        font-size: 1.75rem;
    }

    .controls {
        gap: 0.25rem;
    }

    .control-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
    }
}
