/* Skill Port — минимальная вёрстка */
:root {
  --bg: #0f1419;
  --surface: #1a222d;
  --text: #e8edf3;
  --muted: #8b9aab;
  --accent: #3d9ee5;
  --accent-dim: #2a6fa8;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 920px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(61, 158, 229, 0.12), transparent 50%);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 20, 25, 0.85);
  backdrop-filter: blur(10px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent);
  text-decoration: none;
}

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

.nav-toggle {
  display: none;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 0.75rem 1rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    display: none;
  }

  .nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Main */
main {
  padding-block: 2.5rem 4rem;
}

.page-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 52ch;
}

.lead.lead-tight {
  margin-bottom: 1.25rem;
}

.section.section--compact {
  border-top: none;
  margin-top: 2.5rem;
  padding-top: 0;
}

/* Hero */
.hero {
  padding-block: 1rem 2rem;
}

.hero-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 880px) {
  .hero-layout {
    grid-template-columns: 1fr minmax(280px, 42%);
    gap: 2.5rem;
  }
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.hero-copy p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 52ch;
}

.hero-copy p:last-of-type {
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.hero-actions .btn-ghost {
  margin-left: 0;
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: cover;
  aspect-ratio: 3 / 2;
  background: var(--surface);
}

.hero-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Photo sections */
.media-strip {
  padding: 0.5rem 0 2rem;
  margin-bottom: 0.5rem;
}

.media-strip .section-title {
  margin-bottom: 0.75rem;
}

.photo-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 1.25rem;
}

.media-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.media-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-card figcaption {
  padding: 0.65rem 0.85rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.media-credit {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.9;
}

/* Inner pages: banner & split */
.page-banner {
  margin: 0 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.page-banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  max-height: 320px;
}

.page-banner figcaption,
.contacts-figure figcaption {
  padding: 0.65rem 1rem 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.contacts-intro {
  display: grid;
  gap: 1.75rem;
  align-items: start;
  margin-bottom: 2rem;
}

@media (min-width: 720px) {
  .contacts-intro {
    grid-template-columns: 1fr minmax(240px, 38%);
    gap: 2rem;
  }
}

.contacts-intro .page-title {
  margin-bottom: 0.5rem;
}

.contacts-intro .lead {
  margin-bottom: 0;
}

.contacts-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.contacts-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dim);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  margin-left: 0.5rem;
}

.btn-ghost:hover {
  background: var(--surface);
  text-decoration: none;
}

/* Cards grid */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 2.5rem;
}

.card {
  padding: 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Prose */
.prose {
  max-width: 65ch;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

/* Contact */
.contact-block {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.contact-block dl {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.contact-block dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.contact-block dd {
  margin: 0;
  font-size: 1.05rem;
}

.contact-block--spaced {
  margin-top: 1rem;
}

.form-note {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Sections */
.section {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.section-title {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.subsection-title {
  margin: 2rem 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.subsection-title:first-child {
  margin-top: 0;
}

/* Stats */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat {
  flex: 1 1 140px;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.stat strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.stat span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Steps */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0 0 1.25rem 3rem;
  border-left: 2px solid var(--border);
  margin-left: 0.65rem;
}

.steps li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -0.65rem;
  top: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35rem;
  text-align: center;
  transform: translateX(-50%);
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.steps p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.faq summary {
  padding: 1rem 1.15rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "–";
}

.faq .faq-body {
  padding: 0 1.15rem 1.1rem;
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}

/* Quote */
.quote {
  margin: 2rem 0 0;
  padding: 1.25rem 1.35rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(61, 158, 229, 0.06);
}

.quote p {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
}

.quote cite {
  font-size: 0.9rem;
  font-style: normal;
  color: var(--muted);
}

/* Two columns (desktop) */
.two-col {
  display: grid;
  gap: 2rem;
}

@media (min-width: 720px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* Timeline (about) */
.timeline {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--muted);
}

.timeline li:last-child {
  border-bottom: none;
}

.timeline time {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.85rem;
}

.timeline strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline div > p {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Tag list */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* Contact extras */
.contact-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 560px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  color: var(--muted);
}

.hours-table th,
.hours-table td {
  padding: 0.5rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.hours-table th {
  color: var(--text);
  font-weight: 600;
  width: 42%;
}

.note-box {
  margin-top: 2rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  font-size: 0.92rem;
  color: var(--muted);
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.prose h2:first-child {
  margin-top: 0;
}

.text-emphasis {
  color: var(--text);
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 2.25rem 0 1.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
}

.site-footer .container {
  display: block;
}

.footer-grid {
  display: grid;
  gap: 2rem 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 880px) {
  .footer-grid {
    grid-template-columns: 1.2fr 0.9fr 1fr 1fr;
    gap: 2rem;
  }
}

.footer-brand .logo {
  font-size: 1.1rem;
}

.footer-tagline {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 32ch;
}

.footer-col-title {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-nav a[aria-current="page"] {
  color: var(--text);
}

.footer-contact {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact a {
  word-break: break-all;
}

.footer-note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 36ch;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.8rem;
}

.footer-bottom span {
  color: var(--muted);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.footer-meta a {
  color: var(--muted);
}

.footer-meta a:hover {
  color: var(--accent);
}

body {
  display: flex;
  flex-direction: column;
}
