/* ============================================================
   THEMATICERS
   ============================================================ */

:root {
    --bg-0:  #0B0F15;
    --bg-1:  #0E1218;
    --bg-2:  #141B26;
    --bg-3:  #1A2332;
    --space-deep: #070B18;
    --space-mid:  #0C1226;
    --space-soft: #101A33;

    --light-0:  #F2EDE4;
    --light-1:  #EDE6D9;
    --ink:      #1A1F26;
    --ink-soft: rgba(26, 31, 38, 0.72);
    --ink-mute: rgba(26, 31, 38, 0.45);

    --gold:           #C9A961;
    --gold-soft:      #D4B77A;
    --gold-glow:      #E8D5A1;
    --gold-dark:      #B8944E;
    --gold-dark-soft: #A6823D;

    --text:      #F5F2EC;
    --text-soft: rgba(245, 242, 236, 0.72);
    --text-mute: rgba(245, 242, 236, 0.45);

    --line:      rgba(201, 169, 97, 0.22);
    --line-soft: rgba(245, 242, 236, 0.08);

    --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg-1);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { background: none; border: none; cursor: pointer; color: inherit; font-family: inherit; }

/* ═════════ КОСМИЧЕСКИЙ ФОН HERO ═════════ */
.hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 64px 40px;
    background:
        radial-gradient(ellipse 80% 60% at 75% 40%, rgba(30, 55, 120, 0.35) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 15% 80%, rgba(20, 40, 90, 0.30) 0%, transparent 65%),
        radial-gradient(ellipse 100% 80% at 50% 0%, rgba(15, 25, 55, 0.55) 0%, transparent 70%),
        linear-gradient(180deg, var(--space-deep) 0%, var(--space-mid) 45%, var(--bg-1) 100%);
    overflow: hidden;
}

