/*
Theme Name: Veretenyov & Partners
Theme URI: https://xn--d1achcyjfchw0b0fya.net/
Author: Veretenyov & Partners
Author URI: https://xn--d1achcyjfchw0b0fya.net/
Description: Блочная (FSE) тема WordPress на базе лендинга юридической компании «Веретёнов & партнёры». Bootstrap 5, тёмная премиальная палитра, золотые акценты.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: veretenyov-partners
Tags: full-site-editing, block-patterns, block-styles, editor-style, one-column, custom-colors, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ============================================ */
/* ПЕРЕМЕННЫЕ ПАЛИТРЫ                           */
/* ============================================ */
:root {
    --bg-main: #111723;
    --bg-hero: #1b253c;
    --bg-card: #1e293b;
    --bg-about: #24344d;
    --accent-color: #c5a46e;
    --accent-hover: #b3925f;
    --text-main: #f1f5f9;
    --text-muted: #cbd5e1;
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Golos Text', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .section-title, .hero-title {
    font-family: 'Playfair Display', serif;
}

/* Навигация */
.navbar {
    background-color: var(--bg-hero);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}
.navbar-brand img {
    max-height: 42px;
    width: auto;
}
.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: var(--accent-color) !important;
}

/* Hero */
.hero-section {
    background: linear-gradient(90deg,
        #111723 0%,
        rgba(17, 23, 35, 0.9) 25%,
        rgba(17, 23, 35, 0.4) 65%,
        rgba(17, 23, 35, 0.1) 100%),
        url('hero-bg.png') no-repeat;
    background-position: 65% center;
    background-size: cover;
    color: var(--text-main);
    padding: 7rem 0 7.5rem 0;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}
.hero-title span {
    color: var(--accent-color);
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.hero-badge {
    background: rgba(197, 164, 110, 0.07);
    color: var(--accent-color);
    border: 1px solid rgba(197, 164, 110, 0.2);
    padding: 0.6rem 1.4rem;
    border-radius: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(4px);
}
.hero-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}
.hero-image-wrapper:hover {
    transform: translateY(-5px);
}
.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Кнопки */
.btn-premium {
    background-color: var(--accent-color);
    color: #111723;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 0.9rem 2.2rem;
    border-radius: 4px;
    border: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-premium:hover {
    background-color: var(--accent-hover);
    color: #111723;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(197, 164, 110, 0.2);
}
.btn-outline-premium {
    background-color: transparent;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.9rem 2.2rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}
.btn-outline-premium:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Секции */
section {
    padding: 7.5rem 0;
    background-color: var(--bg-main);
}
.section-title {
    font-size: 2.8rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}
.section-title span {
    color: var(--accent-color);
}
.gold-divider {
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
    margin: 0 0 3.5rem 0;
}

/* Карточки принципов */
.principle-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 3rem 2.5rem;
    height: 100%;
    transition: all 0.4s ease;
}
.principle-card:hover {
    border-color: rgba(197, 164, 110, 0.5);
    transform: translateY(-5px);
}
.principle-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-family: 'Golos Text', sans-serif;
}
.principle-card h4 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-main);
}
.principle-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* About / Таймлайн */
.about-section {
    background-color: var(--bg-about);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.lawyer-photo-container {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}
.lawyer-photo-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(36, 52, 77, 0.9) 100%);
    pointer-events: none;
}
.lawyer-photo {
    width: 100%;
    height: auto;
    display: block;
}
.exp-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
    color: var(--text-main);
    text-align: center;
    z-index: 2;
    border-bottom: 2px solid var(--accent-color);
}
.timeline-modern {
    position: relative;
    padding-left: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.timeline-node {
    position: relative;
    padding-bottom: 2rem;
}
.timeline-node:last-child {
    padding-bottom: 0;
}
.timeline-node::before {
    content: '';
    position: absolute;
    left: calc(-2rem - 4.5px);
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 10px rgba(197, 164, 110, 0.6);
}
.timeline-node h6 {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: var(--text-main);
}
.timeline-node p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Практики */
.practice-card {
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    border-radius: 4px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.3s ease;
}
.practice-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}
.practice-card h4 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
}
.practice-card h4 svg {
    color: var(--accent-color);
    flex-shrink: 0;
}
.practice-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}
.other-practices {
    border-top: 1px solid var(--border-color);
    padding-top: 4rem;
    margin-top: 4rem;
}
.practice-tag {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 4px;
    display: inline-block;
    margin: 0.35rem;
    color: var(--text-main);
    transition: border-color 0.3s ease;
}
.practice-tag:hover {
    border-color: var(--accent-color);
}

