/*
Theme Name: YugLink
Theme URI: https://yuglink.site
Author: YugLink Team
Author URI: https://yuglink.site
Description: Тема для интернет-провайдера Юг-Линк (Краснодар, Геленджик)
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yuglink
Tags: custom-logo, custom-menu, featured-images, translation-ready
*/

/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
    --yl-dark: #0D1B3E;
    --yl-blue: #4BA8D9;
    --yl-blue-light: #F0F6FB;
    --yl-white: #FFFFFF;
    --yl-text: #1A2332;
    --yl-muted: #6B7A8C;
    --yl-border: #D9E4EE;
    --yl-radius: 12px;
    --yl-shadow: 0 10px 40px rgba(13, 27, 62, 0.08);
    --yl-shadow-hover: 0 20px 60px rgba(13, 27, 62, 0.15);
    --font-main: 'Montserrat', 'Inter', system-ui, sans-serif;
}

/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--yl-text);
    background: var(--yl-white);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    color: var(--yl-dark);
    margin: 0 0 16px;
    line-height: 1.15;
}

a {
    color: var(--yl-blue);
    text-decoration: none;
    transition: color .2s;
}

a:hover {
    color: var(--yl-dark);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== КНОПКИ ===== */
.btn-yl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .25s ease;
    font-family: var(--font-main);
    text-decoration: none;
}

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

.btn-yl-primary:hover {
    background: #162a5a;
    color: var(--yl-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13,27,62,.25);
}

.btn-yl-outline {
    background: transparent;
    color: var(--yl-dark);
    border-color: var(--yl-dark);
}

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

/* ===== HEADER ===== */
.site-header {
    background: var(--yl-white);
    border-bottom: 1px solid var(--yl-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 24px;
}

/* ===== ЛОГОТИП ===== */
.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.logo img,
.logo .logo-svg {
    display: block;
    height: 32px;
    width: auto;
    max-width: 180px;
}

.logo .custom-logo-link img {
    height: 40px;
    width: auto;
    max-width: 200px;
}

/* ===== ПЕРЕКЛЮЧАТЕЛЬ ГОРОДА ===== */
.city-selector {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--yl-blue);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font-main);
    padding: 0;
}

.city-selector:hover {
    color: var(--yl-dark);
}

/* ===== НАВИГАЦИЯ ===== */
.nav-primary {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-primary a {
    color: var(--yl-dark);
    font-weight: 600;
    font-size: 15px;
    text-transform: lowercase;
    transition: color .2s;
}

.nav-primary a:hover {
    color: var(--yl-blue);
}

/* ===== КНОПКА ЛИЧНОГО КАБИНЕТА ===== */
.btn-cabinet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 2px solid var(--yl-dark);
    color: var(--yl-dark);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-decoration: none;
    transition: all .2s ease;
    background: transparent;
}

.btn-cabinet:hover {
    background: var(--yl-dark);
    color: var(--yl-white);
}

.btn-cabinet svg {
    flex-shrink: 0;
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
.navbar-toggler {
    display: none;
    background: none;
    border: 1px solid var(--yl-border);
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===== HERO ===== */
.hero {
    background: var(--yl-blue-light);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.1;
    letter-spacing: -1px;
    text-transform: uppercase;
    color: var(--yl-dark);
    margin-bottom: 24px;
}

.hero h1 .accent {
    color: var(--yl-blue);
}

.hero .lead {
    font-size: 18px;
    color: var(--yl-muted);
    margin: 24px 0 32px;
    max-width: 480px;
}

.hero-illustration {
    position: relative;
    width: 100%;
    height: 400px;
}

.hero-illustration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== БЛОК КАТЕГОРИЙ ===== */
.section-categories {
    padding: 80px 0;
    background: var(--yl-white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    background: var(--yl-white);
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(13,27,62,.06);
    transition: all .3s ease;
    border: 1px solid var(--yl-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(13,27,62,.12);
    border-color: var(--yl-blue);
}

.category-card:hover h3 {
    color: var(--yl-blue);
}

.category-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    background: var(--yl-blue-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 -3px 0 rgba(13,27,62,.05);
}

.category-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--yl-dark);
}

.category-card h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: var(--yl-dark);
    transition: color .2s;
}

.category-card p {
    font-size: 13px;
    color: var(--yl-muted);
    margin: 0;
    line-height: 1.4;
}

/* ===== СЕКЦИЯ "ПОДКЛЮЧАЕМ ТАМ" ===== */
.section-connect {
    background: var(--yl-blue-light);
    padding: 100px 0;
}

.connect-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.connect-image {
    border-radius: var(--yl-radius);
    overflow: hidden;
    box-shadow: var(--yl-shadow);
}

.connect-image img {
    width: 100%;
    height: auto;
    display: block;
}

.connect-content h2 {
    font-size: 40px;
    text-transform: uppercase;
    color: var(--yl-blue);
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.connect-content p {
    font-size: 17px;
    color: var(--yl-text);
    line-height: 1.6;
    margin-top: 24px;
    max-width: 460px;
}

/* ===== ФОРМА ЗАЯВКИ ===== */
.section-form {
    padding: 80px 0 120px;
    background: var(--yl-blue-light);
}

.form-card {
    background: var(--yl-white);
    border-radius: 20px;
    padding: 48px;
    max-width: 720px;
    margin: 0 auto;
    box-shadow: var(--yl-shadow);
}

.form-card h2 {
    text-align: center;
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 32px;
}

.form-step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 15px;
}

.form-step .step-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: var(--yl-blue);
}

