/* ===== styles.css — Rukous-inspired redesign ===== */
@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #fff;
    --bg-card: #fff;
    --bg-card-2: #1e1e1e;
    --text: #1e1e1e;
    --text-muted: #1e1e1e;
    --text-secondary: #1e1e1e;
    --border: rgba(255,255,255,0.07);
    --accent: #1e1e1e;
    --line: rgba(30, 30, 30, 0.14);
    --glass: rgba(255, 255, 255, 0.18);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Urbanist', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ─────────────────────────────────────────
   HEADER / NAV
───────────────────────────────────────── */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.25rem 4%;
    border-bottom: 1px solid var(--line);
    isolation: isolate;
    background: #fff;
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--glass);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    pointer-events: none;
    z-index: -1;
}

nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
}

#mobileNav {
  display: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 28px; height: 28px;
    position: relative;
}

.logo-icon svg {
    width: 100%; height: 100%;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    justify-content: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}

/*.nav-links a:hover { color: var(--text); }*/

.nav-right {
    display: flex;
    justify-content: flex-end;
}

.contact-btn {
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  border: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: opacity 0.2s;

  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font-size: 0.875rem;
}

.contact-btn:hover { opacity: 0.88; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border);
    padding: 0.6rem;
    border-radius: 6px;
}

.menu-toggle span {
    width: 20px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    display: block;
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
    min-height: 100svh;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Blob background */
.hero-blobs {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
}

.blob-1 {
    width: 600px; height: 500px;
    background: radial-gradient(circle, #2a2a2a, transparent);
    top: -100px; left: -100px;
}

.blob-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #222, transparent);
    top: 100px; left: 200px;
    border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
}

.blob-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #1a1a1a, transparent);
    bottom: 100px; right: 200px;
    border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%;
}

