/* --- extracted block 1 --- */
:root {
	--brand: #1f8ef1;
	--bg: #f6f7f9;
	--card: #fff;
	--text: #222;
	--muted: #6b7280;
}

* {
	box-sizing: border-box
}

body {
	font-family: Arial, Helvetica, sans-serif;
	margin: 0;
	background: var(--bg);
	color: var(--text)
}

header {
	background: var(--brand);
	color: #fff;
	position: sticky;
	top: 0;
	z-index: 10
}

header .wrap {
	max-width: 1200px;
	margin: auto;
	padding: 14px 20px;
	display: flex;
	gap: 14px;
	align-items: center;
	justify-content: space-between
}

header a {
	color: #fff;
	text-decoration: none;
	font-weight: 900
}

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

.menu-item {
	position: relative
}

.menu-item>a {
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	opacity: .95
}

.menu-item>a:hover {
	opacity: 1;
	text-decoration: underline
}

.submenu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
	min-width: 240px;
	padding: 10px;
	z-index: 20
}

.submenu a {
	display: block;
	padding: 8px 10px;
	color: #111827;
	text-decoration: none;
	font-weight: 800;
	border-radius: 8px
}

.submenu a:hover {
	background: #f3f4f6
}

.menu-item:hover .submenu {
	display: block
}

.container {
	max-width: 1200px;
	margin: auto;
	padding: 20px
}

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 18px
}

.card {
	background: var(--card);
	border-radius: 10px;
	padding: 12px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .08)
}

.card img {
	width: 100%;
	height: 160px;
	object-fit: contain;
	background: #fff;
	border-radius: 8px
}

.card .name {
	font-size: 14px;
	margin: 8px 0 2px
}

.card .price {
	font-weight: 900;
	color: var(--brand)
}

.card .actions {
	display: flex;
	gap: 8px;
	margin-top: 10px
}

.card .actions a {
	flex: 1;
	display: inline-block;
	text-align: center;
	padding: 10px 14px;
	border-radius: 10px;
	border: 1px solid #e5e7eb;
	background: #fff;
	font-weight: 900;
	color: #111827;
	text-decoration: none
}

.card .actions button {
	flex: 1
}

.breadcrumbs {
	font-size: 13px;
	color: var(--muted);
	margin: 8px 0 12px
}

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

.breadcrumbs a:hover {
	text-decoration: underline
}

.subcats {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 10px 0 16px
}

.subcats a {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	padding: 8px 12px;
	text-decoration: none;
	color: #111827;
	font-weight: 900
}

.product {
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: 20px;
	align-items: start
}

.product img {
	width: 100%;
	max-width: 340px;
	object-fit: contain;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
	padding: 10px
}

.priceBig {
	font-size: 22px;
	font-weight: 900;
	color: var(--brand);
	margin: 8px 0 10px
}

.actionsBox {
	margin-top: 14px;
	padding: 14px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .08)
}

button {
	background: var(--brand);
	color: #fff;
	border: 0;
	padding: 10px 14px;
	border-radius: 10px;
	cursor: pointer;
	font-weight: 900
}

button.secondary {
	background: #111827
}

button:hover {
	filter: brightness(.95)
}

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

footer {
	padding: 30px 20px;
	color: var(--muted);
	text-align: center
}

@media (hover: none) and (pointer: coarse) {
  .product { grid-template-columns: 1fr; }

  /* ВАЖНО: отключаем hover-раскрытие на телефоне */
  .menu-item:hover .submenu { display: none; }

  .submenu {
    position: static;
    display: none;
    box-shadow: none;
    padding: 8px 0;
    background: transparent;
  }

  .submenu a {
    color: #fff;
    padding: 6px 0;
    font-weight: 700;
  }

  .menu-item.open .submenu { display: block; }
}

.topnav{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.topnav a{color:#fff;font-weight:800;text-decoration:none;opacity:.95}
.topnav a:hover{opacity:1;text-decoration:underline}
.header-phone a{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.25);white-space:nowrap}
.header-phone a:before{content:""}
@media(max-width:860px){header .wrap{flex-wrap:wrap}.topnav{width:100%;justify-content:center}}
