:root {
    --primary: #388e3c;
    --text: #1b1b1b;
    --muted: #4a4a4a;
    --bg: #f5f5f5;
    --card: #ffffff;
}

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

body {
    margin: 0;
    font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: #ffffff;
    line-height: 1.6;
}

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

.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: transparent;
    box-shadow: none;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
}

.logo img {
    height: 56px;
    width: auto;
    display: block;
}

.nav ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.nav a {
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
    color: #ffffff;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
    color: #e8f5e9;
    border-color: #e8f5e9;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: transparent;
    border: 1px solid #ffffff;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    color: #ffffff;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: #ffffff;
    display: block;
}

.hero {
    position: relative;
    min-height: 70vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #ffffff;
}

.page-hero {
    min-height: 45vh;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url("./banner.webp") center/cover no-repeat;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45));
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 8rem 0;
}

.hero-text h1 {
    margin: 0;
    font-family: 'Barlow', 'Open Sans', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-text h3 {
    margin: 0.5rem 0 0;
    font-family: 'Barlow', 'Open Sans', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.services {
    padding: 4rem 0 3rem;
    background: var(--bg);
}

.section-title {
    text-align: center;
    margin: 0 0 2.5rem;
    font-family: 'Barlow', 'Open Sans', sans-serif;
    letter-spacing: 0.12em;
    font-size: 1.25rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--card);
    padding: 1.75rem 1.5rem;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover,
.service-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.09);
}

.service-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
}

.service-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
}

.content-section {
    padding: 4rem 0;
    background: #ffffff;
}

.content-section.dark {
    background: #1f1e1e;
    color: #ffffff;
}

.content-section.dark .section-title {
    color: #ffffff;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--card);
    padding: 1.25rem 1.1rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

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

.info-item h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
}

.info-item p {
    margin: 0;
    color: var(--muted);
}

.divider {
    margin: 3rem auto;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    width: min(240px, 80%);
}

.text-block {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: var(--muted);
}

.specialist {
    color: #ffffff;
}

.specialist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    align-items: center;
}

.portrait-wrapper {
    display: flex;
    justify-content: center;
}

.portrait {
    width: 100%;
    max-width: 360px;
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
    object-fit: cover;
}

.specialist-copy h3 {
    margin: 0 0 0.4rem;
    font-size: 1.35rem;
}

.specialist-copy h4 {
    margin: 0 0 0.6rem;
    font-weight: 600;
}

.specialist-copy p {
    margin: 0;
    color: #dcdcdc;
}

.contact-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.03);
    width: 100%;
    max-width: 520px;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--text);
    font-size: 0.96rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.9rem;
    border-radius: 8px;
    border: 1px solid #dfe4e8;
    font: inherit;
    background: #f9fafb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56, 142, 60, 0.15);
    background: #ffffff;
}

.primary-btn {
    border: none;
    background: var(--primary);
    color: #ffffff;
    padding: 0.95rem 1.25rem;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(56, 142, 60, 0.35);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 860px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: transparent;
    padding: 0.35rem 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.contact-card h3 {
    word-break: break-word;
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 700;
}

.contact-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.contact-card .info-icon {
    width: 48px;
    height: 48px;
}

.site-footer {
    background: #ffffff;
    padding: 1.5rem 0;
    border-top: 1px solid #e8e8e8;
    font-size: 0.95rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
    color: var(--muted);
}

.footer-meta a {
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 720px) {
    .nav {
        position: absolute;
        inset: 100% 0 auto;
        background: #0d0d0d;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

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

    .nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem 1rem 1rem;
        gap: 0.85rem;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
}
