@font-face {
    font-family: "Manrope";
    src: url("../assets/fonts/Manrope-Variable.ttf") format("truetype");
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
}

:root {
    --ink: #f4f7f6;
    --muted: #9cacab;
    --dim: #718180;
    --bg: #050a0c;
    --bg-soft: #091114;
    --panel: rgba(13, 24, 27, 0.82);
    --panel-strong: rgba(17, 31, 34, 0.94);
    --line: rgba(226, 238, 235, 0.12);
    --line-strong: rgba(226, 238, 235, 0.22);
    --teal: #3cd7c7;
    --teal-dark: #11998f;
    --gold: #f0b94b;
    --gold-bright: #ffd46f;
    --danger: #ff7474;
    --radius-lg: 30px;
    --radius-md: 22px;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

html {
    min-height: 100%;
    height: auto;
    color-scheme: dark;
    scroll-behavior: smooth;
    overflow-x: clip;
    overflow-y: auto;
}

body.home-page,
body.info-page {
    min-height: 100vh;
    height: auto;
    margin: 0;
    overflow-x: clip;
    overflow-y: visible;
    color: var(--ink);
    background: var(--bg) !important;
    font-family: "Manrope", "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    isolation: isolate;
}

body.home-page::before,
body.info-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.32;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.fluid-canvas {
    width: 100%;
    height: 100%;
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
}

.home-page .container,
.info-page .page-container {
    min-height: 100svh;
    height: auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    background: transparent;
}

/* Shared header */
.home-header {
    width: min(1240px, calc(100% - 40px));
    min-height: 72px;
    margin: 14px auto 0;
    padding: 9px 12px 9px 18px;
    display: flex;
    align-items: center;
    gap: 22px;
    position: sticky;
    top: 14px;
    z-index: 100;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(5, 12, 14, 0.78);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px) saturate(135%);
}

.brand {
    min-width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.brand-logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 7px 16px rgba(240, 185, 75, 0.28));
}

.brand-copy {
    display: block;
}

