/* === Основные настройки === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

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

/* === Шапка сайта === */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    display: inline-block;
}

.main-nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.main-nav ul li a:hover {
    color: #007BFF;
}

/* === Основной контент === */
.site-main {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.hero {
    text-align: center;
    padding: 40px 20px;
    background: #e9f5ff;
    border-radius: 8px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* === Блок услуг === */
.service-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.service-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 300px;
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* === Рекламные блоки === */
.ad-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.ad-item {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}



/* === Футер === */
.site-footer {
    background-color: #f9f9f9;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    margin-top: 60px;
}

/* === Таблицы === */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 10pt;
}

table td,
table th {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table thead tr {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* === Мобильное меню === */
.mobile-menu-trigger {
    display: none;
    font-size: 20px;
    cursor: pointer;
    margin-top: 10px;
    float: right;
    margin-right: 20px;
    color: #007BFF;
}

.mobile-actions {
    display: none;
    flex-direction: column;
    gap: 10px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.mobile-actions.show {
    display: flex;
}

@media (max-width: 768px) {
    .mobile-menu-trigger {
        display: inline-block;
    }

    .actions {
        display: none;
    }
}


/* === Калькулятор === */
.customer-info {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
}

.info-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 10px;
}

.info-group label {
    width: 120px;
    font-weight: bold;
    font-size: 14px;
}

.info-group input {
    flex: 1;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Базовые стили */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.calculator-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

h1, h2, h3 {
    color: #2c3e50;
    margin-top: 20px;
}

.template-selector label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

/* Адаптивная сетка для шаблонов */
.template-section {
    margin-top: 20px;
    padding: 15px;
    border-left: 4px solid #bdc3c7;
    background-color: #ecf0f1;
    border-radius: 4px;
}

.input-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.input-row label {
    width: 100%;
    font-weight: normal;
}

.input-row input {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    margin-top: 5px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .input-row label {
        width: 60%;
    }

    .input-row input {
        width: 35%;
    }
}

/* Пользовательские поля */
.custom-item {
    margin-top: 20px;
}

.custom-item input {
    width: 100%;
    padding: 8px;
    margin: 5px 0 10px;
    font-size: 14px;
}

.action-buttons {
    margin-top: 20px;
    text-align: left;
}

.action-buttons button {
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 10px 20px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

.action-buttons button:hover {
    background-color: #219150;
}

/* Таблица сметы */
.estimate-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    overflow-x: auto;
    font-size: 14px;
}

.estimate-table th,
.estimate-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.estimate-table thead {
    background-color: #f1f1f1;
}

/* Респонсив таблица */
@media (max-width: 768px) {
    .estimate-table thead {
        display: none;
    }

    .estimate-table tr {
        display: block;
        border-bottom: 1px solid #ccc;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .estimate-table td {
        display: block;
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    .estimate-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        top: 8px;
        font-weight: bold;
        text-align: left;
    }
}

/* Кнопки действий */
@media (max-width: 600px) {
    .action-buttons button {
        width: 100%;
    }
}