/*
Theme Name: Santeh
Theme URI: http://su-qubyrshy.kz
Description: Кастомная тема для сантехнических услуг в Казахстане.
Author: Santeh
Version: 1.0
Text Domain: santeh
*/

:root {
    --deep-blue: #0A1128;
    --water-cyan: #00A8E8;
    --glass-white: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #E1E1E1;
    --text-muted: #A0AEC0;
    --accent-gradient: linear-gradient(135deg, #00A8E8 0%, #007EA7 100%);
    --dark-gradient: linear-gradient(180deg, #0A1128 0%, #050914 100%);
    --font-primary: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--dark-gradient);
    color: var(--text-main);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

/* --- Layout Components --- */

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    backdrop-filter: blur(15px);
    background: rgba(10, 17, 40, 0.8);
    border-bottom: 1px solid var(--glass-border);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    /* Запрещаем перенос названия логотипа */
    margin-right: 2.5rem;
    /* Отступ справа от логотипа */
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    white-space: nowrap;
    /* Запрещаем перенос слов в пунктах меню */
}

.nav-links a:hover {
    color: var(--water-cyan);
}

.emergency-btn {
    background: var(--accent-gradient);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    color: white;
    box-shadow: 0 5px 20px rgba(0, 168, 232, 0.3);
    transition: transform 0.3s ease;
    white-space: nowrap;
    /* Запрещаем перенос слов в кнопке */
    margin-left: 1.5rem;
    /* Отступ слева, чтобы не прилипала к меню */
}

.emergency-btn:hover {
    transform: translateY(-3px);
}

/* --- Language Switcher --- */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lang-switcher li {
    list-style: none;
    display: flex;
    align-items: center;
}

.lang-switcher li:not(:last-child)::after {
    content: "|";
    margin-left: 0.8rem;
    opacity: 0.2;
    font-weight: 300;
}

.lang-switcher a {
    color: var(--text-muted);
    transition: 0.3s;
}

.lang-switcher a:hover {
    color: var(--water-cyan);
}

.lang-switcher .current-lang a {
    color: var(--water-cyan);
    pointer-events: none;
}

footer {
    padding: 4rem 0 2rem;
    background: #050914;
    border-top: 1px solid var(--glass-border);
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: block;
}

/* --- Utils --- */

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.glass-card {
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-section {
    padding-top: 160px;
    padding-bottom: 5rem;
}

.glass-card:hover {
    border-color: var(--water-cyan);
    transform: translateY(-10px);
}

.glass-card.static-card:hover {
    transform: none;
    border-color: var(--glass-border);
}

/* --- Content Styles (for page.php) --- */
.glass-card table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.glass-card table th,
.glass-card table td {
    padding: 1.2rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.glass-card table th {
    background: rgba(0, 168, 232, 0.1);
    color: var(--water-cyan);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.glass-card table tr:last-child td {
    border-bottom: none;
}

.glass-card img {
    max-width: 100%;
    border-radius: 15px;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
}

.btn-outline {
    border: 1px solid var(--water-cyan);
    color: var(--water-cyan);
}

.btn-outline:hover {
    background: var(--water-cyan);
    color: white;
}

/* --- Breadcrumbs --- */

.breadcrumbs {
    padding-top: 140px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumbs .container {
    max-width: 1400px;
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.breadcrumbs-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.breadcrumbs-item:not(:last-child)::after {
    content: "/";
    opacity: 0.4;
}

.breadcrumbs-link {
    transition: 0.3s;
}

.breadcrumbs-link:hover {
    color: var(--water-cyan);
}

.breadcrumbs-item.active {
    color: var(--text-main);
    font-weight: 600;
}

/* --- Navigation & Menu --- */

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: 0.3s;
}

/* --- Responsive Media Queries --- */

@media (max-width: 1366px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav-container {
        gap: 1rem !important;
    }

    .nav-links {
        gap: 1.5rem !important;
    }

    .logo {
        font-size: 1.5rem !important;
    }

    .header-actions {
        gap: 1rem !important;
    }
}

@media (max-width: 1024px) {
    header {
        padding: 1rem 0;
    }

    .burger-menu {
        display: flex;
    }

    .nav-container {
        display: none !important;
    }

    .emergency-btn {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--deep-blue);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    /* В мобилке показываем все пункты */
    .nav-links li {
        display: block !important;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .section-padding {
        padding: 15px 0 0;
    }

    .contact-grid,
    .footer-grid,
    .review-gallery {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 768px) {
    .inline-switcher {
        display: none;
    }
}

/* --- Blog Styles --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.blog-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blog-card-media {
    width: 100%;
    height: 230px;
    display: block;
    margin-top: 24px;
    position: relative;
}

.blog-card-img,
.blog-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
}

.blog-placeholder {
    background: rgba(0, 168, 232, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.blog-card-content {
    padding: 2.5rem;
}

.tag {
    background: rgba(0, 168, 232, 0.1);
    color: var(--water-cyan);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.2rem;
}

.read-more {
    color: var(--water-cyan);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.3s ease;
    display: inline-block;
}

.read-more:hover {
    border-bottom-color: var(--water-cyan);
}

/* --- Pagination --- */
.pagination-wrapper {
    margin-top: 5rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.pagination .page-numbers {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-white);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: 0.3s;
    font-weight: 600;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(0, 168, 232, 0.3);
}

.pagination .prev,
.pagination .next {
    width: auto;
    padding: 0 1.5rem;
}

/* Burger Animation */
.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -7px);
}

/* --- City Switcher --- */
.city-switcher {
    position: relative;
    cursor: pointer;
}

.city-current {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: 0.3s;
    white-space: nowrap;
    /* Запрещаем перенос названия города */
}

.city-switcher:hover .city-current {
    color: var(--water-cyan);
}

.city-list {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background: var(--deep-blue);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
}

.city-switcher:hover .city-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.city-list a {
    display: block;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text-main);
}

.city-list a:hover {
    background: rgba(0, 168, 232, 0.1);
    color: var(--water-cyan);
}

.container {
    max-width: 1600px;
    /* Еще больше места для всех элементов */
    margin: 0 auto;
    padding: 0 2rem;
}

.breadcrumbs .container {
    max-width: 1400px;
}

.inline-switcher {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.3rem 0.8rem;
    /* Более компактный отступ */
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    font-size: 0.8rem;
    /* Немного уменьшили шрифт */
}

/* --- More Dropdown --- */
.more-dropdown {
    display: none;
    position: relative;
    margin-left: 1.5rem;
    cursor: pointer;
}

.more-current {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: 0.3s;
    font-weight: 600;
}

.more-dropdown:hover .more-current {
    color: var(--water-cyan);
}

.more-list {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 160px;
    background: var(--deep-blue);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
}

.more-dropdown:hover .more-list {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.more-list a {
    display: block;
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
    color: var(--text-main);
}

.more-list a:hover {
    background: rgba(0, 168, 232, 0.1);
    color: var(--water-cyan);
}

/* Masters Page */
.masters-title {
    font-size: 3.5rem;
    margin-bottom: 4rem;
}

.masters-title .city-accent {
    color: var(--water-cyan);
}

.masters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.master-card {
    padding: 2.5rem 1.5rem;
}

.master-photo-wrapper {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--water-cyan);
}

.master-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.master-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.master-name {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.master-position {
    color: var(--water-cyan);
    font-weight: 600;
    margin-bottom: 1rem;
}

.master-bio {
    opacity: 0.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.master-experience {
    background: rgba(0, 242, 255, 0.1);
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.master-experience-label {
    opacity: 0.8;
}

.master-experience-value {
    color: var(--water-cyan);
}

.no-masters-found {
    grid-column: 1/-1;
    text-align: center;
    padding: 3rem;
    opacity: 0.5;
}

/* Pricing Section & Calculator */
.pricing-section {
    padding-bottom: 5rem;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--glass-white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.price-table th,
.price-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
    transition: 0.3s ease;
}

.price-table tbody tr:hover td {
    background: rgba(0, 168, 232, 0.2) !important;
}

.price-table th {
    background: rgba(0, 168, 232, 0.1);
    color: var(--water-cyan);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.calculator-box {
    background: var(--glass-white);
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid var(--water-cyan);
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.calc-input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
}

.calc-input:focus {
    outline: none;
    border-color: var(--water-cyan);
}

.calc-result {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--water-cyan);
    margin: 1.5rem 0;
    text-shadow: 0 0 20px rgba(0, 168, 232, 0.3);
}

@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }

    .pricing-section .container {
        padding: 0 1.2rem;
    }

    .price-table,
    .price-table thead,
    .price-table tbody,
    .price-table tr,
    .price-table td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }

    .price-table {
        background: transparent !important;
        border: none !important;
        margin: 1rem 0;
    }

    .price-table thead {
        display: none;
    }

    .price-table tr {
        display: block;
        background: var(--glass-white);
        border: 1px solid var(--glass-border);
        border-radius: 15px;
        margin-bottom: 1.5rem;
        padding: 1rem;
    }

    .price-table td {
        display: flex;
        justify-content: space-between;
        padding: 0.8rem 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .price-table td:last-child {
        border-bottom: none;
    }

    .price-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--water-cyan);
    }
}

/* --- Services Page --- */

.services-title {
    font-size: 3.5rem;
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(370px, 1fr));
    gap: 2rem;
}

.service-card h2 {
    margin-bottom: 1rem;
}

.service-content {
    opacity: 0.7;
    margin: 1rem 0;
}

.service-features {
    opacity: 0.8;
    font-size: 0.9rem;
}

.service-features li {
    margin-bottom: 0.5rem;
}

.service-card.service-card--emergency {
    background: rgba(255, 68, 68, 0.05);
    border-color: rgba(255, 68, 68, 0.2);
}

.service-card--emergency:hover {
    border-color: #ff4444;
}

.btn-sos {
    background: #ff4444 !important;
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
}

.btn-sos:hover {
    background: #cc0000 !important;
}

.service-icon-thumb {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.service-icon-svg {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    color: var(--water-cyan);
    fill: currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-emoji {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1;
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .services-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
}