/* Океаника — стили компонентов, перенесены из макета: components/bundle.css
   Изменение одно: @import Google Fonts убран, шрифты подключаются локально (fonts.css). */

body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-display); -webkit-font-smoothing: antialiased; }
.oc-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: flex-start; padding: var(--space-5); }
.oc-stack { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Button */
.oc-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; height: var(--control-height); padding: 0 40px; border-radius: var(--radius-none); font: 700 16px/20px var(--font-display); text-transform: uppercase; text-decoration: none; cursor: pointer; border: var(--hairline) solid transparent; }
.oc-btn-primary { background: var(--ink); color: var(--on-ink); }
.oc-btn-primary:hover { background: var(--ink-soft); }
.oc-btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border); }
.oc-btn-secondary:hover { background: var(--surface-active); }
.oc-btn-block { width: 100%; }

/* Chip */
.oc-chip { display: inline-flex; align-items: center; gap: var(--space-1); padding: 10px var(--space-3); border: var(--hairline) solid var(--border); background: var(--surface); font: 400 20px/24px var(--font-accent); letter-spacing: -0.02em; color: var(--ink); }
.oc-chip em { font-style: italic; }
.oc-chip-dot { width: 6px; height: 6px; border-radius: var(--radius-full); background: var(--ink); margin-right: 4px; }

/* SectionHeading */
.oc-heading { max-width: 1000px; }
.oc-align-center { text-align: center; margin-inline: auto; }
.oc-eyebrow { font: 500 16px/20px var(--font-display); text-transform: uppercase; margin-bottom: var(--space-2); }
.oc-h2 { margin: 0; font: 700 48px/50px var(--font-display); text-transform: uppercase; }
.oc-muted-line { display: block; color: var(--ink-subtle); }
.oc-lead { margin: var(--space-5) 0 0; font: 400 24px/32px var(--font-display); }
.oc-h3 { margin: 0; font: 700 30px/34px var(--font-display); text-transform: uppercase; }
.oc-small { margin: 0; font: 400 18px/22px var(--font-display); }

/* Header */
.oc-header { position: sticky; top: 0; z-index: 10; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; height: var(--header-height); padding: 0 var(--space-7); background: var(--bg-deep); border-bottom: var(--hairline) solid var(--ink); }
.oc-wordmark { font: 800 24px/1 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; }
.oc-nav { display: flex; gap: 34px; }
.oc-nav-link { color: var(--ink); text-decoration: none; font: 500 18px/22px var(--font-display); text-transform: uppercase; }
.oc-nav-link:hover, .oc-nav-link.is-active { color: var(--ink-muted); }
.oc-header-cta { height: 50px; padding: 0 28px; }

/* DirectionList */
.oc-dirlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.oc-dir { box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: var(--space-5); min-height: 76px; padding: 8px var(--space-4); background: transparent; border: var(--hairline) solid transparent; color: var(--ink-muted); font: 500 34px/38px var(--font-display); text-transform: uppercase; text-align: left; cursor: pointer; }
.oc-align-right .oc-dir { justify-content: flex-end; text-align: right; }
.oc-dir.is-active { background: var(--surface-active); border-color: var(--border); color: var(--ink); }

/* Cards */
.oc-card { box-sizing: border-box; background: var(--bg); border: var(--hairline) solid var(--border); padding: var(--space-5); color: var(--ink); }
.oc-project { width: 590px; display: flex; flex-direction: column; gap: var(--space-4); }
.oc-project-type { font: 400 18px/22px var(--font-display); text-transform: uppercase; color: var(--ink-subtle); }
.oc-project-type b { color: var(--ink); font-weight: 700; }
.oc-step { width: 435px; min-height: 368px; display: flex; flex-direction: column; justify-content: space-between; }
.oc-step-number { font: 700 80px/80px var(--font-display); }
.oc-step-title { margin: 0 0 var(--space-3); font: 700 30px/34px var(--font-display); text-transform: uppercase; }
.oc-stat { width: 587px; height: 234px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--space-2); }
.oc-stat-value { font: 700 96px/96px var(--font-display); }
.oc-stat-label { font: 700 22px/24px var(--font-display); text-transform: uppercase; max-width: 460px; }

