/*
Theme Name: Vershinina Theme
Theme URI:  http://yurist-vershinina.ru
Author:     vershinina
Description: A custom theme built from static HTML/CSS
Version:    1.1
*/

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

:root {
    --gold: #F7A73A;
    --gold-light: #D4B062;
    --dark: #0C0C0C;
    --dark2: #222;
    --dark3: #2a2a2a;
    --bg-light: #F5F2EE;
    --bg-cream: #EDE8E0;
    --text-main: #1a1a1a;
    --text-muted: #555;
    --text-light: #888;
    --white: #fff;
}
    

html { scroll-behavior: smooth; }

section[id], footer[id] {
    scroll-margin-top: 135px;
}

body {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    color: var(--text-main);
    background: var(--white);
    line-height: 1.6;
    font-size: 15px;
}

/* ── HEADER ── */
.header {
    background: var(--dark);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--gold);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-badge {
    position: relative;
    width: 78px;
    height: 78px;
    border: 2px solid var(--gold);
    border-radius: 2px;
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 42px;
    font-weight: 300;
    flex-shrink: 0;
}

.logo-badge span:nth-child(1) {
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 42px;
}

.logo-badge span:nth-child(2) {
    position: absolute;
    top: 11px;
    right: 10px;
    font-size: 42px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: 'Playfair Display', serif;
    color: var(--white);
    font-size: 25px;
    font-weight: 500;
    letter-spacing: 4.75px;
    text-transform: uppercase;
    line-height: 1.33;
}

.logo-name span {
    position: relative;
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 5.15px;
    color: var(--gold);
    margin-bottom: 10px;
}

.logo-name span::after {
    position: absolute;
    bottom: -6px;
    left: 0;
    width: calc(100% - 4px);
    height: 1px;
    background-color: var(--gold);
    content: '';
}

.logo-title {
    color: var(--white);
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 1.66px;
    text-transform: uppercase;
}

nav {
    display: flex;
    gap: 54px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

nav a:hover { color: var(--gold); }

/* ── HERO ── */
.hero {
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 1.3fr;
    gap: 0;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 46px;
    font-weight: 500;
    color: var(--white);
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero-desc {
    color: var(--white);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 14px;
    max-width: 510px;
}

.hero-badges {
    display: flex;
    gap: 32px;
    margin-top: 50px;
}

.hero-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 160px;
    text-align: center;
}

.hero-badge img, .hero-badge svg {
    height: 50px;
}

.hero-badge span {
    display: block;
    margin-top: 4px;
    color: var(--white);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 720px;
    background-color: var(--dark);
}

.hero-image {
    position: relative;
    height: 100%;
}

.hero-image::before {
    content: '';
    position: absolute;
    right: -308px;
    top: 0;
    width: 500px;
    height: 100%;
    background: linear-gradient(to left, var(--dark) 0%, transparent 10%);
    z-index: 1;
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--dark) 0%, transparent 50%);
    z-index: 1;
}

.hero-image img,
.hero-image .hero-photo {
    position: absolute;
    width: 1200px;
    top: -50px;
    left: -250px;
    display: block;
}

/* ── FEATURES ── */
.features {
    background: var(--bg-light);
}

.features-inner {
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.feature {
    padding: 48px 64px;
    display: flex;
    flex-direction: column;

}

.feature:not(:last-child) {
    border-right: 1px solid #dcd7d0;
}

.feature-icon {
    margin-bottom: 6px;
}

.feature-icon img, .feature-icon svg {
    height: 54px;
}

.feature h3 {
    font-family: 'Playfair Display', serif;
    font-size: 21px;
    font-weight: 400;
    color: var(--text-muted);
}

.feature p {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 16px;
}

/* ── KOMY ── */
.komy {
    background: var(--white);
    padding: 42px 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 32px;
    color: var(--text-main);
}

.komy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 4px;
    overflow: hidden;
}

.komy-card {
    padding: 40px 44px;
    display: flex;
    gap: 32px;
}

.komy-card.dark {
    padding-top: 65px;
    background: var(--dark);
    color: var(--white);
}

.komy-card.light {
    background: var(--bg-cream);
    color: var(--text-main);
}

.komy-card-content {
    display: flex;
    flex-direction: column;
}

.komy-card img, .komy-card svg {
    height: 64px;
}

.komy-card h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.komy-card.dark h3 { color: var(--white); }
.komy-card.light h3 { color: var(--text-main); }

.komy-card ul {
    margin-top: 12px;
    list-style: none;
    display: flex;
    flex-direction: column;
    padding-left: 4px;
    gap: 8px;
}

.komy-card ul li {
    position: relative;
    font-size: 16px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 500;
    padding-left: 10px;
}

.komy-card ul li::before {
    position: absolute;
    content: '•';
    color: var(--gold);
    font-size: 24px;
    top: -6px;
    left: -5px;
}

