/*
Theme Name: KADASTR30
Theme URI: https://kadastr30.ru
Author: KADASTR30 Team
Description: Премиум минималистичная тема для сайта кадастровых работ
Version: 2.1
*/

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

:root {
    --color-primary: #111827;
    --color-accent: #059669;
    --color-text: #1F2937;
    --color-text-light: #6B7280;
    --color-bg: #FFFFFF;
    --color-border: #E5E7EB;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

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

/* ===== ШАПКА ===== */
.site-header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.site-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--color-accent);
    font-weight: 600;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    font-weight: 600;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--color-accent);
}

.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.header-phone {
    font-weight: 700;
    font-size: 16px;
    color: var(--color-primary);
}

.header-social {
    display: flex;
    gap: 15px;
    font-size: 13px;
}

.header-social a {
    color: var(--color-text-light);
    transition: color 0.3s;
}

.header-social a:hover {
    color: var(--color-accent);
}

/* ===== HERO СЕКЦИЯ (КОМПАКТНАЯ) С ФОНОМ ===== */
.hero-compact {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.85) 0%, rgba(17, 24, 39, 0.75) 100%);
    overflow: hidden;
}

.hero-bg-lotus {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/lotus-bg.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 0;
    filter: brightness(0.85) saturate(1.1);
}

.hero-bg-lotus::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 60px 0 40px;
}

.hero-text h1 {
    font-size: 48px;
    margin-bottom: 15px;
    letter-spacing: -1px;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-tiles {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tile {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 25px 30px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
}

.tile:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.tile i {
    font-size: 32px;
    color: var(--color-accent);
}

.tile small {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* ===== БОКОВЫЕ ПАНЕЛИ ===== */
.side-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 600px;
    max-width: 90%;
    height: 100vh;
    background: var(--color-bg);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    transition: right 0.4s ease;
    overflow-y: auto;
}

.side-panel.active {
    right: 0;
}

.panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
    cursor: pointer;
}

.panel-overlay.active {
    display: block;
}

.panel-content {
    padding: 40px;
    position: relative;
}

.panel-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text-light);
    transition: color 0.3s;
}

.panel-close:hover {
    color: var(--color-primary);
}

.panel-content h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--color-primary);
}

.panel-subtitle {
    color: var(--color-text-light);
    margin-bottom: 30px;
    font-size: 16px;
}

/* ===== УСЛУГИ В ПАНЕЛИ ===== */
.service-detail {
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 20px;
}

.service-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0;
    cursor: pointer;
    transition: all 0.3s;
}

.service-header:hover {
    padding-left: 10px;
}

.service-num {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-accent);
    min-width: 50px;
}

.service-title {
    flex: 1;
}

.service-title h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.service-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-accent);
}

.service-detail-content {
    display: none;
    padding: 20px 0 30px 70px;
    animation: fadeIn 0.3s;
}

.service-detail-content.active {
    display: block;
}

.service-detail-content img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-detail-content p {
    margin-bottom: 15px;
    color: var(--color-text);
}

.service-detail-content ul {
    list-style: none;
    padding-left: 0;
}

.service-detail-content ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--color-text-light);
}

.service-detail-content ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

/* ===== ФОРМА ВОПРОСА ===== */
.question-form {
    margin-top: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--color-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--color-accent);
    color: var(--color-bg);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #047857;
}

/* ===== КОМПАКТНЫЕ КОНТАКТЫ ===== */
.contacts-compact {
    background: var(--color-primary);
    color: var(--color-bg);
    padding: 30px 0;
}

.contacts-compact h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.contacts-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    font-size: 15px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #D1D5DB;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--color-accent);
}

.contact-link i {
    color: var(--color-accent);
}

/* ===== ПОДВАЛ ===== */
.site-footer {
    background: #0A0F1C;
    color: #6B7280;
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .main-nav,
    .header-social {
        display: none;
    }
    
    .side-panel {
        width: 100%;
    }
    
    .contacts-row {
        flex-direction: column;
        gap: 15px;
    }
}

