/* === Основные стили из HTML шаблона === */

:root {
    --vintage-gold: #b7950b;
    --vintage-light: #d4af37;
    --vintage-bright: #f1c40f;
    --vintage-cream: #fef9e7;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--vintage-cream) 0%, #ffffff 100%);
    overflow-x: hidden;
}

/* Display + Body Typography Mix */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p, li, span {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

/* Centered Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--vintage-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-brand {
    flex-grow: 0;
}

.navbar-menu {
    justify-content: center;
    align-items: center;
}

.navbar-item {
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 0.5rem;
}

.navbar-item:hover {
    background: var(--vintage-cream);
    color: var(--vintage-gold);
    transform: translateY(-2px);
}

/* Split Hero Section */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--vintage-cream) 0%, rgba(254, 249, 231, 0.8) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-title {
    color: var(--vintage-gold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Metro UI Cards with Adaptive Border Radius */
.metro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.metro-card {
    background: white;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.metro-card.large {
    grid-column: span 2;
    border-radius: 12px;
}

.metro-card.medium {
    border-radius: 8px;
}

.metro-card.small {
    border-radius: 6px;
}

/* Elegant Hover Effects */
.metro-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(183, 149, 11, 0.2);
}

.metro-card-header {
    background: linear-gradient(135deg, var(--vintage-light), var(--vintage-bright));
    padding: 2rem;
    color: white;
    text-align: center;
}

.metro-card-body {
    padding: 2rem;
}

.metro-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--vintage-cream);
}

/* Buttons with Adaptive Radius */
.button.is-vintage {
    background: linear-gradient(135deg, var(--vintage-gold), var(--vintage-light));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.button.is-vintage:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(183, 149, 11, 0.3);
    background: linear-gradient(135deg, var(--vintage-light), var(--vintage-bright));
}

.button.is-vintage-outline {
    background: transparent;
    color: var(--vintage-gold);
    border: 2px solid var(--vintage-gold);
    border-radius: 12px;
}

.button.is-vintage-outline:hover {
    background: var(--vintage-gold);
    color: white;
    transform: translateY(-2px);
}

/* Service Cards */
.service-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border-top: 4px solid var(--vintage-light);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(183, 149, 11, 0.15);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--vintage-gold);
    margin-bottom: 1rem;
}

/* Team Cards */
.team-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.team-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 25px rgba(183, 149, 11, 0.2);
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, var(--vintage-gold), var(--vintage-light));
    color: white;
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

/* Portfolio Gallery */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.portfolio-item:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(183, 149, 11, 0.2);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(183, 149, 11, 0.9), rgba(212, 175, 55, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.input, .textarea {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.input:focus, .textarea:focus {
    border-color: var(--vintage-light);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Footer */
.footer-section {
    background: var(--text-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-links a {
    color: var(--vintage-cream);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--vintage-bright);
}

/* Responsive Design */
@media (max-width: 768px) {
    .metro-grid {
        grid-template-columns: 1fr;
    }
    
    .metro-card.large {
        grid-column: span 1;
    }
    
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* === WordPress Specific Styles === */

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin: 2rem 0 3rem;
    font-weight: 600;
}

.page-numbers {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--vintage-light);
    border-radius: 4px;
    text-decoration: none;
    color: var(--vintage-gold);
    transition: background 0.2s ease;
}

.page-numbers.current,
.page-numbers:hover {
    background: var(--vintage-gold);
    color: white;
    border-color: var(--vintage-gold);
}

.next.page-numbers,
.prev.page-numbers {
    border-color: transparent;
    color: var(--vintage-gold);
}

.next.page-numbers:hover,
.prev.page-numbers:hover {
    color: var(--vintage-bright);
    background: transparent;
}

/* Хлебные крошки */
.breadcrumbs {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    padding: 0 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--vintage-gold);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--vintage-bright);
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--text-dark);
}