/* Форма */
.cta-section {
    background-color: var(--bg-hero);
    color: var(--text-main);
    position: relative;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.premium-form-box {
    background: var(--bg-card);
    color: var(--text-main);
    padding: 3.5rem;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    border: 1px solid var(--border-color);
}
.form-control {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 0.85rem 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    color: var(--text-main);
}
.form-control::placeholder {
    color: #8892b0;
}
.form-control:focus {
    background-color: var(--bg-main);
    border-color: var(--accent-color);
    box-shadow: none;
    color: var(--text-main);
}
.form-check-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.form-check-label a {
    color: var(--accent-color);
    text-decoration: underline;
}
.form-check-input {
    background-color: var(--bg-main);
    border-color: var(--border-color);
}
.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Контакты */
.contacts-section {
    background-color: var(--bg-main);
}
.contact-item {
    margin-bottom: 2rem;
}
.contact-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-color);
    margin-bottom: 0.4rem;
    font-weight: 600;
}
.contact-value {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-main);
}
.contact-value a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.contact-value a:hover {
    color: var(--accent-color);
}

/* Подвал */
footer {
    background-color: #0b1018;
    color: var(--text-muted);
    padding: 4rem 0;
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
}
footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
footer a:hover {
    color: var(--accent-color);
}
.legal-text {
    font-size: 0.75rem;
    line-height: 1.6;
    color: #64748b;
}

/* Модалки */
.modal-content {
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}
.modal-header {
    border-bottom: 1px solid var(--border-color);
}
.modal-footer {
    border-top: 1px solid var(--border-color);
}
.btn-close {
    filter: invert(1);
}
.modal-body h6 {
    color: var(--accent-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.modal-body p {
    color: var(--text-muted);
}

/* Cookie-баннер */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1035;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98) 0%, rgba(27, 37, 60, 0.98) 100%);
    border-top: 1px solid var(--accent-color);
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.55);
    padding: 1.35rem 0;
    transform: translateY(110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.45s ease,
                visibility 0s linear 0.45s;
    backdrop-filter: blur(8px);
}
.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.45s ease,
                visibility 0s linear 0s;
}
.cookie-banner__inner {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    align-items: flex-start;
}
@media (min-width: 992px) {
    .cookie-banner__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
    }
}
.cookie-banner__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(197, 164, 110, 0.12);
    border: 1px solid rgba(197, 164, 110, 0.3);
    color: var(--accent-color);
    flex-shrink: 0;
    margin-right: 0.9rem;
}
.cookie-banner__text-wrap {
    display: flex;
    align-items: flex-start;
    flex: 1 1 auto;
}
.cookie-banner__text {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.55;
    margin: 0;
}
.cookie-banner__text strong {
    color: var(--text-main);
    font-weight: 600;
}
.cookie-banner__text a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}
.cookie-banner__text a:hover {
    color: var(--accent-hover);
}
.cookie-banner__actions {
    flex-shrink: 0;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
}
@media (min-width: 992px) {
    .cookie-banner__actions {
        width: auto;
    }
}
.cookie-banner__actions .btn-premium {
    padding: 0.7rem 2.2rem;
    font-size: 0.9rem;
    white-space: nowrap;
    width: 100%;
}
@media (min-width: 992px) {
    .cookie-banner__actions .btn-premium {
        width: auto;
    }
}