/* ServiceItem */
.oc-service { display: flex; gap: var(--space-5); align-items: flex-start; }
.oc-drop { color: var(--ink); margin-top: 6px; flex: none; }
.oc-service-title { font: 700 20px/26px var(--font-display); text-transform: uppercase; }
.oc-service-desc { font: 400 18px/24px var(--font-display); color: var(--ink-subtle); }

/* Field */
.oc-field { display: flex; flex-direction: column; gap: var(--space-2); }
.oc-label { font: 400 16px/20px var(--font-display); color: var(--ink-subtle); }
.oc-control { box-sizing: border-box; width: 100%; height: 44px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-none); background: var(--field); color: var(--ink); font: 700 16px/20px var(--font-display); appearance: none; }
.oc-control::placeholder { color: var(--ink-soft); text-transform: uppercase; opacity: 1; }
select.oc-control:invalid, select.oc-control { color: var(--ink-soft); text-transform: uppercase; }
.oc-textarea { height: 88px; padding-top: var(--space-2); resize: vertical; }
.oc-select { position: relative; }
.oc-select svg { position: absolute; right: var(--space-3); top: 14px; color: var(--ink-soft); pointer-events: none; }

/* Testimonial */
.oc-testimonial { width: 590px; display: flex; gap: var(--space-5); align-items: center; margin: 0; }
.oc-avatar { width: 244px; height: 244px; border-radius: var(--radius-full); object-fit: cover; flex: none; }
.oc-avatar-empty { background: var(--surface-active); }
.oc-testimonial-name { font: 700 26px/28px var(--font-display); text-transform: uppercase; margin-bottom: var(--space-3); }
.oc-testimonial blockquote { margin: 0; }

/* LogoTile */
.oc-logotile { box-sizing: border-box; width: 210px; height: 184px; display: flex; align-items: center; justify-content: center; background: var(--bg); border: var(--hairline) solid var(--border); color: var(--ink); font: 800 36px/1 var(--font-display); }
.oc-logotile img { max-width: 75%; max-height: 40%; }

/* Footer */
.oc-footer { display: grid; grid-template-columns: 1fr 234px 1fr; gap: 0; padding: 32px var(--space-7) 48px; border-top: var(--hairline) solid var(--ink); background: var(--bg); }
.oc-footer-tagline { margin: var(--space-4) 0 0; font: 400 18px/24px var(--font-display); max-width: 470px; }
.oc-footer-col { display: flex; flex-direction: column; gap: 14px; }
.oc-footer-col a { color: var(--ink); text-decoration: none; font: 500 18px/22px var(--font-display); text-transform: uppercase; }
.oc-footer-col a:hover { color: var(--ink-muted); }
.oc-footer-title { font: 700 24px/28px var(--font-display); text-transform: uppercase; margin-bottom: 6px; }

/* DirectionShowcase — две зеркальные колонки, фото по центру; строка 90px */
.oc-show { position: relative; display: grid; grid-template-columns: 1fr 588px 1fr; column-gap: 6px; padding: 0 var(--space-7); --oc-row: 90px; }
.oc-show-band { position: absolute; left: var(--space-7); right: var(--space-7); top: calc(var(--oc-active) * var(--oc-row)); height: var(--oc-row); box-sizing: border-box; background: var(--surface-active); border: var(--hairline) solid var(--border); }
.oc-show-list { position: relative; list-style: none; margin: 0; padding: 0; }
.oc-show-row { box-sizing: border-box; width: 100%; height: var(--oc-row); display: flex; align-items: center; gap: var(--space-5); padding: 0 var(--space-4); background: transparent; border: 0; color: var(--ink-muted); font: 500 34px/38px var(--font-display); text-transform: uppercase; text-align: left; cursor: pointer; }
.oc-show-right .oc-show-row { justify-content: flex-end; text-align: right; }
.oc-show-row.is-active { color: var(--ink); }
.oc-show-media { position: relative; z-index: 1; height: calc(var(--oc-row) * 6); overflow: visible; }
.oc-show-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.oc-show-cta { position: absolute; left: 24px; right: 24px; top: calc(var(--oc-active) * var(--oc-row) + 11px); height: 68px; }

