/* ==========================================================================
   Общая таблица стилей CSS для сайта "АргонПрофи"
   Соответствует требованиям блочной верстки на тегах DIV
   ========================================================================== */

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

body {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 11pt; /* Требование ТЗ: в пределах 10-12 пт */
    line-height: 1.6;
    color: #333333;
    background-color: #eef2f7;
}

/* Главный контейнер макета (блочная верстка DIV) */
.page-wrapper {
    width: 980px;
    margin: 20px auto;
    background-color: #ffffff;
    border: 1px solid #dcdcdc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
}

/* Шапка сайта (Header) */
.header {
    background: #1c3b5e;
    color: #ffffff;
    padding: 15px 25px;
    border-bottom: 3px solid #ff7700;
    overflow: hidden;
}

.header-logo {
    float: left;
    width: 70px;
    margin-right: 15px;
}

.header-logo img {
    width: 70px;
    height: 70px;
    display: block;
}

.header-title {
    float: left;
    width: 530px;
}

.header-title h1 {
    font-size: 19pt;
    color: #ffffff;
    margin-bottom: 4px;
    font-weight: bold;
}

.header-title p {
    font-size: 10pt;
    color: #b8d4f0;
}

.header-info {
    float: right;
    width: 300px;
    text-align: right;
    font-size: 10pt;
}

.header-info .phone {
    font-size: 13pt;
    font-weight: bold;
    color: #ff9d3b;
    margin-bottom: 4px;
}

.header-info .address {
    color: #e2e8f0;
    font-size: 9.5pt;
    margin-bottom: 4px;
}

.header-info .clock-box {
    background: #132a44;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    color: #f1f5f9;
    font-size: 9.5pt;
    border: 1px solid #2b4c73;
}

/* Навигационная панель (Глобальная навигация) */
.nav-bar {
    background: #244970;
    border-bottom: 1px solid #1a3552;
    overflow: hidden;
}

.nav-bar ul {
    list-style: none;
}

.nav-bar li {
    float: left;
}

.nav-bar a {
    display: block;
    padding: 11px 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 10.5pt;
    font-weight: bold;
    transition: background-color 0.2s;
}

.nav-bar a:hover,
.nav-bar a.active {
    background-color: #ff7700;
    color: #ffffff;
}

/* Основной блок контента */
.main-wrapper {
    padding: 20px 25px;
    overflow: hidden;
}

.content-area {
    float: left;
    width: 660px;
}

/* Иерархия заголовков H1-H6 для SEO продвижения */
.content-area h2 {
    font-size: 16pt;
    color: #1c3b5e;
    margin-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 6px;
}

.content-area h3 {
    font-size: 13pt;
    color: #2b527d;
    margin-top: 16px;
    margin-bottom: 8px;
}

.sidebar h4,
.service-card h4 {
    font-size: 11.5pt;
    color: #1c3b5e;
    margin-bottom: 8px;
}

.sidebar h5 {
    font-size: 10pt;
    color: #4a6b8f;
    margin-top: 8px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer h6 {
    font-size: 8.5pt;
    color: #8fa5bc;
    font-weight: normal;
    margin-top: 6px;
}

/* Оформление абзацев и списков */
.content-area p {
    margin-bottom: 12px;
    text-align: justify;
}

.content-area ul,
.content-area ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

.content-area li {
    margin-bottom: 5px;
}

/* Боковая колонка (Sidebar) */
.sidebar {
    float: right;
    width: 230px;
}

.sidebar-block {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 14px;
    margin-bottom: 18px;
}

.sidebar-block h4 {
    border-bottom: 2px solid #ff7700;
    padding-bottom: 4px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    border-bottom: 1px dashed #d0dbe5;
    padding: 6px 0;
}

.sidebar-menu a {
    color: #204d7c;
    text-decoration: none;
    font-size: 10pt;
}

.sidebar-menu a:hover {
    color: #ff7700;
    text-decoration: underline;
}


/* Информер счетчика посетителей (Скрипт 2) */
.counter-box {
    text-align: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 10px;
    border-radius: 4px;
    font-size: 9.5pt;
}

.counter-value {
    font-size: 15pt;
    font-weight: bold;
    color: #1c3b5e;
    margin: 5px 0;
    letter-spacing: 2px;
    background: #f1f5f9;
    padding: 3px 6px;
    border: 1px solid #94a3b8;
    display: inline-block;
    border-radius: 3px;
}

/* Изображения контента */
.content-img {
    max-width: 100%;
    height: auto;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    margin: 10px 0 15px 0;
    display: block;
}

.img-left {
    float: left;
    margin: 0 15px 10px 0;
    width: 250px;
}

.img-right {
    float: right;
    margin: 0 0 10px 15px;
    width: 250px;
}

/* Таблицы (для цен) */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 10.5pt;
}

