:root {
    --color-bg: #000b31;
    --color-black: #000000;
    --color-white: #ffffff;
    --color-accent: #ff8562;
    --container: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-white);
    font-family: "Manrope", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

.wp-site-blocks,
.entry-content,
.wp-block-post-content,
.wp-block-html {
    margin: 0 !important;
    padding: 0 !important;
}

.site-main > * {
    margin: 0 !important;
}

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

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    background: #000;
}

.site-header__inner {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 700;
}

.site-logo img {
    width: 42px;
    height: auto;
    display: block;
}

.site-nav {
    display: flex;
    gap: 34px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.site-nav a:hover {
    color: var(--color-accent);
}

.hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 110px 0 80px;
    background:
        linear-gradient(rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.38)),
        url('/wp-content/themes/aogalaktika-site/assets/images/ChatGPT_Image_17__20.png') center / cover no-repeat;
    text-align: center;
}

.hero__eyebrow {
    margin: 0 0 8px;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
}

.hero h1 {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(62px, 8vw, 108px);
    line-height: 0.92;
    font-weight: 700;
}

.hero__subtitle {
    margin: 28px auto 0;
    font-size: clamp(20px, 2.7vw, 32px);
    line-height: 1.28;
    font-weight: 300;
}

.about {
    padding: 86px 0 0;
    background:
        linear-gradient(rgba(0, 11, 49, 0.58), rgba(0, 11, 49, 0.72)),
        url('/wp-content/themes/aogalaktika-site/assets/images/ChatGPT_Image_19__20.png') center / cover no-repeat;
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}

.about__content {
    max-width: 980px;
    margin-inline: auto;
}

.about h2 {
    margin: 0 0 28px;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
}

.about p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
    line-height: 1.58;
}

.about strong {
    color: var(--color-white);
    font-weight: 800;
}

.about__image {
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.about__image img {
    width: min(100%, 760px);
    max-height: 610px;
    display: block;
    object-fit: contain;
}

.services {
    padding: 76px 0 86px;
    background:
        linear-gradient(rgba(0, 11, 49, 0.50), rgba(0, 0, 0, 0.70)),
        url('/wp-content/themes/aogalaktika-site/assets/images/ChatGPT_Image_19__20.png') center / cover no-repeat;
}

.services__title {
    margin: 0 0 50px;
    font-family: "Manrope", Arial, sans-serif;
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.2;
    font-weight: 700;
}

.services__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.service-item {
    border-top: 1px solid rgba(255, 255, 255, 0.62);
}

.service-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.62);
}

.service-item summary {
    position: relative;
    min-height: 68px;
    display: flex;
    align-items: center;
    padding: 18px 52px 18px 0;
    color: var(--color-white);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

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

.service-item summary::before,
.service-item summary::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 22px;
    height: 1px;
    background: var(--color-accent);
}

.service-item summary::after {
    transform: rotate(90deg);
}

.service-item[open] summary::after {
    opacity: 0;
}

.service-item__content {
    padding: 0 34px 32px 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.65;
}

.service-item__content ul {
    margin: 0;
    padding-left: 22px;
}

.service-item__content li + li {
    margin-top: 8px;
}

.contacts {
    padding: 82px 0 92px;
    background:
        linear-gradient(rgba(0, 11, 49, 0.50), rgba(0, 0, 0, 0.62)),
        url('/wp-content/themes/aogalaktika-site/assets/images/ChatGPT_Image_19__20.png') center / cover no-repeat;
}

.contacts__title {
    margin: 0 0 72px;
    color: var(--color-white);
    font-family: "Manrope", Arial, sans-serif;
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.15;
    font-weight: 700;
    text-align: center;
}

.contacts__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 42px 92px;
}

.contact-card {
    min-height: 166px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 38px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    background: rgba(0, 0, 0, 0.16);
    text-align: center;
}

.contact-card h3 {
    margin: 0 0 18px;
    color: var(--color-accent);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.contact-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 400;
}

.site-footer {
    padding: 34px 0;
    background: #000;
    color: var(--color-white);
    font-size: 14px;
}

