/*
Theme Name: IzyApp Studio 2.1
Theme URI: https://izyapp.ru/
Author: IzyApp
Description: Фирменный сайт студии IzyApp с интерактивным каталогом приложений.
Version: 2.1.0
Text Domain: izyapp-modern
*/

:root {
  --paper: #ece8df;
  --paper-light: #f6f2e9;
  --ink: #171613;
  --ink-soft: #36342f;
  --muted: #716d64;
  --bronze: #9b7651;
  --bronze-light: #d1b48e;
  --forest: #26352b;
  --line: rgba(23, 22, 19, .16);
  --light-line: rgba(255, 255, 255, .16);
  --container: 1320px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: .18;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 4px; }
.container { width: min(calc(100% - 64px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 2000; padding: 12px 18px; border-radius: 100px; background: white; color: var(--ink); }
.skip-link:focus { top: 16px; }
.scroll-progress { position: fixed; inset: 0 auto auto 0; z-index: 1001; width: var(--scroll, 0%); height: 2px; background: var(--bronze-light); pointer-events: none; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; padding: 22px 0; color: white; transition: padding .4s var(--ease), color .4s, transform .4s; }
.site-header.is-scrolled { padding: 10px 0; color: var(--ink); }
.nav-shell { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 9px 11px 9px 16px; border: 1px solid transparent; border-radius: 100px; transition: background .4s, border-color .4s, box-shadow .4s; }
.site-header.is-scrolled .nav-shell { border-color: var(--line); background: rgba(236,232,223,.88); box-shadow: 0 14px 50px rgba(28,24,18,.12); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 500; letter-spacing: -.055em; }
.brand-mark { position: relative; display: block; width: 32px; height: 32px; border: 2px solid currentColor; border-radius: 8px; transform: rotate(0deg); }
.brand-mark::before { content: ""; position: absolute; width: 22px; height: 2px; left: 3px; top: 13px; background: currentColor; transform: rotate(-45deg); }
.brand-mark::after { content: ""; position: absolute; right: -3px; top: -3px; width: 11px; height: 11px; border-top: 4px solid currentColor; border-right: 4px solid currentColor; background: transparent; }
.main-nav { display: flex; align-items: center; gap: 34px; font-size: 13px; letter-spacing: .04em; }
.main-nav a { position: relative; opacity: .82; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: currentColor; transition: right .35s var(--ease); }
.main-nav a:hover { opacity: 1; }
.main-nav a:hover::after { right: 0; }
.header-cta, .button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 48px; padding: 0 22px; border: 1px solid currentColor; border-radius: 100px; font-size: 13px; font-weight: 600; letter-spacing: .02em; transition: transform .3s var(--ease), background .3s, color .3s; }
.header-cta:hover, .button:hover { transform: translateY(-3px); background: white; color: var(--ink); }
.site-header.is-scrolled .header-cta:hover { background: var(--ink); color: white; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: currentColor; font-size: 0; }
.menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 17px; height: 1px; margin: 5px auto; background: var(--paper); }

