/* PIHTA DEVELOPMENT — main stylesheet */
:root {
  --bg: #0B0B0B;
  --bg-2: #121212;
  --bg-3: #1A1A1A;
  --bg-card: #161616;
  --gold: #C9A227;
  --gold-light: #D4AF37;
  --gold-dim: #8A7020;
  --text: #F5F2EB;
  --text-muted: #B8B3A6;
  --text-dim: #7A7568;
  --line: rgba(201, 162, 39, 0.28);
  --line-soft: rgba(255, 255, 255, 0.08);
  --serif: Georgia, "Times New Roman", "Liberation Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
  --radius: 4px;
  --header-h: 72px;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--gold-light); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
p { margin: 0 0 1em; color: var(--text-muted); }
ul { padding-left: 1.2em; color: var(--text-muted); }
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.gold { color: var(--gold-light); }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,11,11,.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  height: var(--header-h);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  position: relative;
}
.logo {
  display: flex; align-items: center; gap: .75rem;
  color: var(--text); font-family: var(--serif); letter-spacing: .12em;
  text-transform: uppercase; font-size: 1.05rem;
}
.logo img { width: 42px; height: 42px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav a {
  color: var(--text-muted); font-size: .86rem; letter-spacing: .04em;
  text-transform: uppercase;
}
.nav a:hover, .nav a.active { color: var(--gold-light); }
.nav-cta { display: inline-flex; margin-left: .5rem; padding: .55rem 1rem; font-size: .78rem; }
.burger {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--gold); width: 42px; height: 42px; border-radius: var(--radius);
  cursor: pointer; font-size: 1.2rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.4rem; border-radius: var(--radius); border: 1px solid transparent;
  font-family: var(--sans); font-size: .92rem; letter-spacing: .04em;
  text-transform: uppercase; cursor: pointer; transition: .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #111; font-weight: 600;
}
.btn-primary:hover { filter: brightness(1.08); color: #000; }
.btn-outline {
  border-color: var(--gold); color: var(--gold-light); background: transparent;
}
.btn-outline:hover { background: rgba(201,162,39,.12); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.5rem; }

/* Hero / split */
.hero {
  position: relative; min-height: min(88vh, 820px);
  display: grid; align-items: stretch;
  background: var(--bg-2);
}
.hero-split {
  display: grid; grid-template-columns: 1fr 1fr; min-height: min(88vh, 820px);
}
.hero-panel {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem);
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(160deg, #0B0B0B 0%, #151515 100%);
  position: relative;
}
.hero-panel::after {
  content: ""; position: absolute; right: 0; top: 12%; bottom: 12%; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  opacity: .5;
}
.hero-media {
  position: relative; overflow: hidden; background: #000;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; min-height: 360px;
  filter: saturate(.92) contrast(1.05);
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,11,11,.35), transparent 40%);
}
.eyebrow {
  color: var(--gold); text-transform: uppercase; letter-spacing: .22em;
  font-size: .78rem; margin-bottom: 1rem; display: block;
}
.hero h1 { margin-bottom: .8rem; }
.hero .lead { font-size: 1.08rem; max-width: 34rem; }

.page-hero {
  padding: 4.5rem 0 3rem;
  background:
    linear-gradient(120deg, rgba(11,11,11,.92), rgba(11,11,11,.55)),
    var(--page-hero-img, none) center/cover no-repeat;
  border-bottom: 1px solid var(--line-soft);
}
.page-hero .lead { max-width: 42rem; }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-2); }
.section-head { margin-bottom: 2.5rem; max-width: 40rem; }
.section-head .rule {
  width: 64px; height: 1px; background: var(--gold); margin: 1rem 0 1.2rem;
  position: relative;
}
.section-head .rule::after {
  content: "◆"; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%); color: var(--gold); font-size: .55rem;
  background: var(--bg); padding: 0 .35rem;
}
.section-alt .section-head .rule::after { background: var(--bg-2); }

