:root {
    --beige-light: #f3eee6;
    --beige-medium: #e4d9c9;
    --grey-light: #eae9e5;
    --grey-medium: #cec8bf;
    --grey-dark: #393733;
    --grey-muted: #605a52;
    --field-border: #91897e;
    --white: #fcfaf7;
    --header-height: 76px;
    --page-width: 1120px;
    --section-radius: 36px;
    --card-radius: 24px;
    --control-radius: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--beige-light);
    color: var(--grey-dark);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

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

a {
    color: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 20px;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    line-height: 1.05;
}

h2 {
    margin-bottom: 32px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}

h3 {
    margin-bottom: 14px;
    font-size: 1.25rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--header-height);
    background: var(--beige-medium);
    border-bottom: 1px solid var(--grey-medium);
}

.header-content {
    width: min(calc(100% - 40px), var(--page-width));
    min-height: var(--header-height);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-name {
    flex: 0 0 auto;
    color: var(--grey-dark);
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
}

.navigation-list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 18px;
    list-style: none;
}

.navigation-list a {
    display: block;
    padding: 8px 0;
    color: var(--grey-dark);
    font-size: 0.94rem;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.navigation-list a:hover,
.navigation-list a:focus-visible {
    border-bottom-color: var(--grey-dark);
}

.page-width {
    width: min(calc(100% - 40px), var(--page-width));
    margin: 0 auto;
}

.narrow-content {
    max-width: 820px;
}

.section {
    min-height: 420px;
    margin: 0 16px 24px;
    padding: 90px 0;
    border-radius: var(--section-radius);
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.alternate-section {
    background: var(--grey-light);
    border: 1px solid var(--grey-medium);
}

.hero-section {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
}

.hero-grid,
.two-column-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    align-items: center;
}

.hero-image-wrapper {
    background: var(--grey-light);
    border: 1px solid var(--grey-medium);
    border-radius: var(--card-radius);
    overflow: hidden;
}

.hero-image {
    width: 100%;
    min-height: 480px;
    object-fit: cover;
    object-position: left center;
}

.hero-text p {
    max-width: 640px;
}

.presentation-image {
    width: 100%;
    height: auto;
    border-radius: var(--card-radius);
}

.intro-text {
    font-size: 1.18rem;
}

.section-label {
    margin-bottom: 12px;
    color: var(--grey-muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.basic-button,
button {
    display: inline-block;
    margin-top: 14px;
    padding: 12px 20px;
    background: var(--grey-dark);
    color: var(--white);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--grey-dark);
    border-radius: 999px;
    cursor: pointer;
}

.basic-button:hover,
.basic-button:focus-visible,
button:hover,
button:focus-visible {
    background: var(--white);
    color: var(--grey-dark);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.basic-card,
.content-box,
.contact-form {
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--grey-medium);
    border-radius: var(--card-radius);
}

.basic-card p:last-child,
.content-box p:last-child {
    margin-bottom: 0;
}

.mat-offer {
    margin-top: 24px;
    padding: 24px;
    background: var(--beige-medium);
    border-left: 4px solid var(--grey-muted);
    border-radius: var(--control-radius);
}

.mat-offer h4 {
    margin: 0 0 12px;
    font-size: 1.15rem;
    line-height: 1.4;
}

.mat-offer p {
    margin: 0 0 16px;
}

.mat-offer-price {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.mat-offer a {
    font-weight: 700;
    text-underline-offset: 4px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

th,
td {
    padding: 13px 12px;
    text-align: left;
    border: 1px solid var(--grey-medium);
}

th {
    background: var(--beige-medium);
}

.price-list {
    margin: 0;
}

.price-list div {
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--grey-medium);
}

.price-list div:last-child {
    border-bottom: 0;
}

.price-list dt {
    font-weight: 700;
}

.price-list dd {
    margin: 0;
    text-align: right;
}

address {
    margin-bottom: 24px;
    font-style: normal;
}

.location-map {
    display: block;
    width: 100%;
    height: 320px;
    border: 1px solid var(--grey-medium);
    border-radius: var(--control-radius);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.person-placeholder {
    width: 100%;
    height: 210px;
    margin-bottom: 24px;
    display: grid;
    place-items: center;
    background: var(--beige-medium);
    border: 1px solid var(--grey-medium);
    color: var(--grey-muted);
}

.person-role {
    margin-top: -8px;
    font-weight: 700;
}

.contact-section {
    background: var(--beige-medium);
}

.contact-form {
    display: grid;
    gap: 10px;
}

.form-notice {
    margin-bottom: 16px;
    padding: 12px;
    background: var(--grey-light);
    border: 1px solid var(--grey-medium);
    border-radius: var(--control-radius);
    font-size: 0.9rem;
}

label {
    margin-top: 5px;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    background: var(--white);
    color: var(--grey-dark);
    font: inherit;
    border: 1px solid var(--field-border);
    border-radius: var(--control-radius);
}

textarea {
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: var(--grey-muted);
    opacity: 1;
}

a:focus-visible,
button:focus-visible,
input:focus,
textarea:focus {
    outline: 2px solid var(--grey-dark);
    outline-offset: 2px;
}

.contact-form button {
    justify-self: start;
}

.contact-form button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.form-status {
    margin: 0;
}

.form-status:not(:empty) {
    padding: 14px;
    background: var(--beige-light);
    border: 1px solid var(--grey-muted);
    border-radius: var(--control-radius);
}

.form-status[data-state="error"] {
    border-left-width: 4px;
}

.site-footer {
    padding: 28px 0;
    background: var(--grey-dark);
    color: var(--white);
    text-align: center;
}

.site-footer p {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    :root {
        --header-height: 116px;
    }

    .header-content {
        padding: 14px 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 4px;
    }

    .navigation-list {
        justify-content: flex-start;
    }

    .hero-grid,
    .two-column-grid {
        grid-template-columns: 1fr;
    }

    .hero-image {
        min-height: 360px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    :root {
        --header-height: 168px;
        --section-radius: 24px;
        --card-radius: 18px;
    }

    .page-width,
    .header-content {
        width: min(calc(100% - 28px), var(--page-width));
    }

    .navigation-list {
        gap: 2px 13px;
    }

    .navigation-list a {
        padding: 4px 0;
        font-size: 0.86rem;
    }

    .section {
        min-height: auto;
        margin: 0 8px 16px;
        padding: 66px 0;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-grid,
    .two-column-grid {
        gap: 28px;
    }

    .hero-image {
        min-height: 250px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .basic-card,
    .content-box,
    .contact-form {
        padding: 20px;
    }

    table {
        font-size: 0.9rem;
    }

    th,
    td {
        padding: 9px 7px;
    }
}