.hero { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; color: white; background: #51483e; }
.hero-image { position: absolute; inset: -4%; z-index: -3; width: 108%; height: 108%; max-width: none; object-fit: cover; object-position: center; transform: translate3d(var(--hero-x, 0), var(--hero-y, 0), 0) scale(1.03); transition: transform .2s linear; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(10,9,8,.24) 0%, rgba(10,9,8,.04) 38%, rgba(10,9,8,.76) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; box-shadow: inset 0 0 180px rgba(0,0,0,.25); pointer-events: none; }
.hero-content { display: grid; grid-template-rows: 1fr auto; min-height: 100svh; padding-top: 152px; padding-bottom: 55px; }
.hero-intro { align-self: end; max-width: 870px; padding-bottom: 70px; }
.hero-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 11px; letter-spacing: .17em; text-transform: uppercase; }
.hero-kicker i { width: 30px; height: 1px; background: currentColor; }
.hero h1 { margin: 0; font-size: clamp(57px, 7.2vw, 112px); font-weight: 440; line-height: .83; letter-spacing: -.07em; text-shadow: 0 8px 40px rgba(0,0,0,.16); }
.hero h1 em { color: #e4cba9; letter-spacing: -.045em; }
.hero-bottom { display: grid; grid-template-columns: minmax(260px, 560px) auto; align-items: end; justify-content: space-between; gap: 40px; border-top: 1px solid rgba(255,255,255,.36); padding-top: 26px; }
.hero-bottom p { max-width: 520px; margin: 0; color: rgba(255,255,255,.82); font-size: 16px; }
.round-link { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; width: 172px; height: 72px; padding: 0 20px; border: 1px solid rgba(255,255,255,.65); border-radius: 100px; font-size: 12px; line-height: 1.1; text-transform: uppercase; letter-spacing: .05em; transition: background .3s, color .3s, transform .3s; }
.round-link b { font-size: 20px; }
.round-link:hover { transform: translateY(-4px); background: white; color: var(--ink); }
.hero-index { position: absolute; top: 50%; right: 24px; font-size: 9px; letter-spacing: .16em; writing-mode: vertical-rl; transform: translateY(-50%); opacity: .58; }

.section { padding: 150px 0; }
.section-code { margin-bottom: 40px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; }
.section-code.light { color: rgba(255,255,255,.5); }
.manifesto { background: var(--paper-light); }
.manifesto-grid { display: grid; grid-template-columns: 1fr 3fr; gap: 60px; }
.manifesto-lead { max-width: 1050px; margin-bottom: 90px; font-size: clamp(48px, 6.2vw, 94px); font-weight: 420; line-height: .98; letter-spacing: -.06em; }
.manifesto-lead em { color: var(--bronze); }
.manifesto-details { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: end; }
.manifesto-details > p { max-width: 440px; margin: 0; color: var(--muted); font-size: 17px; }
.studio-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.studio-facts div { padding: 22px 18px 0 0; border-right: 1px solid var(--line); }
.studio-facts div + div { padding-left: 18px; }
.studio-facts div:last-child { border-right: 0; }
.studio-facts strong { display: block; margin-bottom: 7px; font-size: clamp(34px, 4vw, 56px); font-weight: 450; letter-spacing: -.06em; }
.studio-facts span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }

.projects { background: var(--paper); }
.section-head { display: grid; grid-template-columns: 1fr 360px; align-items: end; gap: 60px; margin-bottom: 70px; }
.section-head .section-code { margin-bottom: 24px; }
.section-head h2 { margin: 0; font-size: clamp(53px, 6.2vw, 92px); font-weight: 430; line-height: .9; letter-spacing: -.065em; }
.section-head h2 em { color: var(--bronze); }
.section-head > p { margin: 0 0 8px; color: var(--muted); }
.filter-row { display: flex; gap: 8px; margin-bottom: 34px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-button { flex: 0 0 auto; padding: 11px 16px; border: 1px solid var(--line); border-radius: 100px; background: transparent; color: var(--ink); cursor: pointer; font-size: 12px; transition: background .25s, color .25s; }
.filter-button sup { margin-left: 5px; opacity: .6; }
.filter-button:hover, .filter-button.is-active { background: var(--ink); color: var(--paper-light); }
.apps-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; perspective: 1200px; }
.app-card { position: relative; grid-column: span 4; display: flex; flex-direction: column; min-height: 410px; overflow: hidden; padding: 28px; border: 1px solid var(--line); border-radius: 3px; background: rgba(246,242,233,.58); transform: translate3d(0,0,0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .5s var(--ease), background .35s, color .35s, border-color .35s, opacity .3s; }
.app-card:nth-child(7n+1), .app-card:nth-child(7n+5) { grid-column: span 5; }
.app-card:nth-child(7n+2), .app-card:nth-child(7n+6) { grid-column: span 7; }
.app-card::after { content: ""; position: absolute; inset: auto -30% -70% 40%; width: 350px; height: 350px; border-radius: 50%; background: rgba(155,118,81,.1); filter: blur(3px); transition: transform .6s var(--ease); }
.app-card:hover { z-index: 2; border-color: var(--ink); background: var(--ink); color: var(--paper-light); }
.app-card:hover::after { transform: translate(-25%, -24%) scale(1.2); background: rgba(209,180,142,.12); }
.app-card[hidden] { display: none; }
.app-card-number { position: absolute; top: 20px; right: 24px; color: var(--muted); font-family: Georgia, serif; font-size: 13px; }
.app-top { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; }
.app-icon { width: 84px; height: 84px; border-radius: 22px; object-fit: cover; box-shadow: 0 16px 40px rgba(22,18,13,.18); transition: transform .55s var(--ease); }
.app-card:hover .app-icon { transform: translateZ(30px) rotate(-4deg) scale(1.06); }
.icon-fallback { display: grid; place-items: center; background: var(--bronze); color: white; font-family: Georgia, serif; font-size: 35px; }
.app-arrow { display: grid; place-items: center; width: 48px; height: 48px; margin-top: 42px; border: 1px solid currentColor; border-radius: 50%; font-size: 20px; transition: transform .45s var(--ease), background .3s, color .3s; }
.app-card:hover .app-arrow { transform: rotate(45deg); background: var(--paper-light); color: var(--ink); }
.app-body { position: relative; z-index: 1; margin-top: auto; padding-top: 50px; }
.app-card h3 { margin-bottom: 12px; font-size: clamp(27px, 3vw, 42px); font-weight: 470; line-height: .98; letter-spacing: -.055em; }
.app-card p { max-width: 460px; margin-bottom: 25px; color: var(--muted); font-size: 14px; transition: color .3s; }
.app-card:hover p { color: rgba(246,242,233,.66); }
.app-meta { position: relative; z-index: 1; display: flex; gap: 7px; }
.app-meta span { padding: 6px 9px; border: 1px solid currentColor; border-radius: 100px; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }

.craft { position: relative; overflow: hidden; background: var(--forest); color: var(--paper-light); }
.craft::before { content: ""; position: absolute; width: 760px; height: 760px; right: -260px; top: -260px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 120px rgba(255,255,255,.018), 0 0 0 240px rgba(255,255,255,.012); }
.craft-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; align-items: start; }
.craft-title { position: sticky; top: 140px; }
.craft-title > span { display: block; margin-bottom: 24px; color: var(--bronze-light); font-size: 11px; text-transform: uppercase; letter-spacing: .15em; }
.craft-title h2 { margin: 0; font-size: clamp(58px, 7vw, 104px); font-weight: 410; line-height: .86; letter-spacing: -.065em; }
.craft-title em { color: var(--bronze-light); }
.craft-list { border-top: 1px solid var(--light-line); }
.craft-list article { display: grid; grid-template-columns: 60px 1fr; gap: 25px; min-height: 210px; padding: 34px 0; border-bottom: 1px solid var(--light-line); }
.craft-list article > span { color: var(--bronze-light); font-family: Georgia, serif; font-size: 13px; }
.craft-list h3 { margin-bottom: 14px; font-size: 27px; font-weight: 450; letter-spacing: -.035em; }
.craft-list p { max-width: 420px; margin: 0; color: rgba(246,242,233,.58); }

