:root {
    --accent: #c64f00;
    --text: #34261d;
    --secondary-text: #75665b;
    --background: #fffdf9;
    --surface: #fff4e1;
    --border: #f0dfc8;
    --container-width: 1120px;

    --orange: #f28c28;
    --orange-hover: #ffad42;
    --palm: #286b45;
    --palm-soft: #edf3e7;
    --sun: #f5c84c;
    --sun-soft: #fff5d9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 100px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: "Roboto", Arial, sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.logo-name {
    font-family: "Barlow", "Roboto", Arial, sans-serif;
}

h1,
h2,
h3 {
    text-wrap: balance;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(var(--container-width), 90%);
    margin: 0 auto;
}

/* Header */

.header {
    position: relative;
    background: var(--background);
    border-bottom: 1px solid var(--border);
}

.header-content {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-name {
    font-size: 17px;
    font-weight: 600;
    white-space: nowrap;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 24px;
}

.navigation a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--secondary-text);
    font-size: 14px;
    transition: color 0.2s ease;
}

.navigation a:hover,
.navigation a[aria-current="page"] {
    color: var(--text);
    font-weight: 600;
}

.button {
    min-height: 44px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 0 22px;
    color: var(--text);
    background: var(--orange);
    border: 1px solid var(--orange);
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.button:hover {
    background: var(--orange-hover);
    border-color: var(--orange-hover);
}

a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.button-small {
    min-height: 38px;
    padding: 0 18px;
}

/* Home */

.hero {
    padding: 76px 0 84px;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
    align-items: center;
    gap: clamp(40px, 8vw, 110px);
}

.hero-aside {
    display: grid;
    gap: 16px;
}

.hero-photo {
    width: min(100%, 360px);
    aspect-ratio: 1;
    justify-self: center;
    margin: 0;
    padding: 5px;
    overflow: hidden;
    background: #ffffff;
    border: 3px solid var(--orange);
    border-radius: 50%;
}

.hero-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    border-radius: 50%;
}

.hero-content {
    max-width: 680px;
}

.hero-kicker {
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
}

.hero h1 {
    max-width: 650px;
    margin-bottom: 20px;
    font-size: clamp(44px, 5.4vw, 64px);
    font-weight: 600;
    letter-spacing: -1.8px;
    line-height: 1.02;
}

.hero-description {
    max-width: 540px;
    color: var(--secondary-text);
    font-size: 17px;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 28px;
}

.hero-phone {
    margin-top: 17px;
    color: var(--secondary-text);
    font-size: 14px;
}

.hero-phone a {
    color: var(--text);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--orange);
    text-underline-offset: 3px;
}

.text-button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
}

.hero-area {
    padding: 24px;
    background: var(--palm-soft);
    border: 1px solid var(--border);
    border-top: 3px solid var(--palm);
    border-radius: 3px;
}

.hero-area h2 {
    margin-bottom: 4px;
    font-size: 21px;
    font-weight: 600;
}

.hero-area p {
    margin-bottom: 12px;
    color: var(--secondary-text);
    font-size: 14px;
}

.hero-area ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 14px;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

.hero-area a {
    display: inline-block;
    margin-top: 16px;
    color: var(--palm);
    font-size: 14px;
    font-weight: 600;
}

.brand-photo-section {
    padding: 0 0 64px;
}

.brand-photo {
    width: min(var(--container-width), 88%);
    height: clamp(220px, 32vw, 360px);
    margin: 0 auto;
    padding: 5px;
    overflow: hidden;
    background: #ffffff;
    border: 3px solid var(--orange);
    border-radius: 3px;
}

.brand-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 58%;
}

.home-work-photos {
    width: min(var(--container-width), 90%);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto;
    padding-bottom: 64px;
}

.home-work-photo {
    width: min(100%, 206px);
    flex: 0 1 206px;
    aspect-ratio: 1;
    margin: 0;
    padding: 4px;
    overflow: hidden;
    background: #ffffff;
    border: 2px solid var(--orange);
    border-radius: 4px;
}

.home-work-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

/* Shared sections */

.section {
    padding: 72px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 28px;
}

.section-header h2,
.contact-intro h2 {
    font-size: clamp(28px, 3.5vw, 36px);
    font-weight: 600;
    letter-spacing: -0.8px;
    line-height: 1.2;
}

.section-description {
    max-width: 350px;
    color: var(--secondary-text);
    font-size: 14px;
}

/* Services */

