:root {
    --black: #353535;
    --gray: #6B7280;
    --lightgray: rgba(107, 114, 128, 0.5);

    --primary: #3483FA;
    --primary-hover: #2868C7;
    --primary-active: #05429C;

    --secondary: #E3EDFB;
    --secondary-hover: #D0E1FA;
    --secondary-active: #B4CCF0;

    --btn-color: #fff;
    --btn-bg: var(--primary);
    --btn-hover-bg: var(--primary-hover);
    --btn-active-bg: var(--primary-active);

    --section-bg: #F7F8F9;

    --staff-columns: 4;
    --services-columns: 4;
    --portfolio-columns: 3;
}

html, body {
    font-family: Poppins, sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: 16px;
    color: var(--black);
}

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


/* Sections */
.section {
    padding-top: 32px;
    padding-bottom: 32px;
}

.section--bg {
    background-color: var(--section-bg);
}

.section__header {
    padding: 24px 0;
    text-align: center;
    margin-bottom: 32px;
}

.section__title {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 10px;
}

.section__subtitle {
    font-family: Inter, sans-serif;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 500;
    color: var(--gray);
    min-height: 64px;
    margin: 0;
}

.wrapper {
    width: 1440px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 60px;
}

/*Hyperlinks*/

a, .link {
    text-decoration: none;
    color: inherit;
    transition: color .25s;
}

a:hover, .link:hover {
    color: var(--primary);
}

/*Buttons*/
.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.02em;
    height: 3em;
    border-radius: 1.5em;
    color: var(--btn-color);
    background-color: var(--btn-bg);
    padding: 0.5em 1.5em;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color, 0.2s;
}

.btn:hover, .btn:focus {
    background-color: var(--btn-hover-bg);
    outline: none;
}

.btn:active {
    background-color: var(--btn-active-bg);
}

.btn--secondary {
    --btn-color: var(--primary);
    --btn-bg: var(--secondary);
    --btn-hover-bg: var(--secondary-hover);
    --btn-active-bg: var(--secondary-active);
}

/*Header*/

.header {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 999;
}

.header--static {
    position: static;
    z-index: 1;
}

