/* fiprotected studio: main stylesheet */
:root {
  --accent: #6d28d9;
  --accent-soft: #ede9fe;
  --ink: #18181b;
  --paper: #fafafa;
  --muted: #57534e;
  --line: #e7e5e4;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.025em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 76rem; margin: 0 auto; padding: 0 1.5rem; }

.skip-link { position: absolute; top: -5rem; left: 1rem; padding: .6rem 1rem; background: var(--ink); color: #ffffff; z-index: 10; }
.skip-link:focus { top: 1rem; }

.accent { color: var(--accent); }

/* header */
.header { padding: 1.5rem 0; }
.header__inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem 2rem; }
.logo { font-size: 1.6rem; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.logo__dot { color: var(--accent); }
.menu { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; margin: 0; padding: 0; list-style: none; }
.menu a { display: inline-block; padding: .5rem 0; text-decoration: none; font-weight: 500; }
.menu a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .3em; }

/* hero */
.hero { padding: clamp(3rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero h1 { max-width: 17ch; font-size: clamp(2.5rem, 7.2vw, 5.6rem); line-height: 1.02; }
.hero__lead { max-width: 38rem; margin-top: 1.75rem; color: var(--muted); font-size: clamp(1.1rem, 1.7vw, 1.35rem); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2.5rem; }
.pill {
  display: inline-flex; align-items: center; min-height: 48px; padding: .8rem 1.75rem;
  border-radius: 999px; background: var(--ink); color: #ffffff;
  font-weight: 700; text-decoration: none; transition: background-color .2s ease;
}
.pill:hover { background: var(--accent); }
.more { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--accent); padding: .25rem 0; }
.more:hover { color: var(--accent); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1.5rem; margin: clamp(3rem, 7vw, 5rem) 0 0; padding: 2rem 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--muted); }
.facts strong { display: block; color: var(--ink); font-size: clamp(2rem, 3.5vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--soft { background: var(--accent-soft); }
.section__title { margin-bottom: clamp(2rem, 4vw, 3.25rem); font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.1; }

.projects { display: grid; gap: 2.5rem 2rem; margin: 0; padding: 0; list-style: none; }
.project h3 { margin-top: 1.1rem; font-size: 1.3rem; line-height: 1.3; letter-spacing: -.015em; }
.project__meta { margin-top: .35rem; color: var(--muted); }
.project__cover { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; }
.project__cover--0 { background: radial-gradient(circle at 78% 28%, var(--accent) 0 22%, transparent 22.5%), var(--accent-soft); }
.project__cover--1 { background: repeating-linear-gradient(135deg, var(--accent) 0 22px, var(--accent-soft) 22px 44px); }
.project__cover--2 { background: radial-gradient(var(--ink) 1.6px, transparent 2px) 0 0 / 22px 22px, var(--accent-soft); }
.project__cover--3 { background: linear-gradient(115deg, var(--ink) 0 48%, var(--accent) 48% 100%); }
.project__screen { display: flex; flex-direction: column; gap: 10px; width: 58%; padding: 22px; border-radius: 14px; background: #ffffff; box-shadow: 0 24px 48px rgba(0, 0, 0, .18); }
.project__screen span { display: block; height: 10px; border-radius: 5px; background: var(--line); }
.project__screen span:first-child { width: 45%; height: 14px; background: var(--accent); }
.project__screen span:last-child { width: 70%; }

.services { margin: 0; padding: 0; list-style: none; counter-reset: service; }
.services li { display: grid; gap: .5rem 2rem; padding: 2rem 0; border-top: 1px solid rgba(0, 0, 0, .12); counter-increment: service; }
.services li:last-child { border-bottom: 1px solid rgba(0, 0, 0, .12); }
.services li::before { content: counter(service, decimal-leading-zero); color: var(--accent); font-weight: 800; font-size: 1.1rem; }
.services h3 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.2; }
.services p { max-width: 36rem; color: var(--ink); }

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem 3rem; }
.principles h3 { margin-bottom: .6rem; font-size: 1.35rem; }
.principles p { color: var(--muted); }

.quote { margin: clamp(3rem, 7vw, 5rem) 0 0; padding-left: 1.5rem; border-left: 4px solid var(--accent); }
.quote blockquote { margin: 0; }
.quote blockquote p { max-width: 46rem; font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 600; line-height: 1.4; letter-spacing: -.01em; }
.quote figcaption { margin-top: 1rem; color: var(--muted); }

.contacts { background: var(--ink); color: #ffffff; }
.contacts__title { font-size: clamp(2.4rem, 6.5vw, 5rem); line-height: 1.02; }
.contacts__text { max-width: 36rem; margin-top: 1.5rem; color: #d6d3d1; font-size: 1.15rem; }
.contacts__mail { display: inline-block; margin-top: 2.25rem; font-size: clamp(1.4rem, 4.2vw, 3rem); font-weight: 800; letter-spacing: -.03em; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: .12em; text-underline-offset: .18em; overflow-wrap: anywhere; }
.contacts__mail:hover { text-decoration-color: #ffffff; }
.contacts :focus-visible { outline-color: #ffffff; }

.not-found__code { margin-bottom: 1rem; color: var(--accent); font-size: 1.1rem; font-weight: 800; letter-spacing: .2em; }

/* footer */
.footer { padding: 2.5rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem 2rem; }
.footer__brand { color: var(--ink); font-size: 1.25rem; font-weight: 800; letter-spacing: -.04em; }
.footer a:hover { color: var(--accent); }

@media (min-width: 48rem) {
  .projects { grid-template-columns: repeat(2, 1fr); }
  .services li { grid-template-columns: 4rem 1fr 1.2fr; align-items: baseline; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
