/* === Design tokens === */
:root {
    --primary: #C41E24;
    --primary-dark: #A0181D;
    --primary-light: #FCE8E9;
    --accent: #C41E24;
    --accent-light: #FEF2F2;
    --text: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-muted: #7A7A7A;
    --bg: #FFFFFF;
    --bg-soft: #FAFAFA;
    --bg-warm: #FFFDFD;
    --border: #F0E6E6;
    --shadow-sm: 0 2px 8px rgba(26, 26, 26, 0.05);
    --shadow-md: 0 8px 28px rgba(26, 26, 26, 0.08);
    --shadow-lg: 0 18px 48px rgba(26, 26, 26, 0.12);
    --radius: 10px;
    --radius-lg: 16px;
    --container: 1160px;
    --header-h: 76px;
    --font: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.75;
    padding-top: var(--header-h);
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(196, 30, 36, 0.22);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(196, 30, 36, 0.28);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
}

.btn-block {
    width: 100%;
}

/* === Header === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.header.scrolled {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
    transition: color 0.2s;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s;
}

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

.nav a:hover::after {
    width: 100%;
}

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

.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #fff;
}

.lang-switch button {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.lang-switch button:hover {
    color: var(--primary);
}

.lang-switch button.active {
    background: var(--primary);
    color: #fff;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 36px;
    height: 36px;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* === Sections === */
.section {
    padding: 64px 0;
}

.section-header {
    margin-bottom: 32px;
}

.section-header.center {
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(28px, 3.5vw, 40px);
    line-height: 1.22;
    font-weight: 700;
    max-width: 760px;
}

.section-header.center .section-title {
    margin: 0 auto;
}

/* === About === */
.about {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 14px;
}

.about-list {
    margin-top: 20px;
}

.about-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    color: var(--text);
    font-weight: 500;
}

.about-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.about-list li a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.about-list li a:hover {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Anchor offset for fixed header */
section[id],
.service-block[id] {
    scroll-margin-top: calc(var(--header-h) + 24px);
}

.about-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary);
}

.about-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.about-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-offices {
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.about-offices strong {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.about-offices p {
    margin: 0;
    color: var(--text);
    font-weight: 500;
}

/* === Services === */
.services {
    background: var(--bg);
}

.service-block {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: start;
    padding: 32px;
    margin-bottom: 20px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-block:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.service-block.alt {
    background: var(--bg-warm);
}

.service-icon svg {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.service-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 6px;
}

.service-content h3 {
    font-size: 25px;
    margin-bottom: 12px;
}

.service-content > p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 16px;
    max-width: 760px;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 32px;
}

.service-list li {
    position: relative;
    padding-left: 22px;
    color: var(--text-secondary);
    font-size: 15px;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: 700;
}

/* === Contact === */
.contact {
    background: #111;
    color: #fff;
}

.contact .section-label {
    color: #FF999D;
}

.contact .section-title {
    color: #fff;
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-content p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
    margin-bottom: 24px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    transition: color 0.2s;
}

.contact-row:hover {
    color: #fff;
}

.contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.contact-form {
    background: #fff;
    color: var(--text);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(196, 30, 36, 0.12);
}

/* === Footer === */
.footer {
    background: #0A0A0A;
    color: rgba(255, 255, 255, 0.65);
    padding: 56px 0 32px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-brand .logo {
    margin-bottom: 14px;
}

.footer-brand .logo-img {
    filter: brightness(1.05);
}

.footer-brand p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.55);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 32px;
    justify-content: flex-end;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copy {
    grid-column: 1 / -1;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .about-grid,
    .contact-inner {
        grid-template-columns: 1fr;
    }

    .service-list {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 68px;
    }

    .logo-img {
        height: 34px;
    }

    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .menu-toggle {
        display: flex;
    }

    .section {
        padding: 48px 0;
    }

    .service-block {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .service-content h3 {
        font-size: 22px;
    }

    .contact-form {
        padding: 28px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