/* Звёздное небо */
.stars {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.stars__layer {
    position: absolute;
    inset: -50%;
    background-repeat: repeat;
    will-change: background-position;
}

.stars__layer--far {
    background-image:
        radial-gradient(1px 1px at 20px 30px,    rgba(255,255,255,0.75), transparent 100%),
        radial-gradient(1px 1px at 120px 90px,   rgba(255,255,255,0.55), transparent 100%),
        radial-gradient(1px 1px at 250px 180px,  rgba(232,213,161,0.65), transparent 100%),
        radial-gradient(1px 1px at 380px 60px,   rgba(255,255,255,0.50), transparent 100%),
        radial-gradient(1px 1px at 480px 220px,  rgba(255,255,255,0.60), transparent 100%),
        radial-gradient(1px 1px at 560px 130px,  rgba(232,213,161,0.55), transparent 100%),
        radial-gradient(1px 1px at 640px 300px,  rgba(255,255,255,0.50), transparent 100%),
        radial-gradient(1px 1px at 90px  380px,  rgba(255,255,255,0.55), transparent 100%),
        radial-gradient(1px 1px at 300px 440px,  rgba(232,213,161,0.60), transparent 100%),
        radial-gradient(1px 1px at 520px 480px,  rgba(255,255,255,0.50), transparent 100%),
        radial-gradient(1px 1px at 700px 200px,  rgba(255,255,255,0.55), transparent 100%),
        radial-gradient(1px 1px at 180px 260px,  rgba(232,213,161,0.50), transparent 100%),
        radial-gradient(1px 1px at 420px 360px,  rgba(255,255,255,0.55), transparent 100%),
        radial-gradient(1px 1px at 620px 90px,   rgba(255,255,255,0.50), transparent 100%),
        radial-gradient(1px 1px at 60px  200px,  rgba(232,213,161,0.55), transparent 100%);
    background-size: 760px 560px;
    opacity: 0.9;
    animation: starDrift 260s linear infinite;
}

.stars__layer--mid {
    background-image:
        radial-gradient(1.6px 1.6px at 80px 120px,   rgba(255,255,255,0.95), transparent 100%),
        radial-gradient(1.4px 1.4px at 340px 60px,   rgba(232,213,161,0.95), transparent 100%),
        radial-gradient(1.8px 1.8px at 220px 320px,  rgba(255,255,255,0.90), transparent 100%),
        radial-gradient(1.4px 1.4px at 600px 200px,  rgba(255,255,255,0.85), transparent 100%),
        radial-gradient(1.5px 1.5px at 460px 420px,  rgba(232,213,161,0.90), transparent 100%),
        radial-gradient(1.4px 1.4px at 150px 500px,  rgba(255,255,255,0.85), transparent 100%),
        radial-gradient(1.6px 1.6px at 680px 360px,  rgba(255,255,255,0.90), transparent 100%),
        radial-gradient(1.4px 1.4px at 520px 40px,   rgba(232,213,161,0.85), transparent 100%);
    background-size: 760px 560px;
    opacity: 0.85;
    animation:
        starTwinkle 7s ease-in-out infinite alternate,
        starDrift 340s linear infinite reverse;
}

.stars__layer--near {
    background-image:
        radial-gradient(2.4px 2.4px at 100px 160px,  rgba(255,247,224,1), transparent 100%),
        radial-gradient(2px   2px   at 420px 280px,  rgba(255,247,224,0.95), transparent 100%),
        radial-gradient(2.2px 2.2px at 620px 480px,  rgba(232,213,161,1), transparent 100%),
        radial-gradient(2px   2px   at 260px 60px,   rgba(255,247,224,0.9), transparent 100%),
        radial-gradient(2.4px 2.4px at 700px 120px,  rgba(232,213,161,0.95), transparent 100%),
        radial-gradient(2px   2px   at 40px  420px,  rgba(255,247,224,0.9), transparent 100%);
    background-size: 820px 620px;
    opacity: 0.95;
    filter: drop-shadow(0 0 3px rgba(232,213,161,0.7));
    animation:
        starTwinkle 5s ease-in-out infinite alternate,
        starDrift 420s linear infinite;
}

@keyframes starDrift {
    from { background-position: 0 0; }
    to   { background-position: 760px 560px; }
}
@keyframes starTwinkle {
    from { opacity: 0.5; }
    to   { opacity: 1; }
}

/* ═════════ ОРБИТЫ ═════════ */
.orbits {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.orbits svg { width: 100%; height: 100%; display: block; }

.orbit {
    fill: none;
    stroke: #C9A961;
    stroke-width: 0.8;
    opacity: 0.13;
}

.orbit-sun {
    fill: #C9A961;
    opacity: 0.6;
}

.planet-halo {
    fill: #E8D5A1;
    opacity: 0.10;
    filter: blur(6px);
}

.planet {
    fill: #C9A961;
    opacity: 0.9;
}

.planet-body {
    fill: #C9A961;
    opacity: 0.95;
}
.planet-shade {
    fill: #05070F;
    opacity: 0.55;
}
.planet-glint {
    fill: #FFF7E0;
    opacity: 0.85;
}

.orbit-planet {
    animation: orbitSpin 80s linear infinite;
    transform-origin: 0 0;
}
.orbit-planet--1 { animation-duration: 60s;  --r: 360; }
.orbit-planet--2 { animation-duration: 100s; animation-direction: reverse; --r: 520; }
.orbit-planet--3 { animation-duration: 75s;  animation-delay: -20s; --r: 700; }
.orbit-planet--4 { animation-duration: 120s; animation-direction: reverse; animation-delay: -40s; --r: 470; }
.orbit-planet--5 { animation-duration: 90s;  animation-delay: -10s; --r: 620; }
.orbit-planet--6 { animation-duration: 140s; animation-direction: reverse; animation-delay: -60s; --r: 300; }

.orbit-planet {
    transform: rotate(0deg) translateX(var(--r)) rotate(0deg);
}

@keyframes orbitSpin {
    from { transform: rotate(0deg) translateX(var(--r)) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(var(--r)) rotate(-360deg); }
}

/* ═════════ ТЕМА ═════════ */
.theme-light {
    background: var(--light-0);
    color: var(--ink);
}
.theme-light .section__num   { color: var(--gold-dark); }
.theme-light .section__title { color: var(--ink); }
.theme-light .section__subtitle { color: var(--gold-dark-soft); }

/* ═════════ NAV ═════════ */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    margin: 0 -64px;
    padding: 16px 64px;
    background: rgba(255, 255, 255, 0.028);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__brand { display: flex; align-items: center; }

.nav__brand-text {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--text-soft);
    font-weight: 400;
}

.nav__list { display: flex; justify-content: flex-end; gap: 40px; }

.nav__list a {
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--text-soft);
    font-weight: 300;
    position: relative;
    padding-bottom: 4px;
    transition: color .4s var(--ease);
}
.nav__list a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width .5s var(--ease);
}
.nav__list a:hover { color: var(--text); }
.nav__list a:hover::after { width: 100%; }