/* Cards / grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.card {
  background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--line); transform: translateY(-2px); }
.card-media { aspect-ratio: 16/10; overflow: hidden; background: #000; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.35rem 1.4rem 1.6rem; }
.card-body h3 { margin-bottom: .45rem; }
.card-body p { font-size: .95rem; margin-bottom: .8rem; }
.tag {
  display: inline-block; font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .6rem;
}

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--bg-3); overflow: hidden; border: 1px solid var(--line-soft);
}
.split-text { padding: clamp(2rem, 4vw, 3.5rem); display: flex; flex-direction: column; justify-content: center; }
.split-media { min-height: 320px; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 1.75rem 0; margin: 2rem 0 0;
}
.stat strong {
  display: block; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--gold-light); font-weight: 500;
}
.stat span { color: var(--text-dim); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }

/* Services list */
.service-list { display: grid; gap: .75rem; }
.service-item {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  padding: 1.1rem 1.2rem; background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.service-item:target, .service-anchor:target .service-item {
  border-color: var(--gold); box-shadow: 0 0 0 1px rgba(201,162,39,.25);
}
.service-num {
  font-family: var(--serif); color: var(--gold); font-size: 1.25rem; min-width: 2rem;
}
.service-groups { display: grid; gap: 2.5rem; }
.service-group h3 { color: var(--gold-light); margin-bottom: 1rem; }

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line-soft); padding: 1.1rem 0;
}
.faq summary {
  cursor: pointer; list-style: none; font-weight: 500; color: var(--text);
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: .85rem 0 0; }

/* Forms */
.form {
  display: grid; gap: 1rem; max-width: 560px;
  background: var(--bg-card); border: 1px solid var(--line-soft);
  padding: 1.75rem; border-radius: var(--radius);
}
.form label { display: grid; gap: .4rem; font-size: .88rem; color: var(--text-muted); }
.form input, .form select, .form textarea {
  background: #0E0E0E; border: 1px solid var(--line-soft); color: var(--text);
  padding: .85rem 1rem; border-radius: var(--radius); font: inherit;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--gold);
}
.form textarea { min-height: 120px; resize: vertical; }

