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

:root {
    --bg-1: #f6f8ff;
    --bg-2: #eef3ff;
    --bg-3: #fdf7ff;
    --text: #1f2a44;
    --muted: #60708f;
    --white: rgba(255, 255, 255, 0.78);
    --white-strong: rgba(255, 255, 255, 0.92);
    --border: rgba(255, 255, 255, 0.55);
    --shadow: 0 16px 40px rgba(93, 110, 170, 0.12);
    --shadow-soft: 0 10px 24px rgba(93, 110, 170, 0.08);
    --primary: #6c7cff;
    --primary-2: #8b7dff;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --container: 1180px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, #ffffff 0%, transparent 30%),
        radial-gradient(circle at top right, #f9dfff 0%, transparent 25%),
        radial-gradient(circle at bottom left, #dff1ff 0%, transparent 28%),
        linear-gradient(135deg, var(--bg-1), var(--bg-2), var(--bg-3));
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.container,
.footer-container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 6px 18px rgba(120, 150, 190, 0.06);
}

.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 82px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    flex-shrink: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav > a,
.dropdown-toggle {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--text);
    font-weight: 600;
    transition: 0.25s ease;
    white-space: nowrap;
}

.nav > a:hover,
.dropdown-toggle:hover,
.nav > a.active {
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
    color: var(--primary);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--text);
    font-weight: 600;
    transition: 0.25s ease;
    white-space: nowrap;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    display: none;
    flex-direction: column;
    padding: 12px;
    margin-top: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    z-index: 1000;
}

/* мостик между кнопкой и меню */
.dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 14px;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: flex;
}

.dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text);
    transition: 0.25s ease;
}

.dropdown-menu a:hover {
    background: rgba(108, 124, 255, 0.08);
    color: var(--primary);
}

/* GENERAL SECTIONS */
main section {
    padding: 34px 0;
}

.hero {
    padding-top: 42px;
    padding-bottom: 26px;
}

.hero-large {
    padding: 70px 0 50px;
}

.hero-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.62));
    border: 1px solid var(--border);
    border-radius: 34px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    padding: 42px;
}

.hero-large .hero-box {
    padding: 50px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 28px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(108, 124, 255, 0.12);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 18px;
}

.hero-text h1,
.hero-large h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}

.hero-text p,
.hero-large p {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 760px;
    margin-bottom: 22px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

.main-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    transition: 0.25s ease;
    text-align: center;
}

.main-button {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: white;
    box-shadow: 0 14px 28px rgba(108, 124, 255, 0.28);
}

.main-button:hover {
    transform: translateY(-2px);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.86);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-soft);
}

.secondary-button:hover {
    transform: translateY(-2px);
    background: white;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-point {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text);
    font-size: 0.95rem;
    box-shadow: var(--shadow-soft);
}

.hero-side-card {
    display: grid;
    gap: 18px;
}

.mini-stat-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.mini-stat-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.mini-stat-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.mini-stat-card p {
    color: var(--muted);
    margin: 0;
}

/* AD PLACEHOLDER */
.ad-section {
    padding-top: 10px;
}