/* ═════════ HERO CONTENT ═════════ */
.hero__center {
    position: relative;
    z-index: 3;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 16px 0;
}

.eyebrow {
    margin: 0 0 28px;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: var(--gold-soft);
    opacity: 0.9;
    animation: fadeUp 1.1s var(--ease) both;
}

.hero__title {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: clamp(34px, 5.4vw, 84px);
    line-height: 1.02;
    letter-spacing: -0.012em;
    color: var(--text);
    animation: fadeUp 1.1s .1s var(--ease) both;
}

.hero__title-line { display: block; }

.hero__title-line--accent {
    font-style: italic;
    color: var(--gold);
    padding: 0 0.02em;
}

.hero__rule {
    width: 56px; height: 1px;
    background: var(--gold);
    margin: 32px 0 28px;
    opacity: 0.85;
    animation: lineGrow 1.2s .4s var(--ease) both;
    transform-origin: center;
}

.hero__subtitle {
    margin: 0;
    max-width: 620px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-soft);
    font-weight: 300;
    animation: fadeUp 1.1s .3s var(--ease) both;
}
.hero__subtitle em {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 26px;
    color: var(--gold-soft);
}

/* ═════════ ДИАГРАММА ═════════ */
.diagram-screen {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 64px;
}
.diagram-screen__inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.diagram-screen__intro {
    margin: 0 0 32px;
}
.diagram-screen__title {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: clamp(26px, 3vw, 44px);
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -0.005em;
    white-space: nowrap;
}
.diagram-screen__title em {
    font-style: italic;
    color: var(--gold-dark);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15em;
    margin-left: 0.15em;
}

.diagram-screen__svg {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
}
.diagram-screen__svg svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.diagram-human {
    transform-origin: 140px 260px;
    animation: corePulse 7s ease-in-out infinite;
    animation-delay: .8s;
}
.diagram-core {
    transform-origin: 1080px 260px;
    animation: corePulse 6s ease-in-out infinite;
}

.dline {
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    animation:
        drawLine 1.8s var(--ease) forwards,
        lineBreath 5.5s ease-in-out infinite 2.6s;
}
.dline:nth-child(1)  { animation-delay: 0.4s, 2.6s; }
.dline:nth-child(2)  { animation-delay: 0.5s, 2.9s; }
.dline:nth-child(3)  { animation-delay: 0.6s, 3.2s; }
.dline:nth-child(4)  { animation-delay: 0.7s, 3.5s; }
.dline:nth-child(5)  { animation-delay: 0.8s, 2.7s; }
.dline:nth-child(6)  { animation-delay: 0.9s, 3.0s; }
.dline:nth-child(7)  { animation-delay: 1.0s, 3.3s; }
.dline:nth-child(8)  { animation-delay: 1.1s, 3.6s; }
.dline:nth-child(9)  { animation-delay: 1.2s, 2.8s; }
.dline:nth-child(10) { animation-delay: 1.3s, 3.1s; }
.dline:nth-child(11) { animation-delay: 1.4s, 3.4s; }
.dline:nth-child(12) { animation-delay: 1.5s, 3.7s; }
.dline:nth-child(13) { animation-delay: 1.6s, 2.9s; }
.dline:nth-child(14) { animation-delay: 1.7s, 3.2s; }

.diagram-labels,
.diagram-dots,
.diagram-dots-left,
.diagram-dots-right {
    opacity: 0;
    animation: labelsFade 1.4s var(--ease) forwards;
    animation-delay: 2.0s;
}