.brand-copy strong {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.site-navigation {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-navigation a {
    padding: 10px 13px;
    color: #c3cfcd;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-navigation a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-1px);
}

.site-navigation a[aria-current="page"] {
    color: #03110f;
    background: linear-gradient(135deg, var(--teal), #74eadb);
    box-shadow: 0 8px 22px rgba(60, 215, 199, 0.22);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-switcher,
.home-page .language-switcher,
.info-page .language-switcher {
    padding: 4px;
    display: flex;
    gap: 2px;
    position: static;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: none;
    backdrop-filter: none;
}

.lang-btn,
.home-page .lang-btn,
.info-page .lang-btn {
    min-width: 37px;
    padding: 9px 8px;
    color: var(--muted);
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-family: inherit;
    font-size: 10px;
    font-weight: 750;
    line-height: 1;
    cursor: pointer;
}

.lang-btn:hover,
.home-page .lang-btn:hover,
.info-page .lang-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transform: none;
}

.lang-btn.active,
.home-page .lang-btn.active,
.info-page .lang-btn.active {
    color: #07110f;
    background: var(--gold);
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 9px;
    padding: 11px 13px;
    color: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    font: 700 11px/1 "Manrope", sans-serif;
    cursor: pointer;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    width: 17px;
    height: 2px;
    display: block;
    border-radius: 2px;
    background: currentColor;
    transition: top 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.nav-toggle-icon {
    position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-icon::before { top: -5px; }
.nav-toggle-icon::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { top: 0; transform: rotate(-45deg); }

.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    border: 0;
    background: rgba(0, 0, 0, 0.58);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(4px);
}

.nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
}

/* Shared buttons */
.back-link,
.product-back {
    width: max-content;
    margin: 0 0 24px;
    padding: 11px 16px;
    display: inline-flex;
    align-items: center;
    color: #d9e3e1;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: none;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.back-link:hover,
.product-back:hover {
    color: #07110f;
    border-color: var(--teal);
    background: var(--teal);
    box-shadow: 0 12px 28px rgba(60, 215, 199, 0.18);
    transform: translateY(-2px);
}

/* Home portal */
.home-page .content-wrapper {
    min-height: auto;
    padding: clamp(64px, 8vw, 104px) 24px 88px;
    display: block;
}

.home-page .network-container {
    display: none;
}

.portal-shell {
    width: min(1160px, 100%);
    margin: 0 auto;
}

.portal-intro {
    max-width: 900px;
    margin-bottom: 44px;
}

.portal-intro::before {
    content: "MARKETINGFOHOW.RU";
    margin-bottom: 18px;
    display: block;
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
}

.portal-title {
    max-width: 920px;
    margin: 0;
    color: #fff;
    font-size: clamp(48px, 6vw, 78px);
    font-weight: 720;
    line-height: 0.98;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.portal-lead {
    max-width: 650px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

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

.product-choice {
    min-height: 270px;
    padding: 28px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    gap: 20px 22px;
    position: relative;
    overflow: hidden;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(15, 30, 33, 0.94), rgba(8, 18, 21, 0.78));
    box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.05);
    text-decoration: none;
    backdrop-filter: blur(20px);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.product-choice::after {
    content: "";
    width: 230px;
    height: 230px;
    position: absolute;
    right: -110px;
    bottom: -140px;
    border-radius: 50%;
    background: var(--teal);
    opacity: 0.11;
    filter: blur(22px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-choice-catalog::after {
    background: var(--gold);
}

.product-choice:hover {
    border-color: rgba(60, 215, 199, 0.52);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.48), inset 0 1px rgba(255, 255, 255, 0.08);
    transform: translateY(-6px);
}

.product-choice-catalog:hover {
    border-color: rgba(240, 185, 75, 0.55);
}

.product-choice:hover::after {
    opacity: 0.2;
    transform: scale(1.18);
}

.product-number {
    position: absolute;
    top: 25px;
    right: 27px;
    color: var(--dim);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.product-choice-icon {
    width: 58px;
    height: 58px;
    padding: 14px;
    display: grid;
    place-items: center;
    grid-column: 1;
    grid-row: 1 / 3;
    color: var(--teal);
    border: 1px solid rgba(60, 215, 199, 0.25);
    border-radius: 18px;
    background: rgba(60, 215, 199, 0.08);
}

.product-choice-catalog .product-choice-icon {
    color: var(--gold);
    border-color: rgba(240, 185, 75, 0.26);
    background: rgba(240, 185, 75, 0.08);
}

.product-choice-icon svg {
    width: 100%;
    height: 100%;
}

.product-choice-copy {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
}

.product-kicker,
.community-label {
    display: block;
    color: var(--teal);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.product-choice-catalog .product-kicker {
    color: var(--gold);
}

.product-choice h2 {
    max-width: 430px;
    margin: 10px 0 0;
    color: #fff;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 680;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.product-choice p {
    max-width: 430px;
    margin: 15px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.product-choice-link {
    grid-column: 2;
    grid-row: 3;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.community-panel {
    margin-top: 18px;
    padding: 26px 28px;
    display: grid;
    grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
    align-items: center;
    gap: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(10, 20, 23, 0.82);
    box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
}

.community-copy h2 {
    margin: 8px 0 0;
    color: #fff;
    font-size: clamp(22px, 2.4vw, 29px);
    font-weight: 680;
    line-height: 1.14;
    letter-spacing: -0.03em;
}

.community-copy p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

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

.social-link {
    min-width: 0;
    padding: 13px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    color: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
    border-color: rgba(60, 215, 199, 0.4);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.social-icon {
    width: 38px;
    height: 38px;
    padding: 9px;
    display: grid;
    place-items: center;
    color: #4db4f4;
    border-radius: 12px;
    background: rgba(77, 180, 244, 0.12);
}

.social-icon svg { width: 100%; height: 100%; }
.social-icon-text { padding: 0; color: #fff; font-size: 10px; font-weight: 800; background: #2787f5; }
.social-max .social-icon { background: #6d4bea; }
.social-link strong,
.social-link small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-link strong { font-size: 12px; }
.social-link small { margin-top: 3px; color: var(--muted); font-size: 9px; }

/* Product detail pages */
.product-detail-page .content-wrapper {
    min-height: auto;
    padding: clamp(64px, 8vw, 100px) 24px 88px;
}

.hero-shell.product-detail-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.78fr);
    align-items: center;
    gap: clamp(44px, 7vw, 92px);
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.home-page .seo-block {
    width: auto;
    max-width: 680px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.home-page .seo-title {
    margin: 0;
    color: #fff;
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 720;
    line-height: 0.98;
    letter-spacing: -0.055em;
    text-align: left;
    text-shadow: none;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.home-page .seo-text {
    max-width: 620px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.72;
    text-align: left;
}

.home-page .btn-login {
    width: max-content;
    margin: 34px 0 0;
    padding: 15px 18px 15px 21px;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: #06110f;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--teal), #77eadc);
    box-shadow: 0 16px 38px rgba(60, 215, 199, 0.22);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-page .btn-login:hover {
    color: #06110f;
    background: linear-gradient(135deg, #60eadb, #9bf6ec);
    box-shadow: 0 20px 48px rgba(60, 215, 199, 0.3);
    transform: translateY(-3px);
}

.catalog-detail-page .catalog-open {
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    box-shadow: 0 16px 38px rgba(240, 185, 75, 0.22);
}

.catalog-detail-page .catalog-open:hover {
    background: linear-gradient(135deg, #f6c75e, #ffe29a);
    box-shadow: 0 20px 48px rgba(240, 185, 75, 0.3);
}

.login-icon { width: 18px; height: 18px; color: currentColor; }

.product-summary-card {
    min-height: 410px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(60, 215, 199, 0.24);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(17, 37, 39, 0.95), rgba(8, 18, 21, 0.84));
    box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(22px);
}

.catalog-summary-card {
    border-color: rgba(240, 185, 75, 0.26);
    background: linear-gradient(145deg, rgba(38, 31, 17, 0.94), rgba(12, 17, 18, 0.86));
}

.product-summary-icon {
    width: 72px;
    height: 72px;
    margin: 0 0 46px;
    padding: 18px;
    color: var(--teal);
    border: 1px solid rgba(60, 215, 199, 0.25);
    border-radius: 20px;
    background: rgba(60, 215, 199, 0.08);
}

.catalog-summary-card .product-summary-icon {
    color: var(--gold);
    border-color: rgba(240, 185, 75, 0.28);
    background: rgba(240, 185, 75, 0.08);
}

.product-summary-icon svg { width: 100%; height: 100%; }

.product-points {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
    list-style: none;
}

.product-points li {
    position: relative;
    padding: 0 0 14px 23px;
    color: #c8d3d1;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    line-height: 1.5;
}

.product-points li::before {
    content: "";
    width: 7px;
    height: 7px;
    position: absolute;
    top: 0.48em;
    left: 0;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 14px rgba(60, 215, 199, 0.5);
}

.catalog-summary-card .product-points li::before {
    background: var(--gold);
    box-shadow: 0 0 14px rgba(240, 185, 75, 0.5);
}

.summary-link {
    margin-top: auto;
    padding-top: 28px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

/* Information and legal pages */
.info-page .page-header {
    width: min(1040px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(58px, 7vw, 88px) 0 26px;
    position: relative;
    z-index: 3;
    text-align: left;
}

.info-page .page-title {
    max-width: 900px;
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 5.8vw, 68px);
    font-weight: 720;
    line-height: 1.02;
    letter-spacing: -0.05em;
    text-align: left;
    text-shadow: none;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.info-page .page-content {
    width: min(1040px, calc(100% - 40px));
    max-width: none;
    margin: 0 auto;
    padding: 16px 0 80px;
    position: relative;
    z-index: 3;
}

.info-page .page-content-legal {
    width: min(900px, calc(100% - 40px));
}

.content-section,
.legal-section,
.pricing-table {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
}

.content-section {
    margin: 0 0 16px;
    padding: clamp(25px, 4vw, 38px);
    border-radius: var(--radius-md);
}

.lead-text {
    max-width: 790px;
    margin: 0;
    color: #bdcac8;
    font-size: 16px;
    line-height: 1.75;
    text-align: left;
}

.section-title,
.legal-section-title,
.contact-item-title {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(21px, 2.8vw, 29px);
    font-weight: 680;
    line-height: 1.16;
    letter-spacing: -0.03em;
}

.feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-list li {
    padding: 13px 0 13px 28px;
    position: relative;
    color: #b7c5c3;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    line-height: 1.6;
}

.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }

.legal-date {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    text-align: left;
}

.legal-section {
    margin: 0 0 12px;
    padding: 25px 28px;
    border-radius: 18px;
}

.legal-section-title {
    font-size: 20px;
}

.legal-section p,
.content-section p,
.contact-item-desc,
.legal-info p {
    color: #afbfbd;
    font-size: 14px;
    line-height: 1.75;
}

.legal-section p { margin: 0 0 10px; }
.legal-section p:last-child { margin-bottom: 0; }

.contact-info {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.contact-item,
.legal-info {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.035);
}

.contact-item-title { font-size: 19px; }
.contact-item-value { margin: 0 0 10px; }
.contact-link { color: var(--teal); font-size: 14px; font-weight: 800; text-decoration: none; }
.contact-link:hover { color: #8df4e8; }
.contact-item-desc { margin: 0; }
.legal-info p { margin: 0 0 8px; }
.legal-info p:last-child { margin-bottom: 0; }

/* Pricing */
.pricing-table {
    width: 100%;
    max-width: none;
    margin: 16px 0;
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    position: static;
    left: auto;
    transform: none;
    border-radius: var(--radius-md);
}

.pricing-card {
    min-width: 0;
    min-height: 100%;
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: none;
    text-align: left;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.pricing-card:hover {
    border-color: rgba(60, 215, 199, 0.42);
    background: rgba(255, 255, 255, 0.055);
    box-shadow: none;
    transform: translateY(-4px);
}

.pricing-card-featured { border-color: rgba(60, 215, 199, 0.5); }
.pricing-card-premium { border-color: rgba(240, 185, 75, 0.5); background: rgba(240, 185, 75, 0.06); }
.pricing-card-badge { top: -9px; color: #09110f; background: var(--gold); }
.pricing-card-title { min-height: 0; margin: 0 0 20px; color: #fff; font-size: 19px; font-weight: 720; }
.pricing-card-price { min-height: 82px !important; margin-bottom: 14px; align-items: flex-start; }
.price-row { justify-content: flex-start !important; }
.price-amount { color: var(--teal); font-size: 31px; font-weight: 780; }
.pricing-card-premium .price-amount { color: var(--gold); }
.price-period,
.price-old { color: var(--muted) !important; }
.pricing-card-desc { min-height: 90px; margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.6; justify-content: flex-start; text-align: left; }
.pricing-card-features { margin: 0; padding: 0; display: grid; gap: 9px; list-style: none; }
.pricing-card-features li { padding: 0; color: #b7c4c2; font-size: 11px; line-height: 1.45; }
.feature-unavailable { opacity: 0.46; }
.pricing-loading,
.pricing-error { color: var(--muted) !important; }
.pricing-spinner { border-color: rgba(255, 255, 255, 0.1) !important; border-top-color: var(--teal) !important; }
.pricing-retry-btn { color: #06110f; background: var(--teal); }

/* Shared footer */
.site-footer,
.home-page .site-footer,
.info-page .site-footer {
    margin-top: auto;
    padding: 28px 24px 30px;
    position: relative;
    z-index: 3;
    border-top: 1px solid var(--line);
    background: rgba(3, 8, 10, 0.84);
    box-shadow: none;
    backdrop-filter: blur(18px);
}

.footer-nav {
    margin: 0 0 11px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 22px;
}

.footer-nav a,
.home-page .footer-nav a,
.info-page .footer-nav a {
    color: #9aabaa;
    font-size: 11px;
    font-weight: 650;
    text-decoration: none;
}

.footer-nav a:hover { color: var(--teal); }
.footer-copyright,
.home-page .footer-copyright,
.info-page .footer-copyright { margin: 0; color: #657674; font-size: 10px; text-align: center; }

/* Entrances */
.portal-intro,
.product-choice,
.community-panel,
.hero-copy,
.product-summary-card,
.page-header,
.content-section,
.legal-section,
.pricing-table {
    animation: rise-in 0.65s both;
}

.product-choice:nth-child(2),
.product-summary-card,
.content-section:nth-child(2),
.legal-section:nth-child(2) { animation-delay: 0.08s; }

@keyframes rise-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1080px) {
    .site-navigation a { padding-inline: 9px; }
    .pricing-table { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .home-header {
        width: min(100% - 28px, 760px);
        padding-left: 14px;
        gap: 10px;
    }

    .brand-copy strong { font-size: 13px; }
    .header-actions { margin-left: auto; }
    .nav-toggle { display: inline-flex; }

    .site-navigation {
        width: min(380px, 88vw);
        height: 100dvh;
        margin: 0;
        padding: 104px 22px 34px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 7px;
        position: fixed;
        top: 0;
        right: -15px;
        z-index: 80;
        border-left: 1px solid var(--line-strong);
        border-radius: 0;
        background: rgba(6, 14, 16, 0.97);
        box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(26px);
        visibility: hidden;
        pointer-events: none;
        clip-path: inset(0 0 0 100%);
        transition: clip-path 0.28s cubic-bezier(.2, .8, .2, 1), visibility 0.28s;
    }

    .site-navigation::before {
        content: "НАВИГАЦИЯ";
        margin: 0 10px 12px;
        color: var(--gold);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.18em;
    }

    .site-navigation.is-open {
        visibility: visible;
        pointer-events: auto;
        clip-path: inset(0);
    }

    .site-navigation a {
        padding: 15px 16px;
        color: #d6e0de;
        border: 1px solid transparent;
        border-radius: 14px;
        font-size: 15px;
    }

    .site-navigation a:hover,
    .site-navigation a[aria-current="page"] {
        color: #06110f;
        border-color: var(--teal);
        background: var(--teal);
        box-shadow: 0 12px 30px rgba(60, 215, 199, 0.16);
        transform: none;
    }

    .header-actions,
    .nav-toggle { position: relative; z-index: 90; }
    body.nav-open { overflow: hidden; }

    .hero-shell.product-detail-shell {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .product-summary-card { width: min(620px, 100%); min-height: 360px; }
    .community-panel { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    body.home-page::before,
    body.info-page::before { background-size: 52px 52px; opacity: 0.22; }

    .home-page .content-wrapper,
    .product-detail-page .content-wrapper { padding: 54px 18px 64px; }

    .portal-intro { margin-bottom: 30px; }
    .portal-intro::before { margin-bottom: 14px; font-size: 9px; }
    .portal-title { font-size: clamp(39px, 12vw, 55px); line-height: 1.02; }
    .portal-lead { margin-top: 18px; font-size: 14px; }
    .product-choice-grid,
    .social-links,
    .contact-info,
    .pricing-table { grid-template-columns: 1fr; }

    .product-choice {
        min-height: 0;
        padding: 22px;
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 17px;
        border-radius: 22px;
    }

    .product-choice-icon { width: 48px; height: 48px; padding: 12px; border-radius: 15px; }
    .product-choice h2 { font-size: 27px; }
    .product-choice-link { padding-top: 6px; }
    .community-panel { padding: 22px; border-radius: 22px; gap: 22px; }

    .home-page .seo-title { font-size: clamp(40px, 12vw, 56px); }
    .home-page .seo-text { margin-top: 18px; font-size: 14px; }
    .product-summary-card { min-height: 330px; padding: 25px; border-radius: 22px; }
    .product-summary-icon { margin-bottom: 34px; }

    .info-page .page-header {
        width: calc(100% - 36px);
        padding: 52px 0 22px;
    }

    .info-page .page-title { font-size: clamp(37px, 11vw, 50px); }
    .info-page .page-content,
    .info-page .page-content-legal { width: calc(100% - 36px); padding: 10px 0 60px; }
    .content-section,
    .legal-section { padding: 22px; border-radius: 18px; }
    .lead-text { font-size: 14px; }
    .pricing-table { padding: 10px; }
    .pricing-card-desc { min-height: 0; }
}

@media (max-width: 520px) {
    .home-header {
        min-height: 64px;
        top: 8px;
        margin-top: 8px;
        padding: 7px 8px 7px 10px;
        border-radius: 18px;
    }

    .brand { gap: 6px; }
    .brand-mark { width: 40px; height: 40px; }
    .brand-copy strong { font-size: 12px; letter-spacing: 0.12em; }
    .nav-toggle { padding: 10px; }
    .nav-toggle > span:first-child { display: none; }

    .lang-btn,
    .home-page .lang-btn,
    .info-page .lang-btn { min-width: 31px; padding: 8px 5px; font-size: 9px; }

    .language-switcher,
    .home-page .language-switcher,
    .info-page .language-switcher { padding: 3px; border-radius: 12px; }

    .site-navigation { width: min(340px, 92vw); padding-top: 88px; }
    .product-choice { grid-template-columns: 1fr; }
    .product-choice-icon { grid-column: 1; grid-row: 3; }
    .product-choice-copy { grid-column: 1; grid-row: 1 / 3; padding-right: 14px; }
    .product-choice-link { grid-column: 1; grid-row: 3; align-self: center; padding: 0 0 0 64px; }
    .product-number { top: 22px; right: 22px; }
    .footer-nav { gap: 9px 15px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .fluid-canvas { opacity: 0.55; }
}