.site-footer p {
    margin: 0 0 6px;
}

.site-footer a {
    color: var(--color-accent);
}

@media (max-width: 900px) {
    .services__grid,
    .contacts__cards {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contacts__cards {
        gap: 24px;
    }

    .site-header__inner {
        min-height: 70px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
    }

    .site-nav {
        width: 100%;
        gap: 18px;
        font-size: 12px;
        overflow-x: auto;
        padding-bottom: 6px;
    }
}

@media (max-width: 560px) {
    .about,
    .services,
    .contacts {
        padding-left: 0;
        padding-right: 0;
    }

    .about p,
    .service-item__content {
        font-size: 15px;
    }

    .service-item summary {
        font-size: 18px;
    }

    .contact-card {
        padding: 26px 22px;
    }

    .contact-card h3 {
        font-size: 21px;
    }

    .contact-card p {
        font-size: 16px;
    }
}

.about__image {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.about__image img {
    display: block !important;
    width: min(100%, 327px) !important;
    height: auto !important;
    max-height: none !important;
    border-radius: 0 !important;
    object-fit: contain !important;
    object-position: center top !important;
}

.about__grid {
    grid-template-columns: minmax(0, 1fr) 360px !important;
    gap: 64px !important;
    align-items: start !important;
}

.about__content {
    max-width: none !important;
}

.about h2 {
    text-align: center !important;
}

.about__image {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding-top: 44px !important;
}

.about__image img {
    display: block !important;
    width: 327px !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    border-radius: 0 !important;
    object-fit: contain !important;
}

@media (max-width: 900px) {
    .about__grid {
        grid-template-columns: 1fr !important;
    }

    .about__image {
        padding-top: 0 !important;
    }

    .about__image img {
        width: min(100%, 327px) !important;
    }
}

.text-accent {
    color: var(--color-accent) !important;
    font-weight: 800;
}

.about em {
    color: var(--color-white);
    font-style: italic;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    width: 34px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 6px 0;
    background: var(--color-white);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 760px) {
    .site-header__inner {
        min-height: 64px !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .site-logo img {
        width: 38px;
    }

    .site-logo span {
        font-size: 14px;
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 80;
    }

    .site-nav {
        position: fixed;
        inset: 64px 0 auto 0;
        z-index: 70;
        display: grid !important;
        gap: 0 !important;
        width: 100% !important;
        padding: 18px 16px 22px !important;
        background: rgba(0, 0, 0, 0.96);
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.22s ease, opacity 0.22s ease;
        overflow: visible !important;
    }

    .site-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .site-nav a {
        display: block;
        padding: 14px 0;
        font-size: 15px;
        font-weight: 600;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .site-nav a:last-child {
        border-bottom: 0;
    }
}

@media (min-width: 761px) {
    .site-nav {
        display: flex !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
    }
}

@media (max-width: 760px) {
    .site-header {
        height: 64px !important;
    }

    .site-header__inner {
        min-height: 64px !important;
        height: 64px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
    }

    .site-logo {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .site-logo img {
        width: 44px !important;
    }

    .site-logo span {
        font-size: 20px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .menu-toggle {
        display: block !important;
        flex: 0 0 auto !important;
        width: 28px !important;
        height: 22px !important;
        margin-left: auto !important;
    }

    .menu-toggle span {
        height: 2px !important;
        margin: 5px 0 !important;
    }

    .site-nav {
        position: fixed !important;
        top: 64px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 70 !important;

        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;

        width: 100% !important;
        padding: 10px 24px 16px !important;
        background: rgba(0, 0, 0, 0.98) !important;

        transform: translateY(-140%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;

        transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s ease !important;
    }

    .site-nav.is-open {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .site-nav a {
        display: block !important;
        padding: 14px 0 !important;
        font-size: 15px !important;
        line-height: 1.2 !important;
        text-align: center !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
    }

    .site-nav a:last-child {
        border-bottom: 0 !important;
    }

    .hero {
        padding-top: 64px !important;
    }
}
