@font-face {
    font-family: "YS Text";
    src: url("../fonts/ys-text-regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "YS Text";
    src: url("../fonts/ys-text-medium.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "YS Text";
    src: url("../fonts/ys-text-bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --page: #1a1a1a;
    --header: #303336;
    --surface: #2e3138;
    --control: #444953;
    --muted: #81899a;
    --accent: #ffd353;
    --text: rgba(255, 255, 255, 0.8);
    --container: 1080px;
    --header-height: 64px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--page);
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    background: var(--page);
    color: var(--text);
    font-family: "YS Text", Arial, sans-serif;
    font-size: 16px;
    line-height: 24px;
    -webkit-font-smoothing: antialiased;
}

body.is-modal-open {
    overflow: hidden;
}

button,
a {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    color: inherit;
}

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

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

button,
summary {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

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

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 8px;
    left: 8px;
    padding: 8px 12px;
    transform: translateY(-150%);
    border-radius: 8px;
    background: var(--accent);
    color: #24262a;
}

.skip-link:focus {
    transform: none;
}

.site-header {
    position: fixed;
    z-index: 50;
    inset: 0 0 auto;
    height: var(--header-height);
    background: var(--header);
}

.site-header__inner {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    max-width: 1680px;

}

.brand {
    display: flex;
    flex: none;
    align-items: center;
    margin-right: 24px;
}

.brand img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

.brand span {
    display: none;
}

.site-nav {
    display: flex;
    align-self: stretch;
    gap: 24px;
}

.site-nav a {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    line-height: 48px;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
    color: #fff;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.site-header.is-scrolled .site-header__actions {
    opacity: 1;
    pointer-events: auto;
}

.header-message {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding-inline: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 24px;
    border: 0;
    border-radius: 16px;
    font-weight: 500;
    line-height: 24px;
    white-space: nowrap;
    transition: filter 0.15s ease;
}

.button:hover {
    filter: brightness(1.08);
}

.button:focus-visible,
.photo-card:focus-visible,
.lightbox button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.button--accent {
    background: var(--accent);
    color: #24262a;
}

.button--muted {
    background: var(--control);
    color: rgba(255, 255, 255, 0.9);
}

.button--compact {
    padding-inline: 16px;
}

.icon {
    display: block;
    width: 24px;
    height: 24px;
    flex: none;
}

.icon--message {
    width: 17px;
    height: 16px;
}

.icon--clock,
.icon--close {
    width: 16px;
    height: 16px;
}

.icon--star {
    width: 24px;
    height: 24px;
}

.icon--arrow {
    width: 9px;
    height: 16px;
}

.header-message .icon,
.button--muted .icon,
.service-tags .icon,
.lightbox button .icon {
    filter: brightness(0) invert(1);
}

.header-message .icon {
    opacity: 0.8;
}

.button--muted .icon {
    opacity: 0.9;
}

.section {
    margin-bottom: 64px;
}

.section-heading {
    margin-bottom: 32px;
}

.section-heading h2,
.contacts-card h2 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 32px;
    font-weight: 500;
    line-height: 36px;
}

.section-note,
.site-footer {
    display: none;
}

.hero {
    padding-top: 104px;
    margin-bottom: 64px;
}

.hero__content {
    position: relative;
    min-height: 349px;
}

.hero__copy {
    max-width: 660px;
    transform: translateY(-8px);
}

.rating-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
    margin-bottom: 8px;
}

.stars {
    color: #ffd21c;
    white-space: nowrap;
}

.rating-link .stars,
.reviews-score .stars {
    letter-spacing: 2px;
}

.rating-link strong {
    color: rgba(255, 255, 255, 1);
    font-size: 16px;
}

.rating-source {
    display: none;
    color: var(--muted);
}

.hero h1 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 40px;
    font-weight: 700;
    line-height: 48px;
}

.hero__category {
    margin-top: 8px;
    color: var(--muted);
}

.hero-details {
    max-width: 520px;
    margin-top: 24px;
}

.hero-details summary {
    display: grid;
    color: rgba(255, 255, 255, 0.8);
    list-style: none;
}

.hero-details summary::-webkit-details-marker {
    display: none;
}

.hero-details__title,
.hero-details__teaser {
    display: block;
}

.hero-details__more {
    color: #2f9bff;
}

.hero-details[open] .hero-details__teaser,
.hero-details[open] .hero-details__more {
    display: none;
}

.hero-details ul {
    padding-left: 20px;
    margin: 8px 0 0;
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-buttons--hero {
    flex-wrap: nowrap;
    gap: 11px;
    margin-top: 24px;
}

.contact-buttons--hero .button--accent {
    min-width: 200px;
}

.work-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 14px;
    line-height: 20px;
}

.work-status .icon {
    filter: brightness(0) invert(1);
    opacity: 0.35;
}

