* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-primary: #0f0f1a;
    --bg-card: #16213e;
    --bg-ul: #38385e;
    --text-primary: #e0e0e0;
    --accent: #00d9ff;
    --border: #2a2a3e;
    --color-text-btn: orange;
    --color-bg-btn: orange;
    --color-shadow: coral;
}

body.light {
    --bg-primary: #f0f2f5;
    --bg-ul: #f0f2f5;
    --bg-card: #ffffff;
    --text-primary: #1a1a2e;
    --border: #ddd;
}

body {
    font-family: system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.header h1 {
    font-size: 28px;
    background: linear-gradient(135deg, #3bd1db, #FFC107);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    width: 100%;
    text-align: center;
}

.logo__image {
    width: 150px;
    height: 150px;
    background: url('/design/simorfa_logo_white.jpg') no-repeat;
    mask-image: radial-gradient(circle at center, black 50%, transparent 80%);
        -webkit-mask-image: radial-gradient(circle at center, black 50%, transparent 80%);
    background-size: cover;
}

.dark .logo__image {
    width: 150px;
    height: 150px;
    background: url('/design/simorfa_logo.jpg') no-repeat;
    mask-image: radial-gradient(circle at center, black 50%, transparent 80%);
        -webkit-mask-image: radial-gradient(circle at center, black 50%, transparent 80%);
    background-size: cover;
}

.logo__image--desktop {
    display: none;
}

.simorfa_name {
    width: 200px;
}

.subtitle {
    text-align: center;
    width: 100%;
}

section {
	background: var(--bg-card);
    border-radius: 3px;
    padding: 30px;
    margin-bottom: 30px;
    font-family: monospace;
    font-size: 16px;
    text-align: left;
}

.section--about {

}

section > h2 {
	color: orange;
	margin-bottom: 15px;
}

section > h2:hover {
	/*text-decoration: underline;
	text-decoration-style: dotted;*/
}

section > p {
	margin-bottom: 15px;
}

section > ul {
	list-style: none;
	margin-left: 30px;
	margin-bottom: 15px;
	background-color: var(--bg-ul);
    padding: 10px 20px 5px;
    border-radius: 5px;
}

section > ul > li {
	margin-bottom: 10px;
}

.page__section {
    cursor: default;
}

.warning-price {
    background-color: brown;
    margin-top: 50px;
}

.warning-price__list {
    list-style: none;
    margin: 0;
    padding: 20px;
}

.warning-price__item {
    margin-bottom: 20px;
}

.warning-price__item:last-child {
    margin-bottom: 0;
}

.button {
    color: var(--color-text-btn);
    text-decoration: none;
    padding: 10px 20px;
    border: 1px dashed #805a5a;
    border-radius: 5px;
    display: block;
    width: fit-content;
    margin: 0 auto;
    transition: all .5s linear;
    background: transparent;
    cursor: pointer;
}

.button:hover {
    box-shadow: 0 0 10px var(--color-shadow);
    transition: all .5s linear;
}

.button:focus {
    outline: none;
}

.button_link {
	display: inline-block;
	background: #0088cc;
	color: white;
	padding: 10px 20px;
	border-radius: 3px;
	margin: 10px 0;
}

.link {
    display: block;
    text-align: left;
    margin-top: 10px;
}

.link:hover {
    text-decoration: underline;
    box-shadow: none;
    color: orange;
}

.link--center {
    text-align: center;
}

.detail {
	text-align: center;
}

.detail[open] .summary {
	text-decoration: none;
}

.summary {
	cursor: pointer;
	text-decoration: underline;
	text-decoration-style: dotted;
	color: orange;
	margin-bottom: 15px;
}

.particles_area {
	position: relative;
    width: 300px;
    height: 50px;
    margin: auto;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle.fire {
    background: radial-gradient(circle, #ff6b35, transparent);
    box-shadow: 0 0 10px #ff6b35;
}

.particle.water {
    background: radial-gradient(circle, #0077be, transparent);
    box-shadow: 0 0 10px #0077be;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    white-space: nowrap;
    -webkit-clip-path: inset(100%);
    clip-path: inset(100%);
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.plan {
    list-style: none;
    margin: 0;
    margin-bottom: 20px;
    padding: 0;
    background-color: var(--bg-card);
}

.plan__task {
    margin-bottom: 10px;
    position: relative;
    padding-left: 55px;
}

.plan__task::before {
    content: '[ ] - ';
    position: absolute;
    left: 0;
}

.section {

}

.section__title {
    font-weight: normal;
    margin-bottom: 20px;
}

.section--plan {
    border-left: 5px #009688 solid;
}

.section--plan li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 55px;
}

.section--plan li::before {
    content: '[ ] - ';
    position: absolute;
    left: 0;
}

.page__footer {
    text-align: center;
    padding: 30px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer__logo {
    display: flex;
    align-items: center;
    margin: 20px;
    justify-content: center;
    gap: 20px;
}

.theme-toggle { background: var(--bg-card); border: 1px solid var(--border); border-radius: 3px; padding: 10px 20px; cursor: pointer; position: absolute; right: 5px; top: 5px;}
.search-box { background: var(--bg-card); border-radius: 3px; padding: 30px; margin-bottom: 30px; }
.search-form { display: flex; gap: 15px; flex-wrap: wrap; }
.search-form input { flex: 1; padding: 16px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: 3px; color: var(--text-primary); }
.results { background: var(--bg-card); border-radius: 3px; padding: 30px; margin-bottom: 30px; animation: fadeIn 0.5s; }
.level-card { background: linear-gradient(135deg, #667eea, #764ba2); border-radius: 3px; padding: 25px; text-align: center; margin-bottom: 25px; color: white; }
.level-badge { font-size: 48px; }
.level-title { font-size: 24px; margin: 10px 0; }
.stat-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px;
    margin: 25px 0 30px;
    background: var(--bg-card);
    border-radius: 3px;
    padding: 30px;
}
.stat-card { background: var(--bg-primary); border-radius: 3px; padding: 20px; text-align: center; }
.stat-value { font-size: 20px; color: var(--accent); }
.recommendations { background: rgba(255,171,0,0.1); border-left: 4px solid #ffab00; padding: 20px; border-radius: 3px; margin: 20px 0; }
.resource-list {
    margin: 15px 0 30px; 
    background: var(--bg-primary);
    border-radius: 3px;
    padding: 30px;
}
.resource-list a {
    text-align: left;
}
.resource-list ul { margin-left: 0; max-height: 200px; overflow-y: auto; }
.resource-list li { margin: 5px 0; word-break: break-all; font-size: 12px; }
.tg-channel { background: rgba(0,217,255,0.1); border-radius: 3px; padding: 20px; text-align: center; margin: 20px 0; }
.email-form { display: flex; gap: 10px; margin-top: 15px; flex-wrap: wrap; }
.email-form input { flex: 1; padding: 12px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: 3px; color: var(--text-primary); }
.btn { padding: 12px 24px; border: none; border-radius: 3px; cursor: pointer;}
.btn-primary { background: var(--accent); color: #1a1a2e; }
.share-section { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 25px; padding-top: 25px; border-top: 1px solid var(--border); }
.share-link { background: var(--bg-primary); padding: 12px; border-radius: 3px; flex: 1; word-break: break-all; font-size: 12px; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { font-weight: normal; }
button, a { transition: all .5s linear; text-align: center; }
button:hover, a:hover { box-shadow: 0 0 20px #FFEB3B; transition: all .5s linear; }
.link_button { text-align: center; display: inline-block; width: 30%; }

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}
.loader-overlay.active {
    display: flex;
}
.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    margin-top: 20px;
    color: var(--accent);
    font-size: 14px;
}

.loader-steps {
    margin-top: 15px;
    color: var(--text-secondary);
    font-size: 12px;
    text-align: center;
}

input, textarea, select {
    font-size: 16px;
    transform: translateZ(0);
    -webkit-appearance: none;
    appearance: none;
}

.search-form input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.notice {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    z-index: 9999;
    animation: notice_fadein 3s;   
}

.result {

}

.result__cross_border {
    border-left: 3px solid #ff3b30;
}

.result__cross_border_summary {
    cursor: pointer;
    color: #ff3b30;
}

.result__trackers {
    border-left: 3px solid #ff3b30; margin-top: 15px; background: rgba(255,59,48,0.05);
}

.result__trackers_des {
    font-size: 12px;
    margin: 10px 0;
    padding: 8px;
    background: rgba(255,59,48,0.1);
    border-radius: 3px;
}

.result__trackers_list {
    margin-top: 10px;
    margin-left: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.result__trackers_list li {
    margin: 6px 0;
}

.result__trackers_list span {
    display: inline-block;
    width: 60px;
}

.result__trackers_summary {
    cursor: pointer;
    color: #ff3b30;
}

.result__cond_trackers {
    border-left: 3px solid #00c853;
    margin-top: 15px;
    background: rgba(255,171,0,0.05);
}

.result__cond_trackers_summary {
    cursor: pointer;
    color: #00c853;
}

.result__cond_trackers_des {
    font-size: 12px;
    margin: 10px 0;
    padding: 8px;
    background: rgba(255,171,0,0.1);
    border-radius: 3px;
}

.result__cond_trackers_list {
    margin-top: 10px;
    margin-left: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.result__noscript_trackers {
    border-left: 3px solid #888;
    margin-top: 15px;
    background: rgba(136,136,136,0.05);
}

.result__noscript_trackers_summary {
    cursor: pointer;
    color: #888;
}

.result__noscript_trackers_des {
    font-size: 12px;
    margin: 10px 0;
    padding: 8px;
    background: rgba(136,136,136,0.1);
    border-radius: 3px;
}

.result__noscript_trackers_list {
    margin-top: 10px;
    margin-left: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.result__noscript_trackers_list li {
    margin: 6px 0;
}

.result__noscript_trackers_list span {
    display: inline-block;
    width: 60px;
    font-size: 11px;
    color: #888;
}

.result__noscript_trackers_list a {
    color: var(--accent);
    word-break: break-all;
}

.result__noscript_trackers_list a::after {
    content: 'noscript-пиксель';
    font-size: 10px;
    background: rgba(136,136,136,0.3);
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

.result__webvisor {
    border-left: 3px solid #ff3b30;
    margin-top: 15px;
    background: rgba(255,59,48,0.05);
}

.result__result__webvisor_summary {
    cursor: pointer;
    color: #ff3b30;
}

.result__webvisor_des {
    padding: 10px;
    margin: 0;
}

.result__local_out {
    border-left: 3px solid #00c853;
}

.result__local_out_summary {
    cursor: pointer;
}

.result__soc_links {
    border-left: 3px solid #0088cc;
    margin-top: 15px;
    background: rgba(0,136,204,0.05);
}

.result__soc_links_summary {
    cursor: pointer;
}

.result__soc_links_des {
    font-size: 11px;
    margin: 8px 0 0 0;
    color: #888;
}

.result__soc_links_list {
    margin-top: 10px;
    margin-left: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.result__soc_links_list li {
    margin: 8px 0;
}

.result__soc_links_list a {
    color: var(--accent);
    word-break: break-all;
}

.result__soc_links_list span {
    font-size: 11px;
    color: #888;
}

.result__internal {
    border-left: 3px solid #ffab00;
    margin-top: 15px;
}

.result__internal_des {
    font-size: 11px;
    margin: 8px 0 0 0;
    color: #888;
}

.result__view_list_internal {
    margin-top: 10px;
    margin-left: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.result__view_list_internal a {
    color: var(--accent); 
    word-break: break-all;
}

.result__internal_summary {
    cursor: pointer;
}

.result__view_list_internal li {
    color: var(--accent);
    word-break: break-all;
}

.report_button_action {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 3px;
    text-decoration: none;
}

.report_button_action--print {
    background: #0088cc;
    color: white;
}

.report__execution_time {
    margin-top: 20px;
    font-size: 12px;
    text-align: center;
}

.report__execution_time::before {
    content: '⚡';
}

.report__execution_time::after {
    content: ' сек';
}

.report__what_next {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.report__action_button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 3px;
    text-decoration: none;
}

.report__action_button--kp {
    background-color: aliceblue;
    color: black;
}

.achievement::before {
    content: '🏅 ';
}

.report__ecoweb {
    text-align: center;
    font-size: 12px;
}

.antibot_info {
    padding: 20px;
    margin-bottom: 20px;
    color: #8BC34A;
}

.result__domen_info {
    background-color: #607D8B;
    padding: 30px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.result__domen_info--ok {
    border-left: 3px solid #8bc34a;
}

.result__domen_info--error {
    border-left: 3px solid #ff3b30;
}

.domen_info__zone {
    color: yellowgreen;
}

.result__mx_info {
    background-color: #04544d;
    padding: 30px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.result__mx_info--error {
    border-left: 3px solid #ff3b30;
}

.result__mx_info_message {
    margin-bottom: 20px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    white-space: nowrap;
    -webkit-clip-path: inset(100%);
    clip-path: inset(100%);
    clip: rect(0 0 0 0);
    overflow: hidden;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
    }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; } }

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes notice_fadein {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .container { padding: 15px; } .search-form { flex-direction: column; }
    a { display: block; width: 100%; }
    .search-form input {
        font-size: 16px !important;
    }
}

@media (min-width: 1024px) {
    .header {
        justify-content: space-between;
    }

    .logo__image {
        width: 300px;
        height: 300px;
    }

    .logo__image--desktop {
        display: block;
        width: 300px;
        height: 300px;
        background: url('/design/simorfa_logo_white.jpg') no-repeat;
        mask-image: radial-gradient(circle at center, black 50%, transparent 80%);
            -webkit-mask-image: radial-gradient(circle at center, black 50%, transparent 80%);
        background-size: cover;
    }

    .dark .logo__image--desktop, .dark .logo__image {
        width: 300px;
        height: 300px;
        background: url('/design/simorfa_logo.jpg') no-repeat;
        mask-image: radial-gradient(circle at center, black 50%, transparent 80%);
            -webkit-mask-image: radial-gradient(circle at center, black 50%, transparent 80%);
    }

    .dark .logo__image--desktop {
        background: url('/design/simorfa_logo_2.jpg') no-repeat;
    }

    .header h1 {
        width: unset;
    }

    .detail {
        text-align: left;
    }

    .footer__logo {
        display: flex;
        align-items: center;
        margin: 20px;
        justify-content: center;
        gap: 20px;
    }

    .resource-list ul {
        margin-left: 20px;
    }
}