@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap");

:root {
    --bg: #fff9fb;
    --card: #ffffff;
    --text: #2f2528;
    --muted: #6b575c;
    --accent: #b35b72;
    --accent-dark: #8f4057;
    --soft: #f8e6ec;
    --border: #f0dfe5;
    --shadow: 0 24px 70px rgba(143, 64, 87, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: "Montserrat", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 10%, rgba(248, 198, 212, 0.45), transparent 26%),
        radial-gradient(circle at 86% 18%, rgba(244, 224, 206, 0.68), transparent 28%),
        linear-gradient(135deg, #fffafc 0%, #fff5f8 52%, #f8e8ee 100%);
    line-height: 1.65;
}

body::before,
body::after {
    position: fixed;
    z-index: 0;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

body::before {
    top: -70px;
    left: -70px;
    background: rgba(179, 91, 114, 0.09);
}

body::after {
    right: -90px;
    bottom: -90px;
    background: rgba(231, 183, 160, 0.2);
}

.seo-page {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
    padding: 42px 18px 64px;
}

.seo-card {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    padding: 112px min(52px, 6vw) 42px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 249, 251, 0.94)),
        var(--card);
    border: 1px solid rgba(240, 223, 229, 0.95);
    border-radius: 34px;
    box-shadow: var(--shadow);
}

.seo-card::before {
    position: absolute;
    top: 30px;
    left: min(52px, 6vw);
    width: 64px;
    height: 64px;
    background: #fff url("tort/Images/лого/8ed838b3-6dc4-4d21-836d-c28653bd40ee.webp") center / contain no-repeat;
    border: 1px solid var(--border);
    border-radius: 50%;
    box-shadow: 0 12px 32px rgba(179, 91, 114, 0.14);
    content: "";
}

.seo-card::after {
    position: absolute;
    top: 34px;
    right: -72px;
    width: 360px;
    height: 360px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 244, 248, 0.18)),
        url("tort/Images/фото для главной(hero)/4A36AC1A-8D2D-41FE-984D-E01329255020.JPG") center / cover no-repeat;
    border: 14px solid rgba(255, 255, 255, 0.72);
    border-radius: 46% 54% 58% 42%;
    box-shadow: 0 28px 60px rgba(179, 91, 114, 0.18);
    content: "";
    opacity: 0.92;
}

.seo-eyebrow,
h1,
.seo-lead,
h2,
p,
.seo-grid,
.seo-actions,
.seo-links {
    position: relative;
    z-index: 1;
}

.seo-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin: 0 0 16px;
    padding: 6px 14px;
    color: var(--accent-dark);
    background: rgba(248, 230, 236, 0.78);
    border: 1px solid rgba(179, 91, 114, 0.13);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    max-width: 680px;
    margin: 0 0 20px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(38px, 7vw, 72px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.02em;
}

h2 {
    margin: 42px 0 12px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.08;
}

p,
li {
    max-width: 760px;
    font-size: 17px;
}

.seo-lead {
    max-width: 650px;
    margin: 0 0 28px;
    color: var(--muted);
    font-size: clamp(18px, 2.1vw, 22px);
    line-height: 1.65;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 34px 0 18px;
}

.seo-item {
    min-height: 142px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(240, 223, 229, 0.96);
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(179, 91, 114, 0.07);
    backdrop-filter: blur(8px);
}

.seo-item strong {
    display: block;
    margin-bottom: 7px;
    color: var(--accent-dark);
    font-size: 15px;
    font-weight: 700;
}

.seo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.seo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: 1px solid rgba(143, 64, 87, 0.14);
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(179, 91, 114, 0.26);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.seo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(179, 91, 114, 0.34);
}

.seo-btn.secondary {
    color: var(--accent-dark);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(179, 91, 114, 0.34);
    box-shadow: none;
}

.seo-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-top: 38px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.seo-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    color: var(--accent-dark);
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(179, 91, 114, 0.16);
    border-radius: 999px;
    text-decoration: none;
}

.seo-links a:hover {
    background: var(--soft);
}

.seo-note {
    color: #6a5b60;
    font-size: 15px;
}

@media (max-width: 900px) {
    .seo-card {
        padding-top: 104px;
    }

    .seo-card::after {
        top: 18px;
        right: -118px;
        width: 260px;
        height: 260px;
        opacity: 0.34;
    }

    .seo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .seo-page {
        padding: 18px 12px 40px;
    }

    .seo-card {
        min-height: auto;
        padding: 92px 18px 26px;
        border-radius: 26px;
    }

    .seo-card::before {
        top: 22px;
        left: 18px;
        width: 54px;
        height: 54px;
    }

    h1 {
        font-size: 40px;
    }

    .seo-actions {
        display: grid;
    }

    .seo-btn {
        width: 100%;
    }
}