.news-section { background: var(--paper-light); }
.news-list { border-top: 1px solid var(--line); }
.news-card { display: grid; grid-template-columns: 50px 1fr 70px 48px; align-items: center; gap: 28px; min-height: 150px; padding: 24px 0; border-bottom: 1px solid var(--line); transition: padding .35s var(--ease), background .35s; }
.news-card:hover { padding-inline: 20px; background: rgba(155,118,81,.07); }
.news-index, .news-date { color: var(--muted); font-family: Georgia, serif; font-size: 12px; }
.news-source { display: block; margin-bottom: 9px; color: var(--bronze); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.news-card h3 { max-width: 880px; margin: 0; font-size: clamp(20px, 2.3vw, 32px); font-weight: 450; line-height: 1.12; letter-spacing: -.035em; }
.news-arrow { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; font-size: 18px; transition: transform .35s, background .35s, color .35s; }
.news-card:hover .news-arrow { transform: rotate(45deg); background: var(--ink); color: white; }
.news-status { margin: 22px 0 0; color: var(--muted); font-size: 11px; }
.news-empty { padding: 70px; border: 1px solid var(--line); }
.news-empty span { color: var(--bronze); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.news-empty h3 { max-width: 700px; margin: 20px 0 0; font-size: 36px; font-weight: 450; }

.closing-scene { position: relative; min-height: 78vh; display: grid; align-items: center; overflow: hidden; color: white; }
.closing-scene > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.03); }
.closing-shade { position: absolute; inset: 0; z-index: -1; background: rgba(14,13,11,.62); backdrop-filter: saturate(.7); }
.closing-content { padding-block: 100px; text-align: center; }
.closing-content > span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.closing-content h2 { margin: 28px auto 44px; font-family: Georgia, serif; font-size: clamp(50px, 7vw, 102px); font-weight: 400; line-height: .9; letter-spacing: -.05em; }
.light-button { gap: 45px; margin: auto; background: white; color: var(--ink); border-color: white; }
.light-button:hover { background: transparent; color: white; }