/* ===== ПЛИТКА ОФОРМИТЬ УСЛУГУ В HERO ===== */
.service-order-tile {
    margin-top: 30px;
    padding: 20px 30px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: rgba(5, 150, 105, 0.9);
    border: 2px solid rgba(5, 150, 105, 1);
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.service-order-tile:hover {
    background: rgba(5, 150, 105, 1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.service-order-tile i {
    font-size: 24px;
}

/* ===== ЗАГРУЗКА ФАЙЛОВ ===== */
.file-upload-container {
    margin-bottom: 15px;
}

.file-input-wrapper {
    margin-bottom: 15px;
    padding: 15px;
    border: 2px dashed var(--color-border);
    border-radius: 8px;
    transition: border-color 0.3s;
}

.file-input-wrapper:hover {
    border-color: var(--color-accent);
}

.file-input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    color: var(--color-text);
}

.file-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--color-text-light);
}

.add-file-btn {
    background: transparent;
    border: 2px dashed var(--color-accent);
    color: var(--color-accent);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
}

.add-file-btn:hover {
    background: rgba(5, 150, 105, 0.1);
}

.file-error {
    color: #EF4444;
    font-size: 13px;
    margin-top: 5px;
}

.file-success {
    color: var(--color-accent);
    font-size: 13px;
    margin-top: 5px;
}

/* ===== ЦЕНТРИРОВАНИЕ ПЛИТКИ ОФОРМИТЬ УСЛУГУ ===== */
.service-order-tile {
    margin: 30px auto 0 !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== ИСПРАВЛЕНИЕ ЦЕНТРИРОВАНИЯ ПЛИТКИ ОФОРМИТЬ УСЛУГУ ===== */
.service-order-tile {
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin: 30px auto 0 !important;
    width: fit-content;
    text-align: center;
}

.service-order-tile i {
    margin-right: 15px;
}

.service-order-tile span {
    display: inline-block;
    vertical-align: middle;
}

.hero-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== ЦЕНТРИРОВАНИЕ НАДПИСИ ВНУТРИ ПЛИТКИ ===== */
.service-order-tile {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

.service-order-tile i {
    margin-right: 10px;
    flex-shrink: 0;
}

.service-order-tile span {
    display: inline-block;
    vertical-align: middle;
}

/* ===== ЦЕНТРИРОВАНИЕ ТЕКСТА НА ПЛИТКЕ ===== */
.service-order-tile {
    justify-content: center !important;
    text-align: center !important;
}

.service-order-tile span {
    display: block;
    width: 100%;
}

/* ===== АДРЕС В ШАПКЕ ===== */
.header-address {
    font-size: 13px;
    color: var(--color-text-light);
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-address i {
    color: var(--color-accent);
}

.address-link {
    cursor: default;
}

.address-link i {
    color: var(--color-accent);
}


.seo-services-block.compact h2 {
    text-align: center;
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.service-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-item h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.service-item p {
    font-size: 14px;
    color: var(--color-text);
    margin: 0;
    line-height: 1.5;
}

.seo-text {
    text-align: center;
    margin-top: 30px;
    font-size: 15px;
    color: var(--color-text);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .seo-services-block.compact {
        padding: 40px 0;
    }
    
    .seo-services-block.compact h2 {
        font-size: 26px;
        margin-bottom: 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}


.seo-services-block.mini h2 {
    text-align: center;
    font-size: 20px;
    color: var(--color-primary);
    margin: 0 0 15px 0;
    font-weight: 600;
}

.services-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.mini-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid #e9ecef;
    font-size: 13px;
    color: var(--color-text);
    white-space: nowrap;
}

.mini-icon {
    font-size: 14px;
}

.mini-title {
    font-weight: 500;
}

@media (max-width: 768px) {
    .seo-services-block.mini {
        padding: 15px 0;
    }
    
    .seo-services-block.mini h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .mini-item {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Мини SEO-блок */
.seo-services-block.mini {
    padding: 12px 0;
    background: #f8f9fa;
}

.seo-services-block.mini h2 {
    text-align: center;
    font-size: 16px;
    color: var(--color-primary);
    margin: 0 0 10px 0;
    font-weight: 600;
}

.services-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.mini-item {
    background: white;
    padding: 5px 12px;
    border-radius: 15px;
    border: 1px solid #dee2e6;
    font-size: 11px;
    color: var(--color-text);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .seo-services-block.mini {
        padding: 10px 0;
    }
    
    .seo-services-block.mini h2 {
        font-size: 14px;
    }
    
    .mini-item {
        padding: 4px 8px;
        font-size: 10px;
    }
}
