/*
Theme Name: Neftegazsensor
Theme URI: https://neftegazsensor.ru/
Author: Site administrator
Description: Лёгкая тема для редактирования четырёх основных страниц через WordPress.
Version: 1.0.0
Text Domain: neftegazsensor
*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #fff;
    color: #555;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    padding-bottom: 100px;
}

.container {
    margin: 0 auto;
    max-width: 1400px;
    padding: 15px 20px;
}

.header {
    background: #fff9e6;
    padding: 12px 0;
    text-align: center;
}

.header h1 {
    color: #444;
    font-size: 22px;
}

.header-nav {
    margin-top: 8px;
}

.header-nav a {
    color: #555;
    display: inline-block;
    font-size: 14px;
    margin: 3px 15px;
    text-decoration: none;
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
    text-decoration: underline;
}

.content {
    min-height: 50vh;
}

.page-content {
    line-height: 1.6;
}

.page-content > * + * {
    margin-top: 15px;
}

.page-content h2 {
    border-bottom: 1px solid #e0e0e0;
    color: #444;
    font-size: 20px;
    margin-top: 25px;
    padding-bottom: 8px;
}

.page-content ul,
.page-content ol {
    margin-left: 25px;
}

.page-content img {
    border-radius: 8px;
    height: auto;
    max-width: 100%;
}

.table-wrap {
    overflow-x: auto;
    width: 100%;
}

table {
    border-collapse: collapse;
    font-size: 14px;
    margin: 20px 0;
    width: 100%;
}

th {
    background: #f5f5f5;
    border-bottom: 2px solid #e0e0e0;
    color: #777;
    font-size: 14px;
    font-weight: normal;
    padding: 12px;
    text-align: left;
}

td {
    border-bottom: 1px solid #eee;
    color: #555;
    font-size: 14px;
    padding: 8px 12px;
}

tr:hover {
    background: #f9f9f9;
}

.main-table th:first-child,
.main-table td:first-child,
.products-table th:first-child,
.products-table td:first-child {
    width: 80px;
}

.products-table th:nth-child(2),
.products-table td:nth-child(2) {
    width: 150px;
}

.products-table th:nth-child(3),
.products-table td:nth-child(3) {
    width: 200px;
    word-break: break-word;
}

.footer {
    background: #fff9e6;
    bottom: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .05);
    left: 0;
    position: fixed;
    right: 0;
    text-align: center;
    z-index: 1000;
}

.footer .container {
    padding-bottom: 3px;
    padding-top: 6px;
}

.footer-contacts img {
    height: 45px;
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

.footer-copyright {
    color: #777;
    font-size: 11px;
}

.scroll-top {
    align-items: center;
    background: #fff9e6;
    border: 1px solid #ddd;
    border-radius: 50%;
    bottom: 105px;
    color: #555;
    cursor: pointer;
    display: none;
    font-size: 24px;
    height: 50px;
    justify-content: center;
    position: fixed;
    right: 20px;
    text-decoration: none;
    width: 50px;
    z-index: 999;
}

.scroll-top.show {
    display: flex;
}

@media (max-width: 700px) {
    body {
        padding-bottom: 115px;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .header-nav a {
        margin-left: 7px;
        margin-right: 7px;
    }

    th,
    td {
        padding: 7px;
    }
}
