:root {
    --bg: #ffffff;
    --card: #f8f9fa;
    --muted: #6c757d;
    --text: #212529;
    --pri: #0d6efd;
    --border: #dee2e6;
}

* {
    box-sizing: border-box
}

/* ❗ ВАЖНО: всё ниже — только на главной .home */
.home {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial
}

.home .sg-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px
}

/* Section Titles */
.home .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
}

.home h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #212529;
}

.home .hero {
    padding: 48px 0
}

.home .hero__inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 24px;
    align-items: center
}

.home .lead {
    opacity: .9
}

.home .cta {
    display: flex;
    gap: 12px;
    margin-top: 16px
}

/* Trust Section */
.home .trust {
    padding: 40px 0;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.home .trust-metrics {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.home .metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.home .metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
}

.home .metric-label {
    font-size: 0.95rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Кнопки лендинга — НЕ трогаем глобальные .btn на других страницах */
.home .btn {
    border: 2px solid var(--pri);
    padding: 10px 16px;
    border-radius: 12px;
    color: var(--pri);
    text-decoration: none;
    display: inline-block;
    background: #ffffff;
    font-weight: 600;
    transition: all .3s ease;
}

.home .btn:hover {
    background: var(--pri);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.home .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    font-weight: 600;
    transition: all 0.3s ease;
}

.home .btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
}

.home .features .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px
}

.home .card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
}

.home .examples__head {
    display: flex;
    align-items: end;
    justify-content: space-between
}

.home .cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

.home .job-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
}

.home .job-card__title {
    margin: 0 0 6px
}

.home .muted {
    color: var(--muted)
}

.home .feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
}

.home .feature-card__title {
    margin: 0 0 12px;
    font-size: 1.1rem
}

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

.home .feature-list li {
    margin: 6px 0;
    color: var(--muted)
}

.home .list-head {
    margin: 8px 0 16px
}

.home .job-detail .description {
    white-space: pre-wrap;
    background: var(--card);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.home .cta-final {
    padding: 40px 0;
    text-align: center
}

.home .link {
    color: var(--pri);
    text-decoration: none
}

@media (max-width:960px) {
    .home .hero__inner {
        grid-template-columns: 1fr
    }

    .home .features .grid {
        grid-template-columns: 1fr 1fr
    }

    .home .cards {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width:640px) {
    .home .features .grid {
        grid-template-columns: 1fr
    }

    .home .cards {
        grid-template-columns: 1fr
    }
}

/* Screenshots section */
.screenshots {
    padding: 48px 0;
}

.screenshots__head {
    text-align: center;
    margin-bottom: 32px;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.screenshot-item {
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
}

.screenshot-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin: 12px 0;
}

.screenshot-item h4 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

@media (max-width: 960px) {
    .screenshot-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .screenshot-grid {
        grid-template-columns: 1fr
    }
}

/* Footer styles */
.footer-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    margin-top: 60px;
}

.footer-top {
    padding: 50px 0 30px;
}

.footer-brand .brand-logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-brand .brand-logo i {
    margin-right: 10px;
}

.footer-premium a,
.footer-premium p,
.footer-premium span,
.footer-premium li {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.footer-premium a:hover {
    color: #ffffff !important;
}

.company-description {
    opacity: 0.9;
    margin-bottom: 20px;
}

.contact-info {
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    opacity: 0.9;
}

.contact-item i {
    margin-right: 10px;
    width: 20px;
}

.footer-links h5,
.footer-services h5,
.footer-social h5,
.footer-section .section-title,
.footer-premium h5,
.footer-premium h6 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #ffffff !important;
}

.footer-links ul,
.footer-services ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-services li {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    opacity: 0.8;
}

.language-switcher {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.language-switcher a {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-size: 0.9rem;
}

/* ===== STCW Page Modern Design ===== */

/* Bot Section - Hero with gradient */
.bot-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    color: #ffffff;
}

.bot-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.bot-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0088cc 0%, #00c6ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4);
}

.bot-icon i {
    color: #ffffff;
    font-size: 2.5rem;
}

.bot-title {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
}

.bot-description {
    font-size: 1.15rem;
    color: #6c757d;
    line-height: 1.6;
}

.bot-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.bot-features .feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    min-width: 140px;
    transition: all 0.3s ease;
}

.bot-features .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: #e9ecef;
}

.bot-features .feature-item i {
    font-size: 2.5rem;
}

.bot-features .feature-item span {
    font-weight: 600;
    color: #212529;
}

.bot-button {
    padding: 14px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #0088cc 0%, #00c6ff 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
    transition: all 0.3s ease;
}

.bot-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 136, 204, 0.6);
    background: linear-gradient(135deg, #00c6ff 0%, #0088cc 100%);
    color: #ffffff;
}

/* Info Section */
.info-section {
    background: #ffffff;
    padding: 60px 0;
}

.info-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 40px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.info-card:hover {
    border-color: #667eea;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.info-header i {
    font-size: 2.5rem;
}

.info-header h3 {
    margin: 0;
    font-weight: 700;
    color: #212529;
    font-size: 1.8rem;
}

.info-content .lead {
    font-size: 1.15rem;
    color: #495057;
    line-height: 1.7;
}

.requirements-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    border: 2px solid #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.requirements-box h5 {
    font-weight: 600;
    margin-bottom: 25px;
    color: #212529;
    font-size: 1.3rem;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.requirement-item:hover {
    background: #ffffff;
    border-color: #667eea;
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

.requirement-item i {
    font-size: 1.8rem;
    width: 35px;
    flex-shrink: 0;
}

.requirement-item span {
    font-weight: 500;
    color: #212529;
}

/* Contact Info Box - только для info-card, не для футера */
.info-card .contact-info {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-radius: 12px;
    padding: 20px 25px;
    border-left: 4px solid #667eea;
}

.info-card .contact-info p {
    margin: 0;
    font-size: 1.05rem;
}

.info-card .contact-info a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-card .contact-info a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Certificates Section */
.certificates-section {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.section-header .subtitle {
    font-size: 1.2rem;
    color: #6c757d;
}

.certificate-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.certificate-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
    transform: translateY(-5px);
}

.certificate-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.certificate-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.certificate-title h4 {
    margin: 0;
    font-weight: 600;
    color: #212529;
}

.certificate-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .bot-section {
        padding: 60px 0;
    }
    
    .bot-card {
        padding: 40px 25px;
    }
    
    .bot-features {
        gap: 15px;
    }
    
    .feature-item {
        min-width: 100px;
        padding: 15px;
    }
    
    .requirements-grid {
        grid-template-columns: 1fr;
    }
    
    .certificate-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}