.komy-card.dark ul li { color: #ccc; }
.komy-card.light ul li { color: var(--text-muted); }

/* ── SERVICES ── */
.services {
    background: var(--bg-light);
    padding-top: 42px;
    padding-bottom: 54px;
}

.services-grid {
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.service-item {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-item:not(:last-child) {
    border-right: 1px solid #dcd7d0;
}

.service-item img, .service-item svg { fill: var(--gold); width: 64px; height: 64px; }

.service-item span {
    display: block;
    margin-top: 16px;
    font-size: 16px;
    color: var(--text-main);
    font-weight: 500;
    line-height: 1.33;
}

/* ── PRACTICE ── */
.practice {
    background: var(--dark);
    padding-top: 42px;
    padding-bottom: 42px;
    overflow: hidden;
}

.practice .section-title {
    color: var(--white);
    margin-bottom: 36px;
}

.practice-carousel {
    position: relative;
}

.practice-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
}

.practice-grid::-webkit-scrollbar {
    display: none;
}

.practice-card {
    min-width: 33.333%;
    flex: 0 0 33.333%;
    padding: 0 36px;
    display: flex;
    align-items: center;
    gap: 24px;
    scroll-snap-align: start;
}

.practice-card img,
.practice-card svg {
    fill: var(--gold);
    min-width: 56px;
    max-width: 56px;
}

.practice-card-header {
    display: flex;
    flex-direction: column;
}

.practice-num {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 400;
    color: var(--gold);
    text-transform: uppercase;
}

.practice-num span {
    color: var(--white);
}

.practice-card p {
    margin-top: 2px;
    color: var(--white);
    font-size: 16px;
}

.practice-link {
    margin-top: 16px;
    color: var(--gold);
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}

.practice-link span {
    position: relative;
    top: 2px;
    left: 2px;
    font-size: 20px;
}

.practice-link:hover {
    opacity: 0.75;
}

/* ARROWS */

.practice-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid #444;
    background: rgba(255,255,255,0.06);
    color: white;
    cursor: pointer;
    z-index: 5;
    transition: 0.2s;
    font-size: 22px;
}

.practice-arrow:hover {
    background: rgba(255,255,255,0.14);
}

.practice-arrow-prev {
    left: -22px;
}

.practice-arrow-next {
    right: -22px;
}

/* DOTS */

.practice-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.practice-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #555;
    transition: 0.2s;
    cursor: pointer;
}

.practice-dot.active {
    background: var(--gold);
}

/* TABLET */

@media (max-width: 1024px) {
    .practice-card {
        min-width: 50%;
        flex: 0 0 50%;
    }
}

/* MOBILE */

@media (max-width: 768px) {

    .practice {
        padding: 40px 0;
    }

    .practice-card {
        min-width: 100%;
        flex: 0 0 100%;
        border-right: none;
        padding: 0 20px;
        text-align: center;
        flex-direction: column;
    }

    .practice-link {
        justify-content: center;
    }

    .practice-arrow {
        display: none;
    }
}

/* ── CTA ── */
.cta {
    background: var(--dark);
    border-top: 1px solid #333;
}

.cta-inner {
    padding: 48px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.cta-icon { color: var(--gold); flex-shrink: 0; }

.cta-text h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.3;
}

.cta-text p {
    color: #999;
    font-size: 13px;
    margin-top: 4px;
}

/* ── FOOTER ── */
footer {
    background: var(--dark);
    border-top: 1px solid #333;
    padding: 40px 0;
}

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

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contacts h4 {
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.footer-contacts a {
    display: flex;
    align-items: start;
    gap: 6px;
    color: #acacac;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-contacts a:not(:last-child) {
    margin-bottom: 6px;
}

.footer-contacts a:hover { color: var(--gold); }
.footer-contacts a svg {
    position: relative;
    top: 4px;
    color: var(--gold);
}

/* ── DIVIDER ── */
hr.gold-line {
    border: none;
    border-top: 1px solid var(--gold);
    opacity: 0.3;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-article {
    padding: 50px 0;
}

.article-title {
    text-align: center;
}

.article-content {
    font-size: 18px;
}

.article-header {
    margin-bottom: 20px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .container { max-width: 960px; }
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .feature { padding: 32px; }
}

@media (max-width: 768px) {
    .page-article {
        padding: 30px 0;
    }
    .header { padding: 14px 0; }
    .header-inner { flex-direction: column; gap: 20px; }

    nav { gap: 24px; flex-wrap: wrap; justify-content: center; }
    nav a { font-size: 14px; }

    .logo-badge { width: 78px; height: 78px; font-size: 32px; }
    .logo-badge span:nth-child(1) { top: -8px; left: 8px; font-size: 44px; }
    .logo-badge span:nth-child(2) { top: 8px; right: 8px; font-size: 44px; }
    .logo-name { font-size: 27px; letter-spacing: 3px; }
    .logo-name span { font-size: 14px; letter-spacing: 3px; margin-bottom: 12px; }

    .hero-inner { grid-template-columns: 1fr; gap: 0; }
    .hero-content { padding: 40px 0; text-align: center; }
    .hero-title { font-size: 32px; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-badges { justify-content: center; flex-wrap: nowrap; margin-top: 24px; }
    .hero-badge {flex: 1}
    .hero-badge img { width: 42px }
    .hero-badge span { font-size: 12px }
    .hero-image { display: none; }

    .features-inner { grid-template-columns: 1fr; }
    .feature { border-right: none !important; border-bottom: 1px solid #dcd7d0; padding: 40px 0; align-items: center; text-align: center; }
    .feature:last-child { border-bottom: none; }

    .komy { padding: 40px 0; }
    .komy-grid { grid-template-columns: 1fr; }
    .komy-card { padding: 32px 20px; flex-direction: column; align-items: center; text-align: center; }
    .komy-card ul { align-items: center; }

    .services { padding: 40px 0; }
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .service-item { border-right: none !important; padding: 10px; }

    .practice { padding: 40px 0; }
    .practice-grid { grid-template-columns: 1fr; gap: 40px; }
    .practice-card { border-right: none !important; border-bottom: 1px solid #393837; padding-bottom: 30px; flex-direction: column; text-align: center; }
    .practice-card { border-bottom: none; }
    .practice-link {justify-content: center}

    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-logo { align-items: center; }
    .footer-contacts a { justify-content: center; }

    .section-title { font-size: 22px; }

    .komy-card.dark {
        padding-top: 44px;
    }
}

@media (max-width: 480px) {
    nav { gap: 15px; }
    nav a { font-size: 13px; }
}