.step-dot.inactive {
    background: var(--yl-border);
}

.step-line {
    width: 32px;
    height: 2px;
    background: var(--yl-border);
}

.address-form {
    display: flex;
    gap: 12px;
}

.address-form input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--yl-border);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-main);
    transition: border-color .2s;
}

.address-form input:focus {
    outline: none;
    border-color: var(--yl-blue);
}

.address-form button {
    padding: 16px 36px;
    white-space: nowrap;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--yl-dark);
    color: rgba(255,255,255,.75);
    padding: 60px 0 24px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 1fr 1.2fr 1.3fr;
    gap: 32px;
    margin-bottom: 40px;
}

.footer-col h5 {
    color: var(--yl-white);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: none;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255,255,255,.75);
    font-size: 14px;
    transition: color .2s;
}

.footer-col a:hover {
    color: var(--yl-blue);
}

.footer-col .contact-block {
    margin-bottom: 16px;
}

.footer-col .contact-block strong {
    display: block;
    color: var(--yl-white);
    font-size: 13px;
    margin-bottom: 4px;
}

.footer-col .contact-block a {
    color: var(--yl-blue);
    font-size: 14px;
}

.socials {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.socials a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.socials a:hover {
    background: var(--yl-blue);
}

.socials svg {
    width: 20px;
    height: 20px;
    fill: var(--yl-white);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 42px;
    }
    
    .hero-grid,
    .connect-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Скрываем иллюстрацию в Hero на мобильных */
    .hero-illustration {
        display: none;
    }
	.nav-primary {
        display: none;
    }
    
    .city-selector {
        display: none !important;
    }
    
    .hero {
        padding: 60px 0 80px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-illustration {
        height: 300px;
    }
    
    .connect-content h2 {
        font-size: 28px;
    }
    
    .section-connect {
        padding: 60px 0;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .section-categories {
        padding: 60px 0;
    }
    
    .category-card {
        padding: 24px 16px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .address-form {
        flex-direction: column;
    }
    
    .form-card {
        padding: 28px 20px;
    }
    
    .logo img,
    .logo .logo-svg {
        height: 26px;
        max-width: 140px;
    }
    
/* ===== КНОПКА ЛИЧНОГО КАБИНЕТА ===== */
.btn-cabinet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 2px solid var(--yl-dark);
    color: var(--yl-dark);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-decoration: none;
    transition: all .2s ease;
    background: transparent;
}

.btn-cabinet:hover {
    background: var(--yl-dark);
    color: var(--yl-white);
}

.btn-cabinet svg {
    flex-shrink: 0;
}

/* На десктопе показываем текст */
.btn-cabinet-text {
    display: inline;
}

/* На мобильных скрываем текст, оставляем только иконку */
@media (max-width: 768px) {
    .btn-cabinet {
        padding: 8px;
    }
    
    .btn-cabinet-text {
        display: none;
    }
}

}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .connect-content h2 {
        font-size: 24px;
    }
    
    .form-card h2 {
        font-size: 22px;
    }
}

/* ===== FOOTER BOTTOM — ЦЕНТРИРОВАНИЕ ===== */
.site-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1) !important;
    padding-top: 24px !important;
    margin-top: 20px;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 13px;
    color: rgba(255,255,255,.5);
    width: 100%;
}

.site-footer .footer-bottom-copy {
    margin: 0 0 8px 0;
    color: rgba(255,255,255,.5);
    font-size: 13px;
}

.site-footer .footer-bottom-policy {
    color: rgba(255,255,255,.7);
    font-size: 13px;
    text-decoration: none;
    transition: color .2s;
}

.site-footer .footer-bottom-policy:hover {
    color: var(--yl-blue);
}

@media (max-width: 768px) {
    .site-footer .footer-bottom {
        font-size: 12px;
        padding: 20px 12px !important;
    }
    .site-footer .footer-bottom-copy,
    .site-footer .footer-bottom-policy {
        font-size: 12px;
    }
}