.ad-placeholder {
    min-height: 110px;
    border-radius: 24px;
    border: 1px dashed rgba(108, 124, 255, 0.28);
    background: rgba(255, 255, 255, 0.58);
    display: grid;
    place-items: center;
    color: var(--muted);
    text-align: center;
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

/* HEADINGS */
.section-heading {
    text-align: center;
    margin-bottom: 24px;
}

.section-heading h2,
.info-box h2,
.faq-section h2 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.section-heading p,
.info-box p {
    color: var(--muted);
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.cards-better {
    grid-template-columns: repeat(3, 1fr);
}

.card,
.step-card,
.use-case-card,
.faq-item,
.info-box,
.calculator-card,
.formula-card,
.example-card {
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.card {
    padding: 22px;
    transition: 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.card-link {
    display: block;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08);
}

.card-tag {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(108, 124, 255, 0.12);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.35;
}

.card p {
    color: var(--muted);
    font-size: 0.98rem;
    margin: 0;
}

/* INFO / FAQ / SECTIONS */
.cards-section,
.use-cases-section,
.faq-section,
.info-section,
.why-section,
.related-section,
.examples-section,
.formula-section,
.calculator-section {
    padding-top: 34px;
    padding-bottom: 34px;
}

.info-box {
    padding: 30px;
}

.info-box p + p {
    margin-top: 12px;
}

.faq-list {
    display: grid;
    gap: 16px;
}

.faq-item {
    padding: 24px;
}

.faq-item h3 {
    font-size: 1.08rem;
    margin-bottom: 10px;
}

.faq-item p {
    color: var(--muted);
    margin: 0;
}

/* STEPS / USE CASES */
.alt-section .steps-grid {
    margin-top: 12px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.step-card {
    padding: 26px;
    text-align: left;
}

.step-number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: white;
    font-weight: 700;
    margin-bottom: 14px;
    box-shadow: 0 12px 24px rgba(108, 124, 255, 0.22);
}

.step-card h3,
.use-case-card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.step-card p,
.use-case-card p {
    color: var(--muted);
    margin: 0;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.use-case-card {
    padding: 24px;
}

/* CALCULATOR */
.calculator-card {
    padding: 28px;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.calculator-form {
    display: grid;
    gap: 18px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    color: var(--text);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(160, 175, 210, 0.4);
    border-radius: 14px;
    font-size: 16px;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: rgba(108, 124, 255, 0.7);
    box-shadow: 0 0 0 4px rgba(108, 124, 255, 0.12);
}

.calc-button {
    width: 100%;
}

.calculator-result {
    display: grid;
    gap: 18px;
}

.result-box {
    background: linear-gradient(135deg, #f8fbff, #eef4ff);
    border: 1px solid #dbeafe;
    border-radius: 18px;
    padding: 25px;
}

.result-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 10px;
}

.result-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 10px;
}

.result-box p {
    font-size: 1rem;
    color: var(--text);
    margin: 0;
}

.result-details {
    display: grid;
    gap: 12px;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(160, 175, 210, 0.18);
}

.detail-row span {
    color: var(--muted);
    font-size: 0.98rem;
}

.detail-row strong {
    color: var(--text);
    font-size: 1rem;
}

/* FORMULA / EXAMPLES */
.formula-card {
    padding: 24px;
    display: grid;
    gap: 12px;
}

.formula-line {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(160, 175, 210, 0.18);
    font-weight: 700;
    color: var(--text);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.example-card {
    padding: 24px;
}

.example-card h3 {
    margin-bottom: 12px;
    font-size: 1.08rem;
}

.example-card p {
    margin: 0 0 8px;
    color: var(--muted);
}

.example-card p:last-child {
    margin-bottom: 0;
}

/* CONTENT PAGE */
.page-section {
    padding: 70px 0;
}

.content-box {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow);
    max-width: 850px;
    margin: 0 auto;
}

.content-box h1 {
    margin-bottom: 20px;
    font-size: 38px;
}

.content-box h2 {
    margin-top: 30px;
    margin-bottom: 14px;
    font-size: 24px;
}

.content-box p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 17px;
    margin-bottom: 16px;
}

.content-box ul {
    color: var(--muted);
    line-height: 1.8;
    padding-left: 22px;
}

.content-box ul li {
    margin-bottom: 8px;
}

/* FOOTER */
.site-footer {
    padding: 38px 0 24px;
    margin-top: 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 22px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    align-items: start;
}

.footer-column h3,
.footer-column h4 {
    margin-bottom: 12px;
    color: var(--text);
}

.footer-column p {
    color: var(--muted);
    margin: 0;
}

.footer-links,
.footer-links-split {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li + li {
    margin-top: 8px;
}

.footer-links a {
    color: var(--muted);
    transition: 0.2s ease;
    line-height: 1.5;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 16px;
    color: var(--muted);
}

.footer-bottom p {
    margin: 0;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .hero-grid,
    .footer-grid,
    .use-cases-grid,
    .cards,
    .examples-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps-grid,
    .calculator-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        gap: 18px;
    }

    .hero-text h1,
    .hero-large h1 {
        font-size: 40px;
    }
}

@media (max-width: 760px) {
    .header-wrap {
        flex-direction: column;
        justify-content: center;
        padding: 14px 0;
    }

    .nav {
        justify-content: center;
    }

    .hero-box,
    .hero-large .hero-box {
        padding: 24px;
        border-radius: 26px;
    }

    .hero-grid,
    .cards,
    .cards-better,
    .use-cases-grid,
    .footer-grid,
    .footer-links-split,
    .examples-grid,
    .steps-grid,
    .calculator-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1,
    .hero-large h1 {
        font-size: 2rem;
    }

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

    .hero-actions,
    .hero-points {
        flex-direction: column;
        align-items: stretch;
    }

    .main-button,
    .secondary-button {
        width: 100%;
    }

    .section-heading {
        margin-bottom: 20px;
    }

    .info-box,
    .card,
    .step-card,
    .use-case-card,
    .faq-item,
    .calculator-card,
    .formula-card,
    .example-card,
    .content-box {
        padding: 20px;
    }

    .dropdown-menu {
        position: static;
        margin-top: 10px;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 42px;
}

.legal-content h1 {
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.legal-content h2 {
    font-size: 24px;
    line-height: 1.25;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--text);
}

.legal-content p {
    font-size: 17px;
    line-height: 1.9;
    color: var(--muted);
    margin-bottom: 16px;
    max-width: 780px;
}

.legal-content ul {
    padding-left: 22px;
    margin: 0 0 18px;
    color: var(--muted);
}

.legal-content li {
    margin-bottom: 10px;
    line-height: 1.8;
    font-size: 17px;
}

.legal-content strong {
    color: var(--text);
}

@media (max-width: 760px) {
    .legal-content {
        padding: 24px;
    }

    .legal-content h1 {
        font-size: 32px;
    }

    .legal-content h2 {
        font-size: 22px;
        margin-top: 24px;
    }

    .legal-content p,
    .legal-content li {
        font-size: 16px;
        line-height: 1.75;
    }
}