* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f5f5f5;
    color: #333;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

header {
    background-color: #0f0f0f;
    color: white;
    padding: 2rem;
    text-align: center;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    padding: 2rem;
}

h2 {
    color: #0f0f0f;
    margin-bottom: 1.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    text-align: center;
}

.contact-item h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.contact-item a {
    color: #333;
    text-decoration: none;
}

.lawyer-info {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.lawyer-photo-container {
    position: relative;
    height: fit-content;
}

.lawyer-photo {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: block;
}

.lawyer-text-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.lawyer-text-column {
    background-color: #f8f9fa;
    padding: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.info-block {
    margin-bottom: 1rem;
}

.info-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    gap: 0.8rem;
}

.info-header h3 {
    color: #0f0f0f;
    margin: 0;
    font-size: 1rem;
    white-space: nowrap;
    min-width: max-content;
}

.line {
    height: 1px;
    background: linear-gradient(to right, #0f0f0f 20%, transparent);
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 20px;
}

.lawyer-text p {
    margin-bottom: 0;
    text-align: justify;
    line-height: 1.4;
    color: #333;
    font-size: 0.95rem;
}

.lawyer-text ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.lawyer-text li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.4rem;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
}

.lawyer-text li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #0f0f0f;
}

.lawyer-text li:last-child {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #0f0f0f;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

button {
    background-color: #0f0f0f;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

button:hover {
    background-color: #1a1a1a;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #0f0f0f;
    color: white;
    position: relative;
    margin-top: 2rem;
}

@media (max-width: 1200px) {
    .lawyer-text-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    main {
        padding: 1rem;
    }

    section {
        padding: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-item {
        padding: 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .lawyer-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .lawyer-photo-container {
        position: relative;
        max-width: 300px;
        margin: 0 auto;
        height: auto;
    }

    .lawyer-photo {
        width: 100%;
        height: auto;
        margin-bottom: 1rem;
    }

    .lawyer-text-column {
        padding: 1rem;
    }

    .info-header h3 {
        font-size: 0.9rem;
    }

    .lawyer-text p,
    .lawyer-text li {
        font-size: 0.9rem;
    }

    button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .services-description {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    input, textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .copy-click::after {
        display: none;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-item {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.service-item h3 {
    color: #0f0f0f;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.service-item ul {
    list-style-position: inside;
    padding-left: 1rem;
}

.service-item li {
    margin-bottom: 0.5rem;
    color: #495057;
}

.copy-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0f0f0f;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    display: none;
    z-index: 1000;
}

.copy-click {
    cursor: pointer;
    position: relative;
}

.copy-click:hover {
    color: #0f0f0f;
}

.copy-click::after {
    content: 'Клікніть щоб скопіювати';
    position: absolute;
    left: 110%;
    top: 50%;
    transform: translateY(-50%);
    background-color: #0f0f0f;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-click:hover::after {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .copy-click::after {
        left: 50%;
        bottom: 100%;
        top: auto;
        transform: translateX(-50%);
    }
}

.services-description {
    text-align: center;
    color: #0f0f0f;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: bold;
} 