/* ProjectGallery — фото на всю ширину, карточка слева снизу, лента справа */
.oc-gallery { position: relative; height: 880px; overflow: hidden; background: var(--bg-deep); }
.oc-gallery-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.oc-gallery-title { position: absolute; left: var(--space-7); top: 48px; margin: 0; max-width: 560px; font: 700 48px/50px var(--font-display); text-transform: uppercase; color: var(--ink); }
.oc-gallery-card { position: absolute; left: var(--space-7); bottom: 48px; }
.oc-gallery-rail { position: absolute; right: var(--space-7); top: 48px; bottom: 48px; width: 260px; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.oc-rail-btn { box-sizing: border-box; width: 260px; height: 46px; display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--ink); border: var(--hairline) solid var(--border); cursor: pointer; }
.oc-rail-btn:hover { background: var(--ink); color: var(--on-ink); }
.oc-rail-btn:active { background: var(--ink-soft); color: var(--on-ink); }
.oc-rail-thumb { box-sizing: border-box; width: 260px; flex: 1 1 0; min-height: 0; padding: 0; border: 0; background: var(--bg); cursor: pointer; }
.oc-rail-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.oc-rail-thumb.is-active { width: 380px; flex-grow: 1.45; outline: 2px solid var(--ink); outline-offset: -2px; }

.oc-burger, .oc-menu { display: none; }

/* Hero — первый экран, 888px на десктопе */
.oc-hero { position: relative; height: 888px; overflow: hidden; background: var(--bg-deep); box-sizing: border-box; padding: 62px var(--space-7) 92px; display: flex; flex-direction: column; }
.oc-hero-img { position: absolute; right: 0; bottom: 0; width: 1060px; height: 820px; object-fit: cover; object-position: center bottom; }
.oc-hero-text { position: relative; max-width: 1280px; }
.oc-hero-title { margin: 0; font: 800 74px/76px var(--font-display); text-transform: uppercase; color: var(--ink); }
.oc-hero-lead { margin: 40px 0 0; max-width: 600px; font: 400 26px/34px var(--font-accent); letter-spacing: -0.03em; color: var(--ink-muted); }
.oc-hero-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); max-width: 680px; margin-top: 32px; }
.oc-hero-numeral { position: absolute; right: var(--space-7); top: 62px; text-align: left; }
.oc-hero-numeral-value { font: 500 130px/120px var(--font-accent); letter-spacing: -0.04em; color: var(--ink); }
.oc-hero-numeral-label { font: 400 20px/24px var(--font-accent); letter-spacing: -0.02em; color: var(--ink-muted); }
.oc-hero-actions { position: relative; margin-top: auto; width: 590px; display: flex; flex-direction: column; gap: 12px; }

