/* УК Жилсервис - Стили */
:root {
    --primary-color: #1a73e8;
    --secondary-color: #34a853;
    --text-color: #202124;
    --text-light: #5f6368;
    --bg-color: #ffffff;
    --bg-alt: #f8f9fa;
    --border-color: #dadce0;
    --accent-color: #ea4335;
    --link-color: #1a73e8;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

/* Container */
.container {
    max-width: 1174px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-color);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Navigation */
.nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav a:hover,
.nav a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

.nav-dropdown-content a {
    display: block;
    padding: 8px 16px;
    border-bottom: none;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 64px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Slider placeholder */
.slider {
    background: var(--bg-alt);
    padding: 32px 0;
    text-align: center;
}

.slider-placeholder {
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-light);
}

/* Services */
.services {
    padding: 64px 0;
    background: var(--bg-alt);
}

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

.service-card {
    background: var(--bg-color);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.service-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.service-card h3 {
    margin-bottom: 8px;
    color: var(--text-color);
}

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

.service-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

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

/* Content */
.content {
    padding: 64px 0;
}

.content h1,
.content h2,
.content h3 {
    margin-bottom: 16px;
    color: var(--text-color);
}

.content p {
    margin-bottom: 16px;
}

.content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.content li {
    margin-bottom: 8px;
}

.content a {
    color: var(--primary-color);
}

.content a:hover {
    text-decoration: underline;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    margin-bottom: 24px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--bg-alt);
    font-weight: 600;
}

tr:hover {
    background: var(--bg-alt);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.2s;
    border: 2px solid var(--primary-color);
}

.btn:hover {
    background: #1557b0;
    border-color: #1557b0;
}

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

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

/* Reports */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.report-btn {
    display: block;
    padding: 16px;
    background: var(--bg-alt);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    text-align: center;
    transition: all 0.2s;
}

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

/* Photo Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: var(--text-color);
    color: white;
    padding: 48px 0 24px;
    margin-top: 64px;
}

.footer a {
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer h3 {
    margin-bottom: 16px;
}

.footer p {
    margin-bottom: 8px;
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav {
        width: 100%;
        justify-content: flex-start;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}