.header__top {
    padding: 10px 60px;
    background: var(--black);
    color: #fff;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

.header__top a {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.header__bottom {
    padding: 16px 60px;
    display: grid;
    align-items: center;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    grid-template-areas: "logo nav socials";
}

.header__logo {
    grid-area: logo;
}

.header__logo img {
    width: 188px;
    height: 94px;
    object-fit: contain;
    object-position: left center;
}

.header__logo h1 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.header__nav {
    grid-area: nav;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.header__socials {
    grid-area: socials;
    display: flex;
    justify-content: flex-end;
    font-size: 24px;
    gap: 12px;
}

/*Hero Section*/
.hero {
    min-height: 100vh;
    width: 100%;
    background: radial-gradient(50% 50% at 50% 50%, #FFFFFF 55.5%, #EDEDED 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
}

.hero__content {
    width: 700px;
    max-width: 100%;
}

.hero__title {
    font-weight: 700;
    font-size: 90px;
    margin: 0 0 36px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-family: 'Inter', sans-serif;
    color: var(--gray);
    font-weight: 500;
    font-size: 24px;
    margin: 0 0 36px;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    padding: 16px 0;
    gap: 16px;
}

/*Footer*/

.footer__top {
    padding: 72px 0 32px;
}

.footer__mid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 32px;
    padding-top: 32px;
    padding-bottom: 32px;
}

.footer__bottom {
    font-size: 14px;
    letter-spacing: -0.02em;
    line-height: 1.5;
    padding: 10px 16px;
    background: var(--black);
    color: #fff;
    text-align: center;
}

.footer__bottom strong {
    font-weight: 500;
}

.footer-info-block {
    letter-spacing: -0.02em;
}

.footer-info-block__title {
    font-size: 14px;
    line-height: 1.5;
    color: var(--primary);
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 8px;
}

.footer-info-block__content {
    color: inherit;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.45;
    font-style: normal;
}

.footer-logo {
    align-self: center;
}

.footer-logo__text {
    margin: 0 0 12px;
}

.footer-logo__img {
    width: 188px;
    height: 94px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 12px;
    display: inline-block;
}

.footer-logo__socials {
    font-size: 16px;
    display: flex;
    justify-content: center;
    gap: 6px;
}


/* Location Card */
.location-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 24px;
    padding: 24px;
    margin: 24px auto;
    background: #fff;
    width: 1100px;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 3px 14px rgba(53, 53, 53, 0.16);

}

.location-card__title {
    font-weight: 600;
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 32px;
}

.location-card__address {
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: var(--gray);
    letter-spacing: -0.02em;
    line-height: 1.4;
    margin-bottom: 32px;
    font-style: normal;
}

.location-card__schedule {
    font-family: Inter, sans-serif;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-transform: uppercase;
}

.location-card__schedule-item {
    margin-bottom: 16px;
}

.location-card__day {
    color: var(--lightgray);
    margin-right: 0.5em;
}

.location-card__actions {
    padding-top: 32px;
    margin-top: auto;
}

.location-card__actions .btn + .btn {
    margin-left: 10px;
}

.location-card__info {
    display: flex;
    flex-direction: column;
}

.location-card__info:only-child {
    grid-column: span 2;
}

.location-card__map-wrapper {
    aspect-ratio: 540/390;
    border-radius: 12px;
    overflow: hidden;
}

/* Services */

.service-grid {
    margin-bottom: 72px;
}

.service-grid__inner {
    display: flex;
    margin: 0 -8px;
    flex-wrap: wrap;
    justify-content: center;
}

.service-grid__column {
    width: calc(100% / var(--services-columns));
    flex-grow: 0;
    flex-shrink: 0;
    padding: 0 8px;
    margin-bottom: 16px;
}

.service-card {
    background-color: #fff;
    border-radius: 16px;
    width: 100%;
    height: 100%;
}

.service-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 16px;
    overflow: hidden;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.service-card__content {
    padding: 24px;
}

.service-card__title {
    width: 100%;
    font-weight: 500;
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    letter-spacing: -0.02em;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-card__description {
    font-family: Inter, sans-serif;
    font-weight: 400;
    line-height: 1.21;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--gray);

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-card__price {
    margin-top: 8px;
    font-weight: 600;
    font-size: 22px;
    line-height: 1.5;
}

.service-card__book-btn {
    margin-top: 16px;
    width: 100%;
    height: 2.25em;
}

/* Portfolio */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(var(--portfolio-columns), 1fr);
    grid-gap: 16px;
}

.portfolio-item {
    width: 100%;
}

.portfolio-item__image {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 16px;
    overflow: hidden;

    transition: 0.3s;
    position: relative;
    z-index: 1;
}

.portfolio-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.portfolio-item__image::before {
    content: "";
    background: rgba(255, 255, 255, 0.7);
    position: absolute;
    left: 30px;
    right: 30px;
    top: 30px;
    bottom: 30px;
    transition: all ease-in-out 0.3s;
    z-index: 2;
    opacity: 0;
    border-radius: 16px;
}

.portfolio-item__image--hoverable:hover::before {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 1;
}

.portfolio-item__image:hover .portfolio-item__links {
    opacity: 1;
    bottom: calc(50% - 36px);
}

.portfolio-item__links {
    opacity: 0;
    left: 0;
    right: 0;
    bottom: 10%;
    text-align: center;
    z-index: 3;
    position: absolute;
    transition: all ease-in-out 0.3s;
}

.portfolio-item__links a {
    color: var(--primary);
    margin: 0 2px;
    font-size: 24px;
    display: inline-block;
    transition: 0.3s;
    background: #fff;
    border-radius: 50px;
    line-height: 0;
    padding: 6px;
}

.portfolio-item__links a:hover {
    color: #fff;
    background: var(--primary);
}

.portfolio-item__info {
    letter-spacing: -0.02em;
    padding: 24px;
}

.portfolio-item__title {
    font-weight: 600;
    font-size: 18px;
    line-height: 1.1;
    margin: 0;
}

.portfolio-item__description {
    margin: 8px 0 0;
    font-family: Inter, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: var(--gray);
}

.portfolio-booking {
    margin-top: 28px;
    text-align: center;
}

/* Staff */

.staff-grid {
    display: grid;
    grid-gap: 16px;
    grid-template-columns: repeat(var(--staff-columns), 1fr);
    margin-bottom: 88px;
}

.staff-item {
    width: 100%;
    background: #fff;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    text-align: center;
}

.staff-item .btn {
    margin-top: 16px;
}

.staff-item__image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--lightgray);
    margin: 10px 0;
}

.staff-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.staff-item__info {
    width: 100%;
    padding: 24px 0;
    position: relative;
    margin-bottom: 8px;
}

.staff-item__info:after {
    content: '';
    position: absolute;
    display: block;
    height: 1px;
    left: -12px;
    right: -12px;
    bottom: 0;
    background-color: var(--gray);
    opacity: 0.3;
}

.staff-item__info:last-child {
    margin: 0;
    padding-bottom: 0;
}

.staff-item__info:last-child:after {
    display: none;
}

.staff-item__name {
    font-weight: 600;
    font-size: 21px;
    line-height: 1.5;
    letter-spacing: -0.02em;
    margin: 0;
}

.staff-item__title {
    font-family: Inter, sans-serif;
    font-size: 16px;
    letter-spacing: -0.02em;
    margin: 6px 0 0;
    color: var(--lightgray);
    line-height: 1.21;
    font-weight: 400;
}

.staff-item__socials {
    font-size: 20px;
    color: var(--gray);
    margin-top: 16px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Responsive */

@media (max-width: 1280px) {
    .wrapper,
    .header__top,
    .header__bottom {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 1024px) {
    :root {
        --staff-columns: 3;
        --services-columns: 3;
    }
}

@media (max-width: 768px) {
    :root {
        --staff-columns: 2;
        --services-columns: 2;
    }

    .location-card {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
    }

    .footer__mid {
        gap: 16px;
        padding-bottom: 16px;
        flex-direction: column;
    }

    .hero {
        min-height: 480px;
    }

    .header__top,
    .header__socials,
    .header__nav {
        display: none;
    }

    .header__bottom {
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .hero__title {
        font-size: 48px;
    }

    .hero__subtitle {
        font-size: 16px;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    :root {
        --services-columns: 1;
        --staff-columns: 1;
        --portfolio-columns: 1;
    }
}

