/* Фирма «ЗНАК» — собственная вёрстка */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand: #0d2b52;
  --brand-light: #164a7a;
  --accent: #f5a623;
  --accent-hover: #e09410;
  --danger: #d62828;
  --surface: #f4f6f9;
  --line: #dde3eb;
  --text: #1a2332;
  --muted: #5c6778;
  --white: #fff;
  --radius: 10px;
  --wrap: min(1180px, calc(100% - 40px));
  --font: "PT Sans", "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
  padding-bottom: 88px;
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.wrap { width: var(--wrap); margin-inline: auto; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ── Top bar ── */
.topbar {
  background: var(--brand);
  color: rgba(255,255,255,.85);
  font-size: 13px;
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 20px;
  padding: 8px 0;
}

.topbar a { color: #fff; font-weight: 700; }
.topbar a:hover { color: var(--accent); }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 16px rgba(13,43,82,.06);
}

.site-header__row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo__mark {
  width: 44px;
  height: 44px;
  background: var(--danger);
  border: 2px solid var(--text);
  border-radius: 4px;
  display: grid;
  place-items: center;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 78% 100%, 0 100%);
}

.logo__mark svg { width: 22px; height: 22px; }

.logo__text strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--brand);
  line-height: 1.1;
}

.logo__text span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
}

.site-nav {
  display: none;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 600;
}

.site-nav a:hover { color: var(--brand-light); }

.header-phone {
  display: none;
  font-weight: 700;
  font-size: 17px;
  color: var(--brand);
  white-space: nowrap;
}

.header-cta { display: none; }

.header-phone small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s, transform .15s;
}

.btn:active { transform: scale(.98); }

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

.btn--primary:hover { background: var(--accent-hover); }

.btn--outline {
  background: transparent;
  border: 2px solid var(--brand);
  color: var(--brand);
}

.btn--outline:hover { background: var(--surface); }

.btn--white {
  background: var(--white);
  color: var(--brand);
}

.btn--block { width: 100%; }

.btn--lg {
  padding: 14px 26px;
  font-size: 16px;
}

.btn--accent {
  background: var(--accent);
  color: var(--brand);
}

.btn--accent:hover { background: var(--accent-hover); }

.menu-toggle {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--brand);
  border-radius: 1px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 0 0 16px;
  border-top: 1px solid var(--line);
}

.mobile-menu.is-open { display: flex; }

.mobile-menu a {
  padding: 14px 0;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 960px) {
  .site-nav { display: flex; }
  .header-phone { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ── Hero ── */
.hero {
  background: linear-gradient(180deg, #e8eef5 0%, #f4f6f9 55%, var(--white) 100%);
  color: var(--text);
  padding: 28px 0 40px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 30px, #111 30px 60px);
}

.hero__layout {
  display: grid;
  gap: 24px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__layout {
    grid-template-columns: 1fr auto;
    gap: 28px 32px;
    align-items: center;
  }
}

.hero__side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.hero__banner {
  margin: 0;
  line-height: 0;
  order: -1;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .hero__banner { order: 1; }
}

.hero__banner img {
  width: 100%;
  max-width: 520px;
  height: auto;
  margin-inline: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(13, 43, 82, 0.14);
}

@media (min-width: 900px) {
  .hero__banner img {
    width: auto;
    max-width: min(42vw, 420px);
    max-height: min(78vh, 720px);
    margin-left: auto;
    margin-right: 0;
    object-fit: contain;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .hero__actions .btn { flex: 1 1 180px; }
}

.hero__form-wide { grid-column: 1 / -1; }

@media (min-width: 900px) {
  .hero__form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
  }

  .hero__form .form-field { margin-bottom: 0; }
}

.btn--outline-light {
  background: transparent;
  border: 2px solid var(--brand);
  color: var(--brand);
}

.btn--outline-light:hover {
  background: var(--brand);
  color: var(--white);
}

.hero__panel {
  background: var(--white);
  color: var(--text);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 12px 40px rgba(13, 43, 82, 0.1);
  border: 1px solid var(--line);
  width: 100%;
}

@media (min-width: 900px) {
  .hero__panel {
    padding: 32px 36px;
    min-height: 100%;
  }
}

.hero__panel h2 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: var(--brand);
}

.hero__panel > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}

/* ── Form ── */
.form-field { margin-bottom: 12px; }

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  outline: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--brand-light);
  background: var(--white);
}

.form-field textarea { min-height: 80px; resize: vertical; }

.form-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}

.form-note a { color: var(--brand-light); text-decoration: underline; }

.form-msg {
  margin-top: 10px;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}

.form-msg.ok { color: #15803d; }
.form-msg.err { color: #b91c1c; }

/* ── Strip ── */
.strip {
  background: var(--surface);
  border-block: 1px solid var(--line);
  padding: 28px 0;
}

.strip__list {
  display: grid;
  gap: 16px;
  list-style: none;
}

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

@media (min-width: 960px) {
  .strip__list { grid-template-columns: repeat(4, 1fr); }
}

.strip__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  font-weight: 600;
}

.strip__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 18px;
}

/* ── Sections ── */
.section { padding: 64px 0; }

.section--gray { background: var(--surface); }

.section-head {
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--brand);
  margin-bottom: 8px;
}

.section-head p {
  color: var(--muted);
  max-width: 640px;
}

