/* ============================================================
   ООО «Фарватер» — farwat.ru
   Фирменный стиль по логотипу: голубой #0090BF (основной),
   зелёный #4EB05B, оранжевый #F28945, розовый #D86795.
   ============================================================ */

:root {
  --ink: #0f2233;            /* заголовки, тёмный текст */
  --text: #3d4f60;           /* основной текст */
  --muted: #6b7d8d;          /* вторичный текст */
  --accent: #0090BF;         /* фирменный голубой */
  --accent-dark: #00719a;
  --accent-tint: #e7f5fa;    /* светло-голубая подложка */
  --brand-green: #4EB05B;
  --brand-orange: #F28945;
  --brand-pink: #D86795;
  --green-tint: #eaf6ec;
  --orange-tint: #fdf1e8;
  --pink-tint: #fbedf3;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;        /* фон секций */
  --border: #e2e8f1;
  --mono: "SF Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(14, 27, 44, .04), 0 8px 24px rgba(14, 27, 44, .06);
  --maxw: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; vertical-align: middle; }

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

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.mono { font-family: var(--mono); font-size: .92em; }

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.32rem;
  color: var(--accent);
  letter-spacing: 0.01em;
  text-transform: lowercase;
  flex-shrink: 0;
}
.logo:hover { color: var(--accent-dark); }
.logo svg { width: 30px; height: 30px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.main-nav a {
  color: var(--text);
  font-size: .96rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.main-nav a.active { color: var(--accent); }

.main-nav a.nav-cta {
  color: var(--accent);
  background: var(--accent-tint);
  font-weight: 600;
}
.main-nav a.nav-cta:hover { background: #e0eafc; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  font-family: var(--sans);
}

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

.btn-secondary {
  background: #fff;
  color: var(--accent);
  border: 1px solid #b3dceb;
}
.btn-secondary:hover { background: var(--accent-tint); color: var(--accent-dark); }

.btn-sm { padding: 9px 18px; font-size: .93rem; border-radius: 8px; }

/* ---------- Хлебные крошки ---------- */

.breadcrumbs {
  padding: 18px 0 0;
  font-size: .88rem;
  color: var(--muted);
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span::before { content: "/"; margin: 0 8px; color: #c3cedd; }

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 84px;
  background:
    radial-gradient(900px 420px at 92% -12%, rgba(78, 176, 91, .10) 0%, rgba(78, 176, 91, 0) 55%),
    radial-gradient(1100px 480px at 78% -8%, rgba(0, 144, 191, .12) 0%, rgba(0, 144, 191, 0) 60%),
    var(--bg);
}

.hero .eyebrow {
  display: inline-block;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 { max-width: 720px; margin-bottom: 20px; }

.hero p.lead {
  max-width: 640px;
  font-size: 1.18rem;
  color: var(--muted);
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Заголовок внутренней страницы */
.page-head { padding: 30px 0 44px; }
.page-head h1 { margin: 10px 0 14px; }
.page-head p.lead { max-width: 700px; font-size: 1.12rem; color: var(--muted); }

/* ---------- Секции ---------- */

.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }

.section-head { max-width: 700px; margin-bottom: 44px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }

/* ---------- Карточки/сетки ---------- */

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }

/* Фирменная ротация цветов иконок в карточках */
.grid .card:nth-child(4n+2) .icon { background: var(--green-tint); color: var(--brand-green); }
.grid .card:nth-child(4n+3) .icon { background: var(--orange-tint); color: var(--brand-orange); }
.grid .card:nth-child(4n) .icon { background: var(--pink-tint); color: var(--brand-pink); }

/* Цифры-факты */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: left; }
.stat .num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.stat .num span { color: var(--accent); }
.stat .cap { color: var(--muted); font-size: .95rem; margin-top: 6px; }

/* ---------- Таблицы ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .96rem;
  background: #fff;
}
table.data th {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-soft);
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.data td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.data tr:last-child td { border-bottom: none; }

.code-badge {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: .9rem;
  color: var(--accent);
  background: var(--accent-tint);
  border-radius: 6px;
  padding: 3px 10px;
  white-space: nowrap;
}

/* ---------- Списки ---------- */

ul.checks { list-style: none; }
ul.checks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}
ul.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green-tint) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none"><path d="M4 8.5l2.6 2.5L12 5.5" stroke="%234EB05B" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/10px no-repeat;
}

