* {
    box-sizing: border-box;
}
:root {
    --egyptian-purple: #53338b;
    --light-lavender: #eae4fd;
    --coral-pink: #f8565d;
    --light-gray: #c4c4c4;
    --lavender: #eae4fd;
    --bg-primary: #f6f7fb;
    --bg-white: #fff;
    --bg-header: #eae4fd;
    --text-primary: #222;
    --text-black: #000;
    --text-muted: #00000080;
    --text-secondary: #444;
    --text-light: #777;
    --text-gray: #757575;
    --text-purple: #472483;
    --border-light: #e6e6e6;
    --border-table: #eee;
    --btn-primary: #5b4bdb;
    --btn-hover: #4a3cc7;
    --btn-border: var(--egyptian-purple);
    --shadow-card: rgba(0, 0, 0, 0.06);
}
body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
}
.container {
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 20px;
}
.header {
    text-align: center;
    margin-bottom: 40px;
}
h2 {
    font-family: 'Manrope';
    font-size: 25px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}
.header h1 {
    text-align: center;
    font-size: 43px;
    font-weight: 400;
    font-family: 'Manrope';
}
.header p {
    color: var(--text-muted);
    font-family: 'Manrope';
    font-size: 24px;
}
.grid {
    display: grid;
    grid-template-columns: 0fr 1fr;
    gap: 20px;
}
.card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px var(--shadow-card);
    width: 400px;
}
.card img {
    width: 64px;
    height: 64px;
    border-radius: 5px;
    object-fit: cover;
}
.card h3 {
    margin: 0 0 6px;
    font-size: 18px;
    color: var(--text-purple);
    font-family: 'Manrope';
    font-weight: 500;
}
.row.name {
    font-size: 17px;
    text-align: center;
    font-family: 'Manrope';
    font-weight: 500;
    display: grid;
    align-items: center;
}
.office p {
    position: relative;
    padding-left: 1.5em;
}
.office p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1em;
    height: 1em;
    background-image: url('../img/fc1f434b33b40cdc6d7662345f4e0db9.svg');
    background-size: contain;
    background-repeat: no-repeat;
}
.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    max-width: 500px;
    margin-top: 10px;
    border-bottom: solid 1px var(--border-light);
    padding-bottom: 15px;
    align-items: center;
}
.title_head {
    margin: 0 0 6px;
    font-size: 18px;
    color: var(--text-purple);
    font-family: 'Manrope';
    font-weight: 500;
    text-align: center;
}
.contact-info-block {
    padding: 30px;
}
.contact-info-block h4 {
    font-size: 15px;
    font-weight: 600;
    font-family: 'Manrope';
}
.icon_photo {
    background-color: var(--bg-header);
    display: flex;
    align-items: center;
    gap: 30px;
    border-radius: 10px;
    padding: 12px;
}
.contact-item.contact-item--age {
    font-size: 20px;
    font-family: 'Manrope';
    font-weight: 500;
}
.contact-item.contact-item--experience {
    font-size: 16px;
    font-family: 'Manrope';
    font-weight: 500;
    color: var(--text-gray);
}
.contact-item.contact-item--phone {
    font-size: 14px;
    font-family: 'Manrope';
    font-weight: 600;
}
.contact-item.contact-item--email {
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    font-family: 'Manrope';
}
.meta {
    font-size: 13px;
    color: var(--text-secondary);
}
.email {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 6px;
}
.desc {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 500;
    font-family: 'Manrope';
}
.office {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px var(--shadow-card);
}
.office p {
    margin: 6px 0;
}
.table {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px var(--shadow-card);
    width: 100%;
}
tr.row.name td {
    padding: 20px;
}
.row.name td:nth-child(2) {
    text-align: left;
    font-size: 15px;
}
.row {
    display: grid;
    grid-template-columns: 220px 1fr;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-table);
}
.row:last-child {
    border-bottom: none;
}
.head {
    background: var(--bg-header);
    font-weight: 600;
    border-radius: 10px;
    margin: 5px;
}
.btn {
    margin-top: 16px;
    background: var(--btn-primary);
    color: var(--bg-white);
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 14px;
    cursor: pointer;
}
.btn:hover {
    background: var(--btn-hover);
}
.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 14px 3px;
    border-radius: 16px;
    border-top: 1px solid var(--btn-border);
    border-right: 1px solid var(--btn-border);
    border-left: 1px solid var(--btn-border);
    border-bottom: 5px solid var(--btn-border);
    background: var(--bg-white);
    color: var(--text-black);
    font-size: 17px;
    cursor: pointer;
    width: 282px;
    height: 60px;
    top: 394px;
    z-index: 5;
    transition: 0.2s;
}
.cta:hover {
    transition: 0.2s;
    border-bottom: 1px solid var(--btn-border);
}
img.ico {
    width: 20px;
}
.office span {
    font-size: 16px;
    color: var(--text-muted);
}
.fot {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-top: 44px;
    color: var(--text-muted);
}
.text_fot {
    width: 445px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Manrope';
}
.cta__icon {
    width: 47px;
    height: 47px;
    background: var(--egyptian-purple) url('../img/cc28c0f4d3b618d392908b45bbb6972b.svg') center no-repeat;
    background-size: 27px;
    border-radius: 12px;
    left: -39px;
    position: relative;
}
h2.office_title {
    display: flex;
    align-items: center;
    gap: 10px;
}
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
        margin: 30px auto;
    }
    .header h1 {
        font-size: 36px;
    }
    .header p {
        font-size: 20px;
    }
    .grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .card {
        width: 100%;
        max-width: 600px;
        margin: 0 auto 16px;
    }
    .fot {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .text_fot {
        width: 100%;
    }
    .cta {
        width: 100%;
        max-width: 282px;
    }
    .table {
        overflow-x: auto;
    }
}
@media (max-width: 768px) {
    .header h1 {
        font-size: 32px;
    }
    .header p {
        font-size: 18px;
    }
    h2 {
        font-size: 22px;
    }
    .card {
        padding: 12px;
    }
    .icon_photo {
        gap: 15px;
        padding: 10px;
    }
    .contact-info-block {
        padding: 20px;
    }
    .contact-info {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 10px;
    }
    .contact-item {
        margin-bottom: 8px;
    }
    .office {
        padding: 12px;
    }
    .office p {
        font-size: 15px;
    }
    .office span {
        font-size: 14px;
    }
}
@media (max-width: 576px) {
    .container {
        padding: 0 12px;
        margin: 20px auto;
    }
    .header {
        margin-bottom: 30px;
    }
    .header h1 {
        font-size: 28px;
        line-height: 1.2;
    }
    .header p {
        font-size: 16px;
    }
    h2 {
        font-size: 20px;
    }
    .card {
        flex-direction: column;
        gap: 15px;
    }
    .card h3 {
        font-size: 16px;
    }
    .icon_photo {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 15px;
    }
    .icon_photo .avatar-container {
        width: 80px;
        height: 80px;
    }
    .icon_photo img {
        width: 80px;
        height: 80px;
    }
    .contact-info-block {
        padding: 15px 0 0 0;
    }
    .contact-item.contact-item--age {
        font-size: 18px;
    }
    .contact-item.contact-item--experience {
        font-size: 14px;
    }
    .contact-item.contact-item--phone {
        font-size: 13px;
    }
    .contact-item.contact-item--email {
        font-size: 13px;
        word-break: break-all;
    }
    .desc {
        font-size: 14px;
    }
    .office_title {
        align-items: flex-start;
        gap: 5px;
    }
    .office p {
        font-size: 14px;
        line-height: 1.4;
    }
    .office span {
        font-size: 13px;
        display: block;
        margin-top: 2px;
    }
    .cta {
        width: 100%;
        height: auto;
        padding: 12px;
        font-size: 16px;
        justify-content: flex-start;
    }
    .cta__icon {
        left: 0;
        margin-right: 10px;
        flex-shrink: 0;
    }
    .text_fot {
        font-size: 14px;
    }
    .table {
        border-radius: 8px;
    }
    tr.row.name td {
        padding: 12px;
    }
    .row.name td:nth-child(2) {
        font-size: 14px;
    }
}
@media (max-width: 400px) {
    .header h1 {
        font-size: 24px;
    }
    h2 {
        font-size: 18px;
    }
    .card {
        padding: 10px;
    }
    .contact-info-block h4 {
        font-size: 14px;
    }
    .cta {
        font-size: 15px;
    }
    .text_fot {
        font-size: 13px;
    }
}
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        margin: 15px auto;
    }
    .header {
        margin-bottom: 20px;
    }
    .card {
        padding: 8px;
    }
    .icon_photo {
        padding: 8px;
    }
}
