/* Global Styles for ste3d.ru */
/* Primary: Charcoal Gray #36454F | Accent: Ice Blue #87CEEB */

/* Font Import */
@import url('https://fonts.cdnfonts.com/css/cabinet-grotesk');

/* CSS Reset and Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 18px !important;
    line-height: 1.7 !important;
    color: #36454F !important;
    background-color: #f8fafc !important;
}

/* Navigation Menu - Critical Rules */
.nav-menu li {
    margin-bottom: 0 !important;
    list-style: none !important;
}

.nav-menu li::before,
.nav-menu li::after {
    display: none !important;
    content: none !important;
}

.nav-menu,
.nav-menu ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

nav ul,
nav li,
header ul,
header li {
    list-style: none !important;
    margin-bottom: 0 !important;
}

nav ul li::before,
nav ul li::after,
header ul li::before,
header ul li::after {
    display: none !important;
    content: none !important;
}

/* Footer List Reset */
footer ul,
footer li {
    list-style: none !important;
    margin-bottom: 0 !important;
}

footer ul li::before,
footer ul li::after {
    display: none !important;
    content: none !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 700 !important;
    color: #36454F !important;
    line-height: 1.3 !important;
}

h1 {
    font-size: 2.5rem !important;
    margin-bottom: 1.5rem !important;
}

h2 {
    font-size: 2rem !important;
    margin-top: 3rem !important;
    margin-bottom: 1.5rem !important;
}

h3 {
    font-size: 1.5rem !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
}

p {
    font-size: 18px !important;
    margin-bottom: 1rem !important;
    color: #36454F !important;
}

/* Content Lists Styling */
.content-area ul,
.content-area ol,
main ul:not(.nav-menu):not(.footer-links),
main ol,
section ul:not(.nav-menu):not(.footer-links),
section ol {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 1.5rem !important;
}

.content-area ul li,
.content-area ol li,
main ul:not(.nav-menu):not(.footer-links) li,
main ol li,
section ul:not(.nav-menu):not(.footer-links) li,
section ol li {
    position: relative !important;
    padding-left: 2rem !important;
    margin-bottom: 0.75rem !important;
    font-size: 18px !important;
}

.content-area ul li::before,
main ul:not(.nav-menu):not(.footer-links) li::before,
section ul:not(.nav-menu):not(.footer-links) li::before {
    content: '+' !important;
    position: absolute !important;
    left: 0 !important;
    color: #87CEEB !important;
    font-weight: bold !important;
    font-size: 1.2rem !important;
}

.content-area ol {
    counter-reset: item !important;
}

.content-area ol li::before,
main ol li::before,
section ol li::before {
    counter-increment: item !important;
    content: counter(item) '.' !important;
    position: absolute !important;
    left: 0 !important;
    color: #87CEEB !important;
    font-weight: bold !important;
}

/* Tables */
.table-container {
    width: 100% !important;
    overflow-x: auto !important;
    margin: 2rem 0 !important;
    border-radius: 12px !important;
}

table {
    width: 100% !important;
    min-width: 500px !important;
    border-collapse: collapse !important;
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

thead {
    background: #36454F !important;
}

thead th {
    color: white !important;
    font-weight: 600 !important;
    padding: 1rem 1.5rem !important;
    text-align: left !important;
    font-size: 16px !important;
}

tbody td {
    padding: 1rem 1.5rem !important;
    border-bottom: 1px solid #e5e7eb !important;
    font-size: 16px !important;
    color: #36454F !important;
}

tbody tr:hover {
    background: #f1f5f9 !important;
}

/* Buttons */
.btn-primary {
    display: inline-block !important;
    background: #87CEEB !important;
    color: #36454F !important;
    padding: 14px 32px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
}

.btn-primary:hover {
    background: #36454F !important;
    color: white !important;
    transform: translateY(-2px) !important;
}

.btn-secondary {
    display: inline-block !important;
    background: #36454F !important;
    color: white !important;
    padding: 14px 32px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
}

.btn-secondary:hover {
    background: #87CEEB !important;
    color: #36454F !important;
    transform: translateY(-2px) !important;
}

/* Cards */
.card {
    background: white !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    box-shadow: 0 4px 20px rgba(54, 69, 79, 0.08) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 30px rgba(54, 69, 79, 0.12) !important;
}

/* Images */
.content-image {
    width: 100% !important;
    height: auto !important;
    border-radius: 12px !important;
    margin: 1.5rem 0 !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #36454F 0%, #4a5d6a 100%) !important;
    color: white !important;
    padding: 4rem 0 !important;
}

.hero-section h1 {
    color: white !important;
}

.hero-section p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Animations */
@keyframes starTwinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.star-animate {
    animation: starTwinkle 3s ease-in-out infinite !important;
}

.float-animate {
    animation: float 4s ease-in-out infinite !important;
}

/* Star decorations */
.star-decoration {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #87CEEB;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: starTwinkle 2s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 1.875rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    body {
        font-size: 16px !important;
    }

    p {
        font-size: 16px !important;
    }

    .hero-section {
        padding: 2rem 0 !important;
    }
}

/* Material Icons */
.material-icons {
    font-size: 24px !important;
    color: #87CEEB !important;
    vertical-align: middle !important;
}

/* Logo - No shadow */
.logo img,
.site-logo,
img[src*="logo"] {
    box-shadow: none !important;
}

/* Table of Contents */
.toc {
    background: white !important;
    border-radius: 12px !important;
    padding: 1.5rem 2rem !important;
    margin: 2rem 0 !important;
    border-left: 4px solid #87CEEB !important;
}

.toc ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.toc li {
    padding: 0.5rem 0 !important;
    margin: 0 !important;
}

.toc li::before {
    display: none !important;
}

.toc a {
    color: #36454F !important;
    text-decoration: none !important;
    font-size: 16px !important;
    transition: color 0.2s ease !important;
}

.toc a:hover {
    color: #87CEEB !important;
}

/* Section styling */
section {
    padding: 3rem 0 !important;
}

.section-alt {
    background: #f1f5f9 !important;
}

/* Footer specific */
footer {
    background: #36454F !important;
    color: white !important;
    padding: 3rem 0 2rem !important;
}

footer p {
    color: rgba(255, 255, 255, 0.8) !important;
}

footer a {
    color: #87CEEB !important;
    text-decoration: none !important;
}

footer a:hover {
    color: white !important;
}

.footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links li {
    margin-bottom: 0.5rem !important;
    padding-left: 0 !important;
}

.footer-links li::before,
.footer-links li::after {
    display: none !important;
    content: none !important;
}