.services {
    background: var(--sun-soft);
    border-top: 1px solid var(--border);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.service-card {
    display: block;
    min-height: 165px;
    padding: 24px;
    background: var(--background);
    border: 1px solid var(--border);
    border-top: 3px solid var(--orange);
    border-radius: 3px;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.service-card:nth-child(2) {
    border-top-color: var(--palm);
}

.service-card:nth-child(3) {
    border-top-color: var(--sun);
}

.service-card h3 {
    margin-bottom: 8px;
    font-size: 21px;
    font-weight: 600;
}

.service-card p {
    max-width: 310px;
    color: var(--secondary-text);
    font-size: 14px;
    line-height: 1.65;
}

.service-card:hover,
.service-card:focus-visible {
    background: #ffffff;
    border-color: #dfc8ad;
}

.service-card:first-child:hover,
.service-card:first-child:focus-visible {
    border-top-color: var(--accent);
}

.service-card:nth-child(2):hover,
.service-card:nth-child(2):focus-visible {
    border-top-color: var(--palm);
}

.service-card:nth-child(3):hover,
.service-card:nth-child(3):focus-visible {
    border-top-color: #d6a800;
}

.service-card:hover {
    transform: translateY(-2px);
}

/* Contact */

.contact-panel {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    padding: 32px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-top: 3px solid var(--orange);
    border-radius: 3px;
}

.contact-intro h2 {
    max-width: 360px;
    margin-bottom: 17px;
}

.contact-intro > p:last-child {
    color: var(--secondary-text);
    font-size: 14px;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-item {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item > span {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.contact-label {
    color: var(--secondary-text);
    font-size: 14px;
}

.contact-item strong {
    overflow-wrap: anywhere;
    font-size: 14px;
    font-weight: 500;
}

/* Interior pages */
.page-hero {
    padding: 62px 0 54px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    max-width: 760px;
    margin-bottom: 16px;
    font-size: clamp(36px, 4.5vw, 50px);
    font-weight: 600;
    letter-spacing: -1.2px;
    line-height: 1.04;
}

.page-hero .container > p:last-child {
    max-width: 700px;
    color: var(--secondary-text);
    font-size: 16px;
    line-height: 1.7;
}

.page-content {
    padding: 54px 0 76px;
    background: var(--background);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.info-card {
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-top: 3px solid var(--orange);
    border-radius: 3px;
}

.info-card:nth-child(2) {
    border-top-color: var(--palm);
}

.info-card:nth-child(3) {
    border-top-color: var(--sun);
}

.info-card h2,
.page-copy h2,
.page-callout h2 {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
}

.info-card p,
.page-copy p,
.page-callout p {
    color: var(--secondary-text);
    font-size: 15px;
    line-height: 1.8;
}

.info-card .card-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
}

.page-callout {
    margin-top: 38px;
    padding: 24px;
    background: var(--sun-soft);
    border: 1px solid var(--border);
    border-left: 3px solid var(--orange);
    border-radius: 6px;
}

.page-callout p {
    margin-bottom: 16px;
}

.page-copy {
    max-width: 760px;
}

.detail-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.detail-card {
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-top: 3px solid var(--orange);
    border-radius: 3px;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    margin-top: 32px;
}

.area-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 900px;
    padding: 0;
    list-style: none;
}

.area-list li {
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-left: 3px solid var(--palm);
    border-radius: 3px;
    font-size: 16px;
    font-weight: 500;
}

.area-list li:nth-child(3n + 2) {
    border-left-color: var(--orange);
}

.area-list li:nth-child(3n) {
    border-left-color: var(--sun);
}

.contact-page-panel {
    margin: 0 auto;
    max-width: 900px;
}

/* Responsive design */

@media (max-width: 850px) {
    .header-content {
        flex-wrap: wrap;
        gap: 14px 24px;
        padding: 12px 0;
    }

    .navigation {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        padding-top: 8px;
        border-top: 1px solid var(--border);
        gap: 4px 24px;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .hero-layout {
        grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
        gap: 36px;
    }

    .service-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-card:last-child:nth-child(odd),
    .info-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .contact-panel {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .detail-card-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width: 560px) {
    .container {
        width: 88%;
    }

    .header-content {
        gap: 10px 14px;
    }

    .logo-name {
        font-size: 15px;
    }

    .button-small {
        min-height: 44px;
        padding: 0 12px;
        font-size: 14px;
    }

    .navigation {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 2px 18px;
    }

    .navigation a {
        font-size: 14px;
        min-height: 40px;
    }

    .hero {
        padding: 48px 0 52px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-area {
        padding: 20px;
    }

    .brand-photo-section {
        padding-bottom: 42px;
    }

    .brand-photo {
        height: 220px;
    }

    .hero-photo {
        width: min(100%, 360px, 88vw);
    }

    .section {
        padding: 52px 0;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 0;
        padding: 20px;
    }

    .contact-panel {
        gap: 12px;
        padding: 22px 20px;
    }

    .page-hero {
        padding: 46px 0 40px;
    }

    .page-hero h1 {
        font-size: clamp(34px, 9vw, 42px);
        letter-spacing: -0.8px;
    }

    .page-hero .container > p:last-child {
        font-size: 16px;
    }

    .page-content {
        padding: 38px 0 56px;
    }

    .home-work-photos {
        flex-direction: column;
        align-items: stretch;
    }

    .home-work-photo {
        align-self: flex-start;
    }

    .home-work-photo:nth-child(even) {
        align-self: flex-end;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .area-list {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .area-list li {
        padding: 15px 14px;
    }
}

@media (max-width: 360px) {
    .navigation {
        column-gap: 12px;
    }

    .hero-buttons {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .button,
    .navigation a {
        transition: none;
    }
}