/*
Theme Name: УПРиУ - Управление потребительского рынка и услуг
Theme URI: https://github.com/upriu-theme
Author: Kilo Code
Author URI: https://kilo.ai
Description: Тема для сайта Управления потребительского рынка и услуг г. Норильска
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: upriu
Tags: government, municipal, consumer-market, services
*/

/* ==========================================================================
   Основные стили темы УПРиУ
   ========================================================================== */

:root {
    /* Цветовая палитра */
    --primary-color: #0A3D62;
    --secondary-color: #2FB4BE;
    --accent-color: #2C3E50;
    --background-color: #F1F5F9;
    --white: #FFFFFF;
    --text-color: #2C3E50;
    --text-light: #A6B2C1;
    --success-color: #27AE60;
    --error-color: #E74C3C;
    --warning-color: #F9A826;
    
    /* Шрифты */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    
    /* Размеры */
    --container-width: 1440px;
    --container-padding: clamp(20px, 4vw, 80px);
    --header-height: 164px;
    --border-radius: 60px;
    --border-radius-sm: 34px;
}

/* ==========================================================================
   Сброс стилей
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Типографика
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 44px;
    line-height: 54px;
}

h2 {
    font-size: 34px;
    line-height: 44px;
}

h3 {
    font-size: 28px;
    line-height: 36px;
}

h4 {
    font-size: 22px;
    line-height: 28px;
}

h5 {
    font-size: 20px;
    line-height: 27px;
}

h6 {
    font-size: 18px;
    line-height: 24px;
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   Контейнеры
   ========================================================================== */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 var(--container-padding);
}

/* ==========================================================================
   Кнопки
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    font-family: var(--font-secondary);
    font-size: 18px;
    font-weight: 700;
    line-height: 32px;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--text-color);
    border: 2px solid var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--text-color);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border: 3px solid var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* ==========================================================================
   Карточки
   ========================================================================== */

.card {
    background-color: var(--white);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 54px -20px rgba(10, 61, 98, 0.3);
}

.card-image {
    width: 100%;
    height: 224px;
    object-fit: cover;
}

.card-body {
    padding: 30px;
}

.card-title {
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 15px;
}

.card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.card-category {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
}

/* ==========================================================================
   Секции
   ========================================================================== */

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 44px;
    line-height: 54px;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 20px;
    line-height: 32px;
    color: var(--text-color);
    margin-bottom: 30px;
}

/* ==========================================================================
   Сетка
   ========================================================================== */

.grid {
    display: grid;
    gap: 34px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ==========================================================================
   Формы
   ========================================================================== */

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

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 18px 32px;
    font-family: var(--font-secondary);
    font-size: 18px;
    line-height: 32px;
    color: var(--text-color);
    background-color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    outline: none;
    transition: box-shadow 0.3s ease;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(47, 180, 190, 0.3);
}

.form-control::placeholder {
    color: var(--text-light);
}

textarea.form-control {
    min-height: 200px;
    resize: vertical;
}

/* ==========================================================================
   Утилиты
   ========================================================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.text-light {
    color: var(--text-light);
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-secondary {
    background-color: var(--secondary-color);
}

.bg-white {
    background-color: var(--white);
}

.bg-light {
    background-color: var(--background-color);
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 10px; }
.pt-2 { padding-top: 20px; }
.pt-3 { padding-top: 30px; }
.pt-4 { padding-top: 40px; }
.pt-5 { padding-top: 50px; }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 10px; }
.pb-2 { padding-bottom: 20px; }
.pb-3 { padding-bottom: 30px; }
.pb-4 { padding-bottom: 40px; }
.pb-5 { padding-bottom: 50px; }

/* ==========================================================================
   Адаптивность
   ========================================================================== */

@media (max-width: 1200px) {
    :root {
        --container-padding: 50px;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 36px;
        line-height: 44px;
    }
    
    h2 {
        font-size: 28px;
        line-height: 36px;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 20px;
    }
    
    h1 {
        font-size: 28px;
        line-height: 36px;
    }
    
    h2 {
        font-size: 24px;
        line-height: 32px;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 15px 30px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 28px;
        line-height: 36px;
    }
}