.price-table th,
.price-table td {
    border: 1px solid #cbd5e1;
    padding: 9px 12px;
    text-align: left;
}

.price-table th {
    background-color: #244970;
    color: #ffffff;
}

.price-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.price-table tr:hover {
    background-color: #edf4fa;
}

/* Карточки услуг и галереи */
.services-grid {
    overflow: hidden;
    margin-top: 15px;
}

.service-card {
    float: left;
    width: 315px;
    margin-right: 20px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    background: #fafbfc;
    padding: 12px;
    border-radius: 4px;
}

.service-card:nth-child(2n) {
    margin-right: 0;
}

.service-card p {
    font-size: 10pt;
    margin-bottom: 8px;
}

.service-card a {
    color: #ff7700;
    font-weight: bold;
    text-decoration: none;
    font-size: 10pt;
}

.service-card a:hover {
    text-decoration: underline;
}

/* Интерактивный калькулятор */
.calc-panel {
    background: #f0f4f9;
    border: 1px solid #b8c9dc;
    border-radius: 6px;
    padding: 15px 20px;
    margin: 15px 0;
}

.calc-group {
    margin-bottom: 12px;
}

.calc-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
    color: #1c3b5e;
}

.calc-group select,
.calc-group input[type="number"],
.calc-group input[type="text"] {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    font-size: 10pt;
    font-family: inherit;
}

.btn-calc {
    background-color: #ff7700;
    color: #ffffff;
    border: none;
    padding: 9px 20px;
    font-size: 11pt;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-calc:hover {
    background-color: #e06800;
}

.calc-result {
    margin-top: 15px;
    padding: 10px;
    background: #ffffff;
    border-left: 4px solid #ff7700;
    font-weight: bold;
    font-size: 11pt;
    color: #1c3b5e;
}

.calc-note {
    font-size: 9pt;
    color: #666666;
    margin-top: 4px;
    display: block;
}

/* Форма обратной связи */
.contact-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 15px 20px;
    border-radius: 4px;
    margin-top: 15px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
    color: #1c3b5e;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: inherit;
    font-size: 10.5pt;
}

.btn-submit {
    background: #1c3b5e;
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    font-size: 11pt;
    border-radius: 4px;
    cursor: pointer;
}

.btn-submit:hover {
    background: #2b5585;
}

/* Оформление Карты сайта (sitemap.html) без inline-стилей */
.sitemap-list {
    list-style-type: square;
    margin-left: 20px;
}

.sitemap-list > li {
    margin-bottom: 12px;
}

.sitemap-link-main {
    color: #1c3b5e;
    font-weight: bold;
    font-size: 11pt;
    text-decoration: none;
}

.sitemap-link-main:hover {
    color: #ff7700;
    text-decoration: underline;
}

.sitemap-desc {
    margin-top: 2px;
    margin-bottom: 6px;
    font-size: 10pt;
    color: #555555;
}

.sitemap-sublist {
    list-style-type: circle;
    margin-left: 20px;
    margin-top: 4px;
    margin-bottom: 8px;
}

.sitemap-sublink {
    color: #204d7c;
    text-decoration: none;
}

.sitemap-sublink:hover {
    color: #ff7700;
    text-decoration: underline;
}

.highlight-urgent {
    margin-top: 10px;
    color: #ff7700;
    font-weight: bold;
}

/* Кнопка "Наверх" (Скрипт 3) */
#scroll-top {
    position: fixed;
    bottom: 25px;
    right: 30px;
    display: none;
    background-color: #ff7700;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 18pt;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    transition: background-color 0.2s, transform 0.2s;
    z-index: 1000;
}

#scroll-top:hover {
    background-color: #1c3b5e;
    transform: translateY(-3px);
}

/* Подвал сайта (Footer) */
.footer {
    background: #162c45;
    color: #d1d9e2;
    padding: 20px 25px;
    border-top: 3px solid #ff7700;
    font-size: 10pt;
    overflow: hidden;
}

.footer-left {
    float: left;
    width: 450px;
}

.footer-left h4 {
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 11pt;
}

.footer-left p {
    margin-bottom: 5px;
}

.footer-right {
    float: right;
    width: 420px;
    text-align: right;
}

.footer-links {
    margin-bottom: 8px;
}

.footer-links a {
    color: #b0c9e2;
    text-decoration: none;
    margin-left: 10px;
}

.footer-links a:hover {
    color: #ff9d3b;
    text-decoration: underline;
}

.footer-copy {
    color: #8c9ba9;
    font-size: 9pt;
    margin-top: 8px;
}

/* Очистка обтекания */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}
