/* =====================================================
           МАТРИЦА — ВНУТРЕННИЕ СТИЛИ SVG (НЕ ТРОГАТЬ)
        ===================================================== */
        * { box-sizing: border-box; }

        .matrix-wrapper {
            width: 100%;
            max-width: 900px;
            aspect-ratio: 1 / 1;
            position: relative;
        }
        svg {
            width: 100%;
            height: 100%;
            user-select: none;
        }

        .line-main { stroke: #1a1a1a; stroke-width: 2.5; fill: none; }
        .line-thin { stroke: #2c2c2c; stroke-width: 1.5; fill: none; }
        .line-dashed { stroke: #555555; stroke-width: 1.5; stroke-dasharray: 5,5; fill: none; }

        .line-outer-oct { stroke: #1a1a1a; stroke-width: 2; fill: none; }

        .text-main-node { font-weight: 800; font-size: 44px; text-anchor: middle; dominant-baseline: central; }
        .text-medium-node { font-weight: 700; font-size: 28px; text-anchor: middle; dominant-baseline: central; }

        .age-label { font-size: 13px; font-weight: 800; fill: #111; text-anchor: middle; dominant-baseline: central; }
        .age-sub-label { font-size: 7px; font-weight: 600; fill: #555; text-anchor: middle; dominant-baseline: central; }
        .text-micro-node { font-size: 16px; font-weight: 700; fill: #111; text-anchor: middle; dominant-baseline: central; }

        .line-label { font-size: 13px; font-weight: 700; text-anchor: middle; }
        .line-label.male { fill: #8a30a8; }
        .line-label.female { fill: #cc3131; }

        .icon-text { font-size: 24px; text-anchor: middle; dominant-baseline: central; }
        .icon-money { fill: #4caf50; font-weight: bold; }
        .icon-love { fill: #e91e63; }



        /* ---------- ЗАГОЛОВОК СТРАНИЦЫ ---------- */

        .page-hero {
            text-align: center;
            padding: 80px 20px 40px;
        }

        .page-hero h1 {
            font-family: "Cormorant Garamond", serif;
            font-weight: 500;
            font-size: 56px;
            color: #E7D8A4;
            text-shadow: 0 0 30px rgba(184, 149, 79, .25);
            margin: 0 0 18px;
        }

        .page-hero p {
            font-size: 19px;
            color: #b3ab98;
            font-weight: 300;
            max-width: 620px;
            margin: 0 auto;
            line-height: 1.7;
        }

        .vignette-divider {
            width: 300px;
            height: 24px;
            margin: 26px auto 0 auto;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 20' fill='none' stroke='%23B8954F' stroke-width='0.6'%3E%3Cpath d='M60 4 L66 10 L60 16 L54 10 Z' /%3E%3Ccircle cx='60' cy='10' r='1' fill='%23B8954F'/%3E%3Cpath d='M15 10 L50 10 M30 10 Q35 6 40 10' /%3E%3Cpath d='M105 10 L70 10 M90 10 Q85 6 80 10' /%3E%3Ccircle cx='10' cy='10' r='0.8' fill='%23B8954F'/%3E%3Ccircle cx='5' cy='10' r='0.5' fill='%23B8954F'/%3E%3Ccircle cx='110' cy='10' r='0.8' fill='%23B8954F'/%3E%3Ccircle cx='115' cy='10' r='0.5' fill='%23B8954F'/%3E%3C/svg%3E");
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            opacity: .85;
        }

        /* ---------- ФОРМА ДАТЫ РОЖДЕНИЯ ---------- */

        .date-picker-container {
            width: min(500px, 90%);
            margin: 80px auto 60px auto;
            padding: 28px 32px;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            gap: 18px;
            background: linear-gradient(145deg, #05100a 0%, #020704 100%);
            border: 1px solid rgba(184, 149, 79, .25);
            border-radius: 10px;
            box-shadow: 0 15px 40px rgba(0, 0, 0, .6);
        }

        .date-picker-container label {
            font-family: "Cormorant Garamond", serif;
            font-size: 19px;
            letter-spacing: .5px;
            color: #E7D8A4;
        }

        .date-picker-container input[type="date"] {
            font-family: "Marcellus", serif;
            font-size: 16px;
            padding: 10px 14px;
            border-radius: 6px;
            border: 1px solid rgba(184, 149, 79, .4);
            background: rgba(4, 12, 8, .7);
            color: #EFE7D2;
            color-scheme: dark;
        }

        .date-picker-container input[type="date"]:focus {
            outline: none;
            border-color: #B8954F;
        }

        .date-picker-container button {
            font-family: "Cormorant Garamond", serif;
            font-size: 17px;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            padding: 11px 30px;
            border-radius: 8px;
            border: 1px solid #B8954F;
            background: rgba(18, 36, 25, .45);
            color: #EFE7D2;
            cursor: pointer;
            transition: .3s;
        }

        .date-picker-container button:hover {
            background: #B8954F;
            color: #07110B;
            box-shadow: 0 0 24px rgba(184, 149, 79, .4);
        }

        /* ---------- КАРТОЧКА С МАТРИЦЕЙ ---------- */

        .matrix-section {
            display: flex;
            justify-content: center;
            padding: 0 20px 100px;
        }

        .matrix-card {
            width: 100%;
            max-width: 940px;
            padding: 24px;
            background: #ffffff;
            border-radius: 12px;
            border: 1px solid rgba(184, 149, 79, .4);
            box-shadow: 0 20px 60px rgba(0, 0, 0, .65), 0 0 40px rgba(184, 149, 79, .08);
        }

        /* ---------- FOOTER ---------- */

        footer {
            padding: 55px 0;
            text-align: center;
            border-top: 1px solid rgba(255, 255, 255, .08);
            color: #b3ab98;
            font-size: 15px;
            letter-spacing: .3px;
            background: #09120C;
        }

        /* ---------- АДАПТИВНОСТЬ ---------- */

        @media (max-width: 700px) {
            nav { display: none; }
            .page-hero h1 { font-size: 40px; }
            .page-hero p { font-size: 17px; }
            .date-picker-container { flex-direction: column; }
        }