/* ===== Мобильная раскладка: до 1023px, макет на 390px ===== */
@media (max-width: 1023px) {
  .oc-row, .oc-stack { padding: var(--m-margin); gap: var(--m-gutter); }
  .oc-btn { height: 48px; padding: 0 var(--space-4); font-size: 14px; line-height: 18px; }
  .oc-chip { padding: 8px 12px; font-size: 15px; line-height: 20px; }
  .oc-eyebrow { font-size: 12px; line-height: 16px; margin-bottom: 8px; }
  .oc-h2 { font-size: 26px; line-height: 30px; }
  .oc-lead { margin-top: var(--space-3); font-size: 16px; line-height: 22px; }
  .oc-h3 { font-size: 20px; line-height: 24px; }
  .oc-small { font-size: 14px; line-height: 20px; }

  .oc-header { height: var(--m-header-height); padding: 0 var(--m-margin); }
  .oc-wordmark { font-size: 18px; }
  .oc-nav, .oc-header-cta { display: none; }
  .oc-burger { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; background: transparent; border: 0; color: var(--ink); cursor: pointer; }
  .oc-menu { display: flex; flex-direction: column; justify-content: space-between; position: fixed; left: 0; right: 0; top: var(--m-header-height); bottom: 0; z-index: 20; background: var(--bg-deep); padding: var(--space-3) var(--m-margin) var(--space-5); overflow-y: auto; }
  .oc-menu-link { display: flex; align-items: center; justify-content: space-between; min-height: 64px; border-bottom: var(--hairline) solid var(--border); color: var(--ink); text-decoration: none; font: 600 22px/26px var(--font-display); text-transform: uppercase; }
  .oc-menu-link.is-active { color: var(--ink-muted); }
  .oc-menu-foot { display: flex; flex-direction: column; gap: var(--space-4); padding-top: var(--space-5); }
  .oc-menu-contacts { font: 500 16px/24px var(--font-display); text-transform: uppercase; color: var(--ink-muted); }

  .oc-hero { height: auto; padding: var(--space-5) var(--m-margin) var(--space-5); }
  .oc-hero-img { position: relative; order: 3; width: calc(100% + 2 * var(--m-margin)); height: 300px; margin: var(--space-4) calc(-1 * var(--m-margin)) 0; }
  .oc-hero-title { font-size: 32px; line-height: 34px; }
  .oc-hero-lead { margin-top: var(--space-3); font-size: 17px; line-height: 24px; }
  .oc-hero-chips { margin-top: var(--space-4); gap: 8px; }
  .oc-hero-numeral { position: static; order: 2; display: flex; align-items: baseline; gap: var(--space-2); margin-top: var(--space-5); }
  .oc-hero-numeral-value { font-size: 64px; line-height: 60px; }
  .oc-hero-numeral-label { font-size: 14px; line-height: 18px; }
  .oc-hero-actions { order: 4; width: 100%; margin-top: var(--space-4); gap: 8px; }

  .oc-dir { min-height: 56px; font-size: 20px; line-height: 24px; padding: 8px 12px; }
  .oc-show { display: flex; flex-direction: column; padding: 0 var(--m-margin); --oc-row: 56px; }
  .oc-show-band, .oc-show-right { display: none; }
  .oc-show-media { order: -1; height: 280px; margin-bottom: var(--space-3); }
  .oc-show-cta { left: 12px; right: 12px; top: auto; bottom: 12px; height: 48px; }
  .oc-show-row { font-size: 20px; line-height: 24px; padding: 0 12px; gap: var(--space-3); border: var(--hairline) solid transparent; }
  .oc-show-row.is-active { background: var(--surface-active); border-color: var(--border); }

  .oc-gallery { height: auto; display: flex; flex-direction: column; gap: var(--m-gutter); padding: var(--space-5) var(--m-margin); background: var(--bg); }
  .oc-gallery-title { position: static; font-size: 26px; line-height: 30px; }
  .oc-gallery-bg { position: static; order: 1; height: 360px; width: calc(100% + 2 * var(--m-margin)); margin: 0 calc(-1 * var(--m-margin)); }
  .oc-gallery-rail { position: static; order: 2; width: auto; flex-direction: row; align-items: stretch; gap: 8px; height: 64px; }
  .oc-rail-btn { width: 44px; height: auto; flex: none; }
  .oc-rail-btn .oc-arrow { transform: rotate(-90deg); }
  .oc-rail-thumb, .oc-rail-thumb.is-active { width: auto; flex: 1 1 0; }
  .oc-gallery-card { position: static; order: 3; }
  .oc-project { width: 100%; gap: var(--space-2); padding: var(--m-card-padding); }
  .oc-project-type { font-size: 13px; line-height: 18px; }

  .oc-card { padding: var(--m-card-padding); }
  .oc-step { width: 100%; min-height: 0; gap: var(--space-5); }
  .oc-step-number { font-size: 48px; line-height: 48px; }
  .oc-step-title { font-size: 20px; line-height: 24px; margin-bottom: 8px; }
  .oc-stat { width: 100%; height: 140px; }
  .oc-stat-value { font-size: 56px; line-height: 56px; }
  .oc-stat-label { font-size: 14px; line-height: 18px; }
  .oc-service { gap: var(--space-3); }
  .oc-service-title { font-size: 15px; line-height: 20px; }
  .oc-service-desc { font-size: 14px; line-height: 20px; }
  .oc-label { font-size: 13px; line-height: 16px; }
  .oc-control { font-size: 14px; }
  .oc-testimonial { width: 100%; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .oc-avatar { width: 120px; height: 120px; }
  .oc-testimonial-name { font-size: 20px; line-height: 24px; margin-bottom: 8px; }
  .oc-logotile { width: calc(50% - 6px); height: 100px; font-size: 24px; }
  .oc-footer { grid-template-columns: 1fr 1fr; row-gap: var(--space-5); padding: var(--space-5) var(--m-margin); }
  .oc-footer > :first-child { grid-column: 1 / -1; }
  .oc-footer-tagline { font-size: 14px; line-height: 20px; }
  .oc-footer-col a { font-size: 14px; line-height: 18px; }
  .oc-footer-title { font-size: 16px; line-height: 20px; }
}