/* Team */
.team-card { text-align: center; padding: 2rem 1.25rem; }
.team-avatar {
  width: 120px; height: 120px; margin: 0 auto 1.2rem; border-radius: 50%;
  border: 1px solid var(--gold); background:
    radial-gradient(circle at 30% 30%, #2a2a2a, #0d0d0d);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 2rem; color: var(--gold);
}
.team-card h3 { margin-bottom: .35rem; }
.team-role { color: var(--text-dim); font-size: .9rem; }

/* Reviews placeholder */
.review-card {
  padding: 1.75rem; background: var(--bg-card); border: 1px dashed var(--line);
  border-radius: var(--radius); min-height: 180px;
}
.review-card .soon {
  color: var(--gold); letter-spacing: .16em; text-transform: uppercase; font-size: .78rem;
}

/* Requisites */
.req-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.req-table th, .req-table td {
  text-align: left; padding: .75rem .5rem; border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.req-table th { color: var(--text-dim); font-weight: 500; width: 38%; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line-soft); background: #080808;
  padding: 3rem 0 2rem; margin-top: 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem;
}
.footer-brand { font-family: var(--serif); letter-spacing: .12em; text-transform: uppercase; }
.footer-brand img { width: 48px; margin-bottom: .8rem; }
.footer-col h4 {
  font-family: var(--sans); font-size: .78rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1rem;
}
.footer-col a, .footer-col p { display: block; color: var(--text-muted); font-size: .92rem; margin-bottom: .45rem; }
.footer-bottom {
  border-top: 1px solid var(--line-soft); padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  color: var(--text-dim); font-size: .82rem;
}

/* CTA band */
.cta-band {
  background:
    linear-gradient(115deg, rgba(11,11,11,.92), rgba(20,16,8,.78)),
    url("../assets/contact.jpg") center/cover;
  padding: clamp(3rem, 6vw, 5rem) 0; border-block: 1px solid var(--line);
}
.cta-band h2 { color: #fff; }

/* Legal */
.legal { max-width: 720px; }
.legal h2 { margin-top: 2rem; font-size: 1.4rem; }
.legal p, .legal li { font-size: .95rem; }

/* Blog stubs */
.blog-list { display: grid; gap: 1rem; }
.blog-item {
  display: grid; grid-template-columns: 120px 1fr; gap: 1.25rem; align-items: center;
  padding: 1.2rem; border: 1px solid var(--line-soft); background: var(--bg-card);
}
.blog-date { color: var(--gold); font-size: .85rem; letter-spacing: .08em; }

/* Mobile */
@media (max-width: 980px) {
  .hero-split, .split, .grid-2, .grid-3, .grid-4, .footer-grid, .stats {
    grid-template-columns: 1fr 1fr;
  }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero-panel::after { display: none; }
  .nav { display: none; }
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute;
    top: var(--header-h); left: 0; right: 0; background: #0E0E0E;
    border-bottom: 1px solid var(--line); padding: 1.25rem;
    align-items: flex-start; gap: 1rem;
  }
  .nav-cta { display: inline-flex; }
}
@media (max-width: 680px) {
  .hero-split, .split, .grid-2, .grid-3, .grid-4, .footer-grid, .stats, .blog-item {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
}

@media (max-width: 980px) {
  .hero-media img { min-height: 240px; max-height: 48vh; }
  .logo span { font-size: .95rem; }
  .burger { min-width: 44px; min-height: 44px; }
  .nav.open a { padding: .55rem 0; width: 100%; }
  .container { width: min(100% - 1.25rem, var(--container)); }
}
@media (max-width: 680px) {
  h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .section { padding: 3rem 0; }
  .card-body { padding: 1.1rem 1.1rem 1.35rem; }
  .split-media { min-height: 220px; }
  .site-header { height: 64px; }
  :root { --header-h: 64px; }
}


/* Mobile polish — overflow, touch, safe-area */
html, body { overflow-x: clip; max-width: 100%; }
.site-header { position: sticky; }
.header-inner { position: relative; }
.nav a {
  min-height: 44px; display: inline-flex; align-items: center;
  padding: .35rem 0;
}
.burger {
  min-width: 44px; min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn { touch-action: manipulation; min-height: 44px; }
.form input, .form select, .form textarea { font-size: 16px; } /* avoid iOS zoom */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.req-table { min-width: 280px; }

@media (max-width: 980px) {
  .nav.open {
    z-index: 200;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    box-shadow: var(--shadow);
    padding: 1rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }
  .nav.open a {
    width: 100%;
    padding: .85rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: .95rem;
  }
  .nav.open a:last-child { border-bottom: 0; }
  .nav.open .nav-cta {
    width: 100%;
    justify-content: center;
    margin: .5rem 0 0;
    padding: .9rem 1rem;
  }
  .logo span { font-size: .95rem; }
  .hero-media img { min-height: 240px; max-height: 52vh; }
  .container {
    width: min(100% - 1.5rem, var(--container));
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }
}

@media (max-width: 680px) {
  :root { --header-h: 64px; }
  .site-header { height: var(--header-h); }
  h1 { font-size: clamp(1.85rem, 8.5vw, 2.6rem); }
  .hero-panel { padding: 2rem 1.15rem 2.25rem; }
  .hero-media img { min-height: 200px; }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    padding: 1.25rem 0;
  }
  .stat strong { font-size: 1.55rem; }
  .stat span { font-size: .72rem; }
  .page-hero { padding: 3rem 0 2rem; }
  .section { padding: 2.75rem 0; }
  .card-body { padding: 1.15rem 1.1rem 1.35rem; }
  .split-text { padding: 1.5rem 1.15rem; }
  .footer-grid { gap: 1.5rem; }
  .req-table th { width: 42%; font-size: .82rem; }
  .req-table td { font-size: .88rem; word-break: break-word; }
  .btn { white-space: normal; text-align: center; line-height: 1.3; }
  .eyebrow { letter-spacing: .14em; font-size: .72rem; }
}

@media (max-width: 400px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .logo img { width: 36px; height: 36px; }
}

@media (max-width: 680px) {
  .req-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

#boot{display:none}