.hero__logo {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 16px;
}

.hero__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__image-wrap {
    height: 558px;
    margin-top: 40px;
    overflow: hidden;
    border-radius: 16px;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.company__description {
    width: min(100%, 600px);
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.75);
    white-space: normal;
}

.company__description p + p {
    margin-top: 24px;
}

.service-tags {
    display: flex;
    margin: 40px -8px 0;
}

.service-tags span {
    display: flex;
    width: calc(33.333% - 16px);
    align-items: center;
    margin: 8px;
}

.service-tags i {
    display: inline-grid;
    flex: none;
    width: 42px;
    height: 42px;
    margin-right: 10px;
    place-items: center;
    border-radius: 50%;
    background: #ffcba6;
    color: #fff;
    font-style: normal;
}

.service-tags span:nth-child(2) i {
    background: #b4d1fd;
}

.reviews-heading {
    margin-bottom: 32px;
}

.reviews-score {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.reviews-score > strong {
    color: rgba(255, 255, 255, 0.8);
    font-size: 52px;
    font-weight: 700;
    line-height: 36px;
}

.reviews-score > div {
    display: grid;
    color: var(--muted);
    font-size: 14px;
    line-height: 20px;
}

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

.review {
    display: grid;
    grid-template-columns: 36px 1fr;
    grid-template-rows: 18px 18px auto;
    column-gap: 8px;
    padding: 27px 21px 42px;
    border-radius: 16px;
    background: #fff;
    color: #26282d;
    font-size: 14px;
    line-height: 18px;
}

.review__author {
    display: contents;
}

.review__author img {
    width: 36px;
    height: 36px;
    grid-column: 1;
    grid-row: 1 / 3;
    border-radius: 50%;
    object-fit: cover;
}

.review__author div {
    display: contents;
}

.review__author strong {
    overflow: hidden;
    grid-column: 2;
    grid-row: 1;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review__author span {
    z-index: 1;
    grid-column: 2;
    grid-row: 2;
    margin-left: 87px;
    color: #81899a;
    white-space: nowrap;
}

.review > .stars {
    overflow: hidden;
    width: 79px;
    grid-column: 2;
    grid-row: 2;
    font-size: 14px;
    letter-spacing: 1px;
    line-height: 18px;
}

.review > p {
    grid-column: 2;
    grid-row: 3;
    margin-top: 14px;
}

.section-action {
    display: flex;
    margin: 32px auto 0;
}

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

.photo-column {
    display: grid;
    align-self: start;
    align-content: start;
    gap: 16px;
}

.photo-card {
    display: block;
    width: 100%;
    height: auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: var(--surface);
}

.photo-card img {
    width: 100%;
    height: auto;
}

.photo-column--more {
    display: none;
}

#photos .section-action {
    margin: 40px auto 0;
}

.contacts-card h2 {
    margin-bottom: 36px;
}

.contacts-section {
    margin-bottom: 64px;
}

.mobile-call {
    display: none;
}

.lightbox {
    width: min(1120px, calc(100% - 32px));
    height: min(800px, calc(100% - 32px));
    padding: 0;
    border: 0;
    overflow: visible;
    background: transparent;
    color: #fff;
}

.lightbox::backdrop {
    background: rgba(0, 0, 0, 0.92);
}

.lightbox figure {
    display: grid;
    width: 100%;
    height: 100%;
    margin: 0;
    place-items: center;
}

.lightbox figure img {
    max-width: 100%;
    max-height: calc(100% - 40px);
    border-radius: 8px;
}

.lightbox figcaption {
    position: absolute;
    bottom: 0;
    color: rgba(255, 255, 255, 0.7);
}

.lightbox button {
    position: absolute;
    z-index: 2;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(48, 51, 54, 0.9);
    color: #fff;
}

.lightbox__close {
    top: 0;
    right: 0;
}

.lightbox__arrow {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__arrow--prev {
    left: 0;
}

.lightbox__arrow--next {
    right: 0;
}

@media (max-width: 999px) {
    :root {
        --header-height: 56px;
    }

    body {
        padding-bottom: 88px;
    }

    .container {
        width: calc(100% - 32px);
    }

    .site-header__inner {
        overflow-x: auto;
        padding: 0;
        scrollbar-width: none;
    }

    .site-header__inner::-webkit-scrollbar {
        display: none;
    }

    .brand,
    .site-header__actions {
        display: none;
    }

    .site-nav {
        flex: none;
        gap: 24px;
        padding: 0 16px;
    }

    .site-nav a {
        font-size: 16px;
        line-height: 56px;
    }

    .section {
        margin-bottom: 48px;
    }

    .section-heading {
        margin-bottom: 24px;
    }

    .section-heading h2,
    .contacts-card h2 {
        font-size: 24px;
        line-height: 28px;
    }

    .hero {
        padding-top: 96px;
        margin-bottom: 48px;
    }

    .hero__content {
        display: flex;
        min-height: 0;
        align-items: center;
        flex-direction: column;
    }

    .hero__copy {
        display: flex;
        width: 100%;
        max-width: none;
        align-items: center;
        flex-direction: column;
        padding: 0;
        text-align: center;
        transform: none;
    }

    .hero__logo {
        position: static;
        order: -1;
        width: 92px;
        height: 92px;
        margin-bottom: 16px;
        border-radius: 8px;
    }

    .hero h1 {
        order: 1;
        font-size: 32px;
        line-height: 40px;
    }

    .hero__category {
        order: 2;
    }

    .hero-details {
        width: min(calc(100% - 64px), 300px);
        order: 3;
        margin-top: 24px;
    }

    .hero-details__teaser {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .rating-link {
        order: 4;
        margin: 0;
    }

    .rating-source {
        display: inline;
    }

    .contact-buttons--hero {
        width: calc(100% - 64px);
        order: 5;
        flex-direction: column;
        margin-top: 44px;
    }

    .contact-buttons--hero .button {
        width: 100%;
    }

    .work-status {
        align-self: flex-start;
        order: 6;
        margin-left: 32px;
    }

    .hero__image-wrap {
        width: 100%;
        height: auto;
        margin-top: 48px;
        border-radius: 0;
    }

    .hero__image {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 2;
    }

    .company__description {
        margin-top: 0;
    }

    .service-tags {
        flex-direction: column;
        margin: 24px 0 0;
        gap: 16px;
    }

    .service-tags span {
        width: 100%;
        margin: 0;
    }

    .reviews-score {
        gap: 12px;
        margin-top: 20px;
    }

    .reviews-score > strong {
        font-size: 52px;
        line-height: 52px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .reviews-grid:not(.is-expanded) .review:nth-child(n + 3) {
        display: none;
    }

    .review {
        min-height: 0;
        grid-template-columns: 1fr;
        grid-template-rows: 20px 20px auto;
        padding: 0;
        background: transparent;
        color: rgba(255, 255, 255, 0.8);
        font-size: 14px;
        line-height: 20px;
    }

    .review__author img {
        display: none;
    }

    .review__author strong {
        grid-column: 1;
        grid-row: 1;
    }

    .review__author span {
        grid-column: 1;
        grid-row: 2;
        margin-left: 87px;
        color: var(--muted);
    }

    .review > .stars {
        width: 79px;
        grid-column: 1;
        grid-row: 2;
        line-height: 20px;
    }

    .review > p {
        grid-column: 1;
        margin-top: 12px;
    }

    .section-action {
        width: auto;
        margin: 24px 0 0;
    }

    #reviews .section-action {
        min-height: 40px;
        padding: 8px 16px;
    }

    #photos > .container {
        width: 100%;
    }

    #photos .section-heading {
        margin-right: 16px;
        margin-bottom: 16px;
        margin-left: 16px;
    }

    .photo-grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        padding: 0 16px 8px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .photo-grid::-webkit-scrollbar {
        display: none;
    }

    .photo-column {
        display: contents;
    }

    .photo-card {
        order: var(--photo-order);
        flex: 0 0 63.2vw;
        width: 63.2vw;
        height: min(50vw, 237px);
        scroll-snap-align: start;
    }

    .photo-card img {
        height: 100%;
        object-fit: cover;
    }

    .photo-column--more {
        display: contents;
    }

    .photo-more-mobile {
        order: 1000;
        width: 63.2vw;
        height: min(50vw, 237px);
        flex: 0 0 63.2vw;
        padding: 20px;
        border: 0;
        border-radius: 8px;
        background: var(--control);
        color: rgba(255, 255, 255, 0.9);
        font-weight: 500;
    }

    #photos > .container > .section-action {
        display: none;
    }

    .contacts-card h2 {
        margin-bottom: 24px;
    }

    .contacts-section .contact-buttons {
        gap: 8px;
    }

    .contacts-section .button {
        padding-inline: 16px;
    }

    .mobile-call {
        position: fixed;
        z-index: 40;
        right: 20px;
        bottom: 16px;
        left: 20px;
        display: flex;
        min-height: 56px;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 12px 20px;
        transform: translateY(calc(100% + 40px));
        border-radius: 16px;
        background: var(--accent);
        color: #24262a;
        font-weight: 500;
        box-shadow: 0 10px 28px rgba(255, 211, 83, 0.35);
        transition: transform 0.2s ease;
    }

    .mobile-call.is-visible {
        transform: none;
    }

    .lightbox {
        width: calc(100% - 16px);
        height: calc(100% - 32px);
    }

    .lightbox__arrow--prev {
        left: 8px;
    }

    .lightbox__arrow--next,
    .lightbox__close {
        right: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