/* ═════════ ОБЩИЕ СЕКЦИИ ═════════ */
.section {
    position: relative;
    z-index: 2;
    padding: 90px 64px;
}
.section > * { max-width: 1400px; margin-left: auto; margin-right: auto; }

/* Тёмные секции — синева как на hero */
.services,
.contacts {
    background:
        radial-gradient(ellipse 90% 60% at 80% 20%, rgba(30, 55, 120, 0.22) 0%, transparent 65%),
        radial-gradient(ellipse 70% 60% at 10% 90%, rgba(20, 40, 90, 0.20) 0%, transparent 70%),
        linear-gradient(180deg, var(--bg-1) 0%, var(--space-mid) 50%, var(--bg-1) 100%);
}

.section__head { max-width: 780px; margin-bottom: 72px; }
.section__head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.section__head--split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    max-width: 1400px;
}
.section__head--split > div:first-child { max-width: 780px; }

.section__num {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    color: var(--gold);
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}

.section__title {
    margin: 0 0 20px;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: clamp(34px, 4.4vw, 64px);
    line-height: 1.08;
    color: var(--text);
}

.section__subtitle {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 24px;
    line-height: 1.4;
    color: var(--gold-soft);
}

.section__invite {
    margin: 28px auto 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-soft);
    max-width: 640px;
}
.section__invite em {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 22px;
    color: var(--gold-soft);
    letter-spacing: 0.005em;
}

/* ═════════ УСЛУГИ ═════════ */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line-soft);
    border-left: 1px solid var(--line-soft);
}

.service {
    position: relative;
    padding: 44px 38px 48px;
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    transition: background-color .6s var(--ease);
}
.service:hover { background-color: rgba(201, 169, 97, 0.03); }

.service::before {
    content: "";
    position: absolute;
    top: -1px; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width .7s var(--ease);
}
.service:hover::before { width: 100%; }

.service__num {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 12px;
    color: var(--gold);
    letter-spacing: 0.08em;
    margin-bottom: 24px;
    opacity: 0.75;
}
.service__title {
    margin: 0 0 18px;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 25px;
    line-height: 1.2;
    color: var(--text);
}
.service__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-soft);
}

/* ═════════ РАЗРАБОТКИ — светлая секция, тёмные карточки с синевой ═════════ */
.works .section__head {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 56px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.works__accent {
    margin: 14px 0 0;
    font-family: 'Playfair Display', serif;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.35;
    color: var(--ink);
    letter-spacing: -0.008em;
    max-width: 820px;
}
.works__accent strong {
    font-weight: 400;
}
.works__accent em {
    color: var(--gold-dark);
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05em;
}

.works .slider__arrows {
    margin-top: 24px;
    align-self: flex-end;
}

.works-slider {
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
}

.works-slider__track {
    display: flex;
    gap: 24px;
    transition: transform .7s var(--ease);
    will-change: transform;
    padding: 4px 0 20px;
}

.work {
    position: relative;
    flex: 0 0 calc((100% - 48px) / 3);
    display: flex;
    flex-direction: column;
    padding: 44px 42px 46px;
    background:
        radial-gradient(ellipse 100% 80% at 50% 0%, rgba(30, 55, 120, 0.35) 0%, transparent 70%),
        linear-gradient(180deg, var(--space-mid) 0%, var(--bg-1) 100%);
    border: 1px solid rgba(201, 169, 97, 0.22);
    transition: border-color .6s var(--ease), background-color .6s var(--ease);
    min-height: 320px;
}
.work:hover {
    border-color: rgba(201, 169, 97, 0.55);
    background:
        radial-gradient(ellipse 100% 80% at 50% 0%, rgba(40, 75, 170, 0.45) 0%, transparent 70%),
        linear-gradient(180deg, #101A33 0%, #0E1218 100%);
}

.work__meta {
    display: block;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-soft);
    margin-bottom: 22px;
    opacity: 0.85;
}
.work__title {
    margin: 0 0 18px;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 1.15;
    color: var(--text);
}
.work__text {
    margin: 0 0 26px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-soft);
    max-width: 440px;
}
.work__link {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: auto;
    opacity: 0.75;
}