.site-footer { padding: 70px 0 30px; background: var(--ink); color: var(--paper-light); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 50px; }
.footer-brand { align-self: start; font-size: 34px; }
.footer-brand .brand-mark { width: 42px; height: 42px; }
.footer-brand .brand-mark::before { width: 29px; left: 4px; top: 18px; }
.footer-nav { display: grid; align-content: start; gap: 12px; color: rgba(255,255,255,.6); font-size: 14px; }
.footer-nav a:hover { color: white; }
.footer-contact { text-align: right; }
.footer-contact span { display: block; margin-bottom: 12px; color: rgba(255,255,255,.4); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.footer-contact a { font-family: Georgia, serif; font-size: 24px; }
.footer-bottom { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-top: 70px; padding-top: 24px; border-top: 1px solid var(--light-line); color: rgba(255,255,255,.4); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.footer-bottom > :nth-child(2) { text-align: center; }
.footer-bottom > :last-child { text-align: right; }

.content-page { min-height: 70vh; padding: 160px 0 110px; background: var(--paper-light); }
.content-page article { max-width: 900px; margin: auto; }
.content-page h1 { font-family: Georgia, serif; font-size: clamp(50px, 7vw, 94px); font-weight: 400; line-height: .95; letter-spacing: -.05em; }
.content-page a { color: var(--bronze); text-decoration: underline; }

[data-reveal] { opacity: 0; transform: translateY(45px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .manifesto-grid { grid-template-columns: 1fr; }
  .manifesto-grid > .section-code { margin-bottom: -10px; }
  .app-card, .app-card:nth-child(7n+1), .app-card:nth-child(7n+2), .app-card:nth-child(7n+5), .app-card:nth-child(7n+6) { grid-column: span 6; }
  .craft-grid { gap: 60px; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .site-header { padding: 10px 0; }
  .nav-shell { padding: 8px 9px 8px 13px; }
  .site-header:not(.is-scrolled) .nav-shell { background: rgba(15,14,12,.18); backdrop-filter: blur(10px); }
  .main-nav { position: absolute; top: calc(100% + 7px); left: 14px; right: 14px; display: grid; gap: 0; padding: 8px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper-light); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.18); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: .25s var(--ease); }
  .main-nav.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .main-nav a { padding: 13px; }
  .header-cta { display: none; }
  .menu-toggle { display: block; }
  .hero-image { inset: 0; width: 100%; height: 100%; object-position: 57% center; transform: none; }
  .hero-content { padding-top: 140px; padding-bottom: 28px; }
  .hero-intro { padding-bottom: 42px; }
  .hero h1 { font-size: clamp(52px, 16vw, 76px); }
  .hero-bottom { grid-template-columns: 1fr auto; gap: 20px; }
  .hero-bottom p { font-size: 13px; }
  .round-link { width: 64px; height: 64px; padding: 0; place-items: center; }
  .round-link span { display: none; }
  .hero-index { display: none; }
  .section { padding: 92px 0; }
  .manifesto-lead { margin-bottom: 55px; font-size: 48px; }
  .manifesto-details { grid-template-columns: 1fr; gap: 45px; }
  .studio-facts { gap: 0; }
  .studio-facts strong { font-size: 32px; }
  .studio-facts span { font-size: 8px; }
  .section-head { grid-template-columns: 1fr; gap: 25px; margin-bottom: 42px; }
  .section-head h2 { font-size: 53px; }
  .section-head > p { max-width: 460px; }
  .app-card, .app-card:nth-child(7n+1), .app-card:nth-child(7n+2), .app-card:nth-child(7n+5), .app-card:nth-child(7n+6) { grid-column: 1 / -1; min-height: 370px; }
  .craft-grid { grid-template-columns: 1fr; }
  .craft-title { position: static; }
  .craft-title h2 { font-size: 62px; }
  .news-card { grid-template-columns: 30px 1fr 42px; gap: 14px; min-height: 130px; }
  .news-date { display: none; }
  .news-arrow { width: 40px; height: 40px; }
  .news-card h3 { font-size: 20px; }
  .closing-scene { min-height: 68vh; }
  .closing-content h2 { font-size: 54px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; text-align: left; }
  .footer-bottom { grid-template-columns: 1fr; gap: 8px; margin-top: 40px; }
  .footer-bottom > :nth-child(2), .footer-bottom > :last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
