/* =====================================================
   ООО «Линоком» — корпоративный сайт
   ===================================================== */

/* --- Переменные --- */
:root {
    --navy:        #1a2e4a;
    --navy-dark:   #12213a;
    --blue:        #2d7dd2;
    --blue-hover:  #2569b8;
    --blue-light:  #e8f2fc;
    --bg:          #f4f7fa;
    --text:        #2c3e50;
    --text-muted:  #6c757d;
    --white:       #ffffff;
    --border:      #dee2e6;
    --radius:      8px;
    --shadow:      0 2px 14px rgba(0,0,0,0.07);
    --transition:  0.18s ease;
}

/* --- Сброс --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- Layout --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 64px 0; }
section.alt { background: var(--bg); }

/* --- Типографика --- */
h1, h2, h3, h4 { line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.1rem; }
p { margin-bottom: 0; }

/* --- Кнопки --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    line-height: 1.4;
}
.btn-primary {
    background: var(--blue);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--blue-hover);
    text-decoration: none;
    color: var(--white);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
    border-color: var(--white);
    text-decoration: none;
    color: var(--white);
}

/* --- Шапка --- */
header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    position: relative;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    flex-shrink: 0;
}
.logo:hover { text-decoration: none; color: var(--white); }
.logo-img {
    height: 34px;
    width: auto;
    filter: brightness(0) invert(1);
}
.nav-links {
    display: flex;
    gap: 6px;
    align-items: center;
}
.nav-links a {
    color: rgba(255,255,255,0.82);
    font-size: 0.92rem;
    padding: 6px 10px;
    border-radius: 5px;
    transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    background: rgba(255,255,255,0.1);
    text-decoration: none;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

/* --- Герой --- */
.hero {
    background: var(--navy);
    color: var(--white);
    padding: 80px 0 76px;
}
.hero h1 {
    color: var(--white);
    margin-bottom: 20px;
    max-width: 760px;
}
.hero p {
    color: rgba(255,255,255,0.82);
    font-size: 1.05rem;
    max-width: 700px;
    margin-bottom: 14px;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* --- Page header --- */
.page-header {
    background: var(--navy);
    color: var(--white);
    padding: 52px 0 44px;
}
.page-header h1 { color: var(--white); margin-bottom: 10px; }
.page-header p { color: rgba(255,255,255,0.78); font-size: 1.05rem; max-width: 640px; }

/* --- Section heading --- */
.section-heading {
    text-align: center;
    margin-bottom: 48px;
}
.section-heading h2 { margin-bottom: 12px; }
.section-heading p {
    color: var(--text-muted);
    font-size: 1.02rem;
    max-width: 620px;
    margin: 0 auto;
}

/* --- Cards grid --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
}
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: box-shadow var(--transition);
}
.card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.11); }
.card-icon { font-size: 2rem; margin-bottom: 14px; }
.card h3 { color: var(--navy); margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.card-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--blue);
    font-size: 0.9rem;
    font-weight: 600;
}
.card-link:hover { text-decoration: none; color: var(--blue-hover); }

/* --- Services --- */
.service-block { margin-bottom: 60px; }
.service-block:last-child { margin-bottom: 0; }
.block-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--blue-light);
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.service-block > h2 {
    color: var(--navy);
    margin-bottom: 8px;
}
.service-block > .block-desc {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 700px;
    margin-bottom: 28px;
}
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 20px;
}
.service-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px 26px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.service-item h3 { color: var(--navy); margin-bottom: 6px; font-size: 1.05rem; }
.okved-badge {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
}
.service-item p { color: var(--text); font-size: 0.93rem; line-height: 1.65; }

/* Таблица сравнения */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 28px;
    font-size: 0.92rem;
}
.compare-table th {
    background: var(--navy);
    color: var(--white);
    padding: 10px 16px;
    text-align: left;
    font-weight: 600;
}
.compare-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.compare-table tr:nth-child(even) td { background: var(--bg); }
.compare-table td:first-child { color: var(--text-muted); }
.compare-table td:last-child { color: var(--navy); font-weight: 500; }