.slider__arrows { display: flex; gap: 12px; }
.slider__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    border: 1px solid var(--gold-dark);
    color: var(--gold-dark);
    transition: background-color .5s var(--ease), color .5s var(--ease);
}
.slider__arrow:hover {
    background: var(--gold-dark);
    color: var(--light-0);
}
.slider__arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: transparent;
    color: var(--gold-dark);
}

/* ═════════ КОНТАКТЫ ═════════ */
.contacts__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line-soft);
    border-left: 1px solid var(--line-soft);
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 36px 32px 40px;
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    transition: background-color .6s var(--ease);
}
.contact-card:hover { background-color: rgba(201, 169, 97, 0.035); }

.contact-card::before {
    content: "";
    position: absolute;
    top: -1px; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width .7s var(--ease);
}
.contact-card:hover::before { width: 100%; }

.contact-card--static { cursor: default; }
.contact-card--static::before { display: none; }
.contact-card--static:hover { background-color: transparent; }

.contact-card__label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-soft);
    margin-bottom: 20px;
    opacity: 0.85;
}
.contact-card__value {
    display: block;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.25;
    color: var(--text);
    margin-bottom: 14px;
    word-break: break-word;
}
.contact-card__hint {
    display: block;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-mute);
    margin-top: auto;
}

/* ═════════ FOOTER — однотонный ═════════ */
.footer {
    position: relative;
    z-index: 2;
    padding: 40px 64px 32px;
    border-top: 1px solid var(--line-soft);
    background: var(--bg-1);
}
.footer__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-mute);
}

/* ═════════ АНИМАЦИИ ═════════ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes lineGrow {
    from { transform: scaleX(0); opacity: 0; }
    to   { transform: scaleX(1); opacity: 0.85; }
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes labelsFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes corePulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.025); }
}
@keyframes lineBreath {
    0%, 100% { opacity: 0.55; }
    50%      { opacity: 1; }
}

/* ═════════ АДАПТИВ ═════════ */
@media (max-width: 1100px) {
    .hero { padding: 0 40px 32px; }
    .nav { margin: 0 -40px; padding: 14px 40px; }
    .diagram-screen { padding: 40px 40px; }
    .section { padding: 72px 40px; }
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .service { padding: 40px 32px 44px; }
    .work { flex: 0 0 calc((100% - 24px) / 2); }
    .contacts__grid { grid-template-columns: repeat(2, 1fr); }
    .footer { padding: 32px 40px 26px; }
}

@media (max-width: 760px) {
    .hero { padding: 0 22px 28px; }
    .nav { margin: 0 -22px; padding: 12px 22px; }
    .nav__list { display: none; }

    .orbits { display: none; }
    .stars__layer--mid,
    .stars__layer--near { display: none; }

    .eyebrow { font-size: 9px; letter-spacing: 0.24em; margin-bottom: 22px; }
    .hero__rule { margin: 24px 0 20px; }
    .hero__subtitle { font-size: 14px; }
    .hero__subtitle em { font-size: 22px; }

    .diagram-screen { min-height: auto; padding: 60px 22px; }
    .diagram-screen__intro { margin-bottom: 22px; }
    .diagram-screen__title {
        font-size: 20px;
        white-space: normal;
    }

    .section { padding: 60px 22px; }
    .section__head { margin-bottom: 48px; }
    .section__title { font-size: 32px; }
    .section__subtitle { font-size: 20px; }
    .section__invite em { font-size: 18px; }

    .works .section__head { margin-bottom: 36px; }
    .works__accent { font-size: 17px; margin-top: 12px; }
    .works .slider__arrows { align-self: flex-start; margin-top: 20px; }

    .services__grid { grid-template-columns: 1fr; }
    .service { padding: 32px 26px 36px; }
    .service__title { font-size: 22px; }

    .work { flex: 0 0 100%; padding: 32px 26px 36px; min-height: auto; }
    .work__title { font-size: 24px; }

    .contacts__grid { grid-template-columns: 1fr; }
    .contact-card { padding: 28px 26px 30px; }
    .contact-card__value { font-size: 18px; }

    .footer { padding: 28px 22px 22px; }
    .footer__inner { font-size: 10px; letter-spacing: 0.14em; text-align: center; }
}