/* Страница записи */
.post-content {
    max-width: 800px;
    margin: 2rem auto 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.post-content h1 {
    color: var(--vintage-gold);
    margin-bottom: 1.5rem;
    text-align: center;
}

.post-content .content {
    color: var(--text-dark);
    line-height: 1.8;
}

.post-content .content p {
    margin-bottom: 1.5rem;
}

.post-featured-image {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Список постов */
.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.post-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(183, 149, 11, 0.2);
}

.post-item h3 {
    padding: 1rem;
    margin: 0;
}

.post-item h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-item h3 a:hover {
    color: var(--vintage-gold);
}

.post-item p {
    padding: 0 1rem;
    color: var(--text-light);
    flex-grow: 1;
}

.post-item .read-more {
    display: inline-block;
    margin: 1rem;
    padding: 0.5rem 1rem;
    background: var(--vintage-gold);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.post-item .read-more:hover {
    background: var(--vintage-bright);
    transform: translateY(-2px);
}

/* 404 страница */
.error-404 {
    text-align: center;
    padding: 4rem 1rem;
}

.error-404 h1 {
    font-size: 4rem;
    color: var(--vintage-gold);
    margin-bottom: 1rem;
}

.error-404 p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Адаптивность */
@media (max-width: 480px) {
    .post-list {
        grid-template-columns: 1fr;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .breadcrumbs {
        font-size: 0.75rem;
    }
}

/* WordPress меню */
#top_menus {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

#top_menus .nav-link {
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

#top_menus .nav-link:hover {
    background: var(--vintage-cream);
    color: var(--vintage-gold);
    transform: translateY(-2px);
}

#top_menus .current-menu-item .nav-link {
    color: var(--vintage-gold);
    font-weight: 600;
}

/* Footer меню */
.footer-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.footer-menu a {
    font-size: 0.875rem;
    color: var(--vintage-cream);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-menu a:hover {
    color: var(--vintage-bright);
    text-decoration: underline;
}

/* Bulma CSS Framework классы */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.columns {
    display: flex;
    flex-wrap: wrap;
    margin: -0.75rem;
}

.column {
    flex: 1;
    padding: 0.75rem;
}

.column.is-2 {
    flex: 0 0 16.6666%;
    max-width: 16.6666%;
}

.column.is-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.column.is-4 {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
}

.column.is-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.column.is-8 {
    flex: 0 0 66.6666%;
    max-width: 66.6666%;
}

.is-multiline {
    flex-wrap: wrap;
}

.is-vcentered {
    align-items: center;
}

.has-text-centered {
    text-align: center;
}

.section {
    padding: 3rem 1.5rem;
}

.title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.125;
}

.title.is-2 {
    font-size: 2.5rem;
}

.title.is-4 {
    font-size: 1.5rem;
}

.subtitle {
    font-weight: 400;
    line-height: 1.25;
}

.subtitle.is-4 {
    font-size: 1.5rem;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.image {
    display: block;
    position: relative;
}

.image img {
    display: block;
    height: auto;
    width: 100%;
}

.box {
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1);
    padding: 1.25rem;
}

/* Адаптивность для Bulma классов */
/* Homepage Specific Styles */
.homepage {
    min-height: 100vh;
}

.hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.hero-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

/* Random Posts Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(183, 149, 11, 0.2);
}

.post-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.1);
}

.post-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-content h3 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
}

.post-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content h3 a:hover {
    color: var(--vintage-gold);
}

.post-content p {
    color: var(--text-light);
    flex-grow: 1;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.post-content .read-more {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--vintage-gold);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.post-content .read-more:hover {
    background: var(--vintage-bright);
    transform: translateY(-2px);
}

/* Random Posts Section */
.random-posts {
    background: var(--vintage-cream);
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-section .columns {
        flex-direction: column-reverse;
    }
    
    .hero-content {
        text-align: center;
        margin-top: 2rem;
    }
    
    .column.is-2,
    .column.is-3,
    .column.is-4,
    .column.is-6,
    .column.is-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .post-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1rem 0;
    }
    
    .post-card {
        border-radius: 8px;
    }
    
    .post-content {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}