@font-face {
    font-family: Yekan;
    src: url("yekan.woff2") format("woff2");
    font-display: swap;
}

:root {
    color-scheme: light;
    --paper: #f9f6ff;
    --ink: #251536;
    --muted: #5f506f;
    --primary: #631c9e;
    --accent: #8b197c;
    --line: #e5d9f1;
    --deep: #3c145e;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.8 Yekan, Tahoma, sans-serif; }
:lang(en) body { font-family: system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #d37de8; outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
.container { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 2; inset-block-start: .75rem; inset-inline-start: .75rem; transform: translateY(-200%); background: white; padding: .5rem 1rem; }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-content, .footer-content { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.header-content { min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font: 800 1.25rem/1 system-ui, sans-serif; letter-spacing: -.05em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #fff; background: var(--primary); font-size: 1.22rem; line-height: 1; }
.site-nav { display: flex; gap: 2rem; color: var(--muted); }
.site-nav a { padding-block: .5rem; }
.site-nav a:hover { color: var(--primary); }
.header-tools { display: flex; align-items: center; gap: .8rem; }
.header-link { border: 1px solid #d6bde9; border-radius: 999px; padding: .38rem .96rem; color: var(--primary); font-size: .92rem; }
.header-link:hover { background: #f0e4fb; }
.language-picker { display: flex; align-items: center; gap: .18rem; }
.language-picker a { display: grid; place-items: center; width: 32px; height: 30px; border: 1px solid transparent; border-radius: 7px; }
.language-picker a:hover, .language-picker [aria-current] { border-color: #d6bde9; background: #f0e4fb; }
.language-picker img { display: block; object-fit: cover; border-radius: 2px; }

.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 5.25rem); padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero-copy { padding-block: 1.5rem; }
.eyebrow { color: var(--primary); font-size: .95rem; font-weight: bold; display: flex; align-items: center; gap: .55rem; margin-block-end: .95rem; }
.eyebrow span { font-size: 1.35rem; line-height: 1; }
h1 { font-size: clamp(3rem, 6.45vw, 5.75rem); font-weight: 800; line-height: 1.19; letter-spacing: -.052em; }
:lang(en) h1 { font-size: clamp(2.85rem, 5.6vw, 5rem); }
h1 span { color: var(--accent); }
.intro { color: var(--muted); max-width: 26rem; margin-block: 1.15rem 1.5rem; font-size: clamp(1rem, 1.55vw, 1.16rem); }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .65rem 1.2rem; border-radius: 12px; font-weight: bold; transition: background-color .18s ease, box-shadow .18s ease; }
.button-primary { color: white; background: var(--primary); box-shadow: 0 6px 14px #631c9e28; }
.button-primary:hover { background: #50137f; }
.button-light { background: #f7ecff; color: #411465; }
.button-light:hover { background: #fff; }
.hero-art { overflow: hidden; border: 1px solid #e9dcf6; border-radius: clamp(1.25rem, 4vw, 2.4rem); background: #efe7fa; }
.hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }

.services { padding-block: 0 3.5rem; scroll-margin-block-start: 1.5rem; }
.services h2, .about h2 { font-size: clamp(1.45rem, 2.7vw, 2rem); line-height: 1.45; }
.services h2 { margin-block-end: 1rem; }
.service-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 1.15rem; }
.service-card { border-radius: 1.4rem; padding: clamp(1.2rem, 3vw, 2rem); min-width: 0; min-height: 228px; }
.service-card h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.4; }
.active-card { display: grid; grid-template-columns: 1.45fr 1fr; align-items: center; gap: .75rem; background: linear-gradient(135deg, #682484 0%, var(--deep) 70%); color: white; overflow: hidden; }
.status { display: inline-flex; align-items: center; gap: .4rem; color: #fff; background: #fff2; padding: .12rem .58rem; border-radius: 999px; font-size: .87rem; margin-block-end: .48rem; }
.status span { inline-size: 7px; block-size: 7px; background: #a6f5c6; border-radius: 50%; }
.active-card p { margin-block: .45rem .85rem; color: #f4e6fc; max-width: 22rem; }
.message-art { min-width: 0; display: grid; justify-items: center; align-content: center; gap: .5rem; }
.message-sparkle { color: #e4a8ff; font-size: 1.65rem; line-height: 1; justify-self: end; margin-inline-end: 10%; }
.message { display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px #250d4670; }
.message-one { padding: .7rem 1rem; color: #51156b; background: #f1d6ff; border-radius: 15px 15px 3px 15px; transform: rotate(-9deg); font-size: clamp(.8rem, 1.4vw, 1rem); font-weight: bold; white-space: nowrap; }
.message-two { gap: .28rem; color: white; background: #a746b2; width: 65px; height: 35px; border-radius: 12px 12px 12px 3px; transform: rotate(10deg); margin-inline-start: 30%; }
.message-two i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.upcoming-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; border: 1px solid var(--line); background: #f1e9fa; }
.upcoming-mark, .about-mark { display: grid; place-items: center; border-radius: 14px; flex: none; width: 49px; height: 49px; color: var(--primary); background: #e7d7f7; font-size: 1.6rem; line-height: 1; }
.upcoming-mark { margin-block-end: .75rem; }
.upcoming-label { color: var(--primary); font-size: .88rem; font-weight: bold; }
.upcoming-card p, .about p { margin-block-start: .35rem; color: var(--muted); }
.about { display: flex; align-items: flex-start; gap: 1rem; padding-block: 1.5rem 3rem; border-top: 1px solid var(--line); }
.telegram-link { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .35rem; margin-block-start: .8rem; color: var(--primary); font-weight: bold; text-decoration: underline; text-underline-offset: .2em; }
.telegram-link:hover { color: var(--accent); }
.site-footer { border-top: 1px solid var(--line); }
.footer-content { min-height: 79px; color: var(--muted); font-size: .9rem; }
.footer-content .brand { color: var(--ink); font-size: 1.05rem; }
.footer-content .brand-mark { width: 29px; height: 29px; border-radius: 9px; }

@media (max-width: 780px) {
    .container { width: calc(100% - 36px); }
    .header-link { display: none; }
    .hero { gap: 1.5rem; }
    .service-grid { grid-template-columns: 1fr; }
    .upcoming-card { min-height: 0; }
}

@media (max-width: 550px) {
    .header-content { display: grid; grid-template-columns: 1fr auto; gap: .15rem .7rem; padding-block: .65rem .28rem; }
    .header-content .brand { font-size: 1.03rem; }
    .site-nav { grid-row: 2; grid-column: 1 / -1; gap: 1.1rem; font-size: .88rem; }
    .site-nav a { padding-block: .3rem; }
    .header-tools { grid-row: 1; grid-column: 2; }
    .hero { grid-template-columns: 1fr; padding-block: 1.6rem 2.5rem; gap: 1.2rem; }
    .hero-copy { padding-block: .5rem; }
    .hero-art { max-width: 460px; }
    .services { padding-block-end: 2rem; }
    .active-card { grid-template-columns: 1.45fr 1fr; }
    .active-card .button { text-align: center; }
    .message-one { padding-inline: .45rem; }
    .about { padding-block-end: 2rem; }
}

@media (max-width: 345px) {
    .active-card { grid-template-columns: 1fr; }
    .message-art { display: none; }
}

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