/* ── Categories ── */
.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.cat-tab {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.cat-tab:hover { border-color: var(--brand-light); }

.cat-tab.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

/* ── Products ── */
.products {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

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

@media (min-width: 900px) {
  .products { grid-template-columns: repeat(3, 1fr); }
}

.product {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}

.product:hover {
  box-shadow: 0 8px 28px rgba(13,43,82,.1);
  transform: translateY(-2px);
}

.product.is-hidden { display: none; }

.product__thumb {
  aspect-ratio: 4/3;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.product__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product__body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product__cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 6px;
}

.product__body h3 {
  font-size: 15px;
  line-height: 1.35;
  margin-bottom: 10px;
  flex: 1;
}

.product__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.product__price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand);
}

.product__price small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.product__order {
  padding: 8px 14px;
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
}

.product__order:hover {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}

/* ── About ── */
.about-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}

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

.about-text p {
  color: var(--muted);
  margin-bottom: 14px;
}

.about-text ul {
  margin: 20px 0;
  padding-left: 0;
  list-style: none;
}

.about-text li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 15px;
}

.about-text li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.about-card {
  background: var(--brand);
  color: var(--white);
  border-radius: 14px;
  padding: 32px;
}

.about-card__year {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
}

.about-card p {
  color: rgba(255,255,255,.85);
  font-size: 15px;
}

/* ── Assortment list ── */
.assort {
  columns: 1;
  gap: 32px;
}

@media (min-width: 640px) { .assort { columns: 2; } }
@media (min-width: 960px) { .assort { columns: 3; } }

.assort__group {
  break-inside: avoid;
  margin-bottom: 24px;
}

.assort__group h3 {
  font-size: 15px;
  color: var(--brand);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent);
}

.assort__group ul {
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}

.assort__group li {
  padding: 4px 0;
  padding-left: 14px;
  position: relative;
}

.assort__group li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ── Contact block ── */
.contact-block {
  background: var(--brand);
  color: var(--white);
  padding: 64px 0;
}

.contact-grid {
  display: grid;
  gap: 40px;
}

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

.contact-info h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.contact-info > p {
  color: rgba(255,255,255,.8);
  margin-bottom: 24px;
}

.contact-details {
  display: grid;
  gap: 16px;
}

.contact-details dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.55);
  margin-bottom: 2px;
}

.contact-details dd {
  font-size: 17px;
  font-weight: 600;
}

.contact-details a:hover { color: var(--accent); }

.contact-form-wrap {
  background: var(--white);
  color: var(--text);
  border-radius: 14px;
  padding: 28px;
}

.contact-form-wrap h3 {
  font-size: 1.15rem;
  color: var(--brand);
  margin-bottom: 16px;
}

/* ── Call bar ── */
.call-bar {
  background: var(--brand);
  color: var(--white);
  padding: 16px 0;
}

.call-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.call-bar__text {
  font-size: 15px;
  color: rgba(255,255,255,.9);
  max-width: 560px;
}

.call-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── Inline CTA + mini form ── */
.cta-inline {
  margin-top: 36px;
  padding: 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0d2b52 0%, #164a7a 100%);
  color: var(--white);
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .cta-inline {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 28px 32px;
  }
}

.cta-inline--light {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(13,43,82,.06);
}

.cta-inline--light h3 { color: var(--brand); }
.cta-inline--light p { color: var(--muted); }

.cta-inline__copy h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.cta-inline__copy p {
  font-size: 14px;
  color: rgba(255,255,255,.82);
  line-height: 1.5;
}

.mini-form {
  display: grid;
  gap: 10px;
}

@media (min-width: 540px) {
  .cta-inline__form.mini-form {
    grid-template-columns: 1fr 1fr auto;
    align-items: start;
  }

  .cta-inline__form .form-msg {
    grid-column: 1 / -1;
  }
}

.mini-form input[type="text"],
.mini-form input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  outline: none;
}

.mini-form input:focus {
  border-color: var(--brand-light);
}

.cta-inline .mini-form input {
  border-color: rgba(255,255,255,.25);
}

.cta-inline .mini-form .btn {
  white-space: nowrap;
}

/* ── CTA band ── */
.cta-band {
  background: var(--accent);
  padding: 40px 0;
}

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-band__text h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  color: var(--brand);
  margin-bottom: 8px;
}

.cta-band__text p {
  color: rgba(13,43,82,.85);
  max-width: 520px;
  font-size: 15px;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.contact-cta-row .btn--white {
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.35);
  color: var(--white);
}

.contact-cta-row .btn--white:hover {
  background: var(--white);
  color: var(--brand);
}

/* ── Footer ── */
.site-footer {
  background: #081c36;
  color: rgba(255,255,255,.65);
  padding: 32px 0;
  font-size: 14px;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.site-footer strong { color: var(--white); }

/* ── Float call ── */
.float-call {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 90;
  display: flex;
  gap: 8px;
}

.float-call a {
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
}

.float-call__phone {
  background: var(--brand);
  color: var(--white);
}

.float-call__form {
  background: var(--accent);
  color: var(--brand);
}

.float-call--always {
  display: flex;
}

@media (min-width: 768px) {
  .float-call--always {
    bottom: 24px;
    right: 24px;
  }
}

.notice {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--brand);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 200;
}

.notice.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 768px) {
  .notice { bottom: 24px; }
}