/* ---------- Якорная навигация (Основные сведения) ---------- */

.anchor-nav {
  position: sticky;
  top: 68px;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.anchor-nav .container {
  display: flex;
  gap: 6px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.anchor-nav a {
  white-space: nowrap;
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  padding: 7px 13px;
  border-radius: 999px;
}
.anchor-nav a:hover { color: var(--accent); background: var(--accent-tint); }
.anchor-nav a.current { color: var(--accent); background: var(--accent-tint); font-weight: 600; }

.info-block { padding: 56px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 130px; }
.info-block:last-of-type { border-bottom: none; }
.info-block h2 { margin-bottom: 8px; }
.info-block .block-num {
  font-family: var(--mono);
  color: var(--accent);
  font-size: .9rem;
  font-weight: 600;
}
.info-block > .container > p { max-width: 760px; }

/* Реквизиты: определения */
dl.requisites { display: grid; grid-template-columns: 260px 1fr; row-gap: 14px; column-gap: 24px; margin-top: 26px; }
dl.requisites dt { color: var(--muted); font-size: .95rem; padding-top: 2px; }
dl.requisites dd { color: var(--ink); font-weight: 500; }

/* ---------- Технологический стек ---------- */

.stack-group { margin-bottom: 34px; }
.stack-group h3 { margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.chip:nth-child(4n+2) .dot { background: var(--brand-green); }
.chip:nth-child(4n+3) .dot { background: var(--brand-orange); }
.chip:nth-child(4n) .dot { background: var(--brand-pink); }

/* ---------- Формы ---------- */

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

label { display: block; font-size: .92rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #ccd6e4;
  border-radius: 9px;
  padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 144, 191, .16);
}
textarea { min-height: 130px; resize: vertical; }

.form-note { font-size: .84rem; color: var(--muted); }
.form-note a { text-decoration: underline; }

.form-status { display: none; margin-top: 14px; padding: 12px 16px; border-radius: 9px; font-size: .95rem; }
.form-status.ok { display: block; background: #e8f7ee; color: #14683a; }
.form-status.err { display: block; background: #fdecec; color: #a4272b; }

/* ---------- CTA-полоса ---------- */

.cta-band {
  background: linear-gradient(120deg, #075e7d 0%, #0090BF 100%);
  border-radius: 18px;
  padding: 52px 48px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #cdeaf5; max-width: 520px; }
.cta-band .btn-primary { background: #fff; color: var(--accent); }
.cta-band .btn-primary:hover { background: #e8eefb; }

/* ---------- Контакты ---------- */

.contact-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-item .icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.contact-item .icon svg { width: 20px; height: 20px; }
.contact-item .label { font-size: .85rem; color: var(--muted); }
.contact-item .value { font-weight: 600; color: var(--ink); }
.contact-item .value a { color: var(--ink); }
.contact-item .value a:hover { color: var(--accent); }

.map-frame {
  width: 100%;
  height: 420px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Подвал ---------- */

.site-footer {
  background: #0b2f40;
  color: #9dbecd;
  padding: 56px 0 32px;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid #1d4a5e;
}
.site-footer .logo { color: #fff; margin-bottom: 10px; }
.site-footer .logo:hover { color: #fff; }
.footer-tagline {
  color: #55b6d8;
  font-weight: 600;
  margin-bottom: 8px;
}
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; letter-spacing: .02em; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer a { color: #9dbecd; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: .86rem;
  color: #6f96a8;
}
.footer-cta {
  display: inline-block;
  margin-top: 6px;
  background: #0090BF;
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 9px;
  font-weight: 600;
}
.footer-cta:hover { background: #14a4d3; }

/* ---------- Адаптивность ---------- */

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  dl.requisites { grid-template-columns: 1fr; row-gap: 4px; }
  dl.requisites dt { margin-top: 12px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 18px;
    gap: 2px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .hero { padding: 52px 0 60px; }
  .cta-band { padding: 36px 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .anchor-nav { top: 67px; }
}