/* --- Projects --- */
.project-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 24px;
}
.project-card:last-child { margin-bottom: 0; }
.project-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.project-card h3 { color: var(--navy); font-size: 1.2rem; margin-bottom: 14px; }
.project-card p { color: var(--text); font-size: 0.95rem; line-height: 1.7; margin-bottom: 10px; }
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 16px;
}
.tech-tag {
    background: var(--blue-light);
    color: var(--blue);
    padding: 3px 11px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* --- About --- */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.94rem;
}
.info-table tr { border-bottom: 1px solid var(--border); }
.info-table tr:last-child { border-bottom: none; }
.info-table th {
    background: var(--bg);
    color: var(--navy);
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    width: 38%;
    vertical-align: top;
}
.info-table td { padding: 12px 16px; color: var(--text); }

.okved-list { margin-top: 20px; }
.okved-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}
.okved-item:last-child { border-bottom: none; }
.okved-code {
    font-weight: 700;
    color: var(--blue);
    font-size: 0.95rem;
    min-width: 64px;
    flex-shrink: 0;
}
.okved-desc { font-size: 0.94rem; color: var(--text); }
.okved-main .okved-code::after {
    content: " ★";
    font-size: 0.7rem;
    color: var(--blue);
}

/* --- Contacts --- */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-top: 40px;
}
.contact-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.contact-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    width: 42px;
    text-align: center;
    padding-top: 2px;
}
.contact-body h4 { color: var(--navy); margin-bottom: 6px; font-size: 0.95rem; }
.contact-body p, .contact-body a { color: var(--text); font-size: 0.94rem; line-height: 1.6; }
.contact-body a:hover { color: var(--blue); }

/* --- Privacy --- */
.prose { max-width: 800px; }
.prose h2 {
    color: var(--navy);
    font-size: 1.2rem;
    margin: 36px 0 12px;
    padding-top: 4px;
    border-top: 2px solid var(--blue-light);
}
.prose h2:first-child { margin-top: 0; border-top: none; }
.prose p { font-size: 0.94rem; color: var(--text); margin-bottom: 10px; line-height: 1.7; }
.prose ul { padding-left: 20px; list-style: disc; margin-bottom: 12px; }
.prose ul li { font-size: 0.94rem; margin-bottom: 5px; color: var(--text); }
.prose a { color: var(--blue); }

/* --- CTA секция --- */
.cta {
    background: var(--navy);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}
.cta h2 { color: var(--white); margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,0.8); font-size: 1.02rem; max-width: 540px; margin: 0 auto 28px; }

/* --- Подвал --- */
footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.7);
    padding: 52px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.footer-logo img {
    height: 28px;
    filter: brightness(0) invert(1);
}
footer p { font-size: 0.88rem; margin-bottom: 6px; line-height: 1.6; }
footer h4 {
    color: var(--white);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 14px;
}
footer ul li { margin-bottom: 8px; }
footer a { color: rgba(255,255,255,0.65); font-size: 0.88rem; }
footer a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin: 0; }
.footer-bottom a { color: rgba(255,255,255,0.5); font-size: 0.78rem; }
.footer-bottom a:hover { color: var(--white); }

/* --- Утилиты --- */
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }

/* --- Адаптив --- */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    header nav { position: relative; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0; right: 0;
        background: var(--navy-dark);
        padding: 16px 24px 20px;
        gap: 4px;
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 9px 12px; font-size: 1rem; }
    .nav-toggle { display: block; }
    section { padding: 48px 0; }
    .hero { padding: 56px 0 52px; }
    .compare-table { font-size: 0.85rem; }
    .compare-table th, .compare-table td { padding: 8px 12px; }
}
@media (max-width: 540px) {
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 4px; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
}