.hero-inner {
    position: relative;
    z-index: 1;
    align-items: center;
    padding: 4rem 4% 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-left {}

.hero-headline {
    font-size: clamp(2.8rem, 5vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 2.5rem;
}

.hero-headline .muted { color: var(--text-muted); }
.hero-headline .bright { color: var(--text); }
.hero-headline .quoted {
    color: var(--text);
    font-style: italic;
}

.hero-cta {
    background: var(--text);
    color: var(--bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.9rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all 0.25s;
    margin-bottom: 3rem;
}

/*.hero-cta:hover {
    background: rgba(255,255,255,0.06);
    gap: 1rem;
    border-color: #1e1e1e;
    color: #1e1e1e;
}
*/
.hero-cta-btn:hover { opacity: 0.88; }

.hero-services {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-services span::before { content: '• '; }

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-mockup {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 4/3;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}

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

.hero-mockup-placeholder {
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Description below hero split */
.hero-bottom {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 0 4% 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 420px;
    margin-left: auto;
}

/* Big studio name */
.hero-big-name {
    position: relative;
    z-index: 1;
    padding: 0 0;
    overflow: hidden;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

.hero-big-name-text {
    font-size: clamp(5rem, 14vw, 13rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--text);
    white-space: nowrap;
    padding: 0.1em 4%;
    line-height: 1;
    text-transform: uppercase;
}

/* ─────────────────────────────────────────
   COMPANIES
───────────────────────────────────────── */
.companies {
    padding: 5rem 4%;
    border-top: 1px solid #1e1e1e;
    border-bottom: 1px solid #1e1e1e;
}

.companies-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.companies h3 {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.companies-grid {
    display: flex;
    gap: 3.5rem;
    flex-wrap: wrap;
    align-items: center;
    flex: 1;
}

.company-logo {
    opacity: 0.3;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    transition: opacity 0.2s;
    cursor: default;
}

.company-logo:hover { opacity: 0.6; }

/* ─────────────────────────────────────────
   SECTION HEADER
───────────────────────────────────────── */
.section-header {
    margin-bottom: 2rem;
}

.section-label {
    display: inline-block;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.section-header h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.section-header p {
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 500px;
    font-size: 0.95rem;
}

/* ─────────────────────────────────────────
   SERVICES
───────────────────────────────────────── */
.services {
    padding: 7rem 4%;
    border-bottom: 1px solid var(--border);
}

.services-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5px;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.service-card {
    background: var(--bg-card);
    padding: 3rem 2.5rem;
    border-right: 1px solid var(--border);
    transition: background 0.2s;
}

.service-card:last-child { border-right: none; }

.service-card:hover { background: var(--bg-card-2); }

.service-icon {
    font-size: 1.5rem;
    margin-bottom: 1.75rem;
    opacity: 0.8;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.learn-more {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.825rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
    display: inline-block;
}

.learn-more:hover {
    color: var(--text);
    border-color: rgba(255,255,255,0.3);
}

/* ─────────────────────────────────────────
   PROJECTS
───────────────────────────────────────── */
#projects,
#about,
#contact {
  scroll-margin-top: 50px; /* подстраховка под высоту шапки */
}

.tag-feature {
    margin-top: 0.1rem;
    display: inline-block;
    max-width: 90%;
    white-space: normal;
    word-break: break-word;
    background-color: #2255ff;
    color: #fff;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.35;
}

.projects {
    padding: 7rem 4%;
    padding-top: 4rem;
    border-bottom: 1px solid var(--border);
}

.projects-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    row-gap: 1.5rem;
    overflow: hidden;
}

.project-card {
    border: 1px solid #1e1e1e;
    background: var(--bg-card);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: background 0.25s;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.project-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: #0e0e0e;
    overflow: hidden;
    position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* фокус кадра (по умолчанию центр) */
  object-position: var(--focus-x, 50%) var(--focus-y, 50%);
  display: block;
  transition: transform 0.5s ease;
}
/*.project-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}
*/
.project-card:hover .project-image img {
    transform: scale(1.03);
}

.placeholder-img {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
    background: #0e0e0e;
    min-height: 200px;
}

.project-content {
    padding: 1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-year-type {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.project-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 0.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0;
}

.tag {
    background: #1e1e1e;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: 1px solid var(--border);
    text-transform: uppercase;
}

/* ─────────────────────────────────────────
   FAQ
───────────────────────────────────────── */
.faq {
    padding: 4.5rem 4%; /* было 7rem */
    border-bottom: 1px solid var(--border);
}

.faq-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(30, 30, 30, 0.18);
    border: 1px solid rgba(30, 30, 30, 0.18);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 2.25rem; /* было 4rem */
}

.faq-item {
    background: var(--bg-card);
    padding: 2rem 2rem;
    cursor: pointer;
    transition: background 0.2s;
    border: 0;
}

.faq-question {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.faq-number {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    margin-top: 3px;
    flex-shrink: 0;
}

.faq-q {
    flex: 1;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.faq-toggle {
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: transform 280ms ease, color 200ms;
    will-change: transform;
    flex-shrink: 0;
    margin-top: -2px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--text);
}

.faq-answer {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: height 400ms cubic-bezier(0.2, 0.8, 0.2, 1),
                opacity 200ms ease;
}

.faq-item.active .faq-answer { opacity: 1; }

.faq-answer-inner {
    padding: 1rem 0 0 2.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.75;
}

/* ─────────────────────────────────────────
   CTA / CONTACT
───────────────────────────────────────── */
.cta {
    padding: 7rem 4%;
    padding-bottom: 9rem;
    border-bottom: 1px solid var(--border);
}

.cta-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.cta h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.cta-left p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    background: #fff;
    border: 1px solid #0e0e0e;
    color: var(--text);
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.875rem;
    transition: border-color 0.2s;
    resize: none;
    outline: none;
}

/*.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(255,255,255,0.25);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group.full { grid-column: 1 / -1; }
*/
.submit-btn {
    width: 100%;
    background: var(--text);
    color: var(--bg);
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    margin-top: 1.25rem;
    transition: opacity 0.2s;
}

.submit-btn:hover { opacity: 0.88; }

/* Standalone CTA section in case pages */
section.cta:not(.cta-inner *) {
    text-align: center;
}


/* ─────────────────────────────────────────
   CASE PAGES
───────────────────────────────────────── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding-top: 110px;
    transition: color 0.2s, gap 0.2s;
}

.back-link:hover { color: var(--text); gap: 0.75rem; }

.case-header {
    padding: 2rem 0 3rem;
    border-bottom: 1px solid var(--border);
}

.case-meta {
    display: flex;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-bottom: 1.25rem;
}

.case-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.case-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 4rem;
}

.case-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.case-gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.case-gallery-item .placeholder-img {
    aspect-ratio: 16/9;
    min-height: unset;
}

.case-gallery-item--wide {
    grid-column: 1 / -1;
}

.case-description {
    max-width: 800px;
    margin: 0 auto;
}

.case-description h2 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 2.5rem 0 0.75rem;
}

.case-description p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.tech-stack {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin: 2rem 0;
}

.tech-stack h3 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.telegram-btn {
  width: 100%;
  background: var(--text);
  color: var(--bg);
  padding: 1rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition: opacity 0.2s;
}

.telegram-btn:hover { opacity: 0.88; }

.site-footer {
  padding: 2rem 4%;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;

  display: flex;
  flex-wrap: wrap;
  gap: 1rem;

  align-items: center;
  justify-content: space-between;
}

.footer-left {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.footer-links a:hover { opacity: 0.75; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-right { display: none; }

    .hero-bottom {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-desc { margin-left: 0; max-width: 100%; }

    .cta-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .services-grid { grid-template-columns: 1fr; }

    .service-card {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .service-card:last-child { border-bottom: none; }

    nav {
        grid-template-columns: 1fr auto;
    }

    .nav-links-wrap { display: none; }
    .menu-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 68px; left: 0; right: 0;

        background: rgba(255,255,255,0.95);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);

        flex-direction: column;
        padding: 1.25rem 4%;
        gap: 1rem;

        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;

        transition: all 0.25s;
        border-bottom: 1px solid var(--line);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
      #mobileNav {
        display: flex;
      }

      .nav-links-wrap {
        display: none;
      }
}

@media (max-width: 768px) {
    .projects-grid { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
    .faq-item { border-right: none; }

    .form-row { grid-template-columns: 1fr; }

    .hero-big-name-text {
        font-size: clamp(3rem, 12vw, 6rem);
    }

    .companies-inner { flex-direction: column; align-items: flex-start; gap: 2rem; }
    .companies-grid { gap: 2rem; }

    .case-gallery { grid-template-columns: 1fr; }
    .case-gallery-item--wide { grid-column: 1; }
    .case-meta { flex-direction: column; gap: 0.5rem; }
    .faq-grid {
        border-radius: 16px;
        overflow: hidden;
      }

      .faq-item:first-child {
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
      }

      .faq-item:last-child {
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
      }

}

@media (max-width: 480px) {
    .hero-headline { font-size: 2.4rem; }
    .hero-services { flex-direction: column; gap: 0.5rem; }
}
.case-page nav {
  grid-template-columns: 1fr auto;
}
.back-btn {
  cursor: pointer;
}