@font-face {
    font-family: "Golos Text";
    src: url("/images/brand/fonts/golos-cyrillic.woff2") format("woff2");
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Golos Text";
    src: url("/images/brand/fonts/golos-latin.woff2") format("woff2");
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Unbounded";
    src: url("/images/brand/fonts/unbounded-cyrillic.woff2") format("woff2");
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Unbounded";
    src: url("/images/brand/fonts/unbounded-latin.woff2") format("woff2");
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

#inner_wrapper {
    --phox-red: #f13d2b;
    --phox-black: #111111;
    --phox-charcoal: #202020;
    --phox-white: #ffffff;
    --phox-muted: #bdbdbd;
    --phox-line: #373737;
    --phox-gutter: clamp(1rem, 4vw, 2rem);
    background: var(--phox-black);
    color: var(--phox-white);
    font-family: "Golos Text", system-ui, sans-serif;
}

#inner_wrapper > .container {
    width: min(100%, 72rem);
    max-width: none;
    margin-inline: auto;
    padding: clamp(1rem, 5vw, 3.5rem) var(--phox-gutter) 0;
}

#information-widgets {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--phox-line);
    border-radius: 1.125rem;
    background: var(--phox-charcoal);
}

#information-widgets::before {
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--phox-red) 0 16%, transparent 58%);
    content: "";
}

#information-widgets::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        url("/images/brand/phox-mark.svg") right clamp(0.75rem, 6vw, 4.5rem) center /
            min(32%, 19rem) auto no-repeat;
    opacity: 0.24;
    content: "";
    pointer-events: none;
}

#information-widgets .information-widget-greeting {
    box-sizing: border-box;
    width: 100%;
    padding: clamp(1.35rem, 4.2vw, 3.3rem);
}

.information-widget-greeting span {
    display: block;
    max-width: 75%;
    margin: 0;
    color: var(--phox-white);
    font: 650 clamp(1.45rem, 3.9vw, 3rem) / 1.17 "Unbounded", system-ui, sans-serif;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.information-widget-greeting span::before {
    display: block;
    width: clamp(7rem, 14vw, 10rem);
    aspect-ratio: 1377 / 510;
    margin: 0 0 clamp(0.85rem, 2vw, 1.4rem);
    background: url("/images/brand/phox-wordmark.svg") left center / contain no-repeat;
    content: "";
}

.information-widget-greeting span::after {
    display: block;
    margin-top: 0.7rem;
    color: var(--phox-muted);
    font: 400 clamp(0.91rem, 1.6vw, 1.07rem) / 1.45 "Golos Text", system-ui, sans-serif;
    letter-spacing: 0;
    content: "Сайты и приложения в одном месте";
}

#layout-groups,
#services {
    margin: clamp(1.6rem, 4vw, 2.8rem) 0 0;
}

.services-group {
    min-width: 0;
    padding: 0;
}

.services-group > button {
    min-height: 2rem;
    gap: 0.65rem;
    padding: 0 0.1rem;
}

.service-group-name {
    align-items: center;
    gap: 0.65rem;
    color: var(--phox-white);
    font: 580 clamp(0.76rem, 1.5vw, 0.9rem) / 1.4 "Unbounded", system-ui, sans-serif;
    letter-spacing: 0.02em;
}

.service-group-name::before {
    width: 0.55rem;
    height: 0.55rem;
    transform: rotate(45deg) scale(0.74);
    background: var(--phox-red);
    content: "";
}

.services-group .services-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.875rem;
    margin-top: 0.75rem;
}

.service-card {
    height: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 1px solid var(--phox-line);
    border-radius: 0.85rem;
    background: var(--phox-charcoal);
    box-shadow: none;
}

.service-card .service-title {
    min-height: 7.2rem;
    align-items: center;
    gap: 0.7rem;
    padding: 0.95rem;
}

.service-card .service-title-text {
    min-width: 0;
    align-self: stretch;
    border-radius: 0;
}

.service-card .service-name {
    min-width: 0;
    padding: 0;
    color: var(--phox-white);
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.service-card .service-description {
    margin-top: 0.23rem;
    color: var(--phox-muted);
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.35;
}

.service-card .service-icon {
    width: 2.6rem;
    height: 2.6rem;
    padding: 0.4rem;
    border: 1px solid rgb(241 61 43 / 0.26);
    border-radius: 0.6rem;
    background: rgb(241 61 43 / 0.12);
}

.service-card a.service-title-text::after {
    align-self: flex-start;
    margin: 0.2rem 0 0 0.5rem;
    color: var(--phox-white);
    font: 500 1rem / 1 "Golos Text", system-ui, sans-serif;
    content: "↗";
}

.service-card:has(a):hover,
.service-card:focus-within {
    border-color: var(--phox-red);
    background: #272322;
}

.service-card a:focus-visible,
.services-group > button:focus-visible {
    outline: 2px solid var(--phox-red);
    outline-offset: 2px;
}

#footer {
    margin-top: clamp(1.5rem, 4vw, 2.75rem);
    padding: 0.85rem 0 1.35rem;
    border-top: 1px solid var(--phox-line);
}

#footer #version {
    margin-top: 0.45rem;
}

@media (max-width: 760px) {
    .services-group .services-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    #information-widgets::after {
        background-position: right -0.95rem top 0.7rem;
        background-size: 8.75rem auto;
        opacity: 0.16;
    }

    .information-widget-greeting span {
        max-width: none;
    }

    .services-group .services-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.6rem;
    }

    .service-card .service-title {
        min-height: 5.4rem;
        padding: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-card {
        transition